@clickview/library-editor 1.1.18-rc.0 → 1.1.19-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/0.chunk.css +6 -0
- package/dist/css/1.chunk.css +2 -0
- package/dist/css/10.chunk.css +2 -0
- package/dist/css/12.chunk.css +14 -0
- package/dist/css/13.chunk.css +14 -0
- package/dist/css/14.chunk.css +8 -0
- package/dist/css/16.chunk.css +2 -0
- package/dist/css/17.chunk.css +2 -0
- package/dist/css/18.chunk.css +2 -0
- package/dist/css/2.chunk.css +4 -0
- package/dist/css/20.chunk.css +18 -0
- package/dist/css/21.chunk.css +18 -0
- package/dist/css/22.chunk.css +10 -0
- package/dist/css/23.chunk.css +12 -0
- package/dist/css/24.chunk.css +14 -0
- package/dist/css/25.chunk.css +10 -0
- package/dist/css/26.chunk.css +10 -0
- package/dist/css/27.chunk.css +8 -0
- package/dist/css/28.chunk.css +8 -0
- package/dist/css/29.chunk.css +8 -0
- package/dist/css/30.chunk.css +6 -0
- package/dist/css/31.chunk.css +6 -0
- package/dist/css/32.chunk.css +4 -0
- package/dist/css/36.chunk.css +4 -0
- package/dist/css/37.chunk.css +4 -0
- package/dist/css/38.chunk.css +2 -0
- package/dist/css/39.chunk.css +2 -0
- package/dist/css/4.chunk.css +6 -0
- package/dist/css/40.chunk.css +4 -0
- package/dist/css/41.chunk.css +4 -0
- package/dist/css/42.chunk.css +2 -0
- package/dist/css/43.chunk.css +2 -0
- package/dist/css/44.chunk.css +2 -0
- package/dist/css/45.chunk.css +2 -0
- package/dist/css/46.chunk.css +2 -0
- package/dist/css/47.chunk.css +2 -0
- package/dist/css/48.chunk.css +2 -0
- package/dist/css/5.chunk.css +16 -0
- package/dist/css/50.chunk.css +2 -0
- package/dist/css/51.chunk.css +2 -0
- package/dist/css/54.chunk.css +2 -0
- package/dist/css/55.chunk.css +2 -0
- package/dist/css/56.chunk.css +2 -0
- package/dist/css/57.chunk.css +2 -0
- package/dist/css/58.chunk.css +2 -0
- package/dist/css/59.chunk.css +2 -0
- package/dist/css/6.chunk.css +14 -0
- package/dist/css/61.chunk.css +2 -0
- package/dist/css/62.chunk.css +2 -0
- package/dist/css/7.chunk.css +2 -0
- package/dist/css/8.chunk.css +2 -0
- package/dist/css/9.chunk.css +4 -0
- package/dist/css/library-editor-app.css +124 -0
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/Analytics.d.ts +10 -0
- package/dist/libs/analytics/src/AnalyticsHelper.d.ts +30 -0
- package/dist/libs/analytics/src/AnalyticsService.d.ts +52 -0
- package/dist/libs/analytics/src/clients/BaseAnalyticsClient.d.ts +24 -0
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +48 -0
- package/dist/libs/analytics/src/clients/DebuggerClient.d.ts +7 -0
- package/dist/libs/analytics/src/clients/GoogleAnalyticsClient.d.ts +22 -0
- package/dist/libs/analytics/src/constants/ApplicationOptionsKey.d.ts +1 -0
- package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +7 -0
- package/dist/libs/analytics/src/constants/EventFirehose.d.ts +4 -0
- package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +3 -0
- package/dist/libs/analytics/src/constants/Regions.d.ts +6 -0
- package/dist/libs/analytics/src/constants/Services.d.ts +4 -0
- package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +19 -0
- package/dist/libs/analytics/src/enrichers/CoreContextEnricher.d.ts +22 -0
- package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +10 -0
- package/dist/libs/analytics/src/enums/CountryCode.d.ts +5 -0
- package/dist/libs/analytics/src/enums/RegionName.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +214 -0
- package/dist/libs/analytics/src/interfaces/Config.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Folder.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/HashObject.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Owner.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Playlist.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Rating.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/Region.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/Resource.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/Series.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Subtitle.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/User.d.ts +6 -0
- package/dist/libs/analytics/src/interfaces/VersionData.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/Video.d.ts +16 -0
- package/dist/libs/analytics/src/interfaces/index.d.ts +15 -0
- package/dist/libs/analytics/src/interfaces/primitives/BaseObject.d.ts +7 -0
- package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +49 -0
- package/dist/libs/analytics/src/models/CollectionEvent.d.ts +55 -0
- package/dist/libs/analytics/src/services/ContextService.d.ts +19 -0
- package/dist/libs/analytics/src/transport/EventTransport.d.ts +39 -0
- package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +6 -0
- package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +14 -0
- package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +19 -0
- package/dist/libs/analytics/src/utils/ObjectFormatHelper.d.ts +5 -0
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +4 -0
- package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +10 -0
- package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +10 -0
- package/dist/libs/analytics/src/utils/VideoAnalyticsTracker.d.ts +50 -0
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
- package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +5 -0
- package/dist/libs/common/src/backbone/constants/Caches.d.ts +3 -0
- package/dist/libs/common/src/backbone/constants/CommonChannels.d.ts +5 -0
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +5 -0
- package/dist/libs/common/src/backbone/constants/DataProviders.d.ts +4 -0
- package/dist/libs/common/src/backbone/constants/Webplayer.d.ts +65 -0
- package/dist/libs/common/src/backbone/core/AppLink.d.ts +37 -0
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +95 -0
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +76 -0
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +6 -0
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +7 -0
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +16 -0
- package/dist/libs/common/src/backbone/core/BaseError.d.ts +18 -0
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +11 -0
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +27 -0
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +21 -0
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +10 -0
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +127 -0
- package/dist/libs/common/src/backbone/core/EventNames.d.ts +16 -0
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +31 -0
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +3 -0
- package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +23 -0
- package/dist/libs/common/src/backbone/core/Middleware.d.ts +10 -0
- package/dist/libs/common/src/backbone/core/Shell.d.ts +79 -0
- package/dist/libs/common/src/backbone/core/Types.d.ts +12 -0
- package/dist/libs/common/src/backbone/core/index.d.ts +18 -0
- package/dist/libs/common/src/backbone/enums/DataServiceErrorType.d.ts +8 -0
- package/dist/libs/common/src/backbone/enums/HttpVerbs.d.ts +6 -0
- package/dist/libs/common/src/backbone/errors/DevError.d.ts +4 -0
- package/dist/libs/common/src/backbone/errors/NotImplementedError.d.ts +5 -0
- package/dist/libs/common/src/backbone/index.d.ts +2 -0
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +18 -0
- package/dist/libs/common/src/backbone/interfaces/ChainableDataService.d.ts +9 -0
- package/dist/libs/common/src/backbone/interfaces/DataCache.d.ts +8 -0
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +15 -0
- package/dist/libs/common/src/backbone/interfaces/DataServiceError.d.ts +7 -0
- package/dist/libs/common/src/backbone/interfaces/DataServiceRequests.d.ts +218 -0
- package/dist/libs/common/src/backbone/interfaces/Pagination.d.ts +33 -0
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +38 -0
- package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +9 -0
- package/dist/libs/common/src/backbone/interfaces/index.d.ts +9 -0
- package/dist/libs/common/src/backbone/runtime/InputValidation.d.ts +2 -0
- package/dist/libs/common/src/backbone/services/BaseAlertService.d.ts +69 -0
- package/dist/libs/common/src/backbone/services/BaseDataService.d.ts +82 -0
- package/dist/libs/common/src/backbone/services/EnvironmentVariables.d.ts +13 -0
- package/dist/libs/common/src/backbone/services/InstanceManager.d.ts +33 -0
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +22 -0
- package/dist/libs/common/src/backbone/services/ScrollService.d.ts +19 -0
- package/dist/libs/common/src/backbone/services/ViewModelService.d.ts +68 -0
- package/dist/libs/common/src/backbone/services/caches/FifoMemoryCache.d.ts +20 -0
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +31 -0
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +46 -0
- package/dist/libs/common/src/backbone/utils/ConcurrencyHelper.d.ts +13 -0
- package/dist/libs/common/src/backbone/utils/DataServiceErrorHelper.d.ts +2 -0
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +8 -0
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +58 -0
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +13 -0
- package/dist/libs/common/src/backbone/utils/UserAgentHelper.d.ts +7 -0
- package/dist/libs/common/src/react/interfaces/HashObject.d.ts +3 -0
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +50 -0
- package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +10 -0
- package/dist/libs/shared/src/apps/notifications/collections/NotificationCollection.d.ts +9 -0
- package/dist/libs/shared/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +23 -0
- package/dist/libs/shared/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +26 -0
- package/dist/libs/shared/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +15 -0
- package/dist/libs/shared/src/apps/notifications/enums/AppLinkReferrer.d.ts +3 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationActions.d.ts +3 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationAlertType.d.ts +7 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationAppLinkModules.d.ts +7 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationModules.d.ts +4 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationStatus.d.ts +5 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +16 -0
- package/dist/libs/shared/src/apps/notifications/interfaces/NotificationCollectionRequest.d.ts +5 -0
- package/dist/libs/shared/src/apps/notifications/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/apps/notifications/models/Notification.d.ts +6 -0
- package/dist/libs/shared/src/apps/notifications/services/NotificationDataService.d.ts +14 -0
- package/dist/libs/shared/src/apps/notifications/services/NotificationService.d.ts +33 -0
- package/dist/libs/shared/src/apps/notifications/services/NotificationSocketService.d.ts +8 -0
- package/dist/libs/shared/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +4 -0
- package/dist/libs/shared/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +10 -0
- package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +18 -0
- package/dist/libs/shared/src/apps/notifications/views/header/NotificationHeaderView.d.ts +16 -0
- package/dist/libs/shared/src/apps/notifications/views/notifications/NotificationsView.d.ts +27 -0
- package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +34 -0
- package/dist/libs/shared/src/apps/search/components/confirm-selection/ConfirmSelectionComponent.d.ts +12 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/index.d.ts +4 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +15 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +9 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +9 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +18 -0
- package/dist/libs/shared/src/apps/search/components/search-context/SearchContextComponent.d.ts +18 -0
- package/dist/libs/shared/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +11 -0
- package/dist/libs/shared/src/apps/search/constants/TypeaheadConfiguration.d.ts +12 -0
- package/dist/libs/shared/src/apps/search/enums/FilterTypes.d.ts +14 -0
- package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +18 -0
- package/dist/libs/shared/src/apps/search/enums/SearchTypes.d.ts +8 -0
- package/dist/libs/shared/src/apps/search/interfaces/SearchTypes.d.ts +26 -0
- package/dist/libs/shared/src/apps/search/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/apps/search/services/ContextualSearchService.d.ts +34 -0
- package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +21 -0
- package/dist/libs/shared/src/apps/search/utils/RecentSearchHelper.d.ts +12 -0
- package/dist/libs/shared/src/apps/search/utils/SearchHelper.d.ts +5 -0
- package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +75 -0
- package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +105 -0
- package/dist/libs/shared/src/apps/search/views/search-bar/templates/index.d.ts +9 -0
- package/dist/libs/shared/src/apps/upload/collections/PendingItemsCollection.d.ts +8 -0
- package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +39 -0
- package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +4 -0
- package/dist/libs/shared/src/apps/upload/enums/PendingItemStatus.d.ts +5 -0
- package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +15 -0
- package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +7 -0
- package/dist/libs/shared/src/apps/upload/services/BasePendingItemsService.d.ts +26 -0
- package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +30 -0
- package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +65 -0
- package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
- package/dist/libs/shared/src/apps/upload/utils/PendingItemsHelper.d.ts +9 -0
- package/dist/libs/shared/src/constants/AppVariables.d.ts +4 -0
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +5 -0
- package/dist/libs/shared/src/constants/DataPrefixes.d.ts +12 -0
- package/dist/libs/shared/src/constants/RadioChannels.d.ts +20 -0
- package/dist/libs/shared/src/constants/SharedServices.d.ts +25 -0
- package/dist/libs/shared/src/enums/ClassificationType.d.ts +4 -0
- package/dist/libs/shared/src/enums/CurationStatus.d.ts +12 -0
- package/dist/libs/shared/src/enums/CustomerType.d.ts +11 -0
- package/dist/libs/shared/src/enums/GlanceFormat.d.ts +3 -0
- package/dist/libs/shared/src/enums/Images.d.ts +26 -0
- package/dist/libs/shared/src/enums/LibraryType.d.ts +5 -0
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +18 -0
- package/dist/libs/shared/src/enums/PartialLoading.d.ts +4 -0
- package/dist/libs/shared/src/enums/ThemeType.d.ts +3 -0
- package/dist/libs/shared/src/enums/UserRole.d.ts +15 -0
- package/dist/libs/shared/src/enums/VideoOrigin.d.ts +14 -0
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +6 -0
- package/dist/libs/shared/src/errors/primitives/AlertError.d.ts +4 -0
- package/dist/libs/shared/src/errors/primitives/DialogError.d.ts +9 -0
- package/dist/libs/shared/src/errors/primitives/ErrorPageError.d.ts +7 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +81 -0
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +21 -0
- package/dist/libs/shared/src/images/svg/arrows/index.d.ts +9 -0
- package/dist/libs/shared/src/images/svg/index.d.ts +2 -0
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +33 -0
- package/dist/libs/shared/src/images/svg/player/index.d.ts +14 -0
- package/dist/libs/shared/src/images/svg/settings.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/status/index.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/AppLinkWithLabel.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/DialogOptions.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/ImageUrls.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/QueryParams.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/WidgetContext.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/app-variables/index.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/collections/AudienceCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/CategoryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClipCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/CompanyCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/CustomerCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/FolderCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/LibraryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/LinkCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/PersonCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/PlaylistCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/PresentationAudienceCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ResourceCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/SeriesCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/TagCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/UserCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/VideoCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/WidgetCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/collections/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/index.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/models/Audience.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Banner.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Category.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Channel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Classification.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Company.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Cover.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Folder.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Following.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/HeroBanner.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Image.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Interactive.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/LanguageConfig.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Organisation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Person.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/models/Poster.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/PresentationAudience.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Rating.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Restriction.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Season.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Series.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/models/Share.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Subject.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/models/Tag.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/TallPoster.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +11 -0
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +53 -0
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +26 -0
- package/dist/libs/shared/src/interfaces/models/VideoWithRestrictions.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +15 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +42 -0
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/props/ViewProps.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/props/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/ReorderRequest.d.ts +12 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/BaseLibraryDataService.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/services/BaseSeriesDataService.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/BaseVideoDataService.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseVideoUploadDataService.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +4 -0
- package/dist/libs/shared/src/legacy/behaviors/empty-state/EmptyStateBehavior.d.ts +22 -0
- package/dist/libs/shared/src/legacy/behaviors/popover/PopoverBehavior.d.ts +40 -0
- package/dist/libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.d.ts +26 -0
- package/dist/libs/shared/src/legacy/components/empty-state/EmptyStateComponent.d.ts +24 -0
- package/dist/libs/shared/src/legacy/components/pagination/PaginationComponent.d.ts +29 -0
- package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +34 -0
- package/dist/libs/shared/src/legacy/constants/empty-state-components/EmptyStateComponents.d.ts +6 -0
- package/dist/libs/shared/src/legacy/enums/EmptyState.d.ts +3 -0
- package/dist/libs/shared/src/legacy/enums/SortType.d.ts +7 -0
- package/dist/libs/shared/src/legacy/interfaces/CollectionIdentifier.d.ts +7 -0
- package/dist/libs/shared/src/legacy/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/legacy/utils/EmptyStateHelper.d.ts +4 -0
- package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +5 -0
- package/dist/libs/shared/src/services/ContextService.d.ts +38 -0
- package/dist/libs/shared/src/services/LanguageDataService.d.ts +7 -0
- package/dist/libs/shared/src/services/UserDataService.d.ts +23 -0
- package/dist/libs/shared/src/utils/EmbedHelper.d.ts +8 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +30 -0
- package/dist/libs/shared/src/utils/LibraryDataServiceHelper.d.ts +13 -0
- package/dist/libs/shared/src/utils/MaskHelper.d.ts +15 -0
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +19 -0
- package/dist/libs/shared/src/utils/TextHelper.d.ts +3 -0
- package/dist/projects/library-editor/src/app.d.ts +224 -0
- package/dist/projects/library-editor/src/apps/content-updates/ContentUpdatesApplication.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/content-updates/collections/SubjectCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/content-updates/collections/VideoGroupCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-filters/PastReleasesFiltersComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-header/PastReleasesHeaderComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/apps/content-updates/models/Subject.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/content-updates/models/VideoGroup.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/content-updates/services/ContentUpdatesDataService.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +47 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/awaiting-review/AwaitingReviewView.d.ts +36 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/disable-review/DisableReviewView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/generate-past-releases-pdf/GeneratePastReleasesPdfView.d.ts +41 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +55 -0
- package/dist/projects/library-editor/src/apps/dashboard/DashboardApplication.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-action-tile/DashboardActionTileComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-info-tile/DashboardInfoTileComponent.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-container/DashboardTileContainerComponent.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-list/DashboardTileListComponent.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/dashboard/views/DashboardView.d.ts +38 -0
- package/dist/projects/library-editor/src/apps/default/DefaultApplication.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/default/views/dev-error/DevErrorView.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/default/views/error-view/ErrorView.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/default/views/not-found/NotFoundView.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/index.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +46 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/droppable/DroppableBehavior.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DraggableItemComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/add-links/AddLinksComponent.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/banner/BannerComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-form/ChapterFormComponent.d.ts +66 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterComponentCollection.d.ts +25 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterItemComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapters/ChaptersComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/customer-logo/CustomerLogoComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-image/EditImageComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/LinkItemComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/VideoLinksComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.d.ts +48 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/file-select/FileSelectComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +13 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-actions/FolderActionsDropdownComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-details/FolderDetailsComponent.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-select/FolderSelectComponent.d.ts +41 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +45 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/library-actions/LibraryActionsComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/library-folders/LibraryFolderListComponent.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/library-select/LibrarySelectComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/save/SaveComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFolderComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFoldersComponent.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/suggest-edit/SuggestEditComponent.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagComponentCollection.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagItemComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/tags/TagsComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-header/VideoHeaderComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/ResourceItemComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-sidebar-info/VideoSidebarInfoComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/SubtitleItemComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/constants/VideoCollectionTypes.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/models/ChapterConcatenateRequest.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/ChapterDataService.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/CompanyDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/ExportDataService.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/FieldsDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/FolderDragDropService.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/LibraryDataService.d.ts +65 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/LinkDataService.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/PersonDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/RatingsDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/ResourceDataService.d.ts +13 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/SeriesDataService.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/SubtitleDataService.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/TagDataService.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +45 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/VideoDragDropService.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/utils/ChapterHelper.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +93 -0
- package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/add-to-exchange/AddToExchangeView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/banner-upload/BannerUploadView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-folder/DeleteFolderView.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-library/DeleteLibraryView.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-videos/DeleteVideosView.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-chapters/EditChaptersView.d.ts +71 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.d.ts +51 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-library/RenameLibraryView.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-link/EditLinkView.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-resource/EditResourceView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +92 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-video/EditVideoView.d.ts +125 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/generate-pdf/GeneratePdfView.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/left-navigation/LeftNavigationView.d.ts +33 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/library/LibraryView.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/move-folder/MoveFolderView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +50 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/new-folder/NewFolderView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/new-library/NewLibraryView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/no-library/NoLibraryView.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/publish-library/PublishLibraryView.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/rename-folder/RenameFolderView.d.ts +39 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/suggest-an-edit/SuggestAnEditView.d.ts +58 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/thumbnail-upload/ThumbnailUploadView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +105 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/video-details/VideoDetailsView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +45 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/collections/HomeFolderCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/collections/SmartSelectVideoCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/banner/BannerComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/empty-video-list/EmptyVideoListComponent.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-actions/ErroredVideoActionsComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-footer/ErroredVideoFooterComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-item/ErroredVideoItemComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-list/ErroredVideoListComponent.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-metadata/ErroredVideoMetadataComponent.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-preview/ErroredVideoPreviewComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report/GenerateReportComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report-button/GenerateReportButtonComponent.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/migration-video-item/MigrationVideoItemComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-bar/ProgressBarComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-circle/ProgressCircleComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/search-bar/SearchBarComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/selected-video-item/SelectedVideoItemComponent.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/sorting-row/SortingRowComponent.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list/VideoListCollection.d.ts +36 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list-collection/VideoListCollectionComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/BackupToolBuild.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/CustomerMetadata.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/FinalisationTask.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/HomeFolder.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/MigrationOptions.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/SelectedVideo.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/SmartSelectVideo.d.ts +4 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/VideoCount.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/FolderCacheService.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/LocalOptionsService.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/MigrationVideoDataService.d.ts +56 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/SelectedVideoService.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/FolderHelper.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/VideoHelper.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/current-section-header/CurrentSectionHeaderView.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/generate-csv-report/GenerateCsvReportView.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-error/MigrationErrorView.d.ts +40 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-progress/MigrationProgressView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-banner/PublishLibraryBannerView.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-complete/PublishLibraryCompleteView.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-progress/PublisherBackupProgressView.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/remigrate-video/RemigrateVideoView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/show-video-popup/ShowPublisherVideoPopupView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/smart-migration/SmartMigrationView.d.ts +58 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/start/StartView.d.ts +40 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/videos-added/VideosAddedView.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/notifications/NotificationsApplication.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/notifications/constants/NotificationsAppVariables.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/notifications/utils/NotificationsHelper.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/search/SearchApplication.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/search/collections/FilterCollection.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/search/collections/OptionCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/FiltersComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonItemComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonListComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterItemComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterListComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/FilterOptionsComponent.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/bool-filter-options/BoolFilterOptionsComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/duration-filter-options/DurationFilterOptionListComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionItemComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionsListComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/range-filter-options/RangeFilterOptionListComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsListComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/more-filters-button/MoreFiltersButtonComponent.d.ts +42 -0
- package/dist/projects/library-editor/src/apps/search/components/results/SearchResultsComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/search/components/search-header/SearchHeaderComponent.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/search/models/Filter.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/search/models/Option.d.ts +4 -0
- package/dist/projects/library-editor/src/apps/search/models/Query.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +4 -0
- package/dist/projects/library-editor/src/apps/search/services/SearchDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/search/utils/SearchHelper.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/search/views/search/SearchView.d.ts +57 -0
- package/dist/projects/library-editor/src/apps/staff-requests/StaffRequestsApplication.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestMessageCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +42 -0
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-list/StaffRequestListComponent.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequest.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequestMessage.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/staff-requests/services/StaffRequestDataService.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/staff-requests/views/approve-staff-request/ApproveStaffRequestView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/staff-requests/views/reject-staff-request/RejectStaffRequestView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/upload/components/processing-progress/ProcessProgressComponentCollection.d.ts +38 -0
- package/dist/projects/library-editor/src/apps/upload/components/progress-info/ProgressInfoComponent.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-actions/UploadActionsComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-folder-select/UploadFolderSelectComponent.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-progress/UploadProgressComponent.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponent.d.ts +47 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponentCollection.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/upload/services/ImageUploadDataService.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/upload/services/PendingItemsService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/upload/services/VideoUploadDataService.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/upload/services/VideoUploadService.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/upload/views/file-select/FileSelectView.d.ts +25 -0
- package/dist/projects/library-editor/src/apps/upload/views/progress-summary/ProgressSummaryView.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/upload/views/upload-button/UploadButtonView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/upload/views/upload-complete/UploadCompleteView.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +62 -0
- package/dist/projects/library-editor/src/apps/video-access/VideoAccessApplication.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/video-access/views/restricted-video-list/RestrictedVideoListView.d.ts +34 -0
- package/dist/projects/library-editor/src/shared/alerts/VideoAlerts.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/behaviors/backbone-validation/BackboneValidationBehavior.d.ts +14 -0
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropBehavior.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropMaskBehavior.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/behaviors/file-select/FileSelectBehavior.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/behaviors/image-select-behavior/ImageSelectBehavior.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/behaviors/lazy-load/LazyLoadBehavior.d.ts +31 -0
- package/dist/projects/library-editor/src/shared/behaviors/lock-layout-file-drop/LockLayoutFileDropBehavior.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +65 -0
- package/dist/projects/library-editor/src/shared/behaviors/stickit/StickitBehavior.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/ChannelCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/ChapterCollection.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/collections/DirectorCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/DistributorCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/FieldsCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/FolderCollection.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/collections/InteractivesCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/LibraryCollection.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/collections/LinkCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/LocalCacheDeviceCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/LocalCacheDownloadCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/MetadataCollection.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/collections/ProducerCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/ProductionCompanyCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/RatingCollection.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/collections/ResourceCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/RestrictedObjectCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/RestrictionCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/SeasonCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/SettingsCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/SubtitleCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/TagCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/VideoCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/components/alert/AlertComponentCollection.d.ts +11 -0
- package/dist/projects/library-editor/src/shared/components/alert/AlertItemComponent.d.ts +44 -0
- package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbsComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/shared/components/bulk-video-actions/BulkVideoActionsComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/shared/components/checkbox/BulkCheckboxComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/shared/components/checkbox/CheckboxComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/clear-button/ClearButtonComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +47 -0
- package/dist/projects/library-editor/src/shared/components/dialog/DialogView.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +36 -0
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.d.ts +38 -0
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownItemComponent.d.ts +57 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +38 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.d.ts +32 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.d.ts +61 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingComponent.d.ts +40 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/fields/FieldsComponent.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +34 -0
- package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavNodeComponent.d.ts +48 -0
- package/dist/projects/library-editor/src/shared/components/page-footer/PageFooterComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/shared/components/page-header/PageHeaderComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponentCollection.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/resizing-text-area/ResizingTextAreaComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +54 -0
- package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +73 -0
- package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/shared/components/top-navigation/TopNavigationComponentCollection.d.ts +29 -0
- package/dist/projects/library-editor/src/shared/components/tree-dropdown/TreeDropdownComponent.d.ts +32 -0
- package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +74 -0
- package/dist/projects/library-editor/src/shared/components/typeahead-list/TypeaheadListComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/user-options-dropdown/UserOptionsDropdownComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionComponentCollection.d.ts +31 -0
- package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionsComponent.d.ts +42 -0
- package/dist/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfoComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/video-description/VideoDescriptionComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/video-item/VideoItemComponent.d.ts +58 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item-preview/VideoItemPreviewComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/shared/components/video-list/VideoListComponent.d.ts +44 -0
- package/dist/projects/library-editor/src/shared/components/video-preview/VideoPreviewComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/shared/components/web-player/WebPlayerComponent.d.ts +53 -0
- package/dist/projects/library-editor/src/shared/constants/CacheDurations.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/constants/Services.d.ts +62 -0
- package/dist/projects/library-editor/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/errors/authentication/AuthenticationError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/customer-setting/CustomerSettingError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +11 -0
- package/dist/projects/library-editor/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/not-found/NotFoundError.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/errors/old-version/OldVersionError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/too-many-files/TooManyFilesError.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/index.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/interfaces/VideoCollectionIdentifier.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +47 -0
- package/dist/projects/library-editor/src/shared/models/Avatar.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Banner.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Channel.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Chapter.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Company.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Config.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Customer.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Director.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/DisabledSpinnerModel.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/models/Distributor.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Folder.d.ts +14 -0
- package/dist/projects/library-editor/src/shared/models/Image.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Interactives.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/LanguageConfig.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/models/Library.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/models/Link.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/LocalCacheDevice.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/LocalCacheDownload.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Logo.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Metadata.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Owner.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Person.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Phrases.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Playlist.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Producer.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/ProductionCompany.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Rating.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Resource.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/RestrictedObject.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Restriction.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Season.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Series.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/models/Setting.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/SharedResource.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Subtitle.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Tag.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Thumbnail.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/User.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/models/Video.d.ts +49 -0
- package/dist/projects/library-editor/src/shared/services/AlertService.d.ts +15 -0
- package/dist/projects/library-editor/src/shared/services/ConfigDataService.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/services/CustomerDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/services/DownloadProxyDataServices.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/services/IntercomService.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/services/LocalCacheDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/shared/services/NavigationLockService.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/services/PageTitleService.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/services/PageVisibilityService.d.ts +14 -0
- package/dist/projects/library-editor/src/shared/services/PartialLoadingService.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/services/RestrictedVideoDataService.d.ts +15 -0
- package/dist/projects/library-editor/src/shared/services/SettingsDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/shared/services/UserDataService.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/services/VideoMixinService.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/utils/BulkCheckboxHelper.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/utils/CancelProcessingHelper.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/utils/CollectionHelper.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/utils/DialogHelper.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/utils/DurationHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/utils/FolderTreeHelpers.d.ts +36 -0
- package/dist/projects/library-editor/src/shared/utils/ImageHelper.d.ts +32 -0
- package/dist/projects/library-editor/src/shared/utils/LocalCacheHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/utils/PartialLoadingHelper.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +13 -0
- package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/utils/RestrictedAccessHelper.d.ts +13 -0
- package/dist/projects/library-editor/src/shared/utils/SortHelper.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/utils/TabHelper.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +11 -0
- package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/views/download-to-local-cache/DownloadToLocalCacheView.d.ts +28 -0
- package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessComponent.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessGroupComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessView.d.ts +67 -0
- package/dist/projects/library-editor/src/shared/views/share/ShareView.d.ts +48 -0
- package/dist/projects/library-editor/src/shared/views/top-navigation/TopNavigationView.d.ts +35 -0
- package/dist/projects/library-editor/src/shared/views/user-options/UserOptionsView.d.ts +18 -0
- package/dist/projects/library-editor/src/startup/ConsoleOutput.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterAjaxMiddleware.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterRuntimeEnvironment.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +15 -0
- package/dist/projects/library-editor/src/startup/index.d.ts +14 -0
- package/dist/scripts/0-48b01028ea.chunk.js +1 -0
- package/dist/scripts/1-098c567081.chunk.js +1 -0
- package/dist/scripts/10-b4b24c05f8.chunk.js +1 -0
- package/dist/scripts/11-e79fc84dc9.chunk.js +11 -0
- package/dist/scripts/12-58284faf21.chunk.js +1 -0
- package/dist/scripts/13-2c4cd203ec.chunk.js +1 -0
- package/dist/scripts/14-2eeb73cd11.chunk.js +1 -0
- package/dist/scripts/15-6fa6f47a8b.chunk.js +1 -0
- package/dist/scripts/16-68c900303f.chunk.js +1 -0
- package/dist/scripts/17-af7eca54ed.chunk.js +1 -0
- package/dist/scripts/18-087b42c483.chunk.js +1 -0
- package/dist/scripts/2-c70309751f.chunk.js +1 -0
- package/dist/scripts/20-caf95bbe64.chunk.js +1 -0
- package/dist/scripts/21-5d5cda7f47.chunk.js +1 -0
- package/dist/scripts/22-f2b4962990.chunk.js +1 -0
- package/dist/scripts/23-d575c690b9.chunk.js +1 -0
- package/dist/scripts/24-dc5b027075.chunk.js +1 -0
- package/dist/scripts/25-956d1e9caf.chunk.js +1 -0
- package/dist/scripts/26-7a3d12d816.chunk.js +1 -0
- package/dist/scripts/27-dc6045c275.chunk.js +1 -0
- package/dist/scripts/28-e7ce349a42.chunk.js +1 -0
- package/dist/scripts/29-e281d8346a.chunk.js +1 -0
- package/dist/scripts/3-afb156ea3e.chunk.js +1 -0
- package/dist/scripts/30-d4b6c1cd1d.chunk.js +1 -0
- package/dist/scripts/31-c1d42342dd.chunk.js +1 -0
- package/dist/scripts/32-1b1e4c86f5.chunk.js +1 -0
- package/dist/scripts/33-7ef65d086d.chunk.js +1 -0
- package/dist/scripts/34-6d7e7405af.chunk.js +1 -0
- package/dist/scripts/35-7d7e41a203.chunk.js +1 -0
- package/dist/scripts/36-37f9fd0ad1.chunk.js +1 -0
- package/dist/scripts/37-06db9481cd.chunk.js +1 -0
- package/dist/scripts/38-528abd1bba.chunk.js +1 -0
- package/dist/scripts/39-80001e779c.chunk.js +1 -0
- package/dist/scripts/4-f8a4d0b62a.chunk.js +1 -0
- package/dist/scripts/40-d59ee7c3e1.chunk.js +1 -0
- package/dist/scripts/41-8c75d122fc.chunk.js +1 -0
- package/dist/scripts/42-a68ee26f34.chunk.js +1 -0
- package/dist/scripts/43-bde1af67cb.chunk.js +1 -0
- package/dist/scripts/44-abdd275e46.chunk.js +1 -0
- package/dist/scripts/45-6b745e57af.chunk.js +1 -0
- package/dist/scripts/46-bee29b02a3.chunk.js +1 -0
- package/dist/scripts/47-c142425de4.chunk.js +1 -0
- package/dist/scripts/48-81efa76f40.chunk.js +1 -0
- package/dist/scripts/49-cbd218d6e4.chunk.js +1 -0
- package/dist/scripts/5-1b6768e719.chunk.js +1 -0
- package/dist/scripts/50-ec2f179d8c.chunk.js +1 -0
- package/dist/scripts/51-9b91910fc0.chunk.js +1 -0
- package/dist/scripts/52-d2e93491a5.chunk.js +1 -0
- package/dist/scripts/53-1c8ff136ad.chunk.js +1 -0
- package/dist/scripts/54-34116d34e6.chunk.js +1 -0
- package/dist/scripts/55-02803101de.chunk.js +1 -0
- package/dist/scripts/56-19ec4b6ccd.chunk.js +1 -0
- package/dist/scripts/57-17e93c944c.chunk.js +1 -0
- package/dist/scripts/58-dd77463e63.chunk.js +1 -0
- package/dist/scripts/59-08e8830b9c.chunk.js +1 -0
- package/dist/scripts/6-e87b3c0be1.chunk.js +1 -0
- package/dist/scripts/60-720797bb78.chunk.js +1 -0
- package/dist/scripts/61-66e55ae6e1.chunk.js +1 -0
- package/dist/scripts/62-beb29b208b.chunk.js +1 -0
- package/dist/scripts/63-bbc787afe7.chunk.js +1 -0
- package/dist/scripts/64-b10c083c61.chunk.js +1 -0
- package/dist/scripts/65-40c1cc2f53.chunk.js +1 -0
- package/dist/scripts/66-32ae3ca73f.chunk.js +1 -0
- package/dist/scripts/67-1f082de6fd.chunk.js +1 -0
- package/dist/scripts/68-f53fbad25f.chunk.js +1 -0
- package/dist/scripts/69-984061e3b8.chunk.js +1 -0
- package/dist/scripts/7-7d12e809a2.chunk.js +1 -0
- package/dist/scripts/70-8edf7afb7b.chunk.js +1 -0
- package/dist/scripts/71-6365b9e3d4.chunk.js +1 -0
- package/dist/scripts/72-85505b2300.chunk.js +1 -0
- package/dist/scripts/8-76e9f1bbc7.chunk.js +1 -0
- package/dist/scripts/9-a04919dbb2.chunk.js +1 -0
- package/dist/scripts/bundle-f3260e8016.min.js +1 -0
- package/dist/scripts/bundles.json +3 -0
- package/package.json +99 -102
- package/typings/utils/globals.d.ts +1 -0
- package/dist/bundle.js +0 -11
- package/dist/library-editor-app.css +0 -312
- package/dist/src/apps/content-updates/ContentUpdatesApplication.d.ts +0 -18
- package/dist/src/apps/content-updates/collections/SubjectCollection.d.ts +0 -5
- package/dist/src/apps/content-updates/collections/VideoGroupCollection.d.ts +0 -5
- package/dist/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.d.ts +0 -14
- package/dist/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.d.ts +0 -19
- package/dist/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.d.ts +0 -18
- package/dist/src/apps/content-updates/components/past-releases-filters/PastReleasesFiltersComponent.d.ts +0 -20
- package/dist/src/apps/content-updates/components/past-releases-header/PastReleasesHeaderComponent.d.ts +0 -24
- package/dist/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +0 -36
- package/dist/src/apps/content-updates/models/Subject.d.ts +0 -3
- package/dist/src/apps/content-updates/models/VideoGroup.d.ts +0 -7
- package/dist/src/apps/content-updates/services/ContentUpdatesDataService.d.ts +0 -17
- package/dist/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +0 -7
- package/dist/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +0 -47
- package/dist/src/apps/content-updates/views/awaiting-review/AwaitingReviewView.d.ts +0 -36
- package/dist/src/apps/content-updates/views/disable-review/DisableReviewView.d.ts +0 -26
- package/dist/src/apps/content-updates/views/generate-past-releases-pdf/GeneratePastReleasesPdfView.d.ts +0 -41
- package/dist/src/apps/content-updates/views/index.d.ts +0 -5
- package/dist/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +0 -55
- package/dist/src/apps/dashboard/DashboardApplication.d.ts +0 -9
- package/dist/src/apps/dashboard/components/dashboard-action-tile/DashboardActionTileComponent.d.ts +0 -20
- package/dist/src/apps/dashboard/components/dashboard-info-tile/DashboardInfoTileComponent.d.ts +0 -7
- package/dist/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +0 -15
- package/dist/src/apps/dashboard/components/dashboard-tile-container/DashboardTileContainerComponent.d.ts +0 -11
- package/dist/src/apps/dashboard/components/dashboard-tile-list/DashboardTileListComponent.d.ts +0 -14
- package/dist/src/apps/dashboard/views/DashboardView.d.ts +0 -38
- package/dist/src/apps/default/DefaultApplication.d.ts +0 -21
- package/dist/src/apps/default/views/dev-error/DevErrorView.d.ts +0 -11
- package/dist/src/apps/default/views/error-view/ErrorView.d.ts +0 -12
- package/dist/src/apps/default/views/not-found/NotFoundView.d.ts +0 -11
- package/dist/src/apps/index.d.ts +0 -18
- package/dist/src/apps/library-editor/LibraryEditorApplication.d.ts +0 -46
- package/dist/src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.d.ts +0 -9
- package/dist/src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.d.ts +0 -24
- package/dist/src/apps/library-editor/behaviors/droppable/DroppableBehavior.d.ts +0 -19
- package/dist/src/apps/library-editor/behaviors/shared/DraggableItemComponent.d.ts +0 -15
- package/dist/src/apps/library-editor/components/add-links/AddLinksComponent.d.ts +0 -31
- package/dist/src/apps/library-editor/components/banner/BannerComponent.d.ts +0 -19
- package/dist/src/apps/library-editor/components/chapter-form/ChapterFormComponent.d.ts +0 -66
- package/dist/src/apps/library-editor/components/chapter-list/ChapterComponentCollection.d.ts +0 -25
- package/dist/src/apps/library-editor/components/chapter-list/ChapterItemComponent.d.ts +0 -37
- package/dist/src/apps/library-editor/components/chapters/ChaptersComponent.d.ts +0 -21
- package/dist/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.d.ts +0 -24
- package/dist/src/apps/library-editor/components/customer-logo/CustomerLogoComponent.d.ts +0 -19
- package/dist/src/apps/library-editor/components/edit-image/EditImageComponent.d.ts +0 -27
- package/dist/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.d.ts +0 -23
- package/dist/src/apps/library-editor/components/edit-links/LinkItemComponent.d.ts +0 -16
- package/dist/src/apps/library-editor/components/edit-links/VideoLinksComponent.d.ts +0 -23
- package/dist/src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.d.ts +0 -22
- package/dist/src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.d.ts +0 -45
- package/dist/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.d.ts +0 -24
- package/dist/src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.d.ts +0 -26
- package/dist/src/apps/library-editor/components/file-select/FileSelectComponent.d.ts +0 -30
- package/dist/src/apps/library-editor/components/file-uploads/FileUploadComponent.d.ts +0 -15
- package/dist/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +0 -13
- package/dist/src/apps/library-editor/components/folder-actions/FolderActionsDropdownComponent.d.ts +0 -18
- package/dist/src/apps/library-editor/components/folder-details/FolderDetailsComponent.d.ts +0 -34
- package/dist/src/apps/library-editor/components/folder-select/FolderSelectComponent.d.ts +0 -41
- package/dist/src/apps/library-editor/components/index.d.ts +0 -38
- package/dist/src/apps/library-editor/components/language-select/LanguageSelectComponent.d.ts +0 -28
- package/dist/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +0 -7
- package/dist/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +0 -45
- package/dist/src/apps/library-editor/components/library-actions/LibraryActionsComponent.d.ts +0 -26
- package/dist/src/apps/library-editor/components/library-folders/LibraryFolderListComponent.d.ts +0 -31
- package/dist/src/apps/library-editor/components/library-select/LibrarySelectComponent.d.ts +0 -27
- package/dist/src/apps/library-editor/components/save/SaveComponent.d.ts +0 -32
- package/dist/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +0 -29
- package/dist/src/apps/library-editor/components/sub-folders/SubFolderComponent.d.ts +0 -15
- package/dist/src/apps/library-editor/components/sub-folders/SubFoldersComponent.d.ts +0 -9
- package/dist/src/apps/library-editor/components/suggest-edit/SuggestEditComponent.d.ts +0 -31
- package/dist/src/apps/library-editor/components/tag-list/TagComponentCollection.d.ts +0 -21
- package/dist/src/apps/library-editor/components/tag-list/TagItemComponent.d.ts +0 -28
- package/dist/src/apps/library-editor/components/tags/TagsComponent.d.ts +0 -30
- package/dist/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +0 -24
- package/dist/src/apps/library-editor/components/video-header/VideoHeaderComponent.d.ts +0 -22
- package/dist/src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.d.ts +0 -34
- package/dist/src/apps/library-editor/components/video-resources/ResourceItemComponent.d.ts +0 -22
- package/dist/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +0 -44
- package/dist/src/apps/library-editor/components/video-sidebar-info/VideoSidebarInfoComponent.d.ts +0 -25
- package/dist/src/apps/library-editor/components/video-subtitles/SubtitleItemComponent.d.ts +0 -18
- package/dist/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +0 -26
- package/dist/src/apps/library-editor/constants/VideoCollectionTypes.d.ts +0 -2
- package/dist/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +0 -8
- package/dist/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +0 -9
- package/dist/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +0 -9
- package/dist/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
- package/dist/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
- package/dist/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +0 -6
- package/dist/src/apps/library-editor/models/ChapterConcatenateRequest.d.ts +0 -3
- package/dist/src/apps/library-editor/services/ChapterDataService.d.ts +0 -15
- package/dist/src/apps/library-editor/services/CompanyDataService.d.ts +0 -7
- package/dist/src/apps/library-editor/services/ExportDataService.d.ts +0 -11
- package/dist/src/apps/library-editor/services/FieldsDataService.d.ts +0 -11
- package/dist/src/apps/library-editor/services/FolderDragDropService.d.ts +0 -27
- package/dist/src/apps/library-editor/services/LibraryDataService.d.ts +0 -61
- package/dist/src/apps/library-editor/services/LinkDataService.d.ts +0 -14
- package/dist/src/apps/library-editor/services/PersonDataService.d.ts +0 -7
- package/dist/src/apps/library-editor/services/RatingsDataService.d.ts +0 -7
- package/dist/src/apps/library-editor/services/ResourceDataService.d.ts +0 -13
- package/dist/src/apps/library-editor/services/SeriesDataService.d.ts +0 -15
- package/dist/src/apps/library-editor/services/SubtitleDataService.d.ts +0 -11
- package/dist/src/apps/library-editor/services/TagDataService.d.ts +0 -9
- package/dist/src/apps/library-editor/services/VideoDataService.d.ts +0 -39
- package/dist/src/apps/library-editor/services/VideoDragDropService.d.ts +0 -26
- package/dist/src/apps/library-editor/services/index.d.ts +0 -15
- package/dist/src/apps/library-editor/utils/ChapterHelper.d.ts +0 -18
- package/dist/src/apps/library-editor/utils/EditVideoHelpers.d.ts +0 -93
- package/dist/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +0 -16
- package/dist/src/apps/library-editor/views/add-to-exchange/AddToExchangeView.d.ts +0 -34
- package/dist/src/apps/library-editor/views/banner-upload/BannerUploadView.d.ts +0 -32
- package/dist/src/apps/library-editor/views/delete-folder/DeleteFolderView.d.ts +0 -28
- package/dist/src/apps/library-editor/views/delete-library/DeleteLibraryView.d.ts +0 -23
- package/dist/src/apps/library-editor/views/delete-videos/DeleteVideosView.d.ts +0 -29
- package/dist/src/apps/library-editor/views/edit-chapters/EditChaptersView.d.ts +0 -71
- package/dist/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.d.ts +0 -50
- package/dist/src/apps/library-editor/views/edit-library/RenameLibraryView.d.ts +0 -29
- package/dist/src/apps/library-editor/views/edit-link/EditLinkView.d.ts +0 -30
- package/dist/src/apps/library-editor/views/edit-resource/EditResourceView.d.ts +0 -34
- package/dist/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +0 -92
- package/dist/src/apps/library-editor/views/edit-video/EditVideoView.d.ts +0 -125
- package/dist/src/apps/library-editor/views/generate-pdf/GeneratePdfView.d.ts +0 -35
- package/dist/src/apps/library-editor/views/left-navigation/LeftNavigationView.d.ts +0 -33
- package/dist/src/apps/library-editor/views/library/LibraryView.d.ts +0 -31
- package/dist/src/apps/library-editor/views/move-folder/MoveFolderView.d.ts +0 -44
- package/dist/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +0 -49
- package/dist/src/apps/library-editor/views/new-folder/NewFolderView.d.ts +0 -44
- package/dist/src/apps/library-editor/views/new-library/NewLibraryView.d.ts +0 -26
- package/dist/src/apps/library-editor/views/no-library/NoLibraryView.d.ts +0 -10
- package/dist/src/apps/library-editor/views/publish-library/PublishLibraryView.d.ts +0 -19
- package/dist/src/apps/library-editor/views/rename-folder/RenameFolderView.d.ts +0 -39
- package/dist/src/apps/library-editor/views/suggest-an-edit/SuggestAnEditView.d.ts +0 -58
- package/dist/src/apps/library-editor/views/thumbnail-upload/ThumbnailUploadView.d.ts +0 -33
- package/dist/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +0 -101
- package/dist/src/apps/library-editor/views/video-details/VideoDetailsView.d.ts +0 -44
- package/dist/src/apps/migration-wizard/MigrationWizardApplication.d.ts +0 -45
- package/dist/src/apps/migration-wizard/collections/HomeFolderCollection.d.ts +0 -6
- package/dist/src/apps/migration-wizard/collections/SmartSelectVideoCollection.d.ts +0 -5
- package/dist/src/apps/migration-wizard/components/banner/BannerComponent.d.ts +0 -18
- package/dist/src/apps/migration-wizard/components/empty-video-list/EmptyVideoListComponent.d.ts +0 -14
- package/dist/src/apps/migration-wizard/components/errored-video-actions/ErroredVideoActionsComponent.d.ts +0 -22
- package/dist/src/apps/migration-wizard/components/errored-video-footer/ErroredVideoFooterComponent.d.ts +0 -21
- package/dist/src/apps/migration-wizard/components/errored-video-item/ErroredVideoItemComponent.d.ts +0 -30
- package/dist/src/apps/migration-wizard/components/errored-video-list/ErroredVideoListComponent.d.ts +0 -12
- package/dist/src/apps/migration-wizard/components/errored-video-metadata/ErroredVideoMetadataComponent.d.ts +0 -8
- package/dist/src/apps/migration-wizard/components/errored-video-preview/ErroredVideoPreviewComponent.d.ts +0 -17
- package/dist/src/apps/migration-wizard/components/generate-report/GenerateReportComponent.d.ts +0 -25
- package/dist/src/apps/migration-wizard/components/generate-report-button/GenerateReportButtonComponent.d.ts +0 -10
- package/dist/src/apps/migration-wizard/components/migration-video-item/MigrationVideoItemComponent.d.ts +0 -30
- package/dist/src/apps/migration-wizard/components/progress-bar/ProgressBarComponent.d.ts +0 -19
- package/dist/src/apps/migration-wizard/components/progress-circle/ProgressCircleComponent.d.ts +0 -20
- package/dist/src/apps/migration-wizard/components/search-bar/SearchBarComponent.d.ts +0 -19
- package/dist/src/apps/migration-wizard/components/selected-video-item/SelectedVideoItemComponent.d.ts +0 -9
- package/dist/src/apps/migration-wizard/components/sorting-row/SortingRowComponent.d.ts +0 -35
- package/dist/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +0 -28
- package/dist/src/apps/migration-wizard/components/video-list/VideoListCollection.d.ts +0 -36
- package/dist/src/apps/migration-wizard/components/video-list-collection/VideoListCollectionComponent.d.ts +0 -16
- package/dist/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +0 -6
- package/dist/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +0 -8
- package/dist/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +0 -8
- package/dist/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +0 -8
- package/dist/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +0 -9
- package/dist/src/apps/migration-wizard/filters/MigrationFilters.d.ts +0 -8
- package/dist/src/apps/migration-wizard/models/BackupToolBuild.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/CustomerMetadata.d.ts +0 -9
- package/dist/src/apps/migration-wizard/models/FinalisationTask.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/HomeFolder.d.ts +0 -8
- package/dist/src/apps/migration-wizard/models/MigrationOptions.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/SelectedVideo.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/SmartSelectVideo.d.ts +0 -4
- package/dist/src/apps/migration-wizard/models/VideoCount.d.ts +0 -3
- package/dist/src/apps/migration-wizard/services/FolderCacheService.d.ts +0 -22
- package/dist/src/apps/migration-wizard/services/LocalOptionsService.d.ts +0 -10
- package/dist/src/apps/migration-wizard/services/MigrationVideoDataService.d.ts +0 -56
- package/dist/src/apps/migration-wizard/services/SelectedVideoService.d.ts +0 -19
- package/dist/src/apps/migration-wizard/services/index.d.ts +0 -4
- package/dist/src/apps/migration-wizard/utils/FolderHelper.d.ts +0 -8
- package/dist/src/apps/migration-wizard/utils/VideoHelper.d.ts +0 -29
- package/dist/src/apps/migration-wizard/views/current-section-header/CurrentSectionHeaderView.d.ts +0 -28
- package/dist/src/apps/migration-wizard/views/generate-csv-report/GenerateCsvReportView.d.ts +0 -27
- package/dist/src/apps/migration-wizard/views/index.d.ts +0 -13
- package/dist/src/apps/migration-wizard/views/migration-error/MigrationErrorView.d.ts +0 -39
- package/dist/src/apps/migration-wizard/views/migration-progress/MigrationProgressView.d.ts +0 -32
- package/dist/src/apps/migration-wizard/views/publish-library-banner/PublishLibraryBannerView.d.ts +0 -30
- package/dist/src/apps/migration-wizard/views/publish-library-complete/PublishLibraryCompleteView.d.ts +0 -15
- package/dist/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.d.ts +0 -18
- package/dist/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.d.ts +0 -19
- package/dist/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.d.ts +0 -23
- package/dist/src/apps/migration-wizard/views/publisher-backup-progress/PublisherBackupProgressView.d.ts +0 -23
- package/dist/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.d.ts +0 -19
- package/dist/src/apps/migration-wizard/views/remigrate-video/RemigrateVideoView.d.ts +0 -32
- package/dist/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.d.ts +0 -32
- package/dist/src/apps/migration-wizard/views/show-video-popup/ShowPublisherVideoPopupView.d.ts +0 -26
- package/dist/src/apps/migration-wizard/views/smart-migration/SmartMigrationView.d.ts +0 -58
- package/dist/src/apps/migration-wizard/views/start/StartView.d.ts +0 -40
- package/dist/src/apps/migration-wizard/views/videos-added/VideosAddedView.d.ts +0 -24
- package/dist/src/apps/notifications/NotificationsApplication.d.ts +0 -11
- package/dist/src/apps/notifications/constants/NotificationsAppVariables.d.ts +0 -7
- package/dist/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -10
- package/dist/src/apps/search/SearchApplication.d.ts +0 -16
- package/dist/src/apps/search/collections/FilterCollection.d.ts +0 -9
- package/dist/src/apps/search/collections/OptionCollection.d.ts +0 -5
- package/dist/src/apps/search/components/filters/FiltersComponent.d.ts +0 -27
- package/dist/src/apps/search/components/filters/filter-button-list/FilterButtonItemComponent.d.ts +0 -37
- package/dist/src/apps/search/components/filters/filter-button-list/FilterButtonListComponent.d.ts +0 -19
- package/dist/src/apps/search/components/filters/filter-list/FilterItemComponent.d.ts +0 -17
- package/dist/src/apps/search/components/filters/filter-list/FilterListComponent.d.ts +0 -24
- package/dist/src/apps/search/components/filters/filter-options/FilterOptionsComponent.d.ts +0 -34
- package/dist/src/apps/search/components/filters/filter-options/bool-filter-options/BoolFilterOptionsComponent.d.ts +0 -15
- package/dist/src/apps/search/components/filters/filter-options/duration-filter-options/DurationFilterOptionListComponent.d.ts +0 -27
- package/dist/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionItemComponent.d.ts +0 -19
- package/dist/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionsListComponent.d.ts +0 -21
- package/dist/src/apps/search/components/filters/filter-options/range-filter-options/RangeFilterOptionListComponent.d.ts +0 -23
- package/dist/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsComponent.d.ts +0 -27
- package/dist/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsListComponent.d.ts +0 -19
- package/dist/src/apps/search/components/filters/more-filters-button/MoreFiltersButtonComponent.d.ts +0 -42
- package/dist/src/apps/search/components/results/SearchResultsComponent.d.ts +0 -22
- package/dist/src/apps/search/components/search-header/SearchHeaderComponent.d.ts +0 -11
- package/dist/src/apps/search/models/Filter.d.ts +0 -8
- package/dist/src/apps/search/models/Option.d.ts +0 -4
- package/dist/src/apps/search/models/Query.d.ts +0 -3
- package/dist/src/apps/search/models/SearchAppVariables.d.ts +0 -4
- package/dist/src/apps/search/services/SearchDataService.d.ts +0 -12
- package/dist/src/apps/search/utils/SearchHelper.d.ts +0 -11
- package/dist/src/apps/search/views/search/SearchView.d.ts +0 -57
- package/dist/src/apps/staff-requests/StaffRequestsApplication.d.ts +0 -15
- package/dist/src/apps/staff-requests/collections/StaffRequestCollection.d.ts +0 -5
- package/dist/src/apps/staff-requests/collections/StaffRequestMessageCollection.d.ts +0 -5
- package/dist/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +0 -42
- package/dist/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +0 -30
- package/dist/src/apps/staff-requests/components/staff-request-list/StaffRequestListComponent.d.ts +0 -29
- package/dist/src/apps/staff-requests/models/StaffRequest.d.ts +0 -14
- package/dist/src/apps/staff-requests/models/StaffRequestMessage.d.ts +0 -7
- package/dist/src/apps/staff-requests/services/StaffRequestDataService.d.ts +0 -14
- package/dist/src/apps/staff-requests/views/approve-staff-request/ApproveStaffRequestView.d.ts +0 -34
- package/dist/src/apps/staff-requests/views/reject-staff-request/RejectStaffRequestView.d.ts +0 -34
- package/dist/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +0 -44
- package/dist/src/apps/upload/UploadApplication.d.ts +0 -23
- package/dist/src/apps/upload/components/processing-progress/ProcessProgressComponentCollection.d.ts +0 -38
- package/dist/src/apps/upload/components/progress-info/ProgressInfoComponent.d.ts +0 -10
- package/dist/src/apps/upload/components/upload-actions/UploadActionsComponent.d.ts +0 -21
- package/dist/src/apps/upload/components/upload-folder-select/UploadFolderSelectComponent.d.ts +0 -35
- package/dist/src/apps/upload/components/upload-progress/UploadProgressComponent.d.ts +0 -10
- package/dist/src/apps/upload/components/upload-video/UploadVideoComponent.d.ts +0 -46
- package/dist/src/apps/upload/components/upload-video/UploadVideoComponentCollection.d.ts +0 -18
- package/dist/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +0 -7
- package/dist/src/apps/upload/services/ImageUploadDataService.d.ts +0 -8
- package/dist/src/apps/upload/services/PendingItemsService.d.ts +0 -7
- package/dist/src/apps/upload/services/VideoUploadDataService.d.ts +0 -17
- package/dist/src/apps/upload/services/VideoUploadService.d.ts +0 -8
- package/dist/src/apps/upload/views/file-select/FileSelectView.d.ts +0 -25
- package/dist/src/apps/upload/views/progress-summary/ProgressSummaryView.d.ts +0 -18
- package/dist/src/apps/upload/views/upload-button/UploadButtonView.d.ts +0 -26
- package/dist/src/apps/upload/views/upload-complete/UploadCompleteView.d.ts +0 -14
- package/dist/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +0 -61
- package/dist/src/apps/video-access/VideoAccessApplication.d.ts +0 -12
- package/dist/src/apps/video-access/views/restricted-video-list/RestrictedVideoListView.d.ts +0 -34
- package/dist/src/index.d.ts +0 -194
- package/dist/src/shared/alerts/VideoAlerts.d.ts +0 -8
- package/dist/src/shared/behaviors/backbone-validation/BackboneValidationBehavior.d.ts +0 -14
- package/dist/src/shared/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
- package/dist/src/shared/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
- package/dist/src/shared/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
- package/dist/src/shared/behaviors/image-select-behavior/ImageSelectBehavior.d.ts +0 -23
- package/dist/src/shared/behaviors/lazy-load/LazyLoadBehavior.d.ts +0 -31
- package/dist/src/shared/behaviors/lock-layout-file-drop/LockLayoutFileDropBehavior.d.ts +0 -7
- package/dist/src/shared/behaviors/popup/PopupBehavior.d.ts +0 -65
- package/dist/src/shared/behaviors/stickit/StickitBehavior.d.ts +0 -6
- package/dist/src/shared/collections/ChannelCollection.d.ts +0 -6
- package/dist/src/shared/collections/ChapterCollection.d.ts +0 -7
- package/dist/src/shared/collections/DirectorCollection.d.ts +0 -6
- package/dist/src/shared/collections/DistributorCollection.d.ts +0 -6
- package/dist/src/shared/collections/FieldsCollection.d.ts +0 -5
- package/dist/src/shared/collections/FolderCollection.d.ts +0 -7
- package/dist/src/shared/collections/InteractivesCollection.d.ts +0 -6
- package/dist/src/shared/collections/LibraryCollection.d.ts +0 -7
- package/dist/src/shared/collections/LinkCollection.d.ts +0 -6
- package/dist/src/shared/collections/LocalCacheDeviceCollection.d.ts +0 -5
- package/dist/src/shared/collections/LocalCacheDownloadCollection.d.ts +0 -5
- package/dist/src/shared/collections/MetadataCollection.d.ts +0 -4
- package/dist/src/shared/collections/ProducerCollection.d.ts +0 -6
- package/dist/src/shared/collections/ProductionCompanyCollection.d.ts +0 -6
- package/dist/src/shared/collections/RatingCollection.d.ts +0 -4
- package/dist/src/shared/collections/ResourceCollection.d.ts +0 -6
- package/dist/src/shared/collections/RestrictedObjectCollection.d.ts +0 -5
- package/dist/src/shared/collections/RestrictionCollection.d.ts +0 -5
- package/dist/src/shared/collections/SeasonCollection.d.ts +0 -6
- package/dist/src/shared/collections/SettingsCollection.d.ts +0 -5
- package/dist/src/shared/collections/SubtitleCollection.d.ts +0 -6
- package/dist/src/shared/collections/TagCollection.d.ts +0 -6
- package/dist/src/shared/collections/VideoCollection.d.ts +0 -6
- package/dist/src/shared/collections/index.d.ts +0 -23
- package/dist/src/shared/components/alert/AlertComponentCollection.d.ts +0 -11
- package/dist/src/shared/components/alert/AlertItemComponent.d.ts +0 -44
- package/dist/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.d.ts +0 -18
- package/dist/src/shared/components/breadcrumbs/BreadcrumbsComponent.d.ts +0 -26
- package/dist/src/shared/components/bulk-video-actions/BulkVideoActionsComponent.d.ts +0 -26
- package/dist/src/shared/components/checkbox/BulkCheckboxComponent.d.ts +0 -27
- package/dist/src/shared/components/checkbox/CheckboxComponent.d.ts +0 -25
- package/dist/src/shared/components/clear-button/ClearButtonComponent.d.ts +0 -18
- package/dist/src/shared/components/date-picker/DatePickerComponent.d.ts +0 -47
- package/dist/src/shared/components/dialog/DialogView.d.ts +0 -22
- package/dist/src/shared/components/dropdown/DropdownButtonComponent.d.ts +0 -36
- package/dist/src/shared/components/dropdown/DropdownComponentCollection.d.ts +0 -38
- package/dist/src/shared/components/dropdown/DropdownItemComponent.d.ts +0 -57
- package/dist/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +0 -37
- package/dist/src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.d.ts +0 -32
- package/dist/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +0 -22
- package/dist/src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.d.ts +0 -24
- package/dist/src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.d.ts +0 -61
- package/dist/src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.d.ts +0 -33
- package/dist/src/shared/components/edit-video/extra-info/ExtraInfoComponent.d.ts +0 -16
- package/dist/src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.d.ts +0 -17
- package/dist/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.d.ts +0 -17
- package/dist/src/shared/components/edit-video/select-rating/SelectRatingComponent.d.ts +0 -40
- package/dist/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +0 -20
- package/dist/src/shared/components/fields/FieldsComponent.d.ts +0 -9
- package/dist/src/shared/components/image-cropper/ImageCropperComponent.d.ts +0 -34
- package/dist/src/shared/components/index.d.ts +0 -44
- package/dist/src/shared/components/left-nav/LeftNavComponent.d.ts +0 -30
- package/dist/src/shared/components/left-nav/LeftNavNodeComponent.d.ts +0 -48
- package/dist/src/shared/components/page-footer/PageFooterComponent.d.ts +0 -15
- package/dist/src/shared/components/page-header/PageHeaderComponent.d.ts +0 -25
- package/dist/src/shared/components/partial-loading/PartialLoadingComponent.d.ts +0 -16
- package/dist/src/shared/components/partial-loading/PartialLoadingComponentCollection.d.ts +0 -20
- package/dist/src/shared/components/resizing-text-area/ResizingTextAreaComponent.d.ts +0 -23
- package/dist/src/shared/components/select/SelectComponent.d.ts +0 -54
- package/dist/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +0 -73
- package/dist/src/shared/components/tabs/TabsComponent.d.ts +0 -28
- package/dist/src/shared/components/top-navigation/TopNavigationComponentCollection.d.ts +0 -29
- package/dist/src/shared/components/tree-dropdown/TreeDropdownComponent.d.ts +0 -32
- package/dist/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +0 -74
- package/dist/src/shared/components/typeahead-list/TypeaheadListComponent.d.ts +0 -33
- package/dist/src/shared/components/user-options-dropdown/UserOptionsDropdownComponent.d.ts +0 -20
- package/dist/src/shared/components/video-actions/VideoActionComponentCollection.d.ts +0 -31
- package/dist/src/shared/components/video-actions/VideoActionsComponent.d.ts +0 -41
- package/dist/src/shared/components/video-basic-info/VideoBasicInfoComponent.d.ts +0 -32
- package/dist/src/shared/components/video-description/VideoDescriptionComponent.d.ts +0 -33
- package/dist/src/shared/components/video-item/VideoItemComponent.d.ts +0 -56
- package/dist/src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.d.ts +0 -23
- package/dist/src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.d.ts +0 -25
- package/dist/src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.d.ts +0 -26
- package/dist/src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.d.ts +0 -24
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.d.ts +0 -21
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.d.ts +0 -20
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.d.ts +0 -24
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.d.ts +0 -19
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.d.ts +0 -26
- package/dist/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item-preview/VideoItemPreviewComponent.d.ts +0 -37
- package/dist/src/shared/components/video-list/VideoListComponent.d.ts +0 -43
- package/dist/src/shared/components/video-preview/VideoPreviewComponent.d.ts +0 -30
- package/dist/src/shared/components/web-player/WebPlayerComponent.d.ts +0 -53
- package/dist/src/shared/constants/Services.d.ts +0 -61
- package/dist/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
- package/dist/src/shared/errors/authentication/AuthenticationError.d.ts +0 -7
- package/dist/src/shared/errors/customer-setting/CustomerSettingError.d.ts +0 -8
- package/dist/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +0 -8
- package/dist/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +0 -11
- package/dist/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +0 -6
- package/dist/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +0 -8
- package/dist/src/shared/errors/not-found/NotFoundError.d.ts +0 -5
- package/dist/src/shared/errors/old-version/OldVersionError.d.ts +0 -7
- package/dist/src/shared/errors/too-many-files/TooManyFilesError.d.ts +0 -6
- package/dist/src/shared/filters/BetaAccessFilter.d.ts +0 -3
- package/dist/src/shared/filters/CustomerSettingsFilter.d.ts +0 -8
- package/dist/src/shared/filters/RoleFilter.d.ts +0 -4
- package/dist/src/shared/filters/VerifiedEmailFilter.d.ts +0 -3
- package/dist/src/shared/index.d.ts +0 -14
- package/dist/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +0 -4
- package/dist/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +0 -20
- package/dist/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +0 -16
- package/dist/src/shared/interfaces/VideoCollectionIdentifier.d.ts +0 -4
- package/dist/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +0 -47
- package/dist/src/shared/models/Avatar.d.ts +0 -3
- package/dist/src/shared/models/Banner.d.ts +0 -3
- package/dist/src/shared/models/Channel.d.ts +0 -3
- package/dist/src/shared/models/Chapter.d.ts +0 -3
- package/dist/src/shared/models/Company.d.ts +0 -3
- package/dist/src/shared/models/Config.d.ts +0 -3
- package/dist/src/shared/models/Customer.d.ts +0 -3
- package/dist/src/shared/models/Director.d.ts +0 -3
- package/dist/src/shared/models/DisabledSpinnerModel.d.ts +0 -5
- package/dist/src/shared/models/Distributor.d.ts +0 -3
- package/dist/src/shared/models/Folder.d.ts +0 -12
- package/dist/src/shared/models/Image.d.ts +0 -3
- package/dist/src/shared/models/Interactives.d.ts +0 -3
- package/dist/src/shared/models/LanguageConfig.d.ts +0 -7
- package/dist/src/shared/models/Library.d.ts +0 -10
- package/dist/src/shared/models/Link.d.ts +0 -3
- package/dist/src/shared/models/LocalCacheDevice.d.ts +0 -3
- package/dist/src/shared/models/LocalCacheDownload.d.ts +0 -3
- package/dist/src/shared/models/Logo.d.ts +0 -3
- package/dist/src/shared/models/Metadata.d.ts +0 -3
- package/dist/src/shared/models/Owner.d.ts +0 -3
- package/dist/src/shared/models/Person.d.ts +0 -3
- package/dist/src/shared/models/Phrases.d.ts +0 -3
- package/dist/src/shared/models/Playlist.d.ts +0 -3
- package/dist/src/shared/models/Producer.d.ts +0 -3
- package/dist/src/shared/models/ProductionCompany.d.ts +0 -3
- package/dist/src/shared/models/Rating.d.ts +0 -3
- package/dist/src/shared/models/Resource.d.ts +0 -3
- package/dist/src/shared/models/RestrictedObject.d.ts +0 -3
- package/dist/src/shared/models/Restriction.d.ts +0 -3
- package/dist/src/shared/models/Season.d.ts +0 -3
- package/dist/src/shared/models/Series.d.ts +0 -7
- package/dist/src/shared/models/Setting.d.ts +0 -3
- package/dist/src/shared/models/SharedResource.d.ts +0 -3
- package/dist/src/shared/models/Subtitle.d.ts +0 -3
- package/dist/src/shared/models/Tag.d.ts +0 -3
- package/dist/src/shared/models/Thumbnail.d.ts +0 -3
- package/dist/src/shared/models/User.d.ts +0 -10
- package/dist/src/shared/models/Video.d.ts +0 -29
- package/dist/src/shared/models/index.d.ts +0 -38
- package/dist/src/shared/services/AlertService.d.ts +0 -15
- package/dist/src/shared/services/ConfigDataService.d.ts +0 -23
- package/dist/src/shared/services/CustomerDataService.d.ts +0 -7
- package/dist/src/shared/services/DownloadProxyDataServices.d.ts +0 -7
- package/dist/src/shared/services/IntercomService.d.ts +0 -8
- package/dist/src/shared/services/LocalCacheDataService.d.ts +0 -11
- package/dist/src/shared/services/NavigationLockService.d.ts +0 -17
- package/dist/src/shared/services/PageTitleService.d.ts +0 -10
- package/dist/src/shared/services/PageVisibilityService.d.ts +0 -14
- package/dist/src/shared/services/PartialLoadingService.d.ts +0 -12
- package/dist/src/shared/services/RestrictedVideoDataService.d.ts +0 -13
- package/dist/src/shared/services/SettingsDataService.d.ts +0 -12
- package/dist/src/shared/services/UserDataService.d.ts +0 -20
- package/dist/src/shared/services/VideoMixinService.d.ts +0 -16
- package/dist/src/shared/services/index.d.ts +0 -14
- package/dist/src/shared/utils/BulkCheckboxHelper.d.ts +0 -18
- package/dist/src/shared/utils/CancelProcessingHelper.d.ts +0 -4
- package/dist/src/shared/utils/CollectionHelper.d.ts +0 -10
- package/dist/src/shared/utils/DialogHelper.d.ts +0 -9
- package/dist/src/shared/utils/FolderTreeHelpers.d.ts +0 -36
- package/dist/src/shared/utils/ImageHelper.d.ts +0 -31
- package/dist/src/shared/utils/LocalCacheHelper.d.ts +0 -7
- package/dist/src/shared/utils/PartialLoadingHelper.d.ts +0 -6
- package/dist/src/shared/utils/PermissionsHelper.d.ts +0 -13
- package/dist/src/shared/utils/RatingHelper.d.ts +0 -6
- package/dist/src/shared/utils/RestrictedAccessHelper.d.ts +0 -13
- package/dist/src/shared/utils/SortHelper.d.ts +0 -16
- package/dist/src/shared/utils/TabHelper.d.ts +0 -9
- package/dist/src/shared/utils/VideoHelper.d.ts +0 -11
- package/dist/src/shared/utils/search/RawSearchHelper.d.ts +0 -21
- package/dist/src/shared/views/download-to-local-cache/DownloadToLocalCacheView.d.ts +0 -28
- package/dist/src/shared/views/download-video/DownloadVideoView.d.ts +0 -19
- package/dist/src/shared/views/index.d.ts +0 -9
- package/dist/src/shared/views/restrict-access/RestrictAccessComponent.d.ts +0 -7
- package/dist/src/shared/views/restrict-access/RestrictAccessGroupComponent.d.ts +0 -24
- package/dist/src/shared/views/restrict-access/RestrictAccessView.d.ts +0 -67
- package/dist/src/shared/views/share/ShareView.d.ts +0 -48
- package/dist/src/shared/views/top-navigation/TopNavigationView.d.ts +0 -35
- package/dist/src/shared/views/user-options/UserOptionsView.d.ts +0 -18
- /package/dist/{src/shared → libs/shared/src}/constants/CacheDurations.d.ts +0 -0
- /package/dist/{src/shared → libs/shared/src}/utils/DurationHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/collections/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/components/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/enums/PastReleaseFilterType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/enums/ReleaseDateType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/enums/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/models/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/services/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/utils/Constants.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/utils/PastReleasesHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/content-updates/utils/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/dashboard/components/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/behaviors/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/behaviors/shared/DragOptions.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/behaviors/shared/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/constants/CheckboxTypes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/constants/EditVideoBackButtonBlacklist.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/constants/EditVideoBackButtonKey.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/constants/LibraryEditorActions.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/constants/LibraryEditorRadioChannels.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/constants/MetadataTypes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/constants/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/enums/MediaConcatenateStatus.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/enums/ObjectOwnerType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/enums/TagBehavior.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/enums/TagOrientation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/enums/VideoCollectionSource.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/enums/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/errors/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/models/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/utils/AddToLibraryCacheHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/utils/DownloadHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/utils/FolderValidation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/utils/LanguageValidation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/utils/LibraryValidation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/utils/UploadVideoValidation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/library-editor/utils/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/collections/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/components/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/contants/MigrationErrorActions.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/contants/MigrationViewModels.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/CloudSyncStatus.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/FinalisationTaskStatus.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/FinalisationType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/LocalOption.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/MigrationOption.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/MigrationReportType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/SortField.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/ValidationResult.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/ValidationResultErrorType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/VideoMigrationStatus.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/enums/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/errors/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/filters/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/interfaces/SelectedVideos.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/models/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/utils/KeyContactHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/utils/MigrationErrorHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/utils/MigrationHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/utils/MigrationRadioChannels.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/utils/MigrationWarningsSvgs.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/migration-wizard/utils/ReportHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/notifications/constants/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/notifications/utils/Constants.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/notifications/utils/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/collections/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/components/filters/filter-button-list/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/components/filters/filter-options/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/components/filters/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/constants/SearchRadioChannels.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/constants/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/models/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/services/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/utils/Constants.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/utils/Enums.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/utils/FilterHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/utils/FilterLabelGenerators.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/utils/FilterQueryGenerators.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/utils/FilterRouteQueryParamGenerators.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/search/utils/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/collections/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/enums/StaffRequestStatus.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/enums/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/models/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/services/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/utils/StaffRequestApprovalValidation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/utils/StaffRequestRejectionValidation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/staff-requests/utils/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/upload/components/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/upload/errors/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/apps/upload/services/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/alerts/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/behaviors/file-drop/FileDropHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/behaviors/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/partial-loading/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/typeahead-input/templates/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/utils/VideoItemBehaviors.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/utils/VideoItemComponentHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/utils/VideoItemComponentTypes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/utils/VideoItemComponents.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/utils/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/video-item-actions/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/components/video-item/video-item-metadata/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/Actions.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/BootstrapKeys.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/DataPrefixes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/DataServiceErrors.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/EventNames.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/FolderTreeIds.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/FormattedCustomerSettingNames.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/ImageSizes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/ImageUrls.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/LayoutRegions.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/Layouts.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/LazyLoadBrowserSupport.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/MarketingSiteArticles.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/Misc.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/OnlineUrls.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/PartialLoadingComponents.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/RadioChannels.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/Search.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/SupportArticles.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/Webplayer.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/WithStatements.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/constants/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/CitationType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/CustomerRegions.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/EmptyStates.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/FileIdType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/ImageType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/MasterObjectTypes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/MasterType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/PartialLoading.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/RestrictedObjectType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/SchoolTypes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/Settings.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/SharedResourcePrivacy.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/SortTypes.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/StaffRequestOption.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/TimeType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/UploadInteractionType.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/UserRole.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/YearGroups.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/enums/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/errors/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/filters/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/interfaces/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/layouts/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/LazyLoadHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/RadioChannelHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/SettingsHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/SpinnerHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/SubtitleLanguageValidation.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/TextHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/TimeHelper.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/search/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/search/raw-search-components/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/shared/utils/search/raw-search-templates/index.d.ts +0 -0
- /package/dist/{src → projects/library-editor/src}/styles/index.d.ts +0 -0
- /package/dist/{typings → projects/library-editor/typings}/libs/LazyLoad.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[31],{1042:function(e,t,n){"use strict";n.r(t),n.d(t,"EditChaptersView",(function(){return V}));var r=n(1),i=n(2),o=n(5),a=n(3),s=n(68),l=n(198),c=n(113),u=n(11),p=n(0),h=n(119),f=n(6),d=n(4),y=n(39),g=n(780),b=n(182),v=n(703),m=n(746),C=n(787),k=n(794),w=n(122),E=n(118),S=n(660),O=n(898),T=n.n(O),P=n(105);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 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 _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(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=x(e);if(t){var i=x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return j(this,n)}}function j(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 x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(j,e);var t,n,O,R=I(j);function j(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,j),R.call(this,e)}return t=j,(n=[{key:"initialize",value:function(){this.bindListeners(),this.initializeDataServices(),u.u.initBackButton()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:f.j.EditVideoTabs},webplayer:{replaceElement:!0,el:".webplayer-region",partialLoading:f.j.WebPlayer},addChapter:{replaceElement:!0,el:".add-chapter-region",partialLoading:f.j.EditVideoChaptersForm},chapterList:{replaceElement:!0,el:".chapter-list-region",partialLoading:f.j.EditVideoChapterList}}}},{key:"bindListeners",value:function(){this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.e.CHAPTER,"".concat(p.f.CONCATENATE_STATUS,":").concat(this.options.videoId,":error"),this.onConcatenateDataError),this.listenTo(this.channelName,E.d.CreateChapter,this.onCreateChapter),this.listenTo(this.channelName,E.d.UpdateChapter,this.onUpdateChapter),this.listenTo(this.channelName,E.d.DeleteChapter,this.onDeleteChapter),this.listenTo(this.channelName,E.d.UpdateChapterTime,this.onTimeInputUpdate),this.listenTo(this.channelName,E.d.SeekToChapter,this.onSeekToChapter),this.listenTo(this.channelName,E.d.MergeChapters,this.onMergeChapters)}},{key:"initializeDataServices",value:function(){this.videoDataService=o.a.getInstance(p.g.Video,this),this.chapterDataService=o.a.getInstance(p.g.Chapter,this)}},{key:"onVideoDataError",value:function(e){switch(e.type){case s.a.NotFound:i.a.ErrorHelper.throw(new w.n);break;case s.a.Forbidden:i.a.ErrorHelper.throw(new w.f)}}},{key:"onConcatenateDataError",value:function(e){e.type===s.a.NotFound&&(this.concatenateRequestNotFound=!0,this.render())}},{key:"onCreateChapter",value:function(e){0===this.chapters.length&&0!==e.startTime&&this.createChapter({name:a.a.getPhrase(this.lang,"intro"),startTime:0}),this.createChapter(e)}},{key:"createChapter",value:function(e){var t=this,n=new c.a(e);this.chapters.add(n),n.set("loading",!0),this.chapterDataService.createChapter(this.model.get("id"),e.name,e.startTime,(function(e){n.set(e.toJSON(),{silent:!0}),n.set("loading",!1),t.chapters.sort(),t.renderChapterForm(),t.logAction(e,d.q.Create)}))}},{key:"onUpdateChapter",value:function(e){var t=this,n=this.chapters.find((function(t){return t.get("id")===e.id}));n.set("loading",!0);var r=b.a.updatedChaptersAlert(this.model.get("name"));this.chapterDataService.updateChapter(n.id,e.name,e.startTime,(function(e){n.set(e.toJSON(),{silent:!0}),n.set("loading",!1),t.chapters.sort(),t.logAction(e,d.q.Edit)}),r)}},{key:"onDeleteChapter",value:function(e){var t=this;e.set("loading",!0),this.chapterDataService.deleteChapter(e.id,(function(){t.logAction(e,d.q.Delete),t.chapters.remove(e)}))}},{key:"onMergeChapters",value:function(){var e=this;this.chapterDataService.addConcatenateRequest(this.options.videoId,(function(){e.pollConcatenation()}))}},{key:"onTimeInputUpdate",value:function(e){e>=0&&e<=u.w.millisecondsToSeconds(this.model.get("duration"))&&this.player.seekTo(e)}},{key:"logAction",value:function(e,t){var n=Object.assign({videoId:this.model.get("id")},e.pick("id","name","startTime"));y.a.logUserAction(n,{actionType:t,entity:d.e.Chapter,location:d.k.EditVideoChapters})}},{key:"onSeekToChapter",value:function(e){e<0||this.player.seekToChapter(e)}},{key:"startPollingConcatenation",value:function(){if(this.concatenateRequest){var e=[P.a.SingleFile,P.a.ConcatenationFailed];r.contains(e,this.concatenateRequest.get("status"))||this.pollConcatenation()}}},{key:"pollConcatenation",value:function(){var e=this;this.isDestroyed()||this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){if(e.concatenateRequest=t,e.concatenateRequest.get("status")!==P.a.SingleFile)return setTimeout((function(){return e.pollConcatenation()}),5e3),void e.renderConcatenationRequest();e.videoDataService.clearPhysicialChaptersCache(),e.render()}))}},{key:"renderChapterList",value:function(){this.showChildView("chapterList",new k.a({collection:this.chapters,duration:this.model.get("duration"),channelName:this.channelName,showActions:!this.hasPhysicalChapters.get("value"),editable:!this.hasPhysicalChapters.get("value"),showHeader:!0}))}},{key:"renderChapterForm",value:function(){this.showChildView("addChapter",new C.a({model:new c.a,collection:this.chapters,creating:!0,duration:this.model.get("duration"),channelName:this.channelName,playerViewModelKey:"".concat(p.z.NAME,"-").concat(this.model.get("id"))}))}},{key:"renderConcatenationRequest",value:function(){this.isRendered()&&this.showChildView("addChapter",new m.a({type:"chapters",channelName:this.channelName,model:this.concatenateRequest}))}},{key:"renderEditComponents",value:function(){if(this.hasPhysicalChapters.get("value"))return this.renderConcatenationRequest(),void this.mapPhysicalChapters();this.renderChapterForm(),this.renderChapterList()}},{key:"renderTabs",value:function(){this.showChildView("tabs",new v.a({tabs:u.u.getEditVideoTabs(this.options.videoId),activeTab:".edit-chapters-applink",goBackTab:u.u.getBackButton(this.options.videoId)}))}},{key:"renderWebPlayer",value:function(){this.player=new g.a({model:this.model,webPlayerUrl:this.config.get("webPlayerUrl"),captureAnalytics:!1}),this.showChildView("webplayer",this.player)}},{key:"mapPhysicalChapters",value:function(){var e=this;this.renderPartialLoading("chapterList"),this.player.query("getChapters",(function(t){e.chapters=new l.a(S.a.mapPhysicalChapters(t)),e.renderChapterList()}))}},{key:"redirectToVideoDetails",value:function(){i.a.AppLinkHelper.trigger({application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]},{replace:!0})}},{key:"fetchData",value:function(){var e=this;if(this.model=this.videoDataService.getVideo(this.options.videoId),this.model){if(!u.j.canEditVideo(this.model))return void this.redirectToVideoDetails();this.chapters=this.model.chapters}this.hasPhysicalChapters=this.videoDataService.hasPhysicalChapters(this.options.videoId),this.hasPhysicalChapters&&this.hasPhysicalChapters.get("value")&&!this.getConcatenateRequestSent&&(this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){e.concatenateRequest=t,e.render()})),this.getConcatenateRequestSent=!0)}},{key:"shouldRender",value:function(){return!(!this.model||!this.hasPhysicalChapters||this.hasPhysicalChapters.get("value")&&!this.concatenateRequest&&!this.concatenateRequestNotFound)}},{key:"onBeforeRender",value:function(){return this.fetchData(),this.shouldRender()}},{key:"onRender",value:function(){this.renderTabs(),this.renderWebPlayer(),this.renderEditComponents(),this.startPollingConcatenation()}},{key:"name",get:function(){return"EditVideoChaptersView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editChapters"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white p-3"}},{key:"template",get:function(){return T.a}},{key:"requiredResources",get:function(){return{config:h.b.config}}}])&&D(t.prototype,n),O&&D(t,O),j}(i.a.View)},675:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(1),i=n(2),o=n(676),a=n.n(o),s=n(677),l=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(s,e);var t,n,i,o=h(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"viewOptions",value:function(){var e=this.options.tabs.map((function(e){return Object.assign(Object.assign({},e),{link:e.link.selector.replace(".","")})}));return{styles:a.a,tabs:e}}},{key:"setActiveTab",value:function(){var e=this,t=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===e.options.activeTab&&(n.active=!0,t=!0)})),!t){var n=r.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}},{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var e="bg-white py-2 border-bottom";return this.options.className&&(e+=" ".concat(this.options.className)),e}},{key:"template",get:function(){return l.a}},{key:"appLinks",get:function(){var e={};return this.options.tabs.forEach((function(t){return e[t.link.selector]=t.link.appLink})),e}}])&&u(t.prototype,n),i&&u(t,i),s}(i.a.Component)},676:function(e,t,n){e.exports={link:"_5idZs",active:"_3Ty4M"}},677:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,i,o,a){var s;e.propertyIsEnumerable;return null!=(s=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hide:t,{name:"unless",hash:{},fn:e.program(2,i,0,o,a),inverse:e.noop,data:i}))?s:""},2:function(e,t,n,r,i,o,a){e.propertyIsEnumerable;var s,l=e.lambda,c=e.escapeExpression;return' <a class="'+c(l(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.link:s,t))+" p-2 "+c(l(null!=t?t.link:t,t))+" "+(null!=(s=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.active:t,{name:"if",hash:{},fn:e.program(3,i,0,o,a),inverse:e.noop,data:i}))?s:"")+'">'+c(l(null!=t?t.name:t,t))+"</a>\r\n"},3:function(e,t,n,r,i,o,a){var s;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.active:s,t))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i,o,a){var s;e.propertyIsEnumerable;return null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=(s=null!=t?t.options:t)?s.tabs:s,{name:"each",hash:{},fn:e.program(1,i,0,o,a),inverse:e.noop,data:i}))?s:""},useData:!0,useDepths:!0})},703:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(7),i=n(2),o=n(13),a=n(704),s=n.n(a),l=n(705),c=n.n(l),u=n(0),p=n(675);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var 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=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(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 b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(l,e);var t,n,i,a=y(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var e=Object.assign(Object.assign({},this.options.goBackTab),{link:this.options.goBackTab.link.selector.replace(".","")});return{styles:s.a,backTab:e,backArrow:o.a.getSvg(o.b.ArrowLeft)}}},{key:"onSave",value:function(){r.Radio.channel(u.b.LIBRARY_EDITOR).trigger(u.a.LibraryEditor.SAVE_VIDEO)}},{key:"onRender",value:function(){this.showChildView("tabs",new p.a({tabs:this.options.tabs,activeTab:this.options.activeTab}))}},{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"template",get:function(){return c.a}},{key:"appLinks",get:function(){var e,t,n,r=this.options.goBackTab.link;return e={},t=r.selector,n=r.appLink,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a.Component)},704:function(e,t,n){e.exports={svgContainer:"_27gR6"}},705:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <h4>\r\n <a class="d-inline-flex align-items-center '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.link:o,t))+" "+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.backTab:o)?o.link:o,t))+'">\r\n <span class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+' d-inline-block mx-2">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.backArrow:o,t))?o:"")+"</span>\r\n "+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.backTab:o)?o.name:o,t))+'\r\n </a>\r\n </h4>\r\n</div>\r\n<div class="tabs-region pl-2"></div>'},useData:!0})},746:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(2),i=n(158),o=n(11),a=n(3),s=n(105),l=n(118),c=n(747),u=n.n(c),p=n(748),h=n.n(p);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(f,e);var t,n,c,p=g(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.spinnerModel=new r.a.Model({showSpinner:this.isProcessing()}),this.listenTo(this.options.channelName,l.d.MergeChapters,this.onClickMergeChapters)}},{key:"regions",value:function(){return{button:{el:".btn-region",replaceElement:!0}}}},{key:"onClickMergeChapters",value:function(){this.spinnerModel.set(i.c.ShowSpinner,!0),this.render()}},{key:"isProcessing",value:function(){return!(!this.model||!this.model.get("status")||this.model.get("status")!==s.a.New&&this.model.get("status")!==s.a.Concatenating)}},{key:"renderButton",value:function(){var e={chapters:a.a.getPhrase(this.lang,"mergeChapters"),subtitles:a.a.getPhrase(this.lang,"mergeChapters"),clickViewSubtitles:a.a.getPhrase(this.lang,"enabledCustomSubtitles")},t=new i.a({buttonText:e[this.options.type],extraButtonClass:"btn-primary ".concat(h.a.btn),model:this.spinnerModel,spinnerOptions:{size:o.r.Small,type:o.s.Light,extraClasses:"mx-auto"},channelName:this.options.channelName,saveEvent:l.d.MergeChapters});this.showChildView("button",t)}},{key:"viewOptions",value:function(){var e={chapters:{heading:a.a.getPhrase(this.lang,"chaptersHeading"),line1:a.a.getPhrase(this.lang,"chaptersInfo1"),line2:a.a.getPhrase(this.lang,"chaptersInfo2")},subtitles:{heading:a.a.getPhrase(this.lang,"subtitlesHeading"),line1:a.a.getPhrase(this.lang,"subtitlesInfo1"),line2:a.a.getPhrase(this.lang,"subtitlesInfo2")},clickViewSubtitles:{heading:a.a.getPhrase(this.lang,"cvSubtitlesHeading"),line1:a.a.getPhrase(this.lang,"cvSubtitlesInfo1"),line2:a.a.getPhrase(this.lang,"cvSubtitlesInfo2")}};return{progress:this.model&&this.model.get("progress")&&a.a.getPhrase(this.lang,"progress",{progress:this.model.get("progress")}),componentOptions:e[this.options.type],processing:this.spinnerModel.get(i.c.ShowSpinner),failed:this.model&&this.model.get("status")&&this.model.get("status")===s.a.ConcatenationFailed}}},{key:"onRender",value:function(){this.renderButton()}},{key:"name",get:function(){return"ConcatenateRequestComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.concatenateRequest"}},{key:"className",get:function(){return"mt-3"}}])&&d(t.prototype,n),c&&d(t,c),f}(r.a.Component)},747:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.progress:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:""},2:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.escapeExpression;return' <span class="m-3 text-muted">'+a(e.lambda(null!=(o=null!=t?t.options:t)?o.progress:o,t))+'</span>\r\n <p class="pt-2">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"processing",{name:"lang",hash:{},data:i}))+"</p>\r\n"},4:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.failed:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:""},5:function(e,t,n,r,i){e.propertyIsEnumerable;return'<p class="pt-2 text-danger">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"failed",{name:"lang",hash:{},data:i}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return"<h4>"+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.componentOptions:o)?o.heading:o,t))+"</h4>\r\n<p>"+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.componentOptions:o)?o.line1:o,t))+"</p>\r\n<p>"+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.componentOptions:o)?o.line2:o,t))+'</p>\r\n<div class="btn-region"></div>\r\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.processing:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(4,i,0),data:i}))?o:"")},useData:!0})},748:function(e,t,n){e.exports={btn:"_59zg9"}},898:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="tab-region w-100"></div>\r\n<div class="row">\r\n <div class="col-6 pt-3">\r\n <div class="webplayer-region"></div>\r\n <div class="add-chapter-region"></div>\r\n </div>\r\n <div class="col-6 mb-2 pt-3">\r\n <div class="chapter-list-region"></div>\r\n </div>\r\n</div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1040: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),s=n(190),a=n(39),c=n(173),u=n(0),f=n(90),h=n(652),p=n(182),d=n(11),y=n(662),b=n(158),m=n(701),g=n(849),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"):"",s=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")}),s),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(s.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)),a.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.f,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)},652:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(158);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 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 a(e,t){return(a=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&&a(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}}])&&s(t.prototype,n),r&&s(t,r),u}(r.a.Model)},657:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(2),i=n(176);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 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 a(e,t){return(a=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&&a(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)}}])&&s(t.prototype,n),o&&s(t,o),u}(o.a.ComponentCollection)},662:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(7),o=n(2),i=n(3),l=n(669),s=n(11),a=n(663),c=n.n(a),u=n(664),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,a=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),a.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=s.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)},663:function(e,t,n){var r=n(8);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,s=e.escapeExpression;return'<button\r\n class="'+s(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='+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+s(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+s(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})},664:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},672:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(7),i=n(2),l=n(657),s=n(11),a=n(673),c=n.n(a),u=n(674),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,a=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=a.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(e){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){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=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){return!!e.get("divider")||!!r.isFunction(this.options.childOptions.isDisabled)&&this.options.childOptions.isDisabled.apply(this,arguments)}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles: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)},673:function(e,t,n){var r=n(8);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,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(a,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(a,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="'+s(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+s(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})},674:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},701:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(7),i=n(2),l=n(3),s=n(39),a=n(672),c=n(11),u=n(702),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 a.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:s.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)},702:function(e,t,n){var r=n(8);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})},849:function(e,t,n){var r=n(8);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})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[33],{1054:function(e,t,n){"use strict";n.r(t),n.d(t,"EditLinkView",(function(){return k}));var r=n(7),i=n(2),a=n(5),o=n(24),u=n(39),s=n(173),c=n(158),l=n(11),f=n(0),d=n(114),p=n(652),m=n(660),h=n(935),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=w(e);if(t){var i=w(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 w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&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.f,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)},652:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),i=n(158);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)},653: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 k})),n.d(t,"f",(function(){return P})),n.d(t,"h",(function(){return y}));var r=n(2),i=n(1),a=n(16),o=n(23),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!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,t,n){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,t,n){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 k(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},654:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),i=n(34),a=n(106),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}},655:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(13),i=n(3),a=n(118),o=n(665),u=n(6);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.h.HostedLibrary:case u.h.CustomLibrary:return e.get("name");case u.h.Exchange:return i.a.getPhrase(l,"exchange");case u.h.Workspace:return i.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.h.HostedLibrary:case u.h.CustomLibrary:return"bg-info";case u.h.Exchange:return"bg-success";case u.h.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.e.VideoTitle:t+="VideoTitle";break;case a.e.Description:t+="Description";break;case a.e.Rating:t+="Rating";break;case a.e.SeriesTitle:t+="SeriesTitle";break;case a.e.Season:t+="SeasonNumber";break;case a.e.EpisodeNumber:t+="EpisodeNumber";break;case a.e.BroadcastDate:t+="BroadcastDate";break;case a.e.Channel:t+="Channel";break;case a.e.ProductionYear:t+="ProductionYear";break;case a.e.Distributors:t+="Distributors";break;case a.e.ProductionCompanies:t+="ProductionCompanies";break;case a.e.Directors:t+="Directors";break;case a.e.Producers:t+="Producers";break;case a.e.Other:t+="Other"}return i.a.getPhrase(l,t)}}},656: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")}}]}},658:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),i=n(11),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")}}}},659:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(23),i=n(3),a=n(653),o="libraryEditor.utils",u=(r().year(),{name:[{required:!0,msg:function(){return i.a.getPhrase(o,"videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return i.a.getPhrase(o,"uploadFolderRequired")}}],libraryId:[{required:!0,msg:"Please select an upload library"}],episodeNumber:function(e,t,n){return e&&e<1?"Videos cannot have an episode number less than 1":e&&e>255?"Videos cannot have an episode number greater than 255":e&&e%1!=0?"Episode numbers can only be whole numbers":n.season&&n.season.get("number")>=0&&null===e?"Videos with a season must also have an episode number":""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":"Videos with an episode number must also have a season"},productionYear:function(){return a.e.productionYear.apply(null,arguments)}})},660:function(e,t,n){"use strict";var r=n(658),i=n(653),a=(n(654),n(3),n(656)),o=(n(659),n(655)),u=n(58),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}))},665: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)},935:function(e,t,n){var r=n(8);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})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[34],{1043:function(e,t,n){"use strict";n.r(t),n.d(t,"EditResourceView",(function(){return S}));var r=n(1),i=n(7),a=n(39),o=n(2),u=n(5),s=n(24),c=n(173),l=n(158),f=n(0),d=n(11),p=n(652),h=n(107),m=n(3),g=n(660),b=n(910),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=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==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 k(e){return(k=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()&&(i.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")};a.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,i){if(r.isFunction(i.setSelectionRange))t.focus(),i.setSelectionRange(0,e.length);else if(r.isFunction(i.createTextRange)){var a=i.createTextRange();a.collapse(!0),a.moveEnd("character",e.length),a.moveStart("character",0),a.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:h.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),i.Validation.bind(this,{model:this.viewModel}),this.selectAllWithoutExtension())}},{key:"onClose",value:function(){this.unstickit(),i.Validation.unbind(this)}},{key:"name",get:function(){return"EditResourceView"}},{key:"lang",get:function(){return"libraryEditor.editResource"}},{key:"title",get:function(){return m.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.f,title:m.a.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.a,buttonText:m.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)},652:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),i=n(158);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)},653: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 m})),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),i=n(1),a=n(16),o=n(23),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!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")}},h=o().year(),m={productionYear:function(e,t,n){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>h?u.a.getPhrase(s,"validProductionYears",{currentYear:h}):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,t,n){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"}]}},654:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),i=n(34),a=n(106),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}},655:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(13),i=n(3),a=n(118),o=n(665),u=n(6);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.h.HostedLibrary:case u.h.CustomLibrary:return e.get("name");case u.h.Exchange:return i.a.getPhrase(l,"exchange");case u.h.Workspace:return i.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.h.HostedLibrary:case u.h.CustomLibrary:return"bg-info";case u.h.Exchange:return"bg-success";case u.h.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.e.VideoTitle:t+="VideoTitle";break;case a.e.Description:t+="Description";break;case a.e.Rating:t+="Rating";break;case a.e.SeriesTitle:t+="SeriesTitle";break;case a.e.Season:t+="SeasonNumber";break;case a.e.EpisodeNumber:t+="EpisodeNumber";break;case a.e.BroadcastDate:t+="BroadcastDate";break;case a.e.Channel:t+="Channel";break;case a.e.ProductionYear:t+="ProductionYear";break;case a.e.Distributors:t+="Distributors";break;case a.e.ProductionCompanies:t+="ProductionCompanies";break;case a.e.Directors:t+="Directors";break;case a.e.Producers:t+="Producers";break;case a.e.Other:t+="Other"}return i.a.getPhrase(l,t)}}},656: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")}}]}},658:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),i=n(11),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")}}}},659:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(23),i=n(3),a=n(653),o="libraryEditor.utils",u=(r().year(),{name:[{required:!0,msg:function(){return i.a.getPhrase(o,"videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return i.a.getPhrase(o,"uploadFolderRequired")}}],libraryId:[{required:!0,msg:"Please select an upload library"}],episodeNumber:function(e,t,n){return e&&e<1?"Videos cannot have an episode number less than 1":e&&e>255?"Videos cannot have an episode number greater than 255":e&&e%1!=0?"Episode numbers can only be whole numbers":n.season&&n.season.get("number")>=0&&null===e?"Videos with a season must also have an episode number":""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":"Videos with an episode number must also have a season"},productionYear:function(){return a.e.productionYear.apply(null,arguments)}})},660:function(e,t,n){"use strict";var r=n(658),i=n(653),a=(n(654),n(3),n(656)),o=(n(659),n(655)),u=n(58),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}))},665: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)},910:function(e,t,n){var r=n(8);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){e.propertyIsEnumerable;var a=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(a,"fileName",{name:"lang",hash:{},data:i}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((n.lang||t&&t.lang||o).call(a,"fileName",{name:"lang",hash:{},data:i}))+'" 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})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[35],{1044:function(e,t,r){"use strict";r.r(t),r.d(t,"NewLibraryView",(function(){return R}));var n=r(7),a=r(2),i=r(5),o=r(24),u=r(3),s=r(173),c=r(86),l=r(0),f=r(158),d=r(6),p=r(81),m=r(652),h=r(11),g=r(660),b=r(89),y=r(122),v=r(911),P=r.n(v);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var a=O(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(k,e);var t,r,v,E=S(k);function k(){return w(this,k),E.apply(this,arguments)}return t=k,(r=[{key:"initialize",value:function(){this.model=o.a.get("new:library",null,{ctor:p.a}),this.bindListeners(),this.settingsDataService=i.a.getInstance(l.g.Settings,this),this.libraryDataService=i.a.getInstance(l.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(l.e.SEARCH,"".concat(l.f.SETTINGS,":sync"),this.render)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(f.b.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){o.a.clear("new:library"),a.a.AppLinkHelper.trigger({application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.m.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?a.a.ErrorHelper.throw(new y.j(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(f.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return P.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.a,modelValidation:g.c},{behaviorClass:s.g},{behaviorClass:s.f,title:u.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new m.a,channelName:this.channelName,buttonText:u.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"requiredResources",get:function(){return{currentUser:c.b.currentUser,libraries:b.b.libraries}}}])&&x(t.prototype,r),v&&x(t,v),k}(a.a.View)},652:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(2),a=r(158);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(l,e);var t,r,n,i=c(l);function l(){return o(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"defaults",value:function(){return e={},t=a.c.Disabled,r=!0,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}}])&&u(t.prototype,r),n&&u(t,n),l}(n.a.Model)},653:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"k",(function(){return p})),r.d(t,"g",(function(){return g})),r.d(t,"e",(function(){return h})),r.d(t,"j",(function(){return b})),r.d(t,"i",(function(){return v})),r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return w})),r.d(t,"d",(function(){return x})),r.d(t,"f",(function(){return P})),r.d(t,"h",(function(){return y}));var n=r(2),a=r(1),i=r(16),o=r(23),u=r(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var r=a.reduce(e,(function(e,r,n){var i=t[n];return r||i?a.isObject(r)&&a.isObject(i)&&!a.isUndefined(r.id)&&r.id===i.id?e:a.isArray(r)?f(r,i).length?e.concat(n):e:a.isEqual(r,i)?e:e.concat(n):e}),[]);if(r.length)return a.object(a.map(r,(function(r){return a.isArray(t[r])?[r,f(e[r],t[r])]:[r,t[r]]})))}}function f(e,t){var r=[];return a.each(t,(function(t){var n=a.findWhere(e,{id:t.id});if(!a.isUndefined(n)||0!==Object.keys(t).length){var i=a.isUndefined(n)?t:l(n,t);i&&(t.id<0&&!t.value||(!n||t.id<0?r.push(t):(i.id=t.id,r.push(i))))}})),r}var d={getChanges:function(e,t){var r=l(a.omit(e.toJSON(),c),a.omit(t.toJSON(),c));if(r)return a.object(a.map(a.keys(r),(function(e){return[e,d.formatChanges(e,r[e])]})))},formatChanges:function(e,t){if(!t)return null;if(a.isObject(t)&&a.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return a.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:n.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,r){var i=["distributors","producers","directors","productionCompanies"];for(var o in a.each(a.keys(r),(function(e){i.includes(e)&&(r[e]=t.get(e).toJSON())})),t.set(a.clone(r),{silent:!0}),e.set(t.toJSON(),{silent:!0}),r){if(!r[o]&&e.associations[o]){var u=e.get(o);(u instanceof n.a.Model||u instanceof n.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var r=["distributors","productionCompanies","producers","directors"],n={};return a.each(a.keys(e.toJSON()),(function(i){if(a.contains(r,i)){var o=e.get(i).map((function(e){return e.id})),u=t.get(i).map((function(e){return e.id})),s=a.filter(o,(function(e){return!a.contains(u,e)}));s.length&&(n[i]=s)}})),n}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,r){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):r.season&&r.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e,t,r){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,t,r){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"}]}},654:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(1),a=r(34),i=r(106),o=r(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(r){return r?a.a.calculateDestinationFolderDepth(e,r,t)>i.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,r=e.validateParent,a=e.folder,i=e.collection;return t&&r?n.extend({},s,c(a,i)):t?s:r?c(a,i):void 0}},655:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(13),a=r(3),i=r(118),o=r(665),u=r(6);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.h.HostedLibrary:case u.h.CustomLibrary:return e.get("name");case u.h.Exchange:return a.a.getPhrase(l,"exchange");case u.h.Workspace:return a.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.h.HostedLibrary:case u.h.CustomLibrary:return"bg-info";case u.h.Exchange:return"bg-success";case u.h.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,r=(s(t={},c.Pdf,n.b.FilePDF),s(t,c.Image,n.b.FileImg),s(t,c.PowerPoint,n.b.FilePowerpoint),s(t,c.Document,n.b.FileWord),s(t,c.Excel,n.b.FileExcel),s(t,c.Zip,n.b.FileZip),s(t,c.File,n.b.File),t)[e];return r||(r=n.b.Folder),n.a.getSvg(r)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return a.a.getPhrase(l,"pdf");case c.Image:return a.a.getPhrase(l,"image");case c.Document:return a.a.getPhrase(l,"document");case c.Excel:return a.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return a.a.getPhrase(l,"presentation");case c.Zip:return a.a.getPhrase(l,"zipArchive");case c.File:return a.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case i.e.VideoTitle:t+="VideoTitle";break;case i.e.Description:t+="Description";break;case i.e.Rating:t+="Rating";break;case i.e.SeriesTitle:t+="SeriesTitle";break;case i.e.Season:t+="SeasonNumber";break;case i.e.EpisodeNumber:t+="EpisodeNumber";break;case i.e.BroadcastDate:t+="BroadcastDate";break;case i.e.Channel:t+="Channel";break;case i.e.ProductionYear:t+="ProductionYear";break;case i.e.Distributors:t+="Distributors";break;case i.e.ProductionCompanies:t+="ProductionCompanies";break;case i.e.Directors:t+="Directors";break;case i.e.Producers:t+="Producers";break;case i.e.Other:t+="Other"}return a.a.getPhrase(l,t)}}},656:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(3),a="libraryEditor.utils",i={name:[{required:!0,msg:function(){return n.a.getPhrase(a,"libraryNameRequired")}},{maxLength:255,msg:function(){return n.a.getPhrase(a,"libraryNameExceeds")}}]}},658:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(1),a=r(11),i=r(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>a.w.millisecondsToSeconds(r))return s.StartTime.Exceeds();if(i.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?s.Name.MaxLength():r.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()}))?s.Name.Exists():n.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return n.map(e,(function(e,r){var n={name:e.title,startTime:t,index:r,isPhysicalChapter:!0};return t+=e.duration,n}))}},s={Name:{Invalid:function(){return i.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return i.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return i.a.getPhrase(o,"chapterStartTimeExceeds")}}}},659:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(23),a=r(3),i=r(653),o="libraryEditor.utils",u=(n().year(),{name:[{required:!0,msg:function(){return a.a.getPhrase(o,"videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a.a.getPhrase(o,"uploadFolderRequired")}}],libraryId:[{required:!0,msg:"Please select an upload library"}],episodeNumber:function(e,t,r){return e&&e<1?"Videos cannot have an episode number less than 1":e&&e>255?"Videos cannot have an episode number greater than 255":e&&e%1!=0?"Episode numbers can only be whole numbers":r.season&&r.season.get("number")>=0&&null===e?"Videos with a season must also have an episode number":""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":"Videos with an episode number must also have a season"},productionYear:function(){return i.e.productionYear.apply(null,arguments)}})},660:function(e,t,r){"use strict";var n=r(658),a=r(653),i=(r(654),r(3),r(656)),o=(r(659),r(655)),u=r(58),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};r.d(t,"a",(function(){return n.a})),r.d(t,"e",(function(){return a.g})),r.d(t,"h",(function(){return a.j})),r.d(t,"g",(function(){return a.i})),r.d(t,"d",(function(){return a.f})),r.d(t,"f",(function(){return a.h})),r.d(t,"c",(function(){return i.a})),r.d(t,"i",(function(){return o.a})),r.d(t,"b",(function(){return s}))},665:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var a=s(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return c}));var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,e);var t=o(r);function r(){return a(this,r),t.apply(this,arguments)}return r}(r(2).a.Collection)},911:function(e,t,r){var n=r(8);e.exports=(n.default||n).template({1:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,r,n,a){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||o).call(i,"libraryName",{name:"lang",hash:{},data:a}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||o).call(i,"secondaryLibrary",{name:"lang",hash:{},data:a}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,a){var i;e.propertyIsEnumerable;return null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?i:""},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[36],{1089:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(7),i=n(2),a=n(5),l=n(24),u=n(4),s=n(39),c=n(173),f=n(183),p=n(652),h=n(11),m=n(0),d=n(6),g=n(706),y=n(158),b=n(119),v=n(3),I=n(922),w=n.n(I),k=n(923),C=n.n(k);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(u,e);var t,n,r,a=S(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get("edit:folder:images")}},{key:"events",value:function(){return e={},t="click .".concat(C.a.removeImage),n="onClickRemoveImage",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickRemoveImage",value:function(){o.Radio.channel(this.options.channelName).trigger("show:dialog",this.options.imageType)}},{key:"getImageUrl",value:function(){var e=this.options.imageType===d.f.Banners?"createBannerUrl":"createFolderThumbnailUrl";return h.g[e](this.options.originalImage,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.options.folderName,type:this.options.imageType})}},{key:"getImageTypeText",value:function(){switch(this.options.imageType){case d.f.Banners:return v.a.getPhrase(this.lang,"banner");case d.f.Thumbnails:return v.a.getPhrase(this.lang,"thumbnail")}}},{key:"viewOptions",value:function(){return{styles:C.a,imageUrl:this.getImageUrl(),hasImage:this.options.originalImage&&this.options.originalImage.get("id"),imageTypeText:this.getImageTypeText(),dimensions:m.k[this.options.imageType],recommendedDimensions:m.m[this.options.imageType]}}},{key:"name",get:function(){return"EditImageComponent"}},{key:"template",get:function(){return w.a}},{key:"lang",get:function(){return"libraryEditor.editImage"}},{key:"className",get:function(){return this.options.imageType===d.f.Thumbnails?"".concat(C.a.thumbnail," mb-2"):"".concat(C.a.banner," mt-2")}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.c,channelName:this.options.channelName,buttonSelector:".btn-light",imageType:this.options.imageType,saveImage:function(t,n){n?(e.viewModel.set({dataUrl:t,type:e.options.imageType}),i.a.AppLinkHelper.trigger({application:m.b.LIBRARY_EDITOR,action:m.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[e.options.folderId]})):o.Radio.channel(e.options.channelName).trigger("select:image",t,e.options.imageType)}}]}}])&&O(t.prototype,n),r&&O(t,r),u}(i.a.Component),B=n(924),U=n.n(B);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A,W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(i,e);var t,n,r,o=M(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"renderBanner",value:function(){this.showChildView("banner",new x({channelName:this.options.bannerChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:d.f.Banners,folderName:this.options.folderName,originalImage:this.options.bannerImage,folderId:this.options.folderId}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new x({channelName:this.options.thumbnailChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:d.f.Thumbnails,folderName:this.options.folderName,originalImage:this.options.thumbnailImage,folderId:this.options.folderId}))}},{key:"onRender",value:function(){this.renderBanner(),this.renderThumbnail()}},{key:"name",get:function(){return"EditImagesWrapperComponent"}},{key:"template",get:function(){return U.a}}])&&P(t.prototype,n),r&&P(t,r),i}(i.a.Component),F=n(925),V=n.n(F),H=n(926),z=n.n(H);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"EditFolderImagesView",(function(){return X})),function(e){e[e.Upload=0]="Upload",e[e.Crop=1]="Crop"}(A||(A={}));var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(w,e);var t,n,v,I=G(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),I.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.popupContentState=A.Upload,this.viewModel=l.a.get("edit:folder:images"),this.viewModel.get("dataUrl")&&(this.selectedImageType=this.viewModel.get("type"),this.newImageEl=new Image,this.newImageEl.src=this.viewModel.get("dataUrl"),this.spinnerModel.set(y.c.Disabled,!1),this.popupContentState=A.Crop),this.libraryDataService=a.a.getInstance(m.g.Library,this),this.imageUploadDataService=a.a.getInstance(m.g.ImageUpload,this),this.bindListeners()}},{key:"regions",value:function(){return{content:{el:".content-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .back-btn":"onClickBackButton","shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(m.e.LIBRARY,"".concat(m.f.FOLDER,":").concat(this.options.folderId,":sync"),this.render);var t="".concat(this.channelName,":").concat(d.f.Banners),n="".concat(this.channelName,":").concat(d.f.Thumbnails);this.listenTo(t,"select:image",(function(t){return e.onSelectImage(t,d.f.Banners)})),this.listenTo(n,"select:image",(function(t){return e.onSelectImage(t,d.f.Thumbnails)})),this.listenTo(t,"show:dialog",(function(){return e.onShowDialog(d.f.Banners)})),this.listenTo(n,"show:dialog",(function(){return e.onShowDialog(d.f.Thumbnails)})),this.listenTo(t,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(n,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(this.channelName,g.a.ImageCropped,this.onImageCropped)}},{key:"onClickBackButton",value:function(){this.popupContentState!==A.Upload&&(this.popupContentState=A.Upload,this.selectedImageType=null,this.newImageEl=null,this.spinnerModel.set(y.c.Disabled,!0),this.renderContent())}},{key:"onClickCrop",value:function(){o.Radio.channel(this.channelName).trigger(g.a.CropImage).trigger(y.b.ShowSpinner)}},{key:"onSelectImage",value:function(e,t){this.selectedImageType=t,this.newImageEl=new Image,this.newImageEl.src=e,this.popupContentState=A.Crop,this.spinnerModel.set(y.c.Disabled,!1),this.renderCropper()}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,this.selectedImageType,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this;this.triggerMethod("hide");var n={libraryId:this.libraryId,folderId:this.options.folderId,currentImageId:this.getCurrentImageId(),imageModel:e},r=this.selectedImageType===d.f.Banners?u.e.Banner:u.e.Thumbnail,o=this.selectedImageType===d.f.Banners?"addOrUpdateBanner":"addOrUpdateThumbnail";this.libraryDataService[o](n,(function(e){s.a.logUserAction({libraryId:t.libraryId,folderId:t.options.folderId,id:e.get("id")},{actionType:u.q.Upload,entity:r,workflowPhase:u.r.Complete,location:u.k.Popup}),t.reloadPage()}))}},{key:"onShowDialog",value:function(e){var t=this,n=new h.d({title:"Remove image?",text:"Are you sure you want to remove this image?",buttons:[{text:"Remove",className:"btn btn-danger",success:!0},{text:"Cancel",className:"btn btn-secondary",close:!0}],channelName:this.options.channelName});setTimeout((function(){return n.render().done((function(){return t.removeImage(e)}))}),200),this.triggerMethod("hide")}},{key:"removeImage",value:function(e){var t=this,n=e===d.f.Banners?"deleteBanner":"deleteThumbnail",r=e===d.f.Banners?this.currentBanner:this.currentThumbnail,o={libraryId:this.libraryId,folderId:this.model.get("id"),imageId:r.get("id")},i=e===d.f.Banners?u.e.Banner:u.e.Thumbnail;this.libraryDataService[n](o,(function(){s.a.logUserAction({libraryId:t.libraryId,folderId:t.model.get("id"),id:r.get("id")},{actionType:u.q.Delete,entity:i,workflowPhase:u.r.Complete,location:u.k.Popup}),t.reloadPage()}))}},{key:"reloadPage",value:function(){var e=this,t=i.a.LocationUtils.GetCurrentPath().includes("folders");setTimeout((function(){return i.a.AppLinkHelper.trigger({application:m.b.LIBRARY_EDITOR,action:t?m.a.LibraryEditor.FOLDER:m.a.LibraryEditor.HOME,args:t?[e.options.folderId]:void 0})}),0)}},{key:"getCurrentImageId",value:function(){return this.selectedImageType===d.f.Banners&&this.currentBanner?this.currentBanner.get("id"):this.selectedImageType===d.f.Thumbnails&&this.currentThumbnail?this.currentThumbnail.get("id"):void 0}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"getImageModel",value:function(){return new f.a({dataUrl:this.newImageEl.src,width:this.newImageEl.width,height:this.newImageEl.height})}},{key:"renderContent",value:function(){this.popupContentState===A.Upload&&(this.getUI("backBtn").addClass(V.a.hide),this.showChildView("content",new W({imageCdnUrl:this.config.get("imageCdnUrl"),folderName:this.model.get("name"),bannerImage:this.currentBanner,thumbnailImage:this.currentThumbnail,bannerChannel:"".concat(this.channelName,":").concat(d.f.Banners),thumbnailChannel:"".concat(this.channelName,":").concat(d.f.Thumbnails),folderId:this.options.folderId})))}},{key:"renderCropper",value:function(){this.popupContentState===A.Crop&&(this.getUI("backBtn").removeClass(V.a.hide),this.showChildView("content",new g.b({model:this.getImageModel(),channelName:this.channelName,imageType:this.selectedImageType,minWidth:m.k[this.selectedImageType].width,minHeight:m.k[this.selectedImageType].height,getCropRegionWidth:r.bind(this.getCropRegionWidth,this)})))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.libraryId,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeRender",value:function(){var e=this;this.model&&this.libraryId||(this.model=this.libraryDataService.getFolder(this.options.folderId),this.libraryDataService.getLibraries((function(t){return e.libraryId=t.first().id})))}},{key:"onRender",value:function(){this.model&&this.libraryId&&(this.currentBanner=this.model.get("banner"),this.currentThumbnail=this.model.get("thumbnail"),this.renderContent())}},{key:"onBeforeDestroy",value:function(){this.viewModel.clear()}},{key:"name",get:function(){return"EditFolderImagesView"}},{key:"title",get:function(){return"Edit Folder Images"}},{key:"template",get:function(){return z.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{backBtn:".back-btn"}}},{key:"behaviors",get:function(){return[{title:"Edit folder images",behaviorClass:c.f,size:"modal-lg",buttons:[{text:"Back",className:"btn btn-light back-btn ".concat(V.a.hide)}],spinnerButtonOptions:{model:this.spinnerModel=new p.a,channelName:this.channelName,buttonText:"Continue",onClick:this.onClickCrop}}]}},{key:"requiredResources",get:function(){return{config:b.b.config}}}])&&Y(t.prototype,n),v&&Y(t,v),w}(i.a.View)},652:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(158);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(c,e);var t,n,r,i=s(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&l(t.prototype,n),r&&l(t,r),c}(r.a.Model)},706:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return g}));var r,o=n(7),i=n(2),a=n(749),l=n.n(a),u=n(707),s=n.n(u);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(u,e);var t,n,i,a=h(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new l.a(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}}])&&f(t.prototype,n),i&&f(t,i),u}(i.a.Component)},707:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})},922:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumRecommended",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.width:i},data:o}))+"\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumActual",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.width:i},data:o}))+"\r\n"},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeImage:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:o}))+" "+l(a(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression,s=e.lambda;return'<h6 class="mb-0">'+u((n.lang||t&&t.lang||l).call(a,"edit",{name:"lang",hash:{},data:o}))+" "+u(s(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+'</h6>\r\n<div class="text-muted mb-1">\r\n <em>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+' </em>\r\n</div>\r\n<div class="my-1 '+u(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageContainer:i,t))+'">\r\n <div class="'+u(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageElement:i,t))+'" style="background-image: url(\''+u(s(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'\')"></div>\r\n</div>\r\n<button class="btn btn-light my-1">'+u((n.lang||t&&t.lang||l).call(a,"upload",{name:"lang",hash:{},data:o}))+" "+u(s(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasImage:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},923:function(e,t,n){e.exports={removeImage:"_3OmsX",imageElement:"_3kJ8m",banner:"uFWnL",thumbnail:"_3_b6l",imageContainer:"_1mYjS"}},924:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="thumbnail-region"></div>\r\n<div class="dropdown-divider"></div>\r\n<div class="banner-region"></div>'},useData:!0})},925:function(e,t,n){e.exports={hide:"_5hYaK"}},926:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return'<div class="content-region"></div>\r\n'},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[37],{1082:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(3),r=n(2),a=n(5),s=n(24),l=n(4),c=n(39),u=n(11);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,e);var t=h(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(r.a.Model),v=n(196),b=n(652),w=n(86),S=n(119),k=n(0),O=n(665),M=n(672),T=n(158),x=n(173),E=n(6),C=n(7),R=n(23),P=n(793),_=n(118),V=n(660),N=n(932),j=n.n(N),D=n(933),I=n.n(D);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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=H(e);if(t){var i=H(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==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 H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q,J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(s,e);var t,n,o,a=F(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===_.e.BroadcastDate?this.options.metadataValue?R(this.options.metadataValue).format(E.p.FULL_YEAR):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof r.a.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||i.a.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===_.e.Other?i.a.getPhrase(this.lang,"otherSuggestionPlaceholder"):i.a.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:V.i.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===_.e.Rating&&this.showChildView("ratingSelect",new P.a({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:I.a,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===_.e.Rating,isOtherType:this.options.metadataType===_.e.Other,metadataType:V.i.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),C.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),C.Validation.unbind(this)}},{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return j.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}}])&&A(t.prototype,n),o&&A(t,o),s}(r.a.Component);!function(e){e[e.Email=0]="Email"}(q||(q={}));var z=n(101),G=n(43),K=Object.assign(Object.assign({},z.a),{createSuggestEditNotification:function(e){return{_type:G.a.SuggestEdit,groupId:e.groupId,receiverId:0,countryCode:e.countryCode,channels:[q.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),W=n(934),$=n.n(W);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=te(e);if(t){var i=te(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==Q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SuggestAnEditView",(function(){return ne}));var ne=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&&X(e,t)}(f,e);var t,n,r,d=Z(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=a.a.getInstance(k.g.Video,this),this.ratingsDataService=a.a.getInstance(k.g.Ratings,this),this.notificationDataService=a.a.getInstance(k.g.Notifications,this),this.selectedMetadata=new m,this.metadataCollection=this.getMetadataCollection(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(k.e.VIDEO,"".concat(k.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(k.e.NOTIFICATIONS,"".concat(k.f.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(e){var t=this;if(this.validateForm()){this.spinnerModel.set(T.c.ShowSpinner,!0);var n=this.selectedMetadata.get("metadataType")===_.e.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),o=this.config.get("suggestEditMetadataGroupId"),i=K.createSuggestEditNotification({groupId:o,countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:n,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(i,(function(){t.triggerMethod("hide"),t.spinnerModel.set(T.c.ShowSpinner,!1),t.spinnerModel.set(T.c.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(T.c.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(T.c.Disabled,!1),u.c.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==_.e.Other?this.model.get(e.get("property")):null}),e.get("name")!==_.e.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){return new O.a(Object.keys(_.f).map((function(e){return _.f[e]})))}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.a.get(this.viewModelName),this.viewModel.addValidation(V.h)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==_.e.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==_.e.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?V.g.original():"":V.g.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=u.x.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==E.h.CustomLibrary}));var t={videoSourceTypes:o.sortBy(o.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};c.a.logUserAction(t,{descriptor:l.p.Edit,location:l.k.Popup,actionType:l.q.Suggest,entity:l.e.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new M.a({collection:V.i.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||i.a.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:c.a}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new J({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new v.a(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:u.q.getSpinner({size:u.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return $.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:x.f,title:i.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.a,channelName:this.channelName,buttonText:i.a.getPhrase(this.lang,"submit"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"requiredResources",get:function(){return{config:S.b.config,currentUser:w.b.currentUser}}}])&&Y(t.prototype,n),r&&Y(t,r),f}(r.a.View)},652:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(2),i=n(158);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,o,r=c(u);function u(){return a(this,u),r.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&s(t.prototype,n),o&&s(t,o),u}(o.a.Model)},657:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(176);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,i,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return r.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}}])&&s(t.prototype,n),i&&s(t,i),u}(i.a.ComponentCollection)},672:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(7),r=n(2),a=n(657),s=n(11),l=n(673),c=n.n(l),u=n(674),d=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,l=g(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=l.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(e){i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),i.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var i=n[this.sameCharIndex];return i||(i=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,i}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){return!!e.get("divider")||!!o.isFunction(this.options.childOptions.isDisabled)&&this.options.childOptions.isDisabled.apply(this,arguments)}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:d.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(d.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),r&&p(t,r),u}(r.a.Component)},673:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \r\n name="'+s(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+s(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},674:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},932:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(r=null!=t?t.options:t)?r.metadataType:r},data:i}))+'</p>\r\n<p class="mb-3 '+a(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metadataValue:r,t))+'">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.metadataValue:r,t))?r:"")+"</p>\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.suggestionPlaceholder:r,t))+'"\r\n class="form-control"\r\n name="suggestion"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.isOtherType:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n<div class="dropdown-divider"></div>\r\n\r\n<div class="form-group">\r\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"suggestionSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.useRatingSelect:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"reasoningSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+l((n.lang||t&&t.lang||s).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:i}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},933:function(e,t,n){e.exports={metadataValue:"_3nkrW"}},934:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||a).call(r,"guidelines",{name:"lang",hash:{},data:i}))+'</p>\r\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||a).call(r,"dropdownHeading",{name:"lang",hash:{},data:i}))+'</p>\r\n<div class="metadata-dropdown-region position-relative"></div>\r\n<div class="suggest-edit-region"></div>\r\n'},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[38],{1037:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveFolderView",(function(){return R}));var r=n(1),o=n(7),i=n(2),l=n(24),a=n(5),s=n(39),u=n(0),c=n(173),f=n(652),d=n(54),p=n(11),h=n(158),y=n(3),b=n(699),m=n(846),v=n.n(m);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(k,e);var t,n,m,g=O(k);function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),g.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=a.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(h.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e=this.getParentIds(),t=e.oldParentId,n=e.newParentId,r={id:this.options.folderId,isSubfolder:n.toString()!==this.library.get("id").toString(),oldParentId:t,newParentId:n};s.a.logUserAction(r,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this,t=this.getParentIds(),n=t.oldParentId,r=t.newParentId;n!==r?this.libraryDataService.moveFolder(this.viewModel.get("id"),r,n,(function(){i.a.AppLinkHelper.trigger({application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[e.viewModel.get("id")]}),e.triggerMethod("hide")})):i.a.AppLinkHelper.trigger({application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[this.viewModel.get("id")]})}},{key:"getParentIds",value:function(){return{oldParentId:p.f.getParent(this.options.folderId,this.collection).get("id"),newParentId:this.viewModel.get("parentId")}}},{key:"setUpCollection",value:function(e){this.collection||(this.library=p.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=l.a.get(e,this.model.toJSON(),{ctor:d.a});var t=p.f.getParent(this.options.folderId,this.collection);this.viewModel.set("parentId",t?t.get("id"):null),this.listenTo(this.viewModel,"change:parentId",this.onParentChange)}}},{key:"onParentChange",value:function(){var e=this.getParentIds(),t=e.oldParentId,n=e.newParentId;this.spinnerModel.set(h.c.Disabled,t===n)}},{key:"getDisabledParentFolderIds",value:function(){var e=[this.model.get("id").toString()];return this.viewModel.get("parentId")&&e.push(this.viewModel.get("parentId").toString()),this.model.children?[].concat(e,w(p.f.flatten(this.model.children).map((function(e){return e.id.toString()})))):e}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,collection:this.collection,library:this.library,channelName:this.channelName,editName:!1,editParent:!0,disabledParentFolderIds:this.getDisabledParentFolderIds()});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"MoveFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.moveFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.f,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"move"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&P(t.prototype,n),m&&P(t,m),k}(i.a.View)},652:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(158);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,n,r,i=u(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),c}(r.a.Model)},654:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(34),i=n(106),l=n(3),a="libraryEditor.utils",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},s,u(o,i)):t?s:n?u(o,i):void 0}},662:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(7),o=n(2),i=n(3),l=n(669),a=n(11),s=n(663),u=n.n(s),c=n(664),f=n.n(c);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,s=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&p(t.prototype,n),o&&p(t,o),c}(o.a.Component)},663:function(e,t,n){var r=n(8);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})},664:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},699:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(173),i=n(11),l=n(662),a=n(654),s=n(700),u=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,n,r,s=p(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.g}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},700:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},846:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[39],{1036:function(e,t,n){"use strict";n.r(t),n.d(t,"RenameFolderView",(function(){return _}));var r=n(1),o=n(7),i=n(24),l=n(5),a=n(2),s=n(39),u=n(0),c=n(173),f=n(652),p=n(54),d=n(158),h=n(11),y=n(3),b=n(699),m=n(845),v=n.n(m);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(g,e);var t,n,a,m=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=l.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(u.e.LIBRARY,"libraries:sync",this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(d.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};s.a.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=h.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=i.a.get(e,this.model.toJSON(),{ctor:p.a})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(d.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.f,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&w(t.prototype,n),a&&w(t,a),g}(a.a.View)},652:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(158);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,n,r,i=u(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),c}(r.a.Model)},654:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(34),i=n(106),l=n(3),a="libraryEditor.utils",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},s,u(o,i)):t?s:n?u(o,i):void 0}},662:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(7),o=n(2),i=n(3),l=n(669),a=n(11),s=n(663),u=n.n(s),c=n(664),f=n.n(c);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,s=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),o&&d(t,o),c}(o.a.Component)},663:function(e,t,n){var r=n(8);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})},664:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},699:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(173),i=n(11),l=n(662),a=n(654),s=n(700),u=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,s=d(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.g}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},700:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},845:function(e,t,n){var r=n(8);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|