@clickview/library-editor 1.1.27-dev.1 → 1.1.27-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/library-editor-app.css +7 -0
- package/dist/en.json +1 -1
- package/dist/scripts/0-50fae6c404.chunk.js +1 -0
- package/dist/scripts/1-35adeca043.chunk.js +1 -0
- package/dist/scripts/10-e3de119a32.chunk.js +1 -0
- package/dist/scripts/{11-9f5f0c25dc.chunk.js → 11-c1c04528d4.chunk.js} +1 -1
- package/dist/scripts/12-fdb4fd076b.chunk.js +1 -0
- package/dist/scripts/13-b71e7a002a.chunk.js +1 -0
- package/dist/scripts/14-be81c6b0a6.chunk.js +1 -0
- package/dist/scripts/15-bbe23da473.chunk.js +1 -0
- package/dist/scripts/{16-0971cabfc8.chunk.js → 16-45b853d9bc.chunk.js} +1 -1
- package/dist/scripts/{17-f364868870.chunk.js → 17-17e648d740.chunk.js} +1 -1
- package/dist/scripts/{2-cd7f1d10b5.chunk.js → 2-0c5c3204bb.chunk.js} +1 -1
- package/dist/scripts/20-fc03a8058d.chunk.js +1 -0
- package/dist/scripts/21-bf788bdc47.chunk.js +1 -0
- package/dist/scripts/22-c309ac8872.chunk.js +1 -0
- package/dist/scripts/23-4e4a6eef7f.chunk.js +1 -0
- package/dist/scripts/24-3dbcc6079d.chunk.js +1 -0
- package/dist/scripts/25-8f6c37473c.chunk.js +1 -0
- package/dist/scripts/26-e7665934ea.chunk.js +1 -0
- package/dist/scripts/27-ece4a707c2.chunk.js +1 -0
- package/dist/scripts/28-f7b0b6ca0a.chunk.js +1 -0
- package/dist/scripts/29-7b0d55eef4.chunk.js +1 -0
- package/dist/scripts/{3-4694b66aa5.chunk.js → 3-c977fc76a1.chunk.js} +1 -1
- package/dist/scripts/30-07198d4b80.chunk.js +1 -0
- package/dist/scripts/31-558e4b9448.chunk.js +1 -0
- package/dist/scripts/{32-a1543ffe27.chunk.js → 32-66bedea19f.chunk.js} +1 -1
- package/dist/scripts/{33-9685703df6.chunk.js → 33-1c0a05f5ad.chunk.js} +1 -1
- package/dist/scripts/34-0261454401.chunk.js +1 -0
- package/dist/scripts/35-80afabad2f.chunk.js +1 -0
- package/dist/scripts/36-0945816998.chunk.js +1 -0
- package/dist/scripts/{37-80589d542e.chunk.js → 37-f9eaead96b.chunk.js} +1 -1
- package/dist/scripts/{38-7e88534f67.chunk.js → 38-ee287180e0.chunk.js} +1 -1
- package/dist/scripts/{39-99824f3b64.chunk.js → 39-875e8edab4.chunk.js} +1 -1
- package/dist/scripts/{4-ad1e4b43da.chunk.js → 4-30febbcd74.chunk.js} +1 -1
- package/dist/scripts/{40-dbfd665c74.chunk.js → 40-9e6fe972eb.chunk.js} +1 -1
- package/dist/scripts/{41-25fbac3d17.chunk.js → 41-8e127683ef.chunk.js} +1 -1
- package/dist/scripts/42-26e2b69676.chunk.js +1 -0
- package/dist/scripts/{43-5ef29feb2c.chunk.js → 43-cd5d61f503.chunk.js} +1 -1
- package/dist/scripts/{44-223f602431.chunk.js → 44-50adae17aa.chunk.js} +1 -1
- package/dist/scripts/{45-344492a36f.chunk.js → 45-d6cc086a40.chunk.js} +1 -1
- package/dist/scripts/{46-9ca7afd6a4.chunk.js → 46-c3131aa1a1.chunk.js} +1 -1
- package/dist/scripts/{47-ac0c9c5ce1.chunk.js → 47-53cc918c2d.chunk.js} +1 -1
- package/dist/scripts/{48-6bf590b9a0.chunk.js → 48-e37164e96c.chunk.js} +1 -1
- package/dist/scripts/49-f18c7b7f2d.chunk.js +1 -0
- package/dist/scripts/5-ae2739be4b.chunk.js +1 -0
- package/dist/scripts/{50-30ba08212e.chunk.js → 50-77cc32280d.chunk.js} +1 -1
- package/dist/scripts/{51-828972defb.chunk.js → 51-718582f5a0.chunk.js} +1 -1
- package/dist/scripts/{52-b2acf3e742.chunk.js → 52-8bab7f4183.chunk.js} +1 -1
- package/dist/scripts/{53-5d6ea94871.chunk.js → 53-051f6fefda.chunk.js} +1 -1
- package/dist/scripts/{54-2d8bd6fde0.chunk.js → 54-54ab674027.chunk.js} +1 -1
- package/dist/scripts/{55-4a8d360746.chunk.js → 55-5620cb1984.chunk.js} +1 -1
- package/dist/scripts/{56-ad12ebab5f.chunk.js → 56-d515b7881b.chunk.js} +1 -1
- package/dist/scripts/{57-53b89c2ef0.chunk.js → 57-34cc7eeda7.chunk.js} +1 -1
- package/dist/scripts/{58-b246abe78c.chunk.js → 58-095cc86c38.chunk.js} +1 -1
- package/dist/scripts/{59-19290686e0.chunk.js → 59-88d4d70542.chunk.js} +1 -1
- package/dist/scripts/6-64fc0b404b.chunk.js +1 -0
- package/dist/scripts/{60-0c075e7b5c.chunk.js → 60-8e040e4d8f.chunk.js} +1 -1
- package/dist/scripts/{61-2725bbfab2.chunk.js → 61-9acfcad39c.chunk.js} +1 -1
- package/dist/scripts/{62-472d10a18e.chunk.js → 62-ab4cf2e18e.chunk.js} +1 -1
- package/dist/scripts/{63-7d00e50441.chunk.js → 63-be24981a1c.chunk.js} +1 -1
- package/dist/scripts/{64-1b42f78644.chunk.js → 64-2acf78f1d5.chunk.js} +1 -1
- package/dist/scripts/{65-14af88c745.chunk.js → 65-37aed4a31d.chunk.js} +1 -1
- package/dist/scripts/{66-bc274df13a.chunk.js → 66-bb4cde602a.chunk.js} +1 -1
- package/dist/scripts/{67-d1edef09d6.chunk.js → 67-04c0737fd2.chunk.js} +1 -1
- package/dist/scripts/{68-52468201b9.chunk.js → 68-436667d096.chunk.js} +1 -1
- package/dist/scripts/{69-b681e9a99c.chunk.js → 69-4dd38a6827.chunk.js} +1 -1
- package/dist/scripts/{7-2807a666bc.chunk.js → 7-5194b748c8.chunk.js} +1 -1
- package/dist/scripts/{70-d4018838a9.chunk.js → 70-d52ccba56d.chunk.js} +1 -1
- package/dist/scripts/{71-29cce07c7f.chunk.js → 71-b7f95045b5.chunk.js} +1 -1
- package/dist/scripts/{72-6f83214b8d.chunk.js → 72-b1eb475df0.chunk.js} +1 -1
- package/dist/scripts/{8-8f44e8bfc4.chunk.js → 8-d2d772bc05.chunk.js} +1 -1
- package/dist/scripts/9-160db7db67.chunk.js +1 -0
- package/dist/scripts/bundle-0eadf8a695.min.js +8 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-292fbd05c8.min.js +1 -0
- package/package.json +4 -4
- package/dist/css/1.chunk.css.map +0 -1
- package/dist/css/10.chunk.css.map +0 -1
- package/dist/css/11.chunk.css +0 -137
- package/dist/css/11.chunk.css.map +0 -1
- package/dist/css/12.chunk.css.map +0 -1
- package/dist/css/13.chunk.css.map +0 -1
- package/dist/css/14.chunk.css.map +0 -1
- package/dist/css/16.chunk.css.map +0 -1
- package/dist/css/17.chunk.css.map +0 -1
- package/dist/css/18.chunk.css +0 -20
- package/dist/css/18.chunk.css.map +0 -1
- package/dist/css/2.chunk.css +0 -145
- package/dist/css/2.chunk.css.map +0 -1
- package/dist/css/21.chunk.css.map +0 -1
- package/dist/css/22.chunk.css.map +0 -1
- package/dist/css/23.chunk.css.map +0 -1
- package/dist/css/25.chunk.css.map +0 -1
- package/dist/css/26.chunk.css.map +0 -1
- package/dist/css/28.chunk.css.map +0 -1
- package/dist/css/29.chunk.css.map +0 -1
- package/dist/css/3.chunk.css.map +0 -1
- package/dist/css/30.chunk.css.map +0 -1
- package/dist/css/31.chunk.css.map +0 -1
- package/dist/css/32.chunk.css.map +0 -1
- package/dist/css/33.chunk.css.map +0 -1
- package/dist/css/34.chunk.css +0 -21
- package/dist/css/34.chunk.css.map +0 -1
- package/dist/css/35.chunk.css +0 -20
- package/dist/css/35.chunk.css.map +0 -1
- package/dist/css/36.chunk.css +0 -14
- package/dist/css/36.chunk.css.map +0 -1
- package/dist/css/37.chunk.css.map +0 -1
- package/dist/css/38.chunk.css.map +0 -1
- package/dist/css/40.chunk.css.map +0 -1
- package/dist/css/41.chunk.css.map +0 -1
- package/dist/css/42.chunk.css.map +0 -1
- package/dist/css/43.chunk.css.map +0 -1
- package/dist/css/44.chunk.css.map +0 -1
- package/dist/css/45.chunk.css.map +0 -1
- package/dist/css/46.chunk.css.map +0 -1
- package/dist/css/47.chunk.css.map +0 -1
- package/dist/css/48.chunk.css.map +0 -1
- package/dist/css/49.chunk.css +0 -35
- package/dist/css/49.chunk.css.map +0 -1
- package/dist/css/50.chunk.css.map +0 -1
- package/dist/css/51.chunk.css.map +0 -1
- package/dist/css/52.chunk.css +0 -66
- package/dist/css/52.chunk.css.map +0 -1
- package/dist/css/55.chunk.css.map +0 -1
- package/dist/css/56.chunk.css.map +0 -1
- package/dist/css/58.chunk.css.map +0 -1
- package/dist/css/59.chunk.css.map +0 -1
- package/dist/css/6.chunk.css.map +0 -1
- package/dist/css/60.chunk.css +0 -18
- package/dist/css/60.chunk.css.map +0 -1
- package/dist/css/62.chunk.css.map +0 -1
- package/dist/css/63.chunk.css +0 -170
- package/dist/css/63.chunk.css.map +0 -1
- package/dist/css/67.chunk.css +0 -78
- package/dist/css/67.chunk.css.map +0 -1
- package/dist/css/68.chunk.css +0 -17
- package/dist/css/68.chunk.css.map +0 -1
- package/dist/css/69.chunk.css +0 -17
- package/dist/css/69.chunk.css.map +0 -1
- package/dist/css/7.chunk.css.map +0 -1
- package/dist/css/70.chunk.css +0 -23
- package/dist/css/70.chunk.css.map +0 -1
- package/dist/css/71.chunk.css +0 -40
- package/dist/css/71.chunk.css.map +0 -1
- package/dist/css/72.chunk.css +0 -16
- package/dist/css/72.chunk.css.map +0 -1
- package/dist/css/73.chunk.css +0 -37
- package/dist/css/73.chunk.css.map +0 -1
- package/dist/css/74.chunk.css +0 -29
- package/dist/css/74.chunk.css.map +0 -1
- package/dist/css/75.chunk.css +0 -6
- package/dist/css/75.chunk.css.map +0 -1
- package/dist/css/76.chunk.css +0 -6
- package/dist/css/76.chunk.css.map +0 -1
- package/dist/css/8.chunk.css.map +0 -1
- package/dist/css/library-editor-app.css.map +0 -1
- package/dist/libs/analytics/src/Analytics.d.ts +0 -10
- package/dist/libs/analytics/src/AnalyticsHelper.d.ts +0 -30
- package/dist/libs/analytics/src/AnalyticsService.d.ts +0 -52
- package/dist/libs/analytics/src/clients/BaseAnalyticsClient.d.ts +0 -24
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +0 -48
- package/dist/libs/analytics/src/clients/DebuggerClient.d.ts +0 -7
- package/dist/libs/analytics/src/clients/GoogleAnalyticsClient.d.ts +0 -22
- package/dist/libs/analytics/src/constants/ApplicationOptionsKey.d.ts +0 -1
- package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +0 -7
- package/dist/libs/analytics/src/constants/EventFirehose.d.ts +0 -4
- package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +0 -3
- package/dist/libs/analytics/src/constants/Regions.d.ts +0 -6
- package/dist/libs/analytics/src/constants/Services.d.ts +0 -4
- package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +0 -19
- package/dist/libs/analytics/src/enrichers/CoreContextEnricher.d.ts +0 -22
- package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +0 -10
- package/dist/libs/analytics/src/enums/CountryCode.d.ts +0 -5
- package/dist/libs/analytics/src/enums/RegionName.d.ts +0 -5
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +0 -317
- package/dist/libs/analytics/src/interfaces/Config.d.ts +0 -3
- package/dist/libs/analytics/src/interfaces/Folder.d.ts +0 -3
- package/dist/libs/analytics/src/interfaces/HashObject.d.ts +0 -3
- package/dist/libs/analytics/src/interfaces/Owner.d.ts +0 -3
- package/dist/libs/analytics/src/interfaces/Playlist.d.ts +0 -3
- package/dist/libs/analytics/src/interfaces/Rating.d.ts +0 -4
- package/dist/libs/analytics/src/interfaces/Region.d.ts +0 -5
- package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +0 -5
- package/dist/libs/analytics/src/interfaces/Resource.d.ts +0 -5
- package/dist/libs/analytics/src/interfaces/Series.d.ts +0 -3
- package/dist/libs/analytics/src/interfaces/Subtitle.d.ts +0 -4
- package/dist/libs/analytics/src/interfaces/User.d.ts +0 -17
- package/dist/libs/analytics/src/interfaces/VersionData.d.ts +0 -4
- package/dist/libs/analytics/src/interfaces/Video.d.ts +0 -16
- package/dist/libs/analytics/src/interfaces/index.d.ts +0 -15
- package/dist/libs/analytics/src/interfaces/primitives/BaseObject.d.ts +0 -7
- package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +0 -49
- package/dist/libs/analytics/src/models/CollectionEvent.d.ts +0 -61
- package/dist/libs/analytics/src/services/ContextService.d.ts +0 -19
- package/dist/libs/analytics/src/transport/EventTransport.d.ts +0 -39
- package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +0 -6
- package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +0 -14
- package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +0 -19
- package/dist/libs/analytics/src/utils/ObjectFormatHelper.d.ts +0 -5
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +0 -4
- package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +0 -10
- package/dist/libs/analytics/src/utils/UrlHelper.d.ts +0 -3
- package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +0 -10
- package/dist/libs/analytics/src/utils/VideoAnalyticsTracker.d.ts +0 -51
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
- package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
- package/dist/libs/common/src/backbone/constants/Caches.d.ts +0 -3
- package/dist/libs/common/src/backbone/constants/CommonChannels.d.ts +0 -5
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -4
- package/dist/libs/common/src/backbone/constants/DataProviders.d.ts +0 -4
- package/dist/libs/common/src/backbone/constants/Webplayer.d.ts +0 -65
- package/dist/libs/common/src/backbone/core/AppLink.d.ts +0 -37
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +0 -103
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +0 -76
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +0 -6
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +0 -7
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +0 -16
- package/dist/libs/common/src/backbone/core/BaseError.d.ts +0 -18
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +0 -11
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +0 -27
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +0 -21
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +0 -10
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +0 -131
- package/dist/libs/common/src/backbone/core/EventNames.d.ts +0 -16
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +0 -31
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +0 -3
- package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +0 -23
- package/dist/libs/common/src/backbone/core/Middleware.d.ts +0 -10
- package/dist/libs/common/src/backbone/core/Shell.d.ts +0 -79
- package/dist/libs/common/src/backbone/core/Types.d.ts +0 -12
- package/dist/libs/common/src/backbone/core/index.d.ts +0 -18
- package/dist/libs/common/src/backbone/enums/DataServiceErrorType.d.ts +0 -8
- package/dist/libs/common/src/backbone/enums/HttpVerbs.d.ts +0 -6
- package/dist/libs/common/src/backbone/errors/DevError.d.ts +0 -4
- package/dist/libs/common/src/backbone/errors/NotImplementedError.d.ts +0 -5
- package/dist/libs/common/src/backbone/index.d.ts +0 -2
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +0 -19
- package/dist/libs/common/src/backbone/interfaces/ChainableDataService.d.ts +0 -9
- package/dist/libs/common/src/backbone/interfaces/DataCache.d.ts +0 -8
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +0 -15
- package/dist/libs/common/src/backbone/interfaces/DataServiceError.d.ts +0 -7
- package/dist/libs/common/src/backbone/interfaces/DataServiceRequests.d.ts +0 -218
- package/dist/libs/common/src/backbone/interfaces/Pagination.d.ts +0 -33
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +0 -38
- package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +0 -9
- package/dist/libs/common/src/backbone/interfaces/index.d.ts +0 -9
- package/dist/libs/common/src/backbone/runtime/InputValidation.d.ts +0 -2
- package/dist/libs/common/src/backbone/services/BaseAlertService.d.ts +0 -69
- package/dist/libs/common/src/backbone/services/BaseDataService.d.ts +0 -82
- package/dist/libs/common/src/backbone/services/EnvironmentVariables.d.ts +0 -13
- package/dist/libs/common/src/backbone/services/InstanceManager.d.ts +0 -33
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +0 -22
- package/dist/libs/common/src/backbone/services/ViewModelService.d.ts +0 -68
- package/dist/libs/common/src/backbone/services/caches/FifoMemoryCache.d.ts +0 -20
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +0 -31
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +0 -46
- package/dist/libs/common/src/backbone/utils/ConcurrencyHelper.d.ts +0 -13
- package/dist/libs/common/src/backbone/utils/DataServiceErrorHelper.d.ts +0 -2
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +0 -8
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +0 -58
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +0 -14
- package/dist/libs/common/src/backbone/utils/UserAgentHelper.d.ts +0 -7
- package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +0 -6
- package/dist/libs/common/src/react/flight/enums/index.d.ts +0 -1
- package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +0 -22
- package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +0 -4
- package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +0 -29
- package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +0 -15
- package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +0 -3
- package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +0 -8
- package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +0 -4
- package/dist/libs/common/src/react/interfaces/HashObject.d.ts +0 -3
- package/dist/libs/common/src/react/interfaces/index.d.ts +0 -4
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +0 -50
- package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +0 -10
- package/dist/libs/common/src/react/utils/TextHelper.d.ts +0 -9
- package/dist/libs/shared/src/apps/notifications/collections/NotificationCollection.d.ts +0 -9
- package/dist/libs/shared/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +0 -23
- package/dist/libs/shared/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +0 -26
- package/dist/libs/shared/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +0 -15
- package/dist/libs/shared/src/apps/notifications/enums/AppLinkReferrer.d.ts +0 -3
- package/dist/libs/shared/src/apps/notifications/enums/NotificationActions.d.ts +0 -3
- package/dist/libs/shared/src/apps/notifications/enums/NotificationAlertType.d.ts +0 -7
- package/dist/libs/shared/src/apps/notifications/enums/NotificationAppLinkModules.d.ts +0 -7
- package/dist/libs/shared/src/apps/notifications/enums/NotificationModules.d.ts +0 -4
- package/dist/libs/shared/src/apps/notifications/enums/NotificationStatus.d.ts +0 -5
- package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +0 -16
- package/dist/libs/shared/src/apps/notifications/interfaces/NotificationCollectionRequest.d.ts +0 -5
- package/dist/libs/shared/src/apps/notifications/interfaces/index.d.ts +0 -1
- package/dist/libs/shared/src/apps/notifications/models/Notification.d.ts +0 -6
- package/dist/libs/shared/src/apps/notifications/services/NotificationDataService.d.ts +0 -14
- package/dist/libs/shared/src/apps/notifications/services/NotificationService.d.ts +0 -33
- package/dist/libs/shared/src/apps/notifications/services/NotificationSocketService.d.ts +0 -8
- package/dist/libs/shared/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +0 -4
- package/dist/libs/shared/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +0 -10
- package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -18
- package/dist/libs/shared/src/apps/notifications/views/header/NotificationHeaderView.d.ts +0 -16
- package/dist/libs/shared/src/apps/notifications/views/notifications/NotificationsView.d.ts +0 -27
- package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +0 -34
- package/dist/libs/shared/src/apps/search/components/confirm-selection/ConfirmSelectionComponent.d.ts +0 -12
- package/dist/libs/shared/src/apps/search/components/instant-search/classification/ClassificationSearchResultComponent.d.ts +0 -17
- package/dist/libs/shared/src/apps/search/components/instant-search/index.d.ts +0 -5
- package/dist/libs/shared/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +0 -15
- package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +0 -14
- package/dist/libs/shared/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +0 -9
- package/dist/libs/shared/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +0 -18
- package/dist/libs/shared/src/apps/search/components/search-context/SearchContextComponent.d.ts +0 -18
- package/dist/libs/shared/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +0 -11
- package/dist/libs/shared/src/apps/search/constants/TypeaheadConfiguration.d.ts +0 -12
- package/dist/libs/shared/src/apps/search/enums/FilterTypes.d.ts +0 -14
- package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +0 -18
- package/dist/libs/shared/src/apps/search/enums/SearchTypes.d.ts +0 -8
- package/dist/libs/shared/src/apps/search/interfaces/SearchTypes.d.ts +0 -26
- package/dist/libs/shared/src/apps/search/interfaces/index.d.ts +0 -1
- package/dist/libs/shared/src/apps/search/services/ContextualSearchService.d.ts +0 -34
- package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +0 -22
- package/dist/libs/shared/src/apps/search/utils/RecentSearchHelper.d.ts +0 -12
- package/dist/libs/shared/src/apps/search/utils/SearchHelper.d.ts +0 -5
- package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +0 -75
- package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +0 -110
- package/dist/libs/shared/src/apps/search/views/search-bar/templates/index.d.ts +0 -9
- package/dist/libs/shared/src/apps/upload/collections/PendingItemsCollection.d.ts +0 -8
- package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +0 -39
- package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +0 -4
- package/dist/libs/shared/src/apps/upload/enums/PendingItemStatus.d.ts +0 -5
- package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +0 -15
- package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +0 -7
- package/dist/libs/shared/src/apps/upload/services/BasePendingItemsService.d.ts +0 -26
- package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +0 -30
- package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +0 -66
- package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +0 -9
- package/dist/libs/shared/src/apps/upload/utils/PendingItemsHelper.d.ts +0 -9
- package/dist/libs/shared/src/constants/AppVariables.d.ts +0 -5
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +0 -8
- package/dist/libs/shared/src/constants/CacheDurations.d.ts +0 -4
- package/dist/libs/shared/src/constants/DataPrefixes.d.ts +0 -12
- package/dist/libs/shared/src/constants/RadioChannels.d.ts +0 -20
- package/dist/libs/shared/src/constants/SharedServices.d.ts +0 -25
- package/dist/libs/shared/src/enums/ClassificationType.d.ts +0 -4
- package/dist/libs/shared/src/enums/CountryCode.d.ts +0 -5
- package/dist/libs/shared/src/enums/CurationStatus.d.ts +0 -12
- package/dist/libs/shared/src/enums/CurriculumType.d.ts +0 -6
- package/dist/libs/shared/src/enums/CustomerType.d.ts +0 -11
- package/dist/libs/shared/src/enums/GlanceFormat.d.ts +0 -3
- package/dist/libs/shared/src/enums/Images.d.ts +0 -26
- package/dist/libs/shared/src/enums/LibraryType.d.ts +0 -5
- package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +0 -8
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +0 -20
- package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +0 -4
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +0 -5
- package/dist/libs/shared/src/enums/PartialLoading.d.ts +0 -4
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +0 -5
- package/dist/libs/shared/src/enums/PlaylistPrivacy.d.ts +0 -5
- package/dist/libs/shared/src/enums/PresentationType.d.ts +0 -4
- package/dist/libs/shared/src/enums/ResourceFileType.d.ts +0 -9
- package/dist/libs/shared/src/enums/SettingKind.d.ts +0 -4
- package/dist/libs/shared/src/enums/SettingName.d.ts +0 -17
- package/dist/libs/shared/src/enums/SubtitleExtractionOptions.d.ts +0 -4
- package/dist/libs/shared/src/enums/ThemeType.d.ts +0 -3
- package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +0 -4
- package/dist/libs/shared/src/enums/UserGroup.d.ts +0 -5
- package/dist/libs/shared/src/enums/UserRole.d.ts +0 -15
- package/dist/libs/shared/src/enums/VideoOrigin.d.ts +0 -14
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +0 -10
- package/dist/libs/shared/src/errors/primitives/AlertError.d.ts +0 -4
- package/dist/libs/shared/src/errors/primitives/DialogError.d.ts +0 -9
- package/dist/libs/shared/src/errors/primitives/ErrorPageError.d.ts +0 -7
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +0 -87
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +0 -24
- package/dist/libs/shared/src/images/svg/arrows/index.d.ts +0 -9
- package/dist/libs/shared/src/images/svg/index.d.ts +0 -2
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +0 -36
- package/dist/libs/shared/src/images/svg/player/index.d.ts +0 -14
- package/dist/libs/shared/src/images/svg/settings.d.ts +0 -1
- package/dist/libs/shared/src/images/svg/status/index.d.ts +0 -13
- package/dist/libs/shared/src/interfaces/AppLinkWithLabel.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/DialogOptions.d.ts +0 -13
- package/dist/libs/shared/src/interfaces/ImageUrls.d.ts +0 -16
- package/dist/libs/shared/src/interfaces/QueryParams.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/WidgetContext.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +0 -16
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +0 -17
- package/dist/libs/shared/src/interfaces/app-variables/index.d.ts +0 -2
- package/dist/libs/shared/src/interfaces/collections/AudienceCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/CategoryCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/ClipCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/CompanyCollection.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/collections/CustomerCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/FolderCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/LibraryCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/LinkCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/PersonCollection.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/collections/PlaylistCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/PresentationAudienceCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/ResourceCollection.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/collections/SeriesCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/collections/TagCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/UserCollection.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/collections/VideoCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/VideoHistoryCollection.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/collections/WidgetCollection.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +0 -25
- package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/collections/primitives/index.d.ts +0 -1
- package/dist/libs/shared/src/interfaces/index.d.ts +0 -13
- package/dist/libs/shared/src/interfaces/models/Audience.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Banner.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Category.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Channel.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Classification.d.ts +0 -21
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +0 -18
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +0 -8
- package/dist/libs/shared/src/interfaces/models/Company.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +0 -13
- package/dist/libs/shared/src/interfaces/models/Cover.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +0 -18
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +0 -20
- package/dist/libs/shared/src/interfaces/models/Folder.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/models/Following.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/models/Group.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/HeroBanner.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Image.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +0 -14
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/models/LanguageConfig.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/models/Organisation.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/models/Person.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +0 -14
- package/dist/libs/shared/src/interfaces/models/Poster.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/PresentationAudience.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/Rating.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +0 -17
- package/dist/libs/shared/src/interfaces/models/Restriction.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/Season.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/models/Series.d.ts +0 -10
- package/dist/libs/shared/src/interfaces/models/Share.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/models/Subject.d.ts +0 -13
- package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/models/Tag.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/TallPoster.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +0 -14
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/User.d.ts +0 -64
- package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +0 -34
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +0 -12
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +0 -16
- package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/index.d.ts +0 -57
- package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +0 -16
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +0 -8
- package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/interactive.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +0 -8
- package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +0 -2
- package/dist/libs/shared/src/interfaces/props/ViewProps.d.ts +0 -8
- package/dist/libs/shared/src/interfaces/props/index.d.ts +0 -1
- package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/requests/ReorderRequest.d.ts +0 -12
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +0 -3
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/services/BaseLibraryDataService.d.ts +0 -10
- package/dist/libs/shared/src/interfaces/services/BaseSeriesDataService.d.ts +0 -4
- package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/services/BaseVideoDataService.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/services/BaseVideoUploadDataService.d.ts +0 -8
- package/dist/libs/shared/src/interfaces/services/index.d.ts +0 -7
- package/dist/libs/shared/src/legacy/behaviors/empty-state/EmptyStateBehavior.d.ts +0 -22
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +0 -4
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
- package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
- package/dist/libs/shared/src/legacy/behaviors/popover/PopoverBehavior.d.ts +0 -40
- package/dist/libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.d.ts +0 -26
- package/dist/libs/shared/src/legacy/components/empty-state/EmptyStateComponent.d.ts +0 -24
- package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +0 -29
- package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +0 -15
- package/dist/libs/shared/src/legacy/components/pagination/PaginationComponent.d.ts +0 -29
- package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +0 -22
- package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +0 -17
- package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +0 -35
- package/dist/libs/shared/src/legacy/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
- package/dist/libs/shared/src/legacy/enums/EmptyState.d.ts +0 -3
- package/dist/libs/shared/src/legacy/enums/SortType.d.ts +0 -7
- package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +0 -7
- package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
- package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
- package/dist/libs/shared/src/legacy/interfaces/CollectionIdentifier.d.ts +0 -7
- package/dist/libs/shared/src/legacy/interfaces/index.d.ts +0 -1
- package/dist/libs/shared/src/legacy/utils/EmptyStateHelper.d.ts +0 -4
- package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +0 -5
- package/dist/libs/shared/src/services/ContextService.d.ts +0 -38
- package/dist/libs/shared/src/services/LanguageDataService.d.ts +0 -7
- package/dist/libs/shared/src/services/UserDataService.d.ts +0 -24
- package/dist/libs/shared/src/utils/DurationHelper.d.ts +0 -7
- package/dist/libs/shared/src/utils/EmbedHelper.d.ts +0 -8
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +0 -32
- package/dist/libs/shared/src/utils/LibraryDataServiceHelper.d.ts +0 -13
- package/dist/libs/shared/src/utils/MaskHelper.d.ts +0 -15
- package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +0 -9
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -18
- package/dist/libs/shared/src/utils/TextHelper.d.ts +0 -3
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -12
- package/dist/projects/library-editor/src/app.d.ts +0 -244
- package/dist/projects/library-editor/src/apps/content-updates/ContentUpdatesApplication.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/content-updates/collections/SubjectCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/content-updates/collections/VideoGroupCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/content-updates/collections/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.d.ts +0 -14
- package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/content-updates/components/index.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-filters/PastReleasesFiltersComponent.d.ts +0 -20
- package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-header/PastReleasesHeaderComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +0 -37
- package/dist/projects/library-editor/src/apps/content-updates/enums/PastReleaseFilterType.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/content-updates/enums/ReleaseDateType.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/content-updates/enums/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/content-updates/models/Subject.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/content-updates/models/VideoGroup.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/content-updates/models/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/content-updates/services/ContentUpdatesDataService.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/content-updates/services/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/content-updates/utils/Constants.d.ts +0 -33
- package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/content-updates/utils/PastReleasesHelper.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/content-updates/utils/index.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +0 -47
- package/dist/projects/library-editor/src/apps/content-updates/views/awaiting-review/AwaitingReviewView.d.ts +0 -36
- package/dist/projects/library-editor/src/apps/content-updates/views/disable-review/DisableReviewView.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/content-updates/views/generate-past-releases-pdf/GeneratePastReleasesPdfView.d.ts +0 -41
- package/dist/projects/library-editor/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +0 -55
- package/dist/projects/library-editor/src/apps/dashboard/DashboardApplication.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-action-tile/DashboardActionTileComponent.d.ts +0 -20
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-info-tile/DashboardInfoTileComponent.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-container/DashboardTileContainerComponent.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-list/DashboardTileListComponent.d.ts +0 -14
- package/dist/projects/library-editor/src/apps/dashboard/components/index.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/dashboard/views/DashboardView.d.ts +0 -38
- package/dist/projects/library-editor/src/apps/default/DefaultApplication.d.ts +0 -21
- package/dist/projects/library-editor/src/apps/default/views/dev-error/DevErrorView.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/default/views/error-view/ErrorView.d.ts +0 -12
- package/dist/projects/library-editor/src/apps/default/views/not-found/NotFoundView.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/index.d.ts +0 -16
- package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +0 -46
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.d.ts +0 -24
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/droppable/DroppableBehavior.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/index.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DragOptions.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DraggableItemComponent.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/index.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/library-editor/components/add-links/AddLinksComponent.d.ts +0 -31
- package/dist/projects/library-editor/src/apps/library-editor/components/banner/BannerComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-form/ChapterFormComponent.d.ts +0 -66
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterComponentCollection.d.ts +0 -25
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterItemComponent.d.ts +0 -37
- package/dist/projects/library-editor/src/apps/library-editor/components/chapters/ChaptersComponent.d.ts +0 -21
- package/dist/projects/library-editor/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/apps/library-editor/components/customer-logo/CustomerLogoComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-image/EditImageComponent.d.ts +0 -28
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/LinkItemComponent.d.ts +0 -16
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/VideoLinksComponent.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.d.ts +0 -48
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +0 -13
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-actions/FolderActionsDropdownComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-details/FolderDetailsComponent.d.ts +0 -35
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-select/FolderSelectComponent.d.ts +0 -41
- package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectComponent.d.ts +0 -28
- package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +0 -45
- package/dist/projects/library-editor/src/apps/library-editor/components/library-actions/LibraryActionsComponent.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/library-editor/components/library-folders/LibraryFolderListComponent.d.ts +0 -31
- package/dist/projects/library-editor/src/apps/library-editor/components/library-select/LibrarySelectComponent.d.ts +0 -27
- package/dist/projects/library-editor/src/apps/library-editor/components/save/SaveComponent.d.ts +0 -33
- package/dist/projects/library-editor/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +0 -29
- package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFolderComponent.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFoldersComponent.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/library-editor/components/suggest-edit/SuggestEditComponent.d.ts +0 -31
- package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagComponentCollection.d.ts +0 -21
- package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagItemComponent.d.ts +0 -28
- package/dist/projects/library-editor/src/apps/library-editor/components/tags/TagsComponent.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +0 -25
- package/dist/projects/library-editor/src/apps/library-editor/components/video-header/VideoHeaderComponent.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.d.ts +0 -34
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +0 -46
- package/dist/projects/library-editor/src/apps/library-editor/components/video-sidebar-info/VideoSidebarInfoComponent.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +0 -29
- package/dist/projects/library-editor/src/apps/library-editor/constants/CheckboxTypes.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/library-editor/constants/EditVideoBackButtonBlacklist.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/library-editor/constants/EditVideoBackButtonKey.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/library-editor/constants/LibraryEditorActions.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/library-editor/constants/LibraryEditorRadioChannels.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/library-editor/constants/MetadataTypes.d.ts +0 -32
- package/dist/projects/library-editor/src/apps/library-editor/constants/VideoCollectionTypes.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/library-editor/constants/index.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/enums/MediaConcatenateStatus.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/library-editor/enums/TagBehavior.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/enums/TagOrientation.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/library-editor/enums/VideoCollectionSource.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/library-editor/enums/index.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/library-editor/errors/index.d.ts +0 -13
- package/dist/projects/library-editor/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/library-editor/models/ChapterConcatenateRequest.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/library-editor/models/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/library-editor/services/ChapterDataService.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/library-editor/services/CompanyDataService.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/services/ExportDataService.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/library-editor/services/FieldsDataService.d.ts +0 -12
- package/dist/projects/library-editor/src/apps/library-editor/services/FolderDragDropService.d.ts +0 -27
- package/dist/projects/library-editor/src/apps/library-editor/services/LibraryDataService.d.ts +0 -65
- package/dist/projects/library-editor/src/apps/library-editor/services/LinkDataService.d.ts +0 -14
- package/dist/projects/library-editor/src/apps/library-editor/services/PersonDataService.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/services/RatingsDataService.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/library-editor/services/ResourceDataService.d.ts +0 -13
- package/dist/projects/library-editor/src/apps/library-editor/services/SeriesDataService.d.ts +0 -16
- package/dist/projects/library-editor/src/apps/library-editor/services/SubtitleDataService.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/library-editor/services/TagDataService.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +0 -45
- package/dist/projects/library-editor/src/apps/library-editor/services/VideoDragDropService.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/library-editor/utils/AddToLibraryCacheHelper.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/library-editor/utils/ChapterHelper.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/library-editor/utils/DownloadHelper.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +0 -93
- package/dist/projects/library-editor/src/apps/library-editor/utils/FolderValidation.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/library-editor/utils/LanguageValidation.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/library-editor/utils/LibraryValidation.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/library-editor/utils/UploadVideoValidation.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +0 -17
- package/dist/projects/library-editor/src/apps/library-editor/utils/index.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/library-editor/views/add-to-exchange/AddToExchangeView.d.ts +0 -34
- package/dist/projects/library-editor/src/apps/library-editor/views/banner-upload/BannerUploadView.d.ts +0 -32
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-folder/DeleteFolderView.d.ts +0 -28
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-library/DeleteLibraryView.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-videos/DeleteVideosView.d.ts +0 -29
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-chapters/EditChaptersView.d.ts +0 -71
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.d.ts +0 -51
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-library/RenameLibraryView.d.ts +0 -29
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-link/EditLinkView.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-resource/EditResourceView.d.ts +0 -34
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +0 -92
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-video/EditVideoView.d.ts +0 -125
- package/dist/projects/library-editor/src/apps/library-editor/views/generate-pdf/GeneratePdfView.d.ts +0 -35
- package/dist/projects/library-editor/src/apps/library-editor/views/left-navigation/LeftNavigationView.d.ts +0 -33
- package/dist/projects/library-editor/src/apps/library-editor/views/library/LibraryView.d.ts +0 -31
- package/dist/projects/library-editor/src/apps/library-editor/views/move-folder/MoveFolderView.d.ts +0 -44
- package/dist/projects/library-editor/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +0 -50
- package/dist/projects/library-editor/src/apps/library-editor/views/new-folder/NewFolderView.d.ts +0 -44
- package/dist/projects/library-editor/src/apps/library-editor/views/new-library/NewLibraryView.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/library-editor/views/no-library/NoLibraryView.d.ts +0 -10
- package/dist/projects/library-editor/src/apps/library-editor/views/publish-library/PublishLibraryView.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/library-editor/views/rename-folder/RenameFolderView.d.ts +0 -39
- package/dist/projects/library-editor/src/apps/library-editor/views/suggest-an-edit/SuggestAnEditView.d.ts +0 -58
- package/dist/projects/library-editor/src/apps/library-editor/views/thumbnail-upload/ThumbnailUploadView.d.ts +0 -34
- package/dist/projects/library-editor/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +0 -105
- package/dist/projects/library-editor/src/apps/library-editor/views/video-details/VideoDetailsView.d.ts +0 -46
- package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +0 -45
- package/dist/projects/library-editor/src/apps/migration-wizard/collections/HomeFolderCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/migration-wizard/collections/SmartSelectVideoCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/migration-wizard/collections/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/migration-wizard/components/banner/BannerComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/migration-wizard/components/empty-video-list/EmptyVideoListComponent.d.ts +0 -14
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-actions/ErroredVideoActionsComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-footer/ErroredVideoFooterComponent.d.ts +0 -21
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-item/ErroredVideoItemComponent.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-list/ErroredVideoListComponent.d.ts +0 -12
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-metadata/ErroredVideoMetadataComponent.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-preview/ErroredVideoPreviewComponent.d.ts +0 -17
- package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report/GenerateReportComponent.d.ts +0 -25
- package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report-button/GenerateReportButtonComponent.d.ts +0 -10
- package/dist/projects/library-editor/src/apps/migration-wizard/components/index.d.ts +0 -13
- package/dist/projects/library-editor/src/apps/migration-wizard/components/migration-video-item/MigrationVideoItemComponent.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-bar/ProgressBarComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-circle/ProgressCircleComponent.d.ts +0 -20
- package/dist/projects/library-editor/src/apps/migration-wizard/components/search-bar/SearchBarComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/migration-wizard/components/selected-video-item/SelectedVideoItemComponent.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/migration-wizard/components/sorting-row/SortingRowComponent.d.ts +0 -35
- package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +0 -28
- package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list/VideoListCollection.d.ts +0 -36
- package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list-collection/VideoListCollectionComponent.d.ts +0 -16
- package/dist/projects/library-editor/src/apps/migration-wizard/contants/MigrationErrorActions.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/migration-wizard/contants/MigrationViewModels.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/CloudSyncStatus.d.ts +0 -12
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/FinalisationTaskStatus.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/FinalisationType.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/LocalOption.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/MigrationOption.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/MigrationReportType.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/SortField.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/ValidationResult.d.ts +0 -32
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/ValidationResultErrorType.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/VideoMigrationStatus.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/migration-wizard/enums/index.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/index.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/filters/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/migration-wizard/interfaces/SelectedVideos.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/migration-wizard/models/BackupToolBuild.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/models/CustomerMetadata.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/migration-wizard/models/FinalisationTask.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/models/HomeFolder.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/models/MigrationOptions.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/models/SelectedVideo.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/models/SmartSelectVideo.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/migration-wizard/models/VideoCount.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/models/index.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/services/FolderCacheService.d.ts +0 -22
- package/dist/projects/library-editor/src/apps/migration-wizard/services/LocalOptionsService.d.ts +0 -10
- package/dist/projects/library-editor/src/apps/migration-wizard/services/MigrationVideoDataService.d.ts +0 -56
- package/dist/projects/library-editor/src/apps/migration-wizard/services/SelectedVideoService.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/FolderHelper.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/KeyContactHelper.d.ts +0 -6
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationErrorHelper.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationHelper.d.ts +0 -41
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationRadioChannels.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationWarningsSvgs.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/ReportHelper.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/VideoHelper.d.ts +0 -29
- package/dist/projects/library-editor/src/apps/migration-wizard/views/current-section-header/CurrentSectionHeaderView.d.ts +0 -28
- package/dist/projects/library-editor/src/apps/migration-wizard/views/generate-csv-report/GenerateCsvReportView.d.ts +0 -27
- package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-error/MigrationErrorView.d.ts +0 -40
- package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-progress/MigrationProgressView.d.ts +0 -32
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-banner/PublishLibraryBannerView.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-complete/PublishLibraryCompleteView.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-progress/PublisherBackupProgressView.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/migration-wizard/views/remigrate-video/RemigrateVideoView.d.ts +0 -32
- package/dist/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.d.ts +0 -32
- package/dist/projects/library-editor/src/apps/migration-wizard/views/show-video-popup/ShowPublisherVideoPopupView.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/migration-wizard/views/smart-migration/SmartMigrationView.d.ts +0 -58
- package/dist/projects/library-editor/src/apps/migration-wizard/views/start/StartView.d.ts +0 -40
- package/dist/projects/library-editor/src/apps/migration-wizard/views/videos-added/VideosAddedView.d.ts +0 -24
- package/dist/projects/library-editor/src/apps/notifications/NotificationsApplication.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/notifications/constants/NotificationsAppVariables.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/notifications/constants/index.d.ts +0 -0
- package/dist/projects/library-editor/src/apps/notifications/utils/Constants.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -10
- package/dist/projects/library-editor/src/apps/notifications/utils/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/search/SearchApplication.d.ts +0 -16
- package/dist/projects/library-editor/src/apps/search/collections/FilterCollection.d.ts +0 -9
- package/dist/projects/library-editor/src/apps/search/collections/OptionCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/search/collections/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/search/components/filters/FiltersComponent.d.ts +0 -27
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonItemComponent.d.ts +0 -37
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonListComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterItemComponent.d.ts +0 -17
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterListComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/FilterOptionsComponent.d.ts +0 -34
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/bool-filter-options/BoolFilterOptionsComponent.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/duration-filter-options/DurationFilterOptionListComponent.d.ts +0 -27
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionItemComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionsListComponent.d.ts +0 -21
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/index.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/range-filter-options/RangeFilterOptionListComponent.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsComponent.d.ts +0 -27
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsListComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/search/components/filters/index.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/search/components/filters/more-filters-button/MoreFiltersButtonComponent.d.ts +0 -42
- package/dist/projects/library-editor/src/apps/search/components/results/SearchResultsComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/apps/search/components/search-header/SearchHeaderComponent.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/search/constants/SearchRadioChannels.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/search/constants/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/search/models/Filter.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/search/models/Option.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/search/models/Query.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/search/models/index.d.ts +0 -3
- package/dist/projects/library-editor/src/apps/search/services/SearchDataService.d.ts +0 -12
- package/dist/projects/library-editor/src/apps/search/services/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/search/utils/Constants.d.ts +0 -28
- package/dist/projects/library-editor/src/apps/search/utils/Enums.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/search/utils/FilterHelper.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/search/utils/FilterLabelGenerators.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/search/utils/FilterQueryGenerators.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/search/utils/FilterRouteQueryParamGenerators.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/search/utils/SearchHelper.d.ts +0 -11
- package/dist/projects/library-editor/src/apps/search/utils/index.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/search/views/search/SearchView.d.ts +0 -57
- package/dist/projects/library-editor/src/apps/staff-requests/StaffRequestsApplication.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestMessageCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/staff-requests/collections/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +0 -42
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-list/StaffRequestListComponent.d.ts +0 -29
- package/dist/projects/library-editor/src/apps/staff-requests/enums/StaffRequestStatus.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/staff-requests/enums/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequest.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequestMessage.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/staff-requests/models/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/staff-requests/services/StaffRequestDataService.d.ts +0 -14
- package/dist/projects/library-editor/src/apps/staff-requests/services/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/staff-requests/utils/StaffRequestApprovalValidation.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/staff-requests/utils/StaffRequestRejectionValidation.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/staff-requests/utils/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/staff-requests/views/approve-staff-request/ApproveStaffRequestView.d.ts +0 -34
- package/dist/projects/library-editor/src/apps/staff-requests/views/reject-staff-request/RejectStaffRequestView.d.ts +0 -34
- package/dist/projects/library-editor/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +0 -44
- package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +0 -23
- package/dist/projects/library-editor/src/apps/upload/components/index.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/upload/components/processing-progress/ProcessProgressComponentCollection.d.ts +0 -38
- package/dist/projects/library-editor/src/apps/upload/components/progress-info/ProgressInfoComponent.d.ts +0 -10
- package/dist/projects/library-editor/src/apps/upload/components/upload-actions/UploadActionsComponent.d.ts +0 -21
- package/dist/projects/library-editor/src/apps/upload/components/upload-folder-select/UploadFolderSelectComponent.d.ts +0 -35
- package/dist/projects/library-editor/src/apps/upload/components/upload-progress/UploadProgressComponent.d.ts +0 -10
- package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponent.d.ts +0 -48
- package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponentCollection.d.ts +0 -20
- package/dist/projects/library-editor/src/apps/upload/components/upload-video-options/UploadVideoOptionsComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/upload/errors/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/upload/services/ImageUploadDataService.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/upload/services/PendingItemsService.d.ts +0 -7
- package/dist/projects/library-editor/src/apps/upload/services/VideoUploadDataService.d.ts +0 -17
- package/dist/projects/library-editor/src/apps/upload/services/VideoUploadService.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/upload/services/index.d.ts +0 -5
- package/dist/projects/library-editor/src/apps/upload/views/file-select/FileSelectView.d.ts +0 -25
- package/dist/projects/library-editor/src/apps/upload/views/progress-summary/ProgressSummaryView.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/upload/views/upload-button/UploadButtonView.d.ts +0 -26
- package/dist/projects/library-editor/src/apps/upload/views/upload-complete/UploadCompleteView.d.ts +0 -14
- package/dist/projects/library-editor/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +0 -64
- package/dist/projects/library-editor/src/apps/video-access/VideoAccessApplication.d.ts +0 -12
- package/dist/projects/library-editor/src/apps/video-access/views/restricted-video-list/RestrictedVideoListView.d.ts +0 -34
- package/dist/projects/library-editor/src/polyfills.d.ts +0 -2
- package/dist/projects/library-editor/src/shared/alerts/VideoAlerts.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/alerts/index.d.ts +0 -1
- package/dist/projects/library-editor/src/shared/behaviors/backbone-validation/BackboneValidationBehavior.d.ts +0 -14
- package/dist/projects/library-editor/src/shared/behaviors/image-select-behavior/ImageSelectBehavior.d.ts +0 -23
- package/dist/projects/library-editor/src/shared/behaviors/index.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/behaviors/lazy-load/LazyLoadBehavior.d.ts +0 -31
- package/dist/projects/library-editor/src/shared/behaviors/lock-layout-file-drop/LockLayoutFileDropBehavior.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +0 -65
- package/dist/projects/library-editor/src/shared/behaviors/stickit/StickitBehavior.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/ChannelCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/ChapterCollection.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/collections/DirectorCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/DistributorCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/FieldsCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/collections/FolderCollection.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/collections/InteractivesCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/LibraryCollection.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/collections/LinkCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/LocalCacheDeviceCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/collections/LocalCacheDownloadCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/collections/MetadataCollection.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/collections/ProducerCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/ProductionCompanyCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/RatingCollection.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/collections/ResourceCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/RestrictedObjectCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/collections/RestrictionCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/collections/SeasonCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/SettingsCollection.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/collections/SubtitleCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/TagCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/collections/VideoCollection.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/components/alert/AlertComponentCollection.d.ts +0 -11
- package/dist/projects/library-editor/src/shared/components/alert/AlertItemComponent.d.ts +0 -44
- package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.d.ts +0 -18
- package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbsComponent.d.ts +0 -27
- package/dist/projects/library-editor/src/shared/components/bulk-video-actions/BulkVideoActionsComponent.d.ts +0 -26
- package/dist/projects/library-editor/src/shared/components/checkbox/BulkCheckboxComponent.d.ts +0 -27
- package/dist/projects/library-editor/src/shared/components/checkbox/CheckboxComponent.d.ts +0 -25
- package/dist/projects/library-editor/src/shared/components/clear-button/ClearButtonComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +0 -47
- package/dist/projects/library-editor/src/shared/components/dialog/DialogView.d.ts +0 -22
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +0 -36
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.d.ts +0 -38
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownItemComponent.d.ts +0 -57
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +0 -38
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.d.ts +0 -32
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.d.ts +0 -61
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.d.ts +0 -33
- package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoComponent.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.d.ts +0 -17
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.d.ts +0 -17
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingComponent.d.ts +0 -40
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +0 -20
- package/dist/projects/library-editor/src/shared/components/fields/FieldsComponent.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +0 -34
- package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavComponent.d.ts +0 -31
- package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavNodeComponent.d.ts +0 -48
- package/dist/projects/library-editor/src/shared/components/page-footer/PageFooterComponent.d.ts +0 -15
- package/dist/projects/library-editor/src/shared/components/page-header/PageHeaderComponent.d.ts +0 -25
- package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponent.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponentCollection.d.ts +0 -20
- package/dist/projects/library-editor/src/shared/components/partial-loading/index.d.ts +0 -2
- package/dist/projects/library-editor/src/shared/components/resizing-text-area/ResizingTextAreaComponent.d.ts +0 -23
- package/dist/projects/library-editor/src/shared/components/screenrights-disclaimer/ScreenrightsDisclaimerComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +0 -54
- package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +0 -73
- package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +0 -28
- package/dist/projects/library-editor/src/shared/components/top-navigation/TopNavigationComponentCollection.d.ts +0 -29
- package/dist/projects/library-editor/src/shared/components/tree-dropdown/TreeDropdownComponent.d.ts +0 -32
- package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +0 -74
- package/dist/projects/library-editor/src/shared/components/typeahead-input/templates/index.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/components/typeahead-list/TypeaheadListComponent.d.ts +0 -33
- package/dist/projects/library-editor/src/shared/components/user-options-dropdown/UserOptionsDropdownComponent.d.ts +0 -20
- package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionComponentCollection.d.ts +0 -31
- package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionsComponent.d.ts +0 -42
- package/dist/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfoComponent.d.ts +0 -33
- package/dist/projects/library-editor/src/shared/components/video-description/VideoDescriptionComponent.d.ts +0 -33
- package/dist/projects/library-editor/src/shared/components/video-item/VideoItemComponent.d.ts +0 -58
- package/dist/projects/library-editor/src/shared/components/video-item/index.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemBehaviors.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponentHelper.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponentTypes.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponents.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/components/video-item/utils/index.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.d.ts +0 -23
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/index.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.d.ts +0 -25
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.d.ts +0 -26
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/index.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.d.ts +0 -20
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.d.ts +0 -25
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.d.ts +0 -27
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/shared/components/video-item-preview/VideoItemPreviewComponent.d.ts +0 -37
- package/dist/projects/library-editor/src/shared/components/video-list/VideoListComponent.d.ts +0 -44
- package/dist/projects/library-editor/src/shared/components/video-preview/VideoPreviewComponent.d.ts +0 -30
- package/dist/projects/library-editor/src/shared/components/web-player/WebPlayerComponent.d.ts +0 -53
- package/dist/projects/library-editor/src/shared/constants/Actions.d.ts +0 -99
- package/dist/projects/library-editor/src/shared/constants/BootstrapKeys.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/constants/CacheDurations.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/constants/DataPrefixes.d.ts +0 -91
- package/dist/projects/library-editor/src/shared/constants/DataServiceErrors.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/constants/EventNames.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/constants/FolderTreeIds.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/constants/FormattedCustomerSettingNames.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/constants/ImageSizes.d.ts +0 -11
- package/dist/projects/library-editor/src/shared/constants/ImageUrls.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/constants/LayoutRegions.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/constants/Layouts.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/constants/LazyLoadBrowserSupport.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/constants/MarketingSiteArticles.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/constants/Misc.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/constants/OnlineUrls.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/constants/PartialLoadingComponents.d.ts +0 -10
- package/dist/projects/library-editor/src/shared/constants/RadioChannels.d.ts +0 -62
- package/dist/projects/library-editor/src/shared/constants/Search.d.ts +0 -24
- package/dist/projects/library-editor/src/shared/constants/Services.d.ts +0 -62
- package/dist/projects/library-editor/src/shared/constants/SupportArticles.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/constants/Webplayer.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/constants/WithStatements.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/constants/index.d.ts +0 -25
- package/dist/projects/library-editor/src/shared/enums/CitationType.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/enums/CustomerRegions.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/enums/EmptyStates.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/enums/FileIdType.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/enums/ImageType.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/enums/MasterType.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/enums/PartialLoading.d.ts +0 -38
- package/dist/projects/library-editor/src/shared/enums/RestrictedObjectType.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/enums/SchoolTypes.d.ts +0 -17
- package/dist/projects/library-editor/src/shared/enums/SharedResourcePrivacy.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/enums/SortTypes.d.ts +0 -10
- package/dist/projects/library-editor/src/shared/enums/StaffRequestOption.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/enums/TimeType.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/enums/UserRole.d.ts +0 -10
- package/dist/projects/library-editor/src/shared/enums/YearGroups.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -15
- package/dist/projects/library-editor/src/shared/errors/authentication/AuthenticationError.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/errors/customer-setting/CustomerSettingError.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +0 -11
- package/dist/projects/library-editor/src/shared/errors/index.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/errors/not-found/NotFoundError.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/errors/old-version/OldVersionError.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/filters/index.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/index.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +0 -20
- package/dist/projects/library-editor/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/interfaces/VideoCollectionIdentifier.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/interfaces/index.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/layouts/index.d.ts +0 -1
- package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +0 -49
- package/dist/projects/library-editor/src/shared/models/Avatar.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Banner.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Channel.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Chapter.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Company.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Config.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Customer.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Director.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/DisabledSpinnerModel.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/models/Distributor.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Folder.d.ts +0 -14
- package/dist/projects/library-editor/src/shared/models/Image.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Interactives.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/LanguageConfig.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/models/Library.d.ts +0 -10
- package/dist/projects/library-editor/src/shared/models/Link.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/LocalCacheDevice.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/LocalCacheDownload.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Logo.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Metadata.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Owner.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Person.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Phrases.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Playlist.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Producer.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/ProductionCompany.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Rating.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Resource.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/RestrictedObject.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Restriction.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Season.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Series.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/models/Setting.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/SharedResource.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Subtitle.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Tag.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/Thumbnail.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/models/User.d.ts +0 -10
- package/dist/projects/library-editor/src/shared/models/Video.d.ts +0 -49
- package/dist/projects/library-editor/src/shared/services/AlertService.d.ts +0 -15
- package/dist/projects/library-editor/src/shared/services/ConfigDataService.d.ts +0 -23
- package/dist/projects/library-editor/src/shared/services/CustomerDataService.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/services/DownloadProxyDataServices.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/services/IntercomService.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/services/LocalCacheDataService.d.ts +0 -12
- package/dist/projects/library-editor/src/shared/services/NavigationLockService.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/services/PageTitleService.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/services/PageVisibilityService.d.ts +0 -14
- package/dist/projects/library-editor/src/shared/services/PartialLoadingService.d.ts +0 -10
- package/dist/projects/library-editor/src/shared/services/RestrictedVideoDataService.d.ts +0 -15
- package/dist/projects/library-editor/src/shared/services/SettingsDataService.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/services/UserDataService.d.ts +0 -20
- package/dist/projects/library-editor/src/shared/services/VideoMixinService.d.ts +0 -18
- package/dist/projects/library-editor/src/shared/utils/BulkCheckboxHelper.d.ts +0 -18
- package/dist/projects/library-editor/src/shared/utils/CancelProcessingHelper.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/utils/CollectionHelper.d.ts +0 -10
- package/dist/projects/library-editor/src/shared/utils/DialogHelper.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/utils/DurationHelper.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/utils/FolderTreeHelpers.d.ts +0 -36
- package/dist/projects/library-editor/src/shared/utils/ImageHelper.d.ts +0 -32
- package/dist/projects/library-editor/src/shared/utils/LazyLoadHelper.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/utils/LocalCacheHelper.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/utils/PartialLoadingHelper.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +0 -13
- package/dist/projects/library-editor/src/shared/utils/RadioChannelHelper.d.ts +0 -11
- package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/utils/RestrictedAccessHelper.d.ts +0 -13
- package/dist/projects/library-editor/src/shared/utils/SettingsHelper.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/utils/SortHelper.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/utils/SpinnerHelper.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/utils/SubtitleLanguageValidation.d.ts +0 -6
- package/dist/projects/library-editor/src/shared/utils/TabHelper.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/utils/TextHelper.d.ts +0 -9
- package/dist/projects/library-editor/src/shared/utils/TimeHelper.d.ts +0 -20
- package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +0 -11
- package/dist/projects/library-editor/src/shared/utils/index.d.ts +0 -23
- package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +0 -25
- package/dist/projects/library-editor/src/shared/utils/search/index.d.ts +0 -1
- package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +0 -12
- package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/index.d.ts +0 -1
- package/dist/projects/library-editor/src/shared/utils/search/raw-search-templates/index.d.ts +0 -5
- package/dist/projects/library-editor/src/shared/views/download-to-local-cache/DownloadToLocalCacheView.d.ts +0 -28
- package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +0 -18
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessComponent.d.ts +0 -7
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessGroupComponent.d.ts +0 -24
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessView.d.ts +0 -67
- package/dist/projects/library-editor/src/shared/views/share/ShareView.d.ts +0 -48
- package/dist/projects/library-editor/src/shared/views/top-navigation/TopNavigationView.d.ts +0 -35
- package/dist/projects/library-editor/src/shared/views/user-options/UserOptionsView.d.ts +0 -18
- package/dist/projects/library-editor/src/startup/ConsoleOutput.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterAjaxMiddleware.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterRuntimeEnvironment.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +0 -3
- package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +0 -15
- package/dist/projects/library-editor/src/startup/index.d.ts +0 -14
- package/dist/projects/library-editor/src/styles/index.d.ts +0 -1
- package/dist/projects/library-editor/typings/libs/LazyLoad.d.ts +0 -26
- package/dist/scripts/0-e25d47c666.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -1039
- package/dist/scripts/0.chunk.js.map +0 -1
- package/dist/scripts/1-620c685eee.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -442
- package/dist/scripts/1.chunk.js.map +0 -1
- package/dist/scripts/10-3baf058564.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -820
- package/dist/scripts/10.chunk.js.map +0 -1
- package/dist/scripts/11.chunk.js +0 -4091
- package/dist/scripts/11.chunk.js.map +0 -1
- package/dist/scripts/12-b460ad405e.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -555
- package/dist/scripts/12.chunk.js.map +0 -1
- package/dist/scripts/13-89b3a0aebb.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -380
- package/dist/scripts/13.chunk.js.map +0 -1
- package/dist/scripts/14-670309ef33.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -2386
- package/dist/scripts/14.chunk.js.map +0 -1
- package/dist/scripts/15-39010184ed.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -314
- package/dist/scripts/15.chunk.js.map +0 -1
- package/dist/scripts/16.chunk.js +0 -1290
- package/dist/scripts/16.chunk.js.map +0 -1
- package/dist/scripts/17.chunk.js +0 -381
- package/dist/scripts/17.chunk.js.map +0 -1
- package/dist/scripts/18.chunk.js +0 -393
- package/dist/scripts/18.chunk.js.map +0 -1
- package/dist/scripts/19.chunk.js +0 -364
- package/dist/scripts/19.chunk.js.map +0 -1
- package/dist/scripts/2.chunk.js +0 -523
- package/dist/scripts/2.chunk.js.map +0 -1
- package/dist/scripts/20-42dc06da39.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -317
- package/dist/scripts/20.chunk.js.map +0 -1
- package/dist/scripts/21-05615559be.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -531
- package/dist/scripts/21.chunk.js.map +0 -1
- package/dist/scripts/22-70b4c18dd2.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -354
- package/dist/scripts/22.chunk.js.map +0 -1
- package/dist/scripts/23-3166dfeef5.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -604
- package/dist/scripts/23.chunk.js.map +0 -1
- package/dist/scripts/24-6fbd14025b.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -318
- package/dist/scripts/24.chunk.js.map +0 -1
- package/dist/scripts/25-3d067b8b9a.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -365
- package/dist/scripts/25.chunk.js.map +0 -1
- package/dist/scripts/26-468305820a.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -442
- package/dist/scripts/26.chunk.js.map +0 -1
- package/dist/scripts/27-d03a99658e.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -3630
- package/dist/scripts/27.chunk.js.map +0 -1
- package/dist/scripts/28-f3f43a3001.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -3172
- package/dist/scripts/28.chunk.js.map +0 -1
- package/dist/scripts/29-268278d2ac.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -3090
- package/dist/scripts/29.chunk.js.map +0 -1
- package/dist/scripts/3.chunk.js +0 -845
- package/dist/scripts/3.chunk.js.map +0 -1
- package/dist/scripts/30-694b0a0d4b.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -1851
- package/dist/scripts/30.chunk.js.map +0 -1
- package/dist/scripts/31-4c542c18dc.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -958
- package/dist/scripts/31.chunk.js.map +0 -1
- package/dist/scripts/32.chunk.js +0 -1239
- package/dist/scripts/32.chunk.js.map +0 -1
- package/dist/scripts/33.chunk.js +0 -971
- package/dist/scripts/33.chunk.js.map +0 -1
- package/dist/scripts/34-eb9f6709b3.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -990
- package/dist/scripts/34.chunk.js.map +0 -1
- package/dist/scripts/35-1ff49137e7.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -518
- package/dist/scripts/35.chunk.js.map +0 -1
- package/dist/scripts/36-9e89154ca2.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -335
- package/dist/scripts/36.chunk.js.map +0 -1
- package/dist/scripts/37.chunk.js +0 -236
- package/dist/scripts/37.chunk.js.map +0 -1
- package/dist/scripts/38.chunk.js +0 -315
- package/dist/scripts/38.chunk.js.map +0 -1
- package/dist/scripts/39.chunk.js +0 -107
- package/dist/scripts/39.chunk.js.map +0 -1
- package/dist/scripts/4.chunk.js +0 -335
- package/dist/scripts/4.chunk.js.map +0 -1
- package/dist/scripts/40.chunk.js +0 -2493
- package/dist/scripts/40.chunk.js.map +0 -1
- package/dist/scripts/41.chunk.js +0 -1782
- package/dist/scripts/41.chunk.js.map +0 -1
- package/dist/scripts/42-9f757567db.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -2327
- package/dist/scripts/42.chunk.js.map +0 -1
- package/dist/scripts/43.chunk.js +0 -1206
- package/dist/scripts/43.chunk.js.map +0 -1
- package/dist/scripts/44.chunk.js +0 -2245
- package/dist/scripts/44.chunk.js.map +0 -1
- package/dist/scripts/45.chunk.js +0 -1065
- package/dist/scripts/45.chunk.js.map +0 -1
- package/dist/scripts/46.chunk.js +0 -655
- package/dist/scripts/46.chunk.js.map +0 -1
- package/dist/scripts/47.chunk.js +0 -736
- package/dist/scripts/47.chunk.js.map +0 -1
- package/dist/scripts/48.chunk.js +0 -994
- package/dist/scripts/48.chunk.js.map +0 -1
- package/dist/scripts/49-8e3e782ffb.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -761
- package/dist/scripts/49.chunk.js.map +0 -1
- package/dist/scripts/5-b236603e85.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -15
- package/dist/scripts/5.chunk.js.map +0 -1
- package/dist/scripts/50.chunk.js +0 -530
- package/dist/scripts/50.chunk.js.map +0 -1
- package/dist/scripts/51.chunk.js +0 -932
- package/dist/scripts/51.chunk.js.map +0 -1
- package/dist/scripts/52.chunk.js +0 -408
- package/dist/scripts/52.chunk.js.map +0 -1
- package/dist/scripts/53.chunk.js +0 -756
- package/dist/scripts/53.chunk.js.map +0 -1
- package/dist/scripts/54.chunk.js +0 -681
- package/dist/scripts/54.chunk.js.map +0 -1
- package/dist/scripts/55.chunk.js +0 -645
- package/dist/scripts/55.chunk.js.map +0 -1
- package/dist/scripts/56.chunk.js +0 -346
- package/dist/scripts/56.chunk.js.map +0 -1
- package/dist/scripts/57.chunk.js +0 -422
- package/dist/scripts/57.chunk.js.map +0 -1
- package/dist/scripts/58.chunk.js +0 -437
- package/dist/scripts/58.chunk.js.map +0 -1
- package/dist/scripts/59.chunk.js +0 -342
- package/dist/scripts/59.chunk.js.map +0 -1
- package/dist/scripts/6-6fb543aa78.chunk.js +0 -1
- package/dist/scripts/6.chunk.js +0 -484
- package/dist/scripts/6.chunk.js.map +0 -1
- package/dist/scripts/60.chunk.js +0 -254
- package/dist/scripts/60.chunk.js.map +0 -1
- package/dist/scripts/61.chunk.js +0 -408
- package/dist/scripts/61.chunk.js.map +0 -1
- package/dist/scripts/62.chunk.js +0 -142
- package/dist/scripts/62.chunk.js.map +0 -1
- package/dist/scripts/63.chunk.js +0 -147
- package/dist/scripts/63.chunk.js.map +0 -1
- package/dist/scripts/64.chunk.js +0 -439
- package/dist/scripts/64.chunk.js.map +0 -1
- package/dist/scripts/65.chunk.js +0 -582
- package/dist/scripts/65.chunk.js.map +0 -1
- package/dist/scripts/66.chunk.js +0 -442
- package/dist/scripts/66.chunk.js.map +0 -1
- package/dist/scripts/67.chunk.js +0 -295
- package/dist/scripts/67.chunk.js.map +0 -1
- package/dist/scripts/68.chunk.js +0 -165
- package/dist/scripts/68.chunk.js.map +0 -1
- package/dist/scripts/69.chunk.js +0 -248
- package/dist/scripts/69.chunk.js.map +0 -1
- package/dist/scripts/7.chunk.js +0 -309
- package/dist/scripts/7.chunk.js.map +0 -1
- package/dist/scripts/70.chunk.js +0 -207
- package/dist/scripts/70.chunk.js.map +0 -1
- package/dist/scripts/71.chunk.js +0 -237
- package/dist/scripts/71.chunk.js.map +0 -1
- package/dist/scripts/72.chunk.js +0 -331
- package/dist/scripts/72.chunk.js.map +0 -1
- package/dist/scripts/73.chunk.js +0 -404
- package/dist/scripts/73.chunk.js.map +0 -1
- package/dist/scripts/74.chunk.js +0 -301
- package/dist/scripts/74.chunk.js.map +0 -1
- package/dist/scripts/75.chunk.js +0 -231
- package/dist/scripts/75.chunk.js.map +0 -1
- package/dist/scripts/76.chunk.js +0 -157
- package/dist/scripts/76.chunk.js.map +0 -1
- package/dist/scripts/77.chunk.js +0 -307
- package/dist/scripts/77.chunk.js.map +0 -1
- package/dist/scripts/78.chunk.js +0 -249
- package/dist/scripts/78.chunk.js.map +0 -1
- package/dist/scripts/79.chunk.js +0 -282
- package/dist/scripts/79.chunk.js.map +0 -1
- package/dist/scripts/8.chunk.js +0 -307
- package/dist/scripts/8.chunk.js.map +0 -1
- package/dist/scripts/80.chunk.js +0 -308
- package/dist/scripts/80.chunk.js.map +0 -1
- package/dist/scripts/81.chunk.js +0 -366
- package/dist/scripts/81.chunk.js.map +0 -1
- package/dist/scripts/82.chunk.js +0 -314
- package/dist/scripts/82.chunk.js.map +0 -1
- package/dist/scripts/83.chunk.js +0 -328
- package/dist/scripts/83.chunk.js.map +0 -1
- package/dist/scripts/84.chunk.js +0 -313
- package/dist/scripts/84.chunk.js.map +0 -1
- package/dist/scripts/85.chunk.js +0 -291
- package/dist/scripts/85.chunk.js.map +0 -1
- package/dist/scripts/86.chunk.js +0 -119
- package/dist/scripts/86.chunk.js.map +0 -1
- package/dist/scripts/87.chunk.js +0 -219
- package/dist/scripts/87.chunk.js.map +0 -1
- package/dist/scripts/88.chunk.js +0 -194
- package/dist/scripts/88.chunk.js.map +0 -1
- package/dist/scripts/89.chunk.js +0 -522
- package/dist/scripts/89.chunk.js.map +0 -1
- package/dist/scripts/9-b8f9ea66c4.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -222
- package/dist/scripts/9.chunk.js.map +0 -1
- package/dist/scripts/90.chunk.js +0 -337
- package/dist/scripts/90.chunk.js.map +0 -1
- package/dist/scripts/91.chunk.js +0 -131
- package/dist/scripts/91.chunk.js.map +0 -1
- package/dist/scripts/92.chunk.js +0 -266
- package/dist/scripts/92.chunk.js.map +0 -1
- package/dist/scripts/bundle-f28b86bf5b.min.js +0 -8
- package/dist/scripts/bundle.js +0 -67206
- package/dist/scripts/bundle.js.map +0 -1
- package/dist/scripts/polyfills-1d2233ebcc.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -14866
- package/dist/scripts/polyfills.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[31],{1224:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var o=n(1),r=n(2),i=n(298);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(u,t);var e,n,r,a=c(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}}])&&l(e.prototype,n),r&&l(e,r),u}(r.a.ComponentCollection)},1281:function(t,e,n){"use strict";var o=n(2),r=n(15),i=n(83),a=n(4),l=n(42),s=n(1224),c=n(0),u=n(3),p=n(1284),f=n.n(p);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(p,t);var e,n,r,i=g(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),i.call(this,t)}return e=p,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:u.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"rename"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"move"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"editImages"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"remove"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new s.a({analyticsHelper:l.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),r&&d(e,r),p}(o.a.Component),w=n(1285),O=n.n(w),k=n(1286),E=n.n(k);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=D(t);if(e){var r=D(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return T}));var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(l,t);var e,n,o,a=C(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,t)}return e=l,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(E.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":E.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&_(e.prototype,n),o&&_(e,o),l}(o.a.Component)},1284:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},1285:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})},1286:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1307:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var o=n(2),r=n(15),i=n(4),a=n(42),l=n(1224),s=n(0),c=n(3),u=n(1308),p=n.n(u),f=n(1309),y=n.n(f);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(d,t);var e,n,u,f=b(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new l.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection([{title:c.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Create,entity:i.EntityType.Folder,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:c.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Rename,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:c.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Delete,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return p.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),u&&h(e,u),d}(o.a.Component)},1308:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1309:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1489:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,l=t.escapeExpression;return'<div class="'+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.addLibraryContainer:i,e))+'">\r\n <button class="applink-new-library btn btn-outline-secondary '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.addLibrary:i,e))+'">\r\n <span class="'+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.plus:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.plusSvg:i,e))?i:"")+"\r\n </span>\r\n "+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"newLibrary",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return'<div class="logo-region"></div>\r\n<div class="folder-tree-region"></div>\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.canCreateLibraries:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},1490:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.disabled:i,e))},3:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.selected:i,e))},5:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.caret:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.caretSvg:i,e))?i:"")+"\r\n </span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,l=t.lambda,s=t.escapeExpression,c=null!=e?e:t.nullContext||{};return'<div class="position-relative border-bottom '+s(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.library:i,e))+" "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">\r\n <a class="position-relative library-event '+s(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.libraryAnchor:i,e))+" "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.open:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")+' ui-anchor no-hover-text-underline">\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.hasFolders:i,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+s(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+' ui-text">'+s("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:r}):a)+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n<div class="folders-region"></div>'},useData:!0})},1491:function(t,e,n){t.exports={addLibrary:"_1O42p",addLibraryContainer:"_1HX0v",plus:"_3aHT2"}},1492:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,l=t.escapeExpression;return'<img src="'+l("function"==typeof(a=null!=(a=n.url||(null!=e?e.url:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"url",hash:{},data:r}):a)+'" class="'+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+'"/>\r\n'},3:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,l=t.escapeExpression;return'<a class="d-inline-flex align-items-center no-decoration '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.addCrest:i,e))+'" href="'+l(a(null!=(i=null!=e?e.options:e)?i.uploadLogoUrl:i,e))+'" target="_blank">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"crest",{name:"lang",hash:{},data:r}))+"\r\n</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.url:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?i:""},useData:!0})},1493:function(t,e,n){t.exports={image:"Cz1y1",addCrest:"_2PAV_"}},1652:function(t,e,n){"use strict";n.r(e);var o=n(2),r=n(15),i=n(61),a=n(0),l=n(138),s=n(1489),c=n.n(s),u=n(5),p=n(1243),f=n(1281),y=n(1490),d=n.n(y),h=n(1307),g=n(1372),b=n.n(g),m=n(12),v=n(30),w=n(1274),O=n(4);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _(t,e,n){return e&&R(t.prototype,e),n&&R(t,n),t}function L(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=T(t);if(e){var r=T(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){L(n,t);var e=S(n);function n(t){return E(this,n),e.call(this,t)}return _(n,[{key:"initialize",value:function(){var t=this.options.forceOpen||this.options.libraryId&&this.model.get("id").toString()===this.options.libraryId.toString();this.viewModel=v.a.get("".concat("library:left:nav",":").concat(this.model.get("id"))),this.viewModel.set("open",t),this.viewModel.set("disabled",!1),this.listenTo(this.model,"change:name",this.render),this.options.hasMultipleLibraries&&this.listenTo(this,"open:sub:folders",this.onOpenSubFolders),this.videoDragDropService=u.a.getInstance(a.x.VideoDragDrop,this)}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .library-event":"onClick"}}},{key:"onClick",value:function(t){this.viewModel.get("open")&&(t.stopImmediatePropagation(),t.preventDefault(),this.viewModel.set("open",!this.viewModel.get("open")),this.render())}},{key:"onOpenSubFolders",value:function(){if(this.videoDragDropService.getDisabledLibraryIds().includes(this.model.get("id")))return this.viewModel.set("disabled",!0),void this.render();this.viewModel.set("open",!0),this.render()}},{key:"hasFolders",value:function(){return!!m.f.getFirstType(this.model.children,"category")}},{key:"viewOptions",value:function(){return{styles:b.a,caretSvg:r.a.getSvg(r.b.Caret),open:this.viewModel.get("open"),hasFolders:this.hasFolders(),disabled:this.viewModel.get("disabled")}}},{key:"onRender",value:function(){this.showChildView("actions",new h.a({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(b.a.actions),buttonClass:"text-muted",analyticsOptions:this.analyticsOptions})),this.model.children&&this.model.children.length&&this.viewModel.get("open")&&this.showChildView("folders",new p.a({appLink:{action:a.a.LibraryEditor.FOLDER,application:a.b.LIBRARY_EDITOR},linkArgs:function(t){return[t.get("id")]},collection:this.model.children,channelName:"".concat(this.cid),childrenProperty:"children",actions:f.a,folderTreeId:this.options.folderTreeId,analyticsOptions:this.analyticsOptions}))}},{key:"name",get:function(){return"LeftNavLibraryComponent"}},{key:"template",get:function(){return d.a}},{key:"className",get:function(){return b.a.libraryContainer}},{key:"behaviors",get:function(){var t=[a.w.FOLDER_DRAG_DROP];return this.options.hasMultipleLibraries&&t.push(a.w.VIDEO_DRAG_DROP),[{behaviorClass:w.a,ui:"anchor",channelNames:t,analyticsOptions:{location:O.LocationContext.LeftNav}}]}},{key:"appLinks",get:function(){return{".ui-anchor":{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.LIBRARY,args:[this.model.get("id")]}}}},{key:"elements",get:function(){return{anchor:".ui-anchor",text:".ui-text"}}},{key:"analyticsOptions",get:function(){return{location:O.LocationContext.LeftNav}}}]),n}(o.a.Component),P=function(t){L(n,t);var e=S(n);function n(t){return E(this,n),e.call(this,t)}return _(n,[{key:"name",get:function(){return"LeftNavLibrariesComponent"}},{key:"childView",get:function(){return I}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,libraryId:this.options.libraryId,folderTreeId:this.options.folderTreeId,forceOpen:this.options.forceOpen,hasMultipleLibraries:this.collection.length>1}}}]),n}(o.a.ComponentCollection),x=n(1491),A=n.n(x),j=n(16),N=n(136),F=n(190),M=n(9),U=n(92),B=n(82),V=n(42),Y=n(1492),W=n.n(Y),G=n(1493),H=n.n(G);function z(t){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=K(t);if(e){var r=K(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return X(this,n)}}function X(t,e){return!e||"object"!==z(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(i,t);var e,n,o,r=q(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"events",value:function(){return t={},e="click .".concat(H.a.addCrest),n="onClickAddLogo",e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"onClickAddLogo",value:function(){var t={location:O.LocationContext.LeftNav,actionType:O.UserAction.Create,entity:O.EntityType.Logo};V.a.logUserAction({},t)}},{key:"viewOptions",value:function(){return{styles:H.a,uploadLogoUrl:B.a.safeUrlConcat(this.options.onlineUrl,a.t.UPLOAD_LOGO)}}},{key:"name",get:function(){return"CustomerLogoComponent"}},{key:"template",get:function(){return W.a}},{key:"lang",get:function(){return"libraryEditor.customerLogo"}},{key:"className",get:function(){return"text-center p-3 position-relative"}}])&&$(e.prototype,n),o&&$(e,o),i}(o.a.Component);function Z(t){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function et(t,e){return(et=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=rt(t);if(e){var r=rt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ot(this,n)}}function ot(t,e){return!e||"object"!==Z(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rt(t){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LeftNavigationView",(function(){return it}));var it=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&et(t,e)}(p,t);var e,n,o,s=nt(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),s.call(this,t)}return e=p,(n=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=u.a.getInstance(j.a.Settings,this)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:library",this.onSelectLibrary),this.listenTo(a.e.LIBRARY,"cache:cleared",this.fetchData),this.listenTo(a.w.FOLDER_DRAG_DROP,"re:render:left:nav",this.render),this.listenTo(a.e.SETTINGS,"".concat(a.f.SETTINGS,":sync"),this.render)}},{key:"regions",value:function(){return{logo:{el:".logo-region",replaceElement:!1},folderTree:{el:".folder-tree-region",replaceElement:!1,partialLoading:M.h.LeftNav}}}},{key:"events",value:function(){return{"click .new-folder":"newFolder"}}},{key:"fetchData",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),i.a.MaxCustomLibraries)}},{key:"onSelectLibrary",value:function(t){this.collection.each((function(e){v.a.get("".concat("library:left:nav",":").concat(e.id)).set("open",e.id.toString()===t)})),this.render()}},{key:"renderLogo",value:function(){this.showChildView("logo",new Q({model:this.currentUser.get("customerLogo"),customerId:this.currentUser.get("customerId"),onlineUrl:this.config.get("onlineUrl")}))}},{key:"renderLeftNav",value:function(){var t=new P({collection:this.collection,channelName:this.channelName,libraryId:this.options.libraryId,folderTreeId:U.a.LIBRARY_EDITOR,forceOpen:1===this.collection.length});this.showChildView("folderTree",t)}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.maxCustomLibraries}},{key:"viewOptions",value:function(){if(this.collection)return{styles:A.a,plusSvg:r.a.getSvg(r.b.Plus),canCreateLibraries:!!this.maxCustomLibraries&&this.maxCustomLibraries.get("value")>this.collection.length}}},{key:"onRender",value:function(){this.renderLogo(),this.renderLeftNav()}},{key:"name",get:function(){return"LeftNavigationView"}},{key:"title",get:function(){return!1}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.leftNavigation"}},{key:"className",get:function(){return"bg-white pb-3"}},{key:"template",get:function(){return c.a}},{key:"appLinks",get:function(){return{".applink-new-library":{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.NEW_LIBRARY}}}},{key:"requiredResources",get:function(){return{currentUser:N.b.currentUser,config:F.b.config,collection:l.b.libraries}}}])&&tt(e.prototype,n),o&&tt(e,o),p}(o.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(287);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),c=n.n(s),u=n(1070),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),o&&d(t,o),u}(o.a.Component)},1069:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1105:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1063),a=n(12),s=n(1106),c=n.n(s),u=n(1107),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1106:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1107:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1128:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1105),c=n(12),u=n(1129),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1129:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1360:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})},1361:function(e,t,n){e.exports={header:"_1tdTv"}},1464:function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryView",(function(){return L}));var r=n(1),o=n(2),i=n(5),l=n(243),a=n(1068),s=n(282),c=n(9),u=n(58),f=n(1051),p=n(12),d=n(0),h=n(3),y=n(136),b=n(1128),m=n(1360),g=n.n(m),v=n(1361),w=n.n(v);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(v,e);var t,n,o,m=x(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.videoDataService=i.a.getInstance(d.g.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(d.e.VIDEO,"".concat(d.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.c.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!0),p.f.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!1),p.f.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(p.v.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.a.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=p.f.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=p.f.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===u.a.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:c.g.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.c.Disabled)&&this.hasAvailableLibraries())return{title:h.a.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.f.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.a({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.f.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.f.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.a({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:w.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return g.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:h.a.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.a,buttonText:h.a.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:y.b.libraries}}}])&&S(t.prototype,n),o&&S(t,o),v}(o.a.View)}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(253);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1224:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(298);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1229:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1243),a=n(12),s=n(1230),c=n.n(s),u=n(1231),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),o&&d(t,o),u}(o.a.Component)},1230:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1231:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1266:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1224),a=n(12),s=n(1267),c=n.n(s),u=n(1268),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1267:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1268:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1289:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1266),c=n(12),u=n(1290),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1290:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1521:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})},1522:function(e,t,n){e.exports={header:"_1tdTv"}},1625:function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryView",(function(){return L}));var r=n(1),o=n(2),i=n(5),l=n(253),a=n(1229),s=n(293),c=n(9),u=n(59),f=n(1212),p=n(12),d=n(0),h=n(3),y=n(138),b=n(1289),m=n(1521),g=n.n(m),v=n(1522),w=n.n(v);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(v,e);var t,n,o,m=x(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.videoDataService=i.a.getInstance(d.g.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(d.e.VIDEO,"".concat(d.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.c.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!0),p.f.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!1),p.f.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(p.v.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.a.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=p.f.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=p.f.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===u.a.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:c.g.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.c.Disabled)&&this.hasAvailableLibraries())return{title:h.a.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.f.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.a({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.f.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.f.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.a({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:w.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return g.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:h.a.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.a,buttonText:h.a.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:y.b.libraries}}}])&&S(t.prototype,n),o&&S(t,o),v}(o.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[33],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(2),i=n(287);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),c=n.n(s),u=n(1070),f=n.n(u);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&p(t.prototype,n),o&&p(t,o),u}(o.a.Component)},1069:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1105:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1063),a=n(12),s=n(1106),c=n.n(s),u=n(1107),f=n.n(u);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),i&&p(t,i),u}(i.a.Component)},1106:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1107:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1128:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1105),c=n(12),u=n(1129),f=n.n(u);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(h,e);var t,n,i,u=y(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),u.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&p(t.prototype,n),i&&p(t,i),h}(i.a.Component)},1129:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1252:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNamesLength:i,libraries:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,o){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},1442:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveVideoView",(function(){return N}));var r=n(1),o=n(3),i=n(5),l=n(2),a=n(301),s=n(42),c=n(282),u=n(0),f=n(145),h=n(1051),p=n(293),d=n(12),y=n(1068),b=n(243),m=n(1128),g=n(1252),v=n.n(g);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(w,e);var t,n,l,g=O(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.VIDEO,"".concat(u.f.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=i.a.getInstance(u.g.Library,this),this.videoDataService=i.a.getInstance(u.g.Video,this)}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),o=[],i=[];this.libraries.forEach((function(t){var l=d.f.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?o.push(t):i.push(t)})),this.libraries=new f.a(o),this.hiddenLibraryNames=i.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.c.Disabled))return{title:o.a.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=d.f.getSelected(this.libraryTreeKey,this.libraries);t&&d.f.deselectAll(this.folderTreeKey,t.get("children")),d.f.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.c.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=d.f.getSelected(this.libraryTreeKey,this.libraries).get("children");d.f.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.c.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.c.ShowSpinner,!0);var t,n,r=d.f.getSelected(this.folderTreeKey,this.libraries),o=r.get("id"),i=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===i.length?n.get("name"):"",a=p.a.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),i.length,l);this.videoDataService.moveVideos(i,o,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(i,o)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.a.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.a.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.a.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new m.a({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.a({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.a(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),d.f.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.a.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return v.a}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:o.a.getPhrase(this.lang,"heading"),behaviorClass:c.e,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.a,buttonText:o.a.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}}])&&k(t.prototype,n),l&&k(t,l),w}(l.a.View)}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[33],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(253);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1224:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(2),i=n(298);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1229:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1243),a=n(12),s=n(1230),c=n.n(s),u=n(1231),f=n.n(u);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&p(t.prototype,n),o&&p(t,o),u}(o.a.Component)},1230:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1231:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1266:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1224),a=n(12),s=n(1267),c=n.n(s),u=n(1268),f=n.n(u);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),i&&p(t,i),u}(i.a.Component)},1267:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1268:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1289:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1266),c=n(12),u=n(1290),f=n.n(u);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(h,e);var t,n,i,u=y(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),u.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&p(t.prototype,n),i&&p(t,i),h}(i.a.Component)},1290:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1413:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNamesLength:i,libraries:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,o){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},1603:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveVideoView",(function(){return N}));var r=n(1),o=n(3),i=n(5),l=n(2),a=n(312),s=n(42),c=n(293),u=n(0),f=n(147),h=n(1212),p=n(304),d=n(12),y=n(1229),b=n(253),m=n(1289),g=n(1413),v=n.n(g);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(w,e);var t,n,l,g=O(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.VIDEO,"".concat(u.f.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=i.a.getInstance(u.g.Library,this),this.videoDataService=i.a.getInstance(u.g.Video,this)}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),o=[],i=[];this.libraries.forEach((function(t){var l=d.f.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?o.push(t):i.push(t)})),this.libraries=new f.a(o),this.hiddenLibraryNames=i.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.c.Disabled))return{title:o.a.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=d.f.getSelected(this.libraryTreeKey,this.libraries);t&&d.f.deselectAll(this.folderTreeKey,t.get("children")),d.f.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.c.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=d.f.getSelected(this.libraryTreeKey,this.libraries).get("children");d.f.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.c.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.c.ShowSpinner,!0);var t,n,r=d.f.getSelected(this.folderTreeKey,this.libraries),o=r.get("id"),i=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===i.length?n.get("name"):"",a=p.a.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),i.length,l);this.videoDataService.moveVideos(i,o,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(i,o)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.a.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.a.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.a.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new m.a({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.a({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.a(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),d.f.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.a.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return v.a}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:o.a.getPhrase(this.lang,"heading"),behaviorClass:c.e,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.a,buttonText:o.a.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}}])&&k(t.prototype,n),l&&k(t,l),w}(l.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[34],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),i=n(253);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(l,e);var t,n,r,a=c(l);function l(){return o(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&u(t.prototype,n),r&&u(t,r),l}(r.a.Model)},1215:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"e",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return k})),n.d(t,"d",(function(){return w})),n.d(t,"f",(function(){return P})),n.d(t,"h",(function(){return y}));var r=n(2),i=n(1),a=n(19),o=n(29),u=n(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=i.reduce(e,(function(e,n,r){var a=t[r];return n||a?i.isObject(n)&&i.isObject(a)&&!i.isUndefined(n.id)&&n.id===a.id?e:i.isArray(n)?f(n,a).length?e.concat(r):e:i.isEqual(n,a)?e:e.concat(r):e}),[]);if(n.length)return i.object(i.map(n,(function(n){return i.isArray(t[n])?[n,f(e[n],t[n])]:[n,t[n]]})))}}function f(e,t){var n=[];return i.each(t,(function(t){var r=i.findWhere(e,{id:t.id});if(!i.isUndefined(r)||0!==Object.keys(t).length){var a=i.isUndefined(r)?t:l(r,t);a&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(a.id=t.id,n.push(a))))}})),n}var d={getChanges:function(e,t){var n=l(i.omit(e.toJSON(),c),i.omit(t.toJSON(),c));if(n)return i.object(i.map(i.keys(n),(function(e){return[e,d.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(i.isObject(t)&&i.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return i.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:r.a.ErrorHelper.throw(new a.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var a=["distributors","producers","directors","productionCompanies"];for(var o in i.each(i.keys(n),(function(e){a.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(i.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[o]&&e.associations[o]){var u=e.get(o);(u instanceof r.a.Model||u instanceof r.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return i.each(i.keys(e.toJSON()),(function(a){if(i.contains(n,a)){var o=e.get(a).map((function(e){return e.id})),u=t.get(a).map((function(e){return e.id})),s=i.filter(o,(function(e){return e&&!i.contains(u,e)}));s.length&&(r[a]=s)}})),r}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>m?u.a.getPhrase(s,"validProductionYears",{currentYear:m}):void 0):""}},g={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>255?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},E={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},k={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function w(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1216:function(e,t,n){"use strict";var r=n(1222),i=n(1215),a=(n(1220),n(3),n(1223)),o=(n(1225),n(1221)),u=n(82),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return i.g})),n.d(t,"h",(function(){return i.j})),n.d(t,"g",(function(){return i.i})),n.d(t,"d",(function(){return i.f})),n.d(t,"f",(function(){return i.h})),n.d(t,"c",(function(){return a.a})),n.d(t,"i",(function(){return o.a})),n.d(t,"b",(function(){return s}))},1220:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),i=n(49),a=n(162),o=n(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?i.a.calculateDestinationFolderDepth(e,n,t)>a.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:a.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,i=e.folder,a=e.collection;return t&&n?r.extend({},s,c(i,a)):t?s:n?c(i,a):void 0}},1221:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(15),i=n(3),a=n(189),o=n(1233),u=n(59);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.a.HostedLibrary:case u.a.CustomLibrary:return e.get("name");case u.a.Exchange:return i.a.getPhrase(l,"exchange");case u.a.Workspace:return i.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.a.HostedLibrary:case u.a.CustomLibrary:return"bg-info";case u.a.Exchange:return"bg-success";case u.a.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(s(t={},c.Pdf,r.b.FilePDF),s(t,c.Image,r.b.FileImg),s(t,c.PowerPoint,r.b.FilePowerpoint),s(t,c.Document,r.b.FileWord),s(t,c.Excel,r.b.FileExcel),s(t,c.Zip,r.b.FileZip),s(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return i.a.getPhrase(l,"pdf");case c.Image:return i.a.getPhrase(l,"image");case c.Document:return i.a.getPhrase(l,"document");case c.Excel:return i.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return i.a.getPhrase(l,"presentation");case c.Zip:return i.a.getPhrase(l,"zipArchive");case c.File:return i.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case a.MetadataType.VideoTitle:t+="VideoTitle";break;case a.MetadataType.Description:t+="Description";break;case a.MetadataType.Rating:t+="Rating";break;case a.MetadataType.SeriesTitle:t+="SeriesTitle";break;case a.MetadataType.Season:t+="SeasonNumber";break;case a.MetadataType.EpisodeNumber:t+="EpisodeNumber";break;case a.MetadataType.BroadcastDate:t+="BroadcastDate";break;case a.MetadataType.Channel:t+="Channel";break;case a.MetadataType.ProductionYear:t+="ProductionYear";break;case a.MetadataType.Distributors:t+="Distributors";break;case a.MetadataType.ProductionCompanies:t+="ProductionCompanies";break;case a.MetadataType.Directors:t+="Directors";break;case a.MetadataType.Producers:t+="Producers";break;case a.MetadataType.Other:t+="Other"}return i.a.getPhrase(l,t)}}},1222:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),i=n(12),a=n(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,n,a){if(a){if(!r.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>i.w.millisecondsToSeconds(n))return s.StartTime.Exceeds();if(a.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?s.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?s.Name.Exists():r.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},s={Name:{Invalid:function(){return a.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return a.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return a.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return a.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1223:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i="libraryEditor.utils",a={name:[{required:!0,msg:function(){return r.a.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(i,"libraryNameExceeds")}}]}},1225:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(1215),a=r.a.encloseNamespace("libraryEditor.utils"),o={name:[{required:!0,msg:function(){return a("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return a("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?a("episodeNumberLessThanOne"):e&&e>255?a("episodeNumberExceeds"):e&&e%1!=0?a("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?a("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":a("seasonNoEpisodeNumber")},productionYear:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.e.productionYear).apply.apply(e,[null].concat(n))}}},1233:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return c}));var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=o(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(n(2).a.Collection)},1497:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var a;e.propertyIsEnumerable;return(null!=(a=e.lambda(null!=(a=null!=t?t.options:t)?a.spinnerEl:a,t))?a:"")+"\r\n"},3:function(e,t,n,r,i){return'<form>\r\n <div class="form-group">\r\n <label for="url" class="control-label">URL</label>\r\n <input name="url" id="url" type="text" class="form-control" placeholder="URL" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n <div class="form-group">\r\n <label for="name" class="control-label">Name</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="Name" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a;e.propertyIsEnumerable;return null!=(a=n.unless.call(null!=t?t:e.nullContext||{},null!=(a=null!=t?t.options:t)?a.dataFetched:a,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?a:""},useData:!0})},1617:function(e,t,n){"use strict";n.r(t),n.d(t,"EditLinkView",(function(){return w}));var r=n(6),i=n(2),a=n(5),o=n(30),u=n(42),s=n(293),c=n(253),l=n(12),f=n(0),d=n(185),p=n(1212),m=n(1216),h=n(1497),g=n.n(h);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(E,e);var t,n,h,b=P(E);function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),b.call(this,e)}return t=E,(n=[{key:"initialize",value:function(){this.listenTo(f.e.LINK,"link:".concat(this.options.linkId,":sync"),this.render),this.linkDataService=a.a.getInstance(f.g.Link,this)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(c.b.ShowSpinner),this.linkDataService.updateLink(this.options.videoId,this.viewModel,(function(){t.logAction(),i.a.AppLinkHelper.trigger({application:f.b.LIBRARY_EDITOR,action:f.a.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.linkId,parentId:+this.options.videoId,name:this.viewModel.get("name")};u.a.logUserAction(e,this.options.analyticsOptions)}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.linkDataService.getLink(this.options.linkId,(function(t){e.viewModel=o.a.get("link:".concat(e.options.linkId),t.toJSON(),{ctor:d.a}),e.viewModel.addValidation(m.d)})),this.dataFetched()&&this.spinnerModel.set(c.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:l.q.getSpinner({size:l.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),r.Validation.bind(this,{model:this.viewModel}))}},{key:"onClose",value:function(){this.unstickit()}},{key:"name",get:function(){return"EditLinkView"}},{key:"title",get:function(){return"Edit link"}},{key:"template",get:function(){return g.a}},{key:"channelName",get:function(){return l.k.generateUniqueChannelName(this)}},{key:"bindings",get:function(){return{"[name=url]":{observe:"url",setOptions:{validate:!0}},"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:"Edit link",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.a,buttonText:"Save",onClick:function(t){return e.onSubmit(t)}}}]}}])&&y(t.prototype,n),h&&y(t,h),E}(i.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[35],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),a=n(253);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(l,e);var t,n,r,i=c(l);function l(){return o(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"defaults",value:function(){return e={},t=a.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&u(t.prototype,n),r&&u(t,r),l}(r.a.Model)},1215:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"e",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return w})),n.d(t,"d",(function(){return x})),n.d(t,"f",(function(){return P})),n.d(t,"h",(function(){return y}));var r=n(2),a=n(1),i=n(19),o=n(29),u=n(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=a.reduce(e,(function(e,n,r){var i=t[r];return n||i?a.isObject(n)&&a.isObject(i)&&!a.isUndefined(n.id)&&n.id===i.id?e:a.isArray(n)?f(n,i).length?e.concat(r):e:a.isEqual(n,i)?e:e.concat(r):e}),[]);if(n.length)return a.object(a.map(n,(function(n){return a.isArray(t[n])?[n,f(e[n],t[n])]:[n,t[n]]})))}}function f(e,t){var n=[];return a.each(t,(function(t){var r=a.findWhere(e,{id:t.id});if(!a.isUndefined(r)||0!==Object.keys(t).length){var i=a.isUndefined(r)?t:l(r,t);i&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(i.id=t.id,n.push(i))))}})),n}var d={getChanges:function(e,t){var n=l(a.omit(e.toJSON(),c),a.omit(t.toJSON(),c));if(n)return a.object(a.map(a.keys(n),(function(e){return[e,d.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(a.isObject(t)&&a.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return a.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:r.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var i=["distributors","producers","directors","productionCompanies"];for(var o in a.each(a.keys(n),(function(e){i.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(a.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[o]&&e.associations[o]){var u=e.get(o);(u instanceof r.a.Model||u instanceof r.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return a.each(a.keys(e.toJSON()),(function(i){if(a.contains(n,i)){var o=e.get(i).map((function(e){return e.id})),u=t.get(i).map((function(e){return e.id})),s=a.filter(o,(function(e){return e&&!a.contains(u,e)}));s.length&&(r[i]=s)}})),r}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>m?u.a.getPhrase(s,"validProductionYears",{currentYear:m}):void 0):""}},g={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>255?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},E={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},w={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function x(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1216:function(e,t,n){"use strict";var r=n(1222),a=n(1215),i=(n(1220),n(3),n(1223)),o=(n(1225),n(1221)),u=n(82),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return a.g})),n.d(t,"h",(function(){return a.j})),n.d(t,"g",(function(){return a.i})),n.d(t,"d",(function(){return a.f})),n.d(t,"f",(function(){return a.h})),n.d(t,"c",(function(){return i.a})),n.d(t,"i",(function(){return o.a})),n.d(t,"b",(function(){return s}))},1220:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),a=n(49),i=n(162),o=n(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?a.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,a=e.folder,i=e.collection;return t&&n?r.extend({},s,c(a,i)):t?s:n?c(a,i):void 0}},1221:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(15),a=n(3),i=n(189),o=n(1233),u=n(59);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.a.HostedLibrary:case u.a.CustomLibrary:return e.get("name");case u.a.Exchange:return a.a.getPhrase(l,"exchange");case u.a.Workspace:return a.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.a.HostedLibrary:case u.a.CustomLibrary:return"bg-info";case u.a.Exchange:return"bg-success";case u.a.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(s(t={},c.Pdf,r.b.FilePDF),s(t,c.Image,r.b.FileImg),s(t,c.PowerPoint,r.b.FilePowerpoint),s(t,c.Document,r.b.FileWord),s(t,c.Excel,r.b.FileExcel),s(t,c.Zip,r.b.FileZip),s(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return a.a.getPhrase(l,"pdf");case c.Image:return a.a.getPhrase(l,"image");case c.Document:return a.a.getPhrase(l,"document");case c.Excel:return a.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return a.a.getPhrase(l,"presentation");case c.Zip:return a.a.getPhrase(l,"zipArchive");case c.File:return a.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case i.MetadataType.VideoTitle:t+="VideoTitle";break;case i.MetadataType.Description:t+="Description";break;case i.MetadataType.Rating:t+="Rating";break;case i.MetadataType.SeriesTitle:t+="SeriesTitle";break;case i.MetadataType.Season:t+="SeasonNumber";break;case i.MetadataType.EpisodeNumber:t+="EpisodeNumber";break;case i.MetadataType.BroadcastDate:t+="BroadcastDate";break;case i.MetadataType.Channel:t+="Channel";break;case i.MetadataType.ProductionYear:t+="ProductionYear";break;case i.MetadataType.Distributors:t+="Distributors";break;case i.MetadataType.ProductionCompanies:t+="ProductionCompanies";break;case i.MetadataType.Directors:t+="Directors";break;case i.MetadataType.Producers:t+="Producers";break;case i.MetadataType.Other:t+="Other"}return a.a.getPhrase(l,t)}}},1222:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),a=n(12),i=n(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,n,i){if(i){if(!r.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>a.w.millisecondsToSeconds(n))return s.StartTime.Exceeds();if(i.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?s.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?s.Name.Exists():r.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},s={Name:{Invalid:function(){return i.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return i.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return i.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1223:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),a="libraryEditor.utils",i={name:[{required:!0,msg:function(){return r.a.getPhrase(a,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(a,"libraryNameExceeds")}}]}},1225:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(1215),i=r.a.encloseNamespace("libraryEditor.utils"),o={name:[{required:!0,msg:function(){return i("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return i("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return i("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?i("episodeNumberLessThanOne"):e&&e>255?i("episodeNumberExceeds"):e&&e%1!=0?i("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?i("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":i("seasonNoEpisodeNumber")},productionYear:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.e.productionYear).apply.apply(e,[null].concat(n))}}},1233:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return c}));var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=o(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(n(2).a.Collection)},1472:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,a){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,a){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((n.lang||t&&t.lang||o).call(i,"fileName",{name:"lang",hash:{},data:a}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((n.lang||t&&t.lang||o).call(i,"fileName",{name:"lang",hash:{},data:a}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,a){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?i:""},useData:!0})},1606:function(e,t,n){"use strict";n.r(t),n.d(t,"EditResourceView",(function(){return S}));var r=n(1),a=n(6),i=n(42),o=n(2),u=n(5),s=n(30),c=n(293),l=n(253),f=n(0),d=n(12),p=n(1212),m=n(178),h=n(3),g=n(1216),b=n(1472),y=n.n(b);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var a=N(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(x,e);var t,n,b,v=w(x);function x(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),v.call(this,e)}return t=x,(n=[{key:"initialize",value:function(){this.listenTo(f.e.RESOURCE,"resource:".concat(this.options.resourceId,":sync"),this.render),this.resourceDataService=u.a.getInstance(f.g.Resource,this)}},{key:"events",value:function(){return{submit:"onSubmit","shown.bs.modal":"onModalShown"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(a.Radio.channel(this.channelName).trigger(l.b.ShowSpinner),this.resourceDataService.updateResource(this.options.videoId,this.viewModel,(function(){t.logAction(),o.a.AppLinkHelper.trigger({application:f.b.LIBRARY_EDITOR,action:f.a.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.resourceId,parentId:+this.options.videoId,name:this.viewModel.get("name")};i.a.logUserAction(e,this.options.analyticsOptions)}},{key:"selectAllWithoutExtension",value:function(){if(this.model){var e=this.model.get("name").split(".").slice(0,-1).join("."),t=this.getUI("name");t.each((function(n,a){if(r.isFunction(a.setSelectionRange))t.focus(),a.setSelectionRange(0,e.length);else if(r.isFunction(a.createTextRange)){var i=a.createTextRange();i.collapse(!0),i.moveEnd("character",e.length),i.moveStart("character",0),i.select()}}))}}},{key:"onModalShown",value:function(){this.selectAllWithoutExtension()}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.resourceDataService.getResource(this.options.resourceId,(function(t){e.viewModel=s.a.get("resource:".concat(e.options.resourceId),t.toJSON(),{ctor:m.a}),e.viewModel.addValidation(g.e)})),this.dataFetched()&&this.spinnerModel.set(l.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:d.q.getSpinner({size:d.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),a.Validation.bind(this,{model:this.viewModel}),this.selectAllWithoutExtension())}},{key:"onClose",value:function(){this.unstickit(),a.Validation.unbind(this)}},{key:"name",get:function(){return"EditResourceView"}},{key:"lang",get:function(){return"libraryEditor.editResource"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"template",get:function(){return y.a}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:h.a.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.a,buttonText:h.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{name:"#name",feedback:".form-feedback"}}}])&&P(t.prototype,n),b&&P(t,b),x}(o.a.View)}}]);
|