@clickview/library-editor 1.1.25 → 1.1.26-dev.0

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 (392) hide show
  1. package/.eslintrc.json +3 -0
  2. package/dist/css/23.chunk.css +3 -5
  3. package/dist/css/25.chunk.css +0 -2
  4. package/dist/css/library-editor-app.css +2 -2
  5. package/dist/en.json +1 -1
  6. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
  7. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
  8. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
  9. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +4 -1
  10. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
  11. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
  12. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
  13. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +1 -1
  14. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
  15. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
  16. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
  17. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
  18. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
  19. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
  20. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
  21. package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
  22. package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
  23. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
  24. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
  25. package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
  26. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
  27. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
  28. package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +1 -1
  29. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
  30. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
  31. package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +2 -2
  32. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
  33. package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +6 -0
  34. package/dist/libs/common/src/react/flight/enums/index.d.ts +1 -0
  35. package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +22 -0
  36. package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +4 -0
  37. package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +29 -0
  38. package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +15 -0
  39. package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +3 -0
  40. package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +8 -0
  41. package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +4 -0
  42. package/dist/libs/common/src/react/interfaces/index.d.ts +4 -0
  43. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
  44. package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +2 -2
  45. package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +5 -5
  46. package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +24 -24
  47. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +5 -5
  48. package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +1 -1
  49. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  50. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  51. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  52. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  53. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
  54. package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
  55. package/dist/libs/shared/src/interfaces/models/Config.d.ts +1 -0
  56. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
  57. package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
  58. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  59. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
  60. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +9 -1
  61. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
  62. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  63. package/dist/libs/shared/src/interfaces/models/index.d.ts +3 -0
  64. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
  65. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
  66. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
  67. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  68. package/dist/libs/shared/src/interfaces/requests/index.d.ts +3 -0
  69. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
  70. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  71. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  72. package/dist/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-drop/FileDropBehavior.d.ts +1 -1
  73. package/dist/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-drop/FileDropMaskBehavior.d.ts +1 -1
  74. package/dist/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-select/FileSelectBehavior.d.ts +1 -1
  75. package/dist/{projects/library-editor/src/apps/library-editor → libs/shared/src/legacy}/components/file-select/FileSelectComponent.d.ts +1 -2
  76. package/dist/{projects/library-editor/src/apps/library-editor → libs/shared/src/legacy}/components/file-uploads/FileUploadComponent.d.ts +2 -2
  77. package/dist/{projects/library-editor/src/apps/library-editor/components/video-resources → libs/shared/src/legacy/components/resource-item}/ResourceItemComponent.d.ts +4 -4
  78. package/dist/{projects/library-editor/src/apps/library-editor/components/video-subtitles → libs/shared/src/legacy/components/subtitle-item}/SubtitleItemComponent.d.ts +2 -3
  79. package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +1 -1
  80. package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +7 -0
  81. package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
  82. package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
  83. package/dist/libs/shared/src/utils/ImageHelper.d.ts +3 -3
  84. package/dist/libs/shared/src/utils/MaskHelper.d.ts +1 -1
  85. package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +9 -0
  86. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  87. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +21 -0
  88. package/dist/projects/library-editor/src/app.d.ts +20 -5
  89. package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +1 -1
  90. package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +3 -3
  91. package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +1 -1
  92. package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +1 -2
  93. package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +3 -1
  94. package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +4 -1
  95. package/dist/projects/library-editor/src/apps/library-editor/enums/index.d.ts +0 -1
  96. package/dist/projects/library-editor/src/apps/library-editor/errors/index.d.ts +0 -2
  97. package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +2 -2
  98. package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +2 -2
  99. package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +1 -1
  100. package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +3 -3
  101. package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +2 -2
  102. package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +1 -1
  103. package/dist/projects/library-editor/src/shared/behaviors/index.d.ts +0 -3
  104. package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +3 -3
  105. package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +2 -2
  106. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +4 -4
  107. package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +1 -1
  108. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +1 -1
  109. package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +1 -1
  110. package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +1 -1
  111. package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +1 -1
  112. package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +1 -1
  113. package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +4 -4
  114. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponents.d.ts +1 -1
  115. package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -2
  116. package/dist/projects/library-editor/src/shared/errors/index.d.ts +0 -1
  117. package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +2 -0
  118. package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +1 -1
  119. package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +1 -2
  120. package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +1 -1
  121. package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +1 -1
  122. package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +1 -1
  123. package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +0 -1
  124. package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +1 -1
  125. package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +1 -1
  126. package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +1 -1
  127. package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +1 -1
  128. package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +1 -1
  129. package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +1 -1
  130. package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +1 -1
  131. package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +1 -1
  132. package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +1 -1
  133. package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +1 -1
  134. package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +1 -1
  135. package/dist/projects/library-editor/typings/libs/LazyLoad.d.ts +1 -1
  136. package/dist/scripts/{0-1c2bb7e28a.chunk.js → 0-65b134af4f.chunk.js} +1 -1
  137. package/dist/scripts/1-42cd7dafc9.chunk.js +1 -0
  138. package/dist/scripts/{10-923c4b075a.chunk.js → 10-75e622dc44.chunk.js} +1 -1
  139. package/dist/scripts/{11-3dec7d2c7e.chunk.js → 11-9f5f0c25dc.chunk.js} +1 -1
  140. package/dist/scripts/{12-07999b80e0.chunk.js → 12-e5d7fe24d9.chunk.js} +1 -1
  141. package/dist/scripts/13-2247b585ba.chunk.js +1 -0
  142. package/dist/scripts/14-76f0d1344e.chunk.js +1 -0
  143. package/dist/scripts/15-044f3ce266.chunk.js +1 -0
  144. package/dist/scripts/{16-742a776f88.chunk.js → 16-0ebecead61.chunk.js} +1 -1
  145. package/dist/scripts/{17-b5e44e8b17.chunk.js → 17-9a2f82453a.chunk.js} +1 -1
  146. package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-cd7f1d10b5.chunk.js} +1 -1
  147. package/dist/scripts/{20-732a7a549d.chunk.js → 20-8cabdf4ccb.chunk.js} +1 -1
  148. package/dist/scripts/{21-0b84d33cef.chunk.js → 21-9dfc314143.chunk.js} +1 -1
  149. package/dist/scripts/{22-3b2207c8f6.chunk.js → 22-ea1736d37f.chunk.js} +1 -1
  150. package/dist/scripts/23-c5137083a9.chunk.js +1 -0
  151. package/dist/scripts/{24-c94049500e.chunk.js → 24-d6b7d3f374.chunk.js} +1 -1
  152. package/dist/scripts/25-4f3f34d140.chunk.js +1 -0
  153. package/dist/scripts/{26-e53ba8e00f.chunk.js → 26-b3a2e6bca1.chunk.js} +1 -1
  154. package/dist/scripts/27-0dd00d8e76.chunk.js +1 -0
  155. package/dist/scripts/{28-738b88c816.chunk.js → 28-cef433c779.chunk.js} +1 -1
  156. package/dist/scripts/29-cf9581eef8.chunk.js +1 -0
  157. package/dist/scripts/{3-6e67dd4b74.chunk.js → 3-02a37512e4.chunk.js} +1 -1
  158. package/dist/scripts/{30-a1df3e37da.chunk.js → 30-cc04703754.chunk.js} +1 -1
  159. package/dist/scripts/{31-ce31250e42.chunk.js → 31-92c7d2494b.chunk.js} +1 -1
  160. package/dist/scripts/32-b8ea5b8dea.chunk.js +1 -0
  161. package/dist/scripts/33-6da26969d0.chunk.js +1 -0
  162. package/dist/scripts/34-5469e12196.chunk.js +1 -0
  163. package/dist/scripts/35-9aae492c3e.chunk.js +1 -0
  164. package/dist/scripts/36-8849ade3c7.chunk.js +1 -0
  165. package/dist/scripts/{37-6fa4b8fc60.chunk.js → 37-3b6bf13818.chunk.js} +1 -1
  166. package/dist/scripts/38-f8f1eeba1f.chunk.js +1 -0
  167. package/dist/scripts/{39-748eb61732.chunk.js → 39-01d58327ca.chunk.js} +1 -1
  168. package/dist/scripts/4-eaa7ec4468.chunk.js +1 -0
  169. package/dist/scripts/{40-2ecbd41570.chunk.js → 40-60f5d582c8.chunk.js} +1 -1
  170. package/dist/scripts/41-9d3182f53c.chunk.js +1 -0
  171. package/dist/scripts/{42-3ef41f40f5.chunk.js → 42-390bbda5c5.chunk.js} +1 -1
  172. package/dist/scripts/{43-49f13dab14.chunk.js → 43-acc9eadde2.chunk.js} +1 -1
  173. package/dist/scripts/44-8f053335a7.chunk.js +1 -0
  174. package/dist/scripts/45-a4f9646555.chunk.js +1 -0
  175. package/dist/scripts/46-6b9fc8453b.chunk.js +1 -0
  176. package/dist/scripts/{47-56d22af6ba.chunk.js → 47-7c5a3685a5.chunk.js} +1 -1
  177. package/dist/scripts/{48-e05ab3ecac.chunk.js → 48-469dfae9ba.chunk.js} +1 -1
  178. package/dist/scripts/{49-4a6c119f58.chunk.js → 49-06756becaf.chunk.js} +1 -1
  179. package/dist/scripts/5-674db7af1b.chunk.js +1 -0
  180. package/dist/scripts/{50-3924907655.chunk.js → 50-49475581af.chunk.js} +1 -1
  181. package/dist/scripts/{51-dca2a9cc86.chunk.js → 51-4adcf4ff0a.chunk.js} +1 -1
  182. package/dist/scripts/{52-a3c8ed29ca.chunk.js → 52-57782063fd.chunk.js} +1 -1
  183. package/dist/scripts/{53-d8f0dea552.chunk.js → 53-6f14b50628.chunk.js} +1 -1
  184. package/dist/scripts/{54-7cdbdcebf9.chunk.js → 54-78c19a2ad8.chunk.js} +1 -1
  185. package/dist/scripts/{55-a5fa20b497.chunk.js → 55-dceece7f6e.chunk.js} +1 -1
  186. package/dist/scripts/{56-370078d597.chunk.js → 56-791cbec86d.chunk.js} +1 -1
  187. package/dist/scripts/{57-0e126120b9.chunk.js → 57-b80d1bf344.chunk.js} +1 -1
  188. package/dist/scripts/{58-17706ccb46.chunk.js → 58-74a2cc409b.chunk.js} +1 -1
  189. package/dist/scripts/{59-381a49ed7f.chunk.js → 59-a05072e424.chunk.js} +1 -1
  190. package/dist/scripts/{6-40c8ba5007.chunk.js → 6-9a7ab29bcf.chunk.js} +1 -1
  191. package/dist/scripts/{60-b4a91c86fa.chunk.js → 60-3ea0df7910.chunk.js} +1 -1
  192. package/dist/scripts/{61-7d81d27c31.chunk.js → 61-49a9fb2c98.chunk.js} +1 -1
  193. package/dist/scripts/{62-758f5e505b.chunk.js → 62-afa39e4cc9.chunk.js} +1 -1
  194. package/dist/scripts/{63-6700b4d00a.chunk.js → 63-348b096dca.chunk.js} +1 -1
  195. package/dist/scripts/{64-9c88ee6161.chunk.js → 64-6f7edb1451.chunk.js} +1 -1
  196. package/dist/scripts/{65-a7e499ceee.chunk.js → 65-1a6aecc0e3.chunk.js} +1 -1
  197. package/dist/scripts/{66-f00f29ccae.chunk.js → 66-fe5934023f.chunk.js} +1 -1
  198. package/dist/scripts/67-69b25bd800.chunk.js +1 -0
  199. package/dist/scripts/{68-38a6d7fb50.chunk.js → 68-54be8dbe28.chunk.js} +1 -1
  200. package/dist/scripts/{69-870856c6fb.chunk.js → 69-2dbcfa995c.chunk.js} +1 -1
  201. package/dist/scripts/{7-aac8c84ccb.chunk.js → 7-e9fd5a70f5.chunk.js} +1 -1
  202. package/dist/scripts/{70-39dc936989.chunk.js → 70-145a5802f1.chunk.js} +1 -1
  203. package/dist/scripts/{71-8e3682a7d7.chunk.js → 71-2ea1363d8f.chunk.js} +1 -1
  204. package/dist/scripts/{72-550438db4e.chunk.js → 72-3d94c9900f.chunk.js} +1 -1
  205. package/dist/scripts/{8-d46f48d03c.chunk.js → 8-3db468b0ad.chunk.js} +1 -1
  206. package/dist/scripts/9-c8b248951d.chunk.js +1 -0
  207. package/dist/scripts/bundle-c736d7845b.min.js +8 -0
  208. package/dist/scripts/bundles.json +2 -2
  209. package/dist/scripts/polyfills-d24f8f2432.min.js +1 -0
  210. package/dist/sw.js +3 -0
  211. package/package.json +100 -99
  212. package/typings/libs/CVEvents.d.ts +1 -1
  213. package/typings/libs/LazyLoad.ts +2 -1
  214. package/typings/libs/Trackers.d.ts +1 -1
  215. package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
  216. package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
  217. package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
  218. package/dist/projects/library-editor/src/shared/errors/too-many-files/TooManyFilesError.d.ts +0 -7
  219. package/dist/scripts/0-1dbc79e4e7.chunk.js +0 -1
  220. package/dist/scripts/0-8b75adf540.chunk.js +0 -1
  221. package/dist/scripts/1-480e5932a6.chunk.js +0 -1
  222. package/dist/scripts/1-6051b28de6.chunk.js +0 -1
  223. package/dist/scripts/1-b85c11fc30.chunk.js +0 -1
  224. package/dist/scripts/10-31317a2d02.chunk.js +0 -1
  225. package/dist/scripts/10-e2fea45a6c.chunk.js +0 -1
  226. package/dist/scripts/11-039959db6c.chunk.js +0 -11
  227. package/dist/scripts/11-74bc3f2d9f.chunk.js +0 -11
  228. package/dist/scripts/12-24bd360be0.chunk.js +0 -1
  229. package/dist/scripts/12-6ecdd79b85.chunk.js +0 -1
  230. package/dist/scripts/13-081c0e5887.chunk.js +0 -1
  231. package/dist/scripts/13-54fe4fe53b.chunk.js +0 -1
  232. package/dist/scripts/13-958a8fd026.chunk.js +0 -1
  233. package/dist/scripts/14-16f84b2721.chunk.js +0 -1
  234. package/dist/scripts/14-45cd4dc6ef.chunk.js +0 -1
  235. package/dist/scripts/14-5e443cb402.chunk.js +0 -1
  236. package/dist/scripts/15-12fa4c3471.chunk.js +0 -1
  237. package/dist/scripts/15-5544e6bde6.chunk.js +0 -1
  238. package/dist/scripts/15-8c96c3288e.chunk.js +0 -1
  239. package/dist/scripts/16-670c43d26f.chunk.js +0 -1
  240. package/dist/scripts/16-7bcffb06e7.chunk.js +0 -1
  241. package/dist/scripts/17-140fec014b.chunk.js +0 -1
  242. package/dist/scripts/17-f6b0159da3.chunk.js +0 -1
  243. package/dist/scripts/2-5fd33f5359.chunk.js +0 -1
  244. package/dist/scripts/2-7cc9176e8a.chunk.js +0 -1
  245. package/dist/scripts/20-4d88ede0e0.chunk.js +0 -1
  246. package/dist/scripts/20-a84733c89f.chunk.js +0 -1
  247. package/dist/scripts/21-c9983ca8ad.chunk.js +0 -1
  248. package/dist/scripts/21-ee85b6d208.chunk.js +0 -1
  249. package/dist/scripts/22-151cf38018.chunk.js +0 -1
  250. package/dist/scripts/22-6e6ed9f607.chunk.js +0 -1
  251. package/dist/scripts/23-1af21bf234.chunk.js +0 -1
  252. package/dist/scripts/23-2b00ff99bf.chunk.js +0 -1
  253. package/dist/scripts/23-94f9fe4222.chunk.js +0 -1
  254. package/dist/scripts/24-74ab289589.chunk.js +0 -1
  255. package/dist/scripts/24-7aa9b43511.chunk.js +0 -1
  256. package/dist/scripts/25-34c0406f50.chunk.js +0 -1
  257. package/dist/scripts/25-5a38ce3533.chunk.js +0 -1
  258. package/dist/scripts/25-76d9011eea.chunk.js +0 -1
  259. package/dist/scripts/26-d166e3c313.chunk.js +0 -1
  260. package/dist/scripts/26-ea028a6276.chunk.js +0 -1
  261. package/dist/scripts/27-2109d41afa.chunk.js +0 -1
  262. package/dist/scripts/27-3aa629dd67.chunk.js +0 -1
  263. package/dist/scripts/27-c1241fcd84.chunk.js +0 -1
  264. package/dist/scripts/28-5c540e74cc.chunk.js +0 -1
  265. package/dist/scripts/28-e490147f6b.chunk.js +0 -1
  266. package/dist/scripts/29-2da59b1589.chunk.js +0 -1
  267. package/dist/scripts/29-69389908f8.chunk.js +0 -1
  268. package/dist/scripts/29-bb7e39304b.chunk.js +0 -1
  269. package/dist/scripts/3-42e8af9f39.chunk.js +0 -1
  270. package/dist/scripts/3-81b501ac1e.chunk.js +0 -1
  271. package/dist/scripts/30-9d32d88d76.chunk.js +0 -1
  272. package/dist/scripts/30-fa390c35f6.chunk.js +0 -1
  273. package/dist/scripts/31-639090fee3.chunk.js +0 -1
  274. package/dist/scripts/31-f15802825c.chunk.js +0 -1
  275. package/dist/scripts/32-1ad8193581.chunk.js +0 -1
  276. package/dist/scripts/32-4173874dbe.chunk.js +0 -1
  277. package/dist/scripts/32-9bca57f408.chunk.js +0 -1
  278. package/dist/scripts/33-20ac0ab4a1.chunk.js +0 -1
  279. package/dist/scripts/33-350334db4c.chunk.js +0 -1
  280. package/dist/scripts/33-7efae85b8b.chunk.js +0 -1
  281. package/dist/scripts/34-0a7f3b55fe.chunk.js +0 -1
  282. package/dist/scripts/34-c4f0495750.chunk.js +0 -1
  283. package/dist/scripts/34-f6eea83a09.chunk.js +0 -1
  284. package/dist/scripts/35-17b30890a5.chunk.js +0 -1
  285. package/dist/scripts/35-4254e160f0.chunk.js +0 -1
  286. package/dist/scripts/35-9c3899dfbd.chunk.js +0 -1
  287. package/dist/scripts/36-2ec95df618.chunk.js +0 -1
  288. package/dist/scripts/36-b5ad543fba.chunk.js +0 -1
  289. package/dist/scripts/36-cdbe95bd06.chunk.js +0 -1
  290. package/dist/scripts/37-3f3a603b60.chunk.js +0 -1
  291. package/dist/scripts/37-97b84a8be5.chunk.js +0 -1
  292. package/dist/scripts/38-1c98f19489.chunk.js +0 -1
  293. package/dist/scripts/38-6fc346f964.chunk.js +0 -1
  294. package/dist/scripts/38-7ffe535b0d.chunk.js +0 -1
  295. package/dist/scripts/39-13d6669c3f.chunk.js +0 -1
  296. package/dist/scripts/39-71c4bb46b2.chunk.js +0 -1
  297. package/dist/scripts/4-435484d217.chunk.js +0 -1
  298. package/dist/scripts/4-7274621693.chunk.js +0 -1
  299. package/dist/scripts/4-85ba8523ad.chunk.js +0 -1
  300. package/dist/scripts/40-a691a401ff.chunk.js +0 -1
  301. package/dist/scripts/40-f1d72b1049.chunk.js +0 -1
  302. package/dist/scripts/41-0368ba16dc.chunk.js +0 -1
  303. package/dist/scripts/41-85fcb15184.chunk.js +0 -1
  304. package/dist/scripts/41-bb9aef24f7.chunk.js +0 -1
  305. package/dist/scripts/42-389acb6e55.chunk.js +0 -1
  306. package/dist/scripts/42-61a626d7f4.chunk.js +0 -1
  307. package/dist/scripts/43-2fe5b1c9cc.chunk.js +0 -1
  308. package/dist/scripts/43-a5b882d502.chunk.js +0 -1
  309. package/dist/scripts/44-0703eb0ad8.chunk.js +0 -1
  310. package/dist/scripts/44-de22428999.chunk.js +0 -1
  311. package/dist/scripts/44-ee6a740a16.chunk.js +0 -1
  312. package/dist/scripts/45-806dd5b78c.chunk.js +0 -1
  313. package/dist/scripts/45-da34a8b6b2.chunk.js +0 -1
  314. package/dist/scripts/45-e4a92a40fd.chunk.js +0 -1
  315. package/dist/scripts/46-4aa05464fe.chunk.js +0 -1
  316. package/dist/scripts/46-cccef3e874.chunk.js +0 -1
  317. package/dist/scripts/46-ebf8eee4ac.chunk.js +0 -1
  318. package/dist/scripts/47-1e3d829757.chunk.js +0 -1
  319. package/dist/scripts/47-c61fa52c53.chunk.js +0 -1
  320. package/dist/scripts/48-877e9e02b8.chunk.js +0 -1
  321. package/dist/scripts/48-e577124476.chunk.js +0 -1
  322. package/dist/scripts/49-0f9a6a1782.chunk.js +0 -1
  323. package/dist/scripts/49-f9151c7e06.chunk.js +0 -1
  324. package/dist/scripts/5-06b97501c3.chunk.js +0 -1
  325. package/dist/scripts/5-1ba89c4774.chunk.js +0 -1
  326. package/dist/scripts/5-515b264fbc.chunk.js +0 -1
  327. package/dist/scripts/50-0741587a02.chunk.js +0 -1
  328. package/dist/scripts/50-4de0b758d5.chunk.js +0 -1
  329. package/dist/scripts/51-a5f1309ada.chunk.js +0 -1
  330. package/dist/scripts/51-ea33746146.chunk.js +0 -1
  331. package/dist/scripts/52-50230b48c8.chunk.js +0 -1
  332. package/dist/scripts/52-bc48f1f9e8.chunk.js +0 -1
  333. package/dist/scripts/53-0e253f9f3e.chunk.js +0 -1
  334. package/dist/scripts/53-36007500cf.chunk.js +0 -1
  335. package/dist/scripts/54-d1bc70c7b5.chunk.js +0 -1
  336. package/dist/scripts/54-dd4d101665.chunk.js +0 -1
  337. package/dist/scripts/55-3c60601030.chunk.js +0 -1
  338. package/dist/scripts/55-e29d6a6ba9.chunk.js +0 -1
  339. package/dist/scripts/56-36d54fa08f.chunk.js +0 -1
  340. package/dist/scripts/56-7a6c662f14.chunk.js +0 -1
  341. package/dist/scripts/57-a4f4d6fe41.chunk.js +0 -1
  342. package/dist/scripts/57-c1faec8b32.chunk.js +0 -1
  343. package/dist/scripts/58-a0fe201826.chunk.js +0 -1
  344. package/dist/scripts/58-e996405f2b.chunk.js +0 -1
  345. package/dist/scripts/59-0a7bdc86b0.chunk.js +0 -1
  346. package/dist/scripts/59-4f2fcb6412.chunk.js +0 -1
  347. package/dist/scripts/6-51a379e066.chunk.js +0 -1
  348. package/dist/scripts/6-b3d36065dc.chunk.js +0 -1
  349. package/dist/scripts/60-0d8896555f.chunk.js +0 -1
  350. package/dist/scripts/60-c57f161f18.chunk.js +0 -1
  351. package/dist/scripts/61-5d6e59d408.chunk.js +0 -1
  352. package/dist/scripts/61-a342a0d501.chunk.js +0 -1
  353. package/dist/scripts/62-67458b7fb4.chunk.js +0 -1
  354. package/dist/scripts/62-f5fd35fdc0.chunk.js +0 -1
  355. package/dist/scripts/63-420b10f5f2.chunk.js +0 -1
  356. package/dist/scripts/63-c88b9860e9.chunk.js +0 -1
  357. package/dist/scripts/64-e177d4c971.chunk.js +0 -1
  358. package/dist/scripts/64-e6598113a7.chunk.js +0 -1
  359. package/dist/scripts/65-93567fe088.chunk.js +0 -1
  360. package/dist/scripts/65-f750573f69.chunk.js +0 -1
  361. package/dist/scripts/66-c84a3a3c3f.chunk.js +0 -1
  362. package/dist/scripts/66-f6d213b33c.chunk.js +0 -1
  363. package/dist/scripts/67-1ebaab7a2d.chunk.js +0 -1
  364. package/dist/scripts/67-97c694c3d5.chunk.js +0 -1
  365. package/dist/scripts/67-c5af18680c.chunk.js +0 -1
  366. package/dist/scripts/68-7b1d5e8e75.chunk.js +0 -1
  367. package/dist/scripts/68-eb8700aeb1.chunk.js +0 -1
  368. package/dist/scripts/69-3d2063cd0f.chunk.js +0 -1
  369. package/dist/scripts/69-b0ea71d7c5.chunk.js +0 -1
  370. package/dist/scripts/7-3151397d74.chunk.js +0 -1
  371. package/dist/scripts/7-d41d3bf60c.chunk.js +0 -1
  372. package/dist/scripts/70-27e9e5792a.chunk.js +0 -1
  373. package/dist/scripts/70-6ef72cd9b6.chunk.js +0 -1
  374. package/dist/scripts/71-a80858069c.chunk.js +0 -1
  375. package/dist/scripts/71-c5923e2d2d.chunk.js +0 -1
  376. package/dist/scripts/72-245f28bf97.chunk.js +0 -1
  377. package/dist/scripts/72-65364adff1.chunk.js +0 -1
  378. package/dist/scripts/8-c4955c2009.chunk.js +0 -1
  379. package/dist/scripts/8-e5d19252c8.chunk.js +0 -1
  380. package/dist/scripts/9-4589726554.chunk.js +0 -1
  381. package/dist/scripts/9-576592d419.chunk.js +0 -1
  382. package/dist/scripts/9-df99ba6ce1.chunk.js +0 -1
  383. package/dist/scripts/bundle-1b984e2fd9.min.js +0 -8
  384. package/dist/scripts/bundle-7d13ba933b.min.js +0 -8
  385. package/dist/scripts/bundle-d5b23160b1.min.js +0 -8
  386. package/dist/scripts/polyfills-9b0be1bd72.min.js +0 -1
  387. package/dist/scripts/polyfills-cd3d0a9f6d.min.js +0 -1
  388. package/dist/scripts/polyfills-d891a77823.min.js +0 -1
  389. /package/dist/{projects/library-editor/src/shared → libs/shared/src}/enums/MasterObjectTypes.d.ts +0 -0
  390. /package/dist/{projects/library-editor/src/apps/library-editor → libs/shared/src}/enums/ObjectOwnerType.d.ts +0 -0
  391. /package/dist/{projects/library-editor/src/shared → libs/shared/src}/enums/UploadInteractionType.d.ts +0 -0
  392. /package/dist/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-drop/FileDropHelper.d.ts +0 -0
package/package.json CHANGED
@@ -1,99 +1,100 @@
1
- {
2
- "name": "@clickview/library-editor",
3
- "description": "Library Editor",
4
- "version": "1.1.25",
5
- "main": "dist/scripts/bundle.js",
6
- "types": "dist/projects/library-editor/src/index.d.ts",
7
- "scripts": {
8
- "clean-deps": "rd /s /q \"node_modules\"",
9
- "dev": "run-s vendor-dev watch",
10
- "prod": "run-s vendor-prod webpack-prod validate",
11
- "validate": "node ./tooling/buildValidator.js",
12
- "watch": "npm run webpack-dev -- --watch",
13
- "dev-vendor": "set NODE_ENV=development&& node ./tooling/bundleHelper.js",
14
- "webpack-dev": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js",
15
- "vendor-dev": "set NODE_ENV=development&& node ./tooling/bundleHelper.js",
16
- "dotnet-dev": "dotnet run --launch-profile Development",
17
- "webpack-prod": "set NODE_ENV=production&& node --max_old_space_size=6144 node_modules\\webpack\\bin\\webpack --config ./tooling/webpack.config.js",
18
- "vendor-prod": "set NODE_ENV=production&& node ./tooling/bundleHelper.js",
19
- "dotnet-prod": "dotnet run --launch-profile Production",
20
- "start-old": "run-p link dev dotnet-dev",
21
- "start-prod": "run-s prod dotnet-prod",
22
- "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
23
- "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
24
- "dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "http://gitlab.cvinternal.net/Online/Cloud"
29
- },
30
- "author": "Shale Kuzmanovski, Michael McDonnell",
31
- "license": "ISC",
32
- "devDependencies": {
33
- "@clickview/tooling": "0.0.18",
34
- "@fortawesome/fontawesome": "1.1.8",
35
- "@types/clipboard": "2.0.1",
36
- "@types/cropperjs": "1.3.0",
37
- "@types/jqueryui": "1.12.7",
38
- "@types/linkifyjs": "2.1.3",
39
- "@types/node-polyglot": "0.4.34",
40
- "@types/typeahead": "0.11.32",
41
- "@types/webpack-env": "1.13.9",
42
- "babel-minify-webpack-plugin": "0.3.1",
43
- "mkdirp": "0.5.1",
44
- "node-sass": "4.14.1",
45
- "npm-run-all": "4.1.5",
46
- "postcss-cli": "6.1.3",
47
- "postcss-sass": "0.4.1",
48
- "prettier": "1.18.2",
49
- "regenerator-runtime": "0.13.7",
50
- "rev-hash": "3.0.0",
51
- "stylelint-config-recommended": "2.2.0",
52
- "stylelint-scss": "3.12.1",
53
- "typedoc": "0.14.2",
54
- "webpack-bundle-analyzer": "3.8.0",
55
- "webpack-dev-middleware": "3.7.0",
56
- "webpack-env": "0.8.0",
57
- "webpack-hot-middleware": "2.25.0",
58
- "webpack-stats-plugin": "0.2.1",
59
- "write-json-file": "4.1.1"
60
- },
61
- "dependencies": {
62
- "@babel/polyfill": "7.4.4",
63
- "@clickview/styles": "1.0.10",
64
- "@clickview/url-signer": "1.0.0",
65
- "@microsoft/signalr": "^3.1.0",
66
- "autotrack": "2.4.1",
67
- "bootstrap": "4.3.1",
68
- "clipboard": "2.0.4",
69
- "corejs-typeahead": "1.2.1",
70
- "cropperjs": "1.5.6",
71
- "jquery-ui": "1.12.1",
72
- "linkifyjs": "2.1.8",
73
- "moment": "2.24.0",
74
- "node-polyglot": "2.3.0",
75
- "tempusdominus-bootstrap-4": "5.1.2"
76
- },
77
- "browserslist": [
78
- "Firefox >= 22",
79
- "Chrome >= 28",
80
- "Safari >= 6",
81
- "IE >= 11",
82
- "Edge >= 20"
83
- ],
84
- "babel": {
85
- "presets": [
86
- [
87
- "@babel/preset-env",
88
- {
89
- "corejs": 2,
90
- "useBuiltIns": "entry"
91
- }
92
- ]
93
- ]
94
- },
95
- "vendorBundle": {
96
- "name": "cv-vendor",
97
- "hash": "50a185b299"
98
- }
99
- }
1
+ {
2
+ "name": "@clickview/library-editor",
3
+ "description": "Library Editor",
4
+ "version": "1.1.26-dev.0",
5
+ "main": "dist/scripts/bundle.js",
6
+ "types": "dist/projects/library-editor/src/index.d.ts",
7
+ "scripts": {
8
+ "clean-deps": "rd /s /q \"node_modules\"",
9
+ "dev": "run-s vendor-dev watch",
10
+ "prod": "run-s vendor-prod webpack-prod validate",
11
+ "validate": "node ./tooling/buildValidator.js",
12
+ "watch": "npm run webpack-dev -- --watch",
13
+ "dev-vendor": "set NODE_ENV=development&& node ./tooling/bundleHelper.js",
14
+ "webpack-dev": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js",
15
+ "vendor-dev": "set NODE_ENV=development&& node ./tooling/bundleHelper.js",
16
+ "dotnet-dev": "dotnet run --launch-profile Development",
17
+ "webpack-prod": "set NODE_ENV=production&& node --max_old_space_size=6144 node_modules\\webpack\\bin\\webpack --config ./tooling/webpack.config.js",
18
+ "vendor-prod": "set NODE_ENV=production&& node ./tooling/bundleHelper.js",
19
+ "dotnet-prod": "dotnet run --launch-profile Production",
20
+ "start-old": "run-p link dev dotnet-dev",
21
+ "start-prod": "run-s prod dotnet-prod",
22
+ "start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
23
+ "build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
24
+ "dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "http://gitlab.cvinternal.net/Online/Cloud"
29
+ },
30
+ "author": "Shale Kuzmanovski, Michael McDonnell",
31
+ "license": "ISC",
32
+ "devDependencies": {
33
+ "@clickview/eslint-config": "0.0.0-rc.0",
34
+ "@clickview/tooling": "0.0.18",
35
+ "@fortawesome/fontawesome": "1.1.8",
36
+ "@types/clipboard": "2.0.1",
37
+ "@types/cropperjs": "1.3.0",
38
+ "@types/jqueryui": "1.12.7",
39
+ "@types/linkifyjs": "2.1.3",
40
+ "@types/node-polyglot": "0.4.34",
41
+ "@types/typeahead": "0.11.32",
42
+ "@types/webpack-env": "1.13.9",
43
+ "babel-minify-webpack-plugin": "0.3.1",
44
+ "mkdirp": "0.5.1",
45
+ "node-sass": "4.14.1",
46
+ "npm-run-all": "4.1.5",
47
+ "postcss-cli": "6.1.3",
48
+ "postcss-sass": "0.4.1",
49
+ "prettier": "1.18.2",
50
+ "regenerator-runtime": "0.13.7",
51
+ "rev-hash": "3.0.0",
52
+ "stylelint-config-recommended": "2.2.0",
53
+ "stylelint-scss": "3.12.1",
54
+ "typedoc": "0.14.2",
55
+ "webpack-bundle-analyzer": "3.8.0",
56
+ "webpack-dev-middleware": "3.7.0",
57
+ "webpack-env": "0.8.0",
58
+ "webpack-hot-middleware": "2.25.0",
59
+ "webpack-stats-plugin": "0.2.1",
60
+ "write-json-file": "4.1.1"
61
+ },
62
+ "dependencies": {
63
+ "@babel/polyfill": "7.4.4",
64
+ "@clickview/styles": "1.0.10",
65
+ "@clickview/url-signer": "1.0.0",
66
+ "@microsoft/signalr": "^3.1.0",
67
+ "autotrack": "2.4.1",
68
+ "bootstrap": "4.3.1",
69
+ "clipboard": "2.0.4",
70
+ "corejs-typeahead": "1.2.1",
71
+ "cropperjs": "1.5.6",
72
+ "jquery-ui": "1.12.1",
73
+ "linkifyjs": "2.1.8",
74
+ "moment": "2.24.0",
75
+ "node-polyglot": "2.3.0",
76
+ "tempusdominus-bootstrap-4": "5.1.2"
77
+ },
78
+ "browserslist": [
79
+ "Firefox >= 22",
80
+ "Chrome >= 28",
81
+ "Safari >= 6",
82
+ "IE >= 11",
83
+ "Edge >= 20"
84
+ ],
85
+ "babel": {
86
+ "presets": [
87
+ [
88
+ "@babel/preset-env",
89
+ {
90
+ "corejs": 2,
91
+ "useBuiltIns": "entry"
92
+ }
93
+ ]
94
+ ]
95
+ },
96
+ "vendorBundle": {
97
+ "name": "cv-vendor",
98
+ "hash": "50a185b299"
99
+ }
100
+ }
@@ -7,7 +7,7 @@ declare namespace CVEvents {
7
7
  constructor(t: any);
8
8
  off(t: any, e?: any): void;
9
9
  on(t: any, e: any): void;
10
- one(eventName: string, callback: Function): void;
10
+ one(eventName: string, callback: (...args: any) => any): void;
11
11
  trigger(t: any, ...args: any[]): void;
12
12
  }
13
13
  }
@@ -23,4 +23,5 @@ interface ILazyLoad {
23
23
  handleScroll(): void;
24
24
  loadAll(): void;
25
25
  }
26
- declare var LazyLoad: ILazyLoad;
26
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
+ declare const LazyLoad: ILazyLoad;
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  interface ITrackers {
7
- GoogleAnalytics: Function;
7
+ GoogleAnalytics: (...args: any) => any;
8
8
  }
9
9
 
10
10
  declare var Trackers: ITrackers;
@@ -1,19 +0,0 @@
1
- import { BaseService } from "../core/BaseService";
2
- export declare class ScrollService extends BaseService {
3
- private preventScroll;
4
- initialize(): void;
5
- get name(): string;
6
- /**
7
- * In places of the application where we would not
8
- * like an appLink to scroll to the top, call this
9
- * method. This will typically be done in an `onBeforeRender`
10
- * or 'onClick' handler.
11
- */
12
- cancelScrollTop(): void;
13
- /**
14
- * Once the route change has completed, we check to see
15
- * if the page should scroll to the top based on the check
16
- * done by validateAppLink
17
- */
18
- scrollTop(): void;
19
- }
@@ -1,8 +0,0 @@
1
- import { DialogError } from "../../../../../../../libs/shared/src/errors/primitives/DialogError";
2
- import { DialogViewOptions } from "../../../../shared/components/dialog/DialogView";
3
- export declare class TooManyResourcesError extends DialogError {
4
- resourceLimit: number;
5
- constructor(resourceLimit: number);
6
- get name(): string;
7
- get dialogOptions(): DialogViewOptions;
8
- }
@@ -1,8 +0,0 @@
1
- import { DialogError } from "../../../../../../../libs/shared/src/errors/primitives/DialogError";
2
- import { DialogViewOptions } from "../../../../shared/components/dialog/DialogView";
3
- export declare class TooManySubtitlesError extends DialogError {
4
- subtileLimit: number;
5
- constructor(subtitleLimit: number);
6
- get name(): string;
7
- get dialogOptions(): DialogViewOptions;
8
- }
@@ -1,7 +0,0 @@
1
- import { DialogError } from "../../../../../../libs/shared/src/errors/primitives/DialogError";
2
- import { DialogOptions } from "../../../../../../libs/shared/src/interfaces";
3
- export declare class TooManyFilesError extends DialogError {
4
- constructor();
5
- get name(): string;
6
- get dialogOptions(): DialogOptions;
7
- }
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[0],{1032:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1033:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression;return'<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1047:function(t,e,n){"use strict";var o=n(1032),r=n.n(o),i=n(1033),s=n.n(i);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,n,o,i=u(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&l(e.prototype,n),o&&l(e,o),a}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}))},1058:function(t,e,n){"use strict";var o=n(1),r=n(2),i=n(6),s=n(15),a=n(4),l=n(13),c=n(0),u=n(1089),p=n(1092),f=n(1222),h=n.n(f);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(g,t);var e,n,f,d=v(g);function g(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),d.call(this,t)}return e=g,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return l.f.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return l.f.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-white font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-white font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new D(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.options.styles.caret,showCaret:this.hasChildren(),svg:s.a.getSvg(s.b.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.a,ui:"anchor",channelNames:[c.w.VIDEO_DRAG_DROP,c.w.FOLDER_DRAG_DROP],analyticsOptions:{location:a.k.LeftNav}},{behaviorClass:p.a}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"template",get:function(){return h.a}}])&&y(e.prototype,n),f&&y(e,f),g}(r.a.Component),w=n(1186),C=n.n(w);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==O(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return D}));var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(s,t);var e,n,r,i=P(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),t.styles=o.extend({},C.a,t.styles),i.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return k}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&_(e.prototype,n),r&&_(e,r),s}(r.a.ComponentCollection)},1089:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),s=n(145);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,t);var e,n,i,a=p(f);function f(){return l(this,f),a.apply(this,arguments)}return e=f,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.droppable,"ui-droppable-active":s.active,"ui-droppable-hover":s.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),i&&c(e,i),f}(i.a.Behavior)},1092:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(1),r=n(6),i=n(2),s=n(15),a=n(0),l=n(1047),c=n(1098),u=n.n(c);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(p,t);var e,n,i,c=y(p);function p(){return f(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.c.draggable,"ui-draggable-handle":l.c.handle,"ui-draggable-disabled":l.c.disabled,"ui-draggable-dragging":l.c.dragging}}},{key:"helper",value:function(){return new l.b({text:this.view.model.get("name"),svg:s.a.getSvg(s.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&h(e.prototype,n),i&&h(e,i),p}(i.a.Behavior)},1098:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1186:function(t,e,n){t.exports={folderTree:"_1inFA",text:"_2ovSq",caret:"_2pwp9",library:"_2WHiz",selected:"_200l0",parent:"_205QS",disabledActive:"_25EPE",disabled:"_387cT",collapsed:"_1-_q7",actions:"_3Il7t",node:"_23bpP",libraryContainer:"EuNKs",item:"ahYSz"}},1222:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n </span>\r\n"},3:function(t,e,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<div class="position-relative '+a(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\r\n <a class="'+a(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+a(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+a(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[0],{1037:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1038:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression;return'<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+a(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1052:function(t,e,n){"use strict";var o=n(1037),r=n.n(o),i=n(1038),s=n.n(i);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,n,o,i=u(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&l(e.prototype,n),o&&l(e,o),a}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}))},1063:function(t,e,n){"use strict";var o=n(1),r=n(2),i=n(6),s=n(15),a=n(4),l=n(13),c=n(0),u=n(1094),p=n(1097),f=n(1227),h=n.n(f);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(g,t);var e,n,f,d=v(g);function g(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),d.call(this,t)}return e=g,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return l.f.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return l.f.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-white font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-white font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new D(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.options.styles.caret,showCaret:this.hasChildren(),svg:s.a.getSvg(s.b.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.a,ui:"anchor",channelNames:[c.w.VIDEO_DRAG_DROP,c.w.FOLDER_DRAG_DROP],analyticsOptions:{location:a.k.LeftNav}},{behaviorClass:p.a}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"template",get:function(){return h.a}}])&&y(e.prototype,n),f&&y(e,f),g}(r.a.Component),w=n(1191),C=n.n(w);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==O(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return D}));var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(s,t);var e,n,r,i=P(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),t.styles=o.extend({},C.a,t.styles),i.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return k}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&_(e.prototype,n),r&&_(e,r),s}(r.a.ComponentCollection)},1094:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),s=n(145);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,t);var e,n,i,a=p(f);function f(){return l(this,f),a.apply(this,arguments)}return e=f,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.droppable,"ui-droppable-active":s.active,"ui-droppable-hover":s.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),i&&c(e,i),f}(i.a.Behavior)},1097:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(1),r=n(6),i=n(2),s=n(15),a=n(0),l=n(1052),c=n(1103),u=n.n(c);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(p,t);var e,n,i,c=y(p);function p(){return f(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.c.draggable,"ui-draggable-handle":l.c.handle,"ui-draggable-disabled":l.c.disabled,"ui-draggable-dragging":l.c.dragging}}},{key:"helper",value:function(){return new l.b({text:this.view.model.get("name"),svg:s.a.getSvg(s.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&h(e.prototype,n),i&&h(e,i),p}(i.a.Behavior)},1103:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1191:function(t,e,n){t.exports={folderTree:"_1inFA",text:"_2ovSq",caret:"_2pwp9",library:"_2WHiz",selected:"_200l0",parent:"_205QS",disabledActive:"_25EPE",disabled:"_387cT",collapsed:"_1-_q7",actions:"_3Il7t",node:"_23bpP",libraryContainer:"EuNKs",item:"ahYSz"}},1227:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n </span>\r\n"},3:function(t,e,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,a=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<div class="position-relative '+a(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\r\n <a class="'+a(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+a(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+a(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+a(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[1],{1035:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"k",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return b})),n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return k})),n.d(t,"f",(function(){return E})),n.d(t,"h",(function(){return m}));var r=n(2),i=n(1),a=n(19),o=n(29),s=n(3),u="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=i.reduce(e,(function(e,n,r){var a=t[r];return n||a?i.isObject(n)&&i.isObject(a)&&!i.isUndefined(n.id)&&n.id===a.id?e:i.isArray(n)?d(n,a).length?e.concat(r):e:i.isEqual(n,a)?e:e.concat(r):e}),[]);if(n.length)return i.object(i.map(n,(function(n){return i.isArray(t[n])?[n,d(e[n],t[n])]:[n,t[n]]})))}}function d(e,t){var n=[];return i.each(t,(function(t){var r=i.findWhere(e,{id:t.id});if(!i.isUndefined(r)||0!==Object.keys(t).length){var a=i.isUndefined(r)?t:l(r,t);a&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(a.id=t.id,n.push(a))))}})),n}var f={getChanges:function(e,t){var n=l(i.omit(e.toJSON(),c),i.omit(t.toJSON(),c));if(n)return i.object(i.map(i.keys(n),(function(e){return[e,f.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(i.isObject(t)&&i.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return i.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:r.a.ErrorHelper.throw(new a.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var a=["distributors","producers","directors","productionCompanies"];for(var o in i.each(i.keys(n),(function(e){a.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(i.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[o]&&e.associations[o]){var s=e.get(o);(s instanceof r.a.Model||s instanceof r.a.NestedModel)&&s.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return i.each(i.keys(e.toJSON()),(function(a){if(i.contains(n,a)){var o=e.get(a).map((function(e){return e.id})),s=t.get(a).map((function(e){return e.id})),u=i.filter(o,(function(e){return e&&!i.contains(s,e)}));u.length&&(r[a]=u)}})),r}},h={name:[{required:!0,msg:function(){return s.a.getPhrase(u,"videoTitleRequired")}},{maxLength:255,msg:function(){return s.a.getPhrase(u,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?s.a.getPhrase(u,"episodeNumberLessThanOne"):e&&e>2147483647?s.a.getPhrase(u,"episodeNumberExceeds"):e%1!=0?s.a.getPhrase(u,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?s.a.getPhrase(u,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":s.a.getPhrase(u,"seasonNoEpisodeNumber")}},p=o().year(),y={productionYear:function(e,t,n){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>p?s.a.getPhrase(u,"validProductionYears",{currentYear:p}):void 0):""}},v={name:[{required:!0,msg:function(){return s.a.getPhrase(u,"resourceNameRequired")}}]},g={suggestion:[{required:!0,msg:function(){return s.a.getPhrase(u,"suggestEditRequired")}},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return s.a.getPhrase(u,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"suggestEditReasonExceeds")}}]},m={number:function(e,t,n){return e?+e<1?s.a.getPhrase(u,"seasonLessThanOne"):+e>255?s.a.getPhrase(u,"seasonExceeds"):+e%1!=0?s.a.getPhrase(u,"seasonNotWhole"):"":s.a.getPhrase(u,"seasonRequired")}},b={empty:function(){return s.a.getPhrase(u,"suggestEditRatingRequired")},original:function(){return s.a.getPhrase(u,"suggestEditRatingInvalid")}},E={url:[{required:!0,pattern:"url",msg:function(){return s.a.getPhrase(u,"linkUrlRequired")}},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return s.a.getPhrase(u,"linkNameRequired")}},{maxLength:255,msg:function(){return s.a.getPhrase(u,"linkNameExceeds")}}]},P={name:[{maxLength:128,msg:function(){return s.a.getPhrase(u,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return s.a.getPhrase(u,"fieldValueExceeds")}}]},S={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":s.a.getPhrase(u,"fieldsInvalid"):""}};function k(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1036:function(e,t,n){"use strict";var r=n(1042),i=n(1035),a=(n(1040),n(3),n(1043)),o=(n(1045),n(1041)),s=n(82),u={getVideoDownloadUrl:function(e,t){return s.a.safeUrlConcat(s.a.makeHttps(e),"/download?token=".concat(t))}};n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return i.g})),n.d(t,"h",(function(){return i.j})),n.d(t,"g",(function(){return i.i})),n.d(t,"d",(function(){return i.f})),n.d(t,"f",(function(){return i.h})),n.d(t,"c",(function(){return a.a})),n.d(t,"i",(function(){return o.a})),n.d(t,"b",(function(){return u}))},1040:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),i=n(49),a=n(160),o=n(3),s="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.a.getPhrase(s,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(s,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?i.a.calculateDestinationFolderDepth(e,n,t)>a.a.MAX_FOLDER_DEPTH?o.a.getPhrase(s,"maxFolderDepth",{maxDepth:a.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(s,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,i=e.folder,a=e.collection;return t&&n?r.extend({},u,c(i,a)):t?u:n?c(i,a):void 0}},1041:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),i=n(3),a=n(186),o=n(1053),s=n(8);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var d={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 s.h.HostedLibrary:case s.h.CustomLibrary:return e.get("name");case s.h.Exchange:return i.a.getPhrase(l,"exchange");case s.h.Workspace:return i.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case s.h.HostedLibrary:case s.h.CustomLibrary:return"bg-info";case s.h.Exchange:return"bg-success";case s.h.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(u(t={},c.Pdf,r.b.FilePDF),u(t,c.Image,r.b.FileImg),u(t,c.PowerPoint,r.b.FilePowerpoint),u(t,c.Document,r.b.FileWord),u(t,c.Excel,r.b.FileExcel),u(t,c.Zip,r.b.FileZip),u(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return i.a.getPhrase(l,"pdf");case c.Image:return i.a.getPhrase(l,"image");case c.Document:return i.a.getPhrase(l,"document");case c.Excel:return i.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return i.a.getPhrase(l,"presentation");case c.Zip:return i.a.getPhrase(l,"zipArchive");case c.File:return i.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:d.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case a.e.VideoTitle:t+="VideoTitle";break;case a.e.Description:t+="Description";break;case a.e.Rating:t+="Rating";break;case a.e.SeriesTitle:t+="SeriesTitle";break;case a.e.Season:t+="SeasonNumber";break;case a.e.EpisodeNumber:t+="EpisodeNumber";break;case a.e.BroadcastDate:t+="BroadcastDate";break;case a.e.Channel:t+="Channel";break;case a.e.ProductionYear:t+="ProductionYear";break;case a.e.Distributors:t+="Distributors";break;case a.e.ProductionCompanies:t+="ProductionCompanies";break;case a.e.Directors:t+="Directors";break;case a.e.Producers:t+="Producers";break;case a.e.Other:t+="Other"}return i.a.getPhrase(l,t)}}},1042:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(13),a=n(3),o="libraryEditor.utils",s={isValidChapterTime:function(e,t,n,a){if(a){if(!r.isNumber(t))return u.StartTime.Invalid();if(t<0)return u.StartTime.Invalid();if(t>i.w.millisecondsToSeconds(n))return u.StartTime.Exceeds();if(a.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return u.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?u.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?u.Name.Exists():r.isEmpty(t.trim())?u.Name.Invalid():void 0:u.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},u={Name:{Invalid:function(){return a.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return a.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return a.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return a.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1043:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i="libraryEditor.utils",a={name:[{required:!0,msg:function(){return r.a.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(i,"libraryNameExceeds")}}]}},1045:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(1035),a=r.a.encloseNamespace("libraryEditor.utils"),o={name:[{required:!0,msg:function(){return a("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return a("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?a("episodeNumberLessThanOne"):e&&e>255?a("episodeNumberExceeds"):e&&e%1!=0?a("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?a("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":a("seasonNoEpisodeNumber")},productionYear:function(){return i.e.productionYear.apply(null,arguments)}}},1053:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return c}));var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=o(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(n(2).a.Collection)},1185:function(e,t,n){"use strict";var r=n(1),i=n(6),a=n(1215),o={PLAY:"cv-player-play",PAUSE:"cv-player-pause",VIDEO_END:"cv-player-ended",VOLUME_CHANGE:"cv-player-volumechange",CHAPTER_CHANGE:"cv-player-chapterchange",TIME_UPDATE:"cv-player-timeupdate",FULLSCREEN_CHANGE:"cv-player-fullscreenchange",CLIP_POINTS_UPDATE:"cv-player-cliptoolupdate",QUALITY_CHANGE:"cv-player-qualitychange",QUERY_CALLBACK:"cv-player-querycallback",SUBTITLES_ENABLED:"cv-player-hassubtitles",SUBTITLES:"cv-player-subtitles",PONG:"cv-player-pong",FULLSCREEN_CLICK:"_cvwp:fsc",DEVICES_BTN_CLICK:"_cvwp:devices:click"},s={PLAY:"cv-player-play",PAUSE:"cv-player-pause",SET_VOLUME:"cv-player-setvolume",NEXT_CHAPTER:"cv-player-nextchapter",PREV_CHAPTER:"cv-player-previouschapter",CHANGE_CHAPTER:"cv-player-changechapter",TOGGLE_CLIPPING:"cv-player-cliptooltoggle",SET_CLIP_POINTS:"cv-player-cliptoolset",CLIP:"cv-player-setclip",CLEAR_CLIP:"cv-player-clearclip",SEEK_TO:"cv-player-seekto",CONTROLS:"cv-player-showcontrols",SUBTITLES:"cv-player-subtitles",SET_QUALITY:"cv-player-setquality",QUERY:"cv-player-query",ADD_LISTENER:"cv-player-addlistener",REMOVE_LISTENER:"cv-player-removelistener",PING:"cv-player-ping",TOGGLE_DEVICES_BTN:"_cv:toggledevicesbtn",SHOW_DEVICES_BTN:"_cv:showdevicesbtn",SHOW_FS_BTN:"_cv:showfsbtn"},u={GET_AVAILABLE_QUALITIES:"getAvailableQualities",GET_CURRENT_QUALITY:"currentQuality",IS_PAUSED:"paused",GET_CURRENT_TIME:"currentTime",GET_CHAPTERS:"getChapters",HAS_METADATA_CHAPTERS:"hasMetadataChapters"},c=n(2),l=n(30),d=n(19),f=n(82),h=n(15),p=n(1030),y=n(0),v=function(e){return e instanceof c.a.Model||e instanceof c.a.Collection||e instanceof i.Model||e instanceof i.Collection?e.toJSON():e},g=n(4),m=n(119),b=n(42);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 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 S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(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 C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,i,a=k(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).captureInterval=60,t}return t=l,(n=[{key:"initialize",value:function(){this.eventsApi=this.options.eventsApi,this.options.video||c.a.ErrorHelper.throw(new d.a("Video logging requires video to be passed in.")),this.model=this.options.video,this.playbackStatus=this.getNewPlaybackStatus(),this.options.captureInterval&&(this.captureInterval=this.options.captureInterval),this.bindListeners(),this.getChapters()}},{key:"bindListeners",value:function(){this.eventsApi.on(o.TIME_UPDATE,r.bind(this.onPlayerTimeUpdate,this)),this.eventsApi.on(o.VIDEO_END,r.bind(this.onEnd,this)),this.eventsApi.on(o.FULLSCREEN_CHANGE,r.bind(this.onFullScreen,this)),this.eventsApi.on(o.CHAPTER_CHANGE,r.bind(this.onChapterChange,this))}},{key:"unbindListeners",value:function(){this.eventsApi.off(o.TIME_UPDATE),this.eventsApi.off(o.VIDEO_END),this.eventsApi.off(o.FULLSCREEN_CHANGE),this.eventsApi.off(o.CHAPTER_CHANGE)}},{key:"getChapters",value:function(){var e=this;this.queryWebplayer(u.GET_CHAPTERS,(function(t,n){e.setInitialChapter(n),e.setVideoDuration(n)}))}},{key:"queryWebplayer",value:function(e,t){var n=r.uniqueId(this.name),i="".concat(o.QUERY_CALLBACK,"-").concat(n);this.eventsApi.one(i,t),this.eventsApi.trigger(s.QUERY,e,n)}},{key:"onEnd",value:function(){this.setCurrentPosition(this.playbackStatus.totalDuration),this.logVerbose(g.n.Finish),this.resetPlaybackStatus()}},{key:"onFullScreen",value:function(e,t){var n=t?g.n.FullScreenEnter:g.n.FullScreenExit;this.logVerbose(n)}},{key:"onPlayerTimeUpdate",value:function(e,t){var n=this;this.queryWebplayer(u.IS_PAUSED,(function(e,r){n.updateTime(t,r)}))}},{key:"onChapterChange",value:function(e,t){r.isObject(t)&&this.setCurrentChapter(t.number)}},{key:"updateTime",value:function(e,t){var n=Math.floor(e);n&&n!==this.getCurrentPositon()&&(this.setCurrentPosition(n),t||(this.playbackHasStarted()||(this.logVerbose(g.n.Start),this.setPlaybackStarted()),this.incrementWatchTime(),this.getWatchTime()%this.captureInterval==0&&this.logVerbose(g.n.Playback),8===this.getWatchTime()&&this.logStream()))}},{key:"setInitialChapter",value:function(e){var t=r.find(e,(function(e){return!0===e.current}));r.isObject(t)&&this.setCurrentChapter(t.number)}},{key:"setVideoDuration",value:function(e){var t=r.reduce(e,(function(e,t){return e+t.duration}),0);!r.isNaN(t)&&r.isNumber(t)&&(this.playbackStatus.totalDuration=Math.floor(t))}},{key:"setCurrentPosition",value:function(e){this.playbackStatus.position=e}},{key:"getCurrentPositon",value:function(){return this.playbackStatus.position}},{key:"setCurrentChapter",value:function(e){this.playbackStatus.chapter=e}},{key:"setPlaybackStarted",value:function(){this.playbackStatus.hasStarted=!0}},{key:"playbackHasStarted",value:function(){return this.playbackStatus.hasStarted}},{key:"getWatchTime",value:function(){return this.playbackStatus.totalWatched}},{key:"incrementWatchTime",value:function(){this.playbackStatus.totalWatched+=1}},{key:"getNewPlaybackStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.duration,n=e.watched;return{position:0,chapter:0,hasStarted:!1,totalWatched:n||0,totalDuration:t||0}}},{key:"resetPlaybackStatus",value:function(){var e={duration:this.playbackStatus.totalDuration,watched:this.playbackStatus.totalWatched};this.playbackStatus=this.getNewPlaybackStatus(e)}},{key:"unbindUnload",value:function(){$(window).off("unload")}},{key:"bindUnload",value:function(){$(window).on("unload",r.bind(this.logUnload,this))}},{key:"logUnload",value:function(){this.playbackHasStarted()&&this.logVerbose(g.n.Terminate)}},{key:"logStream",value:function(){var e=b.a.buildActionContext(this.options.analyticsOptions);m.a.log(g.q.Stream,this.getPlaybackData(),e),m.a.log(g.q.StreamRaw,this.getStreamRawData(),e)}},{key:"logVerbose",value:function(e){}},{key:"getPlaybackData",value:function(){return{model:v(this.model),playbackStatus:r.omit(this.playbackStatus,"hasStarted")}}},{key:"getStreamRawData",value:function(){return{id:v(this.model).id.toString()}}},{key:"onDestroy",value:function(){this.unbindListeners(),this.unbindUnload(),this.logUnload()}},{key:"name",get:function(){return"VideoAnalyticsTracker"}}])&&P(t.prototype,n),i&&P(t,i),l}(c.a.Service),N=n(1216),_=n.n(N),A=n(1217),O=n.n(A);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){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 L(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=U(e);if(t){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(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 U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return M}));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&&D(e,t)}(g,e);var t,n,u,v=L(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),v.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.enableIeFs=this.isTop(),this.getViewModel()}},{key:"seekTo",value:function(e){this.eventsApi&&this.eventsApi.trigger(s.SEEK_TO,e)}},{key:"seekToChapter",value:function(e){this.eventsApi&&this.eventsApi.trigger("cv-player-changechapter",e)}},{key:"getViewModel",value:function(){var e=this.model.get("id");e||(e=this.model.get("trackingCode")),this.viewModel=l.a.get("".concat(y.z.NAME,"-").concat(e)),this.viewModel.get("initialized")||this.initViewModel(),this.setUrl()}},{key:"initViewModel",value:function(){var e=this.model.pick("id");e.id||(e=this.model.pick("trackingCode")),e.id||e.trackingCode||c.a.ErrorHelper.throw(new d.a("Must provide either a master id or a tracking code to ".concat(this.name)));var t=r.extend({},this.viewModelDefaults,e,this.viewModel.toJSON(),{initialized:!0});this.viewModel.set(t)}},{key:"initWebPlayerEvents",value:function(){if(this.enableIeFs){var e=this.getUI("iframe");e&&0!==e.length&&e.on("load",this.bindWebPlayerEvents.bind(this))}}},{key:"bindWebPlayerEvents",value:function(){if(!this.iframeReady){var e=this.getUI("iframe").get(0);this.eventsApi=new p.CVEventsApi(e.contentWindow),this.eventsApi.on(o.PONG,this.onPong.bind(this)),this.eventsApi.trigger(s.PING),this.eventsApi.on(o.FULLSCREEN_CLICK,this.onFullscreenChange.bind(this)),this.eventsApi.trigger(s.SHOW_FS_BTN),this.eventsApi.on(o.TIME_UPDATE,this.onTimeUpdate.bind(this)),this.eventsApi.on(o.PLAY,this.onPlay.bind(this)),this.eventsApi.on(o.PAUSE,this.onPause.bind(this)),this.eventsApi.on(o.VIDEO_END,this.onEnded.bind(this)),this.options.showDevicesButton&&(this.eventsApi.on(o.DEVICES_BTN_CLICK,this.showDeviceToggle.bind(this)),this.eventsApi.trigger(s.SHOW_DEVICES_BTN)),this.options.captureAnalytics&&(this.tracker=new T({video:this.model.toJSON(),eventsApi:this.eventsApi,analyticsOptions:this.options.analyticsOptions}))}}},{key:"unbindWebPlayerEvents",value:function(){this.eventsApi&&(this.eventsApi.off(o.FULLSCREEN_CLICK),this.eventsApi.off(o.TIME_UPDATE),this.eventsApi.off(o.PLAY),this.eventsApi.off(o.PAUSE),this.eventsApi.off(o.VIDEO_END),this.eventsApi.off(o.PONG),this.eventsApi.off(o.DEVICES_BTN_CLICK))}},{key:"setUrl",value:function(){var e="".concat(this.viewModel.get("webPlayerHost"),"embed"),t=r.omit(this.viewModel.get("parameters"),["p","vid"])||{};t.a=!!this.viewModel.get("autoplay");var n=this.viewModel.get("id");n&&(t.vid=n);var i=this.viewModel.get("trackingCode");i&&(t.p=i),this.viewModel.get("currenttime")&&(t.t=this.viewModel.get("currenttime"),t.a=!this.viewModel.get("paused"));var o=f.a.urlBuilder(e,t),s=Object(a.signUrl)(o,{timestamp:!0});this.viewModel.set({url:s})}},{key:"isTop",value:function(){return window.top===window}},{key:"onTimeUpdate",value:function(e,t){this.viewModel.set("ready",!0),this.viewModel.set("currenttime",t)}},{key:"onPlay",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!1)}},{key:"onPause",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!0)}},{key:"onEnded",value:function(){this.viewModel.trigger("ended")}},{key:"onPong",value:function(){this.iframeReady=!0,this.viewModel.set("ready",!0),i.Radio.channel(this.channelName).trigger("loaded"),this.options.parentChannelName&&i.Radio.channel(this.options.parentChannelName).trigger("webplayer:loaded")}},{key:"onFullscreenChange",value:function(e,t,n){t?this.requestFs(n):this.cancelFs(n)}},{key:"requestFs",value:function(e){e||$("html").addClass("player-fullscreen")}},{key:"cancelFs",value:function(e){e||$("html").removeClass("player-fullscreen")}},{key:"showDeviceToggle",value:function(e){this.viewModel.trigger("showDevices",!!e)}},{key:"query",value:function(e,t){var n=this;if(this.iframeReady){var i=r.uniqueId("cveventsapi");this.eventsApi.one("".concat(o.QUERY_CALLBACK,"-").concat(i),(function(e,n){t(n)})),this.eventsApi.trigger(s.QUERY,e,i)}else this.listenToOnce(this.channelName,"loaded",(function(){return n.query(e,t)}))}},{key:"viewOptions",value:function(){return r.extend({},{styles:O.a,playSvg:h.a.getSvg(h.b.Play)},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.initWebPlayerEvents()}},{key:"onBeforeDestroy",value:function(){this.unbindWebPlayerEvents(),this.tracker&&this.tracker.destroy()}},{key:"elements",get:function(){return{iframe:"iframe"}}},{key:"name",get:function(){return"WebPlayerView"}},{key:"template",get:function(){return _.a}},{key:"className",get:function(){return"".concat(O.a.webPlayerContainer," embed-responsive embed-responsive-16by9")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"defaults",get:function(){return{captureAnalytics:!0,showDevicesButton:!1}}},{key:"viewModelDefaults",get:function(){return{width:640,height:360,autoplay:!!this.options.autoplay,parameters:{s:!1,bc:!1,bf:!1},webPlayerHost:this.options.webPlayerUrl}}}])&&I(t.prototype,n),u&&I(t,u),g}(c.a.Component)},1216: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,i){e.propertyIsEnumerable;var a,o=e.lambda,s=e.escapeExpression;return'<iframe class="'+s(o(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.webPlayer:a,t))+' embed-responsive-item" id="'+s(o(null!=(a=null!=t?t.options:t)?a.id:a,t))+'" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay; fullscreen" frameborder="0" width="'+s(o(null!=(a=null!=t?t.options:t)?a.width:a,t))+'" height="'+s(o(null!=(a=null!=t?t.options:t)?a.height:a,t))+'" src="'+s(o(null!=(a=null!=t?t.options:t)?a.url:a,t))+'"></iframe>\r\n<div class="'+s(o(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.svgContainer:a,t))+'">'+(null!=(a=o(null!=(a=null!=t?t.options:t)?a.playSvg:a,t))?a:"")+"</div>"},useData:!0})},1217:function(e,t,n){e.exports={webPlayerContainer:"_2S4VF",webPlayer:"_3569L",svgContainer:"_1WsxD"}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[1],{1030:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"k",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return b})),n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return k})),n.d(t,"f",(function(){return E})),n.d(t,"h",(function(){return m}));var r=n(2),i=n(1),a=n(19),o=n(29),s=n(3),u="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=i.reduce(e,(function(e,n,r){var a=t[r];return n||a?i.isObject(n)&&i.isObject(a)&&!i.isUndefined(n.id)&&n.id===a.id?e:i.isArray(n)?d(n,a).length?e.concat(r):e:i.isEqual(n,a)?e:e.concat(r):e}),[]);if(n.length)return i.object(i.map(n,(function(n){return i.isArray(t[n])?[n,d(e[n],t[n])]:[n,t[n]]})))}}function d(e,t){var n=[];return i.each(t,(function(t){var r=i.findWhere(e,{id:t.id});if(!i.isUndefined(r)||0!==Object.keys(t).length){var a=i.isUndefined(r)?t:l(r,t);a&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(a.id=t.id,n.push(a))))}})),n}var f={getChanges:function(e,t){var n=l(i.omit(e.toJSON(),c),i.omit(t.toJSON(),c));if(n)return i.object(i.map(i.keys(n),(function(e){return[e,f.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(i.isObject(t)&&i.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return i.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:r.a.ErrorHelper.throw(new a.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var a=["distributors","producers","directors","productionCompanies"];for(var o in i.each(i.keys(n),(function(e){a.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(i.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[o]&&e.associations[o]){var s=e.get(o);(s instanceof r.a.Model||s instanceof r.a.NestedModel)&&s.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return i.each(i.keys(e.toJSON()),(function(a){if(i.contains(n,a)){var o=e.get(a).map((function(e){return e.id})),s=t.get(a).map((function(e){return e.id})),u=i.filter(o,(function(e){return e&&!i.contains(s,e)}));u.length&&(r[a]=u)}})),r}},h={name:[{required:!0,msg:function(){return s.a.getPhrase(u,"videoTitleRequired")}},{maxLength:255,msg:function(){return s.a.getPhrase(u,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?s.a.getPhrase(u,"episodeNumberLessThanOne"):e&&e>2147483647?s.a.getPhrase(u,"episodeNumberExceeds"):e%1!=0?s.a.getPhrase(u,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?s.a.getPhrase(u,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":s.a.getPhrase(u,"seasonNoEpisodeNumber")}},p=o().year(),y={productionYear:function(e,t,n){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>p?s.a.getPhrase(u,"validProductionYears",{currentYear:p}):void 0):""}},v={name:[{required:!0,msg:function(){return s.a.getPhrase(u,"resourceNameRequired")}}]},g={suggestion:[{required:!0,msg:function(){return s.a.getPhrase(u,"suggestEditRequired")}},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return s.a.getPhrase(u,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"suggestEditReasonExceeds")}}]},m={number:function(e,t,n){return e?+e<1?s.a.getPhrase(u,"seasonLessThanOne"):+e>255?s.a.getPhrase(u,"seasonExceeds"):+e%1!=0?s.a.getPhrase(u,"seasonNotWhole"):"":s.a.getPhrase(u,"seasonRequired")}},b={empty:function(){return s.a.getPhrase(u,"suggestEditRatingRequired")},original:function(){return s.a.getPhrase(u,"suggestEditRatingInvalid")}},E={url:[{required:!0,pattern:"url",msg:function(){return s.a.getPhrase(u,"linkUrlRequired")}},{maxLength:65535,msg:function(){return s.a.getPhrase(u,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return s.a.getPhrase(u,"linkNameRequired")}},{maxLength:255,msg:function(){return s.a.getPhrase(u,"linkNameExceeds")}}]},P={name:[{maxLength:128,msg:function(){return s.a.getPhrase(u,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return s.a.getPhrase(u,"fieldValueExceeds")}}]},S={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":s.a.getPhrase(u,"fieldsInvalid"):""}};function k(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1031:function(e,t,n){"use strict";var r=n(1037),i=n(1030),a=(n(1035),n(3),n(1038)),o=(n(1040),n(1036)),s=n(82),u={getVideoDownloadUrl:function(e,t){return s.a.safeUrlConcat(s.a.makeHttps(e),"/download?token=".concat(t))}};n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return i.g})),n.d(t,"h",(function(){return i.j})),n.d(t,"g",(function(){return i.i})),n.d(t,"d",(function(){return i.f})),n.d(t,"f",(function(){return i.h})),n.d(t,"c",(function(){return a.a})),n.d(t,"i",(function(){return o.a})),n.d(t,"b",(function(){return u}))},1035:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),i=n(49),a=n(160),o=n(3),s="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.a.getPhrase(s,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(s,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?i.a.calculateDestinationFolderDepth(e,n,t)>a.a.MAX_FOLDER_DEPTH?o.a.getPhrase(s,"maxFolderDepth",{maxDepth:a.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(s,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,i=e.folder,a=e.collection;return t&&n?r.extend({},u,c(i,a)):t?u:n?c(i,a):void 0}},1036:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),i=n(3),a=n(186),o=n(1048),s=n(8);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var d={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 s.h.HostedLibrary:case s.h.CustomLibrary:return e.get("name");case s.h.Exchange:return i.a.getPhrase(l,"exchange");case s.h.Workspace:return i.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case s.h.HostedLibrary:case s.h.CustomLibrary:return"bg-info";case s.h.Exchange:return"bg-success";case s.h.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(u(t={},c.Pdf,r.b.FilePDF),u(t,c.Image,r.b.FileImg),u(t,c.PowerPoint,r.b.FilePowerpoint),u(t,c.Document,r.b.FileWord),u(t,c.Excel,r.b.FileExcel),u(t,c.Zip,r.b.FileZip),u(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return i.a.getPhrase(l,"pdf");case c.Image:return i.a.getPhrase(l,"image");case c.Document:return i.a.getPhrase(l,"document");case c.Excel:return i.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return i.a.getPhrase(l,"presentation");case c.Zip:return i.a.getPhrase(l,"zipArchive");case c.File:return i.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:d.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case a.e.VideoTitle:t+="VideoTitle";break;case a.e.Description:t+="Description";break;case a.e.Rating:t+="Rating";break;case a.e.SeriesTitle:t+="SeriesTitle";break;case a.e.Season:t+="SeasonNumber";break;case a.e.EpisodeNumber:t+="EpisodeNumber";break;case a.e.BroadcastDate:t+="BroadcastDate";break;case a.e.Channel:t+="Channel";break;case a.e.ProductionYear:t+="ProductionYear";break;case a.e.Distributors:t+="Distributors";break;case a.e.ProductionCompanies:t+="ProductionCompanies";break;case a.e.Directors:t+="Directors";break;case a.e.Producers:t+="Producers";break;case a.e.Other:t+="Other"}return i.a.getPhrase(l,t)}}},1037:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(13),a=n(3),o="libraryEditor.utils",s={isValidChapterTime:function(e,t,n,a){if(a){if(!r.isNumber(t))return u.StartTime.Invalid();if(t<0)return u.StartTime.Invalid();if(t>i.w.millisecondsToSeconds(n))return u.StartTime.Exceeds();if(a.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return u.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?u.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?u.Name.Exists():r.isEmpty(t.trim())?u.Name.Invalid():void 0:u.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},u={Name:{Invalid:function(){return a.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return a.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return a.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return a.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1038:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i="libraryEditor.utils",a={name:[{required:!0,msg:function(){return r.a.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(i,"libraryNameExceeds")}}]}},1040:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(1030),a=r.a.encloseNamespace("libraryEditor.utils"),o={name:[{required:!0,msg:function(){return a("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return a("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?a("episodeNumberLessThanOne"):e&&e>255?a("episodeNumberExceeds"):e&&e%1!=0?a("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?a("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":a("seasonNoEpisodeNumber")},productionYear:function(){return i.e.productionYear.apply(null,arguments)}}},1048:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return c}));var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=o(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(n(2).a.Collection)},1180:function(e,t,n){"use strict";var r=n(1),i=n(6),a=n(1210),o={PLAY:"cv-player-play",PAUSE:"cv-player-pause",VIDEO_END:"cv-player-ended",VOLUME_CHANGE:"cv-player-volumechange",CHAPTER_CHANGE:"cv-player-chapterchange",TIME_UPDATE:"cv-player-timeupdate",FULLSCREEN_CHANGE:"cv-player-fullscreenchange",CLIP_POINTS_UPDATE:"cv-player-cliptoolupdate",QUALITY_CHANGE:"cv-player-qualitychange",QUERY_CALLBACK:"cv-player-querycallback",SUBTITLES_ENABLED:"cv-player-hassubtitles",SUBTITLES:"cv-player-subtitles",PONG:"cv-player-pong",FULLSCREEN_CLICK:"_cvwp:fsc",DEVICES_BTN_CLICK:"_cvwp:devices:click"},s={PLAY:"cv-player-play",PAUSE:"cv-player-pause",SET_VOLUME:"cv-player-setvolume",NEXT_CHAPTER:"cv-player-nextchapter",PREV_CHAPTER:"cv-player-previouschapter",CHANGE_CHAPTER:"cv-player-changechapter",TOGGLE_CLIPPING:"cv-player-cliptooltoggle",SET_CLIP_POINTS:"cv-player-cliptoolset",CLIP:"cv-player-setclip",CLEAR_CLIP:"cv-player-clearclip",SEEK_TO:"cv-player-seekto",CONTROLS:"cv-player-showcontrols",SUBTITLES:"cv-player-subtitles",SET_QUALITY:"cv-player-setquality",QUERY:"cv-player-query",ADD_LISTENER:"cv-player-addlistener",REMOVE_LISTENER:"cv-player-removelistener",PING:"cv-player-ping",TOGGLE_DEVICES_BTN:"_cv:toggledevicesbtn",SHOW_DEVICES_BTN:"_cv:showdevicesbtn",SHOW_FS_BTN:"_cv:showfsbtn"},u={GET_AVAILABLE_QUALITIES:"getAvailableQualities",GET_CURRENT_QUALITY:"currentQuality",IS_PAUSED:"paused",GET_CURRENT_TIME:"currentTime",GET_CHAPTERS:"getChapters",HAS_METADATA_CHAPTERS:"hasMetadataChapters"},c=n(2),l=n(30),d=n(19),f=n(82),h=n(15),p=n(1025),y=n(0),v=function(e){return e instanceof c.a.Model||e instanceof c.a.Collection||e instanceof i.Model||e instanceof i.Collection?e.toJSON():e},g=n(4),m=n(119),b=n(42);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 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 S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(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 C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,i,a=k(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).captureInterval=60,t}return t=l,(n=[{key:"initialize",value:function(){this.eventsApi=this.options.eventsApi,this.options.video||c.a.ErrorHelper.throw(new d.a("Video logging requires video to be passed in.")),this.model=this.options.video,this.playbackStatus=this.getNewPlaybackStatus(),this.options.captureInterval&&(this.captureInterval=this.options.captureInterval),this.bindListeners(),this.getChapters()}},{key:"bindListeners",value:function(){this.eventsApi.on(o.TIME_UPDATE,r.bind(this.onPlayerTimeUpdate,this)),this.eventsApi.on(o.VIDEO_END,r.bind(this.onEnd,this)),this.eventsApi.on(o.FULLSCREEN_CHANGE,r.bind(this.onFullScreen,this)),this.eventsApi.on(o.CHAPTER_CHANGE,r.bind(this.onChapterChange,this))}},{key:"unbindListeners",value:function(){this.eventsApi.off(o.TIME_UPDATE),this.eventsApi.off(o.VIDEO_END),this.eventsApi.off(o.FULLSCREEN_CHANGE),this.eventsApi.off(o.CHAPTER_CHANGE)}},{key:"getChapters",value:function(){var e=this;this.queryWebplayer(u.GET_CHAPTERS,(function(t,n){e.setInitialChapter(n),e.setVideoDuration(n)}))}},{key:"queryWebplayer",value:function(e,t){var n=r.uniqueId(this.name),i="".concat(o.QUERY_CALLBACK,"-").concat(n);this.eventsApi.one(i,t),this.eventsApi.trigger(s.QUERY,e,n)}},{key:"onEnd",value:function(){this.setCurrentPosition(this.playbackStatus.totalDuration),this.logVerbose(g.n.Finish),this.resetPlaybackStatus()}},{key:"onFullScreen",value:function(e,t){var n=t?g.n.FullScreenEnter:g.n.FullScreenExit;this.logVerbose(n)}},{key:"onPlayerTimeUpdate",value:function(e,t){var n=this;this.queryWebplayer(u.IS_PAUSED,(function(e,r){n.updateTime(t,r)}))}},{key:"onChapterChange",value:function(e,t){r.isObject(t)&&this.setCurrentChapter(t.number)}},{key:"updateTime",value:function(e,t){var n=Math.floor(e);n&&n!==this.getCurrentPositon()&&(this.setCurrentPosition(n),t||(this.playbackHasStarted()||(this.logVerbose(g.n.Start),this.setPlaybackStarted()),this.incrementWatchTime(),this.getWatchTime()%this.captureInterval==0&&this.logVerbose(g.n.Playback),8===this.getWatchTime()&&this.logStream()))}},{key:"setInitialChapter",value:function(e){var t=r.find(e,(function(e){return!0===e.current}));r.isObject(t)&&this.setCurrentChapter(t.number)}},{key:"setVideoDuration",value:function(e){var t=r.reduce(e,(function(e,t){return e+t.duration}),0);!r.isNaN(t)&&r.isNumber(t)&&(this.playbackStatus.totalDuration=Math.floor(t))}},{key:"setCurrentPosition",value:function(e){this.playbackStatus.position=e}},{key:"getCurrentPositon",value:function(){return this.playbackStatus.position}},{key:"setCurrentChapter",value:function(e){this.playbackStatus.chapter=e}},{key:"setPlaybackStarted",value:function(){this.playbackStatus.hasStarted=!0}},{key:"playbackHasStarted",value:function(){return this.playbackStatus.hasStarted}},{key:"getWatchTime",value:function(){return this.playbackStatus.totalWatched}},{key:"incrementWatchTime",value:function(){this.playbackStatus.totalWatched+=1}},{key:"getNewPlaybackStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.duration,n=e.watched;return{position:0,chapter:0,hasStarted:!1,totalWatched:n||0,totalDuration:t||0}}},{key:"resetPlaybackStatus",value:function(){var e={duration:this.playbackStatus.totalDuration,watched:this.playbackStatus.totalWatched};this.playbackStatus=this.getNewPlaybackStatus(e)}},{key:"unbindUnload",value:function(){$(window).off("unload")}},{key:"bindUnload",value:function(){$(window).on("unload",r.bind(this.logUnload,this))}},{key:"logUnload",value:function(){this.playbackHasStarted()&&this.logVerbose(g.n.Terminate)}},{key:"logStream",value:function(){var e=b.a.buildActionContext(this.options.analyticsOptions);m.a.log(g.q.Stream,this.getPlaybackData(),e),m.a.log(g.q.StreamRaw,this.getStreamRawData(),e)}},{key:"logVerbose",value:function(e){}},{key:"getPlaybackData",value:function(){return{model:v(this.model),playbackStatus:r.omit(this.playbackStatus,"hasStarted")}}},{key:"getStreamRawData",value:function(){return{id:v(this.model).id.toString()}}},{key:"onDestroy",value:function(){this.unbindListeners(),this.unbindUnload(),this.logUnload()}},{key:"name",get:function(){return"VideoAnalyticsTracker"}}])&&P(t.prototype,n),i&&P(t,i),l}(c.a.Service),N=n(1211),_=n.n(N),A=n(1212),O=n.n(A);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){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 L(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=U(e);if(t){var i=U(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(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 U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return M}));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&&D(e,t)}(g,e);var t,n,u,v=L(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),v.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.enableIeFs=this.isTop(),this.getViewModel()}},{key:"seekTo",value:function(e){this.eventsApi&&this.eventsApi.trigger(s.SEEK_TO,e)}},{key:"seekToChapter",value:function(e){this.eventsApi&&this.eventsApi.trigger("cv-player-changechapter",e)}},{key:"getViewModel",value:function(){var e=this.model.get("id");e||(e=this.model.get("trackingCode")),this.viewModel=l.a.get("".concat(y.z.NAME,"-").concat(e)),this.viewModel.get("initialized")||this.initViewModel(),this.setUrl()}},{key:"initViewModel",value:function(){var e=this.model.pick("id");e.id||(e=this.model.pick("trackingCode")),e.id||e.trackingCode||c.a.ErrorHelper.throw(new d.a("Must provide either a master id or a tracking code to ".concat(this.name)));var t=r.extend({},this.viewModelDefaults,e,this.viewModel.toJSON(),{initialized:!0});this.viewModel.set(t)}},{key:"initWebPlayerEvents",value:function(){if(this.enableIeFs){var e=this.getUI("iframe");e&&0!==e.length&&e.on("load",this.bindWebPlayerEvents.bind(this))}}},{key:"bindWebPlayerEvents",value:function(){if(!this.iframeReady){var e=this.getUI("iframe").get(0);this.eventsApi=new p.CVEventsApi(e.contentWindow),this.eventsApi.on(o.PONG,this.onPong.bind(this)),this.eventsApi.trigger(s.PING),this.eventsApi.on(o.FULLSCREEN_CLICK,this.onFullscreenChange.bind(this)),this.eventsApi.trigger(s.SHOW_FS_BTN),this.eventsApi.on(o.TIME_UPDATE,this.onTimeUpdate.bind(this)),this.eventsApi.on(o.PLAY,this.onPlay.bind(this)),this.eventsApi.on(o.PAUSE,this.onPause.bind(this)),this.eventsApi.on(o.VIDEO_END,this.onEnded.bind(this)),this.options.showDevicesButton&&(this.eventsApi.on(o.DEVICES_BTN_CLICK,this.showDeviceToggle.bind(this)),this.eventsApi.trigger(s.SHOW_DEVICES_BTN)),this.options.captureAnalytics&&(this.tracker=new T({video:this.model.toJSON(),eventsApi:this.eventsApi,analyticsOptions:this.options.analyticsOptions}))}}},{key:"unbindWebPlayerEvents",value:function(){this.eventsApi&&(this.eventsApi.off(o.FULLSCREEN_CLICK),this.eventsApi.off(o.TIME_UPDATE),this.eventsApi.off(o.PLAY),this.eventsApi.off(o.PAUSE),this.eventsApi.off(o.VIDEO_END),this.eventsApi.off(o.PONG),this.eventsApi.off(o.DEVICES_BTN_CLICK))}},{key:"setUrl",value:function(){var e="".concat(this.viewModel.get("webPlayerHost"),"embed"),t=r.omit(this.viewModel.get("parameters"),["p","vid"])||{};t.a=!!this.viewModel.get("autoplay");var n=this.viewModel.get("id");n&&(t.vid=n);var i=this.viewModel.get("trackingCode");i&&(t.p=i),this.viewModel.get("currenttime")&&(t.t=this.viewModel.get("currenttime"),t.a=!this.viewModel.get("paused"));var o=f.a.urlBuilder(e,t),s=Object(a.signUrl)(o,{timestamp:!0});this.viewModel.set({url:s})}},{key:"isTop",value:function(){return window.top===window}},{key:"onTimeUpdate",value:function(e,t){this.viewModel.set("ready",!0),this.viewModel.set("currenttime",t)}},{key:"onPlay",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!1)}},{key:"onPause",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!0)}},{key:"onEnded",value:function(){this.viewModel.trigger("ended")}},{key:"onPong",value:function(){this.iframeReady=!0,this.viewModel.set("ready",!0),i.Radio.channel(this.channelName).trigger("loaded"),this.options.parentChannelName&&i.Radio.channel(this.options.parentChannelName).trigger("webplayer:loaded")}},{key:"onFullscreenChange",value:function(e,t,n){t?this.requestFs(n):this.cancelFs(n)}},{key:"requestFs",value:function(e){e||$("html").addClass("player-fullscreen")}},{key:"cancelFs",value:function(e){e||$("html").removeClass("player-fullscreen")}},{key:"showDeviceToggle",value:function(e){this.viewModel.trigger("showDevices",!!e)}},{key:"query",value:function(e,t){var n=this;if(this.iframeReady){var i=r.uniqueId("cveventsapi");this.eventsApi.one("".concat(o.QUERY_CALLBACK,"-").concat(i),(function(e,n){t(n)})),this.eventsApi.trigger(s.QUERY,e,i)}else this.listenToOnce(this.channelName,"loaded",(function(){return n.query(e,t)}))}},{key:"viewOptions",value:function(){return r.extend({},{styles:O.a,playSvg:h.a.getSvg(h.b.Play)},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.initWebPlayerEvents()}},{key:"onBeforeDestroy",value:function(){this.unbindWebPlayerEvents(),this.tracker&&this.tracker.destroy()}},{key:"elements",get:function(){return{iframe:"iframe"}}},{key:"name",get:function(){return"WebPlayerView"}},{key:"template",get:function(){return _.a}},{key:"className",get:function(){return"".concat(O.a.webPlayerContainer," embed-responsive embed-responsive-16by9")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"defaults",get:function(){return{captureAnalytics:!0,showDevicesButton:!1}}},{key:"viewModelDefaults",get:function(){return{width:640,height:360,autoplay:!!this.options.autoplay,parameters:{s:!1,bc:!1,bf:!1},webPlayerHost:this.options.webPlayerUrl}}}])&&I(t.prototype,n),u&&I(t,u),g}(c.a.Component)},1211: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,i){e.propertyIsEnumerable;var a,o=e.lambda,s=e.escapeExpression;return'<iframe class="'+s(o(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.webPlayer:a,t))+' embed-responsive-item" id="'+s(o(null!=(a=null!=t?t.options:t)?a.id:a,t))+'" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay; fullscreen" frameborder="0" width="'+s(o(null!=(a=null!=t?t.options:t)?a.width:a,t))+'" height="'+s(o(null!=(a=null!=t?t.options:t)?a.height:a,t))+'" src="'+s(o(null!=(a=null!=t?t.options:t)?a.url:a,t))+'"></iframe>\r\n<div class="'+s(o(null!=(a=null!=(a=null!=t?t.options:t)?a.styles:a)?a.svgContainer:a,t))+'">'+(null!=(a=o(null!=(a=null!=t?t.options:t)?a.playSvg:a,t))?a:"")+"</div>"},useData:!0})},1212:function(e,t,n){e.exports={webPlayerContainer:"_2S4VF",webPlayer:"_3569L",svgContainer:"_1WsxD"}}}]);