@clickview/library-editor 1.1.18 → 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
package/dist/bundle.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@clickview/common"),require("@clickview/shared"),require("_"),require("@clickview/analytics"),require("Handlebars"),require("Backbone"),require("Backbone.Radio"),require("moment"),require("Backbone.Validation"),require("Bloodhound"),require("@clickview/url-signer"),require("CVEvents"),require("ClipboardJS")):"function"==typeof define&&define.amd?define(["@clickview/common","@clickview/shared","_","@clickview/analytics","Handlebars","Backbone","Backbone.Radio","moment","Backbone.Validation","Bloodhound","@clickview/url-signer","CVEvents","ClipboardJS"],t):"object"==typeof exports?exports["@clickview/library-editor"]=t(require("@clickview/common"),require("@clickview/shared"),require("_"),require("@clickview/analytics"),require("Handlebars"),require("Backbone"),require("Backbone.Radio"),require("moment"),require("Backbone.Validation"),require("Bloodhound"),require("@clickview/url-signer"),require("CVEvents"),require("ClipboardJS")):e["@clickview/library-editor"]=t(e["@clickview/common"],e["@clickview/shared"],e._,e["@clickview/analytics"],e.Handlebars,e.Backbone,e["Backbone.Radio"],e.moment,e["Backbone.Validation"],e.Bloodhound,e["@clickview/url-signer"],e.CVEvents,e.ClipboardJS)}(window,(function(e,t,n,o,r,i,a,l,s,u,c,p,f){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=642)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t,n){e.exports={addLibraryButton:"fXaTF",addLibraryPlus:"_3Ygal",paddedContainer:"_1uVUJ",imageLarge:"_2-GAI",imageSmall:"_36Ljd"}},function(e,t){e.exports=s},function(e,t,n){e.exports={requiredStar:"_3S5iJ",disabled:"_3iZQ5",formGroup:"B4xS9",suggestEdit:"_3n3sM",programTitle:"_3bWJB",description:"_3qayV",seriesTitle:"_3ojjo",broadcastDate:"_2hA-0",channel:"_1SMGG",rating:"_3AkUv",productionYear:"_1DYCl",distributors:"_2CbiR",productionCompanies:"_3hB5o",directors:"ksEaA",producers:"h7P2B",episodeNumber:"_3fMUg",seasonNumber:"GwqaB",icon:"quxL2",infoSvgContainer:"_18UDY"}},function(e,t,n){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},function(e,t,n){e.exports={droppable:"_1OOL3",hover:"sCq0c"}},function(e,t,n){e.exports={select:"_1rbBR",selectButton:"htYy7",svgContainer:"_1sQ7D",groupButton:"_2CM1D",groupButtons:"_3uv-z",groupButtonSelected:"uC5RG",buttonDisabled:"_3-I1L",mediumWeight:"_10amI"}},function(e,t,n){e.exports={columnNames:"_1a1Re",descriptionWrapper:"_2MZC5",description:"_3U9j9",ellipsis:"_1YjUg",singleEllipsis:"_3SNtn",showMoreEllipsis:"xy3i9",showEllipsis:"_1_L9t",hideEllipsis:"TCdgP",open:"_18ojI",truncateSmall:"nLuVF",truncateLarge:"sEELY"}},function(e,t,n){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},function(e,t,n){e.exports={containerWithBottomBorder:"_3pMnf",tabContainer:"_3DDqe",publisherArchiveAppLink:"WtJIT",reviewErroredAppLink:"_2P6wN",none:"_36_Ky",publisherArchive:"oHXCU",migrationErrors:"_Ztdf",svgContainer:"edUQE"}},function(e,t,n){e.exports={alertItem:"_6L-Rn",fadeIn:"_2ISjU",icon:"_3X3sP",alertContent:"_2_sUY",heading:"_2nrzl",message:"_1UIK0",link:"_2xwcl",svgContainer:"_2yj4z",alertList:"_1O_xv",removing:"_3pw7F",fadeOut:"eLPSS",removed:"OqzPi"}},function(e,t,n){e.exports={label:"_3iMZr",filterButton:"_1xOts",dropdownMenu:"_1Yzts"}},function(e,t,n){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},function(e,t,n){e.exports={viewLink:"_2s0QU",viewCount:"_1ncwl",faded:"_2G1C1",bulkCheckbox:"_225JZ",videoRow:"fFRMW",videoTitle:"_3YCJO",errorIconContainer:"_37_lU",categoryName:"_3gjN2"}},function(e,t,n){e.exports={actions:"_1U-Yf",svgContainer:"_3hYSf",actionName:"_2kY6B",disabled:"_3UjU0"}},function(e,t,n){e.exports={fileDrop:"l2vGK",dropMask:"yNe5b",dragOver:"_3sZ1T"}},function(e,t,n){e.exports={actions:"_1n37b",spinner:"_3Fpix",cancel:"_2ZmdX",hiddenCancel:"_1PypJ",processProgress:"_3dASy",errorMargin:"_3GfnF"}},function(e,t,n){e.exports={svgContainer:"O3FnZ",sortingRow:"Rbj8Y",bulkCheckbox:"_2mKzS",sortOption:"_3ajGP"}},function(e,t,n){e.exports={statusBar:"_3qlXe",statusBarMessage:"_1ul9Z",button:"_3HS1V"}},function(e,t,n){e.exports={folderTree:"_1inFA",text:"_2ovSq",caret:"_2pwp9",library:"_2WHiz",selected:"_200l0",parent:"_205QS",disabledActive:"_25EPE",disabled:"_387cT",collapsed:"_1-_q7",actions:"_3Il7t",node:"_23bpP",libraryContainer:"EuNKs",item:"ahYSz"}},function(e,t,n){e.exports={content:"_303Nb",contentWithLeftNav:"_2ZCHY"}},function(e,t,n){e.exports={contentContainerWithBulkActions:"_1OZCN",thumbnailContainer:"_35XrM",metaContainer:"_1-L5x",titleContainer:"_3nfiJ"}},function(e,t,n){e.exports={dropMask:"ZO89K",dropContent:"_1EbzE",dropArea:"_3ucfy",dragOver:"_2D_ox",border:"_3sQtM"}},function(e,t,n){e.exports={leftNav:"_2r3wp",topNav:"_2tPrC",contentBox:"gzfZN",leftNavContentBox:"_1yUOQ",sizingBox:"_2Rol1",alertBox:"_1TUsf",alertBoxWithIntercom:"QDngA",lockedWidth:"_1XHqq"}},function(e,t,n){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},function(e,t,n){e.exports={tile:"_2vzcB",count:"_1NMES",emptyStateImage:"_2g_X_"}},function(e,t,n){e.exports={banner:"_16p9Y",actions:"KoZV-"}},function(e,t,n){e.exports={currentHeader:"b4Mqw",header:"_2OV3l",subheader:"_6H8te",back:"_3RKrR",backSvgContainer:"_1T015",checkSvgContainer:"_3Q3UJ",checkSvgContainerChecked:"ZsxkB",svg:"uKtsP"}},function(e,t,n){e.exports={selectRating:"_1I6jj",removeRating:"_1ze5G",disabled:"_2hO8J",disabledSelected:"mnQ5O"}},function(e,t,n){e.exports={next:"_1sAku",previous:"_3zc5V",datePicker:"_1j_H7",calendarSvg:"_3ViTN",disabled:"DzdxT"}},function(e,t,n){e.exports={darkBackground:"_2jtQl",loading:"_152ia",svgContainer:"xdD5o",chapterItem:"_3G38c"}},function(e,t,n){e.exports={removeImage:"_3OmsX",imageElement:"_3kJ8m",banner:"uFWnL",thumbnail:"_3_b6l",imageContainer:"_1mYjS"}},function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},function(e,t,n){e.exports={optionItem:"_3jzt0",customOptionItem:"_78r7L",selected:"aFhSG"}},function(e,t,n){e.exports={backupProgress:"_15jUh",info:"_1NjZL",progress:"fp9FZ",migrationBackupContainer:"_28z_5"}},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object.create(e.prototype);for(var r in n)o[r]=n[r];return o.constructor=t,t.prototype=o,t}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mr-2">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dragText:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>"},useData:!0})},function(e,t,n){e.exports={tile:"_2oIcc",notificationList:"_1Hn2a"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return"checked"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-checkbox '+l(a(null!=(i=null!=t?t.options:t)?i.checkboxClassName:i,t))+'">\r\n <input name="checkbox-'+l(a(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" id="checkbox-'+l(a(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+l(a(null!=(i=null!=t?t.options:t)?i.id:i,t))+'"> </label>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row mx-0">\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+' partial-loading-background pr-0 my-3"></div>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metaContainer:i,t))+' pl-3 my-3">\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.titleContainer:i,t))+' partial-loading-background"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={list:"_35CAt",item:"_1r5u9",title:"_1ttnP",requestedBy:"_3Tq3M",date:"_33-LZ"}},function(e,t){e.exports=u},function(e,t,n){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},function(e,t,n){e.exports={container:"_2SYyd",embedInput:"ozkKz",textareaContainer:"_1monr",shareInput:"_36Arj",copyBtn:"_2UGxe",embedCopyBtn:"gaJap",footerText:"_3ydjG"}},function(e,t,n){e.exports={start:"GpK3N",subtitle:"_2tQJA",options:"BxsJX",optionHeader:"_2OS3h",optionText:"_1sNAq",image:"xsCzA",infoMessage:"_3jOln",migrationBanner:"n_A_A",migrationBadge:"plIse",migrationContainer:"_33xeg"}},function(e,t,n){e.exports={smart:"_1dRs0",leftNav:"_3dpUO"}},function(e,t,n){e.exports={progress:"bJ21G",remaining:"_1T3fH",info:"_3m6CX",migrationContainer:"MVm9U",migrationSyncContainer:"KH7rf",syncServer:"_2-0ob",syncVideo:"_2Rh0f",migrationSyncAnimation:"oXD93",syncCloud:"_3B9BP"}},function(e,t,n){e.exports={videosAdded:"_2mvcb",migrationContainer:"_kJhb",info:"wszk6",image:"_1HF1l",publisherLink:"_2SXoK",icon:"_2wZJN"}},function(e,t,n){e.exports={backupImage:"_10r2k",info:"_1O7-y",button:"_1cN_3",bolder:"bxulh",question:"_2OYs-",collapse:"_1dD-L",collapseContents:"_2sqEn",migrationBackupContainer:"_2Hcov"}},function(e,t,n){e.exports={complete:"_2YgCz",middle:"_2QcuL",checkedImage:"_30_1Z",warningImage:"_2gF7F"}},function(e,t,n){e.exports={welcome:"_3MANn",middle:"_2sLB2",image:"_1--7s",text:"ivhYc",migrationBackupContainer:"W7da5"}},function(e,t,n){e.exports={hide:"_5hYaK"}},function(e,t,n){e.exports={backupProgress:"sg8Kg",info:"_2HxTI",progress:"hbLuA",migrationBackupContainer:"_2lpDI"}},function(e,t,n){e.exports={complete:"_2A6IC",middle:"_1R3SI",checkedImage:"_2Vb1u",migrationBackupContainer:"_26fzE"}},function(e,t,n){e.exports={migrationErrorView:"_1Jo6e",videoContainer:"_7tGnj",svgContainer:"csNIF",headingContainer:"_30NNv",tabsContainer:"_10__f"}},function(e,t,n){e.exports={list:"_3aP3V",item:"_1uqg-",selected:"_29kkj"}},function(e,t,n){e.exports={actions:"_2xyI4",source:"_153F1",button:"_3I7SQ"}},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var o=n(106),r=n(42),i=(0,o.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,r.inherits)(i,(0,o.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var l=a(),s=a("@"),u=a(":"),c=a("."),p=a(),f=a(),h=a("\n"),d=a(),y=a("+"),g=a("#"),m=a(),b=a("mailto:"),v=a("?"),w=a("/"),S=a("_"),k=a(),O=a(),C=a(),E=a("{"),_=a("["),T=a("<"),P=a("("),x=a("}"),I=a("]"),L=a(">"),j=a(")"),R=a("&");t.Base=i,t.DOMAIN=l,t.AT=s,t.COLON=u,t.DOT=c,t.PUNCTUATION=p,t.LOCALHOST=f,t.NL=h,t.NUM=d,t.PLUS=y,t.POUND=g,t.QUERY=v,t.PROTOCOL=m,t.MAILTO=b,t.SLASH=w,t.UNDERSCORE=S,t.SYM=k,t.TLD=O,t.WS=C,t.OPENBRACE=E,t.OPENBRACKET=_,t.OPENANGLEBRACKET=T,t.OPENPAREN=P,t.CLOSEBRACE=x,t.CLOSEBRACKET=I,t.CLOSEANGLEBRACKET=L,t.CLOSEPAREN=j,t.AMPERSAND=R},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+' partial-loading-background"></div><div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={content:"_3KP84",notificationTime:"_1MR01",icon:"_1GUmS",contentContainer:"_34ETn"}},function(e,t,n){e.exports={actions:"_1cCHt",badge:"_2x-so",button:"_2y4ng",selectButton:"_1uCMl"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.filterButton:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={filterButton:"_10tNq"}},function(e,t,n){e.exports={container:"_11___",input:"_3RRYx"}},function(e,t,n){e.exports={active:"_3fIrz",icon:"_1RDxv"}},function(e,t,n){e.exports={disabled:"tOHRz"}},function(e,t,n){e.exports={clearSvg:"_2-D4Z"}},function(e,t,n){e.exports={svg:"_1iL3O",typeaheadContainer:"_1SWXc",disabled:"_3C2O8"}},function(e,t,n){e.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},function(e,t,n){e.exports={saveButton:"_2FsA6",undo:"v6msX"}},function(e,t,n){e.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},function(e,t,n){e.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},function(e,t,n){e.exports={sortSelect:"_3o-cY",sortSelectDropdown:"_3O1cI"}},function(e,t,n){e.exports={folderIcon:"_3yOKC",folder:"_1mL-8",folderBlock:"_3Z20g",actions:"_1NQjU"}},function(e,t,n){e.exports={svgContainer:"_2fUyj"}},function(e,t,n){e.exports={folder:"_1MHyt",actions:"_3-hwy"}},function(e,t,n){e.exports={draggingVideo:"_3cCHx"}},function(e,t,n){e.exports={image:"Cz1y1",addCrest:"_2PAV_"}},function(e,t,n){e.exports={avatar:"_1SfF-",arrow:"_2C5x6",popoverOffset:"_3FIw8"}},function(e,t,n){e.exports={progressDropdown:"_3mx9H",upload:"t6ngq",uploadButtonSvg:"_35apo"}},function(e,t,n){e.exports={progressInfo:"_1fkFK",svgContainer:"_2uMkl",itemCount:"_1oXJj"}},function(e,t,n){e.exports={series:"P3914"}},function(e,t,n){e.exports={sourceLabel:"_2HK7r"}},function(e,t,n){e.exports={webPlayerContainer:"_2S4VF",webPlayer:"_3569L",svgContainer:"_1WsxD"}},function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},function(e,t,n){e.exports={button:"_39NvM",svg:"_2Tl0W",disabled:"_2julA",seasonContainer:"_SpZq"}},function(e,t,n){e.exports={options:"_6o30E",option:"_3yReT"}},function(e,t,n){e.exports={actions:"_3vCmp"}},function(e,t,n){e.exports={item:"_13Gu_",text:"_2mbEb",folderTree:"_2NhVk",node:"_1dMK1",selected:"_1AACi"}},function(e,t,n){e.exports={banner:"O5CMF",learnMore:"MjcUE"}},function(e,t,n){e.exports={container:"_2SvL3",header:"_2KEEa",footer:"wCMJb"}},function(e,t,n){e.exports={component:"_13khy",thumbnailContainer:"_gEcp",metaContainer:"zuMb1",actionsContainer:"_1ppp8",videoItem:"_2Ru6c",doNotAdd:"_8l6WV"}},function(e,t,n){e.exports={title:"_2yTdm"}},function(e,t,n){e.exports={svgContainer:"_2KSbB"}},function(e,t,n){"use strict";t.__esModule=!0;t.default={nbsp:" "}},function(e,t,n){"use strict";function o(e){this.named=e}t.__esModule=!0;var r=/^#[xX]([A-Fa-f0-9]+)$/,i=/^#([0-9]+)$/,a=/^([A-Za-z0-9]+)$/;o.prototype.parse=function(e){if(e){var t=e.match(r);return t?"&#x"+t[1]+";":(t=e.match(i))?"&#"+t[1]+";":(t=e.match(a))?this.named[t[1]]||"&"+t[1]+";":void 0}},t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var o=n(634);function r(e,t){this.delegate=e,this.entityParser=t,this.state=null,this.input=null,this.index=-1,this.line=-1,this.column=-1,this.tagLine=-1,this.tagColumn=-1,this.reset()}r.prototype={reset:function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},tokenize:function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},tokenizePart:function(e){for(this.input+=(0,o.preprocessInput)(e);this.index<this.input.length;)this.states[this.state].call(this)},tokenizeEOF:function(){this.flushData()},flushData:function(){"data"===this.state&&(this.delegate.finishData(),this.state="beforeData")},peek:function(){return this.input.charAt(this.index)},consume:function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},consumeCharRef:function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var o=t.length;o;)this.consume(),o--;return this.consume(),n}}},markTagStart:function(){this.tagLine=this.line,this.tagColumn=this.column,this.delegate.tagOpen&&this.delegate.tagOpen()},states:{beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var e=this.peek();"<"===e?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===e?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e))},tagOpen:function(){var e=this.consume();"!"===e?this.state="markupDeclaration":"/"===e?this.state="endTagOpen":(0,o.isAlpha)(e)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(e.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.state="commentStartDash":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(e),this.state="comment")},commentStartDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var e=this.consume();"-"===e?this.state="commentEndDash":this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.state="commentEnd":(this.delegate.appendToCommentData("-"+e),this.state="comment")},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+e),this.state="comment")},tagName:function(){var e=this.consume();(0,o.isSpace)(e)?this.state="beforeAttributeName":"/"===e?this.state="selfClosingStartTag":">"===e?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();(0,o.isSpace)(e)?this.consume():"/"===e?(this.state="selfClosingStartTag",this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},attributeName:function(){var e=this.peek();(0,o.isSpace)(e)?(this.state="afterAttributeName",this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.state="beforeAttributeValue",this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();(0,o.isSpace)(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===e?(this.consume(),this.state="beforeAttributeValue"):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();(0,o.isSpace)(e)?this.consume():'"'===e?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();(0,o.isSpace)(e)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();(0,o.isSpace)(e)?(this.consume(),this.state="beforeAttributeName"):"/"===e?(this.consume(),this.state="selfClosingStartTag"):">"===e?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var e=this.consume();(0,o.isAlpha)(e)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(e.toLowerCase()))}}},t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(103),i=(o=r)&&o.__esModule?o:{default:o};function a(e,t){this.token=null,this.startLine=1,this.startColumn=0,this.options=t||{},this.tokenizer=new i.default(this,e)}a.prototype={tokenize:function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},tokenizePart:function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},tokenizeEOF:function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},reset:function(){this.token=null,this.startLine=1,this.startColumn=0},addLocInfo:function(){this.options.loc&&(this.token.loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},beginData:function(){this.token={type:"Chars",chars:""},this.tokens.push(this.token)},appendToData:function(e){this.token.chars+=e},finishData:function(){this.addLocInfo()},beginComment:function(){this.token={type:"Comment",chars:""},this.tokens.push(this.token)},appendToCommentData:function(e){this.token.chars+=e},finishComment:function(){this.addLocInfo()},beginStartTag:function(){this.token={type:"StartTag",tagName:"",attributes:[],selfClosing:!1},this.tokens.push(this.token)},beginEndTag:function(){this.token={type:"EndTag",tagName:""},this.tokens.push(this.token)},finishTag:function(){this.addLocInfo()},markTagAsSelfClosing:function(){this.token.selfClosing=!0},appendToTagName:function(e){this.token.tagName+=e},beginAttribute:function(){this._currentAttribute=["","",null],this.token.attributes.push(this._currentAttribute)},appendToAttributeName:function(e){this._currentAttribute[0]+=e},beginAttributeValue:function(e){this._currentAttribute[2]=e},appendToAttributeValue:function(e){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=e},finishAttributeValue:function(){}},t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var o=n(42);var r=function(e){this.j=[],this.T=e||null};r.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],o=n[0],r=n[1];if(this.test(e,o))return r}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,o.inherits)(r,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,o.inherits)(r,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=a,t.stateify=function(e,t,n,o){for(var r=0,a=e.length,l=t,s=[],u=void 0;r<a&&(u=l.next(e[r]));)l=u,r++;if(r>=a)return[];for(;r<a-1;)u=new i(o),s.push(u),l.on(e[r],u),l=u,r++;return u=new i(n),s.push(u),l.on(e[a-1],u),s}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="result px-2 py-1"><span class="query-text">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span></div>>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tt-pending p-2"><div class="partial-text">Searching...</div></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tt-not-found p-2">Could not find any matches</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tt-not-found empty"></div>'},useData:!0})},function(e,t,n){e.exports={tile:"REue0"}},function(e,t,n){e.exports={videoGroupList:"_38Usa"}},function(e,t,n){e.exports={partialSubFolder:"_1ltue"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.title:i,t))+'"></h6>\r\n<p class="my-1 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestedBy:i,t))+'"></p>\r\n<p class="my-1 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.date:i,t))+'"></p>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5"><span class="badge d-inline-block p-1 mr-1 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badge:i,t))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5">\r\n <button class="dropdown-toggle form-control btn-block partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>'},useData:!0})},function(e,t,n){e.exports={content:"_3_8yg"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>'},useData:!0})},function(e,t,n){e.exports={button:"_3owCz"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.video:i,t))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+' partial-loading-background"></div>\r\n<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+' partial-loading-background mt-1"></div>\r\n<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subSubText:i,t))+' partial-loading-background mt-1"></div>'},useData:!0})},function(e,t,n){e.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoAction:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"z4_PP",subText:"_1CvDv"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.back:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right p-2"></div>\r\n</div>\r\n<div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.detailsTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.chaptersTab:i,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learningTab:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background"> </button>\r\n\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textbox:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subHeader:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="partial-loading-background mb-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.line:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>\r\n </div>\r\n</div>\r\n<div class="row">\r\n <div class="col-3">\r\n <div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.player:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={player:"H6oUk"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.input:i,t))+'"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r,i,a){e.propertyIsEnumerable;var l,s=e.lambda,u=e.escapeExpression;return' <div class="col-12 pr-3 py-1 '+u(s(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.videoRow:l,t))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n <div class="partial-loading-background d-inline-block '+u(s(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.text:l,t))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+u(s(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.views:l,t))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r,i,a){e.propertyIsEnumerable;var l,s=e.lambda,u=e.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+u(s(null!=(l=null!=(l=null!=t?t.options:t)?l.styles:l)?l.sortingRow:l,t))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+u(s(null!=(l=null!=(l=null!=t?t.options:t)?l.styles:l)?l.bulkCheckbox:l,t))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+u(s(null!=(l=null!=(l=null!=t?t.options:t)?l.styles:l)?l.sortOption:l,t))+'">\r\n <span>Title</span>\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-4 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+u(s(null!=(l=null!=(l=null!=t?t.options:t)?l.styles:l)?l.sortOption:l,t))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+u(s(null!=(l=null!=(l=null!=t?t.options:t)?l.styles:l)?l.videoList:l,t))+'">\r\n'+(null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=(l=null!=t?t.options:t)?l.videoItems:l,{name:"each",hash:{},fn:e.program(1,r,0,i,a),inverse:e.noop,data:r}))?l:"")+"</div>"},useData:!0,useDepths:!0})},function(e,t,n){e.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.toggle:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={row:"rShIv"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled> </button>\r\n </div>\r\n <div class="col-6">\r\n </div>\r\n <div class="col-2 text-right">\r\n <button class="btn btn-light partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" disabled> </button>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<button class="btn partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" type="button"> </button>'},useData:!0})},function(e,t,n){e.exports={button:"_1CETN"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.row:i,t))+'">\r\n <div class="partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="partial-loading-background '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folder:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row w-100 mt-0">\r\n <div class="col-8 border-right p-3">\r\n <div class="mb-3 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.multilineSubText:i,t))+'"></div>\r\n <div class="my-2 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n <div class="col-5 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subText:i,t))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){e.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>\r\n<div class="partial-loading-background mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.item:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={header:"_2x-al",item:"hFvEo"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth1:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth3:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tagWidth2:i,t))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.link:i,t))+'">'+l("function"==typeof(a=null!=(a=n.appLinkText||(null!=t?t.appLinkText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"appLinkText",hash:{},data:r}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="d-inline-block '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">\r\n <span class=" d-inline-block '+s(l(null!=(i=null!=t?t.options:t)?i.svgClass:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.typeSvg:i,t))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertContent:i,t))+'">\r\n <p class="p-0 m-0 pb-1 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.heading:i,t))+'">'+s("function"==typeof(a=null!=(a=n.heading||(null!=t?t.heading:t))?a:c)?a.call(u,{name:"heading",hash:{},data:r}):a)+'</p>\r\n <p class="p-0 m-0 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=t?t.message:t))?a:c)?a.call(u,{name:"message",hash:{},data:r}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(u,null!=t?t.appLink:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">×</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i,a;e.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=t?t.icon:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:r}):a)?i:"")+"</span>"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.count:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=t?t.icon:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" "+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+" \r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.count:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"d-inline-block"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return" "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showingSaveButton:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <a class="'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.showingSaveButton:i,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.publisherArchiveSvg:i,t))?i:"")+"</span> "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,t,n,o,r){return"-"},6:function(e,t,n,o,r){return"float-right "},8:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.programTitle:i,t))},10:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requiredStar:i,t))+'">*</span>'},12:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-title">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},14:function(e,t,n,o,r){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))},16:function(e,t,n,o,r){return"disabled"},18:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))},20:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-description">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showingSaveButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <h5 class="d-inline-block">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+"</h5>\r\n\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showPublisherVideoDetails:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="form-group '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-title">'+s((n.lang||t&&t.lang||l).call(a,"title",{name:"lang",hash:{},data:r}))+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=t?t.options:t)?i.requiredFields:i)?i.programTitle:i,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="name"\r\n type="text"\r\n class="form-control '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n placeholder="'+s((n.lang||t&&t.lang||l).call(a,"titlePlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n id="edit-title"\r\n autocomplete="off"\r\n '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="form-group '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-description">'+s((n.lang||t&&t.lang||l).call(a,"description",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="description-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="ratings-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+s(l(null!=(i=null!=t?t.styles:t)?i.dropMask:i,t))+'"></div>\r\n <div class="'+s(l(null!=(i=null!=t?t.styles:t)?i.dropContent:i,t))+'">\r\n <div class="'+s(l(null!=(i=null!=t?t.styles:t)?i.border:i,t))+'">\r\n <h1>'+s("function"==typeof(a=null!=(a=n.fileDropText||(null!=t?t.fileDropText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"fileDropText",hash:{},data:r}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+s(l(null!=(i=null!=t?t.styles:t)?i.dropArea:i,t))+'"></div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"multiple"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'accept="'+e.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=t?t.mimeType:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"mimeType",hash:{},data:r}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=t?t.acceptMultiple:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(a,null!=t?t.mimeType:t,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" />"},useData:!0})},function(e,t,n){e.exports=n(632).default},function(e,t,n){e.exports={svgContainer:"_1nWzn"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="add-new px-2 py-1 border-top">\r\n <span class="add-tag ignore-highlighting">\r\n <span class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"</span> "+s(l(null!=(i=null!=t?t.options:t)?i.createText:i,t))+" "+s("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:c)?a.call(u,{name:"type",hash:{},data:r}):a)+': \r\n </span>\r\n <span class="query-text">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+"</span>\r\n</div>>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.each.call(a,null!=t?t.buttons:t,{name:"each",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.spinnerButton:t,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return' <button type="'+u("function"==typeof(a=null!=(a=n.type||(null!=t?t.type:t))?a:s)?a.call(l,{name:"type",hash:{},data:r}):a)+'" class="'+u("function"==typeof(a=null!=(a=n.className||(null!=t?t.className:t))?a:s)?a.call(l,{name:"className",hash:{},data:r}):a)+'" '+(null!=(i=n.if.call(l,null!=t?t.close:t,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+u("function"==typeof(a=null!=(a=n.text||(null!=t?t.text:t))?a:s)?a.call(l,{name:"text",hash:{},data:r}):a)+"</button>\r\n"},3:function(e,t,n,o,r){return'data-dismiss="modal"'},5:function(e,t,n,o,r){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="modal-dialog '+u("function"==typeof(a=null!=(a=n.size||(null!=t?t.size:t))?a:s)?a.call(l,{name:"size",hash:{},data:r}):a)+'" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title">'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:s)?a.call(l,{name:"title",hash:{},data:r}):a)+'</h5>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n '+(null!=(i="function"==typeof(a=null!=(a=n.content||(null!=t?t.content:t))?a:s)?a.call(l,{name:"content",hash:{},data:r}):a)?i:"")+'\r\n </div>\r\n\r\n <div class="modal-footer">\r\n'+(null!=(i=n.if.call(l,null!=t?t.buttons:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.productionYear:i,t))},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-production-year">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,t,n,o,r){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))},7:function(e,t,n,o,r){return"disabled"},9:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.productionCompanies:i,t))},11:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-production-companies">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,t,n,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-production-company">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"newProductionCompany",{name:"lang",hash:{},data:r}))+"</p>\r\n"},15:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.distributors:i,t))},17:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-distributors">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},19:function(e,t,n,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-distributor">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"newDistributor",{name:"lang",hash:{},data:r}))+"</p>\r\n"},21:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.producers:i,t))},23:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-producers">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,t,n,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-producer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"newProducer",{name:"lang",hash:{},data:r}))+"</p>\r\n"},27:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.directors:i,t))},29:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-directors">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},31:function(e,t,n,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-director">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"newDirector",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n\r\n<div class="container-fluid p-0">\r\n <div class="row">\r\n <div class="form-group col-4 pr-0 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-production-year">'+s((n.lang||t&&t.lang||l).call(a,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="productionYear"\r\n type="number"\r\n class="form-control '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="edit-production-year"\r\n placeholder="'+s(u(null!=(i=null!=t?t.options:t)?i.productionYearPlaceholderText:i,t))+'"\r\n autocomplete="off"\r\n '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="production-company-search">\r\n '+s((n.lang||t&&t.lang||l).call(a,"productionCompanies",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.infoSvgContainer:i,t))+' info-tooltip" \r\n title="'+s((n.lang||t&&t.lang||l).call(a,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.infoSvg:i,t))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="production-company-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.allowAdditionalProductionCompany:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="distributor-search">\r\n '+s((n.lang||t&&t.lang||l).call(a,"distributors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.infoSvgContainer:i,t))+' info-tooltip"\r\n title="'+s((n.lang||t&&t.lang||l).call(a,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.infoSvg:i,t))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="distributor-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.allowAdditionalDistributor:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="producer-search">\r\n '+s((n.lang||t&&t.lang||l).call(a,"producers",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.infoSvgContainer:i,t))+' info-tooltip"\r\n title="'+s((n.lang||t&&t.lang||l).call(a,"producerInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.infoSvg:i,t))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="producers-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.allowAdditionalProducer:i,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="director-search">\r\n '+s((n.lang||t&&t.lang||l).call(a,"directors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.infoSvgContainer:i,t))+' info-tooltip"\r\n title="'+s((n.lang||t&&t.lang||l).call(a,"directorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.infoSvg:i,t))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="directors-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.allowAdditionalDirector:i,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"\r\n"+e.escapeExpression("function"==typeof(i=null!=(i=n.code||(null!=t?t.code:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"code",hash:{},data:r}):i)},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return' <label class="'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"rating",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"},2:function(e,t,n,o,r){return"d-inline-block"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-rating">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span><br>"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="text-muted mx-2 remove-rating '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRating:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:r}))+"</span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="edit-rating form-group '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectRating:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'">\r\n'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.hideHeaderText:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <div>\r\n <div class="ratings-region" name="rating"></div>\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showRemove:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="form-feedback"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seriesTitle:i,t))},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-series-title">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seasonNumber:i,t))},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-season-number">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},9:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.episodeNumber:i,t))},11:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-episode-number">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,t,n,o,r){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))},15:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-title">'+s((n.lang||t&&t.lang||l).call(a,"series",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="edit-series-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n\r\n <div class="form-group col-3 pr-0 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-season-number">'+s((n.lang||t&&t.lang||l).call(a,"season",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="edit-season-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n \r\n <div class="form-group col-3 pr-0 '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-episode-number">'+s((n.lang||t&&t.lang||l).call(a,"episode",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="episodeNumber"\r\n type="number"\r\n class="form-control episode-number '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="edit-episode-number"\r\n placeholder="'+s(e.lambda(null!=(i=null!=t?t.options:t)?i.episodeNumberPlaceholderText:i,t))+'"\r\n autocomplete="off"\r\n min="1"\r\n '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="edit-broadcast-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<span class="svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.clearSvg:i,t))+' clear-button">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svgClear:i,t))?i:"")+"</span>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <label for="'+l(a(null!=(i=null!=t?t.options:t)?i.modelAttr:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.label:i,t))+"</label>\r\n "+(null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-broadcast-date">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},4:function(e,t,n,o,r){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))},6:function(e,t,n,o,r){return"disabled"},8:function(e,t,n,o,r){return"cursor-pointer"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.datePicker:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.broadcastDate:i,t))+'">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.label:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <input\r\n name="'+l(a(null!=(i=null!=t?t.options:t)?i.modelAttr:i,t))+'"\r\n class="form-control datetimepicker-input '+l(a(null!=(i=null!=t?t.options:t)?i.instanceClass:i,t))+" "+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="'+l(a(null!=(i=null!=t?t.options:t)?i.modelAttr:i,t))+'"\r\n placeholder="'+l(a(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'"\r\n data-toggle="datetimepicker"\r\n data-target=".'+l(a(null!=(i=null!=t?t.options:t)?i.instanceClass:i,t))+'"\r\n autocomplete="off"\r\n '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n />\r\n <span class="clear-button-region clear-svg"></span>\r\n <span class="svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.calendarSvg:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svgCalendar:i,t))?i:"")+'</span>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-channel">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 px-0">\r\n <div class="date-broadcast-region"></div>\r\n </div>\r\n <div class="form-group col-6 pr-0 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.channel:i,t))+'">\r\n <label for="channel-search">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"channel",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="channel-search-region"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="form-group"> \r\n <div class="custom-control custom-checkbox">\r\n <input\r\n name="toggleBroadcast"\r\n type="checkbox"\r\n class="custom-control-input '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="toggle-broadcast"\r\n '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <label class="custom-control-label" for="toggle-broadcast">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"tv",{name:"lang",hash:{},data:r}))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,t,n,o,r){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))},4:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hideToggle:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="broadcast-region"></div>\r\n'},useData:!0})},function(e,t,n){e.exports={disabled:"_3TIct"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="form-group">\r\n <label for="edit-description">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'</label>\r\n <div class="text-area-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to admins and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return"autofocus"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<input\r\n name="'+l(a(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n type="text"\r\n class="form-control '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" "+l(a(null!=(i=null!=t?t.options:t)?i.additionalClasses:i,t))+'"\r\n id="'+l(a(null!=(i=null!=t?t.options:t)?i.inputId:i,t))+'"\r\n autocomplete="off"\r\n placeholder="'+l(a(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.autofocus:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n></input>\r\n<span class="svg-container mb-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svg:i,t))+' remove" style="display: none;">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svgRemove:i,t))?i:"")+"</span>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return'<button class="dropdown-toggle btn btn-light" type="button" id="bulkActions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"options",{name:"lang",hash:{},data:r}))+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.caretClass:i,t))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n </span>\r\n"},3:function(e,t,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="position-relative '+l(a(null!=(i=null!=t?t.options:t)?i.itemClass:i,t))+'">\r\n <a class="'+l(a(null!=(i=null!=t?t.options:t)?i.anchorClass:i,t))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showCaret:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <span class="'+l(a(null!=(i=null!=t?t.options:t)?i.textStyle:i,t))+" ui-text "+l(a(null!=(i=null!=t?t.options:t)?i.extraClasses:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.text:i,t))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=(i=null!=t?t.options:t)?i.children:i)?i.length:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return"ClickView "+a(e.lambda(null!=(i=null!=t?t.options:t)?i.currentYear:i,t))+" | "+a((n.lang||t&&t.lang||s).call(l,"footer",{name:"lang",hash:{},data:r}))+" | "+a((n.lang||t&&t.lang||s).call(l,"version",{name:"lang",hash:{version:null!=(i=null!=t?t.options:t)?i.version:i},data:r}))},useData:!0})},function(e,t,n){e.exports={columnNames:"_1N_VT",seriesContainer:"_4pk2s",icon:"_3SoBV",citationValues:"_1nYZg"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="position-relative">\r\n <h5 class="d-inline-block">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"basicInfo",{name:"lang",hash:{},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showPublisherVideoDetails:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a class="float-right cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.publisherArchiveSvg:i,t))?i:"")+"</span> "+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"videoTitle",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(s,{name:"name",hash:{},data:r}):a)+"</p>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seriesContainer:i,t))+'"><div class="series-region"></div></div>\r\n'},8:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+l(a(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'" title="'+l(a(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+l(a(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span></p>\r\n"},10:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <div class="col-3 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9">\r\n <div class="description-region"></div>\r\n </div>\r\n'},12:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l("function"==typeof(a=null!=(a=n.productionYear||(null!=t?t.productionYear:t))?a:u)?a.call(s,{name:"productionYear",hash:{},data:r}):a)+"</p>\r\n"},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"producers",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.producers:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},15:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\r\n"},17:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"directors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.directors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},19:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"productionCompanies",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.productionCompanies:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},21:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"distributors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.distributors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},23:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.channel:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:""},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'\r\n <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"channel",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l(a(null!=(i=null!=t?t.channel:t)?i.name:i,t))+"</p>\r\n "},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l(a(null!=(i=null!=t?t.options:t)?i.broadcastDate:i,t))+"</p>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l(a(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row mb-0">\r\n'+(null!=(i=n.if.call(a,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.series:t)?i.name:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.producers:t)?i.length:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.directors:t)?i.length:i,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.productionCompanies:t)?i.length:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.distributors:t)?i.length:i,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.channel:t)?i.name:i,{name:"if",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h1 class="text-white position-absolute m-0">\r\n '+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'\r\n</h1>\r\n<div class="options-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-6 form-group">\r\n <label class="d-block" for="'+l(a(null!=(i=null!=t?t.options:t)?i.timeId:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"startTimeLabel",{name:"lang",hash:{},data:r}))+'</label>\r\n <input\r\n class="form-control d-inline-block col-3 time-input hour-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||u).call(s,"hoursPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n name="hours"\r\n autocomplete="off"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hrDisabled:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'> <b>:</b>\r\n <input\r\n class="form-control d-inline-block col-3 time-input minute-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||u).call(s,"minutesPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n name="minutes"\r\n autocomplete="off"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.minDisabled:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'> <b>:</b>\r\n <input\r\n class="form-control d-inline-block col-3 time-input second-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||u).call(s,"secondsPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n name="seconds"\r\n id="'+l(a(null!=(i=null!=t?t.options:t)?i.timeId:i,t))+'"\r\n autocomplete="off"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.secDisabled:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},2:function(e,t,n,o,r){return"disabled"},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <button type="submit" class="btn btn-primary btn-sm ml-2">\r\n <span class="d-inline-block align-middle svg-container">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.plusSvg:i,t))?i:"")+'</span>\r\n <span class="align-middle">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"add",{name:"lang",hash:{},data:r}))+"</span>\r\n </button>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <button type="submit" class="btn btn-primary btn-sm ml-2">'+l((n.lang||t&&t.lang||a).call(i,"save",{name:"lang",hash:{},data:r}))+'</button>\r\n <button type="button" class="btn btn-secondary btn-sm cancel ml-2">'+l((n.lang||t&&t.lang||a).call(i,"cancel",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="row">\r\n <div class="col-6 form-group">\r\n <label for="'+l(a(null!=(i=null!=t?t.options:t)?i.chapterId:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"nameLabel",{name:"lang",hash:{},data:r}))+'</label>\r\n <input type="text" class="form-control chapter-name" name="name" id="'+l(a(null!=(i=null!=t?t.options:t)?i.chapterId:i,t))+'" placeholder="'+l((n.lang||t&&t.lang||u).call(s,"namePlaceholder",{name:"lang",hash:{},data:r}))+'" autofocus autocomplete="off">\r\n <div class="form-feedback"></div>\r\n </div>\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.enabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="row">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.creating:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.editing:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.loading:i,t))},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-2 text-right">\r\n <a class="action edit-chapter my-2 svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' d-inline-block text-muted"\r\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"edit",{name:"lang",hash:{},data:r}))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.allowDelete:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a class="action delete-chapter my-2 svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' d-inline-block text-muted"\r\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"delete",{name:"lang",hash:{},data:r}))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.deleteSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{},s=e.lambda,u=e.escapeExpression;return'<div class="row mx-0 border-top chapter-item '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.loading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <div class="clickable-seek col-1">\r\n <p class="m-0 py-2">'+u(s(null!=(i=null!=t?t.options:t)?i.index:i,t))+'</p>\r\n </div>\r\n <div class="clickable-seek col-6">\r\n <p class="m-0 py-2">'+u("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+'</p>\r\n </div>\r\n <div class="clickable-seek col-3 text-right">\r\n <p class="m-0 py-2">'+u(s(null!=(i=null!=t?t.options:t)?i.time:i,t))+"</p>\r\n </div>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showActions:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="edit-form-region"></div>\r\n'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<h5>"+l((n.lang||t&&t.lang||a).call(i,"chapters",{name:"lang",hash:{},data:r}))+'</h5>\r\n<div class="row mt-3 m-0 border-bottom">\r\n <div class="col-1">\r\n <label>#</label>\r\n </div>\r\n <div class="col-6">\r\n <label>'+l((n.lang||t&&t.lang||a).call(i,"nameLabel",{name:"lang",hash:{},data:r}))+'</label>\r\n </div>\r\n <div class="col-3 text-right">\r\n <label>'+l((n.lang||t&&t.lang||a).call(i,"startLabel",{name:"lang",hash:{},data:r}))+'</>\r\n </div>\r\n</div>\r\n<div class="chapter-list-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.progress:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:""},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <span class="m-3 text-muted">'+a(e.lambda(null!=(i=null!=t?t.options:t)?i.progress:i,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:r}))+"</p>\r\n"},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.failed:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:""},5:function(e,t,n,o,r){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:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return"<h4>"+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.componentOptions:i)?i.heading:i,t))+"</h4>\r\n<p>"+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.componentOptions:i)?i.line1:i,t))+"</p>\r\n<p>"+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.componentOptions:i)?i.line2:i,t))+'</p>\r\n<div class="btn-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.processing:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(4,r,0),data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={btn:"_59zg9"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"label",{name:"lang",hash:{},data:r}))+"</h5>\r\n"},3:function(e,t,n,o,r){return"my-2"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return' <div class="text-muted mt-3 mb-1"><em>'+s((n.lang||t&&t.lang||l).call(a,"recommendedSize",{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:r}))+'</em></div>\r\n <button class="upload-thumbnail btn btn-light mb-3 w-100">'+s((n.lang||t&&t.lang||l).call(a,"upload",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="thumbnail-region"></div>\r\n<div class="'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headerText:i,t))+"</h5>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>\r\n"},5:function(e,t,n,o,r){return'<div class="tag-selector-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.headerText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="tag-list-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="text-muted mx-2 undo '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.undo:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"undo",{name:"lang",hash:{},data:r}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.allowUndo:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="save-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"mb-4"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <p class="mb-2 py-1 px-2 alert alert-info '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isExchange:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.program(6,r,0),data:r}))?i:"")+" </p>\r\n"},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEditExchange",{name:"lang",hash:{classNames:null!=(i=null!=t?t.options:t)?i.suggestEditClasses:i},data:r}))?i:"")+"\r\n"},6:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{classNames:null!=(i=null!=t?t.options:t)?i.suggestEditClasses:i},data:r}))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="row">\r\n <div class="left-pane col-4">\r\n <div class="thumbnail-region"></div>\r\n <div class="cv-tags-region '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n <div class="customer-tags-region"></div>\r\n </div>\r\n <div class="right-pane col-8">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="top-save-region"></div>\r\n <div class="basic-info-region mb-4"></div> \r\n <div class="additional-details-region mb-4"></div> \r\n <div class="production-info-region mb-4"></div> \r\n <div class="fields-region mb-4"></div>\r\n <div class="bottom-save-region"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={suggestEdit:"_1X4l5"}},function(e,t,n){e.exports={svgContainer:"_27gR6"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row">\r\n <h4>\r\n <a class="d-inline-flex align-items-center '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.link:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.backTab:i)?i.link:i,t))+'">\r\n <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' d-inline-block mx-2">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.backArrow:i,t))?i:"")+"</span>\r\n "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.backTab:i)?i.name:i,t))+'\r\n </a>\r\n </h4>\r\n</div>\r\n<div class="tabs-region pl-2"></div>'},useData:!0})},function(e,t,n){e.exports={link:"_5idZs",active:"_3Ty4M"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r,i,a){var l;e.propertyIsEnumerable;return null!=(l=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hide:t,{name:"unless",hash:{},fn:e.program(2,r,0,i,a),inverse:e.noop,data:r}))?l:""},2:function(e,t,n,o,r,i,a){e.propertyIsEnumerable;var l,s=e.lambda,u=e.escapeExpression;return' <a class="'+u(s(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.link:l,t))+" p-2 "+u(s(null!=t?t.link:t,t))+" "+(null!=(l=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.active:t,{name:"if",hash:{},fn:e.program(3,r,0,i,a),inverse:e.noop,data:r}))?l:"")+'">'+u(s(null!=t?t.name:t,t))+"</a>\r\n"},3:function(e,t,n,o,r,i,a){var l;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.active:l,t))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r,i,a){var l;e.propertyIsEnumerable;return null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=(l=null!=t?t.options:t)?l.tabs:l,{name:"each",hash:{},fn:e.program(1,r,0,i,a),inverse:e.noop,data:r}))?l:""},useData:!0,useDepths:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression;return'<div class="'+l("function"==typeof(a=null!=(a=n.dropMask||(null!=t?t.dropMask:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"dropMask",hash:{},data:r}):a)+'">\r\n <h3>'+l(e.lambda(null!=(i=null!=t?t.options:t)?i.fileDropText:i,t))+"</h3>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<p class="alert alert-warning col-8 mb-0">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.limitText:i,t))+"</p>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="file-drop '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.fileDrop:i,t))+" p-2"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.limitText:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <button class="browse btn btn-secondary mr-2">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"browse",{name:"lang",hash:{},data:r}))+'</button>\r\n <span class="text-muted align-middle">'+l(a(null!=(i=null!=t?t.options:t)?i.alternateText:i,t))+"</span>\r\n</div>\r\n"},4:function(e,t,n,o,r){return" col-6 "},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return"<h5>"+l(a(null!=(i=null!=t?t.options:t)?i.title:i,t))+"</h5>\r\n<p>"+l(a(null!=(i=null!=t?t.options:t)?i.description:i,t))+"</p>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.limitText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<span class="d-inline-block align-middle mr-2 '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' float-right text-success">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.tickSvg:i,t))?i:"")+"</span>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<span class="d-inline-block align-middle mr-2 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' close float-right">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<span class="d-inline-block align-middle mr-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<span class="align-middle">\r\n '+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+"\r\n</span>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.finished:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'\r\n<div class="progress my-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progress:i,t))+' mt-2">\r\n <div class="progress-bar bg-info" style="width: '+s("function"==typeof(a=null!=(a=n.progress||(null!=t?t.progress:t))?a:c)?a.call(u,{name:"progress",hash:{},data:r}):a)+'%" aria-valuenow="'+s("function"==typeof(a=null!=(a=n.progress||(null!=t?t.progress:t))?a:c)?a.call(u,{name:"progress",hash:{},data:r}):a)+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={svgContainer:"_3LHs_",progress:"_30D9s"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="items-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.dropdownClass:i,t))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hasActions:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+l((n.lang||t&&t.lang||a).call(i,"name",{name:"lang",hash:{},data:r}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+l((n.lang||t&&t.lang||a).call(i,"namePlaceholder",{name:"lang",hash:{},data:r}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,o,r){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:r}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</form>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return'<form>\r\n <div class="form-group">\r\n <label for="language">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"label",{name:"lang",hash:{},data:r}))+'</label>\r\n <div class="typahead-region"></div>\r\n </div>\r\n</form>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selected:i,t))},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.caret:i,t))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.caretSvg:i,t))?i:"")+"\r\n </span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="position-relative border-bottom '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.library:i,t))+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <a class="position-relative library-event '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.libraryAnchor:i,t))+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.open:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' ui-anchor no-hover-text-underline">\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.hasFolders:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' <span class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+' ui-text">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:r}):a)+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n<div class="folders-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.dropdownClass:i,t))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<button class="dropdown-toggle form-control text-left cursor-pointer" type="button" id="sortSelectButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="subfolders-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="rounded p-2 text-dark position-relative ui-block '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderBlock:i,t))+'">\r\n <a class="text-dark text-truncate d-block pr-4 font-weight-bold '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folder:i,t))+'" title="'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+'">\r\n <span class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderIcon:i,t))+' d-inline-block position-absolute">\r\n '+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n </span>\r\n "+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+'\r\n </a>\r\n <span class="actions-region"></div>\r\n</div>\r\n'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'<span class="close cursor-pointer" aria-hidden="true">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.removable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={disabled:"_3Vziu"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block ml-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+l(a(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return'<div class="d-inline-flex align-items-center">\r\n <h4 class="d-inline-block mb-0">'+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+"</h4>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="video-actions-region d-inline-block"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"pl-2"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="d-inline-flex justify-content-start">\r\n <div class="check-all-region d-inline-flex align-items-center"></div>\r\n <div class="bulk-actions-region"></div>\r\n <div class="breadcrumbs-region d-inline-flex align-items-center '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showBulkActions:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n</div>\r\n<div class="sorting-region"></div>\r\n'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.resourcesHeadingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="resource-list-region"></div>'},useData:!0})},function(e,t,n){e.exports={svgContainer:"_uEVJ",actionSvg:"_1oLg0"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a class="float-right '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\r\n<a class="float-right '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<span title="'+s(l(null!=(i=null!=t?t.options:t)?i.resourceType:i,t))+'" class="d-inline-block align-middle mr-2 '+s(l(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<a href="'+s("function"==typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:c)?a.call(u,{name:"url",hash:{},data:r}):a)+"?name="+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+'" class="align-middle">\r\n '+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+"\r\n</a>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <span class="badge p-1 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.folders:i},data:r}))+'</h5>\r\n <div class="folders-region"></div>\r\n </div>\r\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;return' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</h5>\r\n <div class="tags-region"></div>\r\n </div>\r\n'},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <div class="mt-3">\r\n <h5>'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:r}))+"</h5>\r\n <p>"+a(e.lambda(null!=(i=null!=t?t.options:t)?i.links:i,t))+"</p>\r\n </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="border-right h-100 pl-2 pr-3">\r\n <div class="video-preview-region"></div>\r\n <div class="mt-3">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.folders:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.tags:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){e.exports={interactive:"cAujD"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a class="float-right '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<span class="d-inline-block align-middle mr-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<a href="'+s("function"==typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:e.hooks.helperMissing)?a.call(u,{name:"url",hash:{},data:r}):a)+"?name="+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'" class="align-middle">\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n</a>\r\n"+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.isClickViewContent:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={svgContainer:"_1VUhp",actionSvg:"_3cODR"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headerText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="subtitles-list-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folder:i,t))+'"\r\n style="background-image: url(\''+s(l(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression;return'<img src="'+l("function"==typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:r}):a)+'" class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'"/>\r\n'},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a class="d-inline-flex align-items-center no-decoration '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.addCrest:i,t))+'" href="'+l(a(null!=(i=null!=t?t.options:t)?i.uploadLogoUrl:i,t))+'" target="_blank">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"crest",{name:"lang",hash:{},data:r}))+"\r\n</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.url:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=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!=(i=null!=t?t.options:t)?i.metadataType:i},data:r}))+'</p>\r\n<p class="mb-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metadataValue:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.metadataValue:i,t))?i:"")+"</p>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.suggestionPlaceholder:i,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,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.isOtherType:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\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">'+s((n.lang||t&&t.lang||l).call(a,"suggestionSubheading",{name:"lang",hash:{},data:r}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.useRatingSelect:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+s((n.lang||t&&t.lang||l).call(a,"reasoningSubheading",{name:"lang",hash:{},data:r}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+s((n.lang||t&&t.lang||l).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={metadataValue:"_3nkrW"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="thumbnail-region"></div>\r\n<div class="dropdown-divider"></div>\r\n<div class="banner-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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:r}))+"\r\n"},3:function(e,t,n,o,r){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:r}))+"\r\n"},5:function(e,t,n,o,r){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:r}))+" "+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,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<h6 class="mb-0">'+s((n.lang||t&&t.lang||l).call(a,"edit",{name:"lang",hash:{},data:r}))+" "+s(u(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,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' </em>\r\n</div>\r\n<div class="my-1 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageContainer:i,t))+'">\r\n <div class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageElement:i,t))+'" style="background-image: url(\''+s(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'\')"></div>\r\n</div>\r\n<button class="btn btn-light my-1">'+s((n.lang||t&&t.lang||l).call(a,"upload",{name:"lang",hash:{},data:r}))+" "+s(u(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,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<p class="alert alert-warning col-8">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"limit",{name:"lang",hash:{limit:null!=(i=null!=t?t.options:t)?i.limit:i},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((n.lang||t&&t.lang||a).call(i,"subheading",{name:"lang",hash:{},data:r}))+'</p>\r\n<div class="form-group mb-1">\r\n <label for="url">'+l((n.lang||t&&t.lang||a).call(i,"urlLabel",{name:"lang",hash:{},data:r}))+'</label>\r\n <input name="url" id="url" class="form-control" type="text" placeholder="'+l((n.lang||t&&t.lang||a).call(i,"urlPlaceholder",{name:"lang",hash:{},data:r}))+'">\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="form-group mb-1" id="name-container" style="display: none;">\r\n <input type="text" class="form-control" name="name" placeholder="'+l((n.lang||t&&t.lang||a).call(i,"namePlaceholder",{name:"lang",hash:{},data:r}))+'">\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="attach-btn-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h5 class="pt-2">Resource Links</h5>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hide:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a class="float-right '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\r\n<a class="float-right '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<span class="d-inline-block align-middle mr-2 icon-blue '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.linkSvg:i,t))?i:"")+'</span>\r\n<a href="'+s("function"==typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:c)?a.call(u,{name:"url",hash:{},data:r}):a)+'" target="_blank" class="align-middle info-link">\r\n '+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+"\r\n</a>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={svgContainer:"_3T40U",actionSvg:"_3FRzz"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="links-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.extraTagsText:i,t))+"</a>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="info-link applink-video-details">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.moreTags:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return' <div class="description-region"></div>\r\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-6 pb-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+l(a(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+'" title="'+l(a(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+l(a(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\r\n </div>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-6 py-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l("function"==typeof(a=null!=(a=n.productionYear||(null!=t?t.productionYear:t))?a:u)?a.call(s,{name:"productionYear",hash:{},data:r}):a)+"</p>\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+l(a(null!=(i=null!=t?t.options:t)?i.chapters:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},10:function(e,t,n,o,r){return"applink-video-details"},12:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'"\r\n target="_blank"\r\n'},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.smallSvgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>"},16:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-6 py-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactives",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l(a(null!=(i=null!=t?t.options:t)?i.interactives:i,t))+"</p>\r\n"},18:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-6 py-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l(a(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},20:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+l(a(null!=(i=null!=t?t.options:t)?i.resources:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},22:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+l(a(null!=(i=null!=t?t.options:t)?i.links:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <div class="py-1 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12"> </div>\r\n'},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a href="'+l(a(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'" target="_blank" class="info-link d-inline-block pt-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:r}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>\r\n </a>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="content-container-region row w-100 pl-0">\r\n <div class="col-8 border-right pt-3">\r\n <p class="text-uppercase text-muted '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"description",{name:"lang",hash:{},data:r}))+"</p>\r\n \r\n"+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' \r\n <div class="video-preview-region col-7 my-3 pl-0"></div>\r\n </div>\r\n <div class="col-4 my-3 pr-0 pl-3">\r\n <p class="text-uppercase text-muted '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"details",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="col-6 py-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||u).call(s,"duration",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</p>\r\n\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.chapters:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.interactives:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showTags:i,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.program(28,r,0),data:r}))?i:"")+" </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="video-player-region cursor-pointer responsize-img">\r\n <div class="thumbnail-region"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div\r\n class="cursor-pointer mx-2"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+l(a(null!=(i=null!=t?t.options:t)?i.avatar:i,t))+'\')">\r\n  \r\n </div>\r\n <div class="d-inline-block svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.arrow:i,t))+'">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.arrowSvg:i,t))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(e,t,n){e.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="dropdown-item '+s(l(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'">\r\n <div class="m-0 '+s(l(null!=(i=null!=t?t.options:t)?i.displayName:i,t))+'"><strong>'+s("function"==typeof(a=null!=(a=n.displayName||(null!=t?t.displayName:t))?a:c)?a.call(u,{name:"displayName",hash:{},data:r}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+s("function"==typeof(a=null!=(a=n.customerName||(null!=t?t.customerName:t))?a:c)?a.call(u,{name:"customerName",hash:{},data:r}):a)+'</div>\r\n</div>\r\n<div class="dropdown-divider"></div>\r\n<div class="items-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"text-danger "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.errorMargin:i,t))},3:function(e,t,n,o,r){return"mr-3"},5:function(e,t,n,o,r){return"text-danger"},7:function(e,t,n,o,r){return"text-muted"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+l(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'%" aria-valuenow="'+l(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.isDone:i,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+' <span class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hiddenCancel:i,t))+'" title="'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:r}))+'">×</span>\r\n'},12:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+s((n.lang||t&&t.lang||l).call(a,"retryProcessing",{name:"lang",hash:{},data:r}))+'">'+s((n.lang||t&&t.lang||l).call(a,"retry",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="'+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.cancel:i,t))+' align-middle" title="'+s((n.lang||t&&t.lang||l).call(a,"cancel",{name:"lang",hash:{},data:r}))+'">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'">\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+' progress-text">'+s(l(null!=(i=null!=t?t.options:t)?i.status:i,t))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.program(14,r,0),data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploadProgress",{name:"lang",hash:{},data:r}))+'</h5>\r\n<div class="upload-progress-region"></div>\r\n<div class="processing-progress-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<span class="d-inline-block h-100 position-relative pb-1">\r\n <div class="progress-info-region" data-toggle="dropdown"></div>\r\n <div class="progress-summary-region dropdown-menu dropdown-menu-right dropdown-arrow '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressDropdown:i,t))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.upload:i,t))+'"><span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.uploadButtonSvg:i,t))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.uploadSvg:i,t))?i:"")+"</span>"+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"upload",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hasLibraries:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.items:t,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.itemCount:i,t))+'">'+l("function"==typeof(a=null!=(a=n.items||(null!=t?t.items:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"items",hash:{},data:r}):a)+"</span>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hasErrors:t,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(4,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a class="navbar-brand text-hide align-top '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.logoContainer:i,t))+' d-inline-block" href="/">\r\n <svg viewBox="0 0 434 71">\r\n <g>\r\n <path fill="#FFFFFF" d="M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"/>\r\n <path fill="#F8981D" d="M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"/>\r\n </g>\r\n </svg>\r\n</a>\r\n<div class="w-100 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBarContainer:i,t))+'">\r\n <div class="search-bar-region container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionButtons:i,t))+'">\r\n <div class="upload-region"></div>\r\n <div class="notifications-region"></div>\r\n <div class="user-options-region"></div>\r\n</div>\r\n\r\n'},useData:!0})},function(e,t,n){e.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\r\n <span class="svg-container">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((n.lang||t&&t.lang||l).call(a,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(i=(n.lang||t&&t.lang||l).call(a,"manageAccess",{name:"lang",hash:{},data:r}))?i:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'"> \r\n <span class="svg-container">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span> \r\n "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||l).call(a,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div> "},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-sm btn-secondary" type="button">'+s((n.lang||t&&t.lang||l).call(a,"manageAccess",{name:"lang",hash:{},data:r}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\r\n <span class="svg-container">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\r\n "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||l).call(a,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return' <button class="btn btn-light retry">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"retry",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return"<div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>\r\n"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+l(a(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+"</a>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+l(a(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},3:function(e,t,n,o,r){var i;return' <span class="d-block pt-1">'+(null!=(i=e.lambda(t,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(i=n.each.call(a,null!=(i=null!=t?t.options:t)?i.keyPhrases:i,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={svgContainer:"_1CUEt",series:"oZx-K"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.series:i,t))},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seriesUrl:i,t))+'" target="_blank"'},5:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.seasonNumber:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+" E"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.episodeNumber:i,t))+"\r\n"},6:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" S"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seasonNumber:i,t))+" •"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<a class="series-applink text-muted '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.styleUppercase:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.seriesUrl:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">\r\n "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.seriesName:i,t))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.episodeNumber:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"</a>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(l(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):a)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(l(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.linkToOnline:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<span class="d-inline-block ml-1 tool-tip '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+l(a(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lockSvgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},3:function(e,t,n,o,r){return"text-danger"},5:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.status:i,t))+"\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"waiting",{name:"lang",hash:{},data:r}))+"\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;return" <br><i>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:r}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+"</a>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="processing '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(l(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):a)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(l(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+'" title="'+l(a(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(l(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:r}):a)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(l(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="badges-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sourceLabel:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.folderCount:i},data:r}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hideLabel:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.folders:i,t))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <span class="badge p-1 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="badge p-1 tool-tip '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+" "+l(a(null!=(i=null!=t?t.options:t)?i.ratingColorClass:i,t))+'" title="'+l(a(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+l(a(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Subtitles">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.closeCaptionSvg:i,t))?i:"")+"</span>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Resources">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.resourcesSvg:i,t))?i:"")+"</span>\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="badge p-1 '+l(a(null!=(i=null!=t?t.options:t)?i.awaitingReviewBadgeClass:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,t))+"</span>\r\n"},11:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="badge p-1 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.restrictionBadgeClass:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badgesWrapper:i,t))+'">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.bulkPlaceholder:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n'},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkPlaceholder:i,t))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoItem:i,t))+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="thumbnail-region d-inline-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metaContainer:i,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionsContainer:i,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.previewContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.descriptionWrapper:i,t))+'">\r\n <p class="description '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+"</p>\r\n </div>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return(null!=(i=a(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showMoreEllipsis:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">... '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showMore",{name:"lang",hash:{},data:r}))+"</span>"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return(null!=(i=a(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.singleEllipsis:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">...</span>'},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <p class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.truncate:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(6,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression;return' <span class="align-middle mr-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionName:i,t))+" "+s(l(null!=(i=null!=t?t.options:t)?i.additionalClassName:i,t))+'">'+s("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):a)+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{};return' <span class="d-inline-block align-middle '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+s(l(null!=(i=null!=t?t.options:t)?i.additionalClassName:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.svg||(null!=t?t.svg:t))?a:e.hooks.helperMissing)?a.call(u,{name:"svg",hash:{},data:r}):a)?i:"")+"</span>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.showLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="actions-region d-inline-block"></div>\r\n<span class="d-inline-block">\r\n <span data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="ui-more d-inline-block ui-dropdown-toggle align-middle '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' cursor-pointer d-inline-block">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.moreSvg:i,t))?i:"")+'</span>\r\n <div class="more-actions-region"></div>\r\n</span>\r\n'},useData:!0})},function(e,t,n){
|
|
2
|
-
/*!
|
|
3
|
-
* Cropper.js v1.5.3
|
|
4
|
-
* https://fengyuanchen.github.io/cropperjs
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2015-present Chen Fengyuan
|
|
7
|
-
* Released under the MIT license
|
|
8
|
-
*
|
|
9
|
-
* Date: 2019-07-10T12:07:44.557Z
|
|
10
|
-
*/
|
|
11
|
-
e.exports=function(){"use strict";function e(t){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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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 o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r="undefined"!=typeof window,i=r?window:{},a=!!r&&"ontouchstart"in i.document.documentElement,l=!!r&&"PointerEvent"in i,s="".concat("cropper","-crop"),u="".concat("cropper","-disabled"),c="".concat("cropper","-hidden"),p="".concat("cropper","-hide"),f="".concat("cropper","-invisible"),h="".concat("cropper","-modal"),d="".concat("cropper","-move"),y="".concat("cropper","Action"),g="".concat("cropper","Preview"),m=a?"touchstart":"mousedown",b=a?"touchmove":"mousemove",v=a?"touchend touchcancel":"mouseup",w=l?"pointerdown":m,S=l?"pointermove":b,k=l?"pointerup pointercancel":v,O=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,C=/^data:image\/jpeg;base64,/,E=/^img|canvas$/i,_={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},T=Number.isNaN||i.isNaN;function P(e){return"number"==typeof e&&!T(e)}var x=function(e){return e>0&&e<1/0};function I(e){return void 0===e}function L(t){return"object"===e(t)&&null!==t}var j=Object.prototype.hasOwnProperty;function R(e){if(!L(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&j.call(n,"isPrototypeOf")}catch(e){return!1}}function D(e){return"function"==typeof e}var N=Array.prototype.slice;function A(e){return Array.from?Array.from(e):N.call(e)}function M(e,t){return e&&D(t)&&(Array.isArray(e)||P(e.length)?A(e).forEach((function(n,o){t.call(e,n,o,e)})):L(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var V=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return L(e)&&n.length>0&&n.forEach((function(t){L(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},U=/\.\d*(?:0|9){12}\d*$/;function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return U.test(e)?Math.round(e*t)/t:e}var B=/^width|height|left|top|marginLeft|marginTop$/;function H(e,t){var n=e.style;M(t,(function(e,t){B.test(t)&&P(e)&&(e="".concat(e,"px")),n[t]=e}))}function W(e,t){if(t)if(P(e.length))M(e,(function(e){W(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function z(e,t){t&&(P(e.length)?M(e,(function(e){z(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function q(e,t,n){t&&(P(e.length)?M(e,(function(e){q(e,t,n)})):n?W(e,t):z(e,t))}var G=/([a-z\d])([A-Z])/g;function Y(e){return e.replace(G,"$1-$2").toLowerCase()}function J(e,t){return L(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Y(t)))}function K(e,t,n){L(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Y(t)),n)}var Q=/\s\s*/,Z=function(){var e=!1;if(r){var t=!1,n=function(){},o=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});i.addEventListener("test",n,o),i.removeEventListener("test",n,o)}return e}();function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(Q).forEach((function(t){if(!Z){var i=e.listeners;i&&i[t]&&i[t][n]&&(r=i[t][n],delete i[t][n],0===Object.keys(i[t]).length&&delete i[t],0===Object.keys(i).length&&delete e.listeners)}e.removeEventListener(t,r,o)}))}function X(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(Q).forEach((function(t){if(o.once&&!Z){var i=e.listeners,a=void 0===i?{}:i;r=function(){delete a[t][n],e.removeEventListener(t,r,o);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];n.apply(e,l)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],o),a[t][n]=r,e.listeners=a}e.addEventListener(t,r,o)}))}function ee(e,t,n){var o;return D(Event)&&D(CustomEvent)?o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(o)}function te(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ne=i.location,oe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function re(e){var t=e.match(oe);return null!==t&&(t[1]!==ne.protocol||t[2]!==ne.hostname||t[3]!==ne.port)}function ie(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function ae(e){var t=e.rotate,n=e.scaleX,o=e.scaleY,r=e.translateX,i=e.translateY,a=[];P(r)&&0!==r&&a.push("translateX(".concat(r,"px)")),P(i)&&0!==i&&a.push("translateY(".concat(i,"px)")),P(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),P(n)&&1!==n&&a.push("scaleX(".concat(n,")")),P(o)&&1!==o&&a.push("scaleY(".concat(o,")"));var l=a.length?a.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function le(e,t){var n=e.pageX,o=e.pageY,r={endX:n,endY:o};return t?r:V({startX:n,startY:o},r)}function se(e){var t=e.aspectRatio,n=e.height,o=e.width,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",i=x(o),a=x(n);if(i&&a){var l=n*t;"contain"===r&&l>o||"cover"===r&&l<o?n=o/t:o=n*t}else i?n=o/t:a&&(o=n*t);return{width:o,height:n}}function ue(e,t,n,r){var i=t.aspectRatio,a=t.naturalWidth,l=t.naturalHeight,s=t.rotate,u=void 0===s?0:s,c=t.scaleX,p=void 0===c?1:c,f=t.scaleY,h=void 0===f?1:f,d=n.aspectRatio,y=n.naturalWidth,g=n.naturalHeight,m=r.fillColor,b=void 0===m?"transparent":m,v=r.imageSmoothingEnabled,w=void 0===v||v,S=r.imageSmoothingQuality,k=void 0===S?"low":S,O=r.maxWidth,C=void 0===O?1/0:O,E=r.maxHeight,_=void 0===E?1/0:E,T=r.minWidth,P=void 0===T?0:T,x=r.minHeight,I=void 0===x?0:x,L=document.createElement("canvas"),j=L.getContext("2d"),R=se({aspectRatio:d,width:C,height:_}),D=se({aspectRatio:d,width:P,height:I},"cover"),N=Math.min(R.width,Math.max(D.width,y)),A=Math.min(R.height,Math.max(D.height,g)),M=se({aspectRatio:i,width:C,height:_}),V=se({aspectRatio:i,width:P,height:I},"cover"),U=Math.min(M.width,Math.max(V.width,a)),B=Math.min(M.height,Math.max(V.height,l)),H=[-U/2,-B/2,U,B];return L.width=F(N),L.height=F(A),j.fillStyle=b,j.fillRect(0,0,N,A),j.save(),j.translate(N/2,A/2),j.rotate(u*Math.PI/180),j.scale(p,h),j.imageSmoothingEnabled=w,j.imageSmoothingQuality=k,j.drawImage.apply(j,[e].concat(o(H.map((function(e){return Math.floor(F(e))}))))),j.restore(),L}var ce=String.fromCharCode,pe=/^data:.*,/;function fe(e){var t,n=new DataView(e);try{var o,r,i;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,l=2;l+1<a;){if(255===n.getUint8(l)&&225===n.getUint8(l+1)){r=l;break}l+=1}if(r){var s=r+10;if("Exif"===function(e,t,n){var o="";n+=t;for(var r=t;r<n;r+=1)o+=ce(e.getUint8(r));return o}(n,r+4,4)){var u=n.getUint16(s);if(((o=18761===u)||19789===u)&&42===n.getUint16(s+2,o)){var c=n.getUint32(s+4,o);c>=8&&(i=s+c)}}}if(i){var p,f,h=n.getUint16(i,o);for(f=0;f<h;f+=1)if(p=i+12*f+2,274===n.getUint16(p,o)){p+=8,t=n.getUint16(p,o),n.setUint16(p,1,o);break}}}catch(e){t=1}return t}var he={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,o=this.cropper;W(o,c),z(e,c);var r={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=r,H(o,{width:r.width,height:r.height}),W(e,c),z(o,c)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,o=Math.abs(t.rotate)%180==90,r=o?t.naturalHeight:t.naturalWidth,i=o?t.naturalWidth:t.naturalHeight,a=r/i,l=e.width,s=e.height;e.height*a>e.width?3===n?l=e.height*a:s=e.width/a:3===n?s=e.width/a:l=e.height*a;var u={aspectRatio:a,naturalWidth:r,naturalHeight:i,width:l,height:s};u.left=(e.width-l)/2,u.top=(e.height-s)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=V({},t),this.initialCanvasData=V({},u)},limitCanvas:function(e,t){var n=this.options,o=this.containerData,r=this.canvasData,i=this.cropBoxData,a=n.viewMode,l=r.aspectRatio,s=this.cropped&&i;if(e){var u=Number(n.minCanvasWidth)||0,c=Number(n.minCanvasHeight)||0;a>1?(u=Math.max(u,o.width),c=Math.max(c,o.height),3===a&&(c*l>u?u=c*l:c=u/l)):a>0&&(u?u=Math.max(u,s?i.width:0):c?c=Math.max(c,s?i.height:0):s&&(u=i.width,(c=i.height)*l>u?u=c*l:c=u/l));var p=se({aspectRatio:l,width:u,height:c});u=p.width,c=p.height,r.minWidth=u,r.minHeight=c,r.maxWidth=1/0,r.maxHeight=1/0}if(t)if(a>(s?0:1)){var f=o.width-r.width,h=o.height-r.height;r.minLeft=Math.min(0,f),r.minTop=Math.min(0,h),r.maxLeft=Math.max(0,f),r.maxTop=Math.max(0,h),s&&this.limited&&(r.minLeft=Math.min(i.left,i.left+(i.width-r.width)),r.minTop=Math.min(i.top,i.top+(i.height-r.height)),r.maxLeft=i.left,r.maxTop=i.top,2===a&&(r.width>=o.width&&(r.minLeft=Math.min(0,f),r.maxLeft=Math.max(0,f)),r.height>=o.height&&(r.minTop=Math.min(0,h),r.maxTop=Math.max(0,h))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=o.width,r.maxTop=o.height},renderCanvas:function(e,t){var n=this.canvasData,o=this.imageData;if(t){var r=function(e){var t=e.width,n=e.height,o=e.degree;if(90==(o=Math.abs(o)%180))return{width:n,height:t};var r=o%90*Math.PI/180,i=Math.sin(r),a=Math.cos(r),l=t*a+n*i,s=t*i+n*a;return o>90?{width:s,height:l}:{width:l,height:s}}({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),i=r.width,a=r.height,l=n.width*(i/n.naturalWidth),s=n.height*(a/n.naturalHeight);n.left-=(l-n.width)/2,n.top-=(s-n.height)/2,n.width=l,n.height=s,n.aspectRatio=i/a,n.naturalWidth=i,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,H(this.canvas,V({width:n.width,height:n.height},ae({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,o=n.naturalWidth*(t.width/t.naturalWidth),r=n.naturalHeight*(t.height/t.naturalHeight);V(n,{width:o,height:r,left:(t.width-o)/2,top:(t.height-r)/2}),H(this.image,V({width:n.width,height:n.height},ae(V({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,o=Number(e.autoCropArea)||.8,r={width:t.width,height:t.height};n&&(t.height*n>t.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*o),r.height=Math.max(r.minHeight,r.height*o),r.left=t.left+(t.width-r.width)/2,r.top=t.top+(t.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=V({},r)},limitCropBox:function(e,t){var n=this.options,o=this.containerData,r=this.canvasData,i=this.cropBoxData,a=this.limited,l=n.aspectRatio;if(e){var s=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,c=a?Math.min(o.width,r.width,r.width+r.left,o.width-r.left):o.width,p=a?Math.min(o.height,r.height,r.height+r.top,o.height-r.top):o.height;s=Math.min(s,o.width),u=Math.min(u,o.height),l&&(s&&u?u*l>s?u=s/l:s=u*l:s?u=s/l:u&&(s=u*l),p*l>c?p=c/l:c=p*l),i.minWidth=Math.min(s,c),i.minHeight=Math.min(u,p),i.maxWidth=c,i.maxHeight=p}t&&(a?(i.minLeft=Math.max(0,r.left),i.minTop=Math.max(0,r.top),i.maxLeft=Math.min(o.width,r.left+r.width)-i.width,i.maxTop=Math.min(o.height,r.top+r.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=o.width-i.width,i.maxTop=o.height-i.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&K(this.face,y,n.width>=t.width&&n.height>=t.height?"move":"all"),H(this.cropBox,V({width:n.width,height:n.height},ae({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ee(this.element,"crop",this.getData())}},de={initPreview:function(){var e=this.crossOrigin,t=this.options.preview,n=e?this.crossOriginUrl:this.url,o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=n,this.viewBox.appendChild(o),this.viewBoxImage=o,t){var r=t;"string"==typeof t?r=this.element.ownerDocument.querySelectorAll(t):t.querySelector&&(r=[t]),this.previews=r,M(r,(function(t){var o=document.createElement("img");K(t,g,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(o.crossOrigin=e),o.src=n,o.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(o)}))}},resetPreview:function(){M(this.previews,(function(e){var t=J(e,g);H(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(L(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(Y(t)))}(e,g)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,o=n.width,r=n.height,i=e.width,a=e.height,l=n.left-t.left-e.left,s=n.top-t.top-e.top;this.cropped&&!this.disabled&&(H(this.viewBoxImage,V({width:i,height:a},ae(V({translateX:-l,translateY:-s},e)))),M(this.previews,(function(t){var n=J(t,g),u=n.width,c=n.height,p=u,f=c,h=1;o&&(f=r*(h=u/o)),r&&f>c&&(p=o*(h=c/r),f=c),H(t,{width:p,height:f}),H(t.getElementsByTagName("img")[0],V({width:i*h,height:a*h},ae(V({translateX:-l*h,translateY:-s*h},e))))})))}},ye={bind:function(){var e=this.element,t=this.options,n=this.cropper;D(t.cropstart)&&X(e,"cropstart",t.cropstart),D(t.cropmove)&&X(e,"cropmove",t.cropmove),D(t.cropend)&&X(e,"cropend",t.cropend),D(t.crop)&&X(e,"crop",t.crop),D(t.zoom)&&X(e,"zoom",t.zoom),X(n,w,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&X(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&X(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),X(e.ownerDocument,S,this.onCropMove=this.cropMove.bind(this)),X(e.ownerDocument,k,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&X(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;D(t.cropstart)&&$(e,"cropstart",t.cropstart),D(t.cropmove)&&$(e,"cropmove",t.cropmove),D(t.cropend)&&$(e,"cropend",t.cropend),D(t.crop)&&$(e,"crop",t.crop),D(t.zoom)&&$(e,"zoom",t.zoom),$(n,w,this.onCropStart),t.zoomable&&t.zoomOnWheel&&$(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&$(n,"dblclick",this.onDblclick),$(e.ownerDocument,S,this.onCropMove),$(e.ownerDocument,k,this.onCropEnd),t.responsive&&$(window,"resize",this.onResize)}},ge={resize:function(){var e=this.options,t=this.container,n=this.containerData,o=Number(e.minContainerWidth)||200,r=Number(e.minContainerHeight)||100;if(!(this.disabled||n.width<=o||n.height<=r)){var i,a,l=t.offsetWidth/n.width;1===l&&t.offsetHeight===n.height||(e.restore&&(i=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(M(i,(function(e,t){i[t]=e*l}))),this.setCropBoxData(M(a,(function(e,t){a[t]=e*l})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=s,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||P(t)&&1!==t||P(n)&&0!==n||e.ctrlKey)){var o,r=this.options,i=this.pointers;e.changedTouches?M(e.changedTouches,(function(e){i[e.identifier]=le(e)})):i[e.pointerId||0]=le(e),o=Object.keys(i).length>1&&r.zoomable&&r.zoomOnTouch?"zoom":J(e.target,y),O.test(o)&&!1!==ee(this.element,"cropstart",{originalEvent:e,action:o})&&(e.preventDefault(),this.action=o,this.cropping=!1,"crop"===o&&(this.cropping=!0,W(this.dragBox,h)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==ee(this.element,"cropmove",{originalEvent:e,action:t})&&(e.changedTouches?M(e.changedTouches,(function(e){V(n[e.identifier]||{},le(e,!0))})):V(n[e.pointerId||0]||{},le(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?M(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,q(this.dragBox,h,this.cropped&&this.options.modal)),ee(this.element,"cropend",{originalEvent:e,action:t}))}}},me={change:function(e){var t,n=this.options,o=this.canvasData,r=this.containerData,i=this.cropBoxData,a=this.pointers,l=this.action,s=n.aspectRatio,u=i.left,p=i.top,f=i.width,h=i.height,d=u+f,y=p+h,g=0,m=0,b=r.width,v=r.height,w=!0;!s&&e.shiftKey&&(s=f&&h?f/h:1),this.limited&&(g=i.minLeft,m=i.minTop,b=g+Math.min(r.width,o.width,o.left+o.width),v=m+Math.min(r.height,o.height,o.top+o.height));var S=a[Object.keys(a)[0]],k={x:S.endX-S.startX,y:S.endY-S.startY},O=function(e){switch(e){case"e":d+k.x>b&&(k.x=b-d);break;case"w":u+k.x<g&&(k.x=g-u);break;case"n":p+k.y<m&&(k.y=m-p);break;case"s":y+k.y>v&&(k.y=v-y)}};switch(l){case"all":u+=k.x,p+=k.y;break;case"e":if(k.x>=0&&(d>=b||s&&(p<=m||y>=v))){w=!1;break}O("e"),(f+=k.x)<0&&(l="w",u-=f=-f),s&&(h=f/s,p+=(i.height-h)/2);break;case"n":if(k.y<=0&&(p<=m||s&&(u<=g||d>=b))){w=!1;break}O("n"),h-=k.y,p+=k.y,h<0&&(l="s",p-=h=-h),s&&(f=h*s,u+=(i.width-f)/2);break;case"w":if(k.x<=0&&(u<=g||s&&(p<=m||y>=v))){w=!1;break}O("w"),f-=k.x,u+=k.x,f<0&&(l="e",u-=f=-f),s&&(h=f/s,p+=(i.height-h)/2);break;case"s":if(k.y>=0&&(y>=v||s&&(u<=g||d>=b))){w=!1;break}O("s"),(h+=k.y)<0&&(l="n",p-=h=-h),s&&(f=h*s,u+=(i.width-f)/2);break;case"ne":if(s){if(k.y<=0&&(p<=m||d>=b)){w=!1;break}O("n"),h-=k.y,p+=k.y,f=h*s}else O("n"),O("e"),k.x>=0?d<b?f+=k.x:k.y<=0&&p<=m&&(w=!1):f+=k.x,k.y<=0?p>m&&(h-=k.y,p+=k.y):(h-=k.y,p+=k.y);f<0&&h<0?(l="sw",p-=h=-h,u-=f=-f):f<0?(l="nw",u-=f=-f):h<0&&(l="se",p-=h=-h);break;case"nw":if(s){if(k.y<=0&&(p<=m||u<=g)){w=!1;break}O("n"),h-=k.y,p+=k.y,f=h*s,u+=i.width-f}else O("n"),O("w"),k.x<=0?u>g?(f-=k.x,u+=k.x):k.y<=0&&p<=m&&(w=!1):(f-=k.x,u+=k.x),k.y<=0?p>m&&(h-=k.y,p+=k.y):(h-=k.y,p+=k.y);f<0&&h<0?(l="se",p-=h=-h,u-=f=-f):f<0?(l="ne",u-=f=-f):h<0&&(l="sw",p-=h=-h);break;case"sw":if(s){if(k.x<=0&&(u<=g||y>=v)){w=!1;break}O("w"),f-=k.x,u+=k.x,h=f/s}else O("s"),O("w"),k.x<=0?u>g?(f-=k.x,u+=k.x):k.y>=0&&y>=v&&(w=!1):(f-=k.x,u+=k.x),k.y>=0?y<v&&(h+=k.y):h+=k.y;f<0&&h<0?(l="ne",p-=h=-h,u-=f=-f):f<0?(l="se",u-=f=-f):h<0&&(l="nw",p-=h=-h);break;case"se":if(s){if(k.x>=0&&(d>=b||y>=v)){w=!1;break}O("e"),h=(f+=k.x)/s}else O("s"),O("e"),k.x>=0?d<b?f+=k.x:k.y>=0&&y>=v&&(w=!1):f+=k.x,k.y>=0?y<v&&(h+=k.y):h+=k.y;f<0&&h<0?(l="nw",p-=h=-h,u-=f=-f):f<0?(l="sw",u-=f=-f):h<0&&(l="ne",p-=h=-h);break;case"move":this.move(k.x,k.y),w=!1;break;case"zoom":this.zoom(function(e){var t=V({},e),n=[];return M(e,(function(e,o){delete t[o],M(t,(function(t){var o=Math.abs(e.startX-t.startX),r=Math.abs(e.startY-t.startY),i=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),l=Math.sqrt(o*o+r*r),s=(Math.sqrt(i*i+a*a)-l)/l;n.push(s)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}(a),e),w=!1;break;case"crop":if(!k.x||!k.y){w=!1;break}t=te(this.cropper),u=S.startX-t.left,p=S.startY-t.top,f=i.minWidth,h=i.minHeight,k.x>0?l=k.y>0?"se":"ne":k.x<0&&(u-=f,l=k.y>0?"sw":"nw"),k.y<0&&(p-=h),this.cropped||(z(this.cropBox,c),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}w&&(i.width=f,i.height=h,i.left=u,i.top=p,this.action=l,this.renderCropBox()),M(a,(function(e){e.startX=e.endX,e.startY=e.endY}))}},be={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&W(this.dragBox,h),z(this.cropBox,c),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=V({},this.initialImageData),this.canvasData=V({},this.initialCanvasData),this.cropBoxData=V({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(V(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),z(this.dragBox,h),W(this.cropBox,c)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,M(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,z(this.cropper,u)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,W(this.cropper,u)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,o=n.left,r=n.top;return this.moveTo(I(e)?e:o+Number(e),I(t)?t:r+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,o=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(P(e)&&(n.left=e,o=!0),P(t)&&(n.top=t,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var o=this.options,r=this.canvasData,i=r.width,a=r.height,l=r.naturalWidth,s=r.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&o.zoomable){var u=l*e,c=s*e;if(!1===ee(this.element,"zoom",{ratio:e,oldRatio:i/l,originalEvent:n}))return this;if(n){var p=this.pointers,f=te(this.cropper),h=p&&Object.keys(p).length?function(e){var t=0,n=0,o=0;return M(e,(function(e){var r=e.startX,i=e.startY;t+=r,n+=i,o+=1})),{pageX:t/=o,pageY:n/=o}}(p):{pageX:n.pageX,pageY:n.pageY};r.left-=(u-i)*((h.pageX-f.left-r.left)/i),r.top-=(c-a)*((h.pageY-f.top-r.top)/a)}else R(t)&&P(t.x)&&P(t.y)?(r.left-=(u-i)*((t.x-r.left)/i),r.top-=(c-a)*((t.y-r.top)/a)):(r.left-=(u-i)/2,r.top-=(c-a)/2);r.width=u,r.height=c,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return P(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,P(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(P(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,o=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(P(e)&&(n.scaleX=e,o=!0),P(t)&&(n.scaleY=t,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,o=this.imageData,r=this.canvasData,i=this.cropBoxData;if(this.ready&&this.cropped){e={x:i.left-r.left,y:i.top-r.top,width:i.width,height:i.height};var a=o.width/o.naturalWidth;if(M(e,(function(t,n){e[n]=t/a})),t){var l=Math.round(e.y+e.height),s=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=s-e.x,e.height=l-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=o.rotate||0),n.scalable&&(e.scaleX=o.scaleX||1,e.scaleY=o.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,o=this.canvasData,r={};if(this.ready&&!this.disabled&&R(e)){var i=!1;t.rotatable&&P(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),t.scalable&&(P(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),P(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;P(e.x)&&(r.left=e.x*a+o.left),P(e.y)&&(r.top=e.y*a+o.top),P(e.width)&&(r.width=e.width*a),P(e.height)&&(r.height=e.height*a),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?V({},this.containerData):{}},getImageData:function(){return this.sized?V({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&M(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&R(e)&&(P(e.left)&&(t.left=e.left),P(e.top)&&(t.top=e.top),P(e.width)?(t.width=e.width,t.height=e.width/n):P(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,o=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&R(e)&&(P(e.left)&&(o.left=e.left),P(e.top)&&(o.top=e.top),P(e.width)&&e.width!==o.width&&(t=!0,o.width=e.width),P(e.height)&&e.height!==o.height&&(n=!0,o.height=e.height),r&&(t?o.height=o.width/r:n&&(o.width=o.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=ue(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),i=r.x,a=r.y,l=r.width,s=r.height,u=n.width/Math.floor(t.naturalWidth);1!==u&&(i*=u,a*=u,l*=u,s*=u);var c=l/s,p=se({aspectRatio:c,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=se({aspectRatio:c,width:e.minWidth||0,height:e.minHeight||0},"cover"),h=se({aspectRatio:c,width:e.width||(1!==u?n.width:l),height:e.height||(1!==u?n.height:s)}),d=h.width,y=h.height;d=Math.min(p.width,Math.max(f.width,d)),y=Math.min(p.height,Math.max(f.height,y));var g=document.createElement("canvas"),m=g.getContext("2d");g.width=F(d),g.height=F(y),m.fillStyle=e.fillColor||"transparent",m.fillRect(0,0,d,y);var b=e.imageSmoothingEnabled,v=void 0===b||b,w=e.imageSmoothingQuality;m.imageSmoothingEnabled=v,w&&(m.imageSmoothingQuality=w);var S,k,O,C,E,_,T=n.width,P=n.height,x=i,I=a;x<=-l||x>T?(x=0,S=0,O=0,E=0):x<=0?(O=-x,x=0,E=S=Math.min(T,l+x)):x<=T&&(O=0,E=S=Math.min(l,T-x)),S<=0||I<=-s||I>P?(I=0,k=0,C=0,_=0):I<=0?(C=-I,I=0,_=k=Math.min(P,s+I)):I<=P&&(C=0,_=k=Math.min(s,P-I));var L=[x,I,S,k];if(E>0&&_>0){var j=d/l;L.push(O*j,C*j,E*j,_*j)}return m.drawImage.apply(m,[n].concat(o(L.map((function(e){return Math.floor(F(e))}))))),g},setAspectRatio:function(e){var t=this.options;return this.disabled||I(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var r="crop"===e,i=t.movable&&"move"===e;e=r||i?e:"none",t.dragMode=e,K(n,y,e),q(n,s,r),q(n,d,i),t.cropBoxMovable||(K(o,y,e),q(o,s,r),q(o,d,i))}return this}},ve=i.Cropper,we=function(){function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!E.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=V({},_,R(o)&&o),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var o,r,a;return o=e,a=[{key:"noConflict",value:function(){return window.Cropper=ve,e}},{key:"setDefaults",value:function(e){V(_,R(e)&&e)}}],(r=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,o=this.options;if(o.rotatable||o.scalable||(o.checkOrientation=!1),o.checkOrientation&&window.ArrayBuffer)if(C.test(e))this.read((r=e.replace(pe,""),i=atob(r),a=new ArrayBuffer(i.length),M(l=new Uint8Array(a),(function(e,t){l[t]=i.charCodeAt(t)})),a));else{var r,i,a,l,s=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=u,s.onerror=u,s.ontimeout=u,s.onprogress=function(){"image/jpeg"!==s.getResponseHeader("content-type")&&s.abort()},s.onload=function(){t.read(s.response)},s.onloadend=function(){t.reloading=!1,t.xhr=null},o.checkCrossOrigin&&re(e)&&n.crossOrigin&&(e=ie(e)),s.open("GET",e),s.responseType="arraybuffer",s.withCredentials="use-credentials"===n.crossOrigin,s.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,o=fe(e),r=0,i=1,a=1;if(o>1){this.url=function(e,t){for(var n=[],o=new Uint8Array(e);o.length>0;)n.push(ce.apply(null,A(o.subarray(0,8192)))),o=o.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var l=function(e){var t=0,n=1,o=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:o=-1;break;case 5:t=90,o=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:o}}(o);r=l.rotate,i=l.scaleX,a=l.scaleY}t.rotatable&&(n.rotate=r),t.scalable&&(n.scaleX=i,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e,t,n=this.element,o=this.url;this.options.checkCrossOrigin&&re(o)&&((e=n.crossOrigin)||(e="anonymous"),t=ie(o)),this.crossOrigin=e,this.crossOriginUrl=t;var r=document.createElement("img");e&&(r.crossOrigin=e),r.src=t||o,this.image=r,r.onload=this.start.bind(this),r.onerror=this.stop.bind(this),W(r,p),n.parentNode.insertBefore(r,n.nextSibling)}},{key:"start",value:function(){var e=this,t=this.isImg?this.element:this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=i.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(i.navigator.userAgent),o=function(t,n){V(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var r=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=r,r.onload=function(){o(r.width,r.height),n||a.removeChild(r)},r.src=t.src,n||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(r))}else o(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,o=e.parentNode,r=document.createElement("div");r.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var i=r.querySelector(".".concat("cropper","-container")),a=i.querySelector(".".concat("cropper","-canvas")),l=i.querySelector(".".concat("cropper","-drag-box")),s=i.querySelector(".".concat("cropper","-crop-box")),u=s.querySelector(".".concat("cropper","-face"));this.container=o,this.cropper=i,this.canvas=a,this.dragBox=l,this.cropBox=s,this.viewBox=i.querySelector(".".concat("cropper","-view-box")),this.face=u,a.appendChild(n),W(e,c),o.insertBefore(i,e.nextSibling),this.isImg||z(n,p),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,W(s,c),t.guides||W(s.getElementsByClassName("".concat("cropper","-dashed")),c),t.center||W(s.getElementsByClassName("".concat("cropper","-center")),c),t.background&&W(i,"".concat("cropper","-bg")),t.highlight||W(u,f),t.cropBoxMovable&&(W(u,d),K(u,y,"all")),t.cropBoxResizable||(W(s.getElementsByClassName("".concat("cropper","-line")),c),W(s.getElementsByClassName("".concat("cropper","-point")),c)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),D(t.ready)&&X(e,"ready",t.ready,{once:!0}),ee(e,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),z(this.element,c))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(o.prototype,r),a&&n(o,a),e}();return V(we.prototype,he,de,ye,ge,me,be),we}()},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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:r}):i)+'" class="img img-fluid" />'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<a class="info-link">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t){e.exports=c},function(e,t){e.exports=p},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<iframe class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.webPlayer:i,t))+' embed-responsive-item" id="'+l(a(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay; fullscreen" frameborder="0" width="'+l(a(null!=(i=null!=t?t.options:t)?i.width:i,t))+'" height="'+l(a(null!=(i=null!=t?t.options:t)?i.height:i,t))+'" src="'+l(a(null!=(i=null!=t?t.options:t)?i.url:i,t))+'"></iframe>\r\n<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \r\n name="'+l(a(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+l(a(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})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.typeahead:i,t))+'"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression;return'<div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):a)+'</div>\r\n<div class="col-9">\r\n <div class="description-region"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to admins and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},function(e,t,n){e.exports={columnNames:"_1ZuuN"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'<div class="">\r\n <button class="btn btn-light create w-100">+ Create a season</button>\r\n</div>\r\n'},3:function(e,t,n,o,r){return'<div class="form-group mb-2">\r\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\r\n <div class="form-feedback"></div>\r\n</div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.show:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<div class="text-right">\r\n <div class="button-region"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return"selected"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <option value="'+l(a(null!=t?t.number:t,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.selected:t,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+l(a(null!=t?t.displayName:t,t))+"</option>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svg:i,t))+' remove">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svgRemove:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button: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,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n></div>\r\n<div class="dropdown-menu dropdown-menu-right dropdown-arrow w-100">\r\n <div class="text-center px-2">\r\n <select name="season" class="custom-select">\r\n <option value="-1" '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasSelected:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">Select a season</option>\r\n"+(null!=(i=n.each.call(a,null!=(i=null!=t?t.options:t)?i.seasons:i,{name:"each",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' </select>\r\n <div class="form-feedback"></div>\r\n </div>\r\n\r\n <div class="dropdown-divider"></div>\r\n\r\n <div class="create-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showRemoveIcon:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"required"},3:function(e,t,n,o,r){return"readonly"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<textarea\r\n name="'+l(a(null!=(i=null!=t?t.options:t)?i.name:i,t))+'"\r\n id="'+l(a(null!=(i=null!=t?t.options:t)?i.id:i,t))+'"\r\n autocomplete="false"\r\n class="'+l(a(null!=(i=null!=t?t.options:t)?i.class:i,t))+" event-selector "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.resizingTextarea:i,t))+'"\r\n placeholder="'+l(a(null!=(i=null!=t?t.options:t)?i.placeholder:i,t))+'"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.required:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.readonly:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n></textarea>"},useData:!0})},function(e,t,n){e.exports={resizingTextarea:"qKxbV"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<label for="'+l(a(null!=(i=null!=t?t.options:t)?i.buttonId:i,t))+'" class="control-label">'+l(a(null!=(i=null!=t?t.options:t)?i.labelText:i,t))+"</label>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.labelText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<button class="dropdown-toggle form-control btn-block text-left '+l(a(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'" type="button" id="'+l(a(null!=(i=null!=t?t.options:t)?i.buttonId:i,t))+'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+l(a(null!=(i=null!=t?t.options:t)?i.selected:i,t))+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.iconSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return(null!=(i=a(null!=(i=null!=t?t.options:t)?i.prefix:i,t))?i:"")+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.title:i,t))+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.iconSvg:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.spinnerEl:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button\r\n class="'+l(a(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='+l(a(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+l(a(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+l(a(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,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="d-flex align-items-center">\r\n<label class="control-label m-0 pb-2">'+l(a(null!=(i=null!=t?t.options:t)?i.restrictFromLabel:i,t))+"</label>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.supportUrl:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="dropdown-region '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.select:i,t))+' mb-3"></div>\r\n<div class="access-view-region"></div>\r\n'},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a \r\n class="d-inline-block ml-1 mb-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'"\r\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"findOutMore",{name:"lang",hash:{},data:r}))+'"\r\n href="'+l(a(null!=(i=null!=t?t.options:t)?i.supportUrl:i,t))+'" \r\n target="_blank"\r\n>\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t){e.exports=f},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'\r\n<div class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.container:i,t))+'">\r\n <label for="share-input" class="mb-0 h6">'+s((n.lang||t&&t.lang||c).call(u,"shareLink",{name:"lang",hash:{},data:r}))+'</label>\r\n <div class="input-group mb-2">\r\n <input type="text" autocomplete="off" class="form-control '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.shareInput:i,t))+'" id="share-input" spellcheck="false" readonly="true" value='+s("function"==typeof(a=null!=(a=n.shortUrl||(null!=t?t.shortUrl:t))?a:c)?a.call(u,{name:"shortUrl",hash:{},data:r}):a)+'>\r\n <div class="input-group-append">\r\n <button class="btn bg-white copy '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.copyBtn:i,t))+'" type="button" data-clipboard-target="#share-input">'+s((n.lang||t&&t.lang||c).call(u,"copy",{name:"lang",hash:{},data:r}))+"</button>\r\n </div>\r\n </div>\r\n\r\n"+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.showEmbed:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.showEmbed:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;return' <small class="embed-toggle"><a class="text-info cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showOptions",{name:"lang",hash:{},data:r}))+"</a></small>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <hr class="mt-4">\r\n <label for="link-options-input" class="mb-2 h6">'+s((n.lang||t&&t.lang||l).call(a,"linkOptions",{name:"lang",hash:{},data:r}))+'</label>\r\n <div class="custom-control custom-checkbox mb-2">\r\n <input type="checkbox" autocomplete="off" class="custom-control-input public-checkbox" id="public-checkbox" name="public" '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.canPublicShare:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label" for="public-checkbox">'+s((n.lang||t&&t.lang||l).call(a,"publicCheckbox",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.canPublicShare:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n </div>\r\n <hr class="mt-4">\r\n <label for="embed-input" class="mb-0 mt-2 h6">'+s((n.lang||t&&t.lang||l).call(a,"embed",{name:"lang",hash:{},data:r}))+'</label>\r\n <div class="input-group mb-2 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textareaContainer:i,t))+'">\r\n <textarea type="text" class="form-control rounded w-100 h-100 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.embedInput:i,t))+'" id="embed-input" spellcheck="false" readonly="true">'+s(u(null!=(i=null!=t?t.options:t)?i.embedString:i,t))+'</textarea>\r\n <div class="input-group-append '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.embedCopyBtn:i,t))+' rounded">\r\n <button class="btn bg-white copy '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.copyBtn:i,t))+'" type="button" data-clipboard-target="#embed-input">'+s((n.lang||t&&t.lang||l).call(a,"copy",{name:"lang",hash:{},data:r}))+"</button>\r\n </div>\r\n </div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.videoSizes:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="custom-control custom-checkbox d-inline-block">\r\n <input type="checkbox" autocomplete="off" class="custom-control-input autoplay-checkbox" id="autoplay-checkbox" name="autoplay">\r\n <label class="custom-control-label" for="autoplay-checkbox">'+s((n.lang||t&&t.lang||l).call(a,"autoplay",{name:"lang",hash:{},data:r}))+"</label>\r\n </div>\r\n"},7:function(e,t,n,o,r){return"disabled"},9:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.cannotPublicShareText:i,t))+"</div>"},11:function(e,t,n,o,r){e.propertyIsEnumerable;return' <label for="size-select" class="d-block pt-2 h6">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"playerSize",{name:"lang",hash:{},data:r}))+'</label>\r\n <select class="custom-select w-25 mr-4 size-select" id="#size-select" name="selectedVideoSize"></select>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLoader:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<small class="text-left w-100 mb-0 '+l(a(null!=(i=null!=t?t.options:t)?i.footerTextClass:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.privacyDescription:i,t))+"</small>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'style="position:absolute; top:0; left:0; width:100%; height:100%;"'},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'width="'+l(a(null!=(i=null!=t?t.videoSize:t)?i.width:i,t))+'" height="'+l(a(null!=(i=null!=t?t.videoSize:t)?i.height:i,t))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression;return'<iframe frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen '+(null!=(i=n.if.call(l,null!=t?t.isResponsive:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' src="'+u("function"==typeof(a=null!=(a=n.baseUrl||(null!=t?t.baseUrl:t))?a:s)?a.call(l,{name:"baseUrl",hash:{},data:r}):a)+"?shareCode="+u("function"==typeof(a=null!=(a=n.shortCode||(null!=t?t.shortCode:t))?a:s)?a.call(l,{name:"shortCode",hash:{},data:r}):a)+"&a="+u("function"==typeof(a=null!=(a=n.autoplay||(null!=t?t.autoplay:t))?a:s)?a.call(l,{name:"autoplay",hash:{},data:r}):a)+'"></iframe>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(e,t,n){e.exports={topNav:"_3xqNh"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n <title>'+e.escapeExpression(e.lambda(t,t))+'</title>\r\n <g id="archive-error" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="Group" transform="translate(3.000000, 5.000000)">\r\n <path d="M20.7658476,-7.68274333e-14 C21.8942931,-7.68274333e-14 22.831971,0.85292295 22.831971,1.93646516 L22.831971,4.55330997 C22.831971,4.90016841 22.5509477,5.18135273 22.2042879,5.18135273 L0.627683051,5.18135273 C0.281023274,5.18135273 -8.22453217e-13,4.90016841 -8.22453217e-13,4.55330997 L-8.22453217e-13,1.93646516 C-8.22104783e-13,0.85292295 0.937677893,-7.68274333e-14 2.06612338,-7.68274333e-14 L20.7658476,-7.68274333e-14 Z M21.5766049,1.93646516 C21.5766049,1.57476389 21.2262594,1.25608551 20.7658476,1.25608551 L2.06612338,1.25608551 C1.60571155,1.25608551 1.2553661,1.57476389 1.2553661,1.93646516 L1.2553661,3.92526722 L21.5766049,3.92526722 L21.5766049,1.93646516 Z M1.36991826,7.19207086 C1.36991826,6.81377838 1.67658491,6.50711173 2.05487739,6.50711173 C2.43316987,6.50711173 2.73983652,6.81377838 2.73983652,7.19207086 L2.73983652,14.6126666 C2.73983652,15.8105928 3.71094757,16.7817038 4.90887376,16.7817038 L10.037037,16.7817038 C10.4153295,16.7817038 10.7219961,17.0883705 10.7219961,17.466663 C10.7219961,17.8449555 10.4153295,18.1516221 10.037037,18.1516221 L4.90887376,18.1516221 C2.95436261,18.1516221 1.36991826,16.5671778 1.36991826,14.6126666 L1.36991826,7.19207086 Z M13.2081514,6.50711173 C13.5864439,6.50711173 13.8931105,6.81377838 13.8931105,7.19207086 C13.8931105,7.57036334 13.5864439,7.87702999 13.2081514,7.87702999 L9.87482745,7.87702999 C9.52805934,7.87702999 9.24694825,8.15814108 9.24694825,8.50490919 C9.24694825,8.8516773 9.52805934,9.13278839 9.87482745,9.13278839 L12.0665528,9.13278839 C12.4448453,9.13278839 12.751512,9.43945504 12.751512,9.81774752 C12.751512,10.19604 12.4448453,10.5027067 12.0665528,10.5027067 L9.87482745,10.5027067 C8.77147438,10.5027067 7.87702999,9.60826226 7.87702999,8.50490919 C7.87702999,7.40155612 8.77147438,6.50711173 9.87482745,6.50711173 L13.2081514,6.50711173 Z M20.2062943,7.077911 C20.2062943,6.76266727 20.4618499,6.50711173 20.7770936,6.50711173 C21.0923373,6.50711173 21.3478929,6.76266727 21.3478929,7.077911 L21.3478929,7.99118984 C21.3478929,8.30643358 21.0923373,8.56198912 20.7770936,8.56198912 C20.4618499,8.56198912 20.2062943,8.30643358 20.2062943,7.99118984 L20.2062943,7.077911 Z" id="Combined-Shape" fill="currentColor"></path>\r\n <path d="M24.6713093,17.6624402 C25.0188138,18.3578403 24.9815158,19.1834207 24.5728024,19.8445217 C24.164089,20.5056227 23.4422327,20.9079876 22.6650348,20.9079404 L15.2429296,20.9079404 C14.4656901,20.9079876 13.7438338,20.5056227 13.3351204,19.8445217 C12.926407,19.1834207 12.8891089,18.3578403 13.2366135,17.6624402 L16.9475765,10.2405144 C17.3273453,9.48029103 18.1041591,9 18.9539614,9 C19.8037637,9 20.5805775,9.48029103 20.9602358,10.2402933 L24.6713093,17.6624402 Z M19.9682278,17.9178304 C19.9682278,17.3576665 19.5141253,16.903564 18.9534845,16.9035641 C18.3935398,16.9038217 17.939695,17.3578255 17.939695,17.9178304 C17.939695,18.4779942 18.3937975,18.9320968 18.9539614,18.9320968 C19.5141253,18.9320968 19.9682278,18.4779942 19.9682278,17.9178304 Z M19.6389205,15.6126794 L19.6389205,12.9782213 C19.6389205,12.5999288 19.3322539,12.2932621 18.9539614,12.2932621 C18.5756689,12.2932621 18.2690023,12.5999288 18.2690023,12.9782213 L18.2690023,15.6126794 C18.2690023,15.9909719 18.5756689,16.2976386 18.9539614,16.2976386 C19.3322539,16.2976386 19.6389205,15.9909719 19.6389205,15.6126794 Z" id="Path" fill="#FFCD52"></path>\r\n </g>\r\n </g>\r\n</svg>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.alreadyDownloaded:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.program(6,r,0),data:r}))?i:""},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<p><strong>"+l((n.lang||t&&t.lang||a).call(i,"description",{name:"lang",hash:{},data:r}))+'</strong></p>\r\n<svg height="100" viewBox="0 0 427 100" width="427" xmlns="http://www.w3.org/2000/svg">\r\n <g fill="none" fill-rule="evenodd">\r\n <g fill-rule="nonzero">\r\n <path d="m94.5 55.5c-.5522847 0-1-.4477153-1-1s.4477153-1 1-1h2c.5522847 0 1 .4477153 1 1s-.4477153 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm112 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1zm14 0c-.552285 0-1-.4477153-1-1s.447715-1 1-1h2c.552285 0 1 .4477153 1 1s-.447715 1-1 1z" fill="#f8981d"/><path d="m75.3660384 82.489591c-.0757675.0069357-.1518122.010409-.2278965.010409h-54.6179583c-11.70030947 0-19.2714702-8.1915084-19.97109491-19.1076542-.62065424-9.6839806 4.42338321-18.3273466 12.94458521-20.6053076-.4297787-11.9466685 6.5982062-21.1867066 17.1901489-24.2852299 10.2989712-3.0128186 20.88668.7410547 26.0606491 10.0502544 12.8217558-3.457481 26.1104718 8.263297 24.2211271 21.1832845 16.58825 6.4833251 12.6943926 31.07962-5.5995606 32.7542438zm-.3464266-4.989591c13.592216-1.3432135 15.9498811-20.1088375 2.3914689-23.6692862-1.3614422-.3575157-2.1594623-1.7680385-1.7646963-3.11915 3.0734097-10.5189376-8.8471782-21.078668-19.2165057-16.7806108-1.2612369.5227791-2.7086325-.0629726-3.2513006-1.3157806-3.6287978-8.3774717-12.3662807-11.8667544-21.0909115-9.3144869-8.9863414 2.6288273-14.6536056 10.6534543-13.4524943 21.2329216.1549662 1.3649525-.8204237 2.5992336-2.1842308 2.7639765-7.0138244.8472442-11.43239953 7.6566537-10.91209037 15.7749642.54005245 8.4263623 6.08667627 14.4274522 14.98133247 14.4274522z" fill="#e2e2e2"/><path d="m411.5 76h12.5c1.656854 0 3 1.3431458 3 3s-1.343146 3-3 3h-90c-1.656854 0-3-1.3431458-3-3s1.343146-3 3-3h11.5c-4.142136 0-7.5-3.3578644-7.5-7.5v-40c0-4.1421356 3.357864-7.5 7.5-7.5h66c4.142136 0 7.5 3.3578644 7.5 7.5v40c0 4.1421356-3.357864 7.5-7.5 7.5zm-17.5 0h-31c0 1.1045695.895431 2 2 2h27c1.10457 0 2-.8954305 2-2zm-48.5-50c-1.380712 0-2.5 1.1192881-2.5 2.5v40c0 1.3807119 1.119288 2.5 2.5 2.5h66c1.380712 0 2.5-1.1192881 2.5-2.5v-40c0-1.3807119-1.119288-2.5-2.5-2.5z" fill="#e2e2e2"/><path d="m194.688889 46.6708215v4.0154896c-21.037954-1.3356058-31.688889-5.9896514-31.688889-14.6862716 0-1.1045913.891623-2.0000395 1.991496-2.0000395s1.991496.8954482 1.991496 2.0000395c0 5.6687396 9.152444 9.4529958 27.70589 10.6707816zm25.906865.1564809c20.376102-1.018022 30.421254-4.8884966 30.421254-10.8272629 0-1.1045913.891623-2.0000395 1.991496-2.0000395s1.991496.8954482 1.991496 2.0000395c0 8.4131404-9.967884 13.0429588-29.664711 14.5450572zm-25.906865 22.7606388v4.0154864c-21.037953-1.3356021-31.688889-5.9896477-31.688889-14.6862684 0-1.1045913.891623-2.0000395 1.991496-2.0000395s1.991496.8954482 1.991496 2.0000395c0 5.6687397 9.152444 9.4529958 27.70589 10.6707815zm25.879593.1578414c20.394411-1.0159301 30.448526-4.8872081 30.448526-10.8286234 0-1.1045913.891623-2.0000395 1.991496-2.0000395s1.991496.8954482 1.991496 2.0000395c0 9.9178906-13.85241 14.5780829-41.165781 15.0546252zm-55.568482-53.0262704s0 9.9603659 40 9.9603659c11.131238 0 10-6.640244 10-23.24085371 26.666667-3.32012195 40 13.28048781 40 13.28048781s-10 13.2804878-50 13.2804878-40-13.2804878-40-13.2804878z" fill="#f8f8f8"/></g><path d="m199.011905 38.4086355v36.4615785c0 1.1045695.89543 2 2 2 .384934 0 .76169-.1110843 1.085049-.3199204l25.091884-16.205146c.927883-.5992563 1.194287-1.8372468.59503-2.7651291-.115325-.1785696-.258382-.3376117-.423784-.4711387l-25.091884-20.2564325c-.859459-.6938329-2.118651-.5595663-2.812483.2998927-.287178.3557307-.443812.7991133-.443812 1.2562955z" fill="#f8981d"/><path d="m163 16.7249015.011729-.216286.025974-.2387743c1.009035-9.27583682 21.668177-16.2698412 45.79563-16.2698412s44.786596 6.99400437 45.79563 16.2698412l.025974.2387743.01173.216286v65.814781c0 9.5919064-21.048324 16.9642858-45.833334 16.9642858s-45.833333-7.3723794-45.833333-16.9642858zm4 .1084611v65.7063199c0 6.2420953 19.192018 12.9642858 41.833333 12.9642858s41.833334-6.7221905 41.833334-12.9642858v-65.7063199l-.014245-.1309494c-.68278-6.276646-19.663443-12.7024132-41.819089-12.7024132s-41.136309 6.4257672-41.819088 12.7024132z" fill="#e2e2e2" fill-rule="nonzero"/>\r\n </g>\r\n</svg>\r\n<p>'+l((n.lang||t&&t.lang||a).call(i,"nextStep",{name:"lang",hash:{},data:r}))+"</p>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;return'<p class="m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"alreadyAdded",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="year-group-region"></div>\r\n<div name="year" class="mt-3"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")},2:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:r}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||l).call(a,"selectFolder",{name:"lang",hash:{},data:r}))+"</span>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||l).call(a,"folder",{name:"lang",hash:{},data:r}))+'</span>\r\n <div class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:r}))+"</span>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||l).call(a,"noFolders1",{name:"lang",hash:{},data:r}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||l).call(a,"noFolders2",{name:"lang",hash:{},data:r}))?i:"")+"</p>\r\n"},9:function(e,t,n,o,r){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,o,r){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,r,0),inverse:e.program(9,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){e.exports={header:"_1tdTv"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<button class="approve-all btn btn-success d-inline-block '+a(e.lambda(null!=(i=null!=t?t.options:t)?i.btnClass:i,t))+'" type="button">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"approveBtn",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.numVideos:i},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<h5 class="d-inline-block m-0 '+a(e.lambda(null!=(i=null!=t?t.options:t)?i.headingClass:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.numVideos:i},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.videosToReview:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h4 class="pl-3">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.groupTitle:i,t))+'</h4>\r\n<div class="video-list-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3 border-bottom">\r\n <h5>'+s((n.lang||t&&t.lang||l).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\r\n <p>"+s((n.lang||t&&t.lang||l).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\r\n <button class="btn btn-light text-center disable-review" type="button">'+s((n.lang||t&&t.lang||l).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\r\n</div>\r\n<div class="p-3 border-bottom">\r\n <p class="m-0">'+s((n.lang||t&&t.lang||l).call(a,"noActionDisclaimer",{name:"lang",hash:{},data:r}))+'</p>\r\n <p class="m-0">'+s((n.lang||t&&t.lang||l).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+s(e.lambda(null!=(i=null!=t?t.options:t)?i.supportUrl:i,t))+' target="_blank">'+s((n.lang||t&&t.lang||l).call(a,"learnMoreLink",{name:"lang",hash:{},data:r}))+"</a></p>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={leftNav:"_15vRB"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="d-inline-block p-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.heading:i,t))+'"><h1 class="h3 m-0">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"contentUpdates",{name:"lang",hash:{},data:r}))+'</h1></div><div class="tabs-region d-inline-flex align-items-end '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tabsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={heading:"_1SwZ2",tabsContainer:"_3f4T9"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="header-region"></div>\r\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.contentClass:i,t))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<p class="m-0 pb-2">'+s((n.lang||t&&t.lang||l).call(a,"noReview",{name:"lang",hash:{},data:r}))+"</p>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.videosToReview:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'<p class="m-0">'+s((n.lang||t&&t.lang||l).call(a,"undoInstructions",{name:"lang",hash:{},data:r}))+"</p>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;return'<p class="m-0 pb-2">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"automaticApproval",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="pb-3 text-center">\r\n <img src="'+l(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n</div>\r\n<p class="m-0">\r\n '+(null!=(i=(n.lang||t&&t.lang||u).call(s,"body1",{name:"lang",hash:{},data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.libraryText:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.subject:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=(n.lang||t&&t.lang||u).call(s,"body4",{name:"lang",hash:{email:null!=(i=null!=t?t.options:t)?i.email:i,to:null!=(i=null!=t?t.options:t)?i.to:i,from:null!=(i=null!=t?t.options:t)?i.from:i},data:r}))?i:"")+"\r\n</p>\r\n"},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body2",{name:"lang",hash:{libraryText:null!=(i=null!=t?t.options:t)?i.libraryText:i},data:r}))?i:""},6:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body3",{name:"lang",hash:{subject:null!=(i=null!=t?t.options:t)?i.subject:i},data:r}))?i:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){e.exports={image:"_2AV9T"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return'<div class="d-inline-block border-right py-1 pr-3"><strong>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"filters",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\r\n<div class="options-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="clear-filters float-left text-muted hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="apply-filters d-block text-right info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\r\n<div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button class="'+l(a(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+l(a(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})},function(e,t,n){e.exports={moreFiltersButton:"_3sym3"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<div class="d-inline-block text-right">\r\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-right py-1 pr-3 '+a(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>\r\n<div class="more-filters-region d-inline-block mr-2"></div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button class="'+l(a(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+l(a(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="option-list-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="default-option py-1">\r\n <div class="custom-control custom-'+l(a(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+l(a(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+l(a(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-'+s(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+s(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(u,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:r}):a)+"</label>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-right'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\r\n<p>'+e.escapeExpression("function"==typeof(a=null!=(a=n.description||(null!=t?t.description:t))?a:e.hooks.helperMissing)?a.call(l,{name:"description",hash:{},data:r}):a)+"</p>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<button type="button" class="d-block option-btn w-100 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\r\n '+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(s,{name:"name",hash:{},data:r}):a)+'\r\n</button>\r\n<div class="text-center">'+l("function"==typeof(a=null!=(a=n.description||(null!=t?t.description:t))?a:u)?a.call(s,{name:"description",hash:{},data:r}):a)+"</div>"},useData:!0})},function(e,t,n){e.exports={container:"_1SMXf"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="selected-tags-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tags-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<button class="generate-pdf btn btn-light d-inline-block" type="button">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generatePdf",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="filters-region d-inline-block"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showGeneratePdf:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'<div class="left-nav-region"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="header-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLeftNav:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.contentClass:i,t))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((n.lang||t&&t.lang||a).call(i,"infoHeading",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((n.lang||t&&t.lang||a).call(i,"meaningSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((n.lang||t&&t.lang||a).call(i,"meaning1",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((n.lang||t&&t.lang||a).call(i,"meaning2",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((n.lang||t&&t.lang||a).call(i,"meaning3",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((n.lang||t&&t.lang||a).call(i,"disclaimer",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((n.lang||t&&t.lang||a).call(i,"featureSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((n.lang||t&&t.lang||a).call(i,"feature1",{name:"lang",hash:{},data:r}))+"</li> \r\n <li>"+l((n.lang||t&&t.lang||a).call(i,"feature2",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.noPublisher:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a class="pt-2 action-link no-decoration d-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.count:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.count:i,t))+"</a>\r\n"},3:function(e,t,n,o,r){return' <div class="empty-state-region py-3"></div>\r\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <p class="m-0 py-2 '+l(a(null!=(i=null!=t?t.options:t)?i.descriptionClass:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.description:i,t))+"</p>\r\n"},7:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <button type="button" class="btn btn-light w-100 action-btn">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.btnText:i,t))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h4 class="header border-bottom pb-2 m-0">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.title:i,t))+'</h4>\r\n<div class="content-container-region text-center align-items-center">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.count:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.btnText:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <p class="m-0 pb-2">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))+"</p>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <ul class="list-unstyled">\r\n'+(null!=(i=n.each.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.links:i,{name:"each",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+" </ul>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return' <li><a class="info-link" href="'+s("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:l)?i.call(a,{name:"url",hash:{},data:r}):i)+'" target="_blank">'+s("function"==typeof(i=null!=(i=n.text||(null!=t?t.text:t))?i:l)?i.call(a,{name:"text",hash:{},data:r}):i)+"</a></li>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h4 class="header border-bottom pb-2 m-0">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.title:i,t))+'</h4>\r\n<div class="pt-2">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<div class="notifications-region '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationList:i,t))+'"></div>\r\n<div class="d-flex flex-grow-1 flex-column-reverse text-right border-top pt-2">\r\n <a class="see-all info-link">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>\r\n"},3:function(e,t,n,o,r){return'<div class="notifications-region d-flex flex-grow-1 align-items-center justify-content-center"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h4 class="header border-bottom pb-2 m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:r}))+"</h4>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.noNotifications:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="content-region"></div>'},useData:!0})},function(e,t,n){e.exports={tileList:"_1dNZs"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="content-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.illoContainer:i,t))+'">\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lunaHead:i,t))+'"><img width="86px" height="110px" src="/images/errors/not-found/luna-head@2x.png"></div>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.head:i,t))+'"><img width="134px" height="138px" src="/images/errors/not-found/head@2x.png"></div>\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.body:i,t))+'"><img width="241px" height="229px" src="/images/errors/not-found/back@2x.png"></div>\r\n</div>\r\n<h4 class="mt-3 text-muted">'+l((n.lang||t&&t.lang||u).call(s,"pageNotFound",{name:"lang",hash:{},data:r}))+"</h4>\r\n<p>"+(null!=(i=(n.lang||t&&t.lang||u).call(s,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=t?t.options:t)?i.linkClasses:i},data:r}))?i:"")+"</p>"},useData:!0})},function(e,t,n){e.exports={illoContainer:"_3Eqbe",body:"_39GQb",head:"PVOtq",lunaHead:"_3z13a",animate:"_2FR1z","luna-animate":"_12szO",lunaTail:"_1memV",tintinTail:"_2V4lb","wag-tail-small":"_2atTc","wag-tail":"_13j3E"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return"<h1>"+l(a(null!=(i=null!=t?t.options:t)?i.name:i,t))+'</h1>\r\n<div class="alert alert-danger" role="alert">\r\n <h2>'+l(a(null!=(i=null!=t?t.options:t)?i.message:i,t))+'</h2>\r\n</div>\r\n<div class="alert alert-warning" role="alert">\r\n <h3>Call stack</h3>\r\n <code>'+l(a(null!=(i=null!=t?t.options:t)?i.stack:i,t))+"</code>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'\r\n<img src="/images/errors/Oops'+l(a(null!=(i=null!=t?t.options:t)?i.imageNumber:i,t))+'@2x.png" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n<h4 class="mt-3 text-muted">'+l(a(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n<p>"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>"},useData:!0})},function(e,t,n){e.exports={image:"_1wvl8"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="banner-region"></div>\r\n<div class="child-folders-region"></div>\r\n<div class="header-region"></div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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:r}))?i:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,o,r){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:r}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,o,r){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"folder",{name:"lang",hash:{},data:r}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.addLibraryContainer:i,t))+'">\r\n <button class="applink-new-library btn btn-outline-secondary '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.addLibrary:i,t))+'">\r\n <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.plus:i,t))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.plusSvg:i,t))?i:"")+"\r\n </span>\r\n "+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"newLibrary",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="logo-region"></div>\r\n<div class="folder-tree-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateLibraries:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={addLibrary:"_1O42p",addLibraryContainer:"_1HX0v",plus:"_3aHT2"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tab-region"></div>\r\n<div class="edit-content-region"></div>\r\n<div class="dialog-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'<div class="row pl-3 pt-3 pr-3">\r\n <div class="breadcrumbs-region"></div>\r\n</div>\r\n'},3:function(e,t,n,o,r){return' <div class="fields-region"></div>\r\n'},5:function(e,t,n,o,r){return' <div class="video-chapters-region"></div>\r\n'},7:function(e,t,n,o,r){return' <div class="video-resources-region"></div>\r\n'},9:function(e,t,n,o,r){return' <div class="video-links-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasFolder:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row border-bottom">\r\n <div class="video-header-region"></div>\r\n</div>\r\n<div class="row">\r\n <div class="col-4">\r\n <div class="main-video-information-region"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="basic-video-information-region py-3 pr-2"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasFields:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasChapters:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasResources:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasLinks:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){var i;e.propertyIsEnumerable;return(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.videoCount:i},data:r}))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.libraryFetched:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+l((n.lang||t&&t.lang||a).call(i,"libraryName",{name:"lang",hash:{},data:r}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+l((n.lang||t&&t.lang||a).call(i,"secondaryLibrary",{name:"lang",hash:{},data:r}))+'" 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,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"col-5 py-3"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="tab-region"></div>\r\n\r\n<div class="row pb-2">\r\n <div class="'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.isClickViewContent:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <div class="clickview-subtitles-list-region"></div>\r\n </div>\r\n <div class="col-7">\r\n <div class="subtitles-upload-region"></div>\r\n <div class="subtitles-upload-list-region p-0 col-8"></div>\r\n <div class="customer-subtitles-list-region p-0 col-8"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="row border-top pt-1">\r\n <div class="'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.isClickViewContent:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <div class="clickview-resources-list-region"></div>\r\n </div>\r\n <div class="col-7">\r\n <div class="resources-upload-region"></div>\r\n <div class="resources-upload-list-region p-0 col-8"></div>\r\n <div class="customer-resources-list-region p-0 col-8"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="row border-top pt-3">\r\n <div class="'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.isClickViewContent:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <div class="clickview-link-list-region"></div>\r\n </div>\r\n <div class="col-7">\r\n <div class="add-links-region mb-2"></div>\r\n <div class="customer-link-list-region p-0 col-8"></div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+l((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+l((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'" 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,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="pb-3 text-center">\r\n <img src="'+l(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n</div>\r\n<p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"info",{name:"lang",hash:{email:null!=(i=null!=t?t.options:t)?i.email:i,name:null!=t?t.name:t},data:r}))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){e.exports={image:"J9jn_"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h1 class="h3">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="no-library-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+l((n.lang||t&&t.lang||a).call(i,"libraryName",{name:"lang",hash:{},data:r}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+l((n.lang||t&&t.lang||a).call(i,"secondaryLibrary",{name:"lang",hash:{},data:r}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((n.lang||t&&t.lang||a).call(i,"guidelines",{name:"lang",hash:{},data:r}))+'</p>\r\n<p class="font-weight-bold mb-1">'+l((n.lang||t&&t.lang||a).call(i,"dropdownHeading",{name:"lang",hash:{},data:r}))+'</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,r){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,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a class="applink-goback '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.back:i,t))+'">\r\n <span class="align-middle d-inline-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.backSvgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.backSvg:i,t))?i:"")+"</span>\r\n </a>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"resultsFor",{name:"lang",hash:{searchTerm:null!=(i=null!=t?t.options:t)?i.searchTerm:i,smartCount:null!=(i=null!=t?t.options:t)?i.results:i},data:r}))?i:"")+"\r\n"},5:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="col-4 text-right py-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subheader:i,t))+'">\r\n <div class="cursor-pointer toggle-migrated h-100">\r\n <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svg:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"</span>\r\n <span>"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hidden:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(10,r,0),data:r}))?i:"")+" "+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"migrated",{name:"lang",hash:{},data:r}))+"</span>\r\n </div>\r\n</div>\r\n"},8:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},10:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="col-8">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.goBack:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <h4 class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' py-2">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.searchTerm:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.program(5,r,0),data:r}))?i:"")+" </h4>\r\n</div>\r\n\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showMigrationToggle:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={thumbnail:"_3S7KI"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="row">\r\n <div class="col-7">\r\n <div class="row no-gutters">\r\n'+(null!=(i=n.if.call(a,null!=t?t.title:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.seriesName:t,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.duration:t,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.audience:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.ratingCode:t,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.itemCode:t,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.producer:t,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.publisher:t,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.dateBroadcast:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.distributor:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.source:t,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n </div>\r\n <div class="col-5">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-12">\r\n'+(null!=(i=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n</div>\r\n"},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Title</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},6:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Series</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.seriesName||(null!=t?t.seriesName:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"seriesName",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},8:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Duration</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.duration||(null!=t?t.duration:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"duration",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},10:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Year</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.productionYear||(null!=t?t.productionYear:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"productionYear",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},12:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Audience</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.audience||(null!=t?t.audience:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"audience",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},14:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Rating</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.ratingCode||(null!=t?t.ratingCode:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"ratingCode",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},16:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Identifier</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.itemCode||(null!=t?t.itemCode:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"itemCode",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},18:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Creator</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.producer||(null!=t?t.producer:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"producer",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},20:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Publisher</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.publisher||(null!=t?t.publisher:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"publisher",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},22:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Date Broadcast</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.dateBroadcast:i,t))+"</p>\r\n </div>\r\n"},24:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Distributor</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.distributor||(null!=t?t.distributor:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"distributor",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},26:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="col-4">\r\n <label class="font-weight-bold">Source</label>\r\n </div>\r\n <div class="col-8">\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.source||(null!=t?t.source:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"source",hash:{},data:r}):i)+"</p>\r\n </div>\r\n"},28:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <label class="font-weight-bold">Description</label>\r\n <p>'+e.escapeExpression("function"==typeof(i=null!=(i=n.description||(null!=t?t.description:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:r}):i)+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+"\r\n"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<div class="m-4">\r\n <h4>'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+'</h4>\r\n <div class="text-left mt-3">\r\n <p class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.subtitle:i,t))+' text-center">'+s((n.lang||t&&t.lang||l).call(a,"question",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <img src="/images/migrate.png" class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' w-50 d-block p-2">\r\n\r\n <p class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.options:i,t))+' mt-3">'+s((n.lang||t&&t.lang||l).call(a,"options",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="smart" value="1" name="options">\r\n <label for="smart" class="mb-1 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.optionHeader:i,t))+'">'+s((n.lang||t&&t.lang||l).call(a,"smartOption",{name:"lang",hash:{},data:r}))+' <span class="badge '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.migrationBadge:i,t))+' ml-2">'+s((n.lang||t&&t.lang||l).call(a,"recommended",{name:"lang",hash:{},data:r}))+'</span></label>\r\n <span class="d-block '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.optionText:i,t))+'">'+s((n.lang||t&&t.lang||l).call(a,"smartOptionInfo",{name:"lang",hash:{},data:r}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="all" value="3" name="options">\r\n <label for="all" class="mb-1 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.optionHeader:i,t))+'">'+s((n.lang||t&&t.lang||l).call(a,"allVideosOption",{name:"lang",hash:{},data:r}))+'</label>\r\n <span class="d-block '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.optionText:i,t))+'">'+s((n.lang||t&&t.lang||l).call(a,"allVideosOptionInfo",{name:"lang",hash:{},data:r}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="fresh" value="2" name="options">\r\n <label for="fresh" class="mb-1 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.optionHeader:i,t))+'">'+s((n.lang||t&&t.lang||l).call(a,"startFreshOption",{name:"lang",hash:{},data:r}))+'</label>\r\n <span class="d-block '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.optionText:i,t))+'">'+s((n.lang||t&&t.lang||l).call(a,"startFreshOptionInfo",{name:"lang",hash:{},data:r}))+"</span>\r\n </div>\r\n <div>\r\n "+(null!=(i=(n.lang||t&&t.lang||l).call(a,"support",{name:"lang",hash:{supportUrl:null!=(i=null!=t?t.options:t)?i.supportUrl:i,className:"info-link"},data:r}))?i:"")+'\r\n </div>\r\n </div>\r\n\r\n <div class="save-region"></div>\r\n <div class="smart-select-waiting-message" style="display: none;">\r\n <p class="mt-2">'+s((n.lang||t&&t.lang||l).call(a,"waiting",{name:"lang",hash:{},data:r}))+'</p>\r\n <p class="mt-2 smart-count"></p>\r\n </div>\r\n</div>\r\n<div class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.migrationBanner:i,t))+" p-3 text-white "+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.infoMessage:i,t))+'">\r\n '+s((n.lang||t&&t.lang||l).call(a,"note",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="selected-banner-region"></div>\r\n<div class="search-region"></div>\r\n<div class="banner-region"></div>\r\n<div class="col-4 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.leftNav:i,t))+'">\r\n <div class="left-nav-region"></div>\r\n</div>\r\n<div class="col">\r\n <div class="header-region"></div>\r\n <div class="video-list-region"></div>\r\n</div>\r\n<div class="footer-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="row '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tabContainer:i,t))+' position-relative">\r\n <a class="col-4 p-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.publisherArchiveAppLink:i,t))+'"><h1 class="m-0 h5">'+l((n.lang||t&&t.lang||u).call(s,"addVideos",{name:"lang",hash:{},data:r}))+'</h1></a>\r\n <a class="p-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.reviewErroredAppLink:i,t))+'"><h1 class="m-0 h5">'+l((n.lang||t&&t.lang||u).call(s,"migrationWarnings",{name:"lang",hash:{},data:r}))+'<span class="ml-2 svg-container d-inline-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+'</span></h1></a>\r\n <div class="generate-report-region"></div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="col-8">\r\n <div class="select-all"></div>\r\n <div class="align-middle d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+l((n.lang||t&&t.lang||u).call(s,"sortTitle",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+'</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="col-4 pr-3 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+l((n.lang||t&&t.lang||u).call(s,"sortViews",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+"</span>\r\n </span>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <button class="applink-back btn btn-secondary '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'">\r\n '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"back",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <span class="align-middle '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.statusBarMessage:i,t))+'">\r\n '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosSelected",{name:"lang",hash:{videoCount:null!=(i=null!=t?t.options:t)?i.videoCount:i,smartCount:null!=(i=null!=t?t.options:t)?i.numberAvailable:i},data:r}))+"\r\n </span>\r\n"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showBackButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-6">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showSelected:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-2 text-right">\r\n <button class="applink-next btn btn-primary '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.nextDisabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+">\r\n "+s(l(null!=(i=null!=t?t.options:t)?i.text:i,t))+"\r\n </button>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"text-muted"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <a class="applink-remigrate cursor-pointer '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"readd",{name:"lang",hash:{},data:r}))+"</a>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <a class="applink-show cursor-pointer '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"details",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="row no-gutters">\r\n <div class="col-8">\r\n <div class="bulk-checkbox-region '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkCheckbox:i,t))+'"></div>\r\n <a class="applink-show align-middle cursor-pointer mt-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(u,{name:"name",hash:{},data:r}):a)+'</a>\r\n </div>\r\n <div class="col-4 position-static">\r\n <div class="row no-gutters">\r\n <div class="col-11 text-right pr-2">\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.program(5,r,0),data:r}))?i:"")+' <div class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewCount:i,t))+'">\r\n <span>\r\n '+s((n.lang||t&&t.lang||c).call(u,"views",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.views:i},data:r}))+'\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-1 d-flex justify-content-center position-static">\r\n <div class="error-code-region"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="video-sorting-region"></div>\r\n<div class="video-list-region"></div>'},useData:!0})},function(e,t,n){e.exports={videoList:"_3RFYO"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<span class="text-white mr-1">'+s((n.lang||t&&t.lang||l).call(a,"banner",{name:"lang",hash:{},data:r}))+'</span>\r\n<a href="'+s(u(null!=(i=null!=t?t.options:t)?i.learnMoreUrl:i,t))+'" class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learnMore:i,t))+'" target="_blank">'+s((n.lang||t&&t.lang||l).call(a,"learnMore",{name:"lang",hash:{},data:r}))+"</a>"},useData:!0})},function(e,t,n){e.exports={category:"BSPKV"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"selectedVideos",{name:"lang",hash:{folder:null!=(i=null!=t?t.options:t)?i.folder:i,className:null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.category:i,smartCount:null!=(i=null!=t?t.options:t)?i.videoCount:i},data:r}))?i:""},useData:!0})},function(e,t,n){e.exports={videoList:"_3TgUv"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h3 class="m-0">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</h3>"},useData:!0})},function(e,t,n){e.exports={progressBarContainter:"_1aNlZ",progressBar:"_325nt"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="row">\r\n <div class="col-11 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBarContainter:i,t))+' pl-0">\r\n <div class="progress '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'">\r\n <div class="progress-bar '+l(a(null!=(i=null!=t?t.options:t)?i.background:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'" role="progressbar" aria-valuenow="'+l(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n </div>\r\n </div>\r\n <div class="col-1 pr-0">\r\n <span class="float-right progress-text">'+l(a(null!=(i=null!=t?t.options:t)?i.progress:i,t))+"%</span>\r\n </div>\r\n</div>\r\n\r\n"},useData:!0})},function(e,t,n){e.exports={circle:"_3iX0l",extraText:"_1nYnx",progressCircleContainer:"_2l1Al",progressCircle:"_1RbA5"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.extraText:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.circle:i,t))+" "+l(a(null!=(i=null!=t?t.options:t)?i.class:i,t))+'">\r\n <span>\r\n <span class="progress-circle-text">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"progress",{name:"lang",hash:{percentage:null!=(i=null!=t?t.options:t)?i.percentage:i},data:r}))+"</span>\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.text:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </span>\r\n\r\n <svg class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircleContainer:i,t))+'">\r\n <circle class="progress-circle '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircle:i,t))+'" transform=\'rotate(270 160 0)\' stroke-width="28" fill="transparent" r="150">\r\n </svg>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i=e.lambda,a=e.escapeExpression;return' <div class="d-flex py-1">\r\n <div class="custom-control custom-checkbox">\r\n <input id="'+a(i(null!=t?t.id:t,t))+'-option" name="checkbox-'+a(i(null!=t?t.id:t,t))+'" type="checkbox" class="custom-control-input cursor-pointer">\r\n <label class="custom-control-label cursor-pointer" for="'+a(i(null!=t?t.id:t,t))+'-option"> </label>\r\n </div>\r\n <label for="'+a(i(null!=t?t.id:t,t))+'-option">'+a(i(null!=t?t.labelText:t,t))+"</label>\r\n </div> \r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<h1 class="h5 py-1 mx-2">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+'</h1>\r\n<div class="dropdown-divider"></div>\r\n<p class="m-2 mt-0">'+s((n.lang||t&&t.lang||l).call(a,"options",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n<div class="mx-2 options">\r\n'+(null!=(i=n.each.call(a,null!=(i=null!=t?t.options:t)?i.reportOptions:i,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="dropdown-divider"></div>\r\n<div class="mr-3">\r\n <button class="btn btn-primary w-100 mx-2 generate-report" disabled>'+s((n.lang||t&&t.lang||l).call(a,"generate",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.generateReport:i,t))+' mr-2"\r\n>\r\n <div class="btn btn-link border px-2 my-2">\r\n '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generateReport",{name:"lang",hash:{},data:r}))+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(e,t,n){e.exports={generateReport:"_2PRgW"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="p-3 pl-5 pr-5">\r\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.migrationSyncContainer:i,t))+' pt-2 pb-4">\r\n <img src="/images/server.png" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.syncServer:i,t))+'">\r\n <img src="/images/video.png" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.syncVideo:i,t))+'">\r\n <img src="/images/cloud.png" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.syncCloud:i,t))+'">\r\n </div>\r\n\r\n <h4 class="adding-text">'+l(a(null!=(i=null!=t?t.options:t)?i.addingText:i,t))+'</h4>\r\n <div class="progress-bar-region"></div>\r\n</div>\r\n\r\n<span class="d-block text-center pb-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"keepWindowOpen",{name:"lang",hash:{},data:r}))+"</span>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <img src="/images/added.png" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' d-block p-3">\r\n <h4>'+l((n.lang||t&&t.lang||u).call(s,"heading",{name:"lang",hash:{},data:r}))+'</h4>\r\n <span class="p-2 d-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+'">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.firstTime:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+" "+l((n.lang||t&&t.lang||u).call(s,"tip1",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.publisherLink:i,t))+'">\r\n <span class="d-inline-block align-middle '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.publisherIcon:i,t))?i:"")+"</span>\r\n "+l((n.lang||t&&t.lang||u).call(s,"tip2",{name:"lang",hash:{},data:r}))+'\r\n </span>\r\n </span>\r\n <a class="btn btn-primary m-2 applink-start '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+'">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.firstTime:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.program(8,r,0),data:r}))?i:"")+" </a>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"firstTime",{name:"lang",hash:{},data:r}))+"\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"notFirstTime",{name:"lang",hash:{},data:r}))+"\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"start",{name:"lang",hash:{},data:r}))+"\r\n"},8:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"continue",{name:"lang",hash:{},data:r}))+" \r\n"},10:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <img src="/images/added-warning.png" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' d-block p-3">\r\n <h4>'+l((n.lang||t&&t.lang||u).call(s,"warningHeading",{name:"lang",hash:{},data:r}))+'</h4>\r\n <span class="p-2 d-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+'">\r\n '+(null!=(i=(n.lang||t&&t.lang||u).call(s,"issues",{name:"lang",hash:{},data:r}))?i:"")+' \r\n <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.publisherLink:i,t))+'">\r\n <span class="d-inline-block align-middle '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.publisherIcon:i,t))?i:"")+"</span>\r\n </span>\r\n "+l((n.lang||t&&t.lang||u).call(s,"tip2",{name:"lang",hash:{},data:r}))+"\r\n </span>\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.firstTime:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.program(13,r,0),data:r}))?i:"")},11:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"startOrReview",{name:"lang",hash:{reviewClasses:"applink-migration-warnings text-underline",startClasses:"btn btn-primary m-2 applink-start {{options.styles.info}}"},data:r}))?i:"")+"\r\n"},13:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"continueOrReview",{name:"lang",hash:{reviewClasses:"applink-migration-warnings text-underline",continueClasses:"btn btn-primary m-2 applink-start {{options.styles.info}}"},data:r}))?i:"")+"\r\n"},15:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <img src="/images/added-error.png" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' d-block p-3">\r\n <h4>'+l((n.lang||t&&t.lang||u).call(s,"errorsHeading",{name:"lang",hash:{},data:r}))+'</h4>\r\n <span class="p-2 d-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+'">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.successes:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=(n.lang||t&&t.lang||u).call(s,"reviews",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.warnings:i},data:r}))?i:"")+'\r\n </span>\r\n <button class="btn btn-primary m-2 applink-migration-warnings '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+'">\r\n '+l((n.lang||t&&t.lang||u).call(s,"goToReview",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n"},16:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"successes",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.successes:i},data:r}))?i:"")+" \r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showSuccess:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showWarning:i,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showError:i,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosSelected",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.selected:i},data:r}))+"\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noVideosSelected",{name:"lang",hash:{},data:r}))+"\r\n"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="p-3 w-100 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">\r\n <span class="d-inline-block">'+l((n.lang||t&&t.lang||u).call(s,"addVideos",{name:"lang",hash:{},data:r}))+'</span>\r\n</div>\r\n<div class="p-3 w-100">\r\n <h6 class="mt-1 mb-1">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.selected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' </h6>\r\n <div class="selected-video-list-region"></div>\r\n</div>\r\n<div class="py-2 px-3 w-100 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.footer:i,t))+'">\r\n <div class="row">\r\n <div class="col-4">\r\n <button class="applink-back btn btn-secondary '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'">\r\n '+l((n.lang||t&&t.lang||u).call(s,"back",{name:"lang",hash:{},data:r}))+'\r\n </button>\r\n </div>\r\n <div class="col-2 offset-6 text-right spinner-region">\r\n <button class="applink-next btn btn-primary '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.nextDisabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+">\r\n "+l((n.lang||t&&t.lang||u).call(s,"addTitles",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.selected:i},data:r}))+"\r\n </button>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'<div class="row mb-2">\r\n <h4 class="col-12">'+u((n.lang||t&&t.lang||s).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h4>\r\n</div>\r\n\r\n<div class="row">\r\n <div class="col-12">\r\n <p>\r\n '+u((n.lang||t&&t.lang||s).call(l,"toSucceed",{name:"lang",hash:{},data:r}))+'\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<div class="row mt-3 d-block p-3 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.question:i,t))+'">\r\n <p class="text-center text-white">'+u((n.lang||t&&t.lang||s).call(l,"check",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <div id="accordion">\r\n <button type="button" class="btn bg-white btn-block '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' mb-2 mt-2" data-toggle="collapse" data-target="#collapseYes" aria-expanded="true" aria-controls="collapseYes">'+u((n.lang||t&&t.lang||s).call(l,"checkConfirm",{name:"lang",hash:{},data:r}))+'</button>\r\n <div id="collapseYes" class="collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.collapse:i,t))+'" aria-labelledby="collapseYes" data-parent="#accordion">\r\n <hr>\r\n <div class="text-center '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.collapseContents:i,t))+'">\r\n <p class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bolder:i,t))+'">\r\n '+u((n.lang||t&&t.lang||s).call(l,"downloadAndRun",{name:"lang",hash:{},data:r}))+"\r\n <br>\r\n ("+u((n.lang||t&&t.lang||s).call(l,"contactAdmin",{name:"lang",hash:{},data:r}))+')\r\n </p>\r\n <a class="text-white text-center btn btn-primary" target="_blank" href='+u("function"==typeof(a=null!=(a=n.downloadUrl||(null!=t?t.downloadUrl:t))?a:s)?a.call(l,{name:"downloadUrl",hash:{},data:r}):a)+">"+u((n.lang||t&&t.lang||s).call(l,"download",{name:"lang",hash:{},data:r}))+'</a>\r\n </div>\r\n </div>\r\n\r\n <button type="button" class="btn bg-white btn-block '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' mb-2 mt-2" data-toggle="collapse" data-target="#collapseNo" aria-expanded="true" aria-controls="collapseNo">'+u((n.lang||t&&t.lang||s).call(l,"checkDecline",{name:"lang",hash:{},data:r}))+'</button>\r\n <div id="collapseNo" class="collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.collapse:i,t))+'" aria-labelledby="collapseNo" data-parent="#accordion">\r\n <hr>\r\n <div class="text-center '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.collapseContents:i,t))+'">\r\n <p class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bolder:i,t))+'">\r\n '+u((n.lang||t&&t.lang||s).call(l,"toComplete",{name:"lang",hash:{},data:r}))+'<a class="info-link" target="_blank" href="'+u(c(null!=(i=null!=t?t.options:t)?i.supportUrl:i,t))+'">'+u((n.lang||t&&t.lang||s).call(l,"helpArticle",{name:"lang",hash:{},data:r}))+"</a>.\r\n <br>\r\n "+u((n.lang||t&&t.lang||s).call(l,"contactAdmin",{name:"lang",hash:{},data:r}))+'\r\n </p>\r\n <p class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bolder:i,t))+'">\r\n '+(null!=(i=(n.lang||t&&t.lang||s).call(l,"bookAppointment",{name:"lang",hash:{appointmentUrl:null!=(i=null!=t?t.options:t)?i.appointmentUrl:i,className:"info-link"},data:r}))?i:"")+"\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<h4 class="pb-4">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+'</h4>\r\n<div class="progress-circle-region"></div>\r\n<p class="'+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+' pt-4">\r\n '+(null!=(i=(n.lang||t&&t.lang||l).call(a,"info",{name:"lang",hash:{},data:r}))?i:"")+"\r\n</p>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return' <img src="/images/warning.png" class="p-3 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.warningImage:i,t))+'">\r\n <h4>'+a((n.lang||t&&t.lang||s).call(l,"errorHeading",{name:"lang",hash:{},data:r}))+"</h4>\r\n <p>\r\n "+(null!=(i=(n.lang||t&&t.lang||s).call(l,"errorDescription",{name:"lang",hash:{},data:r}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+a((n.lang||t&&t.lang||s).call(l,"continueAnyway",{name:"lang",hash:{},data:r}))+'</a>\r\n <p class="mt-3">'+(null!=(i=(n.lang||t&&t.lang||s).call(l,"bookAnAppointment",{name:"lang",hash:{url:null!=(i=null!=t?t.options:t)?i.appointmentUrl:i,linkClasses:"info-link"},data:r}))?i:"")+"</p>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return' <img src="/images/checked.png" class="p-3 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.checkedImage:i,t))+'">\r\n <h4>'+a((n.lang||t&&t.lang||s).call(l,"completeHeading",{name:"lang",hash:{},data:r}))+"</h4>\r\n <p>\r\n "+(null!=(i=(n.lang||t&&t.lang||s).call(l,"completeBody",{name:"lang",hash:{archiveSvg:null!=(i=null!=t?t.options:t)?i.archiveSvg:i},data:r}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+a((n.lang||t&&t.lang||s).call(l,"getStarted",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.middle:i,t))+'">\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.error:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+"</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div>\r\n <img src="/images/wave.png" class="p-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'">\r\n\r\n <h4>'+l((n.lang||t&&t.lang||u).call(s,"welcome",{name:"lang",hash:{},data:r}))+'</h4>\r\n\r\n <p class="w-75 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+' mb-3 mt-3">\r\n '+l((n.lang||t&&t.lang||u).call(s,"welcomeInfo",{name:"lang",hash:{},data:r}))+'\r\n </p>\r\n\r\n <a class="btn btn-primary applink-lets-start">'+l((n.lang||t&&t.lang||u).call(s,"start",{name:"lang",hash:{},data:r}))+'</a>\r\n\r\n <p class="mt-3">\r\n '+(null!=(i=(n.lang||t&&t.lang||u).call(s,"learnMore",{name:"lang",hash:{className:"text-info",migrationUrl:null!=(i=null!=t?t.options:t)?i.migrationUrl:i},data:r}))?i:"")+"\r\n </p>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.videoDeleted:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.program(6,r,0),data:r}))?i:""},4:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"deleted",{name:"lang",hash:{},data:r}))+"\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return l((n.lang||t&&t.lang||a).call(i,"exists",{name:"lang",hash:{},data:r}))+' <a class="view-video info-link">'+l((n.lang||t&&t.lang||a).call(i,"clickHere",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){e.exports={image:"_2A7jn"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" <li>"+e.escapeExpression(e.lambda(t,t))+"</li>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="pb-3 text-center">\r\n <img src="'+l(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n</div>\r\n<p class="m-0">'+l((n.lang||t&&t.lang||u).call(s,"reportInfo1",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n"+(null!=(i=n.each.call(s,null!=(i=null!=t?t.options:t)?i.reportOptions:i,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</ul>\r\n<p class="mt-2">'+(null!=(i=(n.lang||t&&t.lang||u).call(s,"reportInfo2",{name:"lang",hash:{email:null!=(i=null!=t?t.options:t)?i.email:i},data:r}))?i:"")+"</p>\r\n"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'<div class="content-region"></div>\r\n'},3:function(e,t,n,o,r){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,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){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,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<div class="alert alert-info" role="alert">\r\n The ClickView Exchange is a community for educators, read our <a class="info-link" href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.guidelinesUrl:i,t))+'" target="_blank">community guidelines</a> and let\'s ensure that we keep the Exchange a place we\'re proud of!\r\n</div>\r\n<p>After you submit your video to the Exchange, we will review it and notify you when your video has been made available.</p>\r\n<div class="form-group">\r\n <label>Select a folder</label>\r\n <div class="folder-dropdown-region"></div>\r\n</div>\r\n'},3:function(e,t,n,o,r){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,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.foldersLoaded:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<h4 class="pb-4">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+'</h4>\r\n<div class="progress-circle-region"></div>\r\n<p class="'+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+' pt-4">\r\n '+s((n.lang||t&&t.lang||l).call(a,"body",{name:"lang",hash:{},data:r}))+"\r\n <br>\r\n "+s((n.lang||t&&t.lang||l).call(a,"note",{name:"lang",hash:{},data:r}))+"\r\n</p>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.middle:i,t))+'">\r\n <img src="/images/checked.png" class="p-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.checkedImage:i,t))+'">\r\n <h4>'+l((n.lang||t&&t.lang||u).call(s,"complete",{name:"lang",hash:{},data:r}))+"</h4>\r\n <p>\r\n "+l((n.lang||t&&t.lang||u).call(s,"newLibraryNote",{name:"lang",hash:{},data:r}))+'\r\n </p>\r\n <a class="btn btn-primary link-to-online" href="'+l(a(null!=(i=null!=t?t.options:t)?i.onlineUrl:i,t))+'" target="_blank">'+l((n.lang||t&&t.lang||u).call(s,"checkItOut",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<p class="text-uppercase text-muted">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.description:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="description-region"></div>\r\n<div class="webplayer-region col-5 pl-0"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return" <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{series:null!=t?t.series:t},data:r}))+"</span>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return" "+(null!=(i=n.if.call(a,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"folder",{name:"lang",hash:{folder:null!=t?t.category:t},data:r}))+"</span>\r\n"},4:function(e,t,n,o,r){return'<span class="mx-1">|</span>'},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="badge p-1 tool-tip '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+" "+l(a(null!=(i=null!=t?t.options:t)?i.ratingColorClass:i,t))+'" title="'+l(a(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+l(a(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\r\n"},8:function(e,t,n,o,r){var i;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:""},9:function(e,t,n,o,r){return' <div class="text-danger">'+e.escapeExpression(e.lambda(t,t))+"</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return'<div>\r\n <a class="h6">'+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+"</a>\r\n</div>\r\n<div>\r\n"+(null!=(i=n.if.call(l,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=t?t.category:t,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.each.call(l,null!=(i=null!=t?t.options:t)?i.errorStrings:i,{name:"each",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){e.exports={rating:"_3IJcl"}},function(e,t,n){e.exports={svgContainer:"_-0ibU",selectedButton:"_28zhr",showPreview:"_2r4VF"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <button class="btn btn-success use-online-copy '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectedButton:i,t))+'"><span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.checkSvg:i,t))?i:"")+"</span>"+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"resolve",{name:"lang",hash:{},data:r}))+"</button>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <button class="btn btn-link dismiss">'+l((n.lang||t&&t.lang||a).call(i,"dismiss",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="btn btn-outline-secondary use-online-copy">'+l((n.lang||t&&t.lang||a).call(i,"resolve",{name:"lang",hash:{},data:r}))+"</button>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},7:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return"<div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.selected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'</div>\r\n<div class="mt-4 cursor-pointer video-item-show-preview text-right '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\r\n <span class="svg-container d-inline-block">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\r\n "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.doNotAdd:i,t))+' text-center">\r\n <p class="mb-0 mt-3">'+(null!=(i=(n.lang||t&&t.lang||s).call(l,"willNotBeAdded",{name:"lang",hash:{videoName:null!=t?t.name:t},data:r}))?i:"")+'</p>\r\n <p class="m-0">'+a((n.lang||t&&t.lang||s).call(l,"willBeRemoved",{name:"lang",hash:{},data:r}))+'</p>\r\n <button class="btn btn-link undo">'+a((n.lang||t&&t.lang||s).call(l,"undo",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoItem:i,t))+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <div class="thumbnail-region d-inline-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metaContainer:i,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionsContainer:i,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.previewContainer:i,t))+'"></div>\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.doNotAdd:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<span class="border-right d-inline-block align-middle pr-3">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosAdded",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:r}))+"</span>\r\n"},3:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.countPhrase:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<span class="d-inline-block align-middle"><button class="btn btn-link clear-all"'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.submitDisabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+s((n.lang||t&&t.lang||l).call(a,"reset",{name:"lang",hash:{},data:r}))+'</button></span>\r\n<button class="btn btn-primary align-middle ml-2 submit" '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.submitDisabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+s((n.lang||t&&t.lang||l).call(a,"submit",{name:"lang",hash:{},data:r}))+"</button>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="m-auto text-warning '+l(e.lambda(null!=(i=null!=t?t.styles:t)?i.svgContainer:i,t))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.warningSvg||(null!=t?t.warningSvg:t))?a:u)?a.call(s,{name:"warningSvg",hash:{},data:r}):a)?i:"")+"</div>\r\n<p>\r\n <div>"+(null!=(i="function"==typeof(a=null!=(a=n.onlineCopyCountText||(null!=t?t.onlineCopyCountText:t))?a:u)?a.call(s,{name:"onlineCopyCountText",hash:{},data:r}):a)?i:"")+' will be migrated to your Library Editor ignoring all warnings.</div>\r\n <span class="text-danger">\r\n '+l("function"==typeof(a=null!=(a=n.warningText||(null!=t?t.warningText:t))?a:u)?a.call(s,{name:"warningText",hash:{},data:r}):a)+"\r\n </span>\r\n</p> \r\n"},3:function(e,t,n,o,r){var i,a;e.propertyIsEnumerable;return"<p>"+(null!=(i="function"==typeof(a=null!=(a=n.doNotAddCountText||(null!=t?t.doNotAddCountText:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"doNotAddCountText",hash:{},data:r}):a)?i:"")+" will be removed from this list and will not be added to your library.</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=t?t.onlineCopyCount:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=t?t.doNotAddCount:t,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return' <h2 class="h3">'+s((n.lang||t&&t.lang||l).call(a,"couldNotBeMigrated",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.items:i},data:r}))+'</h2>\r\n <p class="mb-1">'+s((n.lang||t&&t.lang||l).call(a,"ensureValidity",{name:"lang",hash:{},data:r}))+'</p>\r\n <p class="mb-2"><a href="'+s(e.lambda(null!=(i=null!=t?t.options:t)?i.supportArticle:i,t))+'" target="_blank" class="text-info">'+s((n.lang||t&&t.lang||l).call(a,"moreInfo",{name:"lang",hash:{},data:r}))+'</a></p>\r\n <button class="approve-all btn btn-success d-inline-block mr-2" type="button">'+s((n.lang||t&&t.lang||l).call(a,"resolve",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="do-not-add btn btn-link d-inline-block" type="button">'+s((n.lang||t&&t.lang||l).call(a,"dismiss",{name:"lang",hash:{},data:r}))+"</button>\r\n"},3:function(e,t,n,o,r){return""},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="tab-region '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tabsContainer:i,t))+' border-bottom"></div>\r\n<div class="p-3 border-bottom '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.headingContainer:i,t))+'">\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.items:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'</div>\r\n<div class="videos-region '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoContainer:i,t))+'"></div>\r\n<div class="footer-region"></div>\r\n'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return"<h3>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"header",{name:"lang",hash:{},data:r}))+'</h3>\r\n<div class="filters-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="results-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="header-region"></div>\r\n<div class="results-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" text-muted"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<h6 class="mb-1">'+s(l(null!=(i=null!=t?t.video:t)?i.name:i,t))+'</h6>\r\n<p class="m-0">'+s((n.lang||t&&t.lang||c).call(u,"request",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))+'</p>\r\n<time class="m-0'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" datetime='+s("function"==typeof(a=null!=(a=n.dateCreated||(null!=t?t.dateCreated:t))?a:c)?a.call(u,{name:"dateCreated",hash:{},data:r}):a)+">"+s(l(null!=(i=null!=t?t.options:t)?i.dateRequested:i,t))+"</time"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.sourceFolder:t)?i.name:i,t))+"</span>\r\n"},3:function(e,t,n,o,r){return' <div class="form-group m-0 pb-2">\r\n <div class="library-select-region"></div>\r\n </div> \r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+s((n.lang||t&&t.lang||l).call(a,"source",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n <span class="badge p-1 mr-1 '+s(u(null!=(i=null!=t?t.options:t)?i.sourceClass:i,t))+'">'+s(u(null!=(i=null!=t?t.options:t)?i.sourceLibraryName:i,t))+"</span>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.sourceFolder:t)?i.name:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-success btn-sm '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' approve" type="button">'+s((n.lang||t&&t.lang||l).call(a,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="btn btn-light btn-sm border-secondary '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' reject" type="button">'+s((n.lang||t&&t.lang||l).call(a,"reject",{name:"lang",hash:{},data:r}))+'</button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+s((n.lang||t&&t.lang||l).call(a,"moveVideo",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showLibrarySelect:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="form-group m-0">\r\n <div class="folder-select-region"></div>\r\n </div> \r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="border-bottom">\r\n <div class="d-inline-block mr-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+l(a(null!=(i=null!=t?t.options:t)?i.avatarUrl:i,t))+'\')">\r\n  \r\n </div>\r\n <div class="d-inline-block">\r\n <p>'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"requestNote",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))?i:"")+'</p>\r\n <p class="pl-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.message:i)?i.message:i,t))+"</p>\r\n </div> \r\n</div>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="badge p-1 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="request-action-region"></div>\r\n<div class="p-3">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.message:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-preview-region responsize-img col-7 pt-3 pb-2 px-0">\r\n <img class="img-fluid cursor-pointer" src="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.video:t)?i.thumbnail:i)?i.url:i,t))+'"/>\r\n</div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-info-region py-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_2c8zD",message:"EQzqm",interactive:"mnE2L"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=e.lambda;return'<div class="border-bottom">\r\n <h1 class="h3 p-3 m-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"staffRequests",{name:"lang",hash:{},data:r}))+'</h1>\r\n</div>\r\n<div class="request-list-region border-right d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestList:i,t))+'"></div><div class="request-details-region border-left d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestDetails:i,t))+'"></div>\r\n<div class="empty-region"></div>'},useData:!0})},function(e,t,n){e.exports={requestList:"_3DFfh",requestDetails:"_2ezub"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return"<p><strong>"+a(e.lambda(null!=(i=null!=t?t.video:t)?i.name:i,t))+"</strong> "+a((n.lang||t&&t.lang||s).call(l,"notAddedToLibrary",{name:"lang",hash:{},data:r}))+'</p>\r\n<div class="form-group">\r\n <label for="message">'+a((n.lang||t&&t.lang||s).call(l,"provideMessageForUser",{name:"lang",hash:{lastName:null!=(i=null!=t?t.user:t)?i.surname:i,firstName:null!=(i=null!=t?t.user:t)?i.username:i},data:r}))+'</label>\r\n <textarea class="form-control" id="message" name="message" autofocus></textarea>\r\n <div class="form-feedback"></div>\r\n</div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"approveDescription",{name:"lang",hash:{videoName:null!=(i=null!=t?t.options:t)?i.videoName:i,folderName:null!=(i=null!=t?t.options:t)?i.folderName:i,libraryName:null!=(i=null!=t?t.options:t)?i.libraryName:i},data:r}))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\r\n <h1>'+s((n.lang||t&&t.lang||l).call(a,"uploadVideos",{name:"lang",hash:{},data:r}))+'</h1>\r\n <div class="my-3">\r\n <img src="/images/upload/upload-vid@2x.png" class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.uploadImage:i,t))+'" />\r\n </div>\r\n <div>\r\n <button class="btn btn-primary choose-files">'+s((n.lang||t&&t.lang||l).call(a,"chooseVideo",{name:"lang",hash:{},data:r}))+"</button>\r\n </div>\r\n <div>\r\n <span>"+s((n.lang||t&&t.lang||l).call(a,"dragDrop",{name:"lang",hash:{},data:r}))+'</span>\r\n </div>\r\n</div>\r\n<div class="p-3 bg-white container-fluid">\r\n <div class="row">\r\n <div class="col-4">\r\n <h4>'+s((n.lang||t&&t.lang||l).call(a,"help",{name:"lang",hash:{},data:r}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ul>\r\n <li><a class="info-link" href="'+s(u(null!=(i=null!=t?t.options:t)?i.uploadArticleUrl:i,t))+'" target="_blank">'+s((n.lang||t&&t.lang||l).call(a,"instructionsHeading",{name:"lang",hash:{},data:r}))+'</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="col-8">\r\n <h4>'+s((n.lang||t&&t.lang||l).call(a,"termsHeading",{name:"lang",hash:{},data:r}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ol>\r\n <li>'+s((n.lang||t&&t.lang||l).call(a,"term1",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+s((n.lang||t&&t.lang||l).call(a,"term2",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+(null!=(i=(n.lang||t&&t.lang||l).call(a,"term3",{name:"lang",hash:{classNames:null!=(i=null!=t?t.options:t)?i.classNames:i,uploadTermsUrl:null!=(i=null!=t?t.options:t)?i.uploadTermsUrl:i},data:r}))?i:"")+"</li>\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={uploadImage:"_2qNTM"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="top-actions-region"></div>\r\n<div class="videos-region"></div>\r\n<div class="bottom-actions-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return'<div class="finish-button-region"></div>\r\n<button class="btn btn-secondary float-right add-more-videos">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMore",{name:"lang",hash:{},data:r}))+"</button>"},useData:!0})},function(e,t,n){e.exports={requiredStar:"_3m_pH"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requiredStar:i,t))+'">*</span>'},3:function(e,t,n,o,r){return' <div class="library-select-region form-group col-6"></div>\r\n'},5:function(e,t,n,o,r){return"col-6"},7:function(e,t,n,o,r){return"col-12"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"uploadDestination",{name:"lang",hash:{},data:r}))+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=t?t.options:t)?i.requiredFields:i)?i.uploadDestination:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</h5>\r\n <div class="container-fluid px-0">\r\n <div class="row">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="folder-select-region form-group '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+'"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="progress-bar bg-info" style="width: '+s("function"==typeof(i=null!=(i=n.progress||(null!=t?t.progress:t))?i:l)?i.call(a,{name:"progress",hash:{},data:r}):i)+'%" aria-valuenow="'+s("function"==typeof(i=null!=(i=n.progress||(null!=t?t.progress:t))?i:l)?i.call(a,{name:"progress",hash:{},data:r}):i)+'" aria-valuemin="0" aria-valuemax="100"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hideMetadata",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMetadata",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="upload-title-region"></div>\r\n<div class="container-fluid border-bottom">\r\n <div class="row">\r\n <div class="col-4 p-3">\r\n <div class="thumbnail-region"></div>\r\n <div class="upload-progress-region"></div>\r\n <div class="my-3">\r\n <h5 class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.title:i,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(s,{name:"name",hash:{},data:r}):a)+'</h5>\r\n <div class="text-progress-region"></div>\r\n <button class="btn btn-secondary cancel-upload">'+l((n.lang||t&&t.lang||u).call(s,"cancel",{name:"lang",hash:{},data:r}))+'</button>\r\n </div>\r\n\r\n </div>\r\n <div class="col-8 py-3 pr-3">\r\n <div class="video-details-region"></div>\r\n <div class="folder-select-region"></div>\r\n <div class="additional-info-region"></div>\r\n <div class="production-info-region"></div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="p-2 text-center">\r\n <button class="add-advanced-metadata btn btn-link">'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showAdvanced:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+"</a>\r\n</div>"},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploading",{name:"lang",hash:{percentage:null!=(i=null!=t?t.options:t)?i.percentage:i},data:r}))},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h1>"+s((n.lang||t&&t.lang||l).call(a,"inLibrary",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:r}))+'</h1>\r\n<div class="my-3">\r\n <img src="/images/upload/upload-completed@2x.png" class="'+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.completeImage:i,t))+'"/>\r\n</div>\r\n<p>'+s((n.lang||t&&t.lang||l).call(a,"isProcessing",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:r}))+'</p>\r\n<a class="back-to-library-applink btn btn-primary">'+s((n.lang||t&&t.lang||l).call(a,"back",{name:"lang",hash:{},data:r}))+"</a>"},useData:!0})},function(e,t,n){e.exports={completeImage:"_1LiuD"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a class="d-inline-block ml-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" href="'+l(a(null!=(i=null!=t?t.options:t)?i.supportUrl:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="pl-3 pt-3 pr-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-3 border-bottom">\r\n <h1 class="h3 d-inline-block m-0">'+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:r}))+" </h1>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.supportUrl:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <p class="py-3 m-0">\r\n '+s((n.lang||t&&t.lang||l).call(a,"description",{name:"lang",hash:{},data:r}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="left-nav-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.leftNav:i,t))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="top-banner-region"></div>\r\n<div class="page-header-region"></div>\r\n<div class="top-nav-region bg-white '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.topNav:i,t))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sizingBox:i,t))+'">\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLeftNav:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="'+l(a(null!=(i=null!=t?t.options:t)?i.contentBoxClassName:i,t))+'">\r\n <div class="content-region container px-0 '+l(a(null!=(i=null!=t?t.options:t)?i.contentContainerClassName:i,t))+'"></div>\r\n <div class="container page-footer-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="popup-region"></div>\r\n<div class="alert-region '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBox:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.alertBoxWithIntercom:i,t))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(e,t,n){e.exports={banner:"_1kvBB"}},function(e,t,n){var o=n(4);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return'title="'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:r}))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="py-2 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.banner:i,t))+'">\r\n '+a((n.lang||t&&t.lang||s).call(l,"previewingNew",{name:"lang",hash:{},data:r}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+a((n.lang||t&&t.lang||s).call(l,"makeAvailable",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>"},useData:!0})},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.default.tokenize(e),r=[],a=[];for(n=new s(n),t=0;t<o.length;t++){var f=o[t];if("StartTag"!==f.type)if("Chars"===f.type){var h=u(f.chars,n);r.push.apply(r,h)}else r.push(f);else{r.push(f);var d=f.tagName.toUpperCase(),y="A"===d||l.contains(n.ignoreTags,d);if(!y)continue;var g=r.length;c(d,o,++t,r),t+=r.length-g-1}}for(t=0;t<r.length;t++){var m=r[t];switch(m.type){case"StartTag":var b="<"+m.tagName;if(m.attributes.length>0){var v=p(m.attributes);b+=" "+v.join(" ")}b+=">",a.push(b);break;case"EndTag":a.push("</"+m.tagName+">");break;case"Chars":a.push(m.chars);break;case"Comment":a.push("\x3c!--"+m.chars+"--\x3e")}}return a.join("")};var o,r=n(633),i=(o=r)&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(636));var l=a.options,s=l.Options;function u(e,t){for(var n=a.tokenize(e),o=[],r=0;r<n.length;r++){var i=n[r];if("nl"===i.type&&t.nl2br)o.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&t.check(i)){var l=t.resolve(i),s=l.formatted,u=l.formattedHref,c=l.tagName,p=l.className,f=l.target,h=l.attributes,d=[["href",u]];for(var y in p&&d.push(["class",p]),f&&d.push(["target",f]),h)d.push([y,h[y]]);o.push({type:"StartTag",tagName:c,attributes:d,selfClosing:!1}),o.push({type:"Chars",chars:s}),o.push({type:"EndTag",tagName:c})}else o.push({type:"Chars",chars:i.toString()})}return o}function c(e,t,n,o){for(var r=1;n<t.length&&r>0;){var i=t[n];"StartTag"===i.type&&i.tagName.toUpperCase()===e?r++:"EndTag"===i.type&&i.tagName.toUpperCase()===e&&r--,o.push(i),n++}return o}function p(e){for(var t=[],n=0;n<e.length;n++){var o=e[n],r=o[0],i=o[1];t.push(r+'="'+i.replace(/"/g,""")+'"')}return t}},function(e,t,n){"use strict";t.__esModule=!0;var o=s(n(101)),r=s(n(102)),i=s(n(103)),a=s(n(104)),l=s(n(635));function s(e){return e&&e.__esModule?e:{default:e}}var u={HTML5NamedCharRefs:o.default,EntityParser:r.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:l.default};t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.isSpace=function(e){return o.test(e)},t.isAlpha=function(e){return r.test(e)},t.preprocessInput=function(e){return e.replace(i,"\n")};var o=/[\t\n\f ]/,r=/[A-Za-z]/,i=/\r\n?/g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return new o.default(new r.default(i.default),t).tokenize(e)};var o=a(n(104)),r=a(n(102)),i=a(n(101));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var o=n(42),r=l(n(637)),i=l(n(638)),a=l(n(639));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var s=function(e){return a.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(e),o=[],r=0;r<n.length;r++){var i=n[r];!i.isLink||t&&i.type!==t||o.push(i.toObject())}return o},t.inherits=o.inherits,t.options=r,t.parser=a,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=s},function(e,t,n){"use strict";t.__esModule=!0;var o="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},r={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:r.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:r.events,this.format=e.hasOwnProperty("format")?e.format:r.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:r.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:r.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:r.tagName,this.target=e.hasOwnProperty("target")?e.target:r.target,this.validate=e.hasOwnProperty("validate")?e.validate:r.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||r.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||r.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:r.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=r,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":o(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:r[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var o=this[e];return"function"==typeof o?o(t,n.type):o}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var o=n(105),r=n(64),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),l="0123456789".split(""),s="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ",""],c=[],p=function(e){return new o.CharacterState(e)},f=p(),h=p(r.NUM),d=p(r.DOMAIN),y=p(),g=p(r.WS);f.on("@",p(r.AT)).on(".",p(r.DOT)).on("+",p(r.PLUS)).on("#",p(r.POUND)).on("?",p(r.QUERY)).on("/",p(r.SLASH)).on("_",p(r.UNDERSCORE)).on(":",p(r.COLON)).on("{",p(r.OPENBRACE)).on("[",p(r.OPENBRACKET)).on("<",p(r.OPENANGLEBRACKET)).on("(",p(r.OPENPAREN)).on("}",p(r.CLOSEBRACE)).on("]",p(r.CLOSEBRACKET)).on(">",p(r.CLOSEANGLEBRACKET)).on(")",p(r.CLOSEPAREN)).on("&",p(r.AMPERSAND)).on([",",";","!",'"',"'"],p(r.PUNCTUATION)),f.on("\n",p(r.NL)).on(u,g),g.on(u,g);for(var m=0;m<a.length;m++){var b=(0,o.stateify)(a[m],f,r.TLD,r.DOMAIN);c.push.apply(c,b)}var v=(0,o.stateify)("file",f,r.DOMAIN,r.DOMAIN),w=(0,o.stateify)("ftp",f,r.DOMAIN,r.DOMAIN),S=(0,o.stateify)("http",f,r.DOMAIN,r.DOMAIN),k=(0,o.stateify)("mailto",f,r.DOMAIN,r.DOMAIN);c.push.apply(c,v),c.push.apply(c,w),c.push.apply(c,S),c.push.apply(c,k);var O=v.pop(),C=w.pop(),E=S.pop(),_=k.pop(),T=p(r.DOMAIN),P=p(r.PROTOCOL),x=p(r.MAILTO);C.on("s",T).on(":",P),E.on("s",T).on(":",P),c.push(T),O.on(":",P),T.on(":",P),_.on(":",x);var I=(0,o.stateify)("localhost",f,r.LOCALHOST,r.DOMAIN);c.push.apply(c,I),f.on(l,h),h.on("-",y).on(l,h).on(s,d),d.on("-",y).on(s,d);for(var L=0;L<c.length;L++)c[L].on("-",y).on(s,d);y.on("-",y).on(l,d).on(s,d),f.defaultTransition=p(r.SYM);var j=f;t.State=o.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,o=[],r=0;r<n;){for(var i=f,a=null,l=0,s=null,u=-1;r<n&&(a=i.next(t[r]));)(i=a).accepts()?(u=0,s=i):u>=0&&u++,l++,r++;if(!(u<0)){r-=u,l-=u;var c=s.emit();o.push(new c(e.substr(r-l,l)))}}return o},t.start=j},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var o=n(105),r=n(640),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(64);var l=function(e){return new o.TokenState(e)},s=l(),u=l(),c=l(),p=l(),f=l(),h=l(),d=l(),y=l(r.URL),g=l(),m=l(r.URL),b=l(r.URL),v=l(),w=l(),S=l(),k=l(),O=l(),C=l(r.URL),E=l(r.URL),_=l(r.URL),T=l(r.URL),P=l(),x=l(),I=l(),L=l(),j=l(),R=l(),D=l(r.EMAIL),N=l(),A=l(r.EMAIL),M=l(r.MAILTOEMAIL),V=l(),U=l(),F=l(),B=l(),H=l(r.NL);s.on(a.NL,H).on(a.PROTOCOL,u).on(a.MAILTO,c).on(a.SLASH,p),u.on(a.SLASH,p),p.on(a.SLASH,f),s.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),f.on(a.TLD,b).on(a.DOMAIN,b).on(a.NUM,b).on(a.LOCALHOST,b),h.on(a.DOT,d),j.on(a.DOT,R),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),R.on(a.TLD,D).on(a.DOMAIN,j).on(a.NUM,j).on(a.LOCALHOST,j),y.on(a.DOT,d),D.on(a.DOT,R),y.on(a.COLON,g).on(a.SLASH,b),g.on(a.NUM,m),m.on(a.SLASH,b),D.on(a.COLON,N),N.on(a.NUM,A);var W=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],z=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];b.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,k).on(a.OPENPAREN,O),v.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,k).on(a.OPENPAREN,O),w.on(a.CLOSEBRACE,b),S.on(a.CLOSEBRACKET,b),k.on(a.CLOSEANGLEBRACKET,b),O.on(a.CLOSEPAREN,b),C.on(a.CLOSEBRACE,b),E.on(a.CLOSEBRACKET,b),_.on(a.CLOSEANGLEBRACKET,b),T.on(a.CLOSEPAREN,b),P.on(a.CLOSEBRACE,b),x.on(a.CLOSEBRACKET,b),I.on(a.CLOSEANGLEBRACKET,b),L.on(a.CLOSEPAREN,b),w.on(W,C),S.on(W,E),k.on(W,_),O.on(W,T),w.on(z,P),S.on(z,x),k.on(z,I),O.on(z,L),C.on(W,C),E.on(W,E),_.on(W,_),T.on(W,T),C.on(z,C),E.on(z,E),_.on(z,_),T.on(z,T),P.on(W,C),x.on(W,E),I.on(W,_),L.on(W,T),P.on(z,P),x.on(z,x),I.on(z,I),L.on(z,L),b.on(W,b),v.on(W,b),b.on(z,v),v.on(z,v),c.on(a.TLD,M).on(a.DOMAIN,M).on(a.NUM,M).on(a.LOCALHOST,M),M.on(W,M).on(z,V),V.on(W,M).on(z,V);var q=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(q,U).on(a.AT,F),y.on(q,U).on(a.AT,F),d.on(q,U),U.on(q,U).on(a.AT,F).on(a.DOT,B),B.on(q,U),F.on(a.TLD,j).on(a.DOMAIN,j).on(a.LOCALHOST,D);t.State=o.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,o=[],i=[];n<t;){for(var a=s,l=null,u=null,c=0,p=null,f=-1;n<t&&!(l=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(u=l||a.next(e[n]));)l=null,(a=u).accepts()?(f=0,p=a):f>=0&&f++,n++,c++;if(f<0)for(var h=n-c;h<n;h++)i.push(e[h]);else{i.length>0&&(o.push(new r.TEXT(i)),i=[]),n-=f,c-=f;var d=p.emit();o.push(new d(e.slice(n-c,n)))}}return i.length>0&&o.push(new r.TEXT(i)),o},t.start=s},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var o=n(106),r=n(42),i=n(64);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var l=(0,o.createTokenClass)();l.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var s=(0,r.inherits)(l,(0,o.createTokenClass)(),{type:"email",isLink:!0}),u=(0,r.inherits)(l,(0,o.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),c=(0,r.inherits)(l,(0,o.createTokenClass)(),{type:"text"}),p=(0,r.inherits)(l,(0,o.createTokenClass)(),{type:"nl"}),f=(0,r.inherits)(l,(0,o.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,o=this.v,r=[],l=0;o[l]instanceof i.PROTOCOL;)t=!0,r.push(o[l].toString().toLowerCase()),l++;for(;o[l]instanceof i.SLASH;)n=!0,r.push(o[l].toString()),l++;for(;a(o[l]);)r.push(o[l].toString().toLowerCase()),l++;for(;l<o.length;l++)r.push(o[l].toString());return r=r.join(""),t||n||(r=e+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=l,t.MAILTOEMAIL=s,t.EMAIL=u,t.NL=p,t.TEXT=c,t.URL=f},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(597),n(598),n(599),n(600),n(601),n(602),n(603),n(604),n(605),n(606),n(607),n(608),n(609),n(610),n(611),n(612),n(613),n(614),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628),n(629),n(630),n(631);var o,r,i,a,l,s=n(2),u=n(0),c={ManageLayout:"ManageLayout"},p=n(1),f={LIBRARY:"library:data:service",VIDEO:"video:data:service",MIGRATION:"migration:data:service",TAG:"tag:data:service",CHAPTER:"chapter:data:service",SERIES:"series:data:service",SEARCH:"search:data:service",STAFF_REQUEST:"staff:request:data:service",CONFIG:"config:data:service",USER:"user:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service",SETTINGS:"settings:data:service",VIDEO_UPLOAD:"video:upload:data:service",IMAGE_UPLOAD:"image:upload:data:service",CUSTOMER:"customer:data:service",EXPORT:"export:data:service",LOCAL_CACHE:"local:cache:data:service",RESTRICTED_VIDEO:"restricted:video:data:service",RATINGS:"ratings:data:service",LANGUAGE:"language:data:service",CONTENT_UPDATES:"content:updates:data:service",DOWNLOAD_PROXY:"download:proxy:data:service",RESOURCE:"resource:data:service",SUBTITLE:"subtitle:data:service",LINK:"link:data:service",COMPANY:"company:data:service",PERSON:"person:data:service",FIELDS:"fields:data:service"},h=Object.assign({PENDING_ITEMS:"pending:items:service",VIDEO_DRAG_DROP:"video:drag:drop:service",FOLDER_DRAG_DROP:"folder:drag:drop:service",SELECTED_VIDEO:"selected:video:service",FOLDER_CACHE:"folder:cache:service",LOCAL_OPTIONS:"local:options:service",VIDEO_MIXIN:"video:mixin:service",PAGE_VISIBILITY:"page:visibility:service",PAGE_TITLE:"page:title:service",CONTEXTUAL_SEARCH:"contextual:search:service"},p.SharedServiceChannels),d={ANALYTICS:"global:analytics"},y={DEFAULT:"default:application",LIBRARY_EDITOR:"library:editor:application",MIGRATION_WIZARD:"migration:wizard:application",SEARCH:"search:application",NOTIFICATIONS:"notifications:application",VIDEO_ACCESS:"video:access:application",CONTENT_UPDATES:"content:updates:application",STAFF_REQUESTS:"staff:requests:application",DASHBOARD:"dashboard:application",UPLOAD:"upload:application"};function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.MostRecent=0]="MostRecent",e[e.LeastRecent=1]="LeastRecent",e[e.AtoZ=2]="AtoZ",e[e.ZtoA=3]="ZtoA",e[e.OrderIndex=4]="OrderIndex",e[e.ProductionYear=5]="ProductionYear",e[e.Newest=6]="Newest",e[e.SeriesSort=7]="SeriesSort"}(o||(o={})),function(e){e[e.Banner=0]="Banner",e[e.VideoListHeader=1]="VideoListHeader",e[e.VideoList=2]="VideoList",e[e.VideoListWithBulkActions=3]="VideoListWithBulkActions",e[e.VideoGroupList=4]="VideoGroupList",e[e.SubFolder=5]="SubFolder",e[e.NotificationPopover=6]="NotificationPopover",e[e.StaffRequestList=7]="StaffRequestList",e[e.StaffRequestDetails=8]="StaffRequestDetails",e[e.DashboardNotifications=9]="DashboardNotifications",e[e.DashboardActionTile=10]="DashboardActionTile",e[e.SearchBar=11]="SearchBar",e[e.SearchFilter=12]="SearchFilter",e[e.PastReleasesSearchFilter=13]="PastReleasesSearchFilter",e[e.AwaitingReviewHeader=14]="AwaitingReviewHeader",e[e.VideoSidebarInfo=15]="VideoSidebarInfo",e[e.VideoBasicInfo=16]="VideoBasicInfo",e[e.VideoHeader=17]="VideoHeader",e[e.EditVideoTabs=18]="EditVideoTabs",e[e.EditVideoDetails=19]="EditVideoDetails",e[e.EditVideoChapterList=20]="EditVideoChapterList",e[e.EditVideoChaptersForm=21]="EditVideoChaptersForm",e[e.EditVideoUploadArea=22]="EditVideoUploadArea",e[e.WebPlayer=23]="WebPlayer",e[e.Share=24]="Share",e[e.PublisherArchiveSearchBar=25]="PublisherArchiveSearchBar",e[e.PublisherArchiveSectionHeader=26]="PublisherArchiveSectionHeader",e[e.PublisherArchiveLeftNav=27]="PublisherArchiveLeftNav",e[e.PublisherArchiveVideoList=28]="PublisherArchiveVideoList",e[e.PublisherArchiveStatusBar=29]="PublisherArchiveStatusBar",e[e.LeftNav=30]="LeftNav",e[e.LibraryFolders=31]="LibraryFolders",e[e.EditResourcesCVContent=32]="EditResourcesCVContent",e[e.TagFilter=33]="TagFilter",e[e.VideoItemPreview=34]="VideoItemPreview",e[e.Unselected=35]="Unselected"}(r||(r={})),function(e){e.AU="AU",e.UK="UK",e.NZ="NZ"}(i||(i={})),function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.HostedLibrary=9]="HostedLibrary"}(l||(l={}));var m,b,v,w,S,k,O,C,E,_,T,P,x,I,L,j=(g(a={},l.Unclassified,{hasYearGroups:!0}),g(a,l.Primary,{hasYearGroups:!0}),g(a,l.Secondary,{hasYearGroups:!0}),g(a,l.K12,{hasYearGroups:!0}),g(a,l.Tertiary,{hasYearGroups:!1}),g(a,l.NonEducational,{hasYearGroups:!1}),g(a,l.Partners,{hasYearGroups:!0}),g(a,l.Internal,{hasYearGroups:!0}),g(a,l.Other,{hasYearGroups:!0}),g(a,l.HostedLibrary,{hasYearGroups:!0}),a);!function(e){e[e.All=0]="All",e[e.Kindergarten=1]="Kindergarten",e[e.Year1=2]="Year1",e[e.Year2=3]="Year2",e[e.Year3=4]="Year3",e[e.Year4=5]="Year4",e[e.Year5=6]="Year5",e[e.Year6=7]="Year6",e[e.Year7=8]="Year7",e[e.Year8=9]="Year8",e[e.Year9=10]="Year9",e[e.Year10=11]="Year10",e[e.Year11=12]="Year11",e[e.Year12=13]="Year12",e[e.Year13=14]="Year13",e[e.Students=15]="Students",e[e.Staff=16]="Staff"}(m||(m={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(b||(b={})),function(e){e.StudentWorkspaceSharing="student_ws_sharing",e.StudentToStudentMessaging="student_to_student_messaging",e.HideResourcesForStudents="hide_resources_for_students",e.LibraryReview="library_review",e.SchoolMessaging="school_messaging",e.LegacyTvNaming="legacy_tv_naming",e.LegacyAlbertCustomer="legacy_albert_customer",e.HideHostedLibraries="hide_hosted_libraries",e.StaffRequest="staff_request",e.MaxCustomLibraries="max_custom_libraries",e.CustomLibrariesBetaAccess="custom_libraries_beta_access"}(v||(v={})),function(e){e[e.Private=1]="Private",e[e.SchoolOnly=2]="SchoolOnly",e[e.Public=3]="Public"}(w||(w={})),function(e){e[e.Default=0]="Default",e[e.LibraryEditor=1]="LibraryEditor",e[e.Library=2]="Library",e[e.Folder=3]="Folder",e[e.Series=4]="Series",e[e.Search=5]="Search",e[e.Notifications=6]="Notifications",e[e.VideoAccess=7]="VideoAccess",e[e.AwaitingReview=8]="AwaitingReview",e[e.PastReleases=9]="PastReleases",e[e.StaffRequests=10]="StaffRequests",e[e.StaffRequestsDashboardTile=11]="StaffRequestsDashboardTile",e[e.ContentUpdatesDashboardTile=12]="ContentUpdatesDashboardTile",e[e.ManualReviewVideos=13]="ManualReviewVideos"}(S||(S={})),function(e){e[e.Video=11]="Video",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection"}(k||(k={})),function(e){e.Folder="category",e.CategoryTree="category_tree",e.CustomLibrary="custom_library",e.HostedLibrary="hosted_library",e.Exchange="exchange",e.Workspace="workspace"}(O||(O={})),function(e){e[e.AdminOnly=0]="AdminOnly",e[e.StaffRequest=1]="StaffRequest",e[e.Teachers=2]="Teachers"}(C||(C={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars"}(E||(E={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1"}(_||(_={})),function(e){e.Guest="Guest",e.User="User",e.Admin="Admin",e.SuperAdmin="SuperAdmin",e.System="System"}(T||(T={})),function(e){e.FULL_YEAR="D MMMM YYYY",e.YEAR="YYYY"}(P||(P={})),function(e){e.FileSelect="file-select",e.DragDrop="drag-drop"}(x||(x={})),function(e){e[e.TermUpdate=1]="TermUpdate",e[e.RestrictedByAdmin=2]="RestrictedByAdmin"}(I||(I={})),function(e){e.Producer="producers",e.Director="directors",e.ProductionCompany="productionCompanies",e.Distributor="distributors"}(L||(L={}));var R,D,N="categories{libraries.typeid:".concat(k.CustomMediaObjectCollection,"}"),A={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(N,",libraries,interactives{limit:1},")+"subtitles{limit:1},resources{limit:1},links{limit:1}",HOSTED_VIDEO_COLLECTION:"series,season,rating,thumbnail,categories,libraries,channel,interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",VIDEO:"series[seasons{orderby:number}],season,rating,thumbnail,".concat(N,",producers,distributors,libraries,")+"channel,chapters{limit:100},interactives{limit:100},resources[customer],subtitles[customer],tags[customer],productionCompanies,directors,links[customer],fields",FOLDER:"banner,thumbnail",SERIES:"seasons{orderby:number}",LIBRARY_FOLDERS:"thumbnail"},M={Dashboard:{HOME:"index"},LibraryEditor:{HOME:"index",LIBRARY:"library",NEW_SUB_FOLDER:"new:sub:folder",RENAME_FOLDER:"rename:folder",MOVE_FOLDER:"move:folder",DELETE_FOLDER:"delete:folder",FOLDER:"folder",SERIES:"series",EDIT_VIDEO:"edit:video",VIDEO_DETAILS:"video:details",SAVE_VIDEO:"save:video",EDIT_VIDEO_CHAPTERS:"edit:video:chapters",EDIT_VIDEO_RESOURCES:"edit:video:resources",EDIT_RESOURCE:"edit:resource",NEW_LIBRARY:"new:library",DELETE_LIBRARY:"delete:library",RENAME_LIBRARY:"rename:library",UPLOAD_THUMBNAIL:"upload:thumbnail",UPLOAD_BANNER:"upload:banner",GENERATE_PDF:"generate:pdf",SUGGEST_AN_EDIT:"suggest:an:edit",EDIT_FOLDER_IMAGES:"edit:folder:images",SHOW_PUBLISHER_VIDEO:"show:publisher:video",EDIT_LINK:"edit:link",NEW_SEASON:"new:season",ADD_TO_EXCHANGE:"add:to:exchange"},VideoAccess:{HOME:"index"},Search:{HOME:"index"},MigrationWizard:{HOME:"index",SHOW_PUBLISHER_VIDEO:"show:publisher:video",FOLDER:"folder",SEARCH:"search",SELECTED:"selected",SMART:"smart",PROGRESS:"progress",BACKUP_WELCOME:"backup:welcome",BACKUP_DOWNLOAD:"backup:download",BACKUP_PROGRESS:"backup:progress",BACKUP_COMPLETE:"backup:complete",START_MIGRATION:"start:migration",VIDEOS_ADDED:"videos:added",REMIGRATE_VIDEO:"remigrate:video",PUBLISH_LIBRARY_PROGRESS:"publish:library:progress",PUBLISH_LIBRARY_COMPLETE:"publish:library:complete",MIGRATION_ERRORS:"migration:errors",GENERATE_CSV_REPORT:"generate:csv:report"},ContentUpdates:{HOME:"index",AWAITING_REVIEW:"awaiting:review",PAST_RELEASES:"past:releases",DISABLE_REVIEW:"disable:review",GENERATE_PDF:"generate:pdf",ADD_TO_LIBRARY:"add:to:library"},StaffRequests:{HOME:"index",EDIT_REQUEST:"edit:request",APPROVE_REQUEST:"approve:request",REJECT_REQUEST:"reject:request"},Upload:{FILE_SELECTION:"file:selection",UPLOAD_DETAILS:"upload:details",UPLOAD_COMPLETE:"upload:complete"},Default:{HOME:"index",ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error"},Shared:{SHARE_VIDEO:"share:video",MOVE_VIDEOS:"move:videos",DELETE_VIDEOS:"delete:videos",BULK_CHECKBOX_CHANGE:"bulk:checkbox:change",NEW_FOLDER:"new:folder",MANAGE_VIDEO_ACCESS:"manage:video:access",DOWNLOAD_VIDEO:"download:video",DOWNLOAD_TO_LOCAL_CACHE:"download:to:local:cache",MAKE_LIBRARY_AVAILABLE:"make:library:available"},Notifications:{HOME:"index"}},V={Filters:{OPTION_SELECTED:"option:selected",APPLY_FILTER:"apply:filter",FILTER_CHANGED:"filter:changed"},ContentUpdates:{DISABLE_REVIEW:"disable:review"},MigrationWizard:{SORT_VIDEOS:"sort:videos",TOGGLE_MIGRATED:"toggle:migrated",SELECTED_CHANGED:"selected:changed",CLOSE_BANNER:"close:banner"}};!function(e){e.Folder="folder",e.Exchange="exchange",e.HostedLibrary="hosted_library",e.CustomLibrary="custom_library",e.Workspace="workspace"}(R||(R={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season"}(D||(D={}));var U,F={FOLDER:"folder",FOLDER_VIDEOS:"folder:videos",VIDEOS:"videos",SERIES:"series",LIBRARY:"library",MOVE_VIDEOS:"move:videos",VIDEOS_BY_ID:"videos:by:id",VIDEOS_TO_REVIEW:"videos:to:review",RECENT_VIDEOS:"recent:videos",RECENT_VIDEOS_ALL_PAGES:"recent:videos:all:pages",RECENT_SUBJECTS:"recent:subjects",RESTRICTED_VIDEOS:"restricted:videos",RESTRICTED_OBJECTS:"restricted:objects",RATINGS:"ratings",CHANNELS:"channels",PRODUCERS:"producers",NOTIFICATIONS:"notifications",DISTRIBUTORS:"distributors",UPDATE_VIDEO:"update:video",UPDATE_VIDEO_THUMBNAIL:"update:video:thumbnail",DELETE_VIDEO_THUMBNAIL:"delete:video:thumbnail",UPDATE_FOLDER_BANNER:"update:folder:banner",DELETE_FOLDER_BANNER:"delete:folder:banner",DELETE_VIDEO:"delete:video",DISSOC_VIDEO:"dissoc:video",UPDATE_FIELD:"update:field",ADD_FIELD:"add:field",DELETE_FIELD:"delete:field",ASSOC_RATING:"assoc:video",DISSOC_RATING:"dissoc:rating",SEARCH_VIDEOS:"search:videos",SEARCH_FILTERS:"search:filters",SHARED_RESOURCE:"shared:resource",UPDATE_VIDEO_RESTRICTION:"update:video:restriction",SETTINGS:"settings",UPDATE_SETTING:"update:setting",GENERATE_PDF:"generate:pdf",GENERATE_COLLECTION_PDF:"generate:collection:pdf",GENERATE_CUSTOM_PDF:"generate:custom:pdf",STAFF_REQUESTS:"staff:requests",CUSTOMER_VIDEO:"customer:video",CUSTOMER_FOLDERS:"customer:folders",CUSTOMER_VIDEOS:"customer:videos",CUSTOMER_SMART_VIDEOS:"customer:smart:videos",CUSTOMER_METADATA:"customer:metadata",CLOUD_SYNC_STATUS:"cloud:sync:status",STAFF_REQUEST_BY_ID:"staff:requests:by:id",STAFF_REQUEST_MESSAGES:"staff:requests:messages",GET_TAGS:"get:tags",CREATE_TAG:"create:tag",ASSOC_TAG:"assoc:tag",DISSOC_TAG:"dissoc:tag",CREATE_SERIES:"create:series",CURRENT_USER:"currentuser",USER_BY_ID:"user:by:id",CREATE_CHAPTER:"create:chapter",UPDATE_CHAPTER:"update:chapter",DELETE_CHAPTER:"delete:chapter",CONCATENATE_CHAPTERS:"concatenate:chapters",CONCATENATE_STATUS:"concatenate:status",VIDEO_HAS_PHYSICAL_CHAPTERS:"video:has:physical:chapters",UPLOAD_IMAGE:"upload:image",FINALISATION:"finalisation",CUSTOMER:"customer",BACKUP_TOOL:"backup:tool",LOCAL_CACHE_DEVICES:"local:cache:devices",LOCAL_CACHE_DOWNLOADS:"local:cache:downloads",ADD_VIDEO_TO_LOCAL_CACHE:"add:video:to:local:cache",LOCALE:"locale",PHRASES:"phrases",SUGGEST_EDIT:"suggest:edit",UPDATE_FOLDER_THUMBNAIL:"update:folder:thumbnail",DELETE_FOLDER_THUMBNAIL:"delete:folder:thumbnail",LIBRARY_FOLDERS:"library:folders",RESOURCE:"resource",CREATE_RESOURCE:"create:resource",UPDATE_RESOURCE:"update:resource",DELETE_RESOURCE:"delete:resource",CREATE_SUBTITLE:"create:subtitle",DELETE_SUBTITLE:"delete:subtitle",LINK:"link",CREATE_LINK:"create:link",UPDATE_LINK:"update:link",DELETE_LINK:"delete:link",CREATE_COMPANY:"create:company",CREATE_PERSON:"create:person",BULK_DISSOC:"bulk:dissoc",CREATE_SEASON:"create:season"},B=n(46),H=n.n(B),W=n(28),z=n.n(W),q=n(112),G=n.n(q),Y=n(113),J=n.n(Y),K=n(65),Q=n.n(K),Z=n(66),X=n.n(Z),ee=n(114),te=n.n(ee),ne=n(47),oe=n.n(ne),re=n(115),ie=n.n(re),ae=n(67),le=n.n(ae),se=n(116),ue=n.n(se),ce=n(117),pe=n.n(ce),fe=n(33),he=n.n(fe),de=n(118),ye=n.n(de),ge=n(119),me=n.n(ge),be=n(68),ve=n.n(be),we=n(69),Se=n.n(we),ke=n(120),Oe=n.n(ke),Ce=n(121),Ee=n.n(Ce),_e=n(122),Te=n.n(_e),Pe=n(123),xe=n.n(Pe),Ie=n(124),Le=n.n(Ie),je=n(125),Re=n.n(je),De=n(126),Ne=n.n(De),Ae=n(127),Me=n.n(Ae),Ve=n(128),Ue=n.n(Ve),Fe=n(129),Be=n.n(Fe),He=n(130),We=n.n(He),ze=n(131),qe=n.n(ze),Ge=n(132),Ye=n.n(Ge),Je=n(133),Ke=n.n(Je),Qe=n(134),Ze=n.n(Qe),$e=n(135),Xe=n.n($e),et=n(136),tt=n.n(et),nt=n(137),ot=n.n(nt),rt=n(138),it=n.n(rt),at=n(70),lt=n.n(at),st=n(16),ut=n.n(st),ct=n(139),pt=n.n(ct),ft=n(140),ht=n.n(ft),dt=n(24),yt=n.n(dt),gt=n(20),mt=n.n(gt),bt=n(141),vt=n.n(bt),wt=n(142),St=n.n(wt),kt=n(143),Ot=n.n(kt),Ct=n(144),Et=n.n(Ct),_t=n(145),Tt=n.n(_t),Pt=n(25),xt=n.n(Pt),It=n(34),Lt=n.n(It),jt=n(146),Rt=n.n(jt),Dt=n(147),Nt=n.n(Dt),At=n(148),Mt=n.n(At),Vt=n(149),Ut=n.n(Vt),Ft=n(150),Bt=n.n(Ft),Ht=n(151),Wt=n.n(Ht),zt=n(152),qt=n.n(zt),Gt=n(153),Yt=n.n(Gt),Jt=n(154),Kt=n.n(Jt),Qt=n(155),Zt=n.n(Qt),$t=n(156),Xt=n.n($t),en=n(157),tn=n.n(en);function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on,rn=(nn(U={},r.VideoList,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{childOptions:{template:H.a,className:"border-bottom position-relative px-3",viewOptions:{styles:z.a}}}}),nn(U,r.VideoListWithBulkActions,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{childOptions:{template:H.a,className:"".concat(z.a.contentContainerWithBulkActions," border-bottom position-relative px-3"),viewOptions:{styles:z.a}}}}),nn(U,r.VideoGroupList,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{className:G.a.videoGroupList,childOptions:{template:H.a,className:"".concat(z.a.partialVideoItem," border-bottom position-relative px-3"),viewOptions:{styles:z.a}}}}),nn(U,r.SubFolder,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{collectionLength:1,className:"p-3 border-bottom",childOptions:{template:"<div></div>",className:"".concat(J.a.partialSubFolder," d-inline-block rounded mr-3 partial-loading-background")}}}),nn(U,r.NotificationPopover,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{collectionLength:5,childOptions:{template:Q.a,className:"px-1 py-2",viewOptions:{styles:X.a}}}}),nn(U,r.StaffRequestList,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{className:oe.a.list,collectionLength:6,childOptions:{template:te.a,className:"p-3 border-bottom ".concat(oe.a.item),viewOptions:{styles:oe.a}}}}),nn(U,r.StaffRequestDetails,{component:p.PartialLoadingComponentTypes.Component,options:{template:ie.a,className:"p-3 border-bottom ".concat(le.a.actions),viewOptions:{styles:le.a}}}),nn(U,r.DashboardNotifications,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{collectionLength:7,childOptions:{template:Q.a,className:"py-2",viewOptions:{styles:X.a}}}}),nn(U,r.DashboardActionTile,{component:p.PartialLoadingComponentTypes.Component,options:{template:ue.a,className:"d-flex flex-column align-items-end",viewOptions:{styles:pe.a}}}),nn(U,r.Banner,{component:p.PartialLoadingComponentTypes.Component,options:{template:"<div></div>",className:"".concat(he.a.banner," partial-loading-background")}}),nn(U,r.VideoListHeader,{component:p.PartialLoadingComponentTypes.Component,options:{template:ye.a,className:"px-3 py-2 border-bottom clearfix",viewOptions:{styles:me.a}}}),nn(U,r.SearchFilter,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{collectionLength:6,childOptions:{template:ve.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:Se.a}}}}),nn(U,r.PastReleasesSearchFilter,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{collectionLength:3,childOptions:{template:ve.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:Se.a}}}}),nn(U,r.AwaitingReviewHeader,{component:p.PartialLoadingComponentTypes.Component,options:{template:Rt.a,className:"p-3 border-bottom text-right",viewOptions:{styles:Nt.a}}}),nn(U,r.VideoHeader,{component:p.PartialLoadingComponentTypes.Component,options:{template:Te.a,className:"w-100 p-2",viewOptions:{styles:xe.a}}}),nn(U,r.VideoBasicInfo,{component:p.PartialLoadingComponentTypes.Component,options:{template:Le.a,viewOptions:{styles:Re.a}}}),nn(U,r.VideoSidebarInfo,{component:p.PartialLoadingComponentTypes.Component,options:{template:Oe.a,className:"pt-3 pb-3 pl-2 pr-3",viewOptions:{styles:Ee.a}}}),nn(U,r.EditVideoTabs,{component:p.PartialLoadingComponentTypes.Component,options:{template:Ne.a,className:"w-100",viewOptions:{styles:Me.a}}}),nn(U,r.EditVideoDetails,{component:p.PartialLoadingComponentTypes.Component,options:{template:Ue.a,className:"w-100",viewOptions:{styles:Be.a}}}),nn(U,r.EditVideoChapterList,{component:p.PartialLoadingComponentTypes.Component,options:{template:We.a,className:"w-100",viewOptions:{styles:qe.a}}}),nn(U,r.EditVideoChaptersForm,{component:p.PartialLoadingComponentTypes.Component,options:{template:Ye.a,className:"w-100 mt-3",viewOptions:{styles:Ke.a}}}),nn(U,r.WebPlayer,{component:p.PartialLoadingComponentTypes.Component,options:{template:Ze.a,className:"w-100",viewOptions:{styles:Xe.a}}}),nn(U,r.EditVideoUploadArea,{component:p.PartialLoadingComponentTypes.Component,options:{template:tt.a,className:"mt-3",viewOptions:{styles:ot.a}}}),nn(U,r.Share,{component:p.PartialLoadingComponentTypes.Component,options:{template:it.a,className:lt.a.container,viewOptions:{styles:lt.a}}}),nn(U,r.PublisherArchiveSearchBar,{component:p.PartialLoadingComponentTypes.Component,options:{template:'<div><h5 class="m-0">Add videos from Publisher Archive</h5></div>',className:"container col-12 m-0 p-3 ".concat(ut.a.containerWithBottomBorder)}}),nn(U,r.PublisherArchiveSectionHeader,{component:p.PartialLoadingComponentTypes.Component,options:{template:vt.a,className:"row no-gutters ".concat(Lt.a.currentHeader),viewOptions:{styles:St.a}}}),nn(U,r.PublisherArchiveLeftNav,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{collectionLength:10,childOptions:{template:Ot.a,viewOptions:{styles:Et.a}}}}),nn(U,r.PublisherArchiveVideoList,{component:p.PartialLoadingComponentTypes.Component,options:{template:pt.a,viewOptions:{styles:s.extend({},ht.a,yt.a,mt.a),videoItems:new Array(19).fill("")}}}),nn(U,r.PublisherArchiveStatusBar,{component:p.PartialLoadingComponentTypes.Component,options:{template:Tt.a,className:"p-2 w-100 ".concat(xt.a.statusBar),viewOptions:{styles:xt.a}}}),nn(U,r.LeftNav,{component:p.PartialLoadingComponentTypes.Component,options:{template:Mt.a,viewOptions:{styles:Ut.a}}}),nn(U,r.LibraryFolders,{component:p.PartialLoadingComponentTypes.ComponentCollection,options:{collectionLength:7,className:"row mt-4 pt-2",noExtraClass:!0,tagName:"div",childOptions:{template:Bt.a,className:"col-3 p-2",viewOptions:{styles:Wt.a}}}}),nn(U,r.VideoItemPreview,{component:p.PartialLoadingComponentTypes.Component,options:{className:"w-100",template:qt.a,viewOptions:{styles:Yt.a}}}),nn(U,r.EditResourcesCVContent,{component:p.PartialLoadingComponentTypes.Component,options:{className:"w-100",template:Kt.a,viewOptions:{styles:Zt.a}}}),nn(U,r.TagFilter,{component:p.PartialLoadingComponentTypes.Component,options:{template:Xt.a,viewOptions:{styles:tn.a}}}),U),an={CONTENT:"content",TOP_NAV:"topNav",PAGE_HEADER:"pageHeader",LEFT_NAV:"leftNav",POPUP:"popup",ALERT:"alert",PAGE_FOOTER:"pageFooter",HIDDEN:"hidden",TOP_BANNER:"topBanner"},ln=[an.ALERT,an.POPUP,an.HIDDEN],sn=Object.assign({Notifications:"NotificationService",PartialLoading:"PartialLoadingService",NavLock:"NavLockService",DialogHelper:"DialogHelper",Analytics:"AnalyticsService",VideoDragDrop:"VideoDragDropService",FolderDragDrop:"FolderDragDropService",SelectedVideo:"SelectedVideoService",FolderCache:"FolderCacheService",LocalOptions:"LocalOptionsService",ContextService:"ContextService",VideoMixin:"VideoMixinService",PageVisibility:"PageVisibility",PageTitle:"PageTitle",Language:"LanguageService",ContextualSearch:"ContextualSearchService",Intercom:"IntercomService"},p.SharedServices),un=Object.assign({Config:"ConfigDataService",User:"UserDataService",Customer:"CustomerDataService",Library:"LibraryDataService",Search:"SearchDataService",Notifications:"NotificationDataService",NotificationsSocket:"NotificationSocketService",Settings:"SettingsDataService",StaffRequests:"StaffRequestDataService",MigrationVideo:"MigrationVideoDataService",Tags:"TagDataService",Series:"SeriesDataService",ImageUpload:"ImageUploadDataService",Chapter:"ChapterDataService",Export:"ExportDataService",LocalCache:"LocalCacheDataService",RestrictedVideo:"RestrictedVideoDataService",Ratings:"RatingsDataService",Language:"LanguageDataService",ContentUpdates:"ContentUpdatesDataService",DownloadProxy:"DownloadProxyDataService",Resource:"ResourceDataService",Subtitle:"SubtitleDataService",Link:"LinkDataService",Company:"CompanyDataService",Person:"PersonDataService",Fields:"FieldsDataService"},p.SharedDataServices),cn={LIBRARY_EDITOR:"hc/sections/360001974533",VIDEO_ACCESS:"hc/articles/360000153947",ADD_FROM_ONLINE:"hc/articles/360011718234",UPLOAD:"hc/articles/360012069334",PUBLISHER_ARCHIVE:"hc/articles/360011150174",PBT_ERROR_CODES:"hc/articles/360012421153",MANUAL_REVIEW:"hc/en-us/articles/360020004534",LIBRARY_REVIEW:"hc/articles/360000163788",PUBLISHER_SERVER:"hc/en-us/articles/360023108873",MIGRATION_OPTIONS:"hc/en-us/articles/360023109033"};function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn,hn=(pn(on={},E.Thumbnails,{width:640,height:360}),pn(on,E.Banners,{width:1200,height:222}),on),dn=pn({},E.Thumbnails,{width:1280,height:720}),yn={EmptyStates:{Default:"/images/empty-states/illo-empty@2x.png",LibraryEditor:"/images/empty-states/no-library@2x.png",Library:"/images/empty-states/pointing-boy@2x.png",Folder:"/images/empty-states/illo-emptyfolder@2x.png",Search:"/images/empty-states/illo-no-results@2x.png",VideoAccess:"/images/empty-states/illo-empty3@2x.png",AwaitingReview:"/images/empty-states/illo-empty2@2x.png",PastReleases:"/images/empty-states/illo-empty-past-releases-large@2x.png",StaffRequests:"/images/empty-states/illo-empty@2x.png",StaffRequestsDashboardTile:"/images/empty-states/illo-empty-staffreq@2x.png",ContentUpdatesDashboardTile:"/images/empty-states/illo-empty-past-releases@2x.png"},Shared:{GeneratePdf:"/images/pdf-email-filled@2x.png",GenerateCsv:"/images/csv-email-filled.png"}},gn=n(8),mn=n.n(gn);function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vn,wn=(bn(fn={},S.Default,(function(e){return{imageUrl:yn.EmptyStates.Default,customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.LibraryEditor,(function(e){return{imageUrl:yn.EmptyStates.LibraryEditor,heading:e.options.componentOptions.heading,description:'<button class="add-library btn btn-secondary position-relative '.concat(mn.a.addLibraryButton,'">\n <span class="d-inline-block position-absolute ').concat(mn.a.addLibraryPlus,'">\n ').concat(e.options.componentOptions.plusSvg,"</span> ").concat(e.options.componentOptions.btnText,"</button>"),appLink:{".add-library":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.NEW_LIBRARY}},customClass:"".concat(mn.a.paddedContainer," bg-white"),customImageClass:mn.a.imageLarge}})),bn(fn,S.Library,(function(e){return{imageUrl:yn.EmptyStates.Library,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,appLink:{".add-folder":{application:y.LIBRARY_EDITOR,action:M.Shared.NEW_FOLDER,args:[e.options.componentOptions.libraryId]}},customClass:"".concat(mn.a.paddedContainer," bg-white"),customImageClass:mn.a.imageLarge}})),bn(fn,S.Folder,(function(e){return{imageUrl:yn.EmptyStates.Folder,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.Series,(function(e){return{imageUrl:yn.EmptyStates.Folder,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.Search,(function(e){return{imageUrl:yn.EmptyStates.Search,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.AwaitingReview,(function(e){return{imageUrl:yn.EmptyStates.AwaitingReview,heading:e.options.componentOptions.heading,description:e.options.componentOptions.description,appLink:{".disable-review":{application:y.CONTENT_UPDATES,action:M.ContentUpdates.DISABLE_REVIEW}},customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.PastReleases,(function(e){return{imageUrl:yn.EmptyStates.PastReleases,heading:e.options.componentOptions.heading,customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.StaffRequests,(function(e){return{imageUrl:yn.EmptyStates.StaffRequests,heading:e.options.componentOptions.emptyState,description:e.options.componentOptions.description,customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.VideoAccess,(function(e){return{imageUrl:yn.EmptyStates.VideoAccess,heading:e.options.componentOptions.heading,customClass:mn.a.paddedContainer,customImageClass:mn.a.imageLarge}})),bn(fn,S.StaffRequestsDashboardTile,(function(e){return{imageUrl:yn.EmptyStates.StaffRequestsDashboardTile,customImageClass:"".concat(e.options.componentOptions.imageClass," ").concat(mn.a.imageLarge)}})),bn(fn,S.ContentUpdatesDashboardTile,(function(e){return{imageUrl:yn.EmptyStates.ContentUpdatesDashboardTile,customImageClass:"".concat(e.options.componentOptions.imageClass," ").concat(mn.a.imageLarge)}})),bn(fn,S.ManualReviewVideos,(function(e){var t=u.LanguageService.getPhrase("shared.emptyState","migrationWarnings");return{imageUrl:yn.EmptyStates.Default,heading:t,customClass:"p-3",customImageClass:mn.a.imageLarge}})),fn);function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn=(Sn(vn={},v.StudentWorkspaceSharing,(function(){return u.LanguageService.getPhrase("shared.constants","studentWorkspaceSharing")})),Sn(vn,v.StudentToStudentMessaging,(function(){return u.LanguageService.getPhrase("shared.constants","studentMessaging")})),Sn(vn,v.HideResourcesForStudents,(function(){return u.LanguageService.getPhrase("shared.constants","hideResources")})),Sn(vn,v.LibraryReview,(function(){return u.LanguageService.getPhrase("shared.constants","libraryReview")})),Sn(vn,v.SchoolMessaging,(function(){return u.LanguageService.getPhrase("shared.constants","schoolMessaging")})),Sn(vn,v.StaffRequest,(function(){return u.LanguageService.getPhrase("shared.constants","staffRequests")})),vn),On={MAX_FOLDER_DEPTH:7,POPUP_FADE_TIMEOUT:0},Cn={NAME:"Webplayer"},En={CURRENT_USER:"currentUser",CONFIG:"config",VERSION:"version",LOCALE:"locale",PHRASES:"phrases",CUSTOMER_META:"customerMeta"},_n={UploadingUserContent:"terms-and-conditions/#uploading-user-content"},Tn={VERIFY_EMAIL:"/settings/account",UPLOAD_LOGO:"/settings/school"},Pn={SHORT:120,STANDARD:600},xn={generic:function(){return u.LanguageService.getPhrase("shared.constants","dataServiceErrorGeneric")},"video_forbidden.rating_access":function(){return u.LanguageService.getPhrase("shared.constants","dataServiceErrorForbiddenRatingAccess")}},In={edge:16};function Ln(e){return(Ln="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 jn(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 Rn(e,t){return!t||"object"!==Ln(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 Dn(e){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nn(e,t){return(Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var An=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Rn(this,Dn(t).call(this,u.LanguageService.getPhrase("shared.authentication","title")))}var n,o,r;return 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&&Nn(e,t)}(t,e),n=t,(o=[{key:"onDone",value:function(){u.Core.LocationUtils.Reload()}},{key:"name",get:function(){return"AuthenticationError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("shared.authentication","heading"),text:u.LanguageService.getPhrase("shared.authentication","body"),buttons:[{text:u.LanguageService.getPhrase("shared.authentication","reload"),className:"btn btn-primary",success:!0}]}}}])&&jn(n.prototype,o),r&&jn(n,r),t}(p.DialogError);function Mn(e){return(Mn="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 Vn(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 Un(e,t){return!t||"object"!==Mn(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 Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e,t){return(Bn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Hn=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=Un(this,Fn(t).call(this,u.LanguageService.getPhrase("shared.forbiddenAccess","title")))).acceptedRoles=e,o.redirectUrl=n,o}var n,o,r;return 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&&Bn(e,t)}(t,e),n=t,(o=[{key:"getRolesString",value:function(){if(1===this.acceptedRoles.length)return u.LanguageService.getPhrase("shared.forbiddenAccess","acceptedRole",{role:this.acceptedRoles[0]});if(2===this.acceptedRoles.length)return u.LanguageService.getPhrase("shared.forbiddenAccess","acceptedRoles",{role1:this.acceptedRoles[0],role2:this.acceptedRoles[1]});var e="";return s.each(this.acceptedRoles.slice(0,this.acceptedRoles.length-1),(function(t){e+=u.LanguageService.getPhrase("shared.forbiddenAccess","rolesJoin",{role:t})})),"\n ".concat(e," ").concat(u.LanguageService.getPhrase("shared.forbiddenAccess","and")," ").concat(this.acceptedRoles[this.acceptedRoles.length-1]).concat(u.LanguageService.getPhrase("shared.forbiddenAccess","s"),"\n ")}},{key:"name",get:function(){return"ForbiddenAccessError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("shared.forbiddenAccess","heading",{roles:this.getRolesString()})}},{key:"description",get:function(){return u.LanguageService.getPhrase("shared.forbiddenAccess","goToClickView",{redirectUrl:this.redirectUrl,linkClasses:"info-link"})}}])&&Vn(n.prototype,o),r&&Vn(n,r),t}(p.ErrorPageError);function Wn(e){return(Wn="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 zn(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 qn(e,t){return!t||"object"!==Wn(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 Gn(e){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yn(e,t){return(Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qn(this,Gn(t).call(this,u.LanguageService.getPhrase("shared.notFound","title")))}var n,o,r;return 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&&Yn(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"NotFoundError"}}])&&zn(n.prototype,o),r&&zn(n,r),t}(u.Core.SilentError);function Kn(e){return(Kn="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 Qn(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 Zn(e,t){return!t||"object"!==Kn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $n(e){return($n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xn(e,t){return(Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var eo=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zn(this,$n(t).call(this,u.LanguageService.getPhrase("shared.oldVersion","title",{oldVersion:e,newVersion:n})))}var n,o,r;return 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&&Xn(e,t)}(t,e),n=t,(o=[{key:"onDone",value:function(){u.Core.LocationUtils.Reload()}},{key:"name",get:function(){return"OldVersionError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("shared.oldVersion","heading"),text:u.LanguageService.getPhrase("shared.oldVersion","body"),buttons:[{text:u.LanguageService.getPhrase("shared.oldVersion","reload"),className:"btn btn-primary",success:!0}]}}}])&&Qn(n.prototype,o),r&&Qn(n,r),t}(p.DialogError);function to(e){return(to="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 no(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 oo(e,t){return!t||"object"!==to(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 ro(e){return(ro=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function io(e,t){return(io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ao=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),oo(this,ro(t).call(this,u.LanguageService.getPhrase("shared.tooManyFiles","title")))}var n,o,r;return 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&&io(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TooManyFilesError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("shared.tooManyFiles","heading"),text:u.LanguageService.getPhrase("shared.tooManyFiles","body"),buttons:[{text:u.LanguageService.getPhrase("shared.tooManyFiles","okay"),className:"btn btn-primary",success:!0}]}}}])&&no(n.prototype,o),r&&no(n,r),t}(p.DialogError);function lo(e){return(lo="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 so(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 uo(e,t){return!t||"object"!==lo(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 co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function po(e,t){return(po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fo=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=uo(this,co(t).call(this,u.LanguageService.getPhrase("shared.customerSetting","title")))).settingName=e,n}var n,o,r;return 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&&po(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"CustomerSettingError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("shared.customerSetting","heading",{settingName:kn[this.settingName]})}}])&&so(n.prototype,o),r&&so(n,r),t}(p.ErrorPageError);function ho(e){return(ho="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 yo(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 go(e,t){return!t||"object"!==ho(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 mo(e){return(mo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bo(e,t){return(bo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),go(this,mo(t).call(this,u.LanguageService.getPhrase("shared.localCacheDeviceNotFound","title")))}var n,o,r;return 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&&bo(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"LocalCacheDeviceNotFoundError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("shared.localCacheDeviceNotFound","heading"),text:u.LanguageService.getPhrase("shared.localCacheDeviceNotFound","body")}}}])&&yo(n.prototype,o),r&&yo(n,r),t}(p.DialogError);function wo(e){return(wo="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 So(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 ko(e,t){return!t||"object"!==wo(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 Oo(e){return(Oo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Co(e,t){return(Co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Eo=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ko(this,Oo(t).call(this,u.LanguageService.getPhrase("shared.emailNotVerified","title")))).onlineUrl=e,n}var n,o,r;return 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&&Co(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"EmailNotVerifiedError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("shared.emailNotVerified","heading")}},{key:"description",get:function(){var e=u.UrlHelper.safeUrlConcat(this.onlineUrl,Tn.VERIFY_EMAIL);return u.LanguageService.getPhrase("shared.emailNotVerified","verify",{url:e,linkClasses:"info-link"})}}])&&So(n.prototype,o),r&&So(n,r),t}(p.ErrorPageError);function _o(e){return(_o="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 To(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 Po(e,t){return!t||"object"!==_o(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 xo(e){return(xo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Io(e,t){return(Io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Lo,jo=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Po(this,xo(t).call(this,u.LanguageService.getPhrase("shared.noBetaAccess","title")))).marketingSiteUrl=e,n}var n,o,r;return 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&&Io(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"NoBetaAccessError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("shared.noBetaAccess","heading")}},{key:"description",get:function(){return"".concat(u.LanguageService.getPhrase("shared.noBetaAccess","body"),'\n <a href="').concat(this.marketingSiteUrl,'library-editor">').concat(u.LanguageService.getPhrase("shared.noBetaAccess","findOutMore"),"</a>")}}])&&To(n.prototype,o),r&&To(n,r),t}(p.ErrorPageError);function Ro(e){return function(t,n){var o=u.InstanceManager.getInstance(un.User),r=u.InstanceManager.getInstance(un.Settings);o.getCurrentUser((function(o){u.InstanceManager.releaseInstance(un.User),r.getSettings(o.get("customerId"),null,(function(o){u.InstanceManager.releaseInstance(un.Settings);var r=!1;e.forEach((function(e){var t=o.findWhere({name:e.name});if(!t||t.get("value")!==e.value)return r=!0,u.Core.AppLinkUtility.routingEnded(),void u.Core.ErrorHelper.throw(new fo(e.name))})),r||n(t)}))}))}}function Do(e){return function(t,n){var o=u.InstanceManager.getInstance(un.User),r=u.InstanceManager.getInstance(un.Config);o.getCurrentUser((function(o){u.InstanceManager.releaseInstance(un.User),s.contains(e,o.get("role"))?n(t):r.getConfig((function(t){u.InstanceManager.releaseInstance(un.Config),u.Core.AppLinkUtility.routingEnded(),u.Core.ErrorHelper.throw(new Hn(e,t.get("onlineUrl")))}))}))}}function No(e,t){var n=u.InstanceManager.getInstance(un.User),o=u.InstanceManager.getInstance(un.Config);n.getCurrentUser((function(n){u.InstanceManager.releaseInstance(un.User),n.get("emailVerified")?t(e):o.getConfig((function(e){u.InstanceManager.releaseInstance(un.Config),u.Core.AppLinkUtility.routingEnded(),u.Core.ErrorHelper.throw(new Eo(e.get("onlineUrl")))}))}))}function Ao(e,t){if(u.EnvironmentVariables.isDevelopment)t(e);else{var n=u.InstanceManager.getInstance(un.Settings);u.InstanceManager.getInstance(un.User).getCurrentUser((function(o){u.InstanceManager.releaseInstance(un.User),n.getSetting(o.get("customerId"),v.CustomLibrariesBetaAccess,(function(n){(u.InstanceManager.releaseInstance(un.Settings),n.get("value"))?t(e):u.InstanceManager.getInstance(un.Config).getConfig((function(e){u.InstanceManager.releaseInstance(un.Config),u.Core.AppLinkUtility.routingEnded(),u.Core.ErrorHelper.throw(new jo(e.get("marketingSiteUrl")))}))}))}))}}function Mo(e){return(Mo="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 Vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uo(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 Fo(e,t){return!t||"object"!==Mo(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 Bo(e,t,n){return(Bo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ho(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function Ho(e){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wo(e,t){return(Wo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(Lo||(Lo={}));var zo=function(e){function t(){return Vo(this,t),Fo(this,Ho(t).apply(this,arguments))}var n,o,r;return 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&&Wo(e,t)}(t,e),n=t,(o=[{key:"success",value:function(e){return Bo(Ho(t.prototype),"success",this).call(this,e)}},{key:"error",value:function(e){return Bo(Ho(t.prototype),"error",this).call(this,e)}},{key:"name",get:function(){return sn.Alerts}}])&&Uo(n.prototype,o),r&&Uo(n,r),t}(u.BaseAlertService);function qo(e){return(qo="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 Go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yo(e,t){return!t||"object"!==qo(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 Jo(e){return(Jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ko(e,t){return(Ko=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qo=function(e){function t(){return Go(this,t),Yo(this,Jo(t).apply(this,arguments))}return 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&&Ko(e,t)}(t,e),t}(u.Core.Model);function Zo(e){return(Zo="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 Xo(e,t){return!t||"object"!==Zo(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 er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nr=function(e){function t(){return $o(this,t),Xo(this,er(t).apply(this,arguments))}return 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&&tr(e,t)}(t,e),t}(u.Core.Model);function or(e){return(or="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 rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ir(e,t){return!t||"object"!==or(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 ar(e){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lr(e,t){return(lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sr=function(e){function t(){return rr(this,t),ir(this,ar(t).apply(this,arguments))}return 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&&lr(e,t)}(t,e),t}(u.Core.Model);function ur(e){return(ur="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 cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pr(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 fr(e,t){return!t||"object"!==ur(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 hr(e){return(hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e,t){return(dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yr=function(e){function t(){return cr(this,t),fr(this,hr(t).apply(this,arguments))}var n,o,r;return 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&&dr(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return fl}},{key:"comparator",get:function(){return"name"}}])&&pr(n.prototype,o),r&&pr(n,r),t}(u.Core.Collection);function gr(e){return(gr="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 mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function br(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 vr(e,t){return!t||"object"!==gr(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 wr(e){return(wr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sr(e,t){return(Sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kr=function(e){function t(){return mr(this,t),vr(this,wr(t).apply(this,arguments))}var n,o,r;return 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&&Sr(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return vl}},{key:"comparator",get:function(){return"name"}}])&&br(n.prototype,o),r&&br(n,r),t}(u.Core.Collection);function Or(e){return(Or="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 Cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(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 _r(e,t){return!t||"object"!==Or(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 Tr(e){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pr(e,t){return(Pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xr=function(e){function t(){return Cr(this,t),_r(this,Tr(t).apply(this,arguments))}var n,o,r;return 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&&Pr(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return jl}}])&&Er(n.prototype,o),r&&Er(n,r),t}(u.Core.Collection);function Ir(e){return(Ir="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 Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jr(e,t){return!t||"object"!==Ir(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 Rr(e){return(Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dr(e,t){return(Dr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nr=function(e){function t(){return Lr(this,t),jr(this,Rr(t).apply(this,arguments))}return 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&&Dr(e,t)}(t,e),t}(u.Core.Collection);function Ar(e){return(Ar="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 Mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vr(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 Ur(e,t){return!t||"object"!==Ar(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 Fr(e){return(Fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Br(e,t){return(Br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Hr=function(e){function t(){return Mr(this,t),Ur(this,Fr(t).apply(this,arguments))}var n,o,r;return 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&&Br(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return Zl}}])&&Vr(n.prototype,o),r&&Vr(n,r),t}(u.Core.Collection);function Wr(e){return(Wr="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 zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qr(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 Gr(e,t){return!t||"object"!==Wr(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 Yr(e){return(Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jr(e,t){return(Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Kr=function(e){function t(){return zr(this,t),Gr(this,Yr(t).apply(this,arguments))}var n,o,r;return 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&&Jr(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return os}}])&&qr(n.prototype,o),r&&qr(n,r),t}(u.Core.Collection);function Qr(e){return(Qr="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 Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $r(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 Xr(e,t){return!t||"object"!==Qr(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 ei(e){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ti(e,t){return(ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ni=function(e){function t(){return Zr(this,t),Xr(this,ei(t).apply(this,arguments))}var n,o,r;return 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&&ti(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return us}}])&&$r(n.prototype,o),r&&$r(n,r),t}(u.Core.Collection);function oi(e){return(oi="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 ri(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ii(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 ai(e,t){return!t||"object"!==oi(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 li(e){return(li=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function si(e,t){return(si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ui=function(e){function t(){return ri(this,t),ai(this,li(t).apply(this,arguments))}var n,o,r;return 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&&si(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return ys}}])&&ii(n.prototype,o),r&&ii(n,r),t}(u.Core.Collection);function ci(e){return(ci="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 pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fi(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 hi(e,t){return!t||"object"!==ci(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 di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yi(e,t){return(yi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gi=function(e){function t(){return pi(this,t),hi(this,di(t).apply(this,arguments))}var n,o,r;return 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&&yi(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return Ts}}])&&fi(n.prototype,o),r&&fi(n,r),t}(u.Core.Collection);function mi(e){return(mi="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 bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vi(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 wi(e,t){return!t||"object"!==mi(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 Si(e){return(Si=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Oi=function(e){function t(){return bi(this,t),wi(this,Si(t).apply(this,arguments))}var n,o,r;return 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&&ki(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return Rs}},{key:"comparator",get:function(){return"startTime"}}])&&vi(n.prototype,o),r&&vi(n,r),t}(u.Core.Collection);function Ci(e){return(Ci="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 Ei(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _i(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 Ti(e,t){return!t||"object"!==Ci(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 Pi(e){return(Pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xi(e,t){return(xi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ii=function(e){function t(){return Ei(this,t),Ti(this,Pi(t).apply(this,arguments))}var n,o,r;return 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&&xi(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return cu}}])&&_i(n.prototype,o),r&&_i(n,r),t}(u.Core.Collection);function Li(e){return(Li="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 ji(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ri(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 Di(e,t){return!t||"object"!==Li(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 Ni(e){return(Ni=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ai(e,t){return(Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Mi=function(e){function t(){return ji(this,t),Di(this,Ni(t).apply(this,arguments))}var n,o,r;return 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&&Ai(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return Ss}}])&&Ri(n.prototype,o),r&&Ri(n,r),t}(u.Core.Collection);function Vi(e){return(Vi="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 Ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fi(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 Bi(e,t){return!t||"object"!==Vi(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 Hi(e){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wi(e,t){return(Wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var zi=function(e){function t(){return Ui(this,t),Bi(this,Hi(t).apply(this,arguments))}var n,o,r;return 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&&Wi(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return ru}}])&&Fi(n.prototype,o),r&&Fi(n,r),t}(u.Core.Collection);function qi(e){return(qi="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 Gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yi(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 Ji(e,t){return!t||"object"!==qi(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 Ki(e){return(Ki=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qi(e,t){return(Qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zi=function(e){function t(){return Gi(this,t),Ji(this,Ki(t).apply(this,arguments))}var n,o,r;return 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&&Qi(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return Pu}}])&&Yi(n.prototype,o),r&&Yi(n,r),t}(u.Core.Collection);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 Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ea(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 ta(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 na(e){return(na=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oa(e,t){return(oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ra=function(e){function t(){return Xi(this,t),ta(this,na(t).apply(this,arguments))}var n,o,r;return 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&&oa(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return Du}}])&&ea(n.prototype,o),r&&ea(n,r),t}(u.Core.Collection);function ia(e){return(ia="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 aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function la(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 sa(e,t){return!t||"object"!==ia(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 ua(e){return(ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ca(e,t){return(ca=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pa=function(e){function t(){return aa(this,t),sa(this,ua(t).apply(this,arguments))}var n,o,r;return 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&&ca(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return rc}}])&&la(n.prototype,o),r&&la(n,r),t}(u.Core.Collection);function fa(e){return(fa="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 ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function da(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 ya(e,t){return!t||"object"!==fa(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 ga(e){return(ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ma(e,t){return(ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ba=function(e){function t(){return ha(this,t),ya(this,ga(t).apply(this,arguments))}var n,o,r;return 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&&ma(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return Us}}])&&da(n.prototype,o),r&&da(n,r),t}(u.Core.Collection);function va(e){return(va="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 wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sa(e,t){return!t||"object"!==va(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 ka(e){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oa(e,t){return(Oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ca=function(e){function t(){return wa(this,t),Sa(this,ka(t).apply(this,arguments))}return 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&&Oa(e,t)}(t,e),t}(u.Core.Collection);function Ea(e){return(Ea="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 Ta(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 Pa(e,t){return!t||"object"!==Ea(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 xa(e){return(xa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ia(e,t){return(Ia=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var La=function(e){function t(){return _a(this,t),Pa(this,xa(t).apply(this,arguments))}var n,o,r;return 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&&Ia(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return u.Core.Model}}])&&Ta(n.prototype,o),r&&Ta(n,r),t}(u.Core.Collection);function ja(e){return(ja="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 Ra(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(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 Na(e,t){return!t||"object"!==ja(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 Aa(e){return(Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ma(e,t){return(Ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Va=function(e){function t(){return Ra(this,t),Na(this,Aa(t).apply(this,arguments))}var n,o,r;return 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&&Ma(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return xc}}])&&Da(n.prototype,o),r&&Da(n,r),t}(u.Core.Collection);function Ua(e){return(Ua="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 Fa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ba(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 Ha(e,t){return!t||"object"!==Ua(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 Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function za(e,t){return(za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qa=function(e){function t(){return Fa(this,t),Ha(this,Wa(t).apply(this,arguments))}var n,o,r;return 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&&za(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return Bc}}])&&Ba(n.prototype,o),r&&Ba(n,r),t}(u.Core.Collection);function Ga(e){return(Ga="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 Ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ja(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 Ka(e,t){return!t||"object"!==Ga(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 Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Za(e,t){return(Za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $a=function(e){function t(){return Ya(this,t),Ka(this,Qa(t).apply(this,arguments))}var n,o,r;return 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&&Za(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return Nc}}])&&Ja(n.prototype,o),r&&Ja(n,r),t}(u.Core.Collection);function Xa(e){return(Xa="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 el(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tl(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 nl(e,t){return!t||"object"!==Xa(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 ol(e){return(ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rl(e,t){return(rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var il=function(e){function t(){return el(this,t),nl(this,ol(t).apply(this,arguments))}var n,o,r;return 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&&rl(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return ip}}])&&tl(n.prototype,o),r&&tl(n,r),t}(u.Core.Collection);function al(e){return(al="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 ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sl(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 ul(e,t){return!t||"object"!==al(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 cl(e){return(cl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pl(e,t){return(pl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fl=function(e){function t(){return ll(this,t),ul(this,cl(t).apply(this,arguments))}var n,o,r;return 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&&pl(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){if(!e.data)return e;var t=e.data;return t.children=e.children,t}},{key:"associations",get:function(){return{banner:nr,thumbnail:El,children:yr,videos:xr}}}])&&sl(n.prototype,o),r&&sl(n,r),t}(u.Core.NestedModel);function hl(e){return(hl="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 dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yl(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 gl(e,t){return!t||"object"!==hl(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 ml(e){return(ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bl(e,t){return(bl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vl=function(e){function t(){return dl(this,t),gl(this,ml(t).apply(this,arguments))}var n,o,r;return 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&&bl(e,t)}(t,e),n=t,(o=[{key:"defaults",value:function(){return{children:[],categoryTree:{}}}},{key:"parse",value:function(e){if(!e.data)return e;var t=e.data;return t.children=e.children,t}},{key:"associations",get:function(){return{children:yr,categoryTree:u.Core.Model}}}])&&yl(n.prototype,o),r&&yl(n,r),t}(u.Core.NestedModel);function wl(e){return(wl="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 Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kl(e,t){return!t||"object"!==wl(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 Ol(e){return(Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cl(e,t){return(Cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var El=function(e){function t(){return Sl(this,t),kl(this,Ol(t).apply(this,arguments))}return 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&&Cl(e,t)}(t,e),t}(u.Core.Model);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 Tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pl(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 xl(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 Il(e){return(Il=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ll(e,t){return(Ll=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jl=function(e){function t(){return Tl(this,t),xl(this,Il(t).apply(this,arguments))}var n,o,r;return 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&&Ll(e,t)}(t,e),n=t,(o=[{key:"associations",get:function(){return{rating:ql,series:Ul,season:ip,categories:yr,libraries:kr,resources:ui,interactives:gi,chapters:Oi,thumbnail:El,producers:ni,distributors:Kr,productionCompanies:qa,directors:$a,channel:Zl,tags:Ii,subtitles:pa,restrictions:ba,localCacheDownloads:ra,owner:Fu,playlist:Gu,fields:La,links:Va}}}])&&Pl(n.prototype,o),r&&Pl(n,r),t}(u.Core.NestedModel);function Rl(e){return(Rl="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 Dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(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 Al(e,t){return!t||"object"!==Rl(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 Ml(e){return(Ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vl(e,t){return(Vl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ul=function(e){function t(){return Dl(this,t),Al(this,Ml(t).apply(this,arguments))}var n,o,r;return 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&&Vl(e,t)}(t,e),n=t,(o=[{key:"associations",get:function(){return{seasons:il}}}])&&Nl(n.prototype,o),r&&Nl(n,r),t}(u.Core.NestedModel);function Fl(e){return(Fl="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 Bl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hl(e,t){return!t||"object"!==Fl(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 Wl(e){return(Wl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zl(e,t){return(zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ql=function(e){function t(){return Bl(this,t),Hl(this,Wl(t).apply(this,arguments))}return 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&&zl(e,t)}(t,e),t}(u.Core.Model);function Gl(e){return(Gl="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 Yl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jl(e,t){return!t||"object"!==Gl(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 Kl(e){return(Kl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ql(e,t){return(Ql=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zl=function(e){function t(){return Yl(this,t),Jl(this,Kl(t).apply(this,arguments))}return 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&&Ql(e,t)}(t,e),t}(u.Core.Model);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 Xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function es(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 ts(e){return(ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ns(e,t){return(ns=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var os=function(e){function t(){return Xl(this,t),es(this,ts(t).apply(this,arguments))}return 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&&ns(e,t)}(t,e),t}(u.Core.Model);function rs(e){return(rs="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 is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function as(e,t){return!t||"object"!==rs(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 ls(e){return(ls=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ss(e,t){return(ss=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var us=function(e){function t(){return is(this,t),as(this,ls(t).apply(this,arguments))}return 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&&ss(e,t)}(t,e),t}(u.Core.Model);function cs(e){return(cs="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 ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fs(e,t){return!t||"object"!==cs(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 hs(e){return(hs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ds(e,t){return(ds=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ys=function(e){function t(){return ps(this,t),fs(this,hs(t).apply(this,arguments))}return 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&&ds(e,t)}(t,e),t}(u.Core.Model);function gs(e){return(gs="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 ms(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bs(e,t){return!t||"object"!==gs(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 vs(e){return(vs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ws(e,t){return(ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ss=function(e){function t(){return ms(this,t),bs(this,vs(t).apply(this,arguments))}return 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&&ws(e,t)}(t,e),t}(u.Core.Model);function ks(e){return(ks="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 Os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cs(e,t){return!t||"object"!==ks(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 Es(e){return(Es=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _s(e,t){return(_s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ts=function(e){function t(){return Os(this,t),Cs(this,Es(t).apply(this,arguments))}return 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)}(t,e),t}(u.Core.Model);function Ps(e){return(Ps="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 xs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Is(e,t){return!t||"object"!==Ps(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 Ls(e){return(Ls=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function js(e,t){return(js=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rs=function(e){function t(){return xs(this,t),Is(this,Ls(t).apply(this,arguments))}return 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&&js(e,t)}(t,e),t}(u.Core.Model);function Ds(e){return(Ds="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 Ns(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function As(e,t){return!t||"object"!==Ds(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 Ms(e){return(Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vs(e,t){return(Vs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Us=function(e){function t(){return Ns(this,t),As(this,Ms(t).apply(this,arguments))}return 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&&Vs(e,t)}(t,e),t}(u.Core.Model);function Fs(e){return(Fs="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 Bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hs(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 Ws(e,t){return!t||"object"!==Fs(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 zs(e){return(zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qs(e,t){return(qs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gs=function(e){function t(){return Bs(this,t),Ws(this,zs(t).apply(this,arguments))}var n,o,r;return 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&&qs(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){var t=["avatar","customerLogo"],n=s.omit(e,t);return s.each(t,(function(t){s.isObject(e[t])?n[t]=e[t]:e[t]&&(n[t]={url:e[t]})})),n}},{key:"associations",get:function(){return{avatar:Qo,customerLogo:sr}}}])&&Hs(n.prototype,o),r&&Hs(n,r),t}(u.Core.NestedModel);function Ys(e){return(Ys="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 Js(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ks(e,t){return!t||"object"!==Ys(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 Qs(e){return(Qs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zs(e,t){return(Zs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $s=function(e){function t(){return Js(this,t),Ks(this,Qs(t).apply(this,arguments))}return 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&&Zs(e,t)}(t,e),t}(u.Core.Model);function Xs(e){return(Xs="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 eu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tu(e,t){return!t||"object"!==Xs(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 nu(e){return(nu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ou(e,t){return(ou=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ru=function(e){function t(){return eu(this,t),tu(this,nu(t).apply(this,arguments))}return 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&&ou(e,t)}(t,e),t}(u.Core.Model);function iu(e){return(iu="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 au(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lu(e,t){return!t||"object"!==iu(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 su(e){return(su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uu(e,t){return(uu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cu=function(e){function t(){return au(this,t),lu(this,su(t).apply(this,arguments))}return 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&&uu(e,t)}(t,e),t}(u.Core.NestedModel);function pu(e){return(pu="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 fu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hu(e,t){return!t||"object"!==pu(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 du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yu(e,t){return(yu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gu=function(e){function t(){return fu(this,t),hu(this,du(t).apply(this,arguments))}return 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&&yu(e,t)}(t,e),t}(u.Core.Model);function mu(e){return(mu="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 bu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vu(e,t){return!t||"object"!==mu(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 wu(e){return(wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Su(e,t){return(Su=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ku=function(e){function t(){return bu(this,t),vu(this,wu(t).apply(this,arguments))}return 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&&Su(e,t)}(t,e),t}(u.Core.Model);function Ou(e){return(Ou="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 Cu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eu(e,t){return!t||"object"!==Ou(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _u(e){return(_u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tu(e,t){return(Tu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pu=function(e){function t(){return Cu(this,t),Eu(this,_u(t).apply(this,arguments))}return 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&&Tu(e,t)}(t,e),t}(u.Core.Model);function xu(e){return(xu="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 Iu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lu(e,t){return!t||"object"!==xu(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 ju(e){return(ju=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ru(e,t){return(Ru=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Du=function(e){function t(){return Iu(this,t),Lu(this,ju(t).apply(this,arguments))}return 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&&Ru(e,t)}(t,e),t}(u.Core.Model);function Nu(e){return(Nu="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 Au(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mu(e,t){return!t||"object"!==Nu(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 Vu(e){return(Vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Uu(e,t){return(Uu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Fu=function(e){function t(){return Au(this,t),Mu(this,Vu(t).apply(this,arguments))}return 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&&Uu(e,t)}(t,e),t}(u.Core.Model);function Bu(e){return(Bu="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 Hu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wu(e,t){return!t||"object"!==Bu(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 zu(e){return(zu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qu(e,t){return(qu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gu=function(e){function t(){return Hu(this,t),Wu(this,zu(t).apply(this,arguments))}return 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&&qu(e,t)}(t,e),t}(u.Core.Model);function Yu(e){return(Yu="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 Ju(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ku(e,t){return!t||"object"!==Yu(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 Qu(e){return(Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zu(e,t){return(Zu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $u=function(e){function t(){return Ju(this,t),Ku(this,Qu(t).apply(this,arguments))}return 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&&Zu(e,t)}(t,e),t}(u.Core.Model);function Xu(e){return(Xu="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 ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tc(e,t){return!t||"object"!==Xu(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 nc(e){return(nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oc(e,t){return(oc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var rc=function(e){function t(){return ec(this,t),tc(this,nc(t).apply(this,arguments))}return 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&&oc(e,t)}(t,e),t}(u.Core.Model);function ic(e){return(ic="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 ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lc(e,t){return!t||"object"!==ic(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 sc(e){return(sc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uc(e,t){return(uc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cc=function(e){function t(){return ac(this,t),lc(this,sc(t).apply(this,arguments))}return 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&&uc(e,t)}(t,e),t}(u.Core.Model);function pc(e){return(pc="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 fc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hc(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 dc(e,t){return!t||"object"!==pc(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 yc(e){return(yc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gc(e,t){return(gc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mc=function(e){function t(){return fc(this,t),dc(this,yc(t).apply(this,arguments))}var n,o,r;return 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&&gc(e,t)}(t,e),n=t,(o=[{key:"associations",get:function(){return{phrases:cc}}}])&&hc(n.prototype,o),r&&hc(n,r),t}(u.Core.NestedModel);function bc(e){return(bc="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 vc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wc(e,t){return!t||"object"!==bc(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 Sc(e){return(Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kc(e,t){return(kc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Oc=function(e){function t(){return vc(this,t),wc(this,Sc(t).apply(this,arguments))}return 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&&kc(e,t)}(t,e),t}(u.Core.Model);function Cc(e){return(Cc="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 Ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _c(e,t){return!t||"object"!==Cc(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 Tc(e){return(Tc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pc(e,t){return(Pc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xc=function(e){function t(){return Ec(this,t),_c(this,Tc(t).apply(this,arguments))}return 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&&Pc(e,t)}(t,e),t}(u.Core.Model);function Ic(e){return(Ic="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 Lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jc(e,t){return!t||"object"!==Ic(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 Rc(e){return(Rc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dc(e,t){return(Dc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nc=function(e){function t(){return Lc(this,t),jc(this,Rc(t).apply(this,arguments))}return 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&&Dc(e,t)}(t,e),t}(u.Core.Model);function Ac(e){return(Ac="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 Mc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vc(e,t){return!t||"object"!==Ac(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 Uc(e){return(Uc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fc(e,t){return(Fc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Bc=function(e){function t(){return Mc(this,t),Vc(this,Uc(t).apply(this,arguments))}return 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&&Fc(e,t)}(t,e),t}(u.Core.Model);function Hc(e){return(Hc="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 Wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zc(e,t){return!t||"object"!==Hc(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 qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gc(e,t){return(Gc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yc=function(e){function t(){return Wc(this,t),zc(this,qc(t).apply(this,arguments))}return 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&&Gc(e,t)}(t,e),t}(u.Core.Model);function Jc(e){return(Jc="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 Kc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qc(e,t){return!t||"object"!==Jc(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 Zc(e){return(Zc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $c(e,t){return($c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xc=function(e){function t(){return Kc(this,t),Qc(this,Zc(t).apply(this,arguments))}return 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&&$c(e,t)}(t,e),t}(u.Core.Model);function ep(e){return(ep="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 tp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function np(e,t){return!t||"object"!==ep(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 op(e){return(op=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rp(e,t){return(rp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ip=function(e){function t(){return tp(this,t),np(this,op(t).apply(this,arguments))}return 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&&rp(e,t)}(t,e),t}(u.Core.Model),ap=n(17),lp=n.n(ap),sp=n(5),up=n(158),cp=n.n(up);function pp(e){return(pp="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 fp(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 hp(e,t){return!t||"object"!==pp(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 dp(e){return(dp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yp(e,t){return(yp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gp=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hp(this,dp(t).call(this,e))}var n,o,r;return 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&&yp(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .close":"onClickClose","click a":"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave"}}},{key:"onClick",value:function(){return this.forceFade=!0,this.triggerRemoval(),!0}},{key:"onClickClose",value:function(e){return e.stopPropagation(),this.forceFade=!0,this.triggerRemoval(),!1}},{key:"onMouseEnter",value:function(){this.forceFade||this.clearTimeout()}},{key:"onMouseLeave",value:function(){this.forceFade||this.startTimeout()}},{key:"removeAlert",value:function(){this.clearingTimeout&&sp.Radio.channel(this.options.channelName).trigger("remove:alert",this.model.get("id"))}},{key:"triggerRemoval",value:function(){var e=this;return this.$el.addClass(lp.a.removing),this.$el.addClass(lp.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return e.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var e=this,t=this.model.get("timeout")||this.options.timeout;t&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return e.triggerRemoval()}),t))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(lp.a.removing),this.$el.removeClass(lp.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case u.AlertType.Success:return p.SvgHelper.getSvg(p.cvSvgLibrary.CheckCircleOutline);case u.AlertType.Fail:case u.AlertType.Warning:return p.SvgHelper.getSvg(p.cvSvgLibrary.Warning);case u.AlertType.Info:default:return p.SvgHelper.getSvg(p.cvSvgLibrary.Info)}}},{key:"getTypeClass",value:function(){var e=this.model.get("type").toLowerCase();return"text-".concat(e)}},{key:"viewOptions",value:function(){return{styles:lp.a,typeSvg:this.getTypeSvg(),svgClass:this.getTypeClass()}}},{key:"onRender",value:function(){this.resetClassName(),this.startTimeout()}},{key:"onBeforeDestroy",value:function(){this.removeAlertFadeClasses()}},{key:"name",get:function(){return"AlertItemComponent"}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){return"bg-white mt-2 p-2 ".concat(lp.a.alertItem," show clearfix")}},{key:"template",get:function(){return cp.a}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}}])&&fp(n.prototype,o),r&&fp(n,r),t}(u.Core.Component);function mp(e){return(mp="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 bp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vp(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 wp(e,t){return!t||"object"!==mp(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 Sp(e){return(Sp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kp(e,t){return(kp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Op=function(e){function t(){return bp(this,t),wp(this,Sp(t).apply(this,arguments))}var n,o,r;return 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&&kp(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(lp.a.alertList," alert-list")}},{key:"channelName",get:function(){return u.CommonChannels.ALERT}},{key:"childView",get:function(){return gp}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&vp(n.prototype,o),r&&vp(n,r),t}(u.Core.ComponentCollection),Cp=n(159),Ep=n.n(Cp),_p=n(71),Tp=n.n(_p);function Pp(e){return(Pp="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 xp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ip(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 Lp(e,t,n){return t&&Ip(e.prototype,t),n&&Ip(e,n),e}function jp(e,t){return!t||"object"!==Pp(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 Rp(e){return(Rp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dp(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&&Np(e,t)}function Np(e,t){return(Np=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ap,Mp=function(e){function t(e){return xp(this,t),jp(this,Rp(t).call(this,e))}return Dp(t,e),Lp(t,[{key:"isSelected",value:function(){return!!this.options.selected&&(this.options.selected.application===this.model.get("application")&&this.options.selected.action===this.model.get("action"))}},{key:"getCount",value:function(){var e=this.model.get("getCount");if(s.isFunction(e))return e()}},{key:"viewOptions",value:function(){return{styles:Tp.a,count:this.getCount()}}},{key:"name",get:function(){return"TopNavigationItemComponent"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return this.isSelected()?"border-bottom border-primary text-primary nav-link ".concat(Tp.a.active):"nav-link"}},{key:"appLinks",get:function(){return{"[this]":{application:this.model.get("application"),action:this.model.get("action")}}}},{key:"template",get:function(){return Ep.a}}]),t}(u.Core.Component),Vp=function(e){function t(e){return xp(this,t),jp(this,Rp(t).call(this,e))}return Dp(t,e),Lp(t,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return Mp}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),t}(u.Core.ComponentCollection),Up=n(9),Fp="create:chapter",Bp="update:chapter",Hp="delete:chapter",Wp="cancel:chapter:edit",zp="update:chapter:time",qp="toggle:edit",Gp="merge:chapters",Yp="seek:to:chapter",Jp="save:changes",Kp="undo:changes",Qp="save:cancel",Zp="disable:save",$p="enable:save",Xp="detect:input",ef="video:list",tf="migration:video:list";!function(e){e.VideoTitle="Video Title",e.Description="Description",e.Rating="Rating",e.SeriesTitle="Series Title",e.Season="Season Number",e.EpisodeNumber="Episode Number",e.BroadcastDate="Broadcast Date",e.Channel="Channel",e.ProductionYear="Production Year",e.Distributors="Distributors",e.ProductionCompanies="Production Companies",e.Directors="Directors",e.Producers="Producers",e.Other="Other"}(Ap||(Ap={}));var nf={VideoTitle:{id:"0",name:Ap.VideoTitle,property:"name"},Description:{id:"1",name:Ap.Description,property:"description"},Rating:{id:"2",name:Ap.Rating,property:"rating.name"},SeriesTitle:{id:"3",name:Ap.SeriesTitle,property:"series.name"},Season:{id:"4",name:Ap.Season,property:"season.number"},EpisodeNumber:{id:"5",name:Ap.EpisodeNumber,property:"episodeNumber"},BroadcastDate:{id:"6",name:Ap.BroadcastDate,property:"dateBroadcast"},Channel:{id:"7",name:Ap.Channel,property:"channel.name"},ProductionYear:{id:"8",name:Ap.ProductionYear,property:"productionYear"},Distributors:{id:"9",name:Ap.Distributors,property:"distributors",collection:!0},ProductionCompanies:{id:"10",name:Ap.ProductionCompanies,property:"productionCompanies",collection:!0},Directors:{id:"11",name:Ap.Directors,property:"directors",collection:!0},Producers:{id:"12",name:Ap.Producers,property:"producers",collection:!0},Other:{id:"13",name:Ap.Other}},of=[M.LibraryEditor.EDIT_VIDEO,M.LibraryEditor.EDIT_VIDEO_CHAPTERS,M.LibraryEditor.EDIT_VIDEO_RESOURCES],rf=n(160),af=n.n(rf),lf=n(10),sf=n.n(lf);function uf(e){return(uf="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 cf(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 pf(e,t){return!t||"object"!==uf(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 ff(e){return(ff=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hf(e,t){return(hf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var df=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),pf(this,ff(t).call(this,e))}var n,o,r;return 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&&hf(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0}}}},{key:"renderDescription",value:function(){this.showChildView("description",new bF({name:"description",class:"form-control ".concat(!this.options.editable&&sf.a.disabled),placeholder:this.options.editable?u.LanguageService.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){this.showChildView("ratings",new am({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:sf.a,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?u.LanguageService.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,publisherArchiveSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails,showingSaveButton:this.options.showingSaveButton}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.stickit(),Up.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),Up.unbind(this)}},{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return af.a}},{key:"lang",get:function(){return"shared.editBasicInfo"}},{key:"channelName",get:function(){return this.options.channelName}},{key:"className",get:function(){return"edit-basic-info"}},{key:"appLinks",get:function(){return{".suggest-title":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:Ap.VideoTitle}},".suggest-description":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:Ap.Description}},".applink-publisher-video":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}}}}}])&&cf(n.prototype,o),r&&cf(n,r),t}(u.Core.Component),yf=n(6),gf=function(e){return e&&e.originalEvent&&e.originalEvent.dataTransfer&&e.originalEvent.dataTransfer.types&&s.any(e.originalEvent.dataTransfer.types,(function(e){return"Files"===e}))};function mf(e){return(mf="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 bf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vf(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 wf(e,t){return!t||"object"!==mf(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 Sf(e){return(Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kf(e,t){return(kf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Of=function(e){function t(){return bf(this,t),wf(this,Sf(t).apply(this,arguments))}var n,o,r;return 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&&kf(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(e){if(!this.locked){e.preventDefault();var t=e.originalEvent;if(gf(e)){var n=[];if(t.dataTransfer.items)for(var o=0;o<t.dataTransfer.items.length;o++)"file"===t.dataTransfer.items[o].kind&&n.push(t.dataTransfer.items[o].getAsFile());else for(var r=0;r<t.dataTransfer.files.length;r++){var i=t.dataTransfer.files[r];n.push(i)}n.length>1&&!this.options.acceptMultiple&&u.Core.ErrorHelper.throw(new ao),yf.channel(this.options.channelName).trigger(p.UploadEventNames.FILES_SELECTED,n,x.DragDrop),t.dataTransfer.items?t.dataTransfer.items.clear():t.dataTransfer.clearData()}}}},{key:"events",get:function(){return{drop:"onDrop",drag:"onDrag"}}}])&&vf(n.prototype,o),r&&vf(n,r),t}(u.Core.Behavior),Cf=n(29),Ef=n.n(Cf),_f=n(161),Tf=n.n(_f);function Pf(e){return(Pf="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 xf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function If(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 Lf(e,t){return!t||"object"!==Pf(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 jf(e){return(jf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rf(e,t){return(Rf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Df=function(e){function t(){return xf(this,t),Lf(this,jf(t).apply(this,arguments))}var n,o,r;return 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&&Rf(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,p.UploadEventNames.FILES_SELECTED,this.onDragLeave),this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(){this.locked||this.$el.removeClass(Ef.a.dragOver)}},{key:"onDragOver",value:function(e){this.locked||gf(e)&&(this.$el.addClass(Ef.a.dragOver),e.preventDefault())}},{key:"onDragLeave",value:function(){this.locked||this.$el.removeClass(Ef.a.dragOver)}},{key:"onRender",value:function(){this.$el.append(Tf()({styles:Ef.a,fileDropText:u.LanguageService.getPhrase(this.lang,"fileDrop")}))}},{key:"events",get:function(){var e,t,n,o="dragleave .".concat(Ef.a.dropArea);return n="onDragLeave",(t=o)in(e={drop:"onDrop",dragover:"onDragOver"})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},{key:"lang",get:function(){return"shared.behaviors.fileDrop"}}])&&If(n.prototype,o),r&&If(n,r),t}(u.Core.Behavior),Nf=n(162),Af=n.n(Nf);function Mf(e){return(Mf="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 Vf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ff(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 Bf(e,t){return!t||"object"!==Mf(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 Hf(e){return(Hf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wf(e,t){return(Wf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var zf=function(e){function t(){return Uf(this,t),Bf(this,Hf(t).apply(this,arguments))}var n,o,r;return 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&&Wf(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){var e;return Vf(e={},"click ".concat(this.options.buttonSelector),"onClickSelect"),Vf(e,"change .file-select","onChangeFileSelect"),e}},{key:"onClickSelect",value:function(e){this.view.$el.find(".file-select").val(null),this.view.$el.find(".file-select").click()}},{key:"onChangeFileSelect",value:function(e){var t=e.originalEvent.target.files;t&&t.length&&sp.Radio.channel(this.options.channelName).trigger(p.UploadEventNames.FILES_SELECTED,t,x.FileSelect)}},{key:"onRender",value:function(){this.$el.find(this.options.buttonSelector).after(Af()(this.options))}}])&&Ff(n.prototype,o),r&&Ff(n,r),t}(u.Core.Behavior);function qf(e){return(qf="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 Gf(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 Yf(e,t){return!t||"object"!==qf(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 Jf(e){return(Jf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kf(e,t){return(Kf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qf,Zf,$f,Xf,eh,th=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Yf(this,Jf(t).call(this))).dialogOptions=e,n.dialogOptions.result||(n.dialogOptions.result=$.Deferred()),n}var n,o,r;return 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&&Kf(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this,t=this.dialogOptions.result,n=new _F(this.dialogOptions);return yf.channel(u.CommonChannels.POPUP).trigger(u.Core.EventNames.SHOW_POPUP,n),t.always((function(){n.triggerMethod("hide"),e.destroy()}))}},{key:"name",get:function(){return sn.DialogHelper}}])&&Gf(n.prototype,o),r&&Gf(n,r),t}(u.Core.Service),nh={GetViewModel:function(e,t){var n=u.ViewModelService.get("current:bulkactions");return n.get(t)!==e&&u.ViewModelService.clear(e),n.set(t,e),u.ViewModelService.get(e)},GetSelectedIds:function(e){return s.map(nh.GetSelectedModels(e),(function(e){return e.get("id")}))},GetSelectedModels:function(e){var t=nh.GetViewModel(e.key,e.type).toJSON(),n={};if(s.isFunction(e.excludePredicate)&&(n=s.groupBy(e.collection.filter(e.excludePredicate),(function(e){return e.id}))),t.all){var o=e.collection.filter((function(e){return!1!==t[e.id]}));return s.filter(o,(function(e){return!n[e.id]}))}var r=e.collection.filter((function(e){return!0===t[e.id]}));return s.filter(r,(function(e){return!n[e.id]}))}},oh={GetCurrentSortType:function(){var e=oh.GetSortViewModel();return oh.GetSortTypeFromName(e.get("sortName"))},GetSortViewModel:function(){return u.ViewModelService.get("video:sorting",oh.GetDefaultSort())},GetFilterFromSort:function(e){switch(e){case p.SortType.MostRecent:return"orderbydesc:timestamp";case p.SortType.AtoZ:return"orderby:name";case p.SortType.ProductionYear:return"orderbydesc:productionyear";case p.SortType.Newest:return"orderbydesc:datecreated";case p.SortType.SeriesSort:return"orderby:seriessort";default:return""}},GetDefaultSort:function(){return oh.CreateSortObject(p.SortType.MostRecent)},CreateSortObject:function(e){return{sortType:e,name:oh.GetSortName(e),sortName:p.SortType[e].toLowerCase()}},CreateSortCollection:function(){var e=new u.Core.Collection;for(var t in p.SortType)"number"==typeof p.SortType[t]&&e.push(new u.Core.Model(oh.CreateSortObject(p.SortType[t])));return e},GetSortName:function(e){switch(e){case p.SortType.MostRecent:return u.LanguageService.getPhrase("shared.utils","recentlyAdded");case p.SortType.AtoZ:return u.LanguageService.getPhrase("shared.utils","atoz");case p.SortType.ProductionYear:return u.LanguageService.getPhrase("shared.utils","productionYear");case p.SortType.Newest:return u.LanguageService.getPhrase("shared.utils","newest");case p.SortType.SeriesSort:return u.LanguageService.getPhrase("shared.utils","seriesTitle");default:return""}},GetSortTypeFromName:function(e){switch(e){case"mostrecent":return p.SortType.MostRecent;case"atoz":return p.SortType.AtoZ;case"productionyear":return p.SortType.ProductionYear;case"newest":return p.SortType.Newest;case"seriessort":return p.SortType.SeriesSort;default:return p.SortType.MostRecent}},MapSortTypeToExportServiceSortType:function(e){switch(e){case p.SortType.MostRecent:return o.MostRecent;case p.SortType.AtoZ:return o.AtoZ;case p.SortType.ProductionYear:return o.ProductionYear;case p.SortType.Newest:return o.Newest;case p.SortType.SeriesSort:return o.SeriesSort;default:return o.MostRecent}}},rh=n(7),ih={mapYearGroupToName:function(e){var t=m[e],n=t.split(/(\d+)/);return n[1]?"".concat(n[0]," ").concat(n[1]," ").concat(u.LanguageService.getPhrase("shared.utils","andBelow")):e===m.All?u.LanguageService.getPhrase("shared.utils","studentsAndStaff"):t},hasRestriction:function(e){return!s.isUndefined(e.get("restrictions"))},hasAdminRestriction:function(e){var t=e.restrictions;return!!t&&!t.last().get("expiresOn")},isAwaitingReview:function(e){var t=e.restrictions;return!!t&&!!t.last().get("expiresOn")},getRestrictionMessage:function(e){return e.includes("Year")||e.includes("Kindergarten")?u.LanguageService.getPhrase("shared.utils","students",{yearGroup:e}):u.LanguageService.getPhrase("shared.utils","nonStudents",{group:e})},getReviewBadgeClassName:function(e,t,n){if(!e.restrictions||!e.restrictions.length)return"";var o=rh().add(7,"days"),r=e.restrictions.first().get("expiresOn");return rh(r).isSameOrBefore(o)?n:t},getRestrictionTooltipMessage:function(e){if(!e.restrictions)return"";if(ih.isAwaitingReview(e))return ih.getReviewTimeMessage(e);var t=e.restrictions.last(),n=ih.mapYearGroupToName(t.get("groupId"));return ih.getRestrictionMessage(n)},getReviewTimeMessage:function(e){var t=e.restrictions.first().get("expiresOn"),n=rh(t).fromNow(!0);return"".concat(n," ").concat(u.LanguageService.getPhrase("shared.utils","leftToReview"))}},ah={trimToMinutes:function(e){for(;("0"===e.charAt(0)||":"===e.charAt(0))&&e.length>5;)e=e.substr(1);return e},toSeconds:function(e){return rh.duration(e).asSeconds()},secondsToHoursFormatted:function(e){return rh.utc(1e3*e).format("HH:mm:ss")},getHoursComponent:function(e){return rh.duration(e,"seconds").hours()},getMinutesComponent:function(e){return rh.duration(e,"seconds").minutes()},getSecondsComponent:function(e){return rh.duration(e,"seconds").seconds()},millisecondsToSeconds:function(e){return e/1e3},parseTime:function(e){var t=ah.validateRawTime(e),n=t.hours,o=t.minutes,r=t.seconds,i=parseInt(n,10),a=parseInt(o,10),l=parseInt(r,10);return s.isNumber(i)||s.isNumber(a)||s.isNumber(l)?i<0||a<0||l<0?-1:ah.toSeconds("".concat(i,":").concat(a,":").concat(l)):-1},validateRawTime:function(e){var t=e.hours,n=e.minutes,o=e.seconds;return(s.isUndefined(t)||s.isNaN(t))&&(t=0),(s.isUndefined(n)||s.isNaN(t))&&(n=0),(s.isUndefined(o)||s.isNaN(t))&&(o=0),{hours:t,minutes:n,seconds:o}}},lh={getLibraryReviewOptions:function(e){return{kind:b.Permanent,name:v.LibraryReview,value:e}}},sh={isSelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=sh.getSelectedViewModel(e),o=n.get("selected")||"";return o.toString()===t.toString()},isParent:function(e,t){var n=sh.getSelectedViewModel(e).get("parents");return!!n&&!!n[t]},getSelectedViewModel:function(e){return u.ViewModelService.get("foldertreehelper:".concat(e))},deselectAll:function(e,t){t&&sh.getSelectedViewModel(e).clear()},setSelected:function(e,t,n,o){if(n&&(t instanceof u.Core.Model||(t=sh.getModelFromCollection(t,n)),t)){var r=sh.getSelectedViewModel(e);o||(sh.deselectAll(e,n),r.set("selected",t.get("id")));var i={};t.collection&&function e(t){if(t){var n=t.get("id");n!==r.get("id")&&(i[n]=!0),t.collection&&e(t.collection.parent)}}(t),r.set("parents",i)}},getSelected:function(e,t){var n=sh.getSelectedViewModel(e).get("selected");return n?sh.getModelFromCollection(n,t):null},newFolder:function(){return new fl},getModelFromCollection:function(e,t){if(!t)return null;for(var n=function t(n){if(n.get("id")&&e&&n.get("id").toString()===e.toString())return n;var o=n.children;if(!o||!o.length)return null;for(var r=0;r<o.length;r++){var i=t(o.at(r));if(i)return i}},o=0;o<t.length;o++){var r=n(t.at(o));if(r)return r}return null},getParent:function(e,t){var n=sh.getModelFromCollection(e,t);if(!n||!n.collection||!n.collection.parent)return null;var o=n.collection.parent;return o.get("type")===O.CategoryTree?o.collection.parent:o},addFolder:function(e,t,n){var o,r=n;t&&(o=sh.getModelFromCollection(t,r)),o&&(o.children||o.set("children",[]),r=o.children),r.add(e.toJSON())},addFolderToLibrary:function(e,t,n){var o=n.get(t);o&&sh.addFolder(e,o.get("id"),n)},flatten:function(e){var t=new yr(e.toJSON()),n=new u.Core.Collection,o=-1;return t.each((function e(t){var r=t.get("type")===O.Folder||t.get("type")===O.CustomLibrary;r&&(n.add(t),t.set("depth",++o)),t.children&&t.children.length&&t.children.each(e),r&&o--})),n},getFirstType:function(e,t){var n;return e.find((function e(o){return o.get("type")===t?(n=o,!0):!(!o.children||!o.children.length)&&!!o.children.find(e)})),n},getLibrary:function(e,t){var n,o=sh.getModelFromCollection(e,t);if(!o)return null;return function e(t){return t.get("type")===O.CustomLibrary?(n=t,!0):!(!t.collection||!t.collection.parent)&&e(t.collection.parent)}(o),n},isSubFolder:function(e){return!!(e&&e.collection&&e.collection.parent)&&e.collection.parent.get("type")===O.Folder},getFolderDepth:function(e,t){for(var n=sh.getModelFromCollection(e,t),o=-1;n;)n=n.collection&&n.collection.parent,o++;return o},getFolderChord:function(e){var t=e,n=[];do{n.unshift(t.get("name")),t=t.collection?t.collection.parent:null}while(t);return n.join("->")},getDepthOfChildren:function(e){var t=0;if(!e.children||!e.children.length)return t;t++;for(var n=0,o=0;o<e.children.length;o++){var r=e.children.models[o],i=sh.getDepthOfChildren(r);i>n&&(n=i)}return t+=n},calculateDestinationFolderDepth:function(e,t,n){var o=e&&sh.getDepthOfChildren(e)||0;return(n&&sh.getFolderDepth(t,n)||0)+1+o}},uh=n(163),ch=n.n(uh),ph=/&/g,fh=/\W*/g,hh=/\s+/g,dh={className:"info-link"},yh={wordsHighlighter:function(e,t){if(!e||!t||!t.length)return e;var n=yh.escapeRegExp(t.join("%&%")).split("%&%");return e.replace(new RegExp("\\b("+n.join("|")+")\\b","gi"),'<span class="highlight">$&</span>')},escapeExpression:function(e){return p.TextHelper.escapeExpression(e)},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(e){if(e)return e.toLowerCase().replace(ph,"and").replace(fh," ").trim().replace(hh,"-").substr(0,80)},linkifyText:function(e,t){if(e){var n=t?s.extend({},dh,t):dh;return ch()(e,n)}},extractKeyPhrases:function(e,t,n,o){if(!e||!t||!t.length)return[];var r,i=e.toLowerCase(),a=[],l=function(t,o){var r=t-Math.floor(n/2-o),i=r;if(i<=0)return 0;for(;" "!==e[i-1]&&i<t;)i++;if(i<t)return i;for(i=r;" "!==e[i-1]&&i>0;)i--;return i},u=function(t,o){var r=e.length,i=t+Math.floor(n/2-o),a=i;if(a>=r)return r;for(;" "!==e[a+1]&&a>t;)a--;if(a>t)return a+1;for(a=i;" "!==e[a+1]&&a<r;)a++;return a+1};s.each(t,(function(e){for(var t=e.toLowerCase(),n=i.indexOf(t);-1!==n;)a.push([l(n,e.length),u(n+e.length,e.length)]),n=i.indexOf(t,n+1)})),a=s.uniq(s.sortBy(a,(function(e){return e[0]})),!0,(function(e){return"".concat(e[0],":").concat(e[1])})),o&&(a=a.slice(0,o));do{r=!1;for(var c=0;c<a.length-1;c++)a[c][1]<a[c+1][0]||(a[c][1]=a[c+1][0]-1,r=!0)}while(r);var p=[];return s.each(a,(function(t){var n=e.slice(t[0],t[1]).trim();t[0]>0&&(n="...".concat(n)),t[1]<e.length&&(n="".concat(n,"...")),p.push(n)})),p.filter((function(e){return s.some(t,(function(t){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}))}};!function(e){e[e.SingleFile=1]="SingleFile",e[e.HasChapters=2]="HasChapters",e[e.Concatenating=3]="Concatenating",e[e.ConcatenationFailed=4]="ConcatenationFailed",e[e.New=5]="New",e[e.MediaNotFound=6]="MediaNotFound"}(Qf||(Qf={})),function(e){e[e.Link=1]="Link",e[e.Edit=2]="Edit",e[e.Disabled=3]="Disabled",e[e.Filter=4]="Filter"}(Zf||(Zf={})),function(e){e[e.Flex=1]="Flex",e[e.Vertical=2]="Vertical"}($f||($f={})),function(e){e[e.Customer=1]="Customer",e[e.ClickView=2]="ClickView"}(Xf||(Xf={})),function(e){e[e.Folder=0]="Folder",e[e.Series=1]="Series"}(eh||(eh={}));function gh(e){return e.libraries&&e.libraries.every((function(e){return e.get("type")===O.CustomLibrary}))}var mh,bh={canEditVideo:function(e){return gh(e)},canPublicShare:function(e){return gh(e)},canDownloadVideo:function(e){return e.libraries&&e.libraries.every((function(e){return e.get("type")!==O.HostedLibrary}))},canAddToExchange:function(e){return e.libraries&&e.libraries.every((function(e){return e.get("type")!==O.HostedLibrary&&e.get("type")!==O.Exchange}))},canShareVideo:function(e,t){return t===y.CONTENT_UPDATES||e.libraries&&!!e.libraries.where({type:O.CustomLibrary,status:p.CurationStatus.Published}).length},getSuggestAnEditPermissionsMessage:function(e){if(!bh.canEditVideo(e))return u.LanguageService.getPhrase("shared.utils","suggestEdit")},getSharePermissionsMessage:function(e,t){if(!bh.canShareVideo(e,t))return t===y.LIBRARY_EDITOR?u.LanguageService.getPhrase("shared.utils","share"):""},filterObjectsByOwnerType:function(e,t,n){var o=e.filter((function(e){var o=e.get("customer")&&e.get("customer").id;return!o&&t===Xf.ClickView||o===n&&t===Xf.Customer}));return new u.Core.Collection(o)}};function vh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wh,Sh={size:"small",bgColor:"000"};!function(e){e.Avatar="avatar",e.Banner="banner",e.Thumbnail="thumbnail"}(wh||(wh={}));var kh=(vh(mh={},E.Avatars,wh.Avatar),vh(mh,E.Banners,wh.Banner),vh(mh,E.Thumbnails,wh.Thumbnail),mh),Oh=function(e){return"v1/category-map/".concat(e)},Ch={createUrl:function(e,t){return Ch._createUrl(e,t)},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},createThumbnailUrl:function(e,t){var n=e instanceof El?e.get("url"):e;if(n){var o=s.extend({},Sh,t);return Ch._createUrl(n,o)}},createBannerUrl:function(e,t,n){var o=e instanceof nr?e.get("url"):e;return o?Ch._createUrl(o,n):Ch._createCategoryMappedUrl(t,n)},createFolderThumbnailUrl:function(e,t,n){return"string"==typeof e||e instanceof El&&e.get("url")?Ch.createThumbnailUrl(e,n):Ch._createCategoryMappedUrl(t,s.extend({},Sh,n))},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,o=e.fallbackCategoryName,r=e.type,i="".concat(n).concat(Oh(kh[r])),a=s.extend({name:Ch.Rfc3986EncodeURIComponent(o)},t);return Ch._createUrl(i,a)},_createUrl:function(e,t){if(e){if(s.isEmpty(t))return e;var n=$.param(t),o=-1===e.indexOf("?")?"?":"&";return"".concat(e).concat(o).concat(n)}}},Eh={setRating:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t)if(e&&e.id){var n=t.findWhere({selected:!0}),o=t.findWhere({id:e.id});Zh.deselectAll(t,{silent:!1}),(n||o)&&(n?o.id!==n.id&&o.set("selected",!0):o.set("selected",!0))}else Zh.deselectAll(t)}},_h={getDevicesUserCanManage:function(e,t){return e&&new Zi(e.where({customerId:t}))},getNewestDeviceUserCanManage:function(e,t){var n=_h.getDevicesUserCanManage(e,t);if(n||n.length)return n.max((function(e){return new Date(e.get("dateCreated"))}))},customerHasLocalCache:function(e,t){return e&&!!_h.getDevicesUserCanManage(e,t).length}},Th={generateUniqueChannelName:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"customCid",n=e[t]||e.cid||(e[t]=s.uniqueId("custom"));return"".concat(e.name).concat(n)}},Ph=function(e,t,n){var o=t-(e=e.toString()).length;return o<=0?e:new Array(o+1).join(n)+e},xh={ToDisplayDuration:function(e){if(!s.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),o=Ph(t.getUTCMinutes(),2,"0"),r=Ph(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(o,":").concat(r):"".concat(o,":").concat(r)}},Ih={renderPartialLoading:function(e){yf.channel(u.CommonChannels.SHELL).trigger("render:partial:loading",e)}},Lh={name:[{required:!0,msg:function(){return u.LanguageService.getPhrase("shared.utils","selectLanguage")}}]},jh=n(48),Rh=n(107),Dh=n.n(Rh),Nh=n(108),Ah=n.n(Nh),Mh=n(109),Vh=n.n(Mh),Uh=n(110),Fh=n.n(Uh),Bh=n(164),Hh=n.n(Bh),Wh=n(165),zh=n.n(Wh);var qh,Gh,Yh={handleQuery:function(e,t){return function(n,o,r){if(n&&e instanceof jh){return e.search.call(e,n,o,(function(e){var o=[];if("empty-suggestion"===t.name)return r.call(this,[{}]);if("add-new"===t.name){var i=s.find(e,(function(e){return e.name.toLowerCase()===n.toLowerCase()}));i||(i={name:n}),i.type=t.newType,o.push(i)}else o=e;r.call(this,o)}))}}},getSuggestionTemplate:function(e){return"add-new"===e?function(e){return function(e){var t=s.extend({},e,{options:{styles:Hh.a,svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Plus),createText:u.LanguageService.getPhrase("shared.utils","create")}});return zh()(t)}(e)}:"empty-suggestion"===e?Fh.a:Dh.a},getPendingTemplate:function(e){return"add-new"===e||"empty-suggestion"===e?Fh.a:Ah.a},getNotFoundTemplate:function(e,t){return"add-new"===e||t?Fh.a:Vh.a},getFooterTemplate:function(e){return s.isFunction(e)?e:null},prepareQuery:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.libraryIds;return"".concat(t.url,"?q=").concat(e).concat(o?"&ids=".concat(o):"")},prepareUrl:function(e,t){var n=Yh.mapRawSearchType(e,t);return"/api/domain/v1/search/".concat(n,"/instant/raw")},mapRawSearchType:function(e,t){switch(e){case p.SearchQueryType.TagsRaw:return p.SearchQueryType.TagsRaw;case p.SearchQueryType.Series:return p.SearchQueryType.Series;case p.SearchQueryType.Producers:return p.SearchQueryType.Producers;case p.SearchQueryType.Distributors:return p.SearchQueryType.Distributors;case p.SearchQueryType.ChannelRaw:return p.SearchQueryType.ChannelRaw;case p.SearchQueryType.Directors:return p.SearchQueryType.Directors;case p.SearchQueryType.ProductionCompanies:return p.SearchQueryType.ProductionCompanies;case p.SearchQueryType.Season:return p.SearchQueryType.Season;case"add-new":case"empty-suggestion":return t.newType;default:u.Core.ErrorHelper.throw(new u.DevError("Raw search type ".concat(e," is not supported.")))}},getBloodhoundConfig:function(){return function(e,t){return{datumTokenizer:jh.tokenizers.obj.whitespace("name"),queryTokenizer:jh.tokenizers.whitespace,remote:{url:Yh.prepareUrl(e,t),prepare:s.partial(Yh.prepareQuery,s,s,t),cache:!1}}}},getTypeaheadConfig:function(){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{name:e.name,source:Yh.handleQuery(e.bloodhound,Object.assign({fetchType:p.BloodhoundType.Remote,name:e.name},n)),async:!0,limit:5,display:function(e){return e.name},templates:{suggestion:Yh.getSuggestionTemplate(e.name),pending:Yh.getPendingTemplate(e.name),notFound:Yh.getNotFoundTemplate(e.name,n.hideEmptyResults),footer:Yh.getFooterTemplate(n.footerTemplate)}}}}},Jh={getEditVideoTabs:function(e,t){return[{name:function(){return u.LanguageService.getPhrase("shared.utils","videoDetails")},link:{selector:".edit-video-applink",appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_VIDEO,args:[e]}}},{name:function(){return u.LanguageService.getPhrase("shared.utils","chapters")},link:{selector:".edit-chapters-applink",appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_VIDEO_CHAPTERS,args:[e]}},hide:t&&t.hideChaptersTab},{name:function(){return u.LanguageService.getPhrase("shared.utils","resourcesSubtitlesLinks")},link:{selector:".edit-resources-subtitles-applink",appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[e]}}}]},initBackButton:function(){var e=p.ContextService.getPreviousRoute();e&&!s.contains(of,e.appLink.action)&&u.ViewModelService.get("edit:video:back:button").set({appLink:e.appLink})},getBackButton:function(e){var t={application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[e]},n=u.ViewModelService.get("edit:video:back:button").get("appLink")||t;return{name:this.getBackButtonText(n),link:{selector:".go-back-applink",appLink:n}}},getBackButtonText:function(e){if(!e)return u.LanguageService.getPhrase("shared.utils","backToVideoDetails");switch(e.action){case M.LibraryEditor.FOLDER:return u.LanguageService.getPhrase("shared.utils","backFolder");case M.LibraryEditor.SERIES:return u.LanguageService.getPhrase("shared.utils","backSeries");case M.Search.HOME:return u.LanguageService.getPhrase("shared.utils","backSearch");case M.ContentUpdates.PAST_RELEASES:return u.LanguageService.getPhrase("shared.utils","backPastReleases");case M.LibraryEditor.VIDEO_DETAILS:return u.LanguageService.getPhrase("shared.utils","backDetails");default:return u.LanguageService.getPhrase("shared.utils","back")}}},Kh={hasLibraryOfType:function(e,t){var n=e.libraries;return!(!n||!n.length)&&n.any((function(e){return e.get("type")===t}))},hasCustomLibrary:function(e){return Kh.hasLibraryOfType(e,O.CustomLibrary)},getSourceTypes:function(e){return e.libraries?e.libraries.map((function(e){return e.get("type")})):[]},isExchangeVideo:function(e){return e.libraries&&e.libraries.any((function(e){return e.get("type")===O.Exchange}))}},Qh={generateDialog:function(e,t,n,o){new th({title:u.LanguageService.getPhrase("shared.utils","cancelProcessingHeading"),text:u.LanguageService.getPhrase("shared.utils","cancelProcessingBody",{videoTitle:e}),buttons:[{text:u.LanguageService.getPhrase("shared.utils","yes"),className:"btn btn-primary",success:!0},{text:u.LanguageService.getPhrase("shared.utils","no"),className:"btn btn-link",close:!0}]}).render().done((function(){return sp.Radio.channel(t).trigger(n,o)}))}},Zh={setSelected:function(e,t){if(t&&e){Zh.deselectAll(t);var n=t.findWhere({id:e});n&&n.set("selected",!0)}},getSelected:function(e){return e.findWhere({selected:!0})},deselectAll:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.silent,o=void 0===n||n;e.each((function(e){return e.set("selected",!1,{silent:o})}))},findModelByName:function(e,t){return t.find((function(t){return t.get("name").toLowerCase()===e.toLowerCase()}))},getIds:function(e){return e.map((function(e){return e.get("id")}))}},$h={isLazyLoadSupported:function(e){if(!e)return!1;var t=u.UserAgentHelper.getBrowser(),n=t.browser&&t.browser.toLowerCase(),o=t.version&&parseInt(t.version);return!(n&&o&&s.isNumber(o)&&s.has(e,n))||o>=e[n]}};function Xh(e,t){var n="spinner";return e===qh.Small&&(n="".concat(n,"-sm")),e===qh.Medium&&(n="".concat(n,"-md")),e===qh.Large&&(n="".concat(n,"-lg")),t===Gh.Standard&&(n="".concat(n,"-std")),t===Gh.Light&&(n="".concat(n,"-light")),t===Gh.LightBgDark&&(n="".concat(n,"-light-bg-dark")),n}!function(e){e.Small="sm",e.Medium="md",e.Large="lg"}(qh||(qh={})),function(e){e.Standard="std",e.Light="light",e.LightBgDark="light-bg-dark"}(Gh||(Gh={}));var ed={size:qh.Medium,type:Gh.Standard,tag:"div"},td={getSpinner:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s.extend({},ed,e),n=t.tag,o=t.size,r=t.type,i=t.extraClasses,a=Xh(o,r);return i&&(a="".concat(a," ").concat(i)),"<".concat(n,' class="spinner ').concat(a,'"></').concat(n,">")}};function nd(e){return(nd="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 od(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 rd(e,t){return!t||"object"!==nd(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 id(e){return(id=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ad(e,t){return(ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ld=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=rd(this,id(t).call(this,"Folder is empty"))).action=e,n}var n,o,r;return 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&&ad(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FolderEmptyError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.folderEmpty","folderNoVideosTitle"),text:u.LanguageService.getPhrase("libraryEditor.errors.folderEmpty","folderNoVideosBody",{action:this.action}),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.folderEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&od(n.prototype,o),r&&od(n,r),t}(p.DialogError);function sd(e){return(sd="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 ud(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 cd(e,t){return!t||"object"!==sd(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 pd(e){return(pd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fd(e,t){return(fd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cd(this,pd(t).call(this,"Folder is not empty"))}var n,o,r;return 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&&fd(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FolderNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.folderNotEmpty","title"),text:u.LanguageService.getPhrase("libraryEditor.errors.folderNotEmpty","instructions"),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.folderNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&ud(n.prototype,o),r&&ud(n,r),t}(p.DialogError);function dd(e){return(dd="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 yd(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 gd(e,t){return!t||"object"!==dd(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 md(e){return(md=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bd(e,t){return(bd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),gd(this,md(t).call(this,"Subfolder cannot be added"))}var n,o,r;return 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&&bd(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FolderMaxDepthError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.folderMaxDepth","title"),text:u.LanguageService.getPhrase("libraryEditor.errors.folderMaxDepth","instructions",{maxDepth:On.MAX_FOLDER_DEPTH}),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.folderMaxDepth","close"),className:"btn btn-link",close:!0}]}}}])&&yd(n.prototype,o),r&&yd(n,r),t}(p.DialogError);function wd(e){return(wd="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 Sd(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 kd(e,t){return!t||"object"!==wd(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 Od(e){return(Od=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cd(e,t){return(Cd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ed=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kd(this,Od(t).call(this,"Folder not found"))}var n,o,r;return 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&&Cd(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FolderNotFoundError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("libraryEditor.errors.folderNotFound","info")}}])&&Sd(n.prototype,o),r&&Sd(n,r),t}(p.ErrorPageError);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 Td(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 Pd(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 xd(e){return(xd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Id(e,t){return(Id=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ld=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pd(this,xd(t).call(this,"User does not have access to this folder"))}var n,o,r;return 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&&Id(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"ForbiddenFolderError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("libraryEditor.errors.forbiddenFolder","info")}}])&&Td(n.prototype,o),r&&Td(n,r),t}(p.ErrorPageError);function jd(e){return(jd="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 Rd(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 Dd(e,t){return!t||"object"!==jd(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 Nd(e){return(Nd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ad(e,t){return(Ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Md=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dd(this,Nd(t).call(this,"User does not have access to this video"))}var n,o,r;return 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&&Ad(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"ForbiddenVideoError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("libraryEditor.errors.forbiddenVideo","info")}}])&&Rd(n.prototype,o),r&&Rd(n,r),t}(p.ErrorPageError);function Vd(e){return(Vd="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 Ud(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 Fd(e,t){return!t||"object"!==Vd(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 Bd(e){return(Bd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hd(e,t){return(Hd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wd=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=Fd(this,Bd(t).call(this,"Image too small"))).minWidth=e,o.minHeight=n,o}var n,o,r;return 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&&Hd(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"ImageDimensionsTooSmallError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","title"),text:u.LanguageService.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","body",{minWidth:this.minWidth,minHeight:this.minHeight}),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","close"),className:"btn btn-link",close:!0}]}}}])&&Ud(n.prototype,o),r&&Ud(n,r),t}(p.DialogError);function zd(e){return(zd="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 qd(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 Gd(e,t){return!t||"object"!==zd(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 Yd(e){return(Yd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jd(e,t){return(Jd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Kd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gd(this,Yd(t).call(this,"Series not found"))}var n,o,r;return 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&&Jd(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"SeriesNotFound"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("libraryEditor.errors.seriesNotFound","title")}}])&&qd(n.prototype,o),r&&qd(n,r),t}(p.ErrorPageError);function Qd(e){return(Qd="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 Zd(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 $d(e,t){return!t||"object"!==Qd(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 Xd(e){return(Xd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ey(e,t){return(ey=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ty=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=$d(this,Xd(t).call(this,"Cannot add that many resources"))).resourceLimit=e,n}var n,o,r;return 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&&ey(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TooManyResourcesError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.tooManyResources","heading"),text:u.LanguageService.getPhrase("libraryEditor.errors.tooManyResources","body",{resourceLimit:this.resourceLimit}),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.tooManyResources","okay"),className:"btn btn-primary",success:!0}]}}}])&&Zd(n.prototype,o),r&&Zd(n,r),t}(p.DialogError);function ny(e){return(ny="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 oy(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 ry(e,t){return!t||"object"!==ny(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 iy(e){return(iy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ay(e,t){return(ay=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ly=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ry(this,iy(t).call(this,"Cannot add that many subtitles"))).subtileLimit=e,n}var n,o,r;return 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&&ay(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TooManySubtitlesError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.tooManySubtitles","heading"),text:u.LanguageService.getPhrase("libraryEditor.errors.tooManySubtitles","body",{subtitleLimit:this.subtileLimit}),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.tooManySubtitles","okay"),className:"btn btn-primary",success:!0}]}}}])&&oy(n.prototype,o),r&&oy(n,r),t}(p.DialogError);function sy(e){return(sy="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 uy(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 cy(e,t){return!t||"object"!==sy(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 py(e){return(py=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fy(e,t){return(fy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cy(this,py(t).call(this,"Video not found"))}var n,o,r;return 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&&fy(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"VideoNotFoundError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("libraryEditor.errors.videoNotFound","heading")}}])&&uy(n.prototype,o),r&&uy(n,r),t}(p.ErrorPageError);function dy(e){return("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 yy(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 gy(e,t){return!t||"object"!==dy(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 my(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function by(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}p.ErrorPageError;function vy(e){return(vy="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 wy(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 Sy(e,t){return!t||"object"!==vy(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 ky(e){return(ky=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oy(e,t){return(Oy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Cy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Sy(this,ky(t).call(this,"Library has subscribers so it cannot be deleted"))}var n,o,r;return 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&&Oy(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"LibraryHasSubscribersError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.libraryHasSubscribers","title"),text:u.LanguageService.getPhrase("libraryEditor.errors.libraryHasSubscribers","body"),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.libraryHasSubscribers","close"),className:"btn btn-link",close:!0}]}}}])&&wy(n.prototype,o),r&&wy(n,r),t}(p.DialogError);function Ey(e){return(Ey="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 Ty(e,t){return!t||"object"!==Ey(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 Py(e){return(Py=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xy(e,t){return(xy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Iy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ty(this,Py(t).call(this,"Library is not empty"))}var n,o,r;return 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&&xy(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"LibraryNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("libraryEditor.errors.libraryNotEmpty","title"),text:u.LanguageService.getPhrase("libraryEditor.errors.libraryNotEmpty","body"),buttons:[{text:u.LanguageService.getPhrase("libraryEditor.errors.libraryNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&_y(n.prototype,o),r&&_y(n,r),t}(p.DialogError);function Ly(e){return(Ly="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 jy(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 Ry(e,t){return!t||"object"!==Ly(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 Dy(e){return(Dy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ny(e,t){return(Ny=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ay=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=Ry(this,Dy(t).call(this,"Cannot create any more custom libraries."))).libraryCount=e,o.maxCustomLibraries=n,o}var n,o,r;return 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&&Ny(e,t)}(t,e),n=t,(o=[{key:"pluralise",value:function(e){return u.LanguageService.getPhrase("libraryEditor.errors.maxCustomLibraries","library",{smartCount:e})}},{key:"heading",get:function(){return u.LanguageService.getPhrase("libraryEditor.errors.maxCustomLibraries","title")}},{key:"description",get:function(){return u.LanguageService.getPhrase("libraryEditor.errors.maxCustomLibraries","info",{libraryCount:this.pluralise(this.libraryCount),maxCustomLibraries:this.pluralise(this.maxCustomLibraries)})}}])&&jy(n.prototype,o),r&&jy(n,r),t}(p.ErrorPageError);function My(e){return(My="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 Vy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uy(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 Fy(e,t){return!t||"object"!==My(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 By(e){return(By=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hy(e,t){return(Hy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wy=function(e){function t(){return Vy(this,t),Fy(this,By(t).apply(this,arguments))}var n,o,r;return 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&&Hy(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,p.UploadEventNames.FILES_SELECTED,this.onFilesSelected)}},{key:"onFilesSelected",value:function(e){var t=this;!e&&e.length||(this.reader=new FileReader,this.reader.addEventListener("load",(function(){return t.onReaderLoad()})),this.reader.readAsDataURL(e[0]))}},{key:"onReaderLoad",value:function(){var e=this,t=new Image;t.src=this.reader.result;var n=hn[this.options.imageType].width,o=hn[this.options.imageType].height;t.addEventListener("load",(function(){e.isImageValid(t)?e.isImageLowQuality(t)?e.onImageLowQuality(t):e.onImageLoad(t):e.onImageTooSmall(n,o)}))}},{key:"onImageLowQuality",value:function(e){var t=this;sp.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){var n=dn[t.options.imageType];new th({title:"Low quality image detected",text:'<p>We\'ve detected a low quality image which may appear stretched or distorted within ClickView.</p>\n <p class="text-muted mb-0"><em>We recommend a size of at least\n '.concat(n.width,"px by ").concat(n.height,"px.</em></p>"),buttons:[{text:"Continue anyway",className:"btn btn-primary",success:!0}]}).render().done((function(){t.onImageLoad(e,!0)}))}),300)}},{key:"onImageTooSmall",value:function(e,t){sp.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){u.Core.ErrorHelper.throw(new Wd(e,t))}),300)}},{key:"isImageValid",value:function(e){var t=hn[this.options.imageType].width,n=hn[this.options.imageType].height;return!(t&&e.width<t||n&&e.height<n)}},{key:"isImageLowQuality",value:function(e){var t=dn[this.options.imageType];return!!t&&(e.width<t.width||e.height<t.height)}},{key:"onImageLoad",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.options.saveImage(e.src,t),sp.Radio.channel(this.options.channelName).trigger("image:load"),this.options.appLink&&u.Core.AppLinkHelper.trigger(this.options.appLink)}},{key:"behaviors",get:function(){return[{behaviorClass:zf,buttonSelector:this.options.buttonSelector,channelName:this.options.channelName,acceptMultiple:!1,mimeType:p.FileExtensions.IMAGES}]}}])&&Uy(n.prototype,o),r&&Uy(n,r),t}(u.Core.Behavior);function zy(e){return(zy="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 qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gy(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 Yy(e,t){return!t||"object"!==zy(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 Jy(e){return(Jy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ky(e,t){return(Ky=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qy=function(e){function t(){return qy(this,t),Yy(this,Jy(t).apply(this,arguments))}var n,o,r;return 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&&Ky(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.lockLayoutFileDrop()}},{key:"lockLayoutFileDrop",value:function(){sp.Radio.channel("file:drop:lock").trigger("lock")}},{key:"unlockLayoutFileDrop",value:function(){sp.Radio.channel("file:drop:lock").trigger("unlock")}},{key:"onDestroy",value:function(){this.unlockLayoutFileDrop()}}])&&Gy(n.prototype,o),r&&Gy(n,r),t}(u.Core.Behavior);function Zy(e){return(Zy="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xy(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 eg(e,t){return!t||"object"!==Zy(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 tg(e){return(tg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ng(e,t){return(ng=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var og=function(e){function t(){return $y(this,t),eg(this,tg(t).apply(this,arguments))}var n,o,r;return 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&&ng(e,t)}(t,e),n=t,(o=[{key:"getModel",value:function(){return this.options.bindViewModel?this.view.viewModel:this.view.model}},{key:"bindModelValidation",value:function(){this.getModel().addValidation(this.options.modelValidation)}},{key:"onRender",value:function(){this.options.modelValidation&&this.bindModelValidation(),sp.Validation.bind(this.view,{model:this.getModel()})}},{key:"onBeforeDestroy",value:function(){sp.Validation.unbind(this.view,{model:this.getModel()})}}])&&Xy(n.prototype,o),r&&Xy(n,r),t}(u.Core.Behavior);function rg(e){return(rg="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 ig(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ag(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 lg(e,t){return!t||"object"!==rg(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 sg(e){return(sg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ug(e,t){return(ug=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cg=function(e){function t(){return ig(this,t),lg(this,sg(t).apply(this,arguments))}var n,o,r;return 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&&ug(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.validateOptions(),this.listenTo(u.BehaviorChannels.LAZY_LOAD,"update:loader",this.updateLoader)}},{key:"updateLoader",value:function(){this.loader&&this.loader.update()}},{key:"onAttach",value:function(){$h.isLazyLoadSupported(this.options.minBrowserSupportVersion)&&(this.loader=new LazyLoad({data_src:this.options.attribute,elements_selector:this.options.selector,class_loading:this.options.loadingClass,callback_load:this.options.callback,class_error:"d-none"}))}},{key:"onRender",value:function(){this.updateLoader()}},{key:"onBeforeDestroy",value:function(){this.loader&&this.loader.destroy()}},{key:"validateOptions",value:function(){this.options.selector||u.Core.ErrorHelper.throw(new u.DevError("Must pass an image selector from ".concat(this.view.name," when using LazyLoadBehaviour.")))}},{key:"defaults",get:function(){return{loadingClass:"lazyload-loading",attribute:"src"}},set:function(e){}}])&&ag(n.prototype,o),r&&ag(n,r),t}(u.Core.Behavior),pg=n(166),fg=n.n(pg);function hg(e){return(hg="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 dg(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gg(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 mg(e,t){return!t||"object"!==hg(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 bg(e){return(bg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vg(e,t){return(vg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wg={saveEvent:"save",extraButtonClass:"btn-primary",spinnerOptions:{size:qh.Small,type:Gh.Light,extraClasses:"mx-auto"}},Sg=function(e){function t(){return yg(this,t),mg(this,bg(t).apply(this,arguments))}var n,o,r;return 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&&vg(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.validateOptions(),this.setUpTemplateWrapper(),this.handleCloseOnRoute(),this.handleRendersDuringTransition()}},{key:"validateOptions",value:function(){this.options.title||u.Core.ErrorHelper.throw(new u.DevError("Must pass a title from ".concat(this.view.name," when using PopupBehavior.")))}},{key:"handleCloseOnRoute",value:function(){var e=this;!1!==this.options.closeOnRoute&&(this.routeOnHide=!0,this.listenTo(u.CommonChannels.SHELL,"route",(function(){e.routeOnHide=!1,e.view.$el.modal("hide")})))}},{key:"handleRendersDuringTransition",value:function(){var e=this,t=this.view.render;this.view.render=function(){var n=e.view.$el.data("bs.modal");return n&&n._isTransitioning?(e.view.$(".modal-dialog").one("bsTransitionEnd",(function(){return t.call(e.view)})),e):t.call(e.view)}}},{key:"onHide",value:function(){this.hide()}},{key:"setUpTemplateWrapper",value:function(){var e=this,t=this.view.getTemplate;this.view.getTemplate=function(){return function(n){var o=t.call(e.view),r=e.options.hideCloseButton,i=o(n),a=dg(e.options.buttons||[]);return s.each(a,(function(e){s.isFunction(e.getClassName)&&(e.className=e.getClassName())})),s.some(a,(function(e){return e.close}))||r||a.unshift({text:"Close",className:"btn btn-link",close:!0}),a=s.sortBy(s.map(a,(function(e){return s.extend({type:"button",className:"btn btn-primary"},e)})),"close"),fg()({content:i,size:e.options.size,title:e.getTitle(),buttons:a,spinnerButton:!!e.options.spinnerButtonOptions})}}}},{key:"getTitle",value:function(){return s.isFunction(this.options.title)?this.options.title.apply(this.view):this.options.title}},{key:"getSpinnerButtonOptions",value:function(){return s.isFunction(this.options.spinnerButtonOptions)?this.options.spinnerButtonOptions.apply(this.view):this.options.spinnerButtonOptions}},{key:"renderSpinnerButton",value:function(){var e=this.getSpinnerButtonOptions();e&&!s.isEmpty(e)&&(e=s.extend({},wg,e),this.view.addRegion("spinnerButton",{el:".spinner-button-region",replaceElement:!0}),this.spinnerButtonListenerBound||(this.spinnerButtonListenerBound=!0,this.view.listenTo(e.channelName,e.saveEvent,e.onClick)),this.spinnerComponent=new iB(s.omit(e,"onClickSpinnerButton")),this.view.showChildView("spinnerButton",this.spinnerComponent))}},{key:"onRender",value:function(){this.renderSpinnerButton();var e="modal fade";this.options.modalClasses&&(e+=" ".concat(this.options.modalClasses)),this.view.$el.addClass(e),this.view.$el.attr("tabindex","-1"),sp.Radio.channel(u.BehaviorChannels.POPUP).trigger("popup:render")}},{key:"onAttach",value:function(){this.modalInitialized||(this.view.$el.modal(this.options.modalOptions||{}),this.modalInitialized=!0)}},{key:"hide",value:function(){this.view.$el.modal("hide"),this.routeOnHide||this.view.$el.modal("_removeBackdrop")}},{key:"onBeforeDetach",value:function(){this.hide()}},{key:"onModalHidden",value:function(){this.view.isDestroyed()||this.view.destroy();var e=this.options.appLink;this.routeOnHide&&e&&u.Core.AppLinkHelper.trigger(e)}},{key:"onModalShown",value:function(){this.view.$el.find("[autofocus]").focus(),this.spinnerComponent&&this.spinnerComponent.trigger(oB.ManageDimensions)}},{key:"events",get:function(){return{"hidden.bs.modal":"onModalHidden","shown.bs.modal":"onModalShown"}}}])&&gg(n.prototype,o),r&&gg(n,r),t}(u.Core.Behavior);function kg(e){return(kg="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 Og(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cg(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 Eg(e,t){return!t||"object"!==kg(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 _g(e){return(_g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tg(e,t){return(Tg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pg=function(e){function t(){return Og(this,t),Eg(this,_g(t).apply(this,arguments))}var n,o,r;return 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&&Tg(e,t)}(t,e),n=t,(o=[{key:"onRender",value:function(){this.view.stickit(this.options.bindViewModel?this.view.viewModel:this.view.model)}},{key:"onBeforeDestroy",value:function(){this.view.unstickit()}}])&&Cg(n.prototype,o),r&&Cg(n,r),t}(u.Core.Behavior),xg=n(167),Ig=n.n(xg);function Lg(e){return(Lg="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 jg(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 Rg(e,t){return!t||"object"!==Lg(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 Dg(e){return(Dg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ng(e,t){return(Ng=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ag=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Rg(this,Dg(t).call(this,e))}var n,o,r;return 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&&Ng(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this.options.channelName;this.listenTo(e,"select:distributor",this.onSelectDistributor),this.listenTo(e,"select:production:company",this.onSelectProductionCompany),this.listenTo(e,"select:director",this.onSelectDirector),this.listenTo(e,"select:producer",this.onSelectProducer),this.listenTo(e,"remove:distributor",this.onRemoveDistributor),this.listenTo(e,"remove:production:company",this.onRemoveProductionCompany),this.listenTo(e,"remove:director",this.onRemoveDirector),this.listenTo(e,"remove:producer",this.onRemoveProducer)}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()},"click .new-producer":"onClickAddNewProducer","click .new-director":"onClickAddNewDirector","click .new-distributor":"onClickAddNewDistributor","click .new-production-company":"onClickAddNewProductionCompany"}}},{key:"regions",value:function(){return{distributors:{el:".distributor-region",replaceElement:!0},productionCompanies:{el:".production-company-region",replaceElement:!0},directors:{el:".directors-region",replaceElement:!0},producers:{el:".producers-region",replaceElement:!0}}}},{key:"onClickAddNewProducer",value:function(){this.expandPersonList(L.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(L.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(L.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(L.ProductionCompany)}},{key:"expandPersonList",value:function(e){var t=this.model.get(e);5!==t.length&&t.add({}),this.render()}},{key:"onSelectDistributor",value:function(e){this.onSelect(e,L.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,L.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,L.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,L.Producer)}},{key:"onSelect",value:function(e,t){sp.Radio.channel(this.options.channelName).trigger("add:".concat(t),e),this.render()}},{key:"onRemoveDistributor",value:function(e){this.onRemove(e,L.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,L.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,L.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,L.Producer)}},{key:"onRemove",value:function(e,t){this.model.get(t).remove(e),sp.Radio.channel(this.options.channelName).trigger("remove:".concat(t),e),this.render()}},{key:"buildTypeaheadConfig",value:function(e){var t=Yh.getTypeaheadConfig(),n=Yh.getBloodhoundConfig();return[{name:e,typeaheadConfig:t,bloodhoundConfig:n,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:t,bloodhoundConfig:n,options:{newType:e}},{name:"empty-suggestion",typeaheadConfig:t,bloodhoundConfig:n,options:{newType:e,footerTemplate:p.TypeaheadHelper.getConfirmSelectionTemplate()}}]}},{key:"allowAdditional",value:function(e){return!!this.options.editable&&this.model.get(e)&&5!==this.model.get(e).length}},{key:"renderDistributors",value:function(){this.showChildView("distributors",new PU({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(D.Distributors),removeEvent:"remove:distributor",selectEvent:"select:distributor",inputId:"distributor-search",editable:this.options.editable,placeholderText:"Search content distributors",modelType:"distributors"}))}},{key:"renderProductionCompanies",value:function(){this.showChildView("productionCompanies",new PU({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(D.ProductionCompanies),removeEvent:"remove:production:company",selectEvent:"select:production:company",inputId:"production-company-search",editable:this.options.editable,placeholderText:"Search content production companies",modelType:"productionCompanies"}))}},{key:"renderDirectors",value:function(){this.showChildView("directors",new PU({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(D.Directors),removeEvent:"remove:director",selectEvent:"select:director",inputId:"director-search",editable:this.options.editable,placeholderText:"Search content directors",modelType:"directors"}))}},{key:"renderProducers",value:function(){this.showChildView("producers",new PU({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(D.Producers),removeEvent:"remove:producer",selectEvent:"select:producer",inputId:"producer-search",editable:this.options.editable,placeholderText:"Search content producers",modelType:"producers"}))}},{key:"onBeforeRender",value:function(){this.model.get("distributors")||this.model.set("distributors",new Kr([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new qa([{}])),this.model.get("directors")||this.model.set("directors",new $a([{}])),this.model.get("producers")||this.model.set("producers",new ni([{}])),this.model.get("distributors").length||this.model.get("distributors").add({}),this.model.get("productionCompanies").length||this.model.get("productionCompanies").add({}),this.model.get("directors").length||this.model.get("directors").add({}),this.model.get("producers").length||this.model.get("producers").add({})}},{key:"viewOptions",value:function(){return{styles:sf.a,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?u.LanguageService.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(L.Director),allowAdditionalProducer:this.allowAdditional(L.Producer),allowAdditionalDistributor:this.allowAdditional(L.Distributor),allowAdditionalProductionCompany:this.allowAdditional(L.ProductionCompany),infoSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Info)}}},{key:"onRender",value:function(){this.renderDistributors(),this.renderProductionCompanies(),this.renderDirectors(),this.renderProducers(),this.getUI("tooltips").tooltip()}},{key:"onBeforeDestroy",value:function(){this.getUI("tooltips").tooltip("dispose")}},{key:"name",get:function(){return"EditProductionInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return Ig.a}},{key:"lang",get:function(){return"shared.editProductionInfo"}},{key:"className",get:function(){return"edit-production-info border-top pt-3"}},{key:"elements",get:function(){return{tooltips:".info-tooltip"}}},{key:"bindings",get:function(){return{"[name=productionYear]":{observe:"productionYear",setOptions:{validate:!0},onSet:function(e){return e}}}}},{key:"behaviors",get:function(){return[{behaviorClass:og},{behaviorClass:Pg}]}},{key:"appLinks",get:function(){var e={application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")]};return{".suggest-production-year":s.extend({},e,{params:{metadata:Ap.ProductionYear}}),".suggest-distributors":s.extend({},e,{params:{metadata:Ap.Distributors}}),".suggest-production-companies":s.extend({},e,{params:{metadata:Ap.ProductionCompanies}}),".suggest-directors":s.extend({},e,{params:{metadata:Ap.Directors}}),".suggest-producers":s.extend({},e,{params:{metadata:Ap.Producers}})}}}])&&jg(n.prototype,o),r&&jg(n,r),t}(u.Core.Component),Mg=n(168),Vg=n.n(Mg),Ug=n(35),Fg=n.n(Ug);function Bg(e){return(Bg="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 Hg(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 Wg(e,t){return!t||"object"!==Bg(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 zg(e){return(zg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qg(e,t){return(qg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gg=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Wg(this,zg(t).call(this,e))}var n,o,r;return 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&&qg(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){this.options.editable&&yf.channel(this.options.channelName).trigger("select:rating",this.model)}},{key:"onRender",value:function(){this.resetClassName()}},{key:"name",get:function(){return"SelectRatingItemComponent"}},{key:"template",get:function(){return Vg.a}},{key:"tagName",get:function(){return"li"}},{key:"attributes",get:function(){return{title:this.options.editable?this.model.get("name"):""}}},{key:"className",get:function(){var e="";return e+="btn ".concat(this.options.editable?"btn-light":"".concat(Fg.a.disabled)),this.model.get("selected")&&(e+=this.options.editable?" active":" ".concat(Fg.a.disabledSelected)),e}},{key:"behaviors",get:function(){var e=this.options.editable?this.options.model.get("name"):"";return[{behaviorClass:p.TooltipBehavior,title:e}]}}])&&Hg(n.prototype,o),r&&Hg(n,r),t}(u.Core.Component);function Yg(e){return(Yg="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 Jg(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 Kg(e,t){return!t||"object"!==Yg(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 Qg(e){return(Qg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zg(e,t){return(Zg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Kg(this,Qg(t).call(this,e))}var n,o,r;return 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&&Zg(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"SelectRatingCollectionComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"rating-group btn-group p-0 m-0"}},{key:"childView",get:function(){return Gg}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,currentRatingId:this.options.currentRatingId,editable:this.options.editable}}}])&&Jg(n.prototype,o),r&&Jg(n,r),t}(u.Core.ComponentCollection),Xg=n(169),em=n.n(Xg);function tm(e){return(tm="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 nm(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 om(e,t){return!t||"object"!==tm(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 rm(e){return(rm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function im(e,t){return(im=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var am=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),om(this,rm(t).call(this,e))}var n,o,r;return 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&&im(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .remove-rating":"onRemoveRating"}}},{key:"regions",value:function(){return{ratings:{el:".ratings-region",replaceElement:!0}}}},{key:"initialize",value:function(){this.setViewCollection(),this.setCurrentRating(this.model),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:rating",this.onRatingSelected)}},{key:"setCurrentRating",value:function(e){Eh.setRating(e,this.viewCollection)}},{key:"onRatingSelected",value:function(e){this.setCurrentRating(e);var t=Zh.getSelected(this.viewCollection);this.updateRating(t)}},{key:"onRemoveRating",value:function(e){e.preventDefault(),this.$(".remove-rating").tooltip("dispose"),this.setCurrentRating(null);var t=this.collection.findWhere({value:0});return this.updateRating(t),!1}},{key:"updateRating",value:function(e){sp.Radio.channel(this.options.parentChannelName).trigger("select:rating",e),this.render()}},{key:"setViewCollection",value:function(){var e=s.filter(this.collection.toJSON(),(function(e){return 0!==e.value}));return this.viewCollection=new Nr(e)}},{key:"viewOptions",value:function(){var e=Zh.getSelected(this.viewCollection);return{styles:s.extend(sf.a,Fg.a),showRemove:!this.options.hideRemove&&e&&this.options.editable,editable:this.options.editable,hideHeaderText:this.options.hideHeaderText}}},{key:"renderRatingCollectionComponent",value:function(){this.showChildView("ratings",new $g({collection:this.viewCollection,channelName:this.channelName,editable:this.options.editable}))}},{key:"onRender",value:function(){this.renderRatingCollectionComponent()}},{key:"name",get:function(){return"SelectRatingComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"shared.selectRating"}},{key:"template",get:function(){return em.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".remove-rating",title:u.LanguageService.getPhrase(this.lang,"removeTooltip")}]}},{key:"appLinks",get:function(){return{".suggest-rating":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.options.videoId],params:{metadata:Ap.Rating}}}}},{key:"defaults",get:function(){return{editable:!0}}}])&&nm(n.prototype,o),r&&nm(n,r),t}(u.Core.Component),lm=n(170),sm=n.n(lm),um=n(72),cm=n.n(um);function pm(e){return(pm="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 fm(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 hm(e,t){return!t||"object"!==pm(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 dm(e){return(dm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ym(e,t){return(ym=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gm=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hm(this,dm(t).call(this,e))}var n,o,r;return 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&&ym(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:season",this.onSelectSeason),this.listenTo(this.options.channelName,"clear:series",this.onSeriesChange),this.listenTo(this.model,"change:series",this.onSeriesChange),this.lockSeasonAndEpisode=!this.options.editable||!this.model.get("series.id")}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"regions",value:function(){return{series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0},broadcast:{el:".edit-broadcast-region",replaceElement:!0}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),sp.Radio.channel(this.options.channelName).trigger("add:season",e)}},{key:"onSeriesChange",value:function(e){this.lockSeasonAndEpisode=!e||!e.get("id"),this.renderEditSeason();var t=this.getUI("episodeNumberField");this.lockSeasonAndEpisode?(t.attr("disabled","disabled"),t.attr("class","form-control ".concat(cm.a.disabled))):(t.removeAttr("disabled"),t.attr("class","form-control"))}},{key:"getLibraryIds",value:function(e){return e&&e.map((function(e){return e.id})).join(",")}},{key:"getTypeaheadConfigs",value:function(){var e=Yh.getTypeaheadConfig(),t=Yh.getBloodhoundConfig(),n={newType:D.Series},o={newType:D.Series,footerTemplate:p.TypeaheadHelper.getConfirmSelectionTemplate()};return[{name:D.Series,typeaheadConfig:e,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:t,options:n},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:t,options:o}]}},{key:"renderSeriesTypeahead",value:function(){var e=this.model.series||new u.Core.Model;this.showChildView("series",new Lb({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?u.LanguageService.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:p.TypeaheadHelper.selectFirstResult,onInput:p.TypeaheadHelper.emitEventOnInput(this.options.channelName,Xp,"series"),onBlur:p.TypeaheadHelper.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}},{key:"renderEditSeason",value:function(){var e=this,t=this.model.get("series.seasons")||new il,n=new il(t.map((function(t){return t.set("displayName",u.LanguageService.getPhrase(e.lang,"seasonNumber",{number:t.get("number")}))})));this.showChildView("season",new sF({model:this.model,collection:n,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}},{key:"renderEditBroadcast",value:function(){this.showChildView("broadcast",new tb({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},sf.a,cm.a),editable:this.options.editable,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?u.LanguageService.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(e){this.stickit(),Up.bind(this),this.renderSeriesTypeahead(),this.renderEditSeason(),this.renderEditBroadcast()}},{key:"onClose",value:function(){this.unstickit(),Up.unbind(this)}},{key:"name",get:function(){return"EditAdditionalInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"lang",get:function(){return"shared.editAdditionalInfo"}},{key:"template",get:function(){return sm.a}},{key:"className",get:function(){return"edit-additional-info border-top pt-3"}},{key:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"appLinks",get:function(){return{".suggest-series-title":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:Ap.SeriesTitle}},".suggest-season-number":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:Ap.Season}},".suggest-episode-number":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:Ap.EpisodeNumber}}}}},{key:"behaviors",get:function(){return[{behaviorClass:Pg},{behaviorClass:og}]}},{key:"bindings",get:function(){return{"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return+e}}}}}])&&fm(n.prototype,o),r&&fm(n,r),t}(u.Core.Component),mm=n(171),bm=n.n(mm),vm=n(73),wm=n.n(vm);function Sm(e){return(Sm="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 km(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 Om(e,t){return!t||"object"!==Sm(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 Cm(e){return(Cm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Em(e,t){return(Em=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Om(this,Cm(t).call(this,e))}var n,o,r;return 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&&Em(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){sp.Radio.channel(this.options.channelName).trigger("clear:date")}},{key:"onBeforeRender",value:function(){return!!this.options.shouldRender}},{key:"viewOptions",value:function(){return{styles:wm.a,svgClear:p.SvgHelper.getSvg(p.cvSvgLibrary.Close)}}},{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(wm.a.clearButton)}},{key:"template",get:function(){return bm.a}}])&&km(n.prototype,o),r&&km(n,r),t}(u.Core.Component),Tm=n(172),Pm=n.n(Tm),xm=n(36),Im=n.n(xm);function Lm(e){return(Lm="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 jm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(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 Dm(e,t){return!t||"object"!==Lm(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 Nm(e){return(Nm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Am(e,t){return(Am=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Mm=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dm(this,Nm(t).call(this,e))}var n,o,r;return 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&&Am(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:".concat(this.options.modelAttr),this.renderClearDateButton),this.listenTo(this.channelName,"clear:date",this.onClearDate)}},{key:"regions",value:function(){return{clearButton:{el:".clear-button-region"}}}},{key:"events",value:function(){return jm({"keydown @ui.date":"onKeyDownDate"},"click .".concat(Im.a.calendarSvg),"onClickCalendarIcon")}},{key:"getInstanceClassName",value:function(){return"datetimepicker-".concat(this.cid)}},{key:"initDatePicker",value:function(){this.getUI("date").datetimepicker({format:this.options.displayedTimeFormat,minDate:rh().year(this.options.minYear),maxDate:rh(),icons:{previous:Im.a.previous,next:Im.a.next}})}},{key:"getFormattedDisplayDate",value:function(e){if(e)return s.isFunction(this.options.formatDisplayDate)?this.options.formatDisplayDate(e):rh.utc(e).local().format(this.options.displayedTimeFormat)}},{key:"getFormattedSavedDate",value:function(e){if(e)return s.isFunction(this.options.formatSavedDate)?this.options.formatSavedDate(e):this.options.savedTimeFormat?rh.utc(e).format(this.options.savedTimeFormat):rh.utc(e).format()}},{key:"onClickCalendarIcon",value:function(e){if(this.options.editable)return this.getUI("date").datetimepicker("toggle"),!0}},{key:"onClearDate",value:function(e){return!this.options.allowClearDate||(this.model.set(jm({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new _m({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:s.extend(sf.a,Im.a),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:p.SvgHelper.getSvg(p.cvSvgLibrary.Calendar),svgClear:p.SvgHelper.getSvg(p.cvSvgLibrary.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}},{key:"name",get:function(){return"DatePickerComponent"}},{key:"template",get:function(){return Pm.a}},{key:"lang",get:function(){return"shared.datePicker"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"elements",get:function(){return{date:"#".concat(this.options.modelAttr)}}},{key:"appLinks",get:function(){return{".suggest-broadcast-date":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:Ap.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:u.LanguageService.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:og},{behaviorClass:Pg}]}},{key:"bindings",get:function(){var e=this;return jm({},"[name=".concat(this.options.modelAttr,"]"),{observe:this.options.modelAttr,setOptions:{validate:!0},onGet:function(t){return e.getFormattedDisplayDate(t)},onSet:function(t){return e.getFormattedSavedDate(t)}})}}])&&Rm(n.prototype,o),r&&Rm(n,r),t}(u.Core.Component),Vm=n(173),Um=n.n(Vm);function Fm(e){return(Fm="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 Bm(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 Hm(e,t){return!t||"object"!==Fm(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 Wm(e){return(Wm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zm(e,t){return(zm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qm=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Hm(this,Wm(t).call(this,e))}var n,o,r;return 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&&zm(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{dateBroadcast:{el:".date-broadcast-region",replaceElement:!0},channelSearch:{el:".channel-search-region",replaceElement:!0}}}},{key:"buildTypeaheadConfig",value:function(){return{name:D.ChannelRaw,typeaheadConfig:Yh.getTypeaheadConfig(),bloodhoundConfig:Yh.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new Mm({model:this.model,label:u.LanguageService.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:P.FULL_YEAR,placeholderText:this.options.editable?u.LanguageService.getPhrase(this.lang,"selectBroadcastDate"):"",allowClearDate:this.options.editable,editable:this.options.editable}))}},{key:"renderChannelTypeahead",value:function(){this.model.get("channel")||this.model.set("channel",new Zl),this.showChildView("channelSearch",new Lb({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?u.LanguageService.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:p.TypeaheadHelper.emitEventOnInput(this.options.channelName,Xp,"channel"),onBlur:p.TypeaheadHelper.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:sf.a,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}},{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return Um.a}},{key:"lang",get:function(){return"shared.editBroadcast"}},{key:"className",get:function(){return"edit-broadcast"}},{key:"appLinks",get:function(){return{".suggest-channel":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:Ap.Channel}}}}}])&&Bm(n.prototype,o),r&&Bm(n,r),t}(u.Core.Component),Gm=n(174),Ym=n.n(Gm),Jm=n(175),Km=n.n(Jm);function Qm(e){return(Qm="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 Zm(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 $m(e,t){return!t||"object"!==Qm(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 Xm(e){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eb(e,t){return(eb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tb=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$m(this,Xm(t).call(this,e))}var n,o,r;return 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&&eb(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{broadcast:{el:".broadcast-region",replaceElement:!0}}}},{key:"initialize",value:function(){this.listenTo(this.model,"change:hasBroadcast",this.render),this.initBroadcast()}},{key:"initBroadcast",value:function(){var e=this.model.get("channel"),t=this.model.get("dateBroadcast")||e&&e.get("id");this.model.set("hasBroadcast",!!t,{silent:!0})}},{key:"renderEditBroadcast",value:function(){this.model.get("hasBroadcast")||this.options.hideToggle?this.showChildView("broadcast",new qm({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:Km.a},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}},{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return Ym.a}},{key:"lang",get:function(){return"shared.toggleBroadcast"}},{key:"className",get:function(){return"toggle-broadcast"}},{key:"behaviors",get:function(){return this.options.hideToggle?[]:[{behaviorClass:og},{behaviorClass:Pg}]}},{key:"bindings",get:function(){return{"[name=toggleBroadcast]":{observe:"hasBroadcast"}}}}])&&Zm(n.prototype,o),r&&Zm(n,r),t}(u.Core.Component),nb=n(176),ob=n.n(nb);function rb(e){return(rb="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 ib(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 ab(e,t){return!t||"object"!==rb(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 lb(e){return(lb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sb(e,t){return(sb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ub=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ab(this,lb(t).call(this,e))}var n,o,r;return 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&&sb(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this;this.listenTo(this.model,"change",(function(){return e.options.viewModel.validate()}))}},{key:"regions",value:function(){return{textArea:{el:".text-area-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("textArea",new bF({name:"value",class:"form-control",placeholder:this.model.get("placeholder"),id:"admin-notes"})),this.stickit(),sp.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),sp.Validation.unbind(this)}},{key:"template",get:function(){return ob.a}},{key:"name",get:function(){return"ExtraInfoItemComponent"}},{key:"bindings",get:function(){return{"[name=value]":{observe:"value",setOptions:{validate:!0}}}}}])&&ib(n.prototype,o),r&&ib(n,r),t}(u.Core.Component),cb=n(177),pb=n.n(cb);function fb(e){return(fb="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 hb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(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 yb(e,t,n){return t&&db(e.prototype,t),n&&db(e,n),e}function gb(e,t){return!t||"object"!==fb(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 mb(e){return(mb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bb(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&&vb(e,t)}function vb(e,t){return(vb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wb=function(e){function t(e){return hb(this,t),gb(this,mb(t).call(this,e))}return bb(t,e),yb(t,[{key:"name",get:function(){return"ExtraInfoComponentCollection"}},{key:"childView",get:function(){return ub}},{key:"childViewOptions",get:function(){return{viewModel:this.options.viewModel}}}]),t}(u.Core.ComponentCollection),Sb=function(e){function t(e){return hb(this,t),gb(this,mb(t).call(this,e))}return bb(t,e),yb(t,[{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new wb({collection:this.model.fields,viewModel:this.model}))}},{key:"name",get:function(){return"ExtraInfoComponent"}},{key:"template",get:function(){return pb.a}},{key:"className",get:function(){return"border-top pt-3"}}]),t}(u.Core.Component),kb=n(178),Ob=n.n(kb),Cb=n(74),Eb=n.n(Cb);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 Tb(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 Pb(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 xb(e){return(xb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ib(e,t){return(Ib=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Lb=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pb(this,xb(t).call(this,e))}var n,o,r;return 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&&Ib(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||u.Core.ErrorHelper.throw(new u.DevError("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new u.Core.Model),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=yf.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"clearInput",value:function(){this.getUI("input").typeahead("val",null)}},{key:"setInput",value:function(e){this.getUI("input").typeahead("val",e)}},{key:"onTypeaheadSelect",value:function(e,t,n){var o;e.preventDefault(),o="string"==typeof t?t:t.title||t.name||t.query,this.model.set(this.options.stickItProperty,o),this.parentChannel&&this.options.selectEvent&&this.parentChannel.trigger(this.options.selectEvent,t),this.onSubmit(e),this.toggleRemove()}},{key:"onSubmit",value:function(e){var t=this;if(e.preventDefault(),!this.isDestroyed()&&this.getTypeaheadActionOptions().clearOnSelect)return this.getUI("input").typeahead("close"),setTimeout((function(){t.model.clear(),t.clearInput()}),0),!1}},{key:"onClickRemove",value:function(){this.model.clear(),this.parentChannel.trigger(this.options.removeEvent,this.model),this.toggleRemove()}},{key:"getSources",value:function(){return s.isArray(this.options.typeaheadConfigs)?p.TypeaheadHelper.getSearchSources(this.options.typeaheadConfigs):p.TypeaheadHelper.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?s.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return s.isObject(this.options.actionOptions)?s.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){s.isObject(this.options.callbacks)&&(s.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",s.bind(this.options.callbacks.onRender,this)),s.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),s.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",s.bind(this.options.callbacks.onBlur,this,this.channelName,this.options.stickItProperty)))}},{key:"initTypeahead",value:function(){this.getUI("input").typeahead(this.getTypeaheadOptions(),this.getSources())}},{key:"initTypeaheadListeners",value:function(){this.getUI("input").on("typeahead:select",s.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:Eb.a},this.options),{showRemove:this.shouldShowRemove(),svgRemove:p.SvgHelper.getSvg(p.cvSvgLibrary.Close)})}},{key:"onRender",value:function(){this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),Up.bind(this),this.toggleRemove()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),Up.unbind(this)}},{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return Ob.a}},{key:"className",get:function(){return"search-container ".concat(Eb.a.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"bindings",get:function(){var e,t,n,o="[name=".concat(this.options.inputName,"]");return e={},t=o,n={observe:this.options.stickItProperty,setOptions:{validate:!0}},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}])&&Tb(n.prototype,o),r&&Tb(n,r),t}(u.Core.Component),jb=n(3),Rb=n(179),Db=n.n(Rb);function Nb(e){return(Nb="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 Ab(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 Mb(e,t){return!t||"object"!==Nb(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 Vb(e){return(Vb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ub(e,t){return(Ub=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Fb=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Mb(this,Vb(t).call(this,e))}var n,o,r;return 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&&Ub(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){var e=this.options.collectionIdentifier.toString();this.model=nh.GetViewModel(e,ef)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"remove",this.render)}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".dropdown-menu-region"}}}},{key:"getSelectedIds",value:function(){return nh.GetSelectedIds({key:this.options.collectionIdentifier.toString(),type:ef,collection:this.collection,excludePredicate:function(e){return e.get("status")===p.CurationStatus.Processing}})}},{key:"onBeforeRender",value:function(){return!!this.getSelectedIds().length||(this.$el.empty(),!1)}},{key:"getActions",value:function(){if(this.options.collectionIdentifier){var e=this.getSelectedIds();return new u.Core.Collection([{title:u.LanguageService.getPhrase(this.lang,"move",{smartCount:e.length}),appLink:{application:this.options.application,action:M.Shared.MOVE_VIDEOS,args:[e.join(","),this.options.collectionIdentifier.id]},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Move,workflowPhase:jb.WorkflowPhase.Start})},{title:u.LanguageService.getPhrase(this.lang,"remove",{smartCount:e.length}),appLink:{application:y.LIBRARY_EDITOR,action:M.Shared.DELETE_VIDEOS,args:[this.options.collectionIdentifier.id,e.join(",")]},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Delete,workflowPhase:jb.WorkflowPhase.Start}),classes:"text-danger"}])}}},{key:"onRender",value:function(){this.showChildView("dropdownItems",new FF({displayOptions:{alignment:"right"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:jb.AnalyticsHelper}))}},{key:"name",get:function(){return"BulkVideoActionsComponent"}},{key:"template",get:function(){return Db.a}},{key:"lang",get:function(){return"shared.bulkVideoActions"}}])&&Ab(n.prototype,o),r&&Ab(n,r),t}(u.Core.Component),Bb=n(45),Hb=n.n(Bb);function Wb(e){return(Wb="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 zb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qb(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 Gb(e,t){return!t||"object"!==Wb(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 Yb(e){return(Yb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jb(e,t){return(Jb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Kb=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gb(this,Yb(t).call(this,e))}var n,o,r;return 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&&Jb(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){this.model=nh.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=s.values(this.model.omit("all","checkbox-all"));s.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(zb({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return"checkbox-all"}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(zb({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get("checkbox-all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return Hb.a}}])&&qb(n.prototype,o),r&&qb(n,r),t}(u.Core.Component);function Qb(e){return(Qb="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 Zb(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!t||"object"!==Qb(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 Xb(e){return(Xb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ev(e,t){return(ev=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tv=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$b(this,Xb(t).call(this,e))}var n,o,r;return 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&&ev(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"getViewModel",value:function(){this.model=nh.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set("checkbox-all",!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return Hb.a}}])&&Zb(n.prototype,o),r&&Zb(n,r),t}(u.Core.Component),nv=n(12),ov=n.n(nv);function rv(e){return(rv="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 iv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function av(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 lv(e,t){return!t||"object"!==rv(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 sv(e){return(sv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uv(e,t){return(uv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cv=function(e){function t(){return iv(this,t),lv(this,sv(t).apply(this,arguments))}var n,o,r;return 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&&uv(e,t)}(t,e),n=t,(o=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var e=this;s.each(this.options.channelNames,(function(t){yf.channel(t).trigger("drag:drop",e.view.model,e.options.analyticsOptions)}))}},{key:"accept",value:function(){var e=this,t=!1;return s.each(this.options.channelNames,(function(n){!0===yf.channel(n).request("accept",e.view.model)&&(t=!0)})),t}},{key:"over",value:function(){var e=this;this.isHoveringOver=!0,window.setTimeout((function(){e.isHoveringOver&&e.view.trigger("open:sub:folders",nv.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var e={tolerance:"pointer",drop:s.bind(this.drop,this),accept:s.bind(this.accept,this),over:s.bind(this.over,this),out:s.bind(this.out,this)};e.classes={"ui-droppable":nv.droppable,"ui-droppable-active":nv.active,"ui-droppable-hover":nv.hover},this.getDroppableElement().droppable(e)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&av(n.prototype,o),r&&av(n,r),t}(u.Core.Behavior),pv=n(31),fv=n.n(pv),hv=n(43),dv=n.n(hv);function yv(e){return(yv="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 gv(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 mv(e,t){return!t||"object"!==yv(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 bv(e){return(bv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vv(e,t){return(vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wv=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),mv(this,bv(t).call(this,e))}var n,o,r;return 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&&vv(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return Object.assign({styles:fv.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return dv.a}},{key:"className",get:function(){return"".concat(fv.a.dragItem," p-3")}}])&&gv(n.prototype,o),r&&gv(n,r),t}(u.Core.Component),Sv={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0},kv=n(75),Ov=n.n(kv);function Cv(e){return(Cv="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 Ev(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _v(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 Tv(e,t){return!t||"object"!==Cv(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 Pv(e){return(Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xv(e,t){return(xv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Iv=function(e){function t(){return Ev(this,t),Tv(this,Pv(t).apply(this,arguments))}var n,o,r;return 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&&xv(e,t)}(t,e),n=t,(o=[{key:"getClassMappings",value:function(){return{"ui-draggable":fv.a.draggable,"ui-draggable-handle":fv.a.handle,"ui-draggable-disabled":fv.a.disabled,"ui-draggable-dragging":fv.a.dragging}}},{key:"helper",value:function(){return new wv({text:this.view.model.get("name"),svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Folder)}).render().el}},{key:"start",value:function(){yf.channel(h.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(Ov.a.draggingFolder)}},{key:"stop",value:function(){yf.channel(h.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(Ov.a.draggingFolder)}},{key:"onRender",value:function(){var e={helper:s.bind(this.helper,this),start:s.bind(this.start,this),stop:s.bind(this.stop,this)};e.classes=this.getClassMappings(),this.view.$el.draggable(s.extend({},Sv,e))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&_v(n.prototype,o),r&&_v(n,r),t}(u.Core.Behavior),Lv=n(180),jv=n.n(Lv);function Rv(e){return(Rv="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 Dv(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 Nv(e,t){return!t||"object"!==Rv(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 Av(e){return(Av=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mv(e,t){return(Mv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Vv=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Nv(this,Av(t).call(this,e))}var n,o,r;return 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&&Mv(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var e=this.getChildren();e&&this.listenTo(e,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"hasChildren",value:function(){var e=this.getChildren();return!!e&&!!e.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return sh.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return sh.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var e="position-relative ".concat(this.options.styles.node);return this.isSelected()?e+=" text-white font-weight-bold":this.isDisabled()?e+=" text-muted":e+=" text-dark",e}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var e=this.options.linkArgs,t=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:s.isFunction(e)?e(this.model):null,params:s.isFunction(t)?t(this.model):null}}},{key:"onClick",value:function(e){e.stopPropagation();var t=this.getRegion("children"),n=sp.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-white font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(e.stopImmediatePropagation(),e.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!t.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&sp.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var e=u.Core.AppLinkHelper.getCurrentAppLink(),t=this.getAppLink();return!s.keys(t).length||e.application===t.application&&e.action===t.action}},{key:"closeChildren",value:function(){var e=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),e.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(e){this.renderedSubChildren||this.renderChildren(e)}},{key:"renderChildren",value:function(e){var t=this.getChildren();if(t&&t.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=e,n.collection=t,this.showChildView("children",new Gv(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var e="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(e+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:e,anchorClass:this.getAnchorClass(),caretClass:this.options.styles.caret,showCaret:this.hasChildren(),svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="position-relative";return this.isSelected()&&(e+=" ".concat(this.options.styles.selected)),this.isParent()&&(e+=" ".concat(this.options.styles.parent)),e}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:cv,ui:"anchor",channelNames:[h.VIDEO_DRAG_DROP,h.FOLDER_DRAG_DROP],analyticsOptions:{location:jb.LocationContext.LeftNav}},{behaviorClass:Iv}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"template",get:function(){return jv.a}}])&&Dv(n.prototype,o),r&&Dv(n,r),t}(u.Core.Component),Uv=n(26),Fv=n.n(Uv);function Bv(e){return(Bv="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 Hv(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 Wv(e,t){return!t||"object"!==Bv(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 zv(e){return(zv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qv(e,t){return(qv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gv=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.styles=s.extend({},Fv.a,e.styles),Wv(this,zv(t).call(this,e))}var n,o,r;return 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&&qv(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return Vv}},{key:"className",get:function(){var e="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(e," ").concat(this.options.extraClass):e}},{key:"viewComparator",get:function(){return"name"}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&Hv(n.prototype,o),r&&Hv(n,r),t}(u.Core.ComponentCollection),Yv=n(181),Jv=n.n(Yv);function Kv(e){return(Kv="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 Qv(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 Zv(e,t){return!t||"object"!==Kv(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)}function Xv(e,t){return(Xv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ew=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zv(this,$v(t).call(this,e))}var n,o,r;return 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&&Xv(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}},{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return Jv.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}}])&&Qv(n.prototype,o),r&&Qv(n,r),t}(u.Core.Component),tw=function(e,t,n,o){if(o){if(!s.isNumber(t))return rw.StartTime.Invalid();if(t<0)return rw.StartTime.Invalid();if(t>ah.millisecondsToSeconds(n))return rw.StartTime.Exceeds();if(o.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return rw.StartTime.Exists()}},nw=function(e,t,n){return t?t.length>255?rw.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?rw.Name.Exists():s.isEmpty(t.trim())?rw.Name.Invalid():void 0:rw.Name.Invalid()},ow=function(e){var t=0;return s.map(e,(function(e,n){var o={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,o}))},rw={Name:{Invalid:function(){return u.LanguageService.getPhrase("libraryEditor.utils","chapterNameInvalid")},Exists:function(){return u.LanguageService.getPhrase("libraryEditor.utils","chapterNameExists")},MaxLength:function(){return u.LanguageService.getPhrase("libraryEditor.utils","chapterNameExceeds")}},StartTime:{Invalid:function(){return u.LanguageService.getPhrase("libraryEditor.utils","chapterStartTimeInvalid")},Exists:function(){return u.LanguageService.getPhrase("libraryEditor.utils","chapterStartTimeExists")},Exceeds:function(){return u.LanguageService.getPhrase("libraryEditor.utils","chapterStartTimeExceeds")}}},iw=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function aw(e,t){if(e){var n=s.reduce(e,(function(e,n,o){var r=t[o];return n||r?s.isObject(n)&&s.isObject(r)&&!s.isUndefined(n.id)&&n.id===r.id?e:s.isArray(n)?lw(n,r).length?e.concat(o):e:s.isEqual(n,r)?e:e.concat(o):e}),[]);if(n.length)return s.object(s.map(n,(function(n){return s.isArray(t[n])?[n,lw(e[n],t[n])]:[n,t[n]]})))}}function lw(e,t){var n=[];return s.each(t,(function(t){var o=s.findWhere(e,{id:t.id});if(!s.isUndefined(o)||0!==Object.keys(t).length){var r=s.isUndefined(o)?t:aw(o,t);r&&(t.id<0&&!t.value||(!o||t.id<0?n.push(t):(r.id=t.id,n.push(r))))}})),n}var sw={getChanges:function(e,t){var n=aw(s.omit(e.toJSON(),iw),s.omit(t.toJSON(),iw));if(n)return s.object(s.map(s.keys(n),(function(e){return[e,sw.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(s.isObject(t)&&s.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 s.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:u.Core.ErrorHelper.throw(new u.DevError("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var o=["distributors","producers","directors","productionCompanies"];for(var r in s.each(s.keys(n),(function(e){o.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(s.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[r]&&e.associations[r]){var i=e.get(r);(i instanceof u.Core.Model||i instanceof u.Core.NestedModel)&&i.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],o={};return s.each(s.keys(e.toJSON()),(function(r){if(s.contains(n,r)){var i=e.get(r).map((function(e){return e.id})),a=t.get(r).map((function(e){return e.id})),l=s.filter(i,(function(e){return!s.contains(a,e)}));l.length&&(o[r]=l)}})),o}},uw={name:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","videoTitleRequired")}},{maxLength:255,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?u.LanguageService.getPhrase("libraryEditor.utils","episodeNumberLessThanOne"):e&&e>2147483647?u.LanguageService.getPhrase("libraryEditor.utils","episodeNumberExceeds"):e%1!=0?u.LanguageService.getPhrase("libraryEditor.utils","episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?u.LanguageService.getPhrase("libraryEditor.utils","episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":u.LanguageService.getPhrase("libraryEditor.utils","seasonNoEpisodeNumber")}},cw=rh().year(),pw={productionYear:function(e,t,n){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>cw?u.LanguageService.getPhrase("libraryEditor.utils","validProductionYears",{currentYear:cw}):void 0):""}},fw={name:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","resourceNameRequired")}}]},hw={suggestion:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","suggestEditRequired")}},{maxLength:65535,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","suggestEditReasonExceeds")}}]},dw={number:function(e,t,n){return e?+e<1?u.LanguageService.getPhrase("libraryEditor.utils","seasonLessThanOne"):+e>255?u.LanguageService.getPhrase("libraryEditor.utils","seasonExceeds"):+e%1!=0?u.LanguageService.getPhrase("libraryEditor.utils","seasonNotWhole"):"":u.LanguageService.getPhrase("libraryEditor.utils","seasonRequired")}},yw=function(){return u.LanguageService.getPhrase("libraryEditor.utils","suggestEditRatingRequired")},gw=function(){return u.LanguageService.getPhrase("libraryEditor.utils","suggestEditRatingInvalid")},mw={url:[{required:!0,pattern:"url",msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","linkUrlRequired")}},{maxLength:65535,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","linkNameRequired")}},{maxLength:255,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","linkNameExceeds")}}]},bw={name:[{maxLength:128,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","fieldValueExceeds")}}]},vw={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.LanguageService.getPhrase("libraryEditor.utils","fieldsInvalid"):""}};var ww={name:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","folderNameRequired")}},{maxLength:255,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","folderNameExceeds")}}]},Sw=function(e,t){return{parentId:function(n){return n?sh.calculateDestinationFolderDepth(e,n,t)>On.MAX_FOLDER_DEPTH?u.LanguageService.getPhrase("libraryEditor.utils","maxFolderDepth",{maxDepth:On.MAX_FOLDER_DEPTH}):"":u.LanguageService.getPhrase("libraryEditor.utils","selectParentFolder")}}},kw={name:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","libraryNameRequired")}},{maxLength:255,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","libraryNameExceeds")}}]},Ow=(rh().year(),{name:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return u.LanguageService.getPhrase("libraryEditor.utils","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 pw.productionYear.apply(null,arguments)}});function Cw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ew;!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(Ew||(Ew={}));var _w={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 O.HostedLibrary:case O.CustomLibrary:return e.get("name");case O.Exchange:return u.LanguageService.getPhrase("libraryEditor.utils","exchange");case O.Workspace:return u.LanguageService.getPhrase("libraryEditor.utils","workspace");default:return""}},mapSourceToClass:function(e){switch(e){case O.HostedLibrary:case O.CustomLibrary:return"bg-info";case O.Exchange:return"bg-success";case O.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(Cw(t={},Ew.Pdf,p.cvSvgLibrary.FilePDF),Cw(t,Ew.Image,p.cvSvgLibrary.FileImg),Cw(t,Ew.PowerPoint,p.cvSvgLibrary.FilePowerpoint),Cw(t,Ew.Document,p.cvSvgLibrary.FileWord),Cw(t,Ew.Excel,p.cvSvgLibrary.FileExcel),Cw(t,Ew.Zip,p.cvSvgLibrary.FileZip),Cw(t,Ew.File,p.cvSvgLibrary.File),t)[e];return n||(n=p.cvSvgLibrary.Folder),p.SvgHelper.getSvg(n)},mapTypeToClass:function(e){switch(e){case Ew.Pdf:return"icon-red";case Ew.Image:return"icon-purple";case Ew.Document:return"icon-blue";case Ew.Excel:return"icon-green";case Ew.PowerPoint:return"icon-orange";case Ew.Zip:return"icon-teal";case Ew.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 Ew.Pdf:return u.LanguageService.getPhrase("libraryEditor.utils","pdf");case Ew.Image:return u.LanguageService.getPhrase("libraryEditor.utils","image");case Ew.Document:return u.LanguageService.getPhrase("libraryEditor.utils","document");case Ew.Excel:return u.LanguageService.getPhrase("libraryEditor.utils","spreadsheet");case Ew.PowerPoint:return u.LanguageService.getPhrase("libraryEditor.utils","presentation");case Ew.Zip:return u.LanguageService.getPhrase("libraryEditor.utils","zipArchive");case Ew.File:return u.LanguageService.getPhrase("libraryEditor.utils","file");default:return""}},translateMetadataCollectionNames:function(e){return new Ca(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:_w.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case Ap.VideoTitle:t+="VideoTitle";break;case Ap.Description:t+="Description";break;case Ap.Rating:t+="Rating";break;case Ap.SeriesTitle:t+="SeriesTitle";break;case Ap.Season:t+="SeasonNumber";break;case Ap.EpisodeNumber:t+="EpisodeNumber";break;case Ap.BroadcastDate:t+="BroadcastDate";break;case Ap.Channel:t+="Channel";break;case Ap.ProductionYear:t+="ProductionYear";break;case Ap.Distributors:t+="Distributors";break;case Ap.ProductionCompanies:t+="ProductionCompanies";break;case Ap.Directors:t+="Directors";break;case Ap.Producers:t+="Producers";break;case Ap.Other:t+="Other"}return u.LanguageService.getPhrase("libraryEditor.utils",t)}},Tw=function(e,t){return u.UrlHelper.safeUrlConcat(u.UrlHelper.makeHttps(e),"/download?token=".concat(t))},Pw=n(182),xw=n.n(Pw),Iw=n(183),Lw=n.n(Iw);function jw(e){return(jw="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 Rw(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 Dw(e,t){return!t||"object"!==jw(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 Nw(e){return(Nw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Aw(e,t){return(Aw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Mw=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dw(this,Nw(t).call(this,e))}var n,o,i;return 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&&Aw(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:r.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?rh(this.model.get("dateBroadcast")).format(P.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series)return u.UrlHelper.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new SN({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new EM({model:this.model,linkify:!0,size:sM.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=s.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return s.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getCitationHeading",value:function(e,t,n){return this.model.get(e)?this.model.get(e).length>1?n:t:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(L.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(L.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(L.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(L.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:xw.a,ratingClass:this.model.rating&&_w.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),publisherArchiveSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}},{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return Lw.a}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-publisher-video":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}}])&&Rw(n.prototype,o),i&&Rw(n,i),t}(u.Core.Component),Vw=n(184),Uw=n.n(Vw);function Fw(e){return(Fw="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 Bw(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 Hw(e,t){return!t||"object"!==Fw(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 Ww(e){return(Ww=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zw(e,t){return(zw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qw=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Hw(this,Ww(t).call(this,e))}var n,o,r;return 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&&zw(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderActions",value:function(){this.showChildView("options",new kO({model:this.model,extraClasses:"".concat(he.a.actions," rounded-circle mr-2 mt-2"),buttonClass:"text-light",analyticsOptions:{location:jb.LocationContext.Banner}}))}},{key:"onRender",value:function(){this.renderActions()}},{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"px-3 position-relative ".concat(he.a.banner)}},{key:"attributes",get:function(){var e=Ch.createBannerUrl(this.model.banner,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:E.Banners});return{style:"background-image: url('".concat(e,"')")}}},{key:"template",get:function(){return Uw.a}}])&&Bw(n.prototype,o),r&&Bw(n,r),t}(u.Core.Component),Gw=n(185),Yw=n.n(Gw);function Jw(e){return(Jw="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 Kw(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 Qw(e,t){return!t||"object"!==Jw(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 Zw(e){return(Zw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $w(e,t){return($w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xw=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qw(this,Zw(t).call(this,e))}var n,o,r;return 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&&$w(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.options.playerViewModelKey&&this.listenToPlayerViewModel(),this.initViewModel(),this.options.editing&&this.syncTime()}},{key:"events",value:function(){return{submit:"onSubmit","change .chapter-name":"validateName","keyup .chapter-name":"validateName","change .time-input":"onTimeInputUpdate","click .time-input":"onTimeInputUpdate","keyup .time-input":"onTimeInputUpdate","click .cancel":"destroyView"}}},{key:"initViewModel",value:function(){this.viewModel=u.ViewModelService.get(this.viewModelName,this.model.toJSON())}},{key:"listenToPlayerViewModel",value:function(){var e=u.ViewModelService.get(this.options.playerViewModelKey);this.listenTo(e,"change:currenttime",this.updateTime)}},{key:"updateTime",value:function(e){this.webPlayerTime=e.get("currenttime"),this.syncTime()}},{key:"syncTime",value:function(){var e=this.viewModel.get("startTime")||this.webPlayerTime;this.viewModel.set({hours:ah.getHoursComponent(e),minutes:ah.getMinutesComponent(e),seconds:ah.getSecondsComponent(e)})}},{key:"getNewTime",value:function(){return this.enabled()?ah.parseTime(this.viewModel.pick("hours","minutes","seconds")):0}},{key:"enabled",value:function(){return this.options.creating||0!==this.model.collection.indexOf(this.model)}},{key:"maxTimes",value:function(){var e=ah.millisecondsToSeconds(this.options.duration),t=ah.getHoursComponent(e),n=t>0?59:ah.getMinutesComponent(e);return{maxHr:t,maxMin:n,maxSec:n>0?59:ah.getSecondsComponent(e)}}},{key:"onTimeInputUpdate",value:function(){sp.Radio.channel(this.options.channelName).trigger(zp,this.getNewTime()),this.validateStartTime()}},{key:"destroyView",value:function(){sp.Radio.channel(this.options.channelName).trigger(Wp),this.destroy()}},{key:"onSubmit",value:function(e){if(e.preventDefault(),!this.validate())return!1;var t={id:this.viewModel.get("id"),name:this.viewModel.get("name"),startTime:this.getNewTime()},n=sp.Radio.channel(this.options.channelName),o=Fp;this.options.editing&&(o=Bp),n.trigger(o,t),this.stopListening(this.viewModel),u.ViewModelService.clear(this.viewModelName)}},{key:"validate",value:function(){this.viewModel.validate();var e=this.validateStartTime(),t=this.validateName();return this.viewModel.isValid()&&e&&t}},{key:"validateStartTime",value:function(){var e=this,t=sp.Validation.callbacks,n=t.valid,o=t.invalid,r=this.model.collection||this.options.collection,i=this.getNewTime(),a=tw(this.model,i,this.options.duration,r),l=[],s=["seconds","minutes","hours"];return i<0?l=s:a&&(l.push("seconds"),i>59&&l.push("minutes"),i>3540&&l.push("hours")),s.forEach((function(t){return n(e,t,null)})),l.forEach((function(t){return o(e,t,a,null)})),!a}},{key:"validateName",value:function(e){if(!e||13!==e.keyCode){var t=sp.Validation.callbacks,n=t.valid,o=t.invalid,r=this.model.collection||this.options.collection,i=nw(this.model,this.viewModel.get("name"),r);return i?o(this,"name",i,null):n(this,"name",null),!i}}},{key:"viewOptions",value:function(){var e=this.maxTimes(),t=e.maxHr,n=e.maxMin,o=0===e.maxSec,r=0===n,i=0===t;return Object.assign(Object.assign({},this.options),{enabled:this.enabled(),timeId:"".concat(this.cid,"-time"),chapterId:"".concat(this.cid,"-chapter-name"),plusSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Plus),secDisabled:o,minDisabled:r,hrDisabled:i})}},{key:"name",get:function(){return"ChapterFormComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterForm"}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"template",get:function(){return Yw.a}},{key:"className",get:function(){return this.options.creating?"py-3":"border-top p-2"}},{key:"behaviors",get:function(){return[{behaviorClass:og,bindViewModel:!0},{behaviorClass:Pg,bindViewModel:!0}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=hours]":{observe:"hours",setOptions:{validate:!0}},"[name=minutes]":{observe:"minutes",setOptions:{validate:!0}},"[name=seconds]":{observe:"seconds",setOptions:{validate:!0}}}}}])&&Kw(n.prototype,o),r&&Kw(n,r),t}(u.Core.Component),eS=n(186),tS=n.n(eS),nS=n(37),oS=n.n(nS);function rS(e){return(rS="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 iS(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 aS(e,t){return!t||"object"!==rS(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 lS(e){return(lS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sS(e,t){return(sS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var uS=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),aS(this,lS(t).call(this,e))}var n,o,r;return 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&&sS(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{editForm:{replaceElement:!1,el:".edit-form-region"}}}},{key:"events",value:function(){return{"click @ui.editChapter":"onEditChapter","click @ui.deleteChapter":"onDeleteChapter","click .clickable-seek":"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.instanceChannelName,Wp,this.onCancelEdit),this.listenTo(this.instanceChannelName,Bp,this.onUpdateChapter),this.listenTo(this.instanceChannelName,zp,this.onUpdateChapterTime),this.listenTo(this.model,"change:showEditor",this.onShowEditorChange),this.listenTo(this.model,"change:loading",this.onLoadingChange);var e=this.model.collection.first();this.model!==e?this.listenTo(this.model.collection,"sort",this.render):this.listenTo(this.model.collection,"add remove sort",this.render)}},{key:"onClick",value:function(e){var t=sp.Radio.channel(this.options.channelName);this.model.get("isPhysicalChapter")?t.trigger(Yp,this.model.get("index")):t.trigger(zp,this.model.get("startTime"))}},{key:"onLoadingChange",value:function(){var e=this.model.get("loading")?"disable":"enable";this.getUI("editChapter").tooltip(e),this.getUI("deleteChapter").tooltip(e),this.model.set("showEditor",!1,{silent:!0}),this.render()}},{key:"onShowEditorChange",value:function(){this.model.get("loading")||(this.model.get("showEditor")?this.showEditView():this.hideEditView())}},{key:"showEditView",value:function(){this.renderEditForm(),this.getUI("chapterItem").addClass(oS.a.darkBackground)}},{key:"hideEditView",value:function(){this.model.set("showEditor",!1,{silent:!0}),this.getUI("chapterItem").removeClass(oS.a.darkBackground),this.detachChildView("editForm")}},{key:"onCancelEdit",value:function(){this.hideEditView()}},{key:"onDeleteChapter",value:function(){this.model.get("loading")||sp.Radio.channel(this.options.channelName).trigger(Hp,this.model)}},{key:"onUpdateChapter",value:function(e){sp.Radio.channel(this.options.channelName).trigger(Bp,e),this.render()}},{key:"onUpdateChapterTime",value:function(e){sp.Radio.channel(this.options.channelName).trigger(zp,e)}},{key:"onEditChapter",value:function(){sp.Radio.channel(this.options.channelName).trigger(qp,this.model)}},{key:"canDelete",value:function(e){var t=this.model.collection.length;return 1===e&&1===t||!(1===e&&t>1)}},{key:"viewOptions",value:function(){var e=this.model.collection.indexOf(this.model)+1,t=ah.trimToMinutes(ah.secondsToHoursFormatted(this.model.get("startTime")));return Object.assign(Object.assign({},this.options),{styles:oS.a,time:t,index:e,loading:this.model.get("loading"),allowDelete:this.canDelete(e),editSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Edit),deleteSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Delete)})}},{key:"renderEditForm",value:function(){this.showChildView("editForm",new Xw({model:this.model,editing:!0,channelName:this.instanceChannelName,duration:this.options.duration}))}},{key:"onBeforeDetach",value:function(){$(".tooltip").remove()}},{key:"name",get:function(){return"ChapterItemComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterItem"}},{key:"instanceChannelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return tS.a}},{key:"className",get:function(){return"chapter ".concat(oS.a.chapterItem)}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".action"}]}},{key:"elements",get:function(){return{chapterItem:".chapter-item",editChapter:".edit-chapter",deleteChapter:".delete-chapter"}}}])&&iS(n.prototype,o),r&&iS(n,r),t}(u.Core.Component);function cS(e){return(cS="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 pS(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 fS(e,t){return!t||"object"!==cS(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 hS(e){return(hS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dS(e,t){return(dS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yS=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),fS(this,hS(t).call(this,e))}var n,o,r;return 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&&dS(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindEditorListeners()}},{key:"bindEditorListeners",value:function(){this.options.editable&&this.listenTo(this.options.channelName,qp,this.toggleEditForm)}},{key:"toggleEditForm",value:function(e){this.collection.each((function(t){return t!==e&&t.set("showEditor",!1)})),e.set("showEditor",!e.get("showEditor"))}},{key:"name",get:function(){return"ChapterComponentCollection"}},{key:"className",get:function(){return"chapters"}},{key:"childView",get:function(){return uS}},{key:"childViewOptions",get:function(){return{showActions:this.options.showActions,duration:this.options.duration,channelName:this.options.channelName}}}])&&pS(n.prototype,o),r&&pS(n,r),t}(u.Core.ComponentCollection),gS=n(187),mS=n.n(gS);function bS(e){return(bS="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 vS(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 wS(e,t){return!t||"object"!==bS(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 SS(e){return(SS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kS(e,t){return(kS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var OS=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),wS(this,SS(t).call(this,e))}var n,o,r;return 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&&kS(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{chapterList:{replaceElement:!0,el:".chapter-list-region"}}}},{key:"viewOptions",value:function(){return{showHeader:this.options.showHeader}}},{key:"onRender",value:function(){this.showChildView("chapterList",new yS({collection:this.collection,duration:this.options.duration,channelName:this.options.channelName,showActions:this.options.showActions,editable:this.options.editable}))}},{key:"name",get:function(){return"ChaptersComponent"}},{key:"template",get:function(){return mS.a}},{key:"lang",get:function(){return"libraryEditor.chapters"}},{key:"className",get:function(){return"chapters ".concat(!this.options.editable&&"py-3 border-top")}}])&&vS(n.prototype,o),r&&vS(n,r),t}(u.Core.Component),CS=n(188),ES=n.n(CS),_S=n(189),TS=n.n(_S);function PS(e){return(PS="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 xS(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 IS(e,t){return!t||"object"!==PS(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 LS(e){return(LS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jS(e,t){return(jS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var RS=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),IS(this,LS(t).call(this,e))}var n,o,r;return 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&&jS(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.spinnerModel=new u.Core.Model({showSpinner:this.isProcessing()}),this.listenTo(this.options.channelName,Gp,this.onClickMergeChapters)}},{key:"regions",value:function(){return{button:{el:".btn-region",replaceElement:!0}}}},{key:"onClickMergeChapters",value:function(){this.spinnerModel.set(rB.ShowSpinner,!0),this.render()}},{key:"isProcessing",value:function(){return!(!this.model||!this.model.get("status")||this.model.get("status")!==Qf.New&&this.model.get("status")!==Qf.Concatenating)}},{key:"renderButton",value:function(){var e={chapters:u.LanguageService.getPhrase(this.lang,"mergeChapters"),subtitles:u.LanguageService.getPhrase(this.lang,"mergeChapters"),clickViewSubtitles:u.LanguageService.getPhrase(this.lang,"enabledCustomSubtitles")},t=new iB({buttonText:e[this.options.type],extraButtonClass:"btn-primary ".concat(TS.a.btn),model:this.spinnerModel,spinnerOptions:{size:qh.Small,type:Gh.Light,extraClasses:"mx-auto"},channelName:this.options.channelName,saveEvent:Gp});this.showChildView("button",t)}},{key:"viewOptions",value:function(){var e={chapters:{heading:u.LanguageService.getPhrase(this.lang,"chaptersHeading"),line1:u.LanguageService.getPhrase(this.lang,"chaptersInfo1"),line2:u.LanguageService.getPhrase(this.lang,"chaptersInfo2")},subtitles:{heading:u.LanguageService.getPhrase(this.lang,"subtitlesHeading"),line1:u.LanguageService.getPhrase(this.lang,"subtitlesInfo1"),line2:u.LanguageService.getPhrase(this.lang,"subtitlesInfo2")},clickViewSubtitles:{heading:u.LanguageService.getPhrase(this.lang,"cvSubtitlesHeading"),line1:u.LanguageService.getPhrase(this.lang,"cvSubtitlesInfo1"),line2:u.LanguageService.getPhrase(this.lang,"cvSubtitlesInfo2")}};return{progress:this.model&&this.model.get("progress")&&u.LanguageService.getPhrase(this.lang,"progress",{progress:this.model.get("progress")}),componentOptions:e[this.options.type],processing:this.spinnerModel.get(rB.ShowSpinner),failed:this.model&&this.model.get("status")&&this.model.get("status")===Qf.ConcatenationFailed}}},{key:"onRender",value:function(){this.renderButton()}},{key:"name",get:function(){return"ConcatenateRequestComponent"}},{key:"template",get:function(){return ES.a}},{key:"lang",get:function(){return"libraryEditor.concatenateRequest"}},{key:"className",get:function(){return"mt-3"}}])&&xS(n.prototype,o),r&&xS(n,r),t}(u.Core.Component),DS=n(190),NS=n.n(DS);function AS(e){return(AS="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 MS(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 VS(e,t){return!t||"object"!==AS(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 US(e){return(US=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function FS(e,t){return(FS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var BS=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),VS(this,US(t).call(this,e))}var n,o,r;return 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&&FS(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get("image:storage")}},{key:"regions",value:function(){return{thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{editable:this.options.editable,dimensions:dn[E.Thumbnails]}}},{key:"onRender",value:function(){this.showChildView("thumbnail",new p.ThumbnailComponent({model:this.model,thumbnailOptions:{size:p.ImageSize.Medium}}))}},{key:"name",get:function(){return"EditThumbnailComponent"}},{key:"lang",get:function(){return"libraryEditor.editThumbnail"}},{key:"template",get:function(){return NS.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Wy,channelName:this.options.channelName,buttonSelector:".upload-thumbnail",imageType:E.Thumbnails,appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.UPLOAD_THUMBNAIL,args:[this.options.model.id]},saveImage:function(t){return e.viewModel.set({dataUrl:t})}}]}},{key:"defaults",get:function(){return{editable:!0}}}])&&MS(n.prototype,o),r&&MS(n,r),t}(u.Core.Component),HS=n(191),WS=n.n(HS);function zS(e){return(zS="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 qS(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 GS(e,t){return!t||"object"!==zS(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 YS(e){return(YS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function JS(e,t){return(JS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var KS=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GS(this,YS(t).call(this,e))}var n,o,r;return 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&&JS(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{tagList:{el:".tag-list-region",replaceElement:!0},tagSelector:{el:".tag-selector-region",replaceElement:!0}}}},{key:"initialize",value:function(){this.options.behavior!==Zf.Edit||this.options.parentId||u.Core.ErrorHelper.throw(new u.DevError("parentId is required to edit tags."))}},{key:"getTypeaheadConfigs",value:function(){var e=Yh.getTypeaheadConfig(),t=Yh.getBloodhoundConfig(),n={newType:D.TagsRaw},o={newType:D.TagsRaw,footerTemplate:p.TypeaheadHelper.getConfirmSelectionTemplate()};return[{name:D.TagsRaw,typeaheadConfig:e,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:t,options:n},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:t,options:o}]}},{key:"viewOptions",value:function(){var e;return this.showEmptyStateText()&&(e=this.options.emptyStateText),{headerText:this.options.headerText,editable:this.options.behavior===Zf.Edit,emptyStateText:e}}},{key:"showEmptyStateText",value:function(){return this.options.behavior!==Zf.Edit&&!this.collection.length&&!!this.options.emptyStateText}},{key:"renderTagSelector",value:function(){this.options.behavior===Zf.Edit&&this.showChildView("tagSelector",new Lb({model:this.model,parentChannelName:this.options.channelName,inputId:"tag-select",selectEvent:"add:tag",typeaheadConfigs:this.getTypeaheadConfigs(),placeholderText:u.LanguageService.getPhrase(this.lang,"placeholder"),callbacks:{onRender:p.TypeaheadHelper.selectFirstResult,onBlur:p.TypeaheadHelper.clearInputOnBlur},typeaheadOptions:{hint:!1},actionOptions:{clearOnSelect:!0}}))}},{key:"renderTagList",value:function(){this.showEmptyStateText()||this.showChildView("tagList",new bE({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent}))}},{key:"onRender",value:function(){this.renderTagSelector(),this.renderTagList()}},{key:"name",get:function(){return"TagsComponent"}},{key:"template",get:function(){return WS.a}},{key:"lang",get:function(){return"libraryEditor.tags"}},{key:"defaults",get:function(){return{headerText:u.LanguageService.getPhrase(this.lang,"heading"),orientation:$f.Flex}}}])&&qS(n.prototype,o),r&&qS(n,r),t}(u.Core.Component),QS=n(192),ZS=n.n(QS),$S=n(76),XS=n.n($S);function ek(e){return(ek="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 tk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nk(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 ok(e,t){return!t||"object"!==ek(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 rk(e){return(rk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ik(e,t){return(ik=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ak=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ok(this,rk(t).call(this,e))}var n,o,r;return 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&&ik(e,t)}(t,e),n=t,(o=[{key:"getParentChannel",value:function(){return yf.channel(this.options.channelName)}},{key:"getSaveChannelName",value:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .undo":"onUndo"}}},{key:"initialize",value:function(){var e;this.model||(this.model=new u.Core.Model((tk(e={},rB.ShowSpinner,this.options.showSpinner),tk(e,rB.Disabled,this.options.isDisabled),e)));var t=this.options.channelName;this.listenTo(t,Zp,this.onDisableSave),this.listenTo(t,$p,this.onEnableSave),this.listenTo(t,Qp,this.onCancelSave);var n=yf.channel(this.getSaveChannelName());this.listenTo(n,Jp,this.onSave),this.options.allowUndo&&(this.options.hasChanges&&this.model.set("showUndo",!0),this.listenTo(this.model,"change:showUndo",this.render))}},{key:"onCancelSave",value:function(){this.model.set(rB.ShowSpinner,!1)}},{key:"onEnableSave",value:function(){this.model.set(rB.Disabled,!1),this.options.allowUndo&&this.model.set("showUndo",!0)}},{key:"onDisableSave",value:function(){this.model.get(rB.ShowSpinner)&&this.model.set(rB.ShowSpinner,!1,{silent:!0}),this.model.set(rB.Disabled,!0),this.options.allowUndo&&this.model.set("showUndo",!1)}},{key:"onUndo",value:function(e){e.stopPropagation(),this.getParentChannel().trigger(Kp)}},{key:"onSave",value:function(){this.model.set(rB.ShowSpinner,!0),this.getParentChannel().trigger(Jp)}},{key:"viewOptions",value:function(){return{allowUndo:this.options.allowUndo&&this.model.get("showUndo"),styles:XS.a}}},{key:"renderSaveButton",value:function(){var e=new iB({saveEvent:Jp,channelName:this.getSaveChannelName(),model:this.model,buttonText:u.LanguageService.getPhrase(this.lang,"save"),extraButtonClass:"btn-primary ".concat(XS.a.saveButton),spinnerOptions:{size:qh.Small,type:Gh.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}},{key:"name",get:function(){return"SaveComponent"}},{key:"template",get:function(){return ZS.a}},{key:"className",get:function(){return"save-component ".concat(this.options.extraClasses)}},{key:"lang",get:function(){return"libraryEditor.save"}}])&&nk(n.prototype,o),r&&nk(n,r),t}(u.Core.Component),lk=n(193),sk=n.n(lk),uk=n(194),ck=n.n(uk);function pk(e){return(pk="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 fk(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 hk(e,t){return!t||"object"!==pk(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 dk(e){return(dk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yk(e,t){return(yk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gk=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hk(this,dk(t).call(this,e))}var n,o,r;return 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&&yk(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"update:tags",this.renderCustomerTags)}},{key:"regions",value:function(){return{topSave:{el:".top-save-region",replaceElement:!0},bottomSave:{el:".bottom-save-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},basicInfo:{el:".basic-info-region",replaceElement:!0},additionalInfo:{el:".additional-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},fields:{el:".fields-region",replaceElement:!0},clickViewTags:{el:".cv-tags-region",replaceElement:!1},customerTags:{el:".customer-tags-region",replaceElement:!0}}}},{key:"renderSave",value:function(){this.options.editable&&this.showChildView("topSave",new ak({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"})),this.showChildView("bottomSave",new ak({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"}))}},{key:"renderBasicInfo",value:function(){this.showChildView("basicInfo",new df({model:this.model,ratings:this.options.ratings,channelName:this.options.channelName,editable:this.options.editable,showingSaveButton:this.options.editable,showPublisherVideoDetails:this.options.showPublisherVideoDetails}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new BS({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderAdditionalInfo",value:function(){this.showChildView("additionalInfo",new gm({model:this.model,channelName:this.options.channelName,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:this.options.editable}))}},{key:"renderProductionInfo",value:function(){this.showChildView("productionInfo",new Ag({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderFields",value:function(){this.showChildView("fields",new Sb({model:this.model,channelName:this.options.channelName}))}},{key:"renderClickViewTags",value:function(){if(!this.options.editable){var e=bh.filterObjectsByOwnerType(this.model.tags,Xf.ClickView,this.options.currentUser.get("customerId"));this.showChildView("clickViewTags",new KS({parentId:this.model.get("id"),collection:e,orientation:$f.Flex,behavior:Zf.Disabled,channelName:this.options.channelName,headerText:u.LanguageService.getPhrase(this.lang,"clickviewTags"),emptyStateText:u.LanguageService.getPhrase(this.lang,"clickviewTagsEmpty")}))}}},{key:"renderCustomerTags",value:function(){var e=bh.filterObjectsByOwnerType(this.model.tags,Xf.Customer,this.options.currentUser.get("customerId"));this.showChildView("customerTags",new KS({parentId:this.model.get("id"),collection:e,channelName:this.options.channelName,behavior:Zf.Edit,headerText:u.LanguageService.getPhrase(this.lang,"customerTags"),removeEvent:"remove:tag"}))}},{key:"renderTags",value:function(){this.renderClickViewTags(),this.renderCustomerTags()}},{key:"viewOptions",value:function(){return{styles:ck.a,editable:this.options.editable,suggestEditClasses:"info-link text-underline suggest-edit",isExchange:Kh.isExchangeVideo(this.model)}}},{key:"onRender",value:function(){this.renderSave(),this.renderBasicInfo(),this.renderThumbnail(),this.renderAdditionalInfo(),this.renderProductionInfo(),this.renderFields(),this.renderTags()}},{key:"name",get:function(){return"EditVideoDetailsComponent"}},{key:"className",get:function(){return"edit-video-detail py-3"}},{key:"lang",get:function(){return"libraryEditor.editVideoDetails"}},{key:"template",get:function(){return sk.a}},{key:"appLinks",get:function(){return{".suggest-edit":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.id]}}}}])&&fk(n.prototype,o),r&&fk(n,r),t}(u.Core.Component),mk=n(195),bk=n.n(mk),vk=n(196),wk=n.n(vk),Sk=n(197),kk=n.n(Sk),Ok=n(198),Ck=n.n(Ok);function Ek(e){return(Ek="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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Tk(e,t){return!t||"object"!==Ek(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 Pk(e){return(Pk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xk(e,t){return(xk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ik=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Tk(this,Pk(t).call(this,e))}var n,o,r;return 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&&xk(e,t)}(t,e),n=t,(o=[{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:kk.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=s.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 Ck.a}},{key:"appLinks",get:function(){var e={};return this.options.tabs.forEach((function(t){return e[t.link.selector]=t.link.appLink})),e}}])&&_k(n.prototype,o),r&&_k(n,r),t}(u.Core.Component);function Lk(e){return(Lk="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 jk(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 Rk(e,t){return!t||"object"!==Lk(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 Dk(e){return(Dk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nk(e,t){return(Nk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ak=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Rk(this,Dk(t).call(this,e))}var n,o,r;return 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&&Nk(e,t)}(t,e),n=t,(o=[{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:bk.a,backTab:e,backArrow:p.SvgHelper.getSvg(p.cvSvgLibrary.ArrowLeft)}}},{key:"onSave",value:function(){sp.Radio.channel(y.LIBRARY_EDITOR).trigger(M.LibraryEditor.SAVE_VIDEO)}},{key:"onRender",value:function(){this.showChildView("tabs",new Ik({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 wk.a}},{key:"appLinks",get:function(){var e,t,n,o=this.options.goBackTab.link;return e={},t=o.selector,n=o.appLink,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}])&&jk(n.prototype,o),r&&jk(n,r),t}(u.Core.Component),Mk=n(22),Vk=n.n(Mk),Uk=n(199),Fk=n.n(Uk),Bk=n(200),Hk=n.n(Bk);function Wk(e){return(Wk="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 zk(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 qk(e,t){return!t||"object"!==Wk(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 Gk(e){return(Gk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yk(e,t){return(Yk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jk=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qk(this,Gk(t).call(this,e))}var n,o,r;return 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&&Yk(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){var e,t,n,o="dragleave .".concat(Vk.a.dropMask);return n="onDragLeave",(t=o)in(e={"drop .file-drop":"onDrop","dragover .file-drop":"onDragOver"})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},{key:"onDrop",value:function(){this.$el.removeClass(Vk.a.dragOver)}},{key:"onDragOver",value:function(e){this.$el.addClass(Vk.a.dragOver),e.preventDefault()}},{key:"onDragLeave",value:function(){this.$el.removeClass(Vk.a.dragOver)}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({},this.options),{styles:Vk.a,limitText:this.options.limitText,isClickViewContent:this.options.isClickViewContent})}},{key:"onRender",value:function(){this.getUI("dropArea").append(Fk()({dropMask:Vk.a.dropMask,fileDropText:u.LanguageService.getPhrase(this.lang,"drop")}))}},{key:"name",get:function(){return"FileSelectComponent"}},{key:"template",get:function(){return Hk.a}},{key:"lang",get:function(){return"libraryEditor.fileSelect"}},{key:"className",get:function(){var e="mt-3";return this.options.limitText||(e+=" mb-2"),e}},{key:"elements",get:function(){return{dropArea:".file-drop"}}},{key:"defaults",get:function(){return{acceptMultiple:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:zf,buttonSelector:".browse",channelName:this.options.channelName,acceptMultiple:this.options.acceptMultiple,mimeType:this.options.mimeType},{behaviorClass:Of,channelName:this.options.channelName,acceptMultiple:this.options.acceptMultiple}]}}])&&zk(n.prototype,o),r&&zk(n,r),t}(u.Core.Component),Kk=n(201),Qk=n.n(Kk),Zk=n(202),$k=n.n(Zk);function Xk(e){return(Xk="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 eO(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 tO(e,t){return!t||"object"!==Xk(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 nO(e){return(nO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oO(e,t){return(oO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var rO=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tO(this,nO(t).call(this,e))}var n,o,r;return 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&&oO(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"events",value:function(){return{"click .cancel-upload":"onClickCancelUpload"}}},{key:"onClickCancelUpload",value:function(){sp.Radio.channel(this.options.channelName).trigger("cancel:upload",this.model.get("id"))}},{key:"viewOptions",value:function(){return{styles:$k.a,svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Folder),tickSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Check),finished:this.model.get("progress")>=100}}},{key:"name",get:function(){return"FileUploadComponent"}},{key:"template",get:function(){return Qk.a}}])&&eO(n.prototype,o),r&&eO(n,r),t}(u.Core.Component),iO=n(203),aO=n.n(iO);function lO(e){return(lO="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 sO(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 uO(e,t){return!t||"object"!==lO(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 cO(e){return(cO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pO(e,t){return(pO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fO=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),uO(this,cO(t).call(this,e))}var n,o,r;return 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&&pO(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:u.LanguageService.getPhrase(this.lang,"addSubfolder"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Create,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Start}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:u.LanguageService.getPhrase(this.lang,"rename"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Rename,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Start}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:u.LanguageService.getPhrase(this.lang,"move"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Move,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Start}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:u.LanguageService.getPhrase(this.lang,"editImages"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.EditAssoc,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Start,descriptor:jb.AssocDescriptor.Image}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:u.LanguageService.getPhrase(this.lang,"generatePdf"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Create,entity:jb.EntityType.PDF,workflowPhase:jb.WorkflowPhase.Start}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:u.LanguageService.getPhrase(this.lang,"remove"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Delete,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new FF({analyticsHelper:jb.AnalyticsHelper,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new u.Core.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return aO.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&sO(n.prototype,o),r&&sO(n,r),t}(u.Core.Component),hO=n(204),dO=n.n(hO),yO=n(77),gO=n.n(yO);function mO(e){return(mO="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 bO(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 vO(e,t){return!t||"object"!==mO(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 wO(e){return(wO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function SO(e,t){return(SO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kO=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),vO(this,wO(t).call(this,e))}var n,o,r;return 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&&SO(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof fl&&this.showChildView("items",new fO({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(e){e.stopPropagation(),e.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof fl,dropdownClass:"".concat(gO.a.dropdownButton," ").concat(this.options.buttonClass),svg:p.SvgHelper.getSvg(p.cvSvgLibrary.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof fl)return"position-absolute ".concat(gO.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return dO.a}}])&&bO(n.prototype,o),r&&bO(n,r),t}(u.Core.Component),OO=n(205),CO=n.n(OO);function EO(e){return(EO="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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function TO(e,t){return!t||"object"!==EO(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 PO(e){return(PO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xO(e,t){return(xO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var IO=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),TO(this,PO(t).call(this,e))}var n,o,r;return 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&&xO(e,t)}(t,e),n=t,(o=[{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&&(sh.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 yB({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 CO.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:og,modelValidation:(e={validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection},t=e.validateName,n=e.validateParent,o=e.folder,r=e.collection,t&&n?s.extend({},ww,Sw(o,r)):t?ww:n?Sw(o,r):void 0)},{behaviorClass:Pg}];var e,t,n,o,r}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&_O(n.prototype,o),r&&_O(n,r),t}(u.Core.Component),LO=n(206),jO=n.n(LO);function RO(e){return(RO="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 DO(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 NO(e,t){return!t||"object"!==RO(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 AO(e){return(AO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function MO(e,t){return(MO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var VO=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),NO(this,AO(t).call(this,e))}var n,o,r;return 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&&MO(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.prepareData(),this.bindListeners()}},{key:"prepareData",value:function(){var e=this.options.library?this.options.library.collection:this.collection;this.collection=sh.flatten(e),Zh.setSelected(this.options.currentFolderId,this.collection),this.options.canCreateFolder&&this.collection.add({name:u.LanguageService.getPhrase(this.lang,"createNew"),eventName:"create:folder"})}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"create:folder",this.onClickCreateFolder),this.listenTo(this.channelName,"select:option:selected",(function(t){yf.channel(e.options.channelName).trigger("folder:selected",t)}))}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onClickCreateFolder",value:function(){yf.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"generatePrefix",value:function(){var e=this.model.get("depth");if(!s.isNumber(e)||this.model.get("hidePrefix"))return"";for(var t="",n=0;n<e;n++)t+=" ";return e&&(t+="- "),t}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disableLibraries,t=this.options.disabledFolderIds;return function(n){var o=n||this.model;return!(!e||o.get("type")!==O.CustomLibrary)||!(!t||!s.contains(t,o.get("id").toString()))}}},{key:"onRender",value:function(){this.showChildView("dropdown",new iU({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",prefixHandler:this.generatePrefix,currentSelectedMessage:this.options.currentSelectedMessage||u.LanguageService.getPhrase(this.lang,"current"),isDisabled:this.getIsOptionDisabledFn(),truncateOptionNames:!0},placeholderText:this.options.placeholderText||u.LanguageService.getPhrase(this.lang,"placeholder"),noOptionsText:u.LanguageService.getPhrase(this.lang,"noFolders"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:jb.AnalyticsHelper}))}},{key:"lang",get:function(){return"libraryEditor.folderSelect"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"name",get:function(){return"FolderSelectView"}},{key:"className",get:function(){return"position-relative"}},{key:"template",get:function(){return jO.a}}])&&DO(n.prototype,o),r&&DO(n,r),t}(u.Core.Component),UO={handleQuery:function(e,t){return function(e,t,n){var o=[];if(e){var r=CVLanguages.getEnglishNameContains(e);return s.each(r,(function(e,t){o.push({key:t,name:e.englishName})})),t(o)}t()}},getTypeaheadConfig:function(){return function(e,t){return{name:"languages",source:UO.handleQuery(),limit:5,display:function(e){return e.name},templates:{suggestion:Dh.a,pending:Ah.a,notFound:Vh.a}}}}},FO=n(207),BO=n.n(FO);function HO(e){return(HO="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 WO(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 zO(e,t){return!t||"object"!==HO(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 qO(e){return(qO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GO(e,t){return(GO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var YO=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zO(this,qO(t).call(this,e))}var n,o,r;return 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&&GO(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(e){this.model=u.ViewModelService.get("subtitle:language",e.defaultLanguage),this.model.addValidation(Lh),this.listenTo(this.channelName,"select:language",this.onLanguageSelected)}},{key:"events",value:function(){return{"click .submit":"onClickSubmit",submit:"onClickSubmit"}}},{key:"regions",value:function(){return{typeahead:".typahead-region"}}},{key:"getTypeaheadConfigs",value:function(){return[{name:"languages",typeaheadConfig:UO.getTypeaheadConfig()}]}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new Lb({model:this.model,parentChannelName:this.channelName,inputId:"language",selectEvent:"select:language",typeaheadConfigs:this.getTypeaheadConfigs()}))}},{key:"onLanguageSelected",value:function(e){this.model.set("code",e.key)}},{key:"onClickSubmit",value:function(){this.model.validate(),this.model.isValid()&&(this.options.promise.resolve(this.model.toJSON()),this.triggerMethod("hide"))}},{key:"onBeforeDestroy",value:function(){"pending"===this.options.promise.state()&&this.options.promise.reject()}},{key:"onRender",value:function(){this.renderTypeahead()}},{key:"template",get:function(){return BO.a}},{key:"name",get:function(){return"LanguageSelectComponent"}},{key:"lang",get:function(){return"libraryEditor.languageSelect"}},{key:"behaviors",get:function(){return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),buttons:[{text:u.LanguageService.getPhrase(this.lang,"submit"),type:"submit",className:"btn btn-primary submit"}]},{behaviorClass:og}]}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&WO(n.prototype,o),r&&WO(n,r),t}(u.Core.Component),JO=n(208),KO=n.n(JO),QO=n(209),ZO=n.n(QO),$O=n(78),XO=n.n($O);function eC(e){return(eC="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 tC(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 nC(e,t){return!t||"object"!==eC(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 oC(e){return(oC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rC(e,t){return(rC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var iC=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nC(this,oC(t).call(this,e))}var n,o,r;return 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&&rC(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new FF({analyticsHelper:jb.AnalyticsHelper,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new u.Core.Collection([{title:u.LanguageService.getPhrase(this.lang,"addFolder"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Create,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Start}),appLink:{application:y.LIBRARY_EDITOR,action:M.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:u.LanguageService.getPhrase(this.lang,"rename"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Rename,entity:jb.EntityType.Library,workflowPhase:jb.WorkflowPhase.Start}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:u.LanguageService.getPhrase(this.lang,"remove"),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Delete,entity:jb.EntityType.Library,workflowPhase:jb.WorkflowPhase.Start}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(e){e.stopPropagation(),e.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(XO.a.dropdownButton," ").concat(this.options.buttonClass),svg:p.SvgHelper.getSvg(p.cvSvgLibrary.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return ZO.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(XO.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&tC(n.prototype,o),r&&tC(n,r),t}(u.Core.Component);function aC(e){return(aC="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 lC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sC(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 uC(e,t,n){return t&&sC(e.prototype,t),n&&sC(e,n),e}function cC(e,t){return!t||"object"!==aC(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 pC(e){return(pC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fC(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&&hC(e,t)}function hC(e,t){return(hC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var dC=function(e){function t(e){return lC(this,t),cC(this,pC(t).call(this,e))}return fC(t,e),uC(t,[{key:"initialize",value:function(){var e=this.options.forceOpen||this.options.libraryId&&this.model.get("id").toString()===this.options.libraryId.toString();this.viewModel=u.ViewModelService.get("".concat("library:left:nav",":").concat(this.model.get("id"))),this.viewModel.set("open",e),this.viewModel.set("disabled",!1),this.listenTo(this.model,"change:name",this.render),this.options.hasMultipleLibraries&&this.listenTo(this,"open:sub:folders",this.onOpenSubFolders),this.videoDragDropService=u.InstanceManager.getInstance(sn.VideoDragDrop,this)}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .library-event":"onClick"}}},{key:"onClick",value:function(e){this.viewModel.get("open")&&(e.stopImmediatePropagation(),e.preventDefault(),this.viewModel.set("open",!this.viewModel.get("open")),this.render())}},{key:"onOpenSubFolders",value:function(){if(this.videoDragDropService.getDisabledLibraryIds().includes(this.model.get("id")))return this.viewModel.set("disabled",!0),void this.render();this.viewModel.set("open",!0),this.render()}},{key:"hasFolders",value:function(){return!!sh.getFirstType(this.model.children,"category")}},{key:"viewOptions",value:function(){return{styles:Fv.a,caretSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Caret),open:this.viewModel.get("open"),hasFolders:this.hasFolders(),disabled:this.viewModel.get("disabled")}}},{key:"onRender",value:function(){this.showChildView("actions",new iC({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(Fv.a.actions),buttonClass:"text-muted",analyticsOptions:this.analyticsOptions})),this.model.children&&this.model.children.length&&this.viewModel.get("open")&&this.showChildView("folders",new Gv({appLink:{action:M.LibraryEditor.FOLDER,application:y.LIBRARY_EDITOR},linkArgs:function(e){return[e.get("id")]},collection:this.model.children,channelName:"".concat(this.cid),childrenProperty:"children",actions:kO,folderTreeId:this.options.folderTreeId,analyticsOptions:this.analyticsOptions}))}},{key:"name",get:function(){return"LeftNavLibraryComponent"}},{key:"template",get:function(){return KO.a}},{key:"className",get:function(){return Fv.a.libraryContainer}},{key:"behaviors",get:function(){var e=[h.FOLDER_DRAG_DROP];return this.options.hasMultipleLibraries&&e.push(h.VIDEO_DRAG_DROP),[{behaviorClass:cv,ui:"anchor",channelNames:e,analyticsOptions:{location:jb.LocationContext.LeftNav}}]}},{key:"appLinks",get:function(){return{".ui-anchor":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.LIBRARY,args:[this.model.get("id")]}}}},{key:"elements",get:function(){return{anchor:".ui-anchor",text:".ui-text"}}},{key:"analyticsOptions",get:function(){return{location:jb.LocationContext.LeftNav}}}]),t}(u.Core.Component),yC=function(e){function t(e){return lC(this,t),cC(this,pC(t).call(this,e))}return fC(t,e),uC(t,[{key:"name",get:function(){return"LeftNavLibrariesComponent"}},{key:"childView",get:function(){return dC}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,libraryId:this.options.libraryId,folderTreeId:this.options.folderTreeId,forceOpen:this.options.forceOpen,hasMultipleLibraries:this.collection.length>1}}}]),t}(u.Core.ComponentCollection),gC=n(210),mC=n.n(gC);function bC(e){return(bC="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 vC(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 wC(e,t){return!t||"object"!==bC(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 SC(e){return(SC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kC(e,t){return(kC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var OC=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),wC(this,SC(t).call(this,e))}var n,o,r;return 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&&kC(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),Zh.deselectAll(this.collection),Zh.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){sp.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(s.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new iU({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||u.LanguageService.getPhrase(this.lang,"placeholder"),noOptionsText:u.LanguageService.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:jb.AnalyticsHelper}))}},{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 mC.a}}])&&vC(n.prototype,o),r&&vC(n,r),t}(u.Core.Component),CC=n(211),EC=n.n(CC),_C=n(79),TC=n.n(_C);function PC(e){return(PC="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 xC(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 IC(e,t){return!t||"object"!==PC(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 LC(e){return(LC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jC(e,t){return(jC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var RC=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),IC(this,LC(t).call(this,e))}var n,o,r;return 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&&jC(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.setSort(),this.bindListeners(),this.initializeCollection()}},{key:"getViewModel",value:function(){this.model=oh.GetSortViewModel()}},{key:"setSort",value:function(){var e=this.options.collectionIdentifier.sort;if(e!==this.model.get("sortType")){var t=oh.CreateSortObject(e);this.model.set(t)}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"sort:selected",this.onSortSelected)}},{key:"initializeCollection",value:function(){this.collection||(this.collection=oh.CreateSortCollection())}},{key:"regions",value:function(){return{dropdown:".dropdown-menu-region"}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.logAction(jb.WorkflowPhase.Start)}},{key:"onSortSelected",value:function(e){this.model.set(e.toJSON()),this.render(),this.logAction(jb.WorkflowPhase.Complete)}},{key:"logAction",value:function(e){var t=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};jb.AnalyticsHelper.logUserAction(n,t)}},{key:"onRender",value:function(){var e=this,t=this.collection.filter((function(t){return t.get("name")!==e.model.get("name")})),n=new u.Core.Collection(s.map(t,(function(t){var n=t.toJSON();return n.appLink={application:e.options.appLink.application,action:e.options.appLink.action,args:[e.options.collectionIdentifier.id],params:{sort:t.get("sortName")}},n})));this.showChildView("dropdown",new FF({collection:n,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"right",extraClasses:TC.a.sortSelectDropdown},analyticsHelper:jb.AnalyticsHelper}))}},{key:"name",get:function(){return"SortSelectComponent"}},{key:"template",get:function(){return EC.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"d-inline-block ".concat(TC.a.sortSelect)}}])&&xC(n.prototype,o),r&&xC(n,r),t}(u.Core.Component),DC=n(212),NC=n.n(DC);function AC(e){return(AC="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 MC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VC(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 UC(e,t,n){return t&&VC(e.prototype,t),n&&VC(e,n),e}function FC(e,t){return!t||"object"!==AC(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 BC(e){return(BC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function HC(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&&WC(e,t)}function WC(e,t){return(WC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var zC=function(e){function t(){return MC(this,t),FC(this,BC(t).apply(this,arguments))}return HC(t,e),UC(t,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"childView",get:function(){return nE}}]),t}(u.Core.ComponentCollection),qC=function(e){function t(){return MC(this,t),FC(this,BC(t).apply(this,arguments))}return HC(t,e),UC(t,[{key:"regions",value:function(){return{subFolders:{replaceElement:!0,el:".subfolders-region"}}}},{key:"onRender",value:function(){this.showChildView("subFolders",new zC({collection:this.collection}))}},{key:"name",get:function(){return"SubFoldersView"}},{key:"className",get:function(){return"container-fluid border-bottom pt-3 bg-white"}},{key:"template",get:function(){return NC.a}}]),t}(u.Core.Component),GC=n(213),YC=n.n(GC),JC=n(80),KC=n.n(JC);function QC(e){return(QC="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 ZC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $C(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 XC(e,t){return!t||"object"!==QC(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 eE(e){return(eE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tE(e,t){return(tE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nE=function(e){function t(){return ZC(this,t),XC(this,eE(t).apply(this,arguments))}var n,o,r;return 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&&tE(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{replaceElement:!0,el:".actions-region"}}}},{key:"viewOptions",value:function(){return{styles:KC.a,svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Folder)}}},{key:"onRender",value:function(){this.showChildView("actions",new kO({model:this.model,extraClasses:"".concat(KC.a.actions," rounded-circle mr-2"),analyticsOptions:{location:jb.LocationContext.SubFolderList}}))}},{key:"name",get:function(){return"SubFolderComponent"}},{key:"elements",get:function(){return{anchor:"a",block:".ui-block"}}},{key:"template",get:function(){return YC.a}},{key:"className",get:function(){return"col-3 d-inline-block pb-3"}},{key:"behaviors",get:function(){return[{behaviorClass:cv,ui:"block",channelNames:[h.VIDEO_DRAG_DROP,h.FOLDER_DRAG_DROP],analyticsOptions:{location:jb.LocationContext.SubFolderList}},{behaviorClass:Iv}]}},{key:"appLinks",get:function(){return{a:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}}])&&$C(n.prototype,o),r&&$C(n,r),t}(u.Core.Component),oE=n(214),rE=n.n(oE),iE=n(215),aE=n.n(iE);function lE(e){return(lE="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 sE(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 uE(e,t){return!t||"object"!==lE(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 cE(e){return(cE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pE(e,t){return(pE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fE=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),uE(this,cE(t).call(this,e))}var n,o,r;return 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&&pE(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===Zf.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==Zf.Filter){var e=this.model.pick("id","name","remove"),t=e.id,n=e.name;return!!e.remove||!t||!n}}},{key:"onRemoveTag",value:function(e){if(e.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),yf.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(e){this.options.behavior!==Zf.Filter||this.options.removeEvent||yf.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}},{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===Zf.Link?"a":"span"}},{key:"className",get:function(){var e="".concat(this.options.orientation===$f.Vertical?"":" d-inline-flex"),t="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===Zf.Disabled?" ".concat(aE.a.disabled):""),o="".concat(this.options.behavior===Zf.Filter?" cursor-pointer":"");return"badge-pill tag py-1 px-2 my-1 mr-1".concat(o).concat(e).concat(t).concat(n)}},{key:"template",get:function(){return rE.a}},{key:"elements",get:function(){return{close:".close"}}},{key:"appLinks",get:function(){return this.options.behavior!==Zf.Link?{}:{"[this]":{application:y.SEARCH,action:M.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:Zf.Link,orientation:$f.Flex}}}])&&sE(n.prototype,o),r&&sE(n,r),t}(u.Core.Component);function hE(e){return(hE="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 dE(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 yE(e,t){return!t||"object"!==hE(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 gE(e){return(gE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mE(e,t){return(mE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bE=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),yE(this,gE(t).call(this,e))}var n,o,r;return 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&&mE(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.options.behavior!==Zf.Edit||this.options.removeEvent||u.Core.ErrorHelper.throw(new u.DevError("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:$f.Flex}}},{key:"className",get:function(){var e="".concat(this.options.orientation===$f.Vertical?" d-flex align-items-start flex-column":"");return"tags".concat(e)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return fE}}])&&dE(n.prototype,o),r&&dE(n,r),t}(u.Core.ComponentCollection),vE=n(81),wE=n.n(vE),SE=n(216),kE=n.n(SE);function OE(e){return(OE="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 CE(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 EE(e,t){return!t||"object"!==OE(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(e){return(_E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function TE(e,t){return(TE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var PE=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),EE(this,_E(t).call(this,e))}var n,o,r;return 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&&TE(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{actions:{el:".video-actions-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return{styles:wE.a,lockSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Lock),hasRestriction:!s.isUndefined(this.model.get("restrictions")),restrictionMessage:ih.getRestrictionTooltipMessage(this.model)}}},{key:"onRender",value:function(){this.showChildView("actions",new lV({model:this.model,showActionLabels:!0,application:y.LIBRARY_EDITOR,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,collectionIdentifier:this.options.collectionIdentifier,routeToFolderOnDelete:!0,analyticsOptions:{entity:jb.EntityType.Video,location:jb.LocationContext.VideoDetailsHeader,descriptor:jb.OperationDescriptor.Single},config:this.options.config}))}},{key:"name",get:function(){return"VideoHeaderComponent"}},{key:"template",get:function(){return kE.a}},{key:"className",get:function(){return"d-flex align-items-center justify-content-between p-3 w-100"}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".".concat(wE.a.svgContainer)}]}}])&&CE(n.prototype,o),r&&CE(n,r),t}(u.Core.Component),xE=n(217),IE=n.n(xE);function LE(e){return(LE="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 jE(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 RE(e,t){return!t||"object"!==LE(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 DE(e){return(DE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function NE(e,t){return(NE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var AE=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),RE(this,DE(t).call(this,e))}var n,o,r;return 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&&NE(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.analyticsOptions=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{location:jb.LocationContext.VideoListHeader})}},{key:"regions",value:function(){return{checkAll:{el:".check-all-region",replaceElement:!1},bulkActions:{el:".bulk-actions-region",replaceElement:!0},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1},sorting:{el:".sorting-region",replaceElement:!0}}}},{key:"renderCheckAll",value:function(){!this.options.allowBulk||this.collection.length<=0||this.showChildView("checkAll",new Kb({className:"float-left",key:this.collectionIdentifier.toString(),type:ef,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){!this.options.allowBulk||this.collection.length<=0||this.showChildView("bulkActions",new Fb({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{descriptor:jb.OperationDescriptor.Bulk,location:jb.LocationContext.VideoListHeader,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Start})}))}},{key:"renderBreadcrumbs",value:function(){this.options.folder&&this.options.libraries&&this.showChildView("breadcrumbs",new MV({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"renderSorting",value:function(){this.collection.length<=0||this.showChildView("sorting",new RC({collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.analyticsOptions,appLink:{application:this.options.application,action:this.options.action}}))}},{key:"viewOptions",value:function(){return{showBulkActions:this.options.allowBulk&&this.collection.length>0}}},{key:"onRender",value:function(){this.renderCheckAll(),this.renderBulkActions(),this.renderBreadcrumbs(),this.renderSorting()}},{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return IE.a}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center px-3 py-2 border-bottom"}},{key:"props",get:function(){return["collectionIdentifier"]}}])&&jE(n.prototype,o),r&&jE(n,r),t}(u.Core.Component),ME=n(218),VE=n.n(ME),UE=n(219),FE=n.n(UE),BE=n(220),HE=n.n(BE);function WE(e){return(WE="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 zE(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 qE(e,t){return!t||"object"!==WE(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 GE(e){return(GE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function YE(e,t){return(YE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var JE=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qE(this,GE(t).call(this,e))}var n,o,r;return 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&&YE(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"onClickEdit",value:function(){var e=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Edit,entity:jb.EntityType.Resource,workflowPhase:jb.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"onClickDelete",value:function(){var e=this;new th({title:u.LanguageService.getPhrase(this.lang,"removeHeading"),text:u.LanguageService.getPhrase(this.lang,"removeBody",{resourceName:this.model.get("name")}),buttons:[{text:u.LanguageService.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:u.LanguageService.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done((function(){sp.Radio.channel(e.options.channelName).trigger("delete:resource",e.model.get("id"))}))}},{key:"viewOptions",value:function(){var e=this.model.get("metadata"),t=e?e.type:"";return{editable:this.options.editable,styles:FE.a,extension:_w.mapTypeToExtension(t),svg:_w.mapTypeToSvg(t),iconClass:_w.mapTypeToClass(t),resourceType:_w.mapTypeToName(t),editSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Edit),trashSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Delete)}}},{key:"name",get:function(){return"ResourceItemComponent"}},{key:"template",get:function(){return HE.a}},{key:"className",get:function(){return"mb-2"}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"appLinks",get:function(){return{".edit":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_RESOURCE,args:[this.options.videoId,this.model.get("id")]}}}}])&&zE(n.prototype,o),r&&zE(n,r),t}(u.Core.Component);function KE(e){return(KE="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 QE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZE(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 $E(e,t,n){return t&&ZE(e.prototype,t),n&&ZE(e,n),e}function XE(e,t){return!t||"object"!==KE(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_(e){return(e_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t_(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)}function n_(e,t){return(n_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o_=function(e){function t(e){return QE(this,t),XE(this,e_(t).call(this,e))}return t_(t,e),$E(t,[{key:"name",get:function(){return"VideoResourcesComponentCollection"}},{key:"className",get:function(){return"mt-3"}},{key:"childView",get:function(){return JE}},{key:"childViewOptions",get:function(){return{editable:this.options.editable,videoId:this.options.videoId,channelName:this.options.channelName,analyticsOptions:this.options.analyticsOptions}}}]),t}(u.Core.ComponentCollection),r_=function(e){function t(e){return QE(this,t),XE(this,e_(t).call(this,e))}return t_(t,e),$E(t,[{key:"regions",value:function(){return{resources:{replaceElement:!0,el:".resource-list-region"}}}},{key:"renderResources",value:function(){var e=new o_({collection:this.options.customCollection||this.model.resources,editable:this.options.editable||!1,videoId:this.options.videoId||this.model.get("id"),channelName:this.options.parentChannelName||this.channelName});this.showChildView("resources",e)}},{key:"viewOptions",value:function(){return{resourcesHeadingText:this.options.headerText||u.LanguageService.getPhrase(this.lang,"heading"),emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.renderResources()}},{key:"name",get:function(){return"VideoResourcesComponent"}},{key:"template",get:function(){return VE.a}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}}]),t}(u.Core.Component),i_=n(221),a_=n.n(i_),l_=n(222),s_=n.n(l_);function u_(e){return(u_="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 c_(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 p_(e,t){return!t||"object"!==u_(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)}function h_(e,t){return(h_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d_=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p_(this,f_(t).call(this,e))}var n,o,r;return 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)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!bh.canEditVideo(this.model)}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new ZP({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:jb.LocationContext.VideoDetails}}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new bE({collection:this.model.get("tags"),orientation:$f.Flex,behavior:Zf.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new bA({model:this.model,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:s_.a,interactive:_w.isInteractive(this.model),duration:xh.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&bh.filterObjectsByOwnerType(this.model.tags,Xf.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return a_.a}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&c_(n.prototype,o),r&&c_(n,r),t}(u.Core.Component),y_=n(223),g_=n.n(y_),m_=n(224),b_=n.n(m_);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 w_(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 S_(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)}function O_(e,t){return(O_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C_=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),S_(this,k_(t).call(this,e))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O_(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .delete":"onClickDelete"}}},{key:"getEnglishName",value:function(){var e=this.model.get("language");return this.model.collection.filter((function(t){return t.get("language")!==e})).length>0?CVLanguages.getFullEnglishName(e):CVLanguages.getEnglishName(e)}},{key:"onClickDelete",value:function(){var e=this;this.options.isClickViewContent||new th({title:u.LanguageService.getPhrase(this.lang,"removeHeading"),text:u.LanguageService.getPhrase(this.lang,"removeBody",{language:this.getEnglishName()}),buttons:[{text:u.LanguageService.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:u.LanguageService.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done((function(){sp.Radio.channel(e.options.channelName).trigger("delete:subtitle",e.model.get("id"))}))}},{key:"viewOptions",value:function(){return{styles:b_.a,svg:_w.mapTypeToSvg("subtitle"),trashSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Delete),name:this.getEnglishName(),isClickViewContent:this.options.isClickViewContent}}},{key:"name",get:function(){return"SubtitleItemComponent"}},{key:"template",get:function(){return g_.a}},{key:"lang",get:function(){return"libraryEditor.videoSubtitles"}},{key:"className",get:function(){return"mb-2"}}])&&w_(n.prototype,o),r&&w_(n,r),t}(u.Core.Component),E_=n(225),__=n.n(E_);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 P_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x_(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function I_(e,t,n){return t&&x_(e.prototype,t),n&&x_(e,n),e}function L_(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 j_(e){return(j_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R_(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)}function D_(e,t){return(D_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N_=function(e){function t(e){return P_(this,t),L_(this,j_(t).call(this,e))}return R_(t,e),I_(t,[{key:"regions",value:function(){return{subtitles:{el:".subtitles-list-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{headerText:this.options.headerText,emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.showChildView("subtitles",new A_({collection:this.collection,channelName:this.options.channelName,isClickViewContent:this.options.isClickViewContent}))}},{key:"name",get:function(){return"VideoSubtitlesComponent"}},{key:"template",get:function(){return __.a}}]),t}(u.Core.Component),A_=function(e){function t(e){return P_(this,t),L_(this,j_(t).call(this,e))}return R_(t,e),I_(t,[{key:"name",get:function(){return"VideoSubtitlesComponentCollection"}},{key:"childView",get:function(){return C_}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,isClickViewContent:this.options.isClickViewContent}}}]),t}(u.Core.ComponentCollection),M_=n(226),V_=n.n(M_),U_=n(82),F_=n.n(U_),B_=n(83),H_=n.n(B_);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 z_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q_(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 G_(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 Y_(e){return(Y_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J_(e,t){return(J_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var K_=function(e){function t(){return z_(this,t),G_(this,Y_(t).apply(this,arguments))}var n,o,r;return 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)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.options.model||u.Core.ErrorHelper.throw(new u.DevError("DraggableVideoBehavior must be passed a Video model")),this.listenTo(h.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(h.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var e=this.getVideoModels();return new wv({text:e.length>1?u.LanguageService.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(H_.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(H_.a.draggingVideo)}},{key:"start",value:function(){var e=this.getVideoModels(),t=yf.channel(h.VIDEO_DRAG_DROP);t.trigger("drag:start",e,this.options.collectionIdentifier),s.each(e,(function(e){return t.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){yf.channel(h.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,t=nh.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:ef,collection:this.view.model.collection});return s.any(t,(function(t){return t.id===e.view.model.id}))||(t=[this.view.model]),t.length?t:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":fv.a.draggable,"ui-draggable-disabled":fv.a.disabled,"ui-draggable-handle":fv.a.handle,"ui-draggable-dragging":fv.a.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),t={helper:s.bind(this.helper,this),start:s.bind(this.start,this),stop:s.bind(this.stop,this)};t.classes=this.getClassMappings(),e.draggable(s.extend({},Sv,t))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&q_(n.prototype,o),r&&q_(n,r),t}(u.Core.Behavior);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 Z_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $_(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,n){return t&&$_(e.prototype,t),n&&$_(e,n),e}function eT(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 tT(e){return(tT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nT(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&&oT(e,t)}function oT(e,t){return(oT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var rT=function(e){function t(e){return Z_(this,t),eT(this,tT(t).call(this,e))}return nT(t,e),X_(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var e=Ch.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:E.Thumbnails});return{styles:F_.a,imageUrl:e}}},{key:"onRender",value:function(){this.showChildView("actions",new kO({model:this.model,extraClasses:"".concat(F_.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:jb.LocationContext.LibraryTiles}}))}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return V_.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:cv,channelNames:[h.VIDEO_DRAG_DROP,h.FOLDER_DRAG_DROP],analyticsOptions:{location:jb.LocationContext.LibraryTiles}},{behaviorClass:Iv}]}}]),t}(u.Core.Component),iT=function(e){function t(e){return Z_(this,t),eT(this,tT(t).call(this,e))}return nT(t,e),X_(t,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return rT}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),t}(u.Core.ComponentCollection),aT=n(227),lT=n.n(aT),sT=n(84),uT=n.n(sT);function cT(e){return(cT="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 pT(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 fT(e,t){return!t||"object"!==cT(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 hT(e){return(hT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dT(e,t){return(dT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yT=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),fT(this,hT(t).call(this,e))}var n,o,r;return 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&&dT(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return e={},t="click .".concat(uT.a.addCrest),n="onClickAddLogo",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickAddLogo",value:function(){var e={location:jb.LocationContext.LeftNav,actionType:jb.UserAction.Create,entity:jb.EntityType.Logo};jb.AnalyticsHelper.logUserAction({},e)}},{key:"viewOptions",value:function(){return{styles:uT.a,uploadLogoUrl:u.UrlHelper.safeUrlConcat(this.options.onlineUrl,Tn.UPLOAD_LOGO)}}},{key:"name",get:function(){return"CustomerLogoComponent"}},{key:"template",get:function(){return lT.a}},{key:"lang",get:function(){return"libraryEditor.customerLogo"}},{key:"className",get:function(){return"text-center p-3 position-relative"}}])&&pT(n.prototype,o),r&&pT(n,r),t}(u.Core.Component);function gT(e){return(gT="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 mT(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 bT(e,t){return!t||"object"!==gT(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 vT(e){return(vT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wT(e,t){return(wT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ST=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),bT(this,vT(t).call(this,e))}var n,o,r;return 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&&wT(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FileUploadsComponentCollection"}},{key:"childView",get:function(){return rO}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}])&&mT(n.prototype,o),r&&mT(n,r),t}(u.Core.ComponentCollection),kT=n(228),OT=n.n(kT),CT=n(229),ET=n.n(CT);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 TT(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 PT(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 xT(e){return(xT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function IT(e,t){return(IT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var LT=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),PT(this,xT(t).call(this,e))}var n,o,r;return 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&&IT(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===Ap.BroadcastDate?this.options.metadataValue?rh(this.options.metadataValue).format(P.FULL_YEAR):u.LanguageService.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof u.Core.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):u.LanguageService.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||u.LanguageService.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===Ap.Other?u.LanguageService.getPhrase(this.lang,"otherSuggestionPlaceholder"):u.LanguageService.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:_w.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===Ap.Rating&&this.showChildView("ratingSelect",new am({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:ET.a,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===Ap.Rating,isOtherType:this.options.metadataType===Ap.Other,metadataType:_w.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),Up.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),Up.unbind(this)}},{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return OT.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"}}}])&&TT(n.prototype,o),r&&TT(n,r),t}(u.Core.Component),jT=n(230),RT=n.n(jT);function DT(e){return(DT="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 NT(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 AT(e,t){return!t||"object"!==DT(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 MT(e){return(MT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function VT(e,t){return(VT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var UT=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),AT(this,MT(t).call(this,e))}var n,o,r;return 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&&VT(e,t)}(t,e),n=t,(o=[{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 KT({channelName:this.options.bannerChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:E.Banners,folderName:this.options.folderName,originalImage:this.options.bannerImage,folderId:this.options.folderId}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new KT({channelName:this.options.thumbnailChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:E.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 RT.a}}])&&NT(n.prototype,o),r&&NT(n,r),t}(u.Core.Component),FT=n(231),BT=n.n(FT),HT=n(38),WT=n.n(HT);function zT(e){return(zT="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 qT(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 GT(e,t){return!t||"object"!==zT(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 YT(e){return(YT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function JT(e,t){return(JT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var KT=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GT(this,YT(t).call(this,e))}var n,o,r;return 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&&JT(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get("edit:folder:images")}},{key:"events",value:function(){return e={},t="click .".concat(WT.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(){sp.Radio.channel(this.options.channelName).trigger("show:dialog",this.options.imageType)}},{key:"getImageUrl",value:function(){var e=this.options.imageType===E.Banners?"createBannerUrl":"createFolderThumbnailUrl";return Ch[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 E.Banners:return u.LanguageService.getPhrase(this.lang,"banner");case E.Thumbnails:return u.LanguageService.getPhrase(this.lang,"thumbnail")}}},{key:"viewOptions",value:function(){return{styles:WT.a,imageUrl:this.getImageUrl(),hasImage:this.options.originalImage&&this.options.originalImage.get("id"),imageTypeText:this.getImageTypeText(),dimensions:hn[this.options.imageType],recommendedDimensions:dn[this.options.imageType]}}},{key:"name",get:function(){return"EditImageComponent"}},{key:"template",get:function(){return BT.a}},{key:"lang",get:function(){return"libraryEditor.editImage"}},{key:"className",get:function(){return this.options.imageType===E.Thumbnails?"".concat(WT.a.thumbnail," mb-2"):"".concat(WT.a.banner," mt-2")}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Wy,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}),u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_FOLDER_IMAGES,args:[e.options.folderId]})):sp.Radio.channel(e.options.channelName).trigger("select:image",t,e.options.imageType)}}]}}])&&qT(n.prototype,o),r&&qT(n,r),t}(u.Core.Component),QT=n(232),ZT=n.n(QT);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 XT(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 eP(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 tP(e){return(tP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nP(e,t){return(nP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oP=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=eP(this,tP(t).call(this,e))).showNameField=!1,n.disableBtn=!0,n}var n,o,r;return 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&&nP(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.model=u.ViewModelService.get(this.viewModelName),this.model.addValidation(mw),this.bindListeners()}},{key:"regions",value:function(){return{attachBtn:".attach-btn-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change:url",this.onChangeUrl),this.listenTo(this.model,"change:name",this.onChangeName),this.listenTo(this.options.channelName,"attach:link",this.onClickAttach)}},{key:"onChangeUrl",value:function(){this.showNameField&&!this.model.isValid("url")?(this.getUI("nameField").hide(),this.model.set("name",""),this.showNameField=!1):!this.showNameField&&this.model.isValid("url")&&(this.getUI("nameField").show(),this.showNameField=!0)}},{key:"onChangeName",value:function(){this.model.validate("name"),this.disableBtn=!this.model.isValid(),this.renderAttachButton()}},{key:"onClickAttach",value:function(){var e=this.model.toJSON();this.model.clear(),sp.Radio.channel(this.options.channelName).trigger("add:link",e),this.render()}},{key:"renderAttachButton",value:function(){this.options.hide||this.showChildView("attachBtn",new iB({saveEvent:"attach:link",channelName:this.options.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"attach"),extraButtonClass:"btn-secondary attach",disabled:this.disableBtn,buttonType:"submit",spinnerOptions:{size:qh.Medium,type:Gh.Light,extraClasses:"mx-auto"}}))}},{key:"viewOptions",value:function(){return{limit:this.options.limit,hide:this.options.hide}}},{key:"onRender",value:function(){this.renderAttachButton(),this.stickit(),Up.bind(this)}},{key:"onClose",value:function(){this.unstickit(),Up.unbind(this)}},{key:"name",get:function(){return"AddLinksComponent"}},{key:"template",get:function(){return ZT.a}},{key:"lang",get:function(){return"libraryEditor.addLinks"}},{key:"tagName",get:function(){return"form"}},{key:"bindings",get:function(){return{"[name=url]":{observe:"url",setOptions:{validate:!0}},"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"behaviors",get:function(){return[{behaviorClass:Pg},{behaviorClass:og}]}},{key:"elements",get:function(){return{nameField:"#name-container"}}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.cid)}}])&&XT(n.prototype,o),r&&XT(n,r),t}(u.Core.Component),rP=n(233),iP=n.n(rP),aP=n(234),lP=n.n(aP);function sP(e){return(sP="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 uP(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 cP(e,t){return!t||"object"!==sP(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 pP(e){return(pP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fP(e,t){return(fP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hP=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cP(this,pP(t).call(this,e))}var n,o,r;return 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&&fP(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"onClickEdit",value:function(){var e=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Edit,entity:jb.EntityType.Resource,workflowPhase:jb.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"onClickDelete",value:function(){var e=this;new th({title:u.LanguageService.getPhrase(this.lang,"removeHeading"),text:u.LanguageService.getPhrase(this.lang,"removeConfirm",{name:yh.escapeExpression(this.model.get("name"))}),buttons:[{text:u.LanguageService.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:u.LanguageService.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}],channelName:Th.generateUniqueChannelName(this)}).render().done((function(){sp.Radio.channel(e.options.channelName).trigger("delete:link",e.model.get("id"))}))}},{key:"viewOptions",value:function(){return{styles:lP.a,editable:this.options.editable,linkSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Link),editSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Edit),trashSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Delete)}}},{key:"name",get:function(){return"LinkItemComponent"}},{key:"template",get:function(){return iP.a}},{key:"className",get:function(){return"mb-2"}},{key:"lang",get:function(){return"libraryEditor.editLinks"}},{key:"appLinks",get:function(){return{".edit":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_LINK,args:[this.options.videoId,this.model.get("id")]}}}}])&&uP(n.prototype,o),r&&uP(n,r),t}(u.Core.Component),dP=n(235),yP=n.n(dP);function gP(e){return(gP="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 mP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bP(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 vP(e,t,n){return t&&bP(e.prototype,t),n&&bP(e,n),e}function wP(e,t){return!t||"object"!==gP(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 SP(e){return(SP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kP(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&&OP(e,t)}function OP(e,t){return(OP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var CP=function(e){function t(e){return mP(this,t),wP(this,SP(t).call(this,e))}return kP(t,e),vP(t,[{key:"regions",value:function(){return{links:{el:".links-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return this.options}},{key:"onRender",value:function(){this.showChildView("links",new EP({collection:this.options.customCollection||this.model.get("links"),channelName:this.options.channelName,analyticsOptions:this.options.analyticsOptions,editable:this.options.editable,videoId:this.options.videoId,headingText:this.options.headingText,emptyStateText:this.options.emptyStateText}))}},{key:"name",get:function(){return"VideoLinksComponent"}},{key:"template",get:function(){return yP.a}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}}]),t}(u.Core.Component),EP=function(e){function t(e){return mP(this,t),wP(this,SP(t).call(this,e))}return kP(t,e),vP(t,[{key:"name",get:function(){return"LinkItemComponentCollection"}},{key:"childViewOptions",get:function(){return this.options}},{key:"childView",get:function(){return hP}}]),t}(u.Core.ComponentCollection),_P=n(236),TP=n.n(_P);function PP(e){return(PP="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 xP(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 IP(e,t){return!t||"object"!==PP(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 LP(e){return(LP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jP(e,t){return(jP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var RP=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),IP(this,LP(t).call(this,e))}var n,o,r;return 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&&jP(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&sp.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new Ii(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return u.LanguageService.getPhrase(this.lang,"extraTags",{smartCount:s.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new bE({collection:this.getTagCollection(),behavior:Zf.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}},{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return TP.a}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}}])&&xP(n.prototype,o),r&&xP(n,r),t}(u.Core.Component),DP=n(237),NP=n.n(DP),AP=n(238),MP=n.n(AP);function VP(e){return(VP="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 UP(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 FP(e,t){return!t||"object"!==VP(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 BP(e){return(BP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function HP(e,t){return(HP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var WP=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),FP(this,BP(t).call(this,e))}var n,o,i;return 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&&HP(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:r.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){yf.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new EM({model:this.model,highlighter:!0,size:sM.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new RP({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new ZP({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:jb.LocationContext.VideoItemPreview}});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=s.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return s.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var t=this.model.get(e).length;return t>1?"".concat(t," ").concat(e):"".concat(u.LanguageService.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(yf.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:MP.a,ratingClass:this.model.rating&&_w.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&xh.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return NP.a}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row border-top px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".tool-tip"}]}}])&&UP(n.prototype,o),i&&UP(n,i),t}(u.Core.Component),zP=n(239),qP=n.n(zP);function GP(e){return(GP="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 YP(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 JP(e,t){return!t||"object"!==GP(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 KP(e){return(KP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function QP(e,t){return(QP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ZP=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),JP(this,KP(t).call(this,e))}var n,o,r;return 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&&QP(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(e){if(!this.player)return this.listenToOnce(this.options.channelName,"webplayer:loaded",s.bind(this.seekToChapter,this,e)),void this.renderVideoPreview();this.seekToChapter(e)}},{key:"seekToChapter",value:function(e){this.player.seekTo(e)}},{key:"onClick",value:function(){this.player||this.renderVideoPreview()}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new p.ThumbnailComponent({model:this.model,thumbnailOptions:{size:p.ImageSize.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName}))}},{key:"renderVideoPreview",value:function(){this.player=new KV({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{entity:jb.EntityType.Video}),captureAnalytics:this.options.captureAnalytics}),this.showChildView("player",this.player)}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return qP.a}},{key:"instanceChannelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:cg,selector:".lazy-img",callback:function(){sp.Radio.channel(e.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:In}]}}])&&YP(n.prototype,o),r&&YP(n,r),t}(u.Core.Component);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 XP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ex(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 tx(e){return(tx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nx(e,t){return(nx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ox=function(e){function t(){return XP(this,t),ex(this,tx(t).apply(this,arguments))}return 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&&nx(e,t)}(t,e),t}(u.Core.Model);function rx(e){return(rx="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 ix(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ax(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 lx(e,t){return!t||"object"!==rx(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 sx(e){return(sx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ux(e,t){return(ux=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cx=function(e){function t(){return ix(this,t),lx(this,sx(t).apply(this,arguments))}var n,o,r;return 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&&ux(e,t)}(t,e),n=t,(o=[{key:"modelId",value:function(e){return e.type}},{key:"parse",value:function(e){var t=this;return s.map(s.keys(e),(function(n){var o=e[n],r=t.getType(n);return{id:r,type:r,options:s.map(o,(function(e){return{id:e,name:e,value:e}}))}}))}},{key:"getType",value:function(e){return"categories"===e?p.FilterTypes.Folder:"tags"===e?p.FilterTypes.Tags:e}},{key:"model",get:function(){return Cx}}])&&ax(n.prototype,o),r&&ax(n,r),t}(u.Core.Collection);function px(e){return(px="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 fx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hx(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 dx(e,t){return!t||"object"!==px(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 yx(e){return(yx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gx(e,t){return(gx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mx=function(e){function t(){return fx(this,t),dx(this,yx(t).apply(this,arguments))}var n,o,r;return 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&&gx(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return Lx}}])&&hx(n.prototype,o),r&&hx(n,r),t}(u.Core.Collection);function bx(e){return(bx="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 vx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wx(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 Sx(e,t){return!t||"object"!==bx(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 kx(e){return(kx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ox(e,t){return(Ox=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Cx=function(e){function t(){return vx(this,t),Sx(this,kx(t).apply(this,arguments))}var n,o,r;return 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&&Ox(e,t)}(t,e),n=t,(o=[{key:"idAttribute",get:function(){return"type"}},{key:"associations",get:function(){return{options:mx}}}])&&wx(n.prototype,o),r&&wx(n,r),t}(u.Core.NestedModel);function Ex(e){return(Ex="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tx(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 Px(e,t){return!t||"object"!==Ex(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 xx(e){return(xx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ix(e,t){return(Ix=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Lx=function(e){function t(){return _x(this,t),Px(this,xx(t).apply(this,arguments))}var n,o,r;return 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&&Ix(e,t)}(t,e),n=t,(o=[{key:"idAttribute",get:function(){return"value"}}])&&Tx(n.prototype,o),r&&Tx(n,r),t}(u.Core.Model),jx=n(240),Rx=n.n(jx),Dx=n(85),Nx=n.n(Dx),Ax=n(241),Mx=n.n(Ax),Vx=n(242),Ux=n.n(Vx);function Fx(e){return(Fx="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 Bx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hx(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 Wx(e,t,n){return t&&Hx(e.prototype,t),n&&Hx(e,n),e}function zx(e,t){return!t||"object"!==Fx(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 qx(e){return(qx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gx(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&&Yx(e,t)}function Yx(e,t){return(Yx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jx=function(e){function t(e){return Bx(this,t),zx(this,qx(t).call(this,e))}return Gx(t,e),Wx(t,[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{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,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"viewOptions",value:function(){return Mx.a}},{key:"onRender",value:function(){this.showChildView("items",new Kx({collection:this.collection,childOptions:this.options.childOptions}))}},{key:"name",get:function(){return"UserOptionsDropdownComponent"}},{key:"className",get:function(){return"dropdown-menu dropdown-arrow ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"template",get:function(){return Ux.a}}]),t}(u.Core.Component),Kx=function(e){function t(e){return Bx(this,t),zx(this,qx(t).call(this,e))}return Gx(t,e),Wx(t,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return KF}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),t}(u.Core.ComponentCollection);function Qx(e){return(Qx="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 Zx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xx(e,t){return!t||"object"!==Qx(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 eI(e){return(eI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tI(e,t){return(tI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nI=function(e){function t(){return Zx(this,t),Xx(this,eI(t).apply(this,arguments))}var n,o,r;return 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&&tI(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Jx({model:this.currentUser,collection:new u.Core.Collection([{title:u.LanguageService.getPhrase(this.lang,"staffView"),href:this.config.get("onlineUrl"),external:!0,icon:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow)},{title:u.LanguageService.getPhrase(this.lang,"settings"),href:u.UrlHelper.safeUrlConcat(this.config.get("onlineUrl"),"/settings"),external:!0,icon:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow)},{title:u.LanguageService.getPhrase(this.lang,"helpCentre"),href:u.UrlHelper.safeUrlConcat(this.config.get("supportSiteUrl"),cn.LIBRARY_EDITOR),external:!0,icon:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow)},{divider:!0},{title:u.LanguageService.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(e=Ch.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:Nx.a,avatar:e,arrowSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.ChevronDown)}):{};var e}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Rx.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(Nx.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:IB.config,currentUser:GB.currentUser}}}])&&$x(n.prototype,o),r&&$x(n,r),t}(u.Core.View),oI=n(243),rI=n.n(oI),iI=n(23),aI=n.n(iI);function lI(e){return(lI="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 sI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cI(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 pI(e,t,n){return t&&cI(e.prototype,t),n&&cI(e,n),e}function fI(e,t){return!t||"object"!==lI(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 hI(e){return(hI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dI(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&&yI(e,t)}function yI(e,t){return(yI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gI=function(e){function t(e){return uI(this,t),fI(this,hI(t).call(this,e))}return dI(t,e),pI(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:video change:pendingProcessStatus",this.render),this.listenTo(this.model,"change:foregroundProgress change:backgroundProgress",this.update)}},{key:"events",value:function(){var e;return sI(e={},"click .".concat(aI.a.cancel),"onClickCancel"),sI(e,"click .retry","onClickRetry"),e}},{key:"onClickCancel",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.model.get("video").get("name");Qh.generateDialog(t,this.options.channelName,"clear:pending:item",this.model)}},{key:"onClickRetry",value:function(e){e.preventDefault(),e.stopPropagation(),yf.channel(this.options.channelName).trigger("retry:pending:item",this.model)}},{key:"viewOptions",value:function(){var e=this.model.get("video");return{status:p.PendingItemsHelper.getStatus(this.model),progress:p.PendingItemsHelper.getProgress(this.model),name:e?e.get("name"):u.LanguageService.getPhrase(this.lang,"videoNotFound"),isDone:p.PendingItemsHelper.isDone(this.model),hasError:p.PendingItemsHelper.hasError(this.model),styles:aI.a,spinnerEl:td.getSpinner({size:qh.Medium,tag:"span",extraClasses:aI.a.spinner})}}},{key:"onRender",value:function(){this.$el.find(".".concat(aI.a.cancel,",.retry")).tooltip({placement:"left"})}},{key:"onDestroy",value:function(){this.$el.find(".".concat(aI.a.cancel,",.retry")).tooltip("dispose")}},{key:"update",value:function(){var e=p.PendingItemsHelper.getStatus(this.model),t=p.PendingItemsHelper.getProgress(this.model),n=this.getUI("progressBar");n&&n.get(0)&&$(n.get(0)).css("width","".concat(t,"%")),this.getUI("progressText").html(e)}},{key:"name",get:function(){return"ProcessProgressComponent"}},{key:"template",get:function(){return rI.a}},{key:"lang",get:function(){return"upload.processProgress"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return"d-block my-2 cursor-pointer ".concat(aI.a.processProgress)}},{key:"attributes",get:function(){return{title:this.model.get("statusMessageHeader")}}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}},{key:"appLinks",get:function(){return{"[this]":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[this.model.get("categoryId")]}}}}]),t}(u.Core.Component),mI=function(e){function t(e){return uI(this,t),fI(this,hI(t).call(this,e))}return dI(t,e),pI(t,[{key:"name",get:function(){return"ProcessProgressComponentCollection"}},{key:"childView",get:function(){return gI}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}},{key:"className",get:function(){return"px-2 popover-list-body-md"}},{key:"viewComparator",get:function(){return function(e){return-e.get("pendingProcessStatus")}}}]),t}(u.Core.ComponentCollection),bI=n(244),vI=n.n(bI);function wI(e){return(wI="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 SI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kI(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 OI(e,t){return!t||"object"!==wI(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 CI(e){return(CI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function EI(e,t){return(EI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _I=function(e){function t(){return SI(this,t),OI(this,CI(t).apply(this,arguments))}var n,o,i;return 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&&EI(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.pendingItemsService=u.InstanceManager.getInstance(sn.PendingItems,this),this.listenTo(p.SharedServiceChannels.PENDING_ITEMS,p.UploadEventNames.PENDING_ITEM_STATUS_CHANGE,this.render),this.listenTo(this.channelName,"clear:pending:item",this.onClearPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.onRetryPendingItem)}},{key:"regions",value:function(){return{processingProgress:{el:".processing-progress-region",replaceElement:!0,partialLoading:r.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(e){var t=this;this.pendingItemsService.clearPendingItem(e,(function(){t.render()}))}},{key:"onRetryPendingItem",value:function(e){var t=this;this.pendingItemsService.retryPendingItem(e,(function(){t.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new mI({collection:this.pendingItems,channelName:this.channelName}))}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return vI.a}},{key:"lang",get:function(){return"upload.progressSummary"}},{key:"className",get:function(){return"progress-summary"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&kI(n.prototype,o),i&&kI(n,i),t}(u.Core.View),TI=n(86),PI=n.n(TI),xI=n(245),II=n.n(xI),LI=n(87),jI=n.n(LI),RI=n(246),DI=n.n(RI);function NI(e){return(NI="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 AI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MI(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 VI(e,t){return!t||"object"!==NI(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 UI(e){return(UI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function FI(e,t){return(FI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var BI=function(e){function t(){return AI(this,t),VI(this,UI(t).apply(this,arguments))}var n,o,r;return 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&&FI(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.model=u.ViewModelService.get("process:progress"),this.listenTo(this.model,"change:progress change:items change:hasErrors",this.render),this.listenTo(h.PENDING_ITEMS,p.UploadEventNames.PENDING_ITEM_STATUS_CHANGE,this.render)}},{key:"viewOptions",value:function(){return{warningSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Warning),spinnerEl:td.getSpinner({size:qh.Medium,type:Gh.LightBgDark}),styles:jI.a}}},{key:"onBeforeRender",value:function(){return!!this.model.get("items")}},{key:"name",get:function(){return"ProgressInfoComponent"}},{key:"template",get:function(){return DI.a}},{key:"className",get:function(){return jI.a.progressInfo}}])&&MI(n.prototype,o),r&&MI(n,r),t}(u.Core.Component);function HI(e){return(HI="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 WI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zI(e,t){return!t||"object"!==HI(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 qI(e){return(qI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GI(e,t){return(GI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var YI=function(e){function t(){return WI(this,t),zI(this,qI(t).apply(this,arguments))}return 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&&GI(e,t)}(t,e),t}(u.Core.Model);function JI(e){return(JI="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 KI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QI(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 ZI(e,t){return!t||"object"!==JI(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 $I(e){return($I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function XI(e,t){return(XI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var eL,tL=function(e){return"/api/domain/v2/objects/".concat(e,"/chapters")},nL=function(e){return"/api/domain/v2/objects/".concat(e)},oL=function(e){return"/api/domain/v2/objects/".concat(e)},rL=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},iL=function(e){return"/api/domain/v1/concatenate?masterId=".concat(e)},aL=function(e){function t(){return KI(this,t),ZI(this,$I(t).apply(this,arguments))}var n,o,r;return 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&&XI(e,t)}(t,e),n=t,(o=[{key:"clearVideoCache",value:function(e){this.invalidateCache(["".concat(e)])}},{key:"createChapter",value:function(e,t,n,o){if(e&&t&&s.isNumber(n))return this.create({resource:tL(e),eventPrefix:"".concat(F.CREATE_CHAPTER,":").concat(yh.slugify(t)),formatData:function(e){return new Rs(e)},invalidationKeys:["".concat(e)],data:{name:t,startTime:n},callback:o})}},{key:"updateChapter",value:function(e,t,n,o,r){if(e&&t&&s.isNumber(n))return this.update({resource:nL(e),eventPrefix:"".concat(F.UPDATE_CHAPTER,":").concat(e),formatData:function(e){return new Rs(e)},invalidationKeys:["".concat(e),"".concat(yh.slugify(t))],data:{name:t,startTime:n},successHandler:this.alertService.success(r||u.LanguageService.getPhrase(this.lang,"chapterUpdated")),callback:o})}},{key:"deleteChapter",value:function(e,t){if(e)return this.delete({resource:oL(e),eventPrefix:"".concat(F.DELETE_CHAPTER),invalidationKeys:["".concat(e)],callback:t})}},{key:"getConcatenateRequest",value:function(e,t){var n=this;return this.clearCacheAndGet({resource:rL(e),eventPrefix:"".concat(F.CONCATENATE_STATUS,":").concat(e),formatData:function(e){return new YI(e,{parse:!0})},callback:function(o){o.get("status")===Qf.SingleFile&&n.clearVideoCache(e),s.isFunction(t)&&t(o)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(e,t){return this.create({resource:iL(e),formatData:function(e){return new YI(e)},eventPrefix:"".concat(F.CONCATENATE_CHAPTERS,":").concat(e),invalidationKeys:["".concat(F.CONCATENATE_STATUS,":").concat(e)],data:null,callback:t})}},{key:"name",get:function(){return un.Chapter}},{key:"channelName",get:function(){return f.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&QI(n.prototype,o),r&&QI(n,r),t}(u.BaseDataService);function lL(e){return(lL="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 sL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uL(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 cL(e,t){return!t||"object"!==lL(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 pL(e){return(pL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fL(e,t){return(fL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e.CollectionPdf="collection_pdf",e.CustomListPdf="custom_list_pdf"}(eL||(eL={}));var hL=function(e){return"/api/domain/v2/export/formats/pdf/types/".concat(e)},dL=function(e){function t(){return sL(this,t),cL(this,pL(t).apply(this,arguments))}var n,o,r;return 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&&fL(e,t)}(t,e),n=t,(o=[{key:"generateCollectionPdf",value:function(e,t,n,o,r){var i=s.extend({},this.getBaseExportData(n),{libraryId:e,collectionId:t});return o&&(i=s.extend({},i,{sortType:oh.MapSortTypeToExportServiceSortType(o)})),this.create({callback:r,resource:hL(eL.CollectionPdf),data:i,eventPrefix:"".concat(F.GENERATE_COLLECTION_PDF,":").concat(t),successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(e,t,n,o,r){var i=s.extend({},this.getBaseExportData(o),{title:e,header:t,videoIds:n});return this.create({callback:r,resource:hL(eL.CustomListPdf),data:i,eventPrefix:F.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(e){return{firstName:e.get("givenName"),lastName:e.get("familyName"),countryCode:e.get("countryCode"),userId:e.id,customerId:e.get("customerId"),userEmail:e.get("email")}}},{key:"name",get:function(){return un.Export}},{key:"channelName",get:function(){return f.EXPORT}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&uL(n.prototype,o),r&&uL(n,r),t}(u.BaseDataService),yL="library:editor",gL="migration:wizard";function mL(e){return(mL="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 bL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vL(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 wL(e,t){return!t||"object"!==mL(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 SL(e){return(SL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kL(e,t){return(kL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var OL=function(e){function t(){return bL(this,t),wL(this,SL(t).apply(this,arguments))}var n,o,r;return 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&&kL(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.listenTo(this.libraryDataService.channelName,"libraries:sync",this.onLibrarySync),this.libraries=this.libraryDataService.getLibraries()}},{key:"onLibrarySync",value:function(e){this.libraries=e}},{key:"accept",value:function(e){return!(!this.folder||this.isSameFolder(e)||!this.isSameLibrary(e)||this.isParentFolder(e)||this.isChildFolder(e))}},{key:"isSameFolder",value:function(e){return this.folder.id===e.id}},{key:"isSameLibrary",value:function(e){var t=sh.getLibrary(this.folder.id,this.libraries),n=sh.getLibrary(e.id,this.libraries);return!(!t||!n)&&t.id===n.id}},{key:"isParentFolder",value:function(e){var t=sh.getParent(this.folder.id,this.libraries);return!!t&&t.id===e.id}},{key:"isChildFolder",value:function(e){for(var t=sh.getModelFromCollection(e.id,this.libraries);t&&t.collection&&t.collection.parent;)if((t=t.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(e){return sh.calculateDestinationFolderDepth(this.folder,e.id,this.libraries)>On.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(e){this.folder=e,$("body").addClass(ov.a.dragging)}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(r){if(n.exceedsMaximumDepth(e))window.setTimeout((function(){u.Core.ErrorHelper.throw(new vd)}),On.POPUP_FADE_TIMEOUT);else{var i=sh.getSelected(yL,r),a=sh.getParent(o.id,r);n.libraryDataService.moveFolder(o.id,e.id,a.id,(function(){i&&sh.setSelected(yL,i.id,r),n.triggerNavRender(),n.logAction({id:o.id,newParentId:e.id,oldParentId:a.id},t)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(ov.a.dragging),delete this.folder,this.triggerNavRender()}},{key:"triggerNavRender",value:function(){sp.Radio.channel(this.channelName).trigger("re:render:left:nav")}},{key:"logAction",value:function(e,t){var n=jb.AnalyticsHelper.mergeOptions({actionType:jb.UserAction.Move,entity:jb.EntityType.Folder,descriptor:jb.InteractionTypeDescriptor.DragDrop},t);jb.AnalyticsHelper.logUserAction(e,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return sn.FolderDragDrop}},{key:"channelName",get:function(){return h.FOLDER_DRAG_DROP}}])&&vL(n.prototype,o),r&&vL(n,r),t}(u.Core.Service);function CL(e){return(CL="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 EL(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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function TL(e,t){return!t||"object"!==CL(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 PL(e){return(PL=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xL(e,t){return(xL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var IL=function(){return"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary"},LL=function(){return"/api/domain/v2/me/libraries?type=2"},jL=function(e){return"/api/domain/v2/me/libraries?type=exchange&maxCategoryDepth=".concat(e)},RL=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(A.FOLDER)},DL=function(e,t){return"/api/domain/v2/collections/".concat(e,"/categories").concat(t?"?parentCategoryId=".concat(t):"")},NL=function(e){return"/api/domain/v2/objects/".concat(e)},AL=function(e){return"/api/domain/v2/objects/".concat(e)},ML=function(){return"/api/domain/v2/objects/move"},VL=function(e){return"/api/domain/v2/objects/".concat(e,"/customlibraries")},UL=function(e){return"/api/domain/v2/objects/".concat(e)},FL=function(e){return"/api/domain/v2/objects/".concat(e,"/banner")},BL=function(e,t){return"/api/domain/v2/objects/".concat(e,"/banner/").concat(t)},HL=function(e){return"/api/domain/v2/objects/".concat(e,"/thumbnail")},WL=function(e,t){return"/api/domain/v2/objects/".concat(e,"/thumbnail/").concat(t)},zL=function(e,t,n){var o=["query={".concat(t,"}").concat(A.LIBRARY_FOLDERS)];return n&&o.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(e,"/categories?").concat(o.join("&"))},qL=function(){return"libraries"},GL=function(){return"hosted:libraries"},YL=function(e){return"exchange:".concat(e)},JL=function(e){return"".concat(F.FOLDER,":").concat(e)},KL=function(e){return"library:".concat(e)},QL=function(e){return"library:status:".concat(e)},ZL={libraries:function(e){return new kr(e,{parse:!0})},folders:function(e){return new yr(e.data)},folder:function(e){return new fl(e)},library:function(e){return new vl(e)}},$L=function(e){function t(){return EL(this,t),TL(this,PL(t).apply(this,arguments))}var n,o,r;return 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&&xL(e,t)}(t,e),n=t,(o=[{key:"clearLibrariesCache",value:function(){this.invalidateCache([qL()])}},{key:"getLibraries",value:function(e){return this.get({expiryTime:Pn.STANDARD,callback:e,resource:IL(),formatData:ZL.libraries,eventPrefix:qL()})}},{key:"getHostedLibraries",value:function(e){return this.get({expiryTime:Pn.STANDARD,callback:e,resource:LL(),formatData:ZL.libraries,eventPrefix:GL()})}},{key:"getExchange",value:function(e,t){return this.get({expiryTime:Pn.STANDARD,callback:t,resource:jL(e),formatData:ZL.libraries,eventPrefix:YL(e)})}},{key:"getFolder",value:function(e,t){return this.get({callback:t,expiryTime:Pn.STANDARD,resource:RL(e),formatData:ZL.folder,eventPrefix:JL(e)})}},{key:"getFolderFromLibraries",value:function(e,t){this.getLibraries((function(n){t(sh.getModelFromCollection(e,n))}))}},{key:"addFolder",value:function(e,t,n,o){var r,i=this,a=e.pick("name");this.chain().create({expiryTime:Pn.STANDARD,data:a,resource:DL(t,n),formatData:ZL.folder,eventPrefix:JL(),callback:function(e){return r=e}}).func((function(){i.invalidateCache([F.LIBRARY_FOLDERS]),i.getLibraries((function(e){n?sh.addFolder(r,n,e):sh.addFolderToLibrary(r,t,e),sp.Radio.channel(i.channelName).trigger("folder:created",r),o(r)}))})).run()}},{key:"updateFolder",value:function(e,t){var n=this,o=e.get("id"),r=e.pick(["id","name"]);this.getFolder(o,(function(i){var a,l=i.banner;n.chain().update({resource:NL(o),data:r,callback:function(e){(a=e).banner=l},formatData:ZL.folder,expiryTime:Pn.STANDARD,eventPrefix:JL(o)}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(n){sh.getModelFromCollection(e.get("id"),n).set(r),s.isFunction(t)&&t(a)}))})).run()}))}},{key:"moveFolder",value:function(e,t,n,o){var r,i=this,a="folder:delete:".concat(e);this.chain().create({resource:ML(),eventPrefix:a,formatData:ZL.folder,data:{oldCollectionId:n,newCollectionId:t,assocType:"has",objectIds:[e]},callback:function(e){return r=e},successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"folderMoveSuccess"))}).func((function(){i.clearLibraryFoldersCache(),i.getLibraries((function(i){var a=sh.getModelFromCollection(n,i),l=sh.getModelFromCollection(t,i),u=sh.getModelFromCollection(e,i);a&&a.children.remove(u),l?l.children.add(u):i.add(u),s.isFunction(o)&&o(r)}))})).run()}},{key:"deleteFolder",value:function(e,t){var n=this;this.chain().delete({resource:AL(e),eventPrefix:"".concat(JL(e),":delete")}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(o){var r=sh.getModelFromCollection(e,o);r&&r.collection&&r.collection.remove(r),sp.Radio.channel(n.channelName).trigger("library:deleted"),t()}))})).run()}},{key:"getLibraryFolders",value:function(e,t){var n=oh.GetFilterFromSort(e.sort),o=zL(e.id,n,e.cursor);return this.get({resource:o,formatData:ZL.folders,expiryTime:Pn.STANDARD,eventPrefix:e.toString(),callback:t})}},{key:"clearLibraryFoldersCache",value:function(){this.invalidateCache([F.LIBRARY_FOLDERS]),sp.Radio.channel(f.LIBRARY).trigger("clear:library:folder:cache")}},{key:"getLibraryFoldersCursors",value:function(e){return this.getCursors(e.toString())}},{key:"createLibrary",value:function(e,t,n){var o=this,r=t.pick(["name"]);r.status=p.CurationStatus.Draft,this.create({resource:VL(e),eventPrefix:KL(),formatData:ZL.library,data:r,callback:function(e){o.getLibraries((function(t){t.add(e),sp.Radio.channel(o.channelName).trigger("library:created"),s.isFunction(n)&&n(e)}))},successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"libraryCreateSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"libraryCreateError"))})}},{key:"updateLibrary",value:function(e,t){var n=this,o=e.pick(["id","name"]),r=e.get("id");this.update({resource:UL(r),eventPrefix:KL(r),formatData:ZL.library,data:o,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"libraryUpdateSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"libraryUpdateError")),callback:function(r){n.getLibraries((function(n){sh.getModelFromCollection(e.get("id"),n).set(o),s.isFunction(t)&&t(r)}))}})}},{key:"deleteLibrary",value:function(e,t){var n=this;this.chain().delete({resource:AL(e),eventPrefix:"".concat(KL(e),":delete")}).func((function(){n.getLibraries((function(o){var r=sh.getModelFromCollection(e,o);r&&r.collection&&r.collection.remove(r),sp.Radio.channel(n.channelName).trigger("library:deleted"),t()}))})).run()}},{key:"publishLibrary",value:function(e,t){var n=this,o={status:1};this.update({resource:UL(e),eventPrefix:QL(e),data:o,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"libraryAvailableSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"libraryAvailableError")),callback:function(){n.getLibraries((function(n){var r=n.get(e);r&&r.set(o),s.isFunction(t)&&t()}))}})}},{key:"addOrUpdateBanner",value:function(e,t){var n=e.folderId,o=e.imageModel,r=e.currentImageId,i={fileId:o.id.toString(),fileIdType:_.ImageAPIv1},a=this.chain();r&&a.delete({resource:BL(n,r),eventPrefix:F.DELETE_FOLDER_BANNER}),a.create({resource:FL(n),eventPrefix:"".concat(F.UPDATE_FOLDER_BANNER,":").concat(n),data:i,formatData:function(e){return new nr(e)},invalidationKeys:[JL(n)],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"bannerUpdateSuccess")),callback:t}),a.run()}},{key:"deleteBanner",value:function(e,t){this.delete({resource:BL(e.folderId,e.imageId),eventPrefix:F.DELETE_FOLDER_BANNER,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"bannerRemoveSuccess")),invalidationKeys:[JL(e.folderId)],callback:t})}},{key:"addOrUpdateThumbnail",value:function(e,t){var n=this,o=(e.libraryId,e.folderId),r=e.imageModel,i=e.currentImageId,a={fileId:r.id.toString(),fileIdType:_.ImageAPIv1},l=this.chain();i&&l.delete({resource:WL(o,i),eventPrefix:F.DELETE_FOLDER_THUMBNAIL}),l.create({resource:HL(o),eventPrefix:"".concat(F.UPDATE_FOLDER_THUMBNAIL,":").concat(o),data:a,formatData:function(e){return new El(e)},invalidationKeys:[JL(o)],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:t}),l.func((function(){n.clearLibraryFoldersCache()})),l.run()}},{key:"deleteThumbnail",value:function(e,t){var n=this;this.delete({resource:WL(e.folderId,e.imageId),eventPrefix:F.DELETE_FOLDER_THUMBNAIL,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"thumbnailRemoveSuccess")),invalidationKeys:[JL(e.folderId)],callback:function(e){n.clearLibraryFoldersCache(),s.isFunction(t)&&t(e)}})}},{key:"deselectAll",value:function(){this.getLibraries((function(e){sh.deselectAll(yL,e)}))}},{key:"setSelected",value:function(e){this.getLibraries((function(t){sh.setSelected(yL,e,t)}))}},{key:"getSelected",value:function(e,t){this.getLibraries((function(e){var n=sh.getSelected(yL,e);t(n)}))}},{key:"name",get:function(){return un.Library}},{key:"channelName",get:function(){return f.LIBRARY}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&_L(n.prototype,o),r&&_L(n,r),t}(u.BaseDataService),XL=Object.assign(Object.assign({},p.SharedLibraryDataServiceHelper),{exchanges:{dataServiceName:un.Library,eventName:"".concat(YL(0),":sync"),getData:function(e){return e.getExchange(0)},getInstance:function(e){return u.InstanceManager.getInstance(un.Library,e)},beforeOnBeforeRender:!0}});function ej(e){return(ej="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 tj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nj(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 oj(e,t){return!t||"object"!==ej(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 rj(e){return(rj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ij(e,t){return(ij=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var aj=function(){return"/api/domain/v1/series"},lj=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(A.SERIES)},sj=function(e){return"/api/domain/v2/objects/".concat(e,"/seasons")},uj=function(e){function t(){return tj(this,t),oj(this,rj(t).apply(this,arguments))}var n,o,r;return 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&&ij(e,t)}(t,e),n=t,(o=[{key:"createSeries",value:function(e,t){if(e){var n=yh.slugify(e);return this.create({resource:aj(),eventPrefix:"".concat(F.CREATE_SERIES,":").concat(n),formatData:function(e){return new Ul(e)},invalidationKeys:["".concat(n)],data:{name:e},callback:t})}}},{key:"getSeries",value:function(e,t){return this.get({callback:t,expiryTime:Pn.STANDARD,resource:lj(e),formatData:function(e){return new Ul(e)},eventPrefix:"".concat(F.SERIES,":").concat(e)})}},{key:"createSeason",value:function(e,t,n){if(e.number&&t)return this.create({data:e,resource:sj(t),eventPrefix:"".concat(F.CREATE_SEASON,":").concat(t),formatData:function(e){return new ip(e)},callback:n})}},{key:"name",get:function(){return un.Series}},{key:"channelName",get:function(){return f.SERIES}}])&&nj(n.prototype,o),r&&nj(n,r),t}(u.BaseDataService);function cj(e){return(cj="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 pj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fj(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 hj(e,t){return!t||"object"!==cj(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 dj(e){return(dj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yj(e,t){return(yj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gj=function(e){return"/api/domain/v2/objects/".concat(e,"/tags")},mj=function(e,t){return"/api/domain/v2/objects/".concat(t,"/videos/").concat(e)},bj=function(e){function t(){return pj(this,t),hj(this,dj(t).apply(this,arguments))}var n,o,r;return 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&&yj(e,t)}(t,e),n=t,(o=[{key:"createTag",value:function(e,t,n){if(e&&t)return this.create({resource:gj(t),eventPrefix:"".concat(F.CREATE_TAG,":").concat(yh.slugify(e)),formatData:function(e){return new cu(e)},invalidationKeys:["".concat(t)],data:{name:e},callback:n})}},{key:"dissociateTag",value:function(e,t,n){if(e&&t)return this.delete({resource:mj(t,e),eventPrefix:"".concat(F.DISSOC_TAG,":").concat(e),invalidationKeys:["".concat(t)],callback:n})}},{key:"name",get:function(){return un.Tags}},{key:"channelName",get:function(){return f.TAG}}])&&fj(n.prototype,o),r&&fj(n,r),t}(u.BaseDataService),vj={updatedVideoAlert:function(e){return{heading:u.LanguageService.getPhrase("shared.alerts","updateVideoHeading"),message:u.LanguageService.getPhrase("shared.alerts","updateVideoMessage",{videoName:e}),type:u.AlertType.Success}},updatedChaptersAlert:function(e){return{heading:u.LanguageService.getPhrase("shared.alerts","updateChaptersHeading"),message:u.LanguageService.getPhrase("shared.alerts","updateChaptersMessage",{videoName:e}),type:u.AlertType.Success}},moveVideoAlert:function(e,t,n,o,r){return{heading:u.LanguageService.getPhrase("shared.alerts","moveVideoHeading",{smartCount:o}),message:u.LanguageService.getPhrase("shared.alerts","moveVideoMessage",{smartCount:o,sourceFolder:yh.escapeExpression(e),destinationFolder:yh.escapeExpression(t),videoName:yh.escapeExpression(r)}),type:u.AlertType.Success,appLinkText:u.LanguageService.getPhrase("shared.alerts","appLink",{destinationFolder:t}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[n]}}},addVideoToLibraryAlert:function(e,t){var n=e.get("name"),o=t.get("name");return{heading:u.LanguageService.getPhrase("shared.alerts","addVideoHeading"),message:u.LanguageService.getPhrase("shared.alerts","addVideoMessage",{videoName:yh.escapeExpression(n),folderName:yh.escapeExpression(o)}),type:u.AlertType.Success,appLinkText:u.LanguageService.getPhrase("shared.alerts","appLink",{destinationFolder:o}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[t.get("id")]}}}};function wj(e){return(wj="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 Sj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kj(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 Oj(e,t){return!t||"object"!==wj(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 Cj(e){return(Cj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ej(e,t){return(Ej=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _j=function(e,t,n){var o=["query={status:[1,5],".concat(t,"}").concat(A.VIDEO_COLLECTION)];return n&&o.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(e,"/videos?").concat(o.join("&"))},Tj=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(A.VIDEO)},Pj=function(e){return"/api/domain/v2/objects/".concat(e)},xj=function(){return"/api/domain/v2/objects/move"},Ij=function(){return"/api/domain/v1/share"},Lj=function(e){return"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=categories")},jj=function(e,t,n){var o=n.map((function(e){return"videoIds=".concat(e)}));return"/api/domain/v1/libraries/".concat(e,"/videos?categoryId=").concat(t,"&").concat(o.join("&"))},Rj=function(e){return"/api/domain/v2/objects/".concat(e,"/thumbnail")},Dj=function(e,t){return"/api/domain/v2/objects/".concat(e,"/thumbnail/").concat(t)},Nj=function(e,t,n){return"/api/domain/v2/objects/".concat(e,"/").concat(t,"?").concat(Fj.getDissocIds(n))},Aj=function(e){return"/api/domain/v2/videos/".concat(e,"/copy")},Mj=function(e){return"/api/domain/v2/objects/".concat(e,"/libraries")},Vj=function(){return"/api/domain/v1/staffrequests"},Uj=function(e){function t(){return Sj(this,t),Oj(this,Cj(t).apply(this,arguments))}var n,o,r;return 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&&Ej(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.videoMixinService=u.InstanceManager.getInstance(sn.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),sp.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([F.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(e,t){var n=this,o=oh.GetFilterFromSort(e.sort),r=_j(e.id,o,e.cursor);return this.get({resource:r,formatData:function(e){return new xr(e,{parse:!0})},callback:function(o){return n.videoMixinService.mixinVideoCollectionData(o,e,t)},expiryTime:Pn.STANDARD,eventPrefix:e.toString()})}},{key:"getSeriesVideos",value:function(e,t,n){var o=this,r=oh.GetFilterFromSort(e.sort),i="libraries.id:[".concat(t.join(","),"]"),a="".concat(r,",").concat(i),l=_j(e.id,a,e.cursor);return this.get({resource:l,formatData:function(e){return new xr(e,{parse:!0})},callback:function(t){return o.videoMixinService.mixinVideoCollectionData(t,e,n)},expiryTime:Pn.STANDARD,eventPrefix:e.toString()})}},{key:"getVideo",value:function(e,t){var n=this;return this.get({resource:Tj(e),formatData:function(e){return new jl(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoData(e,t)},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.VIDEOS,":").concat(e)})}},{key:"clearCacheAndGetVideo",value:function(e,t,n){var o=this;return this.clearCacheAndGet({resource:Tj(e),formatData:function(e){return new jl(e,{parse:!0})},callback:function(e){return o.videoMixinService.mixinVideoData(e,t)},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.VIDEOS,":").concat(e),errorHandler:n})}},{key:"getVideos",value:function(e,t){var n=this;return this.get({resource:Lj(e),formatData:function(e){return new xr(e,{parse:!0})},callback:function(e){return n.videoMixinService.mixinVideoCollectionData(e,null,t)},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.VIDEOS_BY_ID,":").concat(e.join(","))})}},{key:"hasPhysicalChapters",value:function(e,t){return this.get({resource:"/legacy/videos/".concat(e,"/hasphysicalchapters"),formatData:function(e){return new u.Core.Model(e)},callback:t,expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(e)})}},{key:"updateVideo",value:function(e,t,n,o,r){var i=["".concat(e)];return t&&i.push("".concat(t)),this.update({resource:Pj(e),eventPrefix:"".concat(F.UPDATE_VIDEO,":").concat(e),data:n,invalidationKeys:i,callback:o})}},{key:"addOrUpdateThumbnail",value:function(e,t,n,o){var r={fileId:t.id.toString(),fileIdType:_.ImageAPIv1},i=this.chain();n&&i.delete({resource:Dj(e,n),eventPrefix:F.DELETE_VIDEO_THUMBNAIL}),i.create({resource:Rj(e),eventPrefix:"".concat(F.UPDATE_VIDEO_THUMBNAIL,":").concat(e),data:r,formatData:function(e){return new El(e)},invalidationKeys:[F.VIDEOS],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:o}),i.run()}},{key:"moveVideos",value:function(e,t,n,o,r){var i=this;this.create({resource:xj(),eventPrefix:"".concat(F.MOVE_VIDEOS,":").concat(e.join(",")),formatData:function(e){return new xr(e,{parse:!0})},callback:function(){i.clearVideoCache(),s.isFunction(o)&&o()},data:{oldCollectionId:n,newCollectionId:t,assocType:"has",objectIds:e},invalidationKeys:["".concat(F.VIDEOS,":collection:").concat(n),"".concat(F.VIDEOS,":collection:").concat(t)],successHandler:this.alertService.success(r)})}},{key:"deleteVideosFromLibrary",value:function(e,t,n,o){var r=this;this.delete({resource:jj(e,t,n),eventPrefix:F.DELETE_VIDEO,invalidationKeys:[F.VIDEOS],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){r.clearVideoCache(),s.isFunction(o)&&o()}})}},{key:"getSharedResource",value:function(e,t,n){var o={id:e,privacy:t};return this.create({data:o,resource:Ij(),formatData:function(e){return new $u(e)},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(e,t,n,o){t.get("id");var r=vj.addVideoToLibraryAlert(t,n);this.create({resource:Vj(),eventPrefix:"add:to:library",callback:o,data:e,invalidationKeys:["".concat(F.VIDEOS)],successHandler:this.alertService.success(r)})}},{key:"bulkDissoc",value:function(e,t,n){if(e&&t){var o=new u.ConcurrencyHelper(s.keys(t).length),r=function(){o.decrement(),0===o.getValue()&&n()},i=this.chain();s.each(s.keys(t),(function(n){i.delete({resource:Nj(e,n.toLowerCase(),t[n]),eventPrefix:"".concat(F.BULK_DISSOC,":").concat(n.toLowerCase()),callback:r})})),i.run()}}},{key:"copyVideo",value:function(e,t,n,o){this.create({resource:Aj(e),data:{libraryId:t,categoryId:n},eventPrefix:"copy:video",callback:o})}},{key:"getLibraries",value:function(e,t){this.get({resource:Mj(e),eventPrefix:"video:libraries:".concat(e),formatData:function(e){return new kr(e.data)},callback:t})}},{key:"invalidateCollectionVideos",value:function(e){this.invalidateCache([e.toString()])}},{key:"name",get:function(){return un.Video}},{key:"channelName",get:function(){return f.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&kj(n.prototype,o),r&&kj(n,r),t}(u.BaseDataService),Fj={videoCollection:function(e){return{dataServiceName:un.Video,eventName:"".concat(e.toString,":sync"),getData:function(t){return t.getCollectionVideos(e)},getInstance:function(e){return u.InstanceManager.getInstance(un.Video,e)},beforeOnBeforeRender:!0}},getDissocIds:function(e){return"string"==typeof e?"id=".concat(e):e.map((function(e){return"id=".concat(e)})).join("&")}};function Bj(e){return(Bj="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 Hj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wj(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 zj(e,t){return!t||"object"!==Bj(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 qj(e){return(qj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gj(e,t){return(Gj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yj=function(e){function t(){var e;return Hj(this,t),(e=zj(this,qj(t).apply(this,arguments))).disabledLibraryIds=[],e}var n,o,r;return 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&&Gj(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this;this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.libraryDataService.getLibraries((function(t){return e.customLibraries=t}))}},{key:"onDragStart",value:function(e,t){var n;this.videos=e,this.collectionIdentifier=t,$("body").addClass(ov.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(e){return!!this.videos&&!s.any(this.videos,(function(t){return t.categories.any((function(t){return t.id===e.id}))}))}},{key:"onDragDrop",value:function(e,t){var n=this;if(this.videos&&this.collectionIdentifier){var o,r;s.each(this.videos,(function(e){o||(o=e.categories.find((function(e){return e.get("id")===+n.collectionIdentifier.id})),r=e)}));var i=this.videos,a=this.videos.map((function(e){return e.get("id")})),l=1===a.length?r.get("name"):"",u=vj.moveVideoAlert(o.get("name"),e.get("name"),e.get("id"),a.length,l);this.videoDataService.moveVideos(a,e.get("id"),this.collectionIdentifier.id,(function(){s.each(i,(function(e){return e.collection.remove(e)})),n.logAction(s.map(a,(function(t){return{id:t,newParentId:e.get("id"),oldParentId:o.get("id"),count:a.length}})),t)}),u),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(ov.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var e=this,t=this.customLibraries.find((function(t){return!!sh.getModelFromCollection(e.collectionIdentifier.id,t.get("children"))})),n=[];this.videos.forEach((function(e){e.get("libraries").forEach((function(e){e.get("id").toString()!==t.get("id").toString()&&n.push(e.get("id"))}))})),this.disabledLibraryIds=s.uniq(n)}},{key:"getDisabledLibraryIds",value:function(){return this.disabledLibraryIds}},{key:"triggerNavRender",value:function(){sp.Radio.channel(h.FOLDER_DRAG_DROP).trigger("re:render:left:nav")}},{key:"logAction",value:function(e,t){var n=jb.AnalyticsHelper.mergeOptions({actionType:jb.UserAction.Move,entity:jb.EntityType.Video,descriptor:jb.InteractionTypeDescriptor.DragDrop},t);jb.AnalyticsHelper.logUserAction(e,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return sn.VideoDragDrop}},{key:"channelName",get:function(){return h.VIDEO_DRAG_DROP}}])&&Wj(n.prototype,o),r&&Wj(n,r),t}(u.Core.Service);function Jj(e){return(Jj="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 Kj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qj(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 Zj(e,t){return!t||"object"!==Jj(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 $j(e){return($j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xj(e,t){return(Xj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var eR=function(){return"/api/domain/v2/me/ratings"},tR=function(e){function t(){return Kj(this,t),Zj(this,$j(t).apply(this,arguments))}var n,o,r;return 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&&Xj(e,t)}(t,e),n=t,(o=[{key:"getAllRatings",value:function(e){return this.get({resource:eR(),formatData:function(e){return new Nr(e)},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.RATINGS),callback:e})}},{key:"name",get:function(){return un.Ratings}},{key:"channelName",get:function(){return f.RATINGS}}])&&Qj(n.prototype,o),r&&Qj(n,r),t}(u.BaseDataService);function nR(e){return(nR="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 oR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rR(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 iR(e,t){return!t||"object"!==nR(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 aR(e){return(aR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lR(e,t){return(lR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sR=function(e){return"/api/domain/v2/objects/".concat(e,"/resources")},uR=function(e){return"/api/domain/v2/objects/".concat(e)},cR=function(e){return"/api/domain/v2/objects/".concat(e)},pR=function(e){return"/api/domain/v2/objects/".concat(e)},fR=function(e){function t(){return oR(this,t),iR(this,aR(t).apply(this,arguments))}var n,o,r;return 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&&lR(e,t)}(t,e),n=t,(o=[{key:"addResource",value:function(e,t,n){var o=this,r=this.chain();s.each(t,(function(i,a){r.create({resource:sR(e),eventPrefix:"".concat(F.CREATE_RESOURCE),formatData:function(e){return new ys(e)},callback:n,data:i,successHandler:a+1===t.length&&o.alertService.success(u.LanguageService.getPhrase(o.lang,"resourceUploadSuccess"))})})),r.run()}},{key:"getResource",value:function(e,t){return this.get({resource:uR(e),formatData:function(e){return new ys(e)},eventPrefix:"".concat(F.RESOURCE,":").concat(e),callback:t})}},{key:"updateResource",value:function(e,t,n){var o=this,r=t.pick(["id","name"]);this.update({resource:cR(r.id),data:r,eventPrefix:"".concat(F.UPDATE_RESOURCE,":").concat(r.id),callback:function(t){o.invalidateCache(["".concat(F.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(e,t,n){var o=this;this.delete({resource:pR(t),eventPrefix:"".concat(F.DELETE_RESOURCE,":").concat(t),callback:function(){o.invalidateCache(["".concat(F.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"resourceRemoveSuccess"))})}},{key:"name",get:function(){return un.Resource}},{key:"channelName",get:function(){return f.RESOURCE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&rR(n.prototype,o),r&&rR(n,r),t}(u.BaseDataService);function hR(e){return(hR="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 dR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yR(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 gR(e,t){return!t||"object"!==hR(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 mR(e){return(mR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bR(e,t){return(bR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vR=function(e){return"/api/domain/v2/objects/".concat(e,"/subtitles")},wR=function(e){return"/api/domain/v2/objects/".concat(e)},SR=function(e){function t(){return dR(this,t),gR(this,mR(t).apply(this,arguments))}var n,o,r;return 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&&bR(e,t)}(t,e),n=t,(o=[{key:"addSubtitle",value:function(e,t,n){this.create({resource:vR(e),eventPrefix:"".concat(F.CREATE_SUBTITLE),formatData:function(e){return new rc(e)},callback:n,data:t,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(e,t,n){var o=this;this.delete({resource:wR(t),eventPrefix:"".concat(F.DELETE_SUBTITLE,":").concat(t),callback:function(){o.invalidateCache(["".concat(F.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"subtitleRemoveSuccess"))})}},{key:"name",get:function(){return un.Subtitle}},{key:"channelName",get:function(){return f.SUBTITLE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&yR(n.prototype,o),r&&yR(n,r),t}(u.BaseDataService);function kR(e){return(kR="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 OR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(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 ER(e,t){return!t||"object"!==kR(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 _R(e){return(_R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function TR(e,t){return(TR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var PR=function(e){return"/api/domain/v2/objects/".concat(e,"/links")},xR=function(e){return"/api/domain/v2/objects/".concat(e)},IR=function(e){return"/api/domain/v2/objects/".concat(e)},LR=function(e){return"/api/domain/v2/objects/".concat(e)},jR=function(e){function t(){return OR(this,t),ER(this,_R(t).apply(this,arguments))}var n,o,r;return 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&&TR(e,t)}(t,e),n=t,(o=[{key:"addLink",value:function(e,t,n){this.create({resource:PR(e),eventPrefix:F.CREATE_LINK,formatData:function(e){return new xc(e)},callback:n,data:t,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(e,t){return this.get({resource:xR(e),formatData:function(e){return new xc(e)},eventPrefix:"".concat(F.LINK,":").concat(e),callback:t})}},{key:"updateLink",value:function(e,t,n){var o=this,r=t.pick(["id","name"]);this.update({resource:IR(r.id),data:r,eventPrefix:"".concat(F.UPDATE_LINK,":").concat(r.id),callback:function(t){o.invalidateCache(["".concat(F.VIDEOS,":").concat(e)]),n&&n(t)},successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(e,t,n){var o=this;this.delete({resource:LR(t),eventPrefix:"".concat(F.DELETE_LINK,":").concat(t),callback:function(){o.invalidateCache(["".concat(F.VIDEOS,":").concat(e)]),n&&n()},successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"linkRemoveError"))})}},{key:"name",get:function(){return un.Link}},{key:"channelName",get:function(){return f.LINK}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&CR(n.prototype,o),r&&CR(n,r),t}(u.BaseDataService);function RR(e){return(RR="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 DR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(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 AR(e,t){return!t||"object"!==RR(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 MR(e){return(MR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function VR(e,t){return(VR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var UR=function(){return"/api/domain/v2/people"},FR=function(e){function t(){return DR(this,t),AR(this,MR(t).apply(this,arguments))}var n,o,r;return 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&&VR(e,t)}(t,e),n=t,(o=[{key:"createPerson",value:function(e,t){if(e)return this.create({resource:UR(),eventPrefix:F.CREATE_PERSON,formatData:function(e){return new Yc(e)},data:{name:e},callback:t})}},{key:"name",get:function(){return un.Person}},{key:"channelName",get:function(){return f.PERSON}}])&&NR(n.prototype,o),r&&NR(n,r),t}(u.BaseDataService);function BR(e){return(BR="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 HR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WR(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 zR(e,t){return!t||"object"!==BR(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 qR(e){return(qR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GR(e,t){return(GR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var YR=function(){return"/api/domain/v2/companies"},JR=function(e){function t(){return HR(this,t),zR(this,qR(t).apply(this,arguments))}var n,o,r;return 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&&GR(e,t)}(t,e),n=t,(o=[{key:"createCompany",value:function(e,t){if(e)return this.create({resource:YR(),eventPrefix:F.CREATE_COMPANY,formatData:function(e){return new Xc(e)},data:{name:e},callback:t})}},{key:"name",get:function(){return un.Company}},{key:"channelName",get:function(){return f.COMPANY}}])&&WR(n.prototype,o),r&&WR(n,r),t}(u.BaseDataService);function KR(e){return(KR="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 QR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZR(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 $R(e,t){return!t||"object"!==KR(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 XR(e){return(XR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eD(e,t){return(eD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tD=function(e){return"/api/domain/v2/objects/".concat(e)},nD=function(e){return"/api/domain/v2/objects/".concat(e,"/fields")},oD=function(e){return"/api/domain/v2/objects/".concat(e)},rD=function(e){function t(){return QR(this,t),$R(this,XR(t).apply(this,arguments))}var n,o,r;return 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&&eD(e,t)}(t,e),n=t,(o=[{key:"updateField",value:function(e,t){this.update({resource:tD(e.id),eventPrefix:"".concat(F.UPDATE_FIELD,":").concat(e.id),data:e,callback:t})}},{key:"addField",value:function(e,t,n){var o=s.omit(t,"id");this.create({resource:nD(e),eventPrefix:F.ADD_FIELD,data:o,callback:n})}},{key:"deleteField",value:function(e,t){this.delete({resource:oD(e),eventPrefix:F.DELETE_FIELD,callback:t})}},{key:"name",get:function(){return un.Fields}},{key:"channelName",get:function(){return f.FIELDS}}])&&ZR(n.prototype,o),r&&ZR(n,r),t}(u.BaseDataService);function iD(e){return(iD="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 aD(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 lD(e,t){return!t||"object"!==iD(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 sD(e){return(sD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uD(e,t){return(uD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cD=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lD(this,sD(t).call(this,e))}var n,o,r;return 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&&uD(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this;this.pendingItemsService=u.InstanceManager.getInstance(sn.PendingItems,this),this.listenTo(f.LIBRARY,"library:created library:deleted",this.render),this.model=u.ViewModelService.get("process:progress"),this.listenTo(this.model,"change:items",(function(){e.model.get("items")||e.render()}))}},{key:"regions",value:function(){return{progressInfo:{el:".progress-info-region",replaceElement:!1},progressSummary:{el:".progress-summary-region",replaceElement:!1}}}},{key:"hasLibraries",value:function(){return!!this.libraries.length}},{key:"renderProgressInfo",value:function(){this.hasLibraries()&&this.showChildView("progressInfo",new BI)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new _I)}},{key:"viewOptions",value:function(){return{styles:PI.a,uploadSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Upload),hasLibraries:this.hasLibraries()}}},{key:"onRender",value:function(){this.pendingItemsService.getPendingItems(),this.renderProgressInfo(),this.renderProgressSummary()}},{key:"lang",get:function(){return"upload.uploadButton"}},{key:"appLinks",get:function(){return e={},t=".".concat(PI.a.upload),n={application:y.UPLOAD,action:M.Upload.FILE_SELECTION},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"channelName",get:function(){return h.VIDEO_UPLOAD}},{key:"name",get:function(){return"UploadButtonView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative h-100"}},{key:"template",get:function(){return II.a}},{key:"requiredResources",get:function(){return{libraries:XL.libraries}}}])&&aD(n.prototype,o),r&&aD(n,r),t}(u.Core.View),pD=n(247),fD=n.n(pD),hD=n(248),dD=n.n(hD);function yD(e){return(yD="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 gD(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 mD(e,t){return!t||"object"!==yD(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 bD(e){return(bD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vD(e,t){return(vD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wD=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),mD(this,bD(t).call(this,e))}var n,o,r;return 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&&vD(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{search:{el:".search-bar-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!0},upload:{el:".upload-region",replaceElement:!1},userOptions:{el:".user-options-region",replaceElement:!0},migrationError:{el:".migration-error-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .navbar-brand":"onClick"}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var e={actionType:jb.UserAction.Click,descriptor:jb.ClickDescriptor.NavigateHome,location:jb.LocationContext.TopNav,entity:jb.EntityType.Logo},t={currentLocation:jb.AnalyticsHelper.buildCurrentLocation()};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"getSearchModel",value:function(){return u.ViewModelService.get("search",{ctor:ox})}},{key:"renderSearchBar",value:function(){var e=new p.SearchBarView({model:this.getSearchModel()});this.showChildView("search",e)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var e=new cD;this.showChildView("upload",e)}}},{key:"renderNotificationsStatus",value:function(){var e=new p.NotificationHeaderView;this.showChildView("notifications",e)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new nI)}},{key:"viewOptions",value:function(){return{styles:dD.a}}},{key:"onRender",value:function(){this.renderUserDropdown(),this.options.onlyShowProfile||(this.renderSearchBar(),this.renderUpload(),this.renderNotificationsStatus())}},{key:"name",get:function(){return"PageHeaderComponent"}},{key:"template",get:function(){return fD.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}}])&&gD(n.prototype,o),r&&gD(n,r),t}(u.Core.Component),SD=n(249),kD=n.n(SD),OD=n(15),CD=n.n(OD);function ED(e){return(ED="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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function TD(e,t){return!t||"object"!==ED(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 PD(e){return(PD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xD(e,t){return(xD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ID=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),TD(this,PD(t).call(this,e))}var n,o,r;return 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&&xD(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},t="click .".concat(CD.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&sp.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new lV(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:CD.a,previewDisplayed:this.options.previewDisplayed,previewSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}},{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return kD.a}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}}])&&_D(n.prototype,o),r&&_D(n,r),t}(u.Core.Component),LD=n(250),jD=n.n(LD);function RD(e){return(RD="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 DD(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 ND(e,t){return!t||"object"!==RD(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 AD(e){return(AD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function MD(e,t){return(MD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var VD=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ND(this,AD(t).call(this,e))}var n,o,r;return 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&&MD(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.restrictedVideoDataService=u.InstanceManager.getInstance(un.RestrictedVideo,this)}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},t="click .".concat(CD.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&sp.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:jb.LocationContext.AwaitingReviewVideoItem,actionType:jb.UserAction.Approve,entity:jb.EntityType.Video,descriptor:jb.OperationDescriptor.Single,workflowPhase:jb.WorkflowPhase.Complete},t={id:this.model.get("id")};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"logManageAccessAction",value:function(){var e={location:jb.LocationContext.AwaitingReviewVideoItem,actionType:jb.UserAction.SetAccess,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Start},t={id:this.model.get("id")};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:CD.a,previewDisplayed:this.options.previewDisplayed,previewSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Preview)}}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return jD.a}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:y.CONTENT_UPDATES,action:M.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}}])&&DD(n.prototype,o),r&&DD(n,r),t}(u.Core.Component),UD=n(251),FD=n.n(UD);function BD(e){return(BD="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 HD(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 WD(e,t){return!t||"object"!==BD(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 zD(e){return(zD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qD(e,t){return(qD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var GD=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),WD(this,zD(t).call(this,e))}var n,o,r;return 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&&qD(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},t="click .".concat(CD.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&sp.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:jb.LocationContext.VideoListItem,actionType:jb.UserAction.SetAccess,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Start},t={id:this.model.get("id")};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:CD.a,previewDisplayed:this.options.previewDisplayed,previewSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Preview)}}},{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return FD.a}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:y.VIDEO_ACCESS,action:M.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}}])&&HD(n.prototype,o),r&&HD(n,r),t}(u.Core.Component),YD=n(252),JD=n.n(YD);function KD(e){return(KD="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 QD(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 ZD(e,t){return!t||"object"!==KD(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 XD(e,t){return(XD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var eN=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ZD(this,$D(t).call(this,e))}var n,o,r;return 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&&XD(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");Qh.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){sp.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===p.CurationStatus.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:p.PendingItemsHelper.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return JD.a}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}}])&&QD(n.prototype,o),r&&QD(n,r),t}(u.Core.Component),tN=n(253),nN=n.n(tN),oN=n(11),rN=n.n(oN);function iN(e){return(iN="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 aN(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 lN(e,t){return!t||"object"!==iN(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 sN(e){return(sN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uN(e,t){return(uN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cN=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lN(this,sN(t).call(this,e))}var n,o,r;return 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&&uN(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},t="click .".concat(rN.a.svgContainer),n="onClickBadge",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new bA(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new SN({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new PA({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:rN.a,hasAdminRestriction:ih.hasAdminRestriction(this.model),restrictionMessage:ih.getRestrictionTooltipMessage(this.model),lockSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return nN.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}}])&&aN(n.prototype,o),r&&aN(n,r),t}(u.Core.Component),pN=n(254),fN=n.n(pN),hN=n(255),dN=n(256),yN=n.n(dN);function gN(e){return(gN="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 mN(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 bN(e,t){return!t||"object"!==gN(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 vN(e){return(vN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wN(e,t){return(wN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var SN=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),bN(this,vN(t).call(this,e))}var n,o,r;return 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&&wN(e,t)}(t,e),n=t,(o=[{key:"padNumber",value:function(e){if(!e)return null;var t=e.toString(),n=2;if(t.length>=n)return t;for(n-=t.length;n>0;)t="0"+t,n--;return t}},{key:"getSeriesName",value:function(){return this.options.highlight?yh.wordsHighlighter(this.model.series.get("name"),this.model.get("_matchedWords")):this.model.series.get("name")}},{key:"viewOptions",value:function(){return{styles:hN,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow),styleUppercase:this.options.styleUppercase}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}},{key:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return yN.a}},{key:"appLinks",get:function(){return this.options.seriesUrl?{}:{".series-applink":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}}])&&mN(n.prototype,o),r&&mN(n,r),t}(u.Core.Component);function kN(e){return(kN="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 ON(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 CN(e,t){return!t||"object"!==kN(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 EN(e){return(EN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _N(e,t){return(_N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var TN=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),CN(this,EN(t).call(this,e))}var n,o,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_N(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},t="click ".concat(rN.a.svgContainer),n="onClickSvg",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return yh.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(t){return yh.wordsHighlighter(yh.escapeExpression(t),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new bA(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new SN({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new PA({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:rN.a,name:yh.wordsHighlighter(yh.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:ih.hasAdminRestriction(this.model),restrictionMessage:ih.getRestrictionTooltipMessage(this.model),lockSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return fN.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}}])&&ON(n.prototype,o),r&&ON(n,r),t}(u.Core.Component),PN=n(257),xN=n.n(PN);function IN(e){return(IN="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 LN(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 jN(e,t){return!t||"object"!==IN(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 RN(e){return(RN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function DN(e,t){return(DN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var NN=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jN(this,RN(t).call(this,e))}var n,o,r;return 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&&DN(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},t="click .".concat(rN.a.svgContainer),n="onClickMetadata",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){return u.UrlHelper.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"renderSources",value:function(){if(Kh.hasCustomLibrary(this.model)){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new bA(e))}}},{key:"renderSeries",value:function(){Kh.hasCustomLibrary(this.model)&&this.showChildView("series",new SN({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new PA({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:rN.a,restrictionMessage:ih.getRestrictionTooltipMessage(this.model),lockSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Lock),linkToOnline:!Kh.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return xN.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(Kh.hasCustomLibrary(this.model))return{".applink-show-video":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}}])&&LN(n.prototype,o),r&&LN(n,r),t}(u.Core.Component),AN=n(258),MN=n.n(AN);function VN(e){return(VN="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 UN(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 FN(e,t){return!t||"object"!==VN(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 BN(e){return(BN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function HN(e,t){return(HN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var WN=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),FN(this,BN(t).call(this,e))}var n,o,r;return 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&&HN(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===p.CurationStatus.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return this.pendingItem?{status:p.PendingItemsHelper.getStatus(this.pendingItem),hasError:p.PendingItemsHelper.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return MN.a}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[e]}}}}])&&UN(n.prototype,o),r&&UN(n,r),t}(u.Core.Component),zN=n(259),qN=n.n(zN);function GN(e){return(GN="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 YN(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 JN(e,t){return!t||"object"!==GN(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 KN(e){return(KN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function QN(e,t){return(QN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ZN=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),JN(this,KN(t).call(this,e))}var n,o,r;return 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&&QN(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){return u.UrlHelper.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"getSeriesUrl",value:function(){if(this.model.series)return u.UrlHelper.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderBadges",value:function(){this.showChildView("badges",new PA({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new SN({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:rN.a,videoUrl:this.getVideoUrl(),openExternalSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return qN.a}}])&&YN(n.prototype,o),r&&YN(n,r),t}(u.Core.Component),$N=n(260),XN=n.n($N),eA=n(88),tA=n.n(eA);function nA(e){return(nA="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 oA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rA(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 iA(e,t){return!t||"object"!==nA(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 aA(e){return(aA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lA(e,t){return(lA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sA=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),iA(this,aA(t).call(this,e))}var n,o,r;return 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&&lA(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return oA(e={"click .video-title":"onClickMetadata"},"click .".concat(tA.a.series),"onClickMetadata"),oA(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){return u.UrlHelper.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"getSeriesUrl",value:function(){if(this.model.series)return u.UrlHelper.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderBadges",value:function(){this.showChildView("badges",new PA({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new SN({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},rN.a,tA.a),videoUrl:this.getVideoUrl(),openExternalSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow),hasAdminRestriction:ih.hasAdminRestriction(this.model),restrictionMessage:ih.getRestrictionTooltipMessage(this.model),lockSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return XN.a}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".tool-tip"}]}}])&&rA(n.prototype,o),r&&rA(n,r),t}(u.Core.Component),uA=n(261),cA=n.n(uA),pA=n(89),fA=n.n(pA);function hA(e){return(hA="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 dA(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 yA(e,t){return!t||"object"!==hA(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 gA(e){return(gA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mA(e,t){return(mA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bA=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),yA(this,gA(t).call(this,e))}var n,o,r;return 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&&mA(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){var e,t,n,o=Object.keys(this.appLinks),r=(e={},t="click .".concat(fA.a.sourceLabel),n="onClick",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e);return o.forEach((function(e){r["click ".concat(e)]="onClick"})),r}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"getFolderLinks",value:function(){var e,t=this,n=this.model.get("categories");if(null===(e=n)||void 0===e?void 0:e.length){var o={};return n.forEach((function(e,n){var r=t.options.highlight?yh.wordsHighlighter(yh.escapeExpression(e.get("name")),t.model.get("_matchedWords")):yh.escapeExpression(e.get("name"));o[e.get("id")]=r})),Object.keys(o).map((function(e){return'<a class="info-link applink-folder-'.concat(e,'">').concat(o[e],"</a>")})).join(", ")}}},{key:"onBeforeRender",value:function(){var e;return this.options.showFolder&&(null===(e=this.model.get("categories"))||void 0===e?void 0:e.length)}},{key:"viewOptions",value:function(){return{styles:fA.a,folderCount:this.model.get("categories").length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}},{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return cA.a}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var e;return this.options.showFolder&&(null===(e=this.model.get("categories"))||void 0===e?void 0:e.length)?this.model.get("categories").reduce((function(e,t){return e[".applink-folder-".concat(t.get("id"))]={application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[t.get("id")]},e}),{}):{}}}])&&dA(n.prototype,o),r&&dA(n,r),t}(u.Core.Component),vA=n(262),wA=n.n(vA),SA=n(49),kA=n.n(SA);function OA(e){return(OA="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 CA(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 EA(e,t){return!t||"object"!==OA(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 _A(e){return(_A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function TA(e,t){return(TA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var PA=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),EA(this,_A(t).call(this,e))}var n,o,r;return 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&&TA(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&ih.getRestrictionTooltipMessage(this.model),t=this.options.showRestrictionBadge&&ih.getRestrictionTooltipMessage(this.model);return{styles:kA.a,interactive:_w.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:_w.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.CloseCaptionBadge),resourcesSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:ih.getReviewBadgeClassName(this.model,kA.a.reviewBadge,kA.a.urgentReviewBadge),restrictionMessage:t}}},{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return wA.a}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}}])&&CA(n.prototype,o),r&&CA(n,r),t}(u.Core.Component),xA=n(263),IA=n.n(xA),LA=n(19),jA=n.n(LA);function RA(e){return(RA="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 DA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NA(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 AA(e,t){return!t||"object"!==RA(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 MA(e){return(MA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function VA(e,t){return(VA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var UA,FA,BA,HA,WA,zA,qA,GA,YA,JA,KA,QA=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),AA(this,MA(t).call(this,e))}var n,o,r;return 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&&VA(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"getTypeClassName",value:function(){switch(this.options.componentType){case UA.ProcessingVideo:return jA.a.processingVideo;default:return""}}},{key:"regions",value:function(){var e;return DA(e={},FA.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),DA(e,FA.Thumbnail,".thumbnail-region"),DA(e,FA.Metadata,".metadata-region"),DA(e,FA.VideoActions,".video-actions-region"),DA(e,FA.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=u.ViewModelService.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==UA.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];yf.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var t=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(u.CommonChannels.SHELL,u.Core.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(yf.channel(u.CommonChannels.SHELL),u.Core.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return t.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(FA.VideoInfo),"show",(function(){var t=e.getRegion(FA.VideoInfo).currentView;e.listenTo(t,"render",(function(){e.getUI("previewContainer").height(t.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(t.$el.outerHeight())}),0)})),t.isRendered()&&e.getUI("previewContainer").height(t.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!$h.isLazyLoadSupported(In)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var t=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Click,descriptor:jb.ClickDescriptor.TogglePreview,workflowPhase:jb.WorkflowPhase.Complete}),n={buttonClicked:e,show:this.viewModel.get("previewOpen")};jb.AnalyticsHelper.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{styles:jA.a,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===UA.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable()}}},{key:"onRender",value:function(){fM.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:UA.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return fM.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return IA.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"className",get:function(){var e="border-bottom";return this.options.allowBulk&&(e+=" ".concat(jA.a.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(jA.a.previewContainer)}}}])&&NA(n.prototype,o),r&&NA(n,r),t}(u.Core.Component);function ZA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(UA||(UA={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(FA||(FA={}));var $A=UA,XA=FA,eM=function(e){return{component:p.ThumbnailComponent,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:p.ImageSize.Small},href:u.UrlHelper.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),channelName:e.channelName}}},tM=function(e){return{component:WP,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl")}}},nM=function(e){return{component:WP,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:u.UrlHelper.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id))}}},oM={componentOptions:(GA={},ZA(GA,$A.Base,(BA={},ZA(BA,XA.Checkbox,(function(e){return{component:tv,options:{className:"d-inline-flex align-items-center mr-3 ".concat(jA.a.checkboxContainer),checkboxClassName:jA.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:ef}}})),ZA(BA,XA.Thumbnail,(function(e){return{component:p.ThumbnailComponent,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:p.ImageSize.Small},appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),ZA(BA,XA.Metadata,(function(e){return{component:cN,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),ZA(BA,XA.VideoActions,(function(e){return{component:ID,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),ZA(BA,XA.VideoInfo,tM),BA)),ZA(GA,$A.AwaitingReview,(HA={},ZA(HA,XA.Thumbnail,eM),ZA(HA,XA.Metadata,(function(e){return{component:ZN,options:{model:e.model,config:e.options.config}}})),ZA(HA,XA.VideoActions,(function(e){return{component:VD,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ZA(HA,XA.VideoInfo,nM),HA)),ZA(GA,$A.PastReleases,(WA={},ZA(WA,XA.Thumbnail,eM),ZA(WA,XA.Metadata,(function(e){return{component:sA,options:{model:e.model,config:e.options.config}}})),ZA(WA,XA.VideoInfo,nM),WA)),ZA(GA,$A.VideoAccess,(zA={},ZA(zA,XA.VideoActions,(function(e){return{component:GD,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ZA(zA,XA.Metadata,(function(e){return{component:NN,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),ZA(zA,XA.VideoInfo,(function(e){return Kh.hasCustomLibrary(e.model)?tM(e):nM(e)})),zA)),ZA(GA,$A.ProcessingVideo,(qA={},ZA(qA,XA.Metadata,(function(e){return{component:WN,options:{model:e.model,pendingItems:e.options.pendingItems}}})),ZA(qA,XA.VideoActions,(function(e){return{component:eN,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),qA)),ZA(GA,$A.Draggable,{}),ZA(GA,$A.Search,ZA({},XA.Metadata,(function(e){return{component:TN,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0}}}}))),GA),onBeforeRender:(KA={},ZA(KA,$A.Base,(YA={},ZA(YA,XA.Checkbox,(function(e){return!!e.options.allowBulk})),ZA(YA,XA.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),YA)),ZA(KA,$A.ProcessingVideo,(JA={},ZA(JA,XA.Checkbox,(function(){return!1})),ZA(JA,XA.VideoInfo,(function(){return!1})),JA)),KA)};var rM,iM,aM,lM,sM,uM=(rM={},iM=UA.Draggable,aM=function(e){return[{behaviorClass:K_,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},iM in rM?Object.defineProperty(rM,iM,{value:aM,enumerable:!0,configurable:!0,writable:!0}):rM[iM]=aM,rM),cM=UA.Base,pM=oM,fM={renderRegions:function(e,t){s.each(e.regions,(function(n,o){hM.onBeforeRenderRegion(e,t,o)&&hM.renderRegion(e,t,o)}))},onBeforeRenderRegion:function(e,t,n){var o=pM.onBeforeRender[t];if(o||(o=pM.onBeforeRender[cM]),!o)return!0;var r=o[n];return!r||(!s.isFunction(r)||r(e))},renderRegion:function(e,t,n){var o=hM.getComponent(e,t,n);e.showChildView(n,o)},getComponent:function(e,t,n){var o=pM.componentOptions[t];o||u.Core.ErrorHelper.throw(new u.DevError("Must define VideoItemComponent type options: ".concat(UA[t],".")));var r=o[n];r||(r=pM.componentOptions[cM][n]),r||u.Core.ErrorHelper.throw(new u.DevError("Must define VideoItemComponent region options: ".concat(n,".")));var i=r(e);return i.component||u.Core.ErrorHelper.throw(new u.DevError("Must define component for region: ".concat(n,",\n in VideoItemComponent type: ").concat(UA[t],"."))),new i.component(i.options||{})},getBehaviors:function(e,t){return uM[t]?uM[t](e):null}},hM=fM,dM=n(264),yM=n.n(dM),gM=n(14),mM=n.n(gM);function bM(e){return(bM="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 vM(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 wM(e,t){return!t||"object"!==bM(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 SM(e){return(SM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kM(e,t){return(kM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function OM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Small="sm",e.Large="lg"}(sM||(sM={}));var CM=(OM(lM={},sM.Small,3),OM(lM,sM.Large,5),lM),EM=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=wM(this,SM(t).call(this,e))).showingMore=!1,n}var n,o,r;return 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&&kM(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return OM({},"click .".concat(mM.a.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?yh.linkifyText(yh.escapeExpression(this.model.get("description"))):this.options.highlighter?yh.wordsHighlighter(yh.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),t=e.descriptionTextEl,n=e.ellipsisEl;t.removeClass(mM.a.truncateLarge).addClass(mM.a.open),n.text(u.LanguageService.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,t=this.getDescriptionElements(),n=t.descriptionTextEl,o=t.ellipsisEl;this.options.size===sM.Small&&(e="truncateSmall"),this.options.size===sM.Large&&(e="truncateLarge"),n.addClass(mM.a[e]),o.text(this.options.allowExpand?"... ".concat(u.LanguageService.getPhrase(this.lang,"showMore")):"...").removeClass(mM.a.hideEllipsis).addClass(mM.a.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,t=CM[this.options.size];e.height()<=21*t||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:mM.a,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}},{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return yM.a}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description",ellipsis:this.options.allowExpand?".".concat(mM.a.showMoreEllipsis):".".concat(mM.a.singleEllipsis)}}}])&&vM(n.prototype,o),r&&vM(n,r),t}(u.Core.Component),_M=n(265),TM=n.n(_M);function PM(e){return(PM="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 xM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IM(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 LM(e,t,n){return t&&IM(e.prototype,t),n&&IM(e,n),e}function jM(e,t){return!t||"object"!==PM(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 RM(e){return(RM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function DM(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&&NM(e,t)}function NM(e,t){return(NM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var AM=function(e){function t(e){return xM(this,t),jM(this,RM(t).call(this,e))}return DM(t,e),LM(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return QA}},{key:"childViewOptions",get:function(){var e=this;return function(t){return{componentType:t.get("status")===p.CurationStatus.Processing?UA.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource}}}}]),t}(u.Core.ComponentCollection),MM=function(e){function t(e){return xM(this,t),jM(this,RM(t).call(this,e))}return DM(t,e),LM(t,[{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new AM({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{location:jb.LocationContext.VideoListItem,entity:jb.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource});this.showChildView("videos",e)}},{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return TM.a}},{key:"defaults",get:function(){return{videoItemComponentType:UA.Base,allowBulk:!1,emptyState:S.Default,videoCollectionSource:eh.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:cg,selector:".lazy-img",minBrowserSupportVersion:In},{behaviorClass:p.EmptyStateBehavior,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:wn}]}}]),t}(u.Core.Component),VM=n(266),UM=n.n(VM),FM=n(21),BM=n.n(FM);function HM(e){return(HM="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 WM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function zM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qM(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 GM(e,t,n){return t&&qM(e.prototype,t),n&&qM(e,n),e}function YM(e,t){return!t||"object"!==HM(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 JM(e){return(JM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function KM(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&&QM(e,t)}function QM(e,t){return(QM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ZM=function(e){function t(e){return zM(this,t),YM(this,JM(t).call(this,e))}return KM(t,e),GM(t,[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){this.logAction()}},{key:"logAction",value:function(){var e=this.model.get("appLink");if(s.isObject(e)){var t=WM(e.args,1)[0];jb.AnalyticsHelper.logUserAction({id:t},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:BM.a,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}},{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return UM.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){if(!this.model.get("href"))return{}}},{key:"className",get:function(){var e="d-inline-block px-1 no-decoration";return this.model.get("isDisabled")&&(e+=" ".concat(BM.a.disabled)),e}},{key:"behaviors",get:function(){var e=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(e)return[{behaviorClass:p.TooltipBehavior,title:e}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}}]),t}(u.Core.Component),$M=function(e){function t(e){return zM(this,t),YM(this,JM(t).call(this,e))}return KM(t,e),GM(t,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return ZM}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}]),t}(u.Core.ComponentCollection),XM=n(267),eV=n.n(XM);function tV(e){return(tV="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 nV(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 oV(e,t){return!t||"object"!==tV(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 rV(e){return(rV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iV(e,t){return(iV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var aV,lV=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),oV(this,rV(t).call(this,e))}var n,o,r;return 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&&iV(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick","click @ui.dropdownToggle":"onClickMore","click @ui.moreActions":"onClickMore"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickMore",value:function(e){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"getActions",value:function(){return new u.Core.Collection([{title:u.LanguageService.getPhrase(this.lang,"share"),svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Share),isDisabled:!bh.canShareVideo(this.model,this.options.application),tooltipText:bh.canShareVideo(this.model,this.options.application)?u.LanguageService.getPhrase(this.lang,"share"):bh.getSharePermissionsMessage(this.model,this.options.application),appLink:{application:this.options.application,action:M.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Share})},{title:u.LanguageService.getPhrase(this.lang,"edit"),svg:bh.canEditVideo(this.model)?p.SvgHelper.getSvg(p.cvSvgLibrary.Edit):p.SvgHelper.getSvg(p.cvSvgLibrary.EditClickView),tooltipText:this.getEditTooltip(),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.EDIT_VIDEO,args:[this.model.get("id")]},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Edit,workflowPhase:jb.WorkflowPhase.Start})}])}},{key:"getEditTooltip",value:function(){return bh.canEditVideo(this.model)?u.LanguageService.getPhrase(this.lang,"edit"):Kh.isExchangeVideo(this.model)?u.LanguageService.getPhrase(this.lang,"linkedToExchange"):u.LanguageService.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===eh.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var e=[];if(this.options.collectionIdentifier&&e.push({title:u.LanguageService.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:M.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Move,descriptor:jb.OperationDescriptor.Single,workflowPhase:jb.WorkflowPhase.Start})}),e.push({title:u.LanguageService.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:M.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString()]},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.SetAccess,workflowPhase:jb.WorkflowPhase.Start})}),this.options.application===y.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&e.push({title:u.LanguageService.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:M.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),e.push({title:u.LanguageService.getPhrase(this.lang,"openInStaffView"),href:u.UrlHelper.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id"))),external:!0,icon:p.SvgHelper.getSvg(p.cvSvgLibrary.NewWindow),analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Click,descriptor:jb.ClickDescriptor.OpenInStaffView})}),this.options.application!==y.CONTENT_UPDATES){var t=bh.canDownloadVideo(this.model);e.push({title:u.LanguageService.getPhrase(this.lang,"download"),disabled:!t,classes:t?"":"".concat(BM.a.disabled),tooltip:t?null:{title:u.LanguageService.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Download}),appLink:t?{application:this.options.application,action:M.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&bh.canAddToExchange(this.model)&&e.push({title:u.LanguageService.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:M.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),this.options.customerHasLocalCache&&e.push({title:u.LanguageService.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:M.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.AddToLocalCache})}),this.options.collectionIdentifier&&e.push({title:u.LanguageService.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:M.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Delete,descriptor:jb.OperationDescriptor.Single,workflowPhase:jb.WorkflowPhase.Start})}),new u.Core.Collection(e)}},{key:"renderActions",value:function(){this.showChildView("actions",new $M({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new FF({displayOptions:{alignment:"right"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:jb.AnalyticsHelper})))}},{key:"viewOptions",value:function(){return{styles:BM.a,moreSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.More)}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return eV.a}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return BM.a.actions}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}}])&&nV(n.prototype,o),r&&nV(n,r),t}(u.Core.Component),sV=n(268),uV=n.n(sV),cV=n(269),pV=n.n(cV);function fV(e){return(fV="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 hV(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 dV(e,t){return!t||"object"!==fV(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 yV(e){return(yV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gV(e,t){return(gV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(aV||(aV={}));var mV=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dV(this,yV(t).call(this,e))}var n,o,r;return 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&&gV(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,aV.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());sp.Radio.channel(this.options.channelName).trigger(aV.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 uV.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 pV.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}}])&&hV(n.prototype,o),r&&hV(n,r),t}(u.Core.Component),bV=n(270),vV=n.n(bV),wV=n(271),SV=n.n(wV);function kV(e){return(kV="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 OV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CV(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 EV(e,t,n){return t&&CV(e.prototype,t),n&&CV(e,n),e}function _V(e,t){return!t||"object"!==kV(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 TV(e){return(TV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function PV(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&&xV(e,t)}function xV(e,t){return(xV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var IV=function(e){function t(){return OV(this,t),_V(this,TV(t).apply(this,arguments))}return PV(t,e),EV(t,[{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}},{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return SV.a}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}}]),t}(u.Core.Component),LV=function(e){function t(){return OV(this,t),_V(this,TV(t).apply(this,arguments))}return PV(t,e),EV(t,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return IV}}]),t}(u.Core.ComponentCollection);function jV(e){return(jV="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 RV(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 DV(e,t){return!t||"object"!==jV(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 NV(e){return(NV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function AV(e,t){return(AV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var MV=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),DV(this,NV(t).call(this,e))}var n,o,r;return 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&&AV(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"getBreadcrumbs",value:function(){this.breadcrumbCollection=new u.Core.Collection;var e,t=this.options.folder;do{if(e=sh.getParent(t.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(t,!!e),{at:0}),!e)break;t=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?M.LibraryEditor.FOLDER:M.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:y.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new LV({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return vV.a}},{key:"className",get:function(){return"d-inline-block"}}])&&RV(n.prototype,o),r&&RV(n,r),t}(u.Core.Component),VV=n(272),UV=n(273),FV=n(274),BV=n.n(FV),HV=n(90),WV=n.n(HV);function zV(e){return(zV="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 qV(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 GV(e,t){return!t||"object"!==zV(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 YV(e){return(YV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function JV(e,t){return(JV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var KV=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GV(this,YV(t).call(this,e))}var n,o,r;return 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&&JV(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.enableIeFs=this.isTop(),this.getViewModel()}},{key:"seekTo",value:function(e){this.eventsApi&&this.eventsApi.trigger(u.WebplayerEvents.TRIGGER.SEEK_TO,e)}},{key:"seekToChapter",value:function(e){this.eventsApi&&this.eventsApi.trigger("cv-player-changechapter",e)}},{key:"getViewModel",value:function(){var e=this.model.get("id");e||(e=this.model.get("trackingCode")),this.viewModel=u.ViewModelService.get("".concat(Cn.NAME,"-").concat(e)),this.viewModel.get("initialized")||this.initViewModel(),this.setUrl()}},{key:"initViewModel",value:function(){var e=this.model.pick("id");e.id||(e=this.model.pick("trackingCode")),e.id||e.trackingCode||u.Core.ErrorHelper.throw(new u.DevError("Must provide either a master id or a tracking code to ".concat(this.name)));var t=s.extend({},this.viewModelDefaults,e,this.viewModel.toJSON(),{initialized:!0});this.viewModel.set(t)}},{key:"initWebPlayerEvents",value:function(){if(this.enableIeFs){var e=this.getUI("iframe");e&&0!==e.length&&e.on("load",this.bindWebPlayerEvents.bind(this))}}},{key:"bindWebPlayerEvents",value:function(){if(!this.iframeReady){var e=this.getUI("iframe").get(0);this.eventsApi=new UV.CVEventsApi(e.contentWindow),this.eventsApi.on(u.WebplayerEvents.RECEIVE.PONG,this.onPong.bind(this)),this.eventsApi.trigger(u.WebplayerEvents.TRIGGER.PING),this.eventsApi.on(u.WebplayerEvents.RECEIVE.FULLSCREEN_CLICK,this.onFullscreenChange.bind(this)),this.eventsApi.trigger(u.WebplayerEvents.TRIGGER.SHOW_FS_BTN),this.eventsApi.on(u.WebplayerEvents.RECEIVE.TIME_UPDATE,this.onTimeUpdate.bind(this)),this.eventsApi.on(u.WebplayerEvents.RECEIVE.PLAY,this.onPlay.bind(this)),this.eventsApi.on(u.WebplayerEvents.RECEIVE.PAUSE,this.onPause.bind(this)),this.eventsApi.on(u.WebplayerEvents.RECEIVE.VIDEO_END,this.onEnded.bind(this)),this.options.showDevicesButton&&(this.eventsApi.on(u.WebplayerEvents.RECEIVE.DEVICES_BTN_CLICK,this.showDeviceToggle.bind(this)),this.eventsApi.trigger(u.WebplayerEvents.TRIGGER.SHOW_DEVICES_BTN)),this.options.captureAnalytics&&(this.tracker=new jb.VideoAnalyticsTracker({video:this.model.toJSON(),eventsApi:this.eventsApi,analyticsOptions:this.options.analyticsOptions}))}}},{key:"unbindWebPlayerEvents",value:function(){this.eventsApi&&(this.eventsApi.off(u.WebplayerEvents.RECEIVE.FULLSCREEN_CLICK),this.eventsApi.off(u.WebplayerEvents.RECEIVE.TIME_UPDATE),this.eventsApi.off(u.WebplayerEvents.RECEIVE.PLAY),this.eventsApi.off(u.WebplayerEvents.RECEIVE.PAUSE),this.eventsApi.off(u.WebplayerEvents.RECEIVE.VIDEO_END),this.eventsApi.off(u.WebplayerEvents.RECEIVE.PONG),this.eventsApi.off(u.WebplayerEvents.RECEIVE.DEVICES_BTN_CLICK))}},{key:"setUrl",value:function(){var e="".concat(this.viewModel.get("webPlayerHost"),"embed"),t=s.omit(this.viewModel.get("parameters"),["p","vid"])||{};t.a=!!this.viewModel.get("autoplay");var n=this.viewModel.get("id");n&&(t.vid=n);var o=this.viewModel.get("trackingCode");o&&(t.p=o),this.viewModel.get("currenttime")&&(t.t=this.viewModel.get("currenttime"),t.a=!this.viewModel.get("paused"));var r=u.UrlHelper.urlBuilder(e,t),i=Object(VV.signUrl)(r,{timestamp:!0});this.viewModel.set({url:i})}},{key:"isTop",value:function(){return window.top===window}},{key:"onTimeUpdate",value:function(e,t){this.viewModel.set("ready",!0),this.viewModel.set("currenttime",t)}},{key:"onPlay",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!1)}},{key:"onPause",value:function(){this.viewModel.set("ready",!0),this.viewModel.set("paused",!0)}},{key:"onEnded",value:function(){this.viewModel.trigger("ended")}},{key:"onPong",value:function(){this.iframeReady=!0,this.viewModel.set("ready",!0),sp.Radio.channel(this.channelName).trigger("loaded"),this.options.parentChannelName&&sp.Radio.channel(this.options.parentChannelName).trigger("webplayer:loaded")}},{key:"onFullscreenChange",value:function(e,t,n){t?this.requestFs(n):this.cancelFs(n)}},{key:"requestFs",value:function(e){e||$("html").addClass("player-fullscreen")}},{key:"cancelFs",value:function(e){e||$("html").removeClass("player-fullscreen")}},{key:"showDeviceToggle",value:function(e){this.viewModel.trigger("showDevices",!!e)}},{key:"query",value:function(e,t){var n=this;if(this.iframeReady){var o=s.uniqueId("cveventsapi");this.eventsApi.one("".concat(u.WebplayerEvents.RECEIVE.QUERY_CALLBACK,"-").concat(o),(function(e,n){t(n)})),this.eventsApi.trigger(u.WebplayerEvents.TRIGGER.QUERY,e,o)}else this.listenToOnce(this.channelName,"loaded",(function(){return n.query(e,t)}))}},{key:"viewOptions",value:function(){return s.extend({},{styles:WV.a,playSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Play)},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.initWebPlayerEvents()}},{key:"onBeforeDestroy",value:function(){this.unbindWebPlayerEvents(),this.tracker&&this.tracker.destroy()}},{key:"elements",get:function(){return{iframe:"iframe"}}},{key:"name",get:function(){return"WebPlayerView"}},{key:"template",get:function(){return BV.a}},{key:"className",get:function(){return"".concat(WV.a.webPlayerContainer," embed-responsive embed-responsive-16by9")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"defaults",get:function(){return{captureAnalytics:!0,showDevicesButton:!1}}},{key:"viewModelDefaults",get:function(){return{width:640,height:360,autoplay:!!this.options.autoplay,parameters:{s:!1,bc:!1,bf:!1},webPlayerHost:this.options.webPlayerUrl}}}])&&qV(n.prototype,o),r&&qV(n,r),t}(u.Core.Component),QV=n(275),ZV=n.n(QV),$V=n(91),XV=n.n($V);function eU(e){return(eU="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 tU(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 nU(e,t){return!t||"object"!==eU(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 oU(e){return(oU=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rU(e,t){return(rU=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var iU=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=nU(this,oU(t).call(this,e))).selectSearch="",n.sameCharIndex=1,n.optionStep=1,n}var n,o,r;return 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&&rU(e,t)}(t,e),n=t,(o=[{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){sp.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),sp.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){Zh.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(Zh.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)||(Zh.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),sp.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=Zh.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=Zh.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))||(Zh.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=s.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=s.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=s.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return s.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")||!!s.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=Zh.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:XV.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new FF({collection:this.collection,channelName:this.options.channelName,childOptions:s.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(XV.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return ZV.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&tU(n.prototype,o),r&&tU(n,r),t}(u.Core.Component);function aU(e){return(aU="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 lU(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 sU(e,t){return!t||"object"!==aU(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 uU(e){return(uU=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cU(e,t){return(cU=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pU=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),sU(this,uU(t).call(this,e))}var n,o,r;return 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&&cU(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return this.options.viewOptions}},{key:"name",get:function(){return"PartialLoadingComponent"}},{key:"tagName",get:function(){return this.options.tagName||"div"}},{key:"className",get:function(){return this.options.className}}])&&lU(n.prototype,o),r&&lU(n,r),t}(u.Core.Component);function fU(e){return(fU="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 hU(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 dU(e,t){return!t||"object"!==fU(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 yU(e){return(yU=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gU(e,t){return(gU=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mU=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dU(this,yU(t).call(this,e))}var n,o,r;return 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&&gU(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.collection=XB.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var e=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(e+=this.options.className),e}},{key:"childView",get:function(){return pU}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&hU(n.prototype,o),r&&hU(n,r),t}(u.Core.ComponentCollection),bU=n(276),vU=n.n(bU);function wU(e){return(wU="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 SU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kU(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 OU(e,t,n){return t&&kU(e.prototype,t),n&&kU(e,n),e}function CU(e,t){return!t||"object"!==wU(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 EU(e){return(EU=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _U(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&&TU(e,t)}function TU(e,t){return(TU=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var PU=function(e){function t(e){return SU(this,t),CU(this,EU(t).call(this,e))}return _U(t,e),OU(t,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return xU}}]),t}(u.Core.ComponentCollection),xU=function(e){function t(e){return SU(this,t),CU(this,EU(t).call(this,e))}return _U(t,e),OU(t,[{key:"regions",value:function(){return{typeahead:{el:".typeahead-region",replaceElement:!1}}}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new Lb({model:this.model,parentChannelName:this.options.channelName,inputId:this.options.inputId,selectEvent:this.options.selectEvent,typeaheadConfigs:this.options.typeaheadConfig,placeholderText:this.options.editable?this.options.placeholderText:"",callbacks:{onRender:p.TypeaheadHelper.selectFirstResult,onInput:p.TypeaheadHelper.emitEventOnInput(this.options.channelName,Xp,this.options.modelType,{isCollection:!0})},editable:this.options.editable,actionOptions:{clearOnSelect:!0},removeEvent:this.options.removeEvent,forceShowRemoveButton:this.collection.length>1||!!this.model.get("name")}))}},{key:"viewOptions",value:function(){return{id:this.modelId}}},{key:"onRender",value:function(){this.renderTypeahead()}},{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return vU.a}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"[name=".concat(this.modelId,"]"),{observe:"name",setOptions:{validate:!0}})}}]),t}(u.Core.Component),IU=n(277),LU=n.n(IU),jU=n(278),RU=n.n(jU),DU=n(279),NU=n.n(DU);function AU(e){return(AU="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 MU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VU(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 UU(e,t,n){return t&&VU(e.prototype,t),n&&VU(e,n),e}function FU(e,t){return!t||"object"!==AU(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 BU(e){return(BU=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function HU(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&&WU(e,t)}function WU(e,t){return(WU=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var zU=function(e){function t(){return MU(this,t),FU(this,BU(t).apply(this,arguments))}return HU(t,e),UU(t,[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:NU.a}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new EM({model:new u.Core.Model({description:this.model.get("value")}),linkify:!0,size:sM.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}},{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return LU.a}},{key:"className",get:function(){return"row mb-0"}}]),t}(u.Core.Component),qU=function(e){function t(){return MU(this,t),FU(this,BU(t).apply(this,arguments))}return HU(t,e),UU(t,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return zU}}]),t}(u.Core.ComponentCollection),GU=function(e){function t(){return MU(this,t),FU(this,BU(t).apply(this,arguments))}return HU(t,e),UU(t,[{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new qU({collection:this.collection}))}},{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return RU.a}},{key:"className",get:function(){return"py-3 border-top"}}]),t}(u.Core.Component),YU=n(280),JU=n.n(YU),KU=n(281),QU=n.n(KU),ZU=n(92),$U=n.n(ZU);function XU(e){return(XU="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 eF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tF(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 nF(e,t,n){return t&&tF(e.prototype,t),n&&tF(e,n),e}function oF(e,t){return!t||"object"!==XU(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 rF(e){return(rF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iF(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&&aF(e,t)}function aF(e,t){return(aF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lF=function(e){function t(e){var n;return eF(this,t),(n=oF(this,rF(t).call(this,e))).showSpinner=!1,n.disableBtn=!0,n}return iF(t,e),nF(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{button:{el:".button-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(f.SERIES,"".concat(F.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),sp.Radio.channel(this.options.channelName).trigger("select:season",this.model.toJSON())))}},{key:"onSync",value:function(){this.disableBtn=!0,this.showSpinner=!1,this.model.clear(),this.renderButton()}},{key:"viewOptions",value:function(){return{model:this.model,show:this.options.show}}},{key:"renderButton",value:function(){this.options.show&&this.showChildView("button",new iB({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-primary",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:qh.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return JU.a}},{key:"className",get:function(){return"px-2"}},{key:"bindings",get:function(){return{"[name=number]":{observe:"number",setOptions:{validate:!0}}}}},{key:"behaviors",get:function(){return[{behaviorClass:Pg},{behaviorClass:og}]}}]),t}(u.Core.Component),sF=function(e){function t(e){return eF(this,t),oF(this,rF(t).call(this,e))}return iF(t,e),nF(t,[{key:"initialize",value:function(){this.model.get("season.id")&&Zh.setSelected(this.model.get("season.id"),this.collection),this.viewModel=u.ViewModelService.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(dw)}},{key:"events",value:function(){return{"click .dropdown-btn":"onToggleDropdown","click .dropdown-menu":"onClickPopover","click .create":"onClickCreateNewSeason","change .custom-select":"onSelectOption","click .remove":"onClickRemove"}}},{key:"regions",value:function(){return{create:{el:".create-region",replaceElement:!0}}}},{key:"onToggleDropdown",value:function(e){this.options.disabled?e.stopPropagation():this.renderCreate()}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickCreateNewSeason",value:function(e){e.preventDefault(),this.showCreateForm=!0,this.renderCreate()}},{key:"onSelectOption",value:function(e){var t=e.target.value,n="-1"===t?null:this.collection.findWhere({number:+t}).toJSON();this.setButtonText(t),sp.Radio.channel(this.options.channelName).trigger("select:season",n),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),sp.Radio.channel(this.options.channelName).trigger("select:season",null),this.showCreateForm=!1,this.render()}},{key:"setButtonText",value:function(e){if(this.options.isSuggestEdit){var t=e&&"-1"!==e?u.LanguageService.getPhrase(this.lang,"season",{number:e}):"";this.getUI("dropdownBtn").text(t)}else{var n=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(u.LanguageService.getPhrase(this.lang,n,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new lF({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:$U.a,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:p.SvgHelper.getSvg(p.cvSvgLibrary.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return QU.a}},{key:"className",get:function(){return $U.a.seasonContainer}},{key:"lang",get:function(){return"shared.editSeasonInfo"}},{key:"elements",get:function(){return{dropdownBtn:".dropdown-btn"}}}]),t}(u.Core.Component),uF=n(282),cF=n.n(uF),pF=n(283),fF=n.n(pF);function hF(e){return(hF="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 dF(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 yF(e,t){return!t||"object"!==hF(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 gF(e){return(gF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mF(e,t){return(mF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bF=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),yF(this,gF(t).call(this,e))}var n,o,r;return 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&&mF(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var t=e.target;t.style.height="inherit";var n=window.getComputedStyle(t),o=parseInt(n.getPropertyValue("border-top-width"),10)+parseInt(n.getPropertyValue("padding-top"),10)+t.scrollHeight+parseInt(n.getPropertyValue("padding-bottom"),10)+parseInt(n.getPropertyValue("border-bottom-width"),10);t.style.height=o+"px"}},{key:"viewOptions",value:function(){return s.extend({},this.options,{styles:fF.a})}},{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return cF.a}}])&&dF(n.prototype,o),r&&dF(n,r),t}(u.Core.Component),vF=n(284),wF=n.n(vF);function SF(e){return(SF="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 kF(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 OF(e,t){return!t||"object"!==SF(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 CF(e){return(CF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function EF(e,t){return(EF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _F=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),OF(this,CF(t).call(this,e))}var n,o,r;return 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&&EF(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){this.createClickHandlers();var e={};return s.each(this.options.buttons,(function(t,n){e["click .dialog-button-".concat(n)]="onClickButton".concat(n)})),e}},{key:"createClickHandlers",value:function(){var e=this;this.clickHandlersCreated||(s.each(this.options.buttons,(function(t,n){e["onClickButton".concat(n)]=t.success?function(){return e.onDone(t)}:function(){return e.onFail()}})),this.clickHandlersCreated=!0)}},{key:"reject",value:function(){"pending"===this.options.result.state()&&this.options.result.reject()}},{key:"onDone",value:function(e){this.options.result.resolve(e)}},{key:"onFail",value:function(){this.reject()}},{key:"onDestroy",value:function(){this.reject()}},{key:"template",get:function(){return wF.a}},{key:"name",get:function(){return"DialogView"}},{key:"title",get:function(){return!1}},{key:"behaviors",get:function(){var e=s.map(this.options.buttons,(function(e,t){var n=s.pick(e,["text","type","className","close"]);return n.className+=" dialog-button-".concat(t),n}));return[{behaviorClass:Sg,title:this.options.title,buttons:e}]}}])&&kF(n.prototype,o),r&&kF(n,r),t}(u.Core.View),TF=n(285),PF=n.n(TF);function xF(e){return(xF="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 IF(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 LF(e,t){return!t||"object"!==xF(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 jF(e){return(jF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function RF(e,t){return(RF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var DF=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),LF(this,jF(t).call(this,e))}var n,o,r;return 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&&RF(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this.model?this.model.get("id"):"";Zh.setSelected(e,this.collection),this.listenTo(this.options.channelName,this.options.eventName,this.onSelect)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onSelect",value:function(e){Zh.setSelected(e.get("id"),this.collection),this.render()}},{key:"viewOptions",value:function(){var e=Zh.getSelected(this.collection);return Object.assign({selected:e&&e.get("name")},this.options)}},{key:"getIsOptionDisabledFn",value:function(){var e=Zh.getSelected(this.collection),t=e&&e.id;return function(){return!!t&&(t=t.toString(),this.model.get("id").toString()===t)}}},{key:"renderChannelDropdown",value:function(){this.showChildView("dropdown",new FF({collection:this.collection,channelName:this.options.channelName,childOptions:{titleProperty:this.options.titleProperty,isDisabled:this.getIsOptionDisabledFn(),eventName:this.options.eventName},displayOptions:this.options.displayOptions,analyticsHelper:this.options.analyticsHelper}))}},{key:"onRender",value:function(){this.renderChannelDropdown()}},{key:"name",get:function(){return"DropdownComponent"}},{key:"template",get:function(){return PF.a}},{key:"className",get:function(){return this.options.buttonClass?"select-channel ".concat(this.options.buttonClass):"select-channel"}}])&&IF(n.prototype,o),r&&IF(n,r),t}(u.Core.Component);function NF(e){return(NF="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 AF(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 MF(e,t){return!t||"object"!==NF(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 VF(e){return(VF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function UF(e,t){return(UF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var FF=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),MF(this,VF(t).call(this,e))}var n,o,r;return 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&&UF(e,t)}(t,e),n=t,(o=[{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,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{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 KF}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return s.extend(e,this.options.childOptions)}}])&&AF(n.prototype,o),r&&AF(n,r),t}(u.Core.ComponentCollection),BF=n(286),HF=n.n(BF);function WF(e){return(WF="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 zF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function qF(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 GF(e,t){return!t||"object"!==WF(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 YF(e){return(YF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function JF(e,t){return(JF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var KF=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GF(this,YF(t).call(this,e))}var n,o,r;return 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&&JF(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:option:selected",this.render)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"hasTooltip",value:function(){if(!s.isFunction(this.options.getTooltip))return!1;var e=this.getTooltip();return!!s.isObject(e)&&e.title}},{key:"getTooltip",value:function(){if(s.isFunction(this.options.getTooltip))return this.options.getTooltip.apply(this,arguments)}},{key:"isDisabled",value:function(){return!!this.model.get("divider")||!!s.isFunction(this.options.isDisabled)&&this.options.isDisabled.apply(this,arguments)}},{key:"onClick",value:function(e){var t=this.model.get("eventName")||this.options.eventName;this.model.get("stopPropagation")&&e.stopPropagation(),this.isDisabled()?e.stopPropagation():(this.logAction(),t&&sp.Radio.channel(this.options.channelName).trigger(t,this.model))}},{key:"logAction",value:function(){var e=this.model.get("appLink");if(e){var t=zF(e.args,1)[0];this.options.analyticsHelper.logUserAction({id:t},this.model.get("analyticsOptions"))}}},{key:"buildPrefix",value:function(){if(s.isFunction(this.options.prefixHandler))return this.options.prefixHandler.apply(this,arguments)}},{key:"getTitle",value:function(){if(!this.model.get("divider")){var e=this.model.get(this.options.titleProperty);return e||u.Core.ErrorHelper.throw(new u.DevError("titleProperty has not been correctly set. Or the model does not contain the property.")),e}}},{key:"viewOptions",value:function(){return{title:this.getTitle(),prefix:this.buildPrefix(),iconSvg:this.model.get("icon")}}},{key:"onRender",value:function(){this.resetClassName()}},{key:"template",get:function(){return HF.a}},{key:"behaviors",get:function(){var e=[];return this.hasTooltip()&&e.push(Object.assign({behaviorClass:p.TooltipBehavior},this.getTooltip())),e}},{key:"name",get:function(){return"DropdownItemComponent"}},{key:"tagName",get:function(){return this.model.get("divider")?"div":this.model.get("appLink")||this.model.get("href")?"a":"span"}},{key:"className",get:function(){if(this.model.get("divider"))return"dropdown-divider";var e=this.model.get("classes")||this.options.extraClasses,t="dropdown-item text-truncate";return this.options.truncateOptionNames?t+=" d-block text-truncate":t+=" d-flex justify-content-between",this.model.get("selected")&&(t+=" active"),this.isDisabled()?this.hasTooltip()?t+=" cursor-default":t+=" disabled cursor-default":t+=" cursor-pointer",e&&(t+=" ".concat(e)),t}},{key:"appLinks",get:function(){return this.model.get("appLink")?{"[this]":this.model.get("appLink")}:{}}},{key:"defaults",get:function(){return{titleProperty:"title"}}},{key:"attributes",get:function(){if(this.options.truncateOptionNames)return{title:this.model.get("name")};var e=this.hasTooltip()?this.getTooltip().title:"";return this.model.get("href")?{href:this.model.get("href"),title:this.options.currentSelectedMessage||e,target:this.model.get("external")?"_blank":""}:{title:e}}}])&&qF(n.prototype,o),r&&qF(n,r),t}(u.Core.Component),QF=n(287),ZF=n.n(QF);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 XF(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 eB(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 tB(e){return(tB=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nB(e,t){return(nB=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oB={ShowSpinner:"show:spinner",HideSpinner:"hide:spinner",ToggleSpinner:"toggle:spinner",Enable:"enable",Disable:"disable",ManageDimensions:"manage:dimensions"},rB={ShowSpinner:"showSpinner",Disabled:"disabled"},iB=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),eB(this,tB(t).call(this,e))}var n,o,r;return 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&&nB(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{click:"onClick"}}},{key:"initialize",value:function(){this.model||(this.model=new u.Core.Model({showSpinner:this.options.showSpinner,disabled:this.options.disabled})),this.bindSpinnerListeners(),this.bindDisableListeners(),this.listenTo(this.model,"change:".concat(rB.ShowSpinner),this.render),this.listenTo(this.model,"change:".concat(rB.Disabled),this.render)}},{key:"bindSpinnerListeners",value:function(){this.listenTo(this,oB.ShowSpinner,this.showSpinner),this.listenTo(this,oB.HideSpinner,this.hideSpinner),this.listenTo(this,oB.ToggleSpinner,this.toggleSpinner),this.listenTo(this,oB.ManageDimensions,this.manageDimensions),this.options.channelName&&(this.listenTo(this.options.channelName,oB.ShowSpinner,this.showSpinner),this.listenTo(this.options.channelName,oB.HideSpinner,this.hideSpinner),this.listenTo(this.options.channelName,oB.ToggleSpinner,this.toggleSpinner))}},{key:"bindDisableListeners",value:function(){this.listenTo(this,oB.Enable,this.enableButton),this.listenTo(this,oB.Disable,this.disableButton),this.options.channelName&&(this.listenTo(this.options.channelName,oB.Enable,this.enableButton),this.listenTo(this.options.channelName,oB.Disable,this.disableButton))}},{key:"getButtonText",value:function(){return s.isFunction(this.options.buttonText)?this.options.buttonText():this.options.buttonText}},{key:"getTooltipOptions",value:function(){var e=this.options.tooltip;return s.isFunction(e)?e():e}},{key:"onClick",value:function(e){if(e.preventDefault(),!(this.options.disabled||this.model.get(rB.Disabled)||this.model.get(rB.ShowSpinner)))return sp.Radio.channel(this.options.channelName).trigger(this.options.saveEvent),!1}},{key:"toggleSpinner",value:function(){this.model.get("showSpinner")?this.hideSpinner():this.showSpinner()}},{key:"showSpinner",value:function(){this.model.set("showSpinner",!0)}},{key:"hideSpinner",value:function(){this.model.set("showSpinner",!1)}},{key:"enableButton",value:function(){this.model.set("disabled",!1)}},{key:"disableButton",value:function(){this.model.set("disabled",!0)}},{key:"manageDimensions",value:function(){this.isAttached()&&(this.model.get("showSpinner")?this.applyDimensions():this.storeDimensions())}},{key:"storeDimensions",value:function(){this.options.detectWidth&&this.model.set("buttonWidth",this.$el.outerWidth()),this.options.detectHeight&&this.model.set("buttonHeight",this.$el.outerHeight())}},{key:"applyDimensions",value:function(){this.options.detectWidth&&this.model.get("buttonWidth")&&this.$el.css({width:this.model.get("buttonWidth")+"px"}),this.options.detectHeight&&this.model.get("buttonHeight")&&this.$el.css({height:this.model.get("buttonHeight")+"px"})}},{key:"renderTooltip",value:function(){var e=this.getTooltipOptions();s.isUndefined(e)||s.isEmpty(e)?this.$el.tooltip("dispose"):this.$el.tooltip(e)}},{key:"viewOptions",value:function(){var e={buttonText:this.getButtonText()};if(!this.model.get("showSpinner"))return e;var t=this.options.spinnerOptions||{};return s.extend(e,{spinnerEl:td.getSpinner(t)})}},{key:"onAttach",value:function(){this.manageDimensions()}},{key:"onRender",value:function(){this.resetClassName(),this.manageDimensions(),this.renderTooltip()}},{key:"onBeforeDestroy",value:function(){this.getTooltipOptions()&&this.$el.tooltip("dispose")}},{key:"name",get:function(){return"SpinnerButtonComponent"}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){return{type:this.options.buttonType}}},{key:"template",get:function(){return ZF.a}},{key:"className",get:function(){var e="btn",t=this.options.extraButtonClass||"";return this.model&&this.model.get("disabled")&&(e="".concat(e," disabled")),"".concat(e," ").concat(t)}},{key:"defaults",get:function(){return{showSpinner:!1,detectWidth:!0,detectHeight:!0,buttonText:"Submit",buttonType:"button",preventMultiClick:!0,spinnerOptions:{size:qh.Small,extraClasses:"mx-auto"}}}}])&&XF(n.prototype,o),r&&XF(n,r),t}(u.Core.Component),aB=n(288),lB=n.n(aB),sB=n(39),uB=n.n(sB);function cB(e){return(cB="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 pB(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 fB(e,t){return!t||"object"!==cB(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 hB(e){return(hB=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dB(e,t){return(dB=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yB=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),fB(this,hB(t).call(this,e))}var n,o,r;return 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&&dB(e,t)}(t,e),n=t,(o=[{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(),sp.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 o=sh.getSelected(this.options.folderTreeKey,this.collection),r=o?o.get("name"):u.LanguageService.getPhrase(this.lang,"button");this.getUI("button").text(r)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new Gv({styles:uB.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:uB.a.list,extraClasses:uB.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:uB.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 lB.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"}}}])&&pB(n.prototype,o),r&&pB(n,r),t}(u.Core.Component);function gB(e){return(gB="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 mB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bB(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 vB(e,t){return!t||"object"!==gB(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 wB(e){return(wB=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function SB(e,t){return(SB=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kB=function(e){function t(){return mB(this,t),vB(this,wB(t).apply(this,arguments))}var n,o,r;return 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&&SB(e,t)}(t,e),n=t,(o=[{key:"defaults",value:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},rB.Disabled,!0)}}])&&bB(n.prototype,o),r&&bB(n,r),t}(u.Core.Model);function OB(e){return(OB="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 CB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EB(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!t||"object"!==OB(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 TB(e){return(TB=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function PB(e,t){return(PB=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xB=function(e){function t(){return CB(this,t),_B(this,TB(t).apply(this,arguments))}var n,o,r;return 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&&PB(e,t)}(t,e),n=t,(o=[{key:"getConfig",value:function(e){return this.get({resource:"/api/config",formatData:function(e){return new $s(e)},eventPrefix:"config",bootstrapName:En.CONFIG,callback:e,expiryTime:Pn.STANDARD})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:En.VERSION,callback:e,expiryTime:Pn.STANDARD})}},{key:"getCustomerYearGroups",value:function(e){var t=[m.Year1,m.Year2,m.Year3,m.Year4,m.Year5,m.Year6,m.Year7,m.Year8,m.Year9,m.Year10,m.Year11,m.Year12];switch(e){case i.AU:return[m.Kindergarten].concat(t);case i.UK:case i.NZ:return[].concat(t,[m.Year13]);default:return t}}},{key:"name",get:function(){return un.Config}},{key:"channelName",get:function(){return f.CONFIG}}])&&EB(n.prototype,o),r&&EB(n,r),t}(u.BaseDataService),IB={config:{dataServiceName:f.CONFIG,eventName:"config:sync",getData:function(e){return e.getConfig()},getInstance:function(e){return u.InstanceManager.getInstance(un.Config,e)},beforeOnBeforeRender:!0}};function LB(e){return(LB="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 jB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RB(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 DB(e,t){return!t||"object"!==LB(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 NB(e){return(NB=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function AB(e,t){return(AB=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var MB=function(e){function t(){return jB(this,t),DB(this,NB(t).apply(this,arguments))}var n,o,r;return 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&&AB(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(u.CommonChannels.SHELL,u.Core.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.text;this.lockOptions=e,yf.channel(u.CommonChannels.SHELL).trigger(u.Core.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(e){return e.returnValue=t,t}))}},{key:"unlock",value:function(){this.lockOptions=null,yf.channel(u.CommonChannels.SHELL).trigger(u.Core.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(e){var t=this;new th(this.getNavLockOptions()).render().done((function(){yf.channel(u.CommonChannels.SHELL).trigger(u.Core.EventNames.NAV_UNLOCKED_BY_USER),t.unlock(),u.Core.AppLinkHelper.trigger(e)}))}},{key:"getNavLockOptions",value:function(){var e=this.lockOptions,t=e.title,n=e.text;return{title:t||u.LanguageService.getPhrase(this.lang,"discardChanges"),text:n||u.LanguageService.getPhrase(this.lang,"discardCheck"),buttons:[{text:u.LanguageService.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:u.LanguageService.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}}},{key:"name",get:function(){return sn.NavLock}},{key:"lang",get:function(){return"shared.services"}}])&&RB(n.prototype,o),r&&RB(n,r),t}(u.Core.Service),VB=new MB;function UB(e){return(UB="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 FB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BB(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 HB(e,t){return!t||"object"!==UB(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 WB(e){return(WB=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zB(e,t){return(zB=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qB=function(e){function t(){return FB(this,t),HB(this,WB(t).apply(this,arguments))}var n,o,r;return 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&&zB(e,t)}(t,e),n=t,(o=[{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",formatData:function(e){return new Gs(e,{parse:!0})},eventPrefix:F.CURRENT_USER,bootstrapName:En.CURRENT_USER,expiryTime:Pn.STANDARD,callback:e,errorCallback:t})}},{key:"name",get:function(){return un.User}},{key:"channelName",get:function(){return f.USER}}])&&BB(n.prototype,o),r&&BB(n,r),t}(u.BaseDataService),GB={currentUser:{dataServiceName:un.User,eventName:"".concat(F.CURRENT_USER,":sync"),getData:function(e){return e.getCurrentUser()},getInstance:function(e){return u.InstanceManager.getInstance(un.User,e)},beforeOnBeforeRender:!0}};function YB(e){return(YB="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 JB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KB(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 QB(e,t){return!t||"object"!==YB(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 ZB(e){return(ZB=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $B(e,t){return($B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var XB=new(function(e){function t(){return JB(this,t),QB(this,ZB(t).apply(this,arguments))}var n,o,i;return 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)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(u.CommonChannels.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(e,t){var n=this,o=this.getPartialLoadingRegions(e);s.each(s.keys(o),(function(r){if(!t||r===t){var i=o[r],a=n.getComponent(i.partialLoading);e.showChildView(r,a)}}))}},{key:"getComponent",value:function(e){var t="number"==typeof e?rn[e]:e;return"number"!=typeof e&&(e=r.Unselected),t||u.Core.ErrorHelper.throw(new u.DevError("Must define PartialLoading type: ".concat(r[e],"."))),t.component||u.Core.ErrorHelper.throw(new u.DevError("Must select a component for PartialLoading type: ".concat(r[e],"."))),t.options||u.Core.ErrorHelper.throw(new u.DevError("Must provide options for PartialLoading type: ".concat(r[e],"."))),new(this.getCtor(t.component))(t.options)}},{key:"getCtor",value:function(e){switch(e){case p.PartialLoadingComponentTypes.ComponentCollection:return mU;case p.PartialLoadingComponentTypes.Component:default:return pU}}},{key:"getPartialLoadingRegions",value:function(e){return s.pick(e.regions,(function(e){return s.has(e,"partialLoading")}))}},{key:"getCollection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,t=new Array(e);return new u.Core.Collection(t)}},{key:"name",get:function(){return sn.PartialLoading}}])&&KB(n.prototype,o),i&&KB(n,i),t}(u.Core.Service));function eH(e){return(eH="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 tH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nH(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 oH(e,t){return!t||"object"!==eH(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 rH(e){return(rH=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iH(e,t){return(iH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var aH=function(e,t){var n="/api/domain/v3/settings/".concat(e);return b[t]&&(n+="?kind=".concat(t)),n},lH=function(e){return"/api/domain/v3/settings/".concat(e)},sH=function(e){function t(){return tH(this,t),oH(this,rH(t).apply(this,arguments))}var n,o,r;return 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&&iH(e,t)}(t,e),n=t,(o=[{key:"getSetting",value:function(e,t,n){var o=s.isFunction(n)?function(e){var o=e.findWhere({name:t});s.isFunction(n)&&n(o)}:null,r=this.getSettings(e,null,o);return r?r.findWhere({name:t}):null}},{key:"getSettings",value:function(e,t,n){return this.get({callback:n,resource:aH(e,t),formatData:function(e){return new zi(e)},eventPrefix:F.SETTINGS,expiryTime:Pn.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(e,t,n,o){return this.update({callback:o,resource:lH(e),eventPrefix:"".concat(F.UPDATE_SETTING,":").concat(v.LibraryReview),invalidationKeys:[F.SETTINGS],data:t,successHandler:n?this.alertService.success(n):null})}},{key:"name",get:function(){return un.Settings}},{key:"channelName",get:function(){return f.SETTINGS}}])&&nH(n.prototype,o),r&&nH(n,r),t}(u.BaseDataService);function uH(e){return(uH="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 cH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pH(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 fH(e,t){return!t||"object"!==uH(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 hH(e){return(hH=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dH(e,t){return(dH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yH=function(e){function t(){return cH(this,t),fH(this,hH(t).apply(this,arguments))}var n,o,r;return 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&&dH(e,t)}(t,e),n=t,(o=[{key:"getCustomer",value:function(e,t){return this.get({resource:"/api/domain/v2/objects/".concat(e),formatData:function(e){return new ku(e)},eventPrefix:F.CUSTOMER,expiryTime:Pn.STANDARD,callback:t})}},{key:"name",get:function(){return un.Customer}},{key:"channelName",get:function(){return f.CUSTOMER}}])&&pH(n.prototype,o),r&&pH(n,r),t}(u.BaseDataService);function gH(e){return(gH="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 mH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bH(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 vH(e,t){return!t||"object"!==gH(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 wH(e){return(wH=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function SH(e,t){return(SH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kH,OH=function(e){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(e.join("&videoId="))},CH=function(e){return"".concat("/api/localcache","/v1/customers/").concat(e,"/devices")},EH=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(e){e[e.MasterObject=0]="MasterObject",e[e.TrackingCode=1]="TrackingCode"}(kH||(kH={}));var _H=function(e){function t(){return mH(this,t),vH(this,wH(t).apply(this,arguments))}var n,o,r;return 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&&SH(e,t)}(t,e),n=t,(o=[{key:"getDownloadsForVideos",value:function(e,t){return this.get({resource:OH(e),formatData:function(e){return new ra(e)},eventPrefix:"".concat(F.LOCAL_CACHE_DOWNLOADS,":").concat(e.join(",")),expiryTime:Pn.STANDARD,callback:t})}},{key:"getDevices",value:function(e,t){return this.get({resource:CH(e),formatData:function(e){return new Zi(e)},eventPrefix:F.LOCAL_CACHE_DEVICES,expiryTime:Pn.STANDARD,callback:t})}},{key:"downloadVideoToLocalCache",value:function(e,t,n){this.create({resource:EH(),data:this.getDownloadVideoData(e,t),eventPrefix:F.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[F.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(e,t){return{deviceId:e,videoId:t,videoIdType:kH.MasterObject,expiresOn:rh().add(14,"days")}}},{key:"name",get:function(){return un.LocalCache}},{key:"channelName",get:function(){return f.LOCAL_CACHE}},{key:"lang",get:function(){return"shared.services"}}])&&bH(n.prototype,o),r&&bH(n,r),t}(u.BaseDataService);function TH(e){return(TH="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 PH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xH(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 IH(e,t){return!t||"object"!==TH(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 LH(e){return(LH=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jH(e,t){return(jH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var RH=function(e){var t=["type=".concat(I.RestrictedByAdmin),"objectTypeId=".concat(k.Video),"with=".concat(A.VIDEO_COLLECTION)];return e&&t.push("page=".concat(e)),"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},DH=function(e){var t=["type=".concat(I.RestrictedByAdmin),"objectTypeId=".concat(k.Video)],n="";return e&&e.forEach((function(e){return n+="&objectId=".concat(e)})),"/api/domain/v1/restrictedobjects?".concat(t.join("&")).concat(n)},NH=function(){return"/api/domain/v1/restrictedobjects"},AH=function(e){return"/api/domain/v1/restrictedobjects?objectId=".concat(e,"&objectTypeId=").concat(k.Video)},MH=function(e){function t(){return PH(this,t),IH(this,LH(t).apply(this,arguments))}var n,o,r;return 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&&jH(e,t)}(t,e),n=t,(o=[{key:"getPaginationCursors",value:function(e){return this.getCursors("".concat(F.RESTRICTED_VIDEOS,":").concat(e))}},{key:"getRestrictedVideos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",t=arguments.length>1?arguments[1]:void 0;return this.get({callback:t,resource:RH(e),formatData:function(e){return new xr(e,{parse:!0})},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.RESTRICTED_VIDEOS,":").concat(e)})}},{key:"getVideoRestrictions",value:function(e,t,n){var o=t?"".concat(F.RESTRICTED_OBJECTS,":").concat(t.toString()):"".concat(F.RESTRICTED_OBJECTS,":").concat(e.join(","));return this.get({callback:n,resource:DH(e),formatData:function(e){return new Mi(e)},expiryTime:Pn.STANDARD,eventPrefix:o})}},{key:"updateVideoRestriction",value:function(e,t,n,o,r){var i={groupId:t,objectId:e,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:o,restrictedByCustomerId:n};this.create({callback:r,resource:NH(),eventPrefix:F.UPDATE_VIDEO_RESTRICTION,data:i,invalidationKeys:[F.RESTRICTED_VIDEOS,F.VIDEOS_TO_REVIEW,F.RESTRICTED_OBJECTS],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(e,t){this.delete({callback:t,resource:AH(e),eventPrefix:F.UPDATE_VIDEO_RESTRICTION,invalidationKeys:["".concat(F.VIDEOS,":restricted"),F.RESTRICTED_VIDEOS,F.RESTRICTED_OBJECTS,F.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"restrictionRemoved"))})}},{key:"name",get:function(){return un.RestrictedVideo}},{key:"channelName",get:function(){return f.RESTRICTED_VIDEO}},{key:"lang",get:function(){return"shared.services"}}])&&xH(n.prototype,o),r&&xH(n,r),t}(u.BaseDataService);function VH(e){return(VH="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 UH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FH(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 BH(e,t){return!t||"object"!==VH(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 HH(e){return(HH=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function WH(e,t){return(WH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var zH=function(e){function t(){return UH(this,t),BH(this,HH(t).apply(this,arguments))}var n,o,r;return 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&&WH(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var e=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==e.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==e.webkitHidden&&(this.hiddenPropertyName="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}},{key:"bindEventListeners",value:function(){void 0!==document.addEventListener&&void 0!==this.hiddenPropertyName&&(this.onVisibilityChange=s.bind(this.onVisibilityChange,this),document.addEventListener(this.visibilityChangeEventName,this.onVisibilityChange,!1))}},{key:"onVisibilityChange",value:function(){yf.channel(this.channelName).trigger("visbility:change",document[this.hiddenPropertyName])}},{key:"addVisibilityChangeListener",value:function(e){this.listenTo(this.channelName,"visbility:change",e)}},{key:"removeVisibilityChangeListener",value:function(e){this.stopListening(yf.channel(this.channelName),"visbility:change",e)}},{key:"onDestroy",value:function(){document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChange)}},{key:"name",get:function(){return sn.PageVisibility}},{key:"channelName",get:function(){return h.PAGE_VISIBILITY}}])&&FH(n.prototype,o),r&&FH(n,r),t}(u.Core.Service);function qH(e){return(qH="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 GH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YH(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 JH(e,t){return!t||"object"!==qH(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 KH(e){return(KH=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function QH(e,t){return(QH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ZH=" - ClickView",$H=new(function(e){function t(){return GH(this,t),JH(this,KH(t).apply(this,arguments))}var n,o,r;return 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&&QH(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(u.CommonChannels.SHELL,"set:page:title",this.setPageTitle)}},{key:"setPageTitle",value:function(e){e&&u.Core.LocationUtils.SetPageTitle(this.trimTitle(e))}},{key:"trimTitle",value:function(e){return e?e.length+ZH.length<=60?e+ZH:e.substring(0,57)+"..."+ZH:""}},{key:"name",get:function(){return sn.PageTitle}},{key:"channelName",get:function(){return h.PAGE_TITLE}}])&&YH(n.prototype,o),r&&YH(n,r),t}(u.Core.Service));function XH(e){return(XH="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 eW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tW(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 nW(e,t){return!t||"object"!==XH(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 oW(e){return(oW=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rW(e,t){return(rW=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var iW=function(e){function t(){return eW(this,t),nW(this,oW(t).apply(this,arguments))}var n,o,r;return 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&&rW(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.restrictedVideoDataService=u.InstanceManager.getInstance(un.RestrictedVideo,this)}},{key:"mixinVideoCollectionData",value:function(e,t,n){this.getAndMixinVideoCollectionRestrictions(e,t,n)}},{key:"mixinVideoData",value:function(e,t){this.getAndMixinVideoRestriction(e,t)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(e,t,n){var o=this;if(e&&e.length){var r=e.map((function(e){return e.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(r,t,(function(t){e.forEach((function(e){return o.mixinVideoRestriction(e,t)})),s.isFunction(n)&&n(e)}))}else s.isFunction(n)&&n(e)}},{key:"getAndMixinVideoRestriction",value:function(e,t){var n=this;this.restrictedVideoDataService.getVideoRestrictions([e.id],null,(function(o){n.mixinVideoRestriction(e,o),s.isFunction(t)&&t(e)}))}},{key:"mixinLocalCacheDownloads",value:function(e,t){e.unset("localCacheDownloads"),t&&t.findWhere({objectId:e.get("id").toString()})&&e.set("localCacheDownloads",t)}},{key:"mixinVideoRestriction",value:function(e,t){if(e.unset("restrictions"),t){var n=t.findWhere({objectId:e.get("id")});n&&e.set("restrictions",n.get("restrictedObjects"))}}},{key:"name",get:function(){return sn.VideoMixin}},{key:"channelName",get:function(){return h.VIDEO_MIXIN}}])&&tW(n.prototype,o),r&&tW(n,r),t}(u.Core.Service);function aW(e){return(aW="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 lW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sW(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 uW(e,t){return!t||"object"!==aW(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 cW(e){return(cW=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pW(e,t){return(pW=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fW=function(e){function t(){return lW(this,t),uW(this,cW(t).apply(this,arguments))}var n,o,r;return 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&&pW(e,t)}(t,e),n=t,(o=[{key:"createDownloadToken",value:function(e,t){this.create({data:{objectId:e},resource:"/api/downloadproxy/api/tokens",formatData:function(e){return new u.Core.Model(e)},eventPrefix:"token:".concat(e),expiryTime:Pn.STANDARD,errorHandler:this.alertService.error(u.LanguageService.getPhrase(this.lang,"linkRetrievalError")),callback:t})}},{key:"name",get:function(){return un.DownloadProxy}},{key:"channelName",get:function(){return f.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}}])&&sW(n.prototype,o),r&&sW(n,r),t}(u.BaseDataService);function hW(e){return(hW="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 dW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yW(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 gW(e,t){return!t||"object"!==hW(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 mW(e){return(mW=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bW(e,t){return(bW=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vW=new(function(e){function t(){return dW(this,t),gW(this,mW(t).apply(this,arguments))}var n,o,r;return 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&&bW(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(u.CommonChannels.SHELL,u.Core.EventNames.ROUTING_END,this.updateIntercom)}},{key:"updateIntercom",value:function(){window.Intercom("update")}},{key:"name",get:function(){return sn.Intercom}}])&&yW(n.prototype,o),r&&yW(n,r),t}(u.Core.Service));function wW(e){return(wW="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 SW(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 kW(e,t){return!t||"object"!==wW(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 OW(e){return(OW=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function CW(e,t){return(CW=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var EW,_W=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kW(this,OW(t).call(this,e))}var n,o,r;return 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&&CW(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.downloadProxyDataService=u.InstanceManager.getInstance(un.DownloadProxy,this)}},{key:"cancelScrollTop",value:function(){u.InstanceManager.getInstance(u.CommonServices.SCROLL).cancelScrollTop()}},{key:"onBeforeRender",value:function(){var e=this;this.cancelScrollTop(),this.downloadProxyDataService.createDownloadToken(this.options.videoId,(function(t){var n=Tw(e.config.get("downloadProxy"),t.get("token"));e.$el.attr("src",n)}))}},{key:"name",get:function(){return"DownloadVideoView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"iframe"}},{key:"template",get:function(){return"<div></div>"}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&SW(n.prototype,o),r&&SW(n,r),t}(u.Core.View),TW=n(289),PW=n.n(TW),xW=n(13),IW=n.n(xW);function LW(e){return(LW="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 jW(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 RW(e,t){return!t||"object"!==LW(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 DW(e){return(DW=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function NW(e,t){return(NW=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e.Students="Students",e.Groups="Certain year groups",e.All="Students and staff"}(EW||(EW={}));var AW=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),RW(this,DW(t).call(this,e))}var n,o,r;return 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&&NW(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.restriction=new Us({groupId:m.Students}),this.selected=EW.Students,this.bindListeners(),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.restrictedVideoDataService=u.InstanceManager.getInstance(un.RestrictedVideo,this),this.videoMixinService=u.InstanceManager.getInstance(sn.VideoMixin,this)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"dropdown:selected",this.onOptionSelected),this.listenTo(this.restriction,"change:groupId",this.onGroupChanged),this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.RESTRICTED_VIDEO,"".concat(F.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"events",value:function(){return{submit:"onSubmit","click .allow-full-access":"onAllowFullAccess"}}},{key:"regions",value:function(){return{dropdown:".dropdown-region",accessView:{replaceElement:!0,el:".access-view-region"}}}},{key:"getAllowFullAccessBtnClassName",value:function(){var e="btn btn-link cursor-pointer mr-2 allow-full-access";return this.dataFetched()&&!this.spinnerModel.get(rB.ShowSpinner)||(e+=" disabled"),e}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.dataFetched()&&this.spinnerModel.get(rB.Disabled))return{title:u.LanguageService.getPhrase(this.lang,"selectYear")}}},{key:"onOptionSelected",value:function(e){this.refreshRestriction();var t=this.getAccessView(e.get("name"));this.showChildView("accessView",new t({model:this.restriction,currentUser:this.currentUser})),this.renderDropdown()}},{key:"onGroupChanged",value:function(e){this.isRendered()&&this.spinnerModel.set(rB.Disabled,s.isUndefined(e.get("groupId")))}},{key:"getAccessView",value:function(e){switch(this.selected=e,e){case EW.Students:return this.restriction.set("groupId",m.Students),Vz;case EW.Groups:return Zz;case EW.All:return this.restriction.set("groupId",m.All),Vz}}},{key:"getSelection",value:function(e){switch(e){case m.All:case m.Staff:return EW.All;case m.Students:return EW.Students;default:return EW.Groups}}},{key:"refreshRestriction",value:function(){if(this.restrictedObjectCollection&&this.restrictedObjectCollection.length&&this.model){this.videoMixinService.mixinVideoRestriction(this.model,this.restrictedObjectCollection);var e=this.model.restrictions.last();e&&s.isNumber(e.get("groupId"))&&(this.restriction.set("groupId",e.get("groupId")),this.selected=this.getSelection(e.get("groupId")))}}},{key:"onSubmit",value:function(e){var t=this;if(e&&e.preventDefault(),s.isUndefined(this.restriction.get("groupId")))return!1;sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.restrictedVideoDataService.updateVideoRestriction(this.options.videoId,this.restriction.get("groupId"),this.currentUser.get("customerId"),this.currentUser.get("id"),(function(){t.triggerMethod("hide"),sp.Radio.channel(f.RESTRICTED_VIDEO).trigger("cache:cleared")})),this.logAction(this.restriction.get("groupId"))}},{key:"onAllowFullAccess",value:function(){this.dataFetched()&&!this.spinnerModel.get(rB.ShowSpinner)&&(this.spinnerModel.set(rB.Disabled,!0),this.restriction.set("groupId",m.All),this.restrictedVideoDataService.deleteVideoRestriction(this.options.videoId,(function(){sp.Radio.channel(f.RESTRICTED_VIDEO).trigger("cache:cleared")})),this.triggerMethod("hide"),this.logAction())}},{key:"logAction",value:function(e){var t={location:jb.LocationContext.Popup,actionType:jb.UserAction.SetAccess,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Complete},n={id:this.model.get("id"),restriction:!!s.isNumber(e)&&m[e]};jb.AnalyticsHelper.logUserAction(n,t)}},{key:"dataFetched",value:function(){return!!this.model&&!!this.restrictedObjectCollection}},{key:"renderDropdown",value:function(){var e=this;this.collection=new u.Core.Collection([{name:EW.Students},{name:EW.Groups},{name:EW.All}]),this.collection.each((function(t){return t.set("selected",t.get("name")===e.selected)})),this.showChildView("dropdown",new DF({titleProperty:"name",eventName:"dropdown:selected",buttonId:"select-btn",collection:this.collection,channelName:this.channelName,buttonClass:IW.a.selectButton,displayOptions:{extraClasses:"w-100"},analyticsHelper:jb.AnalyticsHelper}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId),this.restrictedObjectCollection=this.restrictedVideoDataService.getVideoRestrictions([this.options.videoId]),this.model&&this.restrictedObjectCollection&&this.refreshRestriction(),this.dataFetched()&&this.spinnerModel.set(rB.Disabled,!1)}},{key:"viewOptions",value:function(){var e=this.config?"".concat(this.config.get("supportSiteUrl")).concat(cn.VIDEO_ACCESS):"";return{styles:IW.a,supportUrl:e,svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Info),dataFetched:this.dataFetched(),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),restrictFromLabel:u.LanguageService.getPhrase(this.lang,"popupSubheading")}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderDropdown(),this.onOptionSelected(new u.Core.Model({name:this.selected})))}},{key:"name",get:function(){return"RestrictAccessView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"template",get:function(){return PW.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"popupHeading"),modalClasses:IW.a.modal,hideCloseButton:!0,size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new kB,buttonText:u.LanguageService.getPhrase(this.lang,"updateAccess"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}},buttons:[{text:u.LanguageService.getPhrase(this.lang,"allowFullAccess"),getClassName:function(){return e.getAllowFullAccessBtnClassName()}}]},{behaviorClass:p.TooltipBehavior,selector:".".concat(IW.a.svgContainer),title:u.LanguageService.getPhrase(this.lang,"findOutMore")}]}},{key:"elements",get:function(){return{submit:"submit"}}},{key:"requiredResources",get:function(){return{config:IB.config,currentUser:GB.currentUser}}}])&&jW(n.prototype,o),r&&jW(n,r),t}(u.Core.View),MW=n(290),VW=n(50),UW=n.n(VW),FW=n(291),BW=n.n(FW),HW=n(292),WW=n.n(HW),zW=n(293),qW=n.n(zW);function GW(e){return(GW="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 YW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JW(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 KW(e,t,n){return t&&JW(e.prototype,t),n&&JW(e,n),e}function QW(e,t){return!t||"object"!==GW(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 ZW(e){return(ZW=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $W(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&&XW(e,t)}function XW(e,t){return(XW=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ez,tz,nz,oz,rz,iz,az,lz,sz=function(e){function t(e){return YW(this,t),QW(this,ZW(t).call(this,e))}return $W(t,e),KW(t,[{key:"viewOptions",value:function(){return{footerTextClass:UW.a.footerText,privacyDescription:this.options.privacyDescription}}},{key:"name",get:function(){return"ShareFooterComponent"}},{key:"className",get:function(){return"modal-footer bg-light rounded-bottom"}},{key:"template",get:function(){return WW.a}}]),t}(u.Core.Component),uz=function(e){function t(e){var n;return YW(this,t),(n=QW(this,ZW(t).call(this,e))).clipboards=[],n}return $W(t,e),KW(t,[{key:"initialize",value:function(){this.setUpViewModel(),this.bindListeners(),this.videoDataService=u.InstanceManager.getInstance(un.Video,this)}},{key:"events",value:function(){return{"click @ui.copy":"onClickCopy","click @ui.embedToggle":"onClickEmbed"}}},{key:"regions",value:function(){return{container:{el:".".concat(UW.a.container),replaceElement:!1},footer:{el:".modal-footer",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:autoplay change:selectedVideoSize",this.render),this.listenTo(this.viewModel,"change:public",this.onTogglePublic),this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"setUpViewModel",value:function(){this.viewModel=u.ViewModelService.get("share:".concat(this.options.videoId),this.options)}},{key:"onTogglePublic",value:function(){var e=this,t=this.viewModel.get("public")?w.Public:w.SchoolOnly;this.videoDataService.getSharedResource(this.videoId,t,(function(n){n.set("privacyId",t),e.onSharedResourceSync(n)}))}},{key:"updateViewModel",value:function(){this.viewModel.set("public",this.model.get("privacyId")===w.Public,{silent:!0})}},{key:"onSharedResourceSync",value:function(e){this.model=e,this.updateViewModel(),this.render()}},{key:"fetchData",value:function(){this.video=this.videoDataService.getVideo(this.videoId),this.model||this.videoDataService.getSharedResource(this.videoId,null,s.bind(this.onSharedResourceSync,this))}},{key:"buildEmbedString",value:function(){var e=s.extend({},this.model.toJSON(),this.viewModel.toJSON()),t=this.options.videoSizes[e.selectedVideoSize],n="100%"===t.height&&"100%"===t.width;e.videoSize=t,e.baseUrl=u.UrlHelper.safeUrlConcat(this.config.get("onlineUrl"),"/share/embed"),e.isResponsive=n;var o=qW()(e);return n?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(o,"</div>"):o}},{key:"onClickEmbed",value:function(){this.viewModel.set("showEmbed",!0),this.render()}},{key:"onClickCopy",value:function(e){this.$(e.currentTarget).text(u.LanguageService.getPhrase(this.lang,"copied"))}},{key:"getPrivacyDescription",value:function(e){switch(e){case w[w.Private]:return u.LanguageService.getPhrase(this.lang,"private");case w[w.SchoolOnly]:return u.LanguageService.getPhrase(this.lang,"schoolOnly");case w[w.Public]:return u.LanguageService.getPhrase(this.lang,"public");default:return""}}},{key:"initClipboards",value:function(){var e=this;this.destroyClipboards(),this.getUI("copy").each((function(t,n){e.clipboards.push(new MW(n))}))}},{key:"destroyClipboards",value:function(){s.each(this.clipboards,(function(e){return e.destroy()})),this.clipboards=[]}},{key:"getCannotPublicShareText",value:function(){return this.video?Kh.isExchangeVideo(this.video)?u.LanguageService.getPhrase(this.lang,"cannotShareExchange"):u.LanguageService.getPhrase(this.lang,"cannotShareClickView"):""}},{key:"onBeforeDestroy",value:function(){this.destroyClipboards()}},{key:"renderFooter",value:function(){var e=this.model&&this.getPrivacyDescription(this.model.get("privacy"));this.showChildView("footer",new sz({privacyDescription:e}))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:UW.a},this.viewModel.toJSON()),{embedString:this.model&&this.buildEmbedString(),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),showLoader:!this.model||!this.video,canPublicShare:this.video&&bh.canPublicShare(this.video),cannotPublicShareText:this.getCannotPublicShareText()})}},{key:"onBeforeRender",value:function(){this.fetchData()}},{key:"onRender",value:function(){this.initClipboards(),this.renderFooter()}},{key:"name",get:function(){return"ShareView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return BW.a}},{key:"lang",get:function(){return"shared.share"}},{key:"props",get:function(){return["videoId"]}},{key:"elements",get:function(){return{copy:".copy",embedToggle:".embed-toggle"}}},{key:"defaults",get:function(){return{autoplay:!1,selectedVideoSize:0,videoSizes:p.EmbedHelper.getEmbedResolutions()}}},{key:"behaviors",get:function(){return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"share"),hideCloseButton:!0},{behaviorClass:Pg,bindViewModel:!0}]}},{key:"bindings",get:function(){var e=this;return{"[name=autoplay]":"autoplay","[name=selectedVideoSize]":{observe:"selectedVideoSize",selectOptions:{collection:function(){return s.map(e.options.videoSizes,(function(e,t){return{label:e.label,value:t}}))}}},"[name=public]":"public"}}},{key:"requiredResources",get:function(){return{config:IB.config}}}]),t}(u.Core.View),cz=n(294),pz=n.n(cz),fz=n(295),hz=n.n(fz);!function(e){e.Title="title",e.Views="viewsLast3Years"}(ez||(ez={})),function(e){e[e.None=0]="None",e[e.NoPublisher=5]="NoPublisher",e[e.BackupToolProcessesing=1]="BackupToolProcessesing",e[e.BackupToolCompleteWithError=2]="BackupToolCompleteWithError",e[e.BackupToolComplete=3]="BackupToolComplete",e[e.BackupCompleteWithError=8]="BackupCompleteWithError",e[e.BackupComplete=9]="BackupComplete",e[e.PublishingLibrary=6]="PublishingLibrary",e[e.LibraryPublished=7]="LibraryPublished"}(tz||(tz={})),function(e){e[e.None=0]="None",e[e.Smart=1]="Smart",e[e.Scratch=2]="Scratch",e[e.Full=3]="Full"}(nz||(nz={})),function(e){e.MigratedHidden="migratedHidden"}(oz||(oz={})),function(e){e[e.Valid=1]="Valid",e[e.BinaryRemoved=2]="BinaryRemoved",e[e.CloudFileNotFound=8]="CloudFileNotFound",e[e.CloudEmptyChapter=32]="CloudEmptyChapter",e[e.MediaProbingFailure=128]="MediaProbingFailure",e[e.CloudLocalChecksumNotMatch=16384]="CloudLocalChecksumNotMatch",e[e.CloudLocalDurationNotMatch=32768]="CloudLocalDurationNotMatch",e[e.CloudLocalChapterCountNotMatch=65536]="CloudLocalChapterCountNotMatch",e[e.TrackingCodeNotFound=536870912]="TrackingCodeNotFound",e[e.Exception=134217728]="Exception",e[e.CloudDurationDirty=1073741824]="CloudDurationDirty",e[e.LocalFileNotFound=16]="LocalFileNotFound",e[e.DbEmptyChapter=64]="DbEmptyChapter",e[e.DbChapterChecksumNotFound=256]="DbChapterChecksumNotFound",e[e.DbChapterDurationNotFound=512]="DbChapterDurationNotFound",e[e.DbChapterFileSizeNotFound=1024]="DbChapterFileSizeNotFound",e[e.DbChapterChecksumNotMatch=2048]="DbChapterChecksumNotMatch",e[e.DbChapterDurationNotMatch=4096]="DbChapterDurationNotMatch",e[e.DbChapterFileSizeNotMatch=8192]="DbChapterFileSizeNotMatch",e[e.SubtitleUploadFailure=131072]="SubtitleUploadFailure",e[e.ResourceUploadFailure=262144]="ResourceUploadFailure",e[e.ResourceFileNotFound=524288]="ResourceFileNotFound",e[e.ResourceFileInvalid=1048576]="ResourceFileInvalid",e[e.DbResourceChecksumNotFound=2097152]="DbResourceChecksumNotFound",e[e.DbResourceExtensionNotFound=4194304]="DbResourceExtensionNotFound",e[e.DbResourceFileSizeNotFound=8388608]="DbResourceFileSizeNotFound",e[e.DbResourceChecksumNotMatch=16777216]="DbResourceChecksumNotMatch",e[e.DbResourceFileSizeNotMatch=33554432]="DbResourceFileSizeNotMatch",e[e.CoverImageUploadFailure=67108864]="CoverImageUploadFailure",e[e.BackupIgnored=268435456]="BackupIgnored"}(rz||(rz={})),function(e){e[e.Valid=1]="Valid",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(iz||(iz={})),function(e){e.Migrated="migrated",e.Remaining="remaining",e.Errored="errored",e.ContentMatched="content-matched"}(az||(az={})),function(e){e[e.SmartPhase1=1]="SmartPhase1",e[e.MigrateAllPhase1=2]="MigrateAllPhase1",e[e.Phase2=3]="Phase2",e[e.PostFinalisation=4]="PostFinalisation"}(lz||(lz={}));var dz={isPublishingLibraries:function(e){return yz(tz.PublishingLibrary,e)},librariesPublished:function(e){return yz(tz.LibraryPublished,e)},isInitialMigration:function(e){return gz(nz.None,e)&&!yz(tz.NoPublisher,e)},migrationInitialized:function(e){return!gz(nz.None,e)},backupProcessing:function(e){return yz(tz.BackupToolProcessesing,e)||yz(tz.BackupToolCompleteWithError,e)||yz(tz.BackupToolComplete,e)},backupCompleteWithoutError:function(e){return yz(tz.BackupComplete,e)},backupComplete:function(e){return yz(tz.BackupComplete,e)||yz(tz.BackupCompleteWithError,e)},backupCompleteWithError:function(e){return yz(tz.BackupCompleteWithError,e)},backupNotStarted:function(e){return yz(tz.None,e)},showPublisherArchive:function(e){return!dz.noPublisher(e)},noPublisher:function(e){return yz(tz.NoPublisher,e)},fullMigrationInitialized:function(e){return dz.migrationInitialized(e)&&e.get("migrationOption")===nz.Full},isCurrentlyMigratingAll:function(e){return e&&e.finalisationTask&&e.finalisationTask.get("type")===lz.MigrateAllPhase1}};function yz(e,t){return t&&t.get("cloudSyncStatus")===e}function gz(e,t){return t&&t.get("migrationOption")===e}var mz={warningPublisherArchive:n(296)};function bz(e){return(bz="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 vz(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 wz(e,t){return!t||"object"!==bz(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 Sz(e){return(Sz=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kz(e,t){return(kz=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Oz=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),wz(this,Sz(t).call(this,e))}var n,o,r;return 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&&kz(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.initializeDataServices(),this.bindListeners()}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0},migrationErrors:{el:".migration-error-region",replaceElement:!0}}}},{key:"initializeDataServices",value:function(){this.contentUpdatesDataService=u.InstanceManager.getInstance(un.ContentUpdates,this),this.settingsDataService=u.InstanceManager.getInstance(un.Settings,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.staffRequestDataService=u.InstanceManager.getInstance(un.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(f.SETTINGS,"".concat(F.SETTINGS,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(f.STAFF_REQUEST,"".concat(F.STAFF_REQUESTS,":sync"),this.render),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(f.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var e=this,t=[{name:u.LanguageService.getPhrase(this.lang,"libraryEditor"),application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME},{name:u.LanguageService.getPhrase(this.lang,"staffRequests"),application:y.STAFF_REQUESTS,action:M.StaffRequests.HOME,getCount:function(){return e.staffRequestCollection&&e.staffRequestCollection.length},requiredSetting:{name:v.StaffRequest,value:C.StaffRequest}},{name:u.LanguageService.getPhrase(this.lang,"contentUpdates"),application:y.CONTENT_UPDATES,action:M.ContentUpdates.AWAITING_REVIEW,getCount:function(){return e.contentUpdatesCollection&&e.contentUpdatesCollection.length}},{name:u.LanguageService.getPhrase(this.lang,"videoAccess"),application:y.VIDEO_ACCESS,action:M.VideoAccess.HOME}];this.collection=new u.Core.Collection(this.filterNavItems(t)),dz.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:u.LanguageService.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:y.MIGRATION_WIZARD,action:M.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?mz.warningPublisherArchive(u.LanguageService.getPhrase("migrationWizard.utils","errorsTitle")):p.SvgHelper.getSvg(p.cvSvgLibrary.PublisherArchive)}},{key:"filterNavItems",value:function(e){var t=this;return e.filter((function(e){if(!s.has(e,"requiredSetting"))return!0;var n=t.settings.findWhere({name:e.requiredSetting.name});return!!n&&n.get("value")===e.requiredSetting.value}))}},{key:"onBeforeRender",value:function(){return this.contentUpdatesCollection=this.contentUpdatesDataService.getVideosToReview(),this.staffRequestCollection=this.staffRequestDataService.getStaffRequests(),this.settings=this.settingsDataService.getSettings(this.currentUser.get("customerId")),this.migrationMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),!!this.settings&&!!this.migrationMetadata}},{key:"onRender",value:function(){this.initNavCollection(),this.showChildView("items",new Vp({collection:this.collection,selected:this.options.selected}))}},{key:"name",get:function(){return"TopNavigationView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white ".concat(hz.a.topNav," container")}},{key:"template",get:function(){return pz.a}},{key:"lang",get:function(){return"shared.topNavigation"}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&vz(n.prototype,o),r&&vz(n,r),t}(u.Core.View),Cz=n(297),Ez=n.n(Cz);function _z(e){return(_z="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 Tz(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 Pz(e,t){return!t||"object"!==_z(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 xz(e){return(xz=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Iz(e,t){return(Iz=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Lz=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pz(this,xz(t).call(this,e))}var n,o,r;return 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&&Iz(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.localCacheDataService=u.InstanceManager.getInstance(un.LocalCache,this),this.bindListeners()}},{key:"bindListeners",value:function(){var e=this;this.listenTo(f.USER,"".concat(F.CURRENT_USER,":sync"),this.render),this.listenTo(f.LOCAL_CACHE,"".concat(F.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(f.LOCAL_CACHE,"".concat(F.LOCAL_CACHE_DOWNLOADS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.LOCAL_CACHE,"".concat(F.ADD_VIDEO_TO_LOCAL_CACHE,":sync"),(function(){return e.triggerMethod("hide")})),this.listenTo(f.LOCAL_CACHE,"".concat(F.ADD_VIDEO_TO_LOCAL_CACHE,":error"),(function(){return e.triggerMethod("hide")}))}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.localCacheDownloads||!this.localCacheDownloads.length)return{model:this.spinnerModel,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"buttonText"),onClick:function(){return e.onClickAddToLocalCache()}}}},{key:"onClickAddToLocalCache",value:function(){this.spinnerModel.set(rB.ShowSpinner,!0),this.localCacheDataService.downloadVideoToLocalCache(this.model.get("deviceId"),this.options.videoId)}},{key:"onBeforeRender",value:function(){var e=this.localCacheDataService.getDevices(this.currentUser.get("customerId"));return this.localCacheDownloads=this.localCacheDataService.getDownloadsForVideos([this.options.videoId]),!(e&&this.localCacheDownloads&&(this.model=_h.getNewestDeviceUserCanManage(e,this.currentUser.get("customerId")),this.model?(this.spinnerModel.set(rB.Disabled,!1),0):(setTimeout((function(){return u.Core.ErrorHelper.throw(new vo)}),0),1)))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.localCacheDownloads,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),alreadyDownloaded:this.localCacheDownloads&&this.localCacheDownloads.length}}},{key:"name",get:function(){return"DownloadToLocalCacheView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.downloadToLocalCache"}},{key:"template",get:function(){return Ez.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return this.spinnerModel=new kB,[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"popupHeading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&Tz(n.prototype,o),r&&Tz(n,r),t}(u.Core.View);function jz(e){return(jz="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 Rz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dz(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 Nz(e,t){return!t||"object"!==jz(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 Az(e){return(Az=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mz(e,t){return(Mz=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Vz=function(e){function t(){return Rz(this,t),Nz(this,Az(t).apply(this,arguments))}var n,o,r;return 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&&Mz(e,t)}(t,e),n=t,(o=[{key:"getTemplateText",value:function(){return u.LanguageService.getPhrase(this.lang,"groupNoAccess",{groupName:ih.mapYearGroupToName(this.model.get("groupId"))})}},{key:"name",get:function(){return"RestrictAccessComponent"}},{key:"template",get:function(){return"<p>".concat(this.getTemplateText(),"</p>")}},{key:"lang",get:function(){return"shared.restrictAccess"}}])&&Dz(n.prototype,o),r&&Dz(n,r),t}(u.Core.Component),Uz=n(298),Fz=n.n(Uz);function Bz(e){return(Bz="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 Hz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wz(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 zz(e,t,n){return t&&Wz(e.prototype,t),n&&Wz(e,n),e}function qz(e,t){return!t||"object"!==Bz(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 Gz(e){return(Gz=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yz(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&&Jz(e,t)}function Jz(e,t){return(Jz=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Kz=function(e){function t(){return Hz(this,t),qz(this,Gz(t).apply(this,arguments))}return Yz(t,e),zz(t,[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){sp.Radio.channel(this.options.channelName).trigger("group:selected",this.model)}},{key:"name",get:function(){return"RestrictAccessYearGroupItemView"}},{key:"className",get:function(){var e="btn text-center p-0 pb-1 pt-1 ".concat(IW.a.groupButton);return this.model.get("selected")&&(e+=" ".concat(IW.a.groupButtonSelected)),e}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){var e=100/this.model.collection.length;return{type:"button",style:"width: ".concat(e,"%")}}},{key:"template",get:function(){var e=this.model.get("year");return"<span>".concat(e,"</span>")}}]),t}(u.Core.Component),Qz=function(e){function t(){return Hz(this,t),qz(this,Gz(t).apply(this,arguments))}return Yz(t,e),zz(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"group:selected",this.onYearGroupSelected)}},{key:"onYearGroupSelected",value:function(e){this.collection.each((function(t){return t.set("selected",t.get("groupId")<=e.get("groupId"))})),this.model.set("groupId",e.get("groupId")),this.model.set("yearGroup",e.get("groupId")),this.render()}},{key:"onBeforeRender",value:function(){var e=this.model.get("yearGroup")||this.model.get("groupId");e&&(this.collection.each((function(t){return t.set("selected",t.get("groupId")<=e)})),this.model.set("groupId",e))}},{key:"name",get:function(){return"RestrictAccessYearGroupComponentCollection"}},{key:"className",get:function(){return"btn-group w-100 ".concat(IW.a.groupButtons)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"childView",get:function(){return Kz}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}]),t}(u.Core.CollectionView),Zz=function(e){function t(){return Hz(this,t),qz(this,Gz(t).apply(this,arguments))}return Yz(t,e),zz(t,[{key:"initialize",value:function(){this.configDataService=u.InstanceManager.getInstance(un.Config,this)}},{key:"regions",value:function(){return{yearGroupList:{replaceElement:!0,el:".year-group-region"}}}},{key:"viewOptions",value:function(){return{styles:IW.a}}},{key:"onBeforeRender",value:function(){var e=this;this.yearGroups||this.getYearGroups(),s.some(this.yearGroups,(function(t){return t.groupId===e.model.get("groupId")}))||this.model.set("groupId",void 0)}},{key:"onRender",value:function(){this.stickit(),this.showChildView("yearGroupList",new Qz({model:this.model,collection:new u.Core.Collection(this.yearGroups)}))}},{key:"onBeforeDestroy",value:function(){this.unstickit()}},{key:"getYearGroups",value:function(){var e=this,t=this.configDataService.getCustomerYearGroups(this.currentUser.get("countryCode"));this.yearGroups=[],s.keys(m).forEach((function(n){var o=parseInt(n,10);if(!s.isNaN(o)&&s.contains(t,o)){var r=o===m.Kindergarten?"K":m[o].replace("Year","Y");e.yearGroups.push({year:r,groupId:o})}}))}},{key:"buildGroupMessage",value:function(e){if(e){var t=ih.mapYearGroupToName(e);return u.LanguageService.getPhrase(this.lang,"selectedYearGroups",{classNames:IW.a.mediumWeight,groupName:t})}return u.LanguageService.getPhrase(this.lang,"selectYearGroups")}},{key:"name",get:function(){return"RestrictAccessGroupComponent"}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"props",get:function(){return["configDataService","currentUser"]}},{key:"template",get:function(){return Fz.a}},{key:"bindings",get:function(){var e=this;return{"[name=year]":{observe:"groupId",onGet:function(t){return e.buildGroupMessage(t)},updateMethod:"html",escape:!1}}}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}]),t}(u.Core.Component);function $z(e){return($z="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 Xz(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 eq(e,t){return!t||"object"!==$z(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 tq(e){return(tq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nq(e,t){return(nq=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oq=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),eq(this,tq(t).call(this,u.LanguageService.getPhrase("migrationWizard.alreadyMigratedError","title")))}var n,o,r;return 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&&nq(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"AlreadyMigratedError"}},{key:"heading",get:function(){return u.LanguageService.getPhrase("migrationWizard.alreadyMigratedError","heading")}}])&&Xz(n.prototype,o),r&&Xz(n,r),t}(p.ErrorPageError);function rq(e,t){u.InstanceManager.getInstance(un.MigrationVideo).getCustomerMetadata((function(n){if(u.InstanceManager.releaseInstance(un.MigrationVideo),dz.noPublisher(n))return u.Core.ErrorHelper.throw(new Jn),void u.Core.AppLinkUtility.routingEnded();var o=dz.isInitialMigration(n),r=[M.MigrationWizard.BACKUP_WELCOME,M.MigrationWizard.BACKUP_PROGRESS,M.MigrationWizard.BACKUP_COMPLETE,M.MigrationWizard.BACKUP_DOWNLOAD,M.MigrationWizard.START_MIGRATION];if(!o&&s.contains(r,e.action))return u.Core.AppLinkUtility.routingEnded(),void u.Core.ErrorHelper.throw(new oq);var i=[M.MigrationWizard.HOME,M.MigrationWizard.BACKUP_WELCOME,M.MigrationWizard.BACKUP_DOWNLOAD];if(dz.backupNotStarted(n)&&!s.contains(i,e.action))return u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_WELCOME}),void u.Core.AppLinkUtility.routingEnded();var a=[M.MigrationWizard.BACKUP_PROGRESS,M.MigrationWizard.BACKUP_COMPLETE];if(o&&dz.backupProcessing(n)&&!s.contains(a,e.action))return u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_PROGRESS}),void u.Core.AppLinkUtility.routingEnded();var l=[M.MigrationWizard.BACKUP_COMPLETE,M.MigrationWizard.START_MIGRATION,M.MigrationWizard.SMART,M.MigrationWizard.SEARCH,M.MigrationWizard.SELECTED,M.MigrationWizard.SHOW_PUBLISHER_VIDEO,M.MigrationWizard.VIDEOS_ADDED,M.MigrationWizard.PROGRESS,M.MigrationWizard.HOME];if(o&&dz.backupComplete(n)&&!s.contains(l,e.action))return u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.START_MIGRATION}),void u.Core.AppLinkUtility.routingEnded();t(e)}))}function iq(e,t){u.EnvironmentVariables.isDevelopment?t(e):u.InstanceManager.getInstance(un.MigrationVideo).getCustomerMetadata((function(n){if(u.InstanceManager.releaseInstance(un.MigrationVideo),dz.isCurrentlyMigratingAll(n)&&e.application!==y.MIGRATION_WIZARD&&e.action!==M.MigrationWizard.PROGRESS)return u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PROGRESS,args:[n.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void u.Core.AppLinkUtility.routingEnded();if(dz.isInitialMigration(n)&&e.application!==y.MIGRATION_WIZARD)return u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_WELCOME},{replace:!0}),void u.Core.AppLinkUtility.routingEnded();var o=[M.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,M.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(dz.isPublishingLibraries(n)&&!s.contains(o,e.action))return u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PUBLISH_LIBRARY_PROGRESS},{replace:!0}),void u.Core.AppLinkUtility.routingEnded();t(e)}))}var aq,lq,sq,uq,cq=(new Date).getFullYear(),pq={DURATION:[{id:"0",value:"0",start:0,end:599999,name:function(){return u.LanguageService.getPhrase("search.utils","short")},description:function(){return u.LanguageService.getPhrase("search.utils","lessThan10Min")}},{id:"600000",value:"600000",start:6e5,end:2399999,name:function(){return u.LanguageService.getPhrase("search.utils","medium")},description:function(){return u.LanguageService.getPhrase("search.utils","11To40Min")}},{id:"2400000",value:"2400000",start:24e5,end:Number.MAX_VALUE,name:function(){return u.LanguageService.getPhrase("search.utils","long")},description:function(){return u.LanguageService.getPhrase("search.utils","greaterThan40Min")}}],PRODUCTION_YEAR:[{id:"...",from:0,to:0,value:"...",name:function(){return u.LanguageService.getPhrase("search.utils","anyYear")},active:!0,isDefault:!0},{id:"".concat(cq,"..."),from:cq,to:0,value:"".concat(cq,"..."),name:function(){return u.LanguageService.getPhrase("search.utils","thisYear")}},{id:"".concat(cq-3,"..."),from:cq-3,to:0,value:"".concat(cq-3,"..."),name:function(){return u.LanguageService.getPhrase("search.utils","last3Years")}},{id:"".concat(cq-10,"..."),from:cq-10,to:0,value:"".concat(cq-10,"..."),name:function(){return u.LanguageService.getPhrase("search.utils","last10Years")}}]};function fq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Video="video",e.Folder="folder",e.Series="series",e.HostedLibrary="hosted_library",e.CustomLibrary="custom_library"}(aq||(aq={})),function(e){e.Since="since-",e.Before="before-",e.LongerThan="longer-than-",e.ShorterThan="shorter-than-",e.To="-to-",e.Libraries="libraries",e.Ratings="ratings"}(lq||(lq={})),function(e){e.Inclusive="inclusive",e.Exclusive="exclusive",e.Boolean="boolean",e.Range="range",e.Tag="tag"}(sq||(sq={}));var hq,dq=(fq(uq={},p.FilterTypes.Ratings,(function(e){var t=e.options.filter((function(e){return e.get("active")})),n=s.map(t,(function(e){return e.get("value")}));if(!n.length)return null;var o=s.min(n);o===e.options.first().get("value")&&(o=0);var r=s.max(n),i="".concat(o,"...").concat(r);return"rating:".concat(i)})),fq(uq,p.FilterTypes.ProductionYear,(function(e){var t=e.options.find((function(e){return e.get("active")}));if(!t)return null;var n=t.get("from")||"",o=t.get("to")||"";if(!n&&!o)return null;var r="".concat(n,"...").concat(o);return"productionYear:".concat(r)})),fq(uq,p.FilterTypes.Duration,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!t.length)return null;var n=t.map((function(e){return e.get("start")})),o=t.map((function(e){return e.get("end")})),r=s.min(n),i=s.max(o);i===Number.MAX_VALUE&&(i="");var a="".concat(r,"...").concat(i);return"duration:".concat(a)})),fq(uq,"boolean",(function(e){return e.get("active")?"".concat(e.get("type"),":true"):""})),uq);function yq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gq,mq,bq,vq=(yq(hq={},p.FilterTypes.Sources,(function(e,t){if(e.options.any((function(e){return e.get("dry")}))){var n=[];return e.options.each((function(e){return n.push(e.get("id"))})),{sources:"".concat(n.join(","))}}var o=s.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("id")}));if(o.length||(o=e.options.models),o.length===t.length)return{};var r=[];s.every(Oq.getLibraries(t),(function(e){return s.contains(o,e.id)}))?r.push(lq.Libraries):s.each(Oq.getLibraries(t),(function(e){s.contains(o,e.id)&&r.push("library-".concat(e.id))}));var i=Oq.getExchange(t),a=Oq.getWorkspace(t);return i&&s.contains(o,i.id)&&r.push("exchange"),a&&s.contains(o,a.id)&&r.push("workspace"),{libraries:"".concat(r.join(","))}})),yq(hq,p.FilterTypes.Ratings,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!s.map(t,(function(e){return e.get("value")})).length)return{};var n=s.min(t,(function(e){return e.get("value")})),o=s.max(t,(function(e){return e.get("value")})),r="".concat(n.get("name")).concat(lq.To).concat(o.get("name"));return n.get("name")===o.get("name")&&(r=n.get("name")),{ratings:r}})),yq(hq,p.FilterTypes.ProductionYear,(function(e){var t=e.options.find((function(e){return e.get("active")}));if(!t)return{};var n=t.get("from"),o=t.get("to");if(!n&&!o)return{};return{productionYear:n&&!o?"".concat(lq.Since).concat(n):o&&!n?"".concat(lq.Before).concat(o):"".concat(n).concat(lq.To).concat(o)}})),yq(hq,p.FilterTypes.Duration,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!t.length||t.length===e.options.length)return{};var n=s.min(t,(function(e){return e.get("start")})),o=s.max(t,(function(e){return e.get("end")})),r=Oq.toISOString(n.get("start")),i=Oq.toISOString(o.get("end"));return{duration:r&&!i?"".concat(lq.LongerThan).concat(r.toLowerCase()):i&&!r?"".concat(lq.ShorterThan).concat(i.toLowerCase()):"".concat(r.toLowerCase()).concat(lq.To).concat(i.toLowerCase())}})),yq(hq,p.FilterTypes.Tags,(function(e){var t=s.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("name")}));if(t.length)return{tag:s.map(t,(function(e){return e}))}})),yq(hq,"boolean",(function(e){return e.get("active")?yq({},e.get("type"),!0):{}})),yq(hq,"default",(function(e){var t=e.options.find((function(e){return e.get("active")}));return t?yq({},e.get("type"),t.get("value")):{}})),hq);function wq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Libraries="libraries",e.Subjects="subjects",e.ReleaseDate="release-date"}(gq||(gq={})),function(e){e.ThisMonth="this-month",e.LastMonth="last-month",e.Last3Months="last-3-months",e.Last6Months="last-6-months"}(mq||(mq={}));var Sq=(wq(bq={},p.FilterTypes.Sources,(function(e){var t=s.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("name")}));return 1===t.length?t[0]:u.LanguageService.getPhrase("search.utils","librariesLabel",{count:t.length})})),wq(bq,p.FilterTypes.Ratings,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!s.map(t,(function(e){return e.get("value")})).length)return"";var n=s.min(t,(function(e){return e.get("value")})),o=s.max(t,(function(e){return e.get("value")})),r="".concat(n.get("name")," to ").concat(o.get("name"));return n.get("name")===o.get("name")&&(r=n.get("name")),u.LanguageService.getPhrase("search.utils","ratingLabel",{ratings:r})})),wq(bq,p.FilterTypes.ProductionYear,(function(e){var t=e.options.find((function(e){return e.get("active")}));if(!t)return"";var n=t.get("from"),o=t.get("to");return n||o?n&&!o?u.LanguageService.getPhrase("search.utils","productionYearLabelFrom",{from:n}):o&&!n?u.LanguageService.getPhrase("search.utils","productionYearLabelTo",{to:o}):u.LanguageService.getPhrase("search.utils","productionYearLabelFromTo",{from:n,to:o}):""})),wq(bq,p.FilterTypes.Duration,(function(e){var t=e.options.filter((function(e){return e.get("active")}));if(!t.length)return"";var n=s.min(t,(function(e){return e.get("start")})),o=s.max(t,(function(e){return e.get("end")})),r=Oq.toISOString(n.get("start")),i=Oq.toISOString(o.get("end"));return r&&!i?u.LanguageService.getPhrase("search.utils","durationLabelLonger",{start:r.toLowerCase()}):i&&!r?u.LanguageService.getPhrase("search.utils","durationLabelShorter",{end:i.toLowerCase()}):u.LanguageService.getPhrase("search.utils","durationLabelFromTo",{start:r.toLowerCase(),end:i.toLowerCase()})})),wq(bq,p.FilterTypes.Tags,(function(e){var t=s.map(e.options.filter((function(e){return e.get("active")})),(function(e){return e.get("name")}));return 1===t.length?t[0]:u.LanguageService.getPhrase("search.utils","tagLabel",{count:t.length})})),wq(bq,gq.ReleaseDate,(function(e){var t=e.options.find((function(e){return e.get("active")}));return t?t.get("name"):e.get("title")})),bq);function kq(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Oq={getFilterCollection:function(e,t){return new cx([{title:u.LanguageService.getPhrase("search.utils","library"),type:p.FilterTypes.Sources,behavior:sq.Inclusive,isDynamic:!1,showInMoreFilters:!1,selectAllWhenNoneSelected:!0,minNumOptions:2,prefixWhenActive:!1,options:Oq.getSourceOptions(e)},{title:u.LanguageService.getPhrase("search.utils","folder"),type:p.FilterTypes.Folder,behavior:sq.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Folders",showWhenOnlyOneOption:!1,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:u.LanguageService.getPhrase("search.utils","series"),type:p.FilterTypes.Series,behavior:sq.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Series",showWhenOnlyOneOption:!1,minNumOptions:1,prefixWhenActive:!0,options:[]},{title:u.LanguageService.getPhrase("search.utils","tag"),type:p.FilterTypes.Tags,behavior:sq.Tag,isDynamic:!0,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:u.LanguageService.getPhrase("search.utils","rating"),type:p.FilterTypes.Ratings,behavior:sq.Range,isDynamic:!1,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:1,prefixWhenActive:!1,options:Oq.getRatings(t)},{title:u.LanguageService.getPhrase("search.utils","interactives"),description:"Only display videos with interactives",type:p.FilterTypes.Interactives,behavior:sq.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:u.LanguageService.getPhrase("search.utils","resources"),description:u.LanguageService.getPhrase("search.utils","resourcesDescription"),type:p.FilterTypes.Resources,behavior:sq.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:u.LanguageService.getPhrase("search.utils","subtitles"),description:u.LanguageService.getPhrase("search.utils","subtitlesDescription"),type:p.FilterTypes.Subtitles,behavior:sq.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:u.LanguageService.getPhrase("search.utils","productionYear"),type:p.FilterTypes.ProductionYear,behavior:sq.Exclusive,isDynamic:!1,showInMoreFilters:!0,minNumOptions:1,prefixWhenActive:!1,options:pq.PRODUCTION_YEAR},{title:u.LanguageService.getPhrase("search.utils","clickViewContent"),description:u.LanguageService.getPhrase("search.utils","clickViewContentDescription"),type:p.FilterTypes.ProducedByClickView,behavior:sq.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:u.LanguageService.getPhrase("search.utils","hdVideo"),description:u.LanguageService.getPhrase("search.utils","hdVideoDescription"),type:p.FilterTypes.HD,behavior:sq.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:u.LanguageService.getPhrase("search.utils","duration"),type:p.FilterTypes.Duration,behavior:sq.Exclusive,showInMoreFilters:!0,minNumOptions:1,isDynamic:!1,prefixWhenActive:!1,options:pq.DURATION}])},getSourceOptions:function(e){return e.map((function(e){return{id:e.get("id"),name:e.get("name"),type:e.get("type"),value:e.get("id")}}))},getRatings:function(e){return e.filter((function(e){return!!e.get("value")})).map((function(e){return{value:e.get("value"),name:e.get("code"),fullName:e.get("name")}}))},getDynamicFiltersQueryString:function(e){var t,n=[],o=e.where({isDynamic:!0});return o?(s.each(o,(function(e){(t=e.options.filter((function(e){return e.get("active")}))).length&&t.forEach((function(t){return n.push("".concat(e.get("type"),':"').concat(t.get("value"),'"'))}))})),n.join(" ")):""},getSourceFilterQueryString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"libraryIds",n=e.get(p.FilterTypes.Sources),o=n.options.filter((function(e){return e.get("active")}));return o.length||(o=n.options.models),"".concat(t,"=").concat(s.map(o,(function(e){return e.get("id")})).join(","))},getTagFilterQueryString:function(e){var t=e.get(p.FilterTypes.Tags).options.filter((function(e){return e.get("active")}));return t.length?"".concat(s.map(t,(function(e){return'tags:"'.concat(e.get("name"),'"')})).join(" ")):""},getQueryString:function(e){return e.map((function(e){return Oq.getFilterQueryString(e)})).filter((function(e){return e})).join(",")},getFilterQueryString:function(e){return Oq.isBooleanType(e)?dq.boolean(e):s.isFunction(dq[e.get("type")])?dq[e.get("type")](e):""},getRouteQueryParams:function(e,t){var n=vq,o={};return e.each((function(e){var r={};r=e.get("type")===p.FilterTypes.Sources?n[p.FilterTypes.Sources](e,t):s.isFunction(n[e.get("type")])?n[e.get("type")](e):Oq.isBooleanType(e)?n.boolean(e):n.default(e),o=s.extend(o,r)})),o},getFilterLabel:function(e){var t=Oq.createLabel(e);return t=Oq.truncateLabel(t),t=Oq.prefixLabel(t,e)},createLabel:function(e){if(e.get("behavior")===sq.Boolean)return e.get("title");if(s.isFunction(Sq[e.get("type")]))return Sq[e.get("type")](e);var t=e.options.find((function(e){return e.get("active")}));return t?t.get("value"):""},prefixLabel:function(e,t){return t.get("prefixWhenActive")?Oq.getSelectedOptions(t.get("options")).length>1?e:"".concat(t.get("title"),": ").concat(e):e},truncateLabel:function(e){if(!e||e.length<20)return e;var t=e.slice(0,17);return"".concat(t,"...")},setFilters:function(e,t){s.each(s.keys(e),(function(n){var o=e[n],r=t.findWhere({type:n});r&&(Oq.isBooleanType(r)&&Oq.selectBoolean(n,o,t),n===p.FilterTypes.Sources&&Oq.selectSources(o,t),n===p.FilterTypes.Duration&&Oq.selectDurations(o,t),n===p.FilterTypes.Folder&&Oq.selectFolder(o,t),n===p.FilterTypes.ProductionYear&&Oq.selectProductionYear(o,t),n===p.FilterTypes.Ratings&&Oq.selectRating(o,t),n===p.FilterTypes.Series&&Oq.selectSeries(o,t),n===p.FilterTypes.Tags&&Oq.selectTags(o,t))})),t.each((function(t){t.get("selectAllWhenNoneSelected")&&(s.contains(s.keys(e),t.get("type"))||Oq.selectAllOptions(t))}))},selectBoolean:function(e,t,n){n.get(e).set({active:t})},selectSources:function(e,t){var n=e.split(","),o=t.get(p.FilterTypes.Sources);o.options.length?s.each(n,(function(e){var t=o.options.find((function(t){return t.get("type").toLowerCase()===e.toLowerCase()}));if(t)t.set("active",!0);else if(e!==lq.Libraries){var n=e.split("-")[1];if(n){var r=o.options.findWhere({id:+n});r&&r.set("active",!0)}}else{var i=o.options.where({type:aq.CustomLibrary});s.each(i,(function(e){return e.set("active",!0)}))}})):s.each(n,(function(e){o.options.add({id:e,name:e,dry:!0,active:!0,type:e})}))},selectDurations:function(e,t){var n,o,r,i=t.get(p.FilterTypes.Duration),a=0;if(e.indexOf(lq.LongerThan)>=0&&(n=e.replace(lq.LongerThan,"")),e.indexOf(lq.ShorterThan)>=0&&(o=e.replace(lq.ShorterThan,"")),e.indexOf(lq.To)>=0){var l=e.split(lq.To);n=l[0],o=l[1]}r=n?rh.duration("PT".concat(n.toString().toUpperCase())).asMilliseconds():0,a=o?rh.duration("PT".concat(o.toString().toUpperCase())).asMilliseconds():Number.MAX_VALUE,i.options.each((function(e){var t=e.get("start"),n=e.get("end");r<=t+1001&&r>=t-1001&&a>=n-1001&&a<=n+1001&&e.set("active",!0)})),i.options.any((function(e){return e.get("active")}))||i.options.add([{id:"custom",start:r,end:a,name:u.LanguageService.getPhrase("search.utils","custom"),description:"".concat(e.replace(/-/g," ")),active:!0}].concat(kq(pq.DURATION)))},selectFolder:function(e,t){var n=t.get(p.FilterTypes.Folder),o=n.options.find((function(t){return t.get("id").toLowerCase()===e.toLowerCase()}));o?o.set("active",!0):n.options.add([].concat(kq(n.options.toJSON()),[{id:e,value:e,name:e,active:!0}]))},selectProductionYear:function(e,t){var n,o,r=t.get(p.FilterTypes.ProductionYear);if(Oq.clearOptions(r),e.indexOf(lq.Since)>=0&&(n=+e.replace(lq.Since,"")),e.indexOf(lq.Before)>=0&&(o=+e.replace(lq.Before,"")),e.indexOf(lq.To)>=0){var i=e.split(lq.To);n=+i[0],o=+i[1]}r.options.each((function(e){+e.get("from")===n&&e.set("active",!0)})),r.options.any((function(e){return e.get("active")}))||r.options.add([{id:e,from:n,to:o,name:u.LanguageService.getPhrase("search.utils","custom"),value:e,active:!0}].concat(kq(pq.PRODUCTION_YEAR)))},selectRating:function(e,t){var n=t.get(p.FilterTypes.Ratings),o=e.split(lq.To);o[0]&&(o[0]=o[0].trim().toLowerCase()),o[1]&&(o[1]=o[1].trim().toLowerCase());var r=n.options.find((function(e){return e.get("name").toLowerCase()===o[0]})),i=n.options.find((function(e){return e.get("name").toLowerCase()===o[1]})),a=r&&r.get("value"),l=i&&i.get("value")||a,u=n.options.filter((function(e){return e.get("value")>=a&&e.get("value")<=l}));s.each(u,(function(e){return e.set("active",!0)}))},selectSeries:function(e,t){t.get(p.FilterTypes.Series).options.add({id:e,value:e,name:e,count:0,active:!0})},selectTags:function(e,t){var n=t.get(p.FilterTypes.Tags);if(!n.options.length){var o=s.isArray(e)?e:[e];s.each(o,(function(e){n.options.add({id:e,name:e,value:e,active:!0})}))}},showFilter:function(e){return e.get("behavior")===sq.Boolean||e.options.length>=e.get("minNumOptions")},getExchange:function(e){return Oq.getSource(e,R.Exchange)},getWorkspace:function(e){return Oq.getSource(e,R.Workspace)},getLibraries:function(e){return[].concat(kq(Oq.getSources(e,R.CustomLibrary)),kq(Oq.getSources(e,R.HostedLibrary)))},getHostedLibraries:function(e){return Oq.getSources(e,R.HostedLibrary)},getCustomLibraries:function(e){return Oq.getSources(e,R.CustomLibrary)},getSource:function(e,t){return e.find((function(e){return e.get("type")===t}))},getSources:function(e,t){return e.filter((function(e){return e.get("type")===t}))},hasFilterChanged:function(e,t){return e.get("behavior")===sq.Boolean?e.get("active")!==t.get("active"):Oq.isInclusiveType(e)||Oq.isTagType(e)?Oq.haveOptionsChanged(e,t):Oq.hasOptionChanged(e,t)},haveOptionsChanged:function(e,t){var n=t.options.where({active:!0}),o=e.options.where({active:!0});return!n||!o||(n.length!==o.length||!n.every((function(e,t){return e.get("value")===o[t].get("value")})))},hasOptionChanged:function(e,t){var n=Oq.getSelectedOption(t.options,e.get("behavior")),o=Oq.getSelectedOption(e.options,e.get("behavior"));return!(!n&&!o)&&(!!(!n&&o||n&&!o)||n.get("value")!==o.get("value"))},clearFilters:function(e){e.each((function(e){e.get("selectAllWhenNoneSelected")?Oq.selectAllOptions(e):e.get("behavior")===sq.Boolean?e.set("active",!1):Oq.clearOptions(e,!0)}))},clearOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.options.each((function(e){t&&e.get("isDefault")?e.set("active",!0):e.set("active",!1)}))},selectAllOptions:function(e){e.options.each((function(e){return e.set("active",!0)}))},getSelectedOption:function(e,t){return t===sq.Range?Oq.getSelectedOptionInRange(e):e.findWhere({active:!0})},getSelectedOptions:function(e){return new mx(e.filter((function(e){return e.get("active")})))},getSelectedOptionInRange:function(e){var t=e.where({active:!0});return s.last(t)},isInclusiveType:function(e){return e.get("behavior")===sq.Inclusive},isBooleanType:function(e){return e.get("behavior")===sq.Boolean},isTagType:function(e){return e.get("behavior")===sq.Tag},isSelected:function(e){return Oq.isBooleanType(e)?e.get("active"):Oq.isInclusiveType(e)?!Oq.allOptionsSelected(e):Oq.hasOptionSelected(e)},hasOptionSelected:function(e){return e.options.any((function(e){return!e.get("isDefault")&&e.get("active")}))},allOptionsSelected:function(e){return e.options.every((function(e){return e.get("active")}))},toISOString:function(e){if(!e||e===Number.MAX_VALUE)return"";var t=Math.ceil(e/1e3);return rh.duration(1e3*t).toISOString().replace("PT","")},getFilterSelectedOptionsAnalyticsData:function(e){if(Oq.isBooleanType(e))return e.get("active");if(Oq.isInclusiveType(e))return Oq.getInclusiveFilterSelectedOptionsAnalyticsData(e);var t=Oq.getSelectedOption(e.options,e.get("behavior"));return t&&t.get("name")},getInclusiveFilterSelectedOptionsAnalyticsData:function(e){var t=e.options.where({active:!0});return t.length||(t=e.options.toArray()),e.get("type")===p.FilterTypes.Sources?t.map((function(e){return e.get("id")})).join(","):t.map((function(e){return e.get("name")})).join(",")}},Cq=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},Eq={setQueryParams:function(e,t,n){var o=e.query,r=Cq(e,["query"]);t.set({query:o,initialQuery:o}),Oq.setFilters(r,n)},getQueryString:function(e,t,n){var o="",r=Eq.encodeURL(e.get("query"))||"",i=Oq.getDynamicFiltersQueryString(t),a=Oq.getSourceFilterQueryString(t);(r||i)&&(o+="q=".concat(r)),i&&(o+=" ".concat(i)),o&&a&&(o+="&".concat(a));var l=[],s=Oq.getQueryString(t);return s&&l.push(s),n&&l.push("page:".concat(n)),l.length&&(o+="&filter={".concat(l.join(","),"}")),o},getDynamicFilterQueryString:function(e,t){var n="",o=e.get("query")?Eq.encodeURL(e.get("query")):"",r=Oq.getTagFilterQueryString(t),i=Oq.getSourceFilterQueryString(t,"ids");return(o||r)&&(n+="q=".concat(o)),r&&(n+=" ".concat(r)),i&&(n+="&".concat(i)),n},getRouteQueryParams:function(e,t,n){var o=e.get("query")?{query:e.get("query")}:{};return s.extend(o,Oq.getRouteQueryParams(t,n))},encodeURL:function(e){return e?e.replace("&","%26").replace("#","%23"):""}};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 Tq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pq(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 xq(e){return(xq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Iq(e,t){return(Iq=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Lq=function(e){function t(){return Tq(this,t),Pq(this,xq(t).apply(this,arguments))}return 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&&Iq(e,t)}(t,e),t}(u.Core.Model);function jq(e){return(jq="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 Rq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dq(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 Nq(e,t){return!t||"object"!==jq(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 Aq(e){return(Aq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mq(e,t){return(Mq=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Vq=function(e){function t(){return Rq(this,t),Nq(this,Aq(t).apply(this,arguments))}var n,o,r;return 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&&Mq(e,t)}(t,e),n=t,(o=[{key:"associations",get:function(){return{videos:xr}}}])&&Dq(n.prototype,o),r&&Dq(n,r),t}(u.Core.NestedModel);function Uq(e){return(Uq="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 Fq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bq(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 Hq(e,t){return!t||"object"!==Uq(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 Wq(e){return(Wq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zq(e,t){return(zq=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qq=function(e){function t(){return Fq(this,t),Hq(this,Wq(t).apply(this,arguments))}var n,o,r;return 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&&zq(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return Lq}}])&&Bq(n.prototype,o),r&&Bq(n,r),t}(u.Core.Collection);function Gq(e){return(Gq="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 Yq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jq(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 Kq(e,t){return!t||"object"!==Gq(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 Qq(e){return(Qq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zq(e,t){return(Zq=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $q,Xq=function(e){function t(){return Yq(this,t),Kq(this,Qq(t).apply(this,arguments))}var n,o,r;return 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&&Zq(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return Vq}}])&&Jq(n.prototype,o),r&&Jq(n,r),t}(u.Core.Collection);function eG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tG(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var nG={getFilterCollection:function(e,t,n){var o=new cx([{title:function(){return u.LanguageService.getPhrase("contentUpdates.utils","libraryFilter")},type:gq.Libraries,behavior:sq.Inclusive,selectAllWhenNoneSelected:!0,minNumOptions:2,options:Oq.getSourceOptions(e)},{title:function(){return u.LanguageService.getPhrase("contentUpdates.utils","subjectFilter")},type:gq.Subjects,behavior:sq.Exclusive,defaultOptionLabel:function(){return u.LanguageService.getPhrase("contentUpdates.utils","subjectFilterLabel")},minNumOptions:0,options:t},{title:function(){return u.LanguageService.getPhrase("contentUpdates.utils","releaseDateFilter")},type:gq.ReleaseDate,behavior:sq.Exclusive,minNumOptions:1,options:lG}]);return n&&nG.setFilters(o,n),o},getLibraryIds:function(e,t){var n=t.map((function(e){return e.get("id").toString()}));if(!e)return n;var o=[];return e.split(",").forEach((function(e){var t=e.split("-")[1];t&&s.contains(n,t)&&o.push(t)})),o},getSubjectOptions:function(e){var t={};return e.each((function(e){if(t[e.get("name")]){t[e.get("name")].subjectIds.push(e.get("id").toString());var n=[].concat(tG(t[e.get("name")].libraryIds),tG(e.get("libraryIds").map((function(e){return e.toString()}))));t[e.get("name")].libraryIds=s.uniq(n)}else t[e.get("name")]={subjectIds:[e.get("id").toString()],libraryIds:e.get("libraryIds").map((function(e){return e.toString()}))}})),s.keys(t).sort().map((function(e){return{name:e,value:e,subjectIds:t[e].subjectIds,libraryIds:t[e].libraryIds}}))},setFilters:function(e,t){s.keys(t).forEach((function(n){var o=t[n];if(o){var r=e.findWhere({type:n});r&&(n===gq.Libraries&&nG.setLibraryFilter(o,r),n===gq.Subjects&&nG.setSubjectFilter(o,r),n===gq.ReleaseDate&&nG.setReleaseDateFilter(o,r))}})),e.each((function(e){e.get("selectAllWhenNoneSelected")&&(s.contains(s.keys(t),e.get("type"))||Oq.selectAllOptions(e))}))},setLibraryFilter:function(e,t){e.split(",").forEach((function(e){var n=e.split("-")[1];if(n){var o=t.options.findWhere({id:+n});o&&o.set("active",!0)}}))},setSubjectFilter:function(e,t){if(-1!==e.indexOf("-")){var n=e.split("-")[1].split(","),o=t.options.find((function(e){return!!s.intersection(e.get("subjectIds"),n).length}));if(o)o.set("active",!0);else{var r=e.split("-")[0];t.options.add({name:r,value:r,subjectIds:n,active:!0})}}},setReleaseDateFilter:function(e,t){Oq.clearOptions(t);var n=t.options.findWhere({queryString:e});if(n)n.set("active",!0);else{var o=t.options.findWhere({isDefault:!0});o&&o.set("active")}},getSelectedSubjects:function(e){return e.findWhere({type:gq.Subjects}).options.where({active:!0})},groupVideosByReleaseMonth:function(e){var t=[],n=e.groupBy((function(e){return rh(e.get("dateReleased")).format("YYYY-MM")}));return s.each(n,(function(e,n){t.push(new Vq({id:n,videos:e,groupTitle:rh(n).format("MMMM YYYY")}))})),new Xq(s.sortBy(t,"id").reverse())},getFirstDayInMonthNumMonthsAgo:function(e){return rh().startOf("month").subtract(e,"month").format("YYYY-MM-DD")},getLastDayInMonthNumMonthsAgo:function(e){return rh().endOf("month").subtract(e,"month").format("YYYY-MM-DD")},getSelectedReleaseDate:function(e){return e.findWhere({type:gq.ReleaseDate}).options.findWhere({active:!0})},getRouteQueryParams:function(e){var t=nG.RouteQueryParamGenerators,n={};return e.each((function(e){var o={};s.isFunction(t[e.get("type")])&&(o=t[e.get("type")](e)),n=s.extend(n,o)})),n},RouteQueryParamGenerators:($q={},eG($q,gq.Libraries,(function(e){var t=e.options.where({active:!0});return t.length&&t.length!==e.options.length?eG({},gq.Libraries,t.map((function(e){return"library-".concat(e.id)})).join(",")):{}})),eG($q,gq.Subjects,(function(e){var t=e.options.where({active:!0}),n=e.options.length>1&&e.options.length===t.length;return!t.length||n?{}:eG({},gq.Subjects,t.map((function(e){return"".concat(e.get("name"),"-").concat(e.get("subjectIds").join(","))})).join(","))})),eG($q,gq.ReleaseDate,(function(e){var t=e.options.findWhere({active:!0});if(!t)return{};var n=t.get("queryString");return n?eG({},gq.ReleaseDate,n):{}})),$q)},oG={AwaitingReview:function(){return u.LanguageService.getPhrase("contentUpdates.utils","awaitingReview")},PastReleases:function(){return u.LanguageService.getPhrase("contentUpdates.utils","pastReleases")}},rG=".awaiting-review-applink",iG=".past-releases-applink",aG=[{name:oG.AwaitingReview,link:{selector:rG,appLink:{application:y.CONTENT_UPDATES,action:M.ContentUpdates.AWAITING_REVIEW}}},{name:oG.PastReleases,link:{selector:iG,appLink:{application:y.CONTENT_UPDATES,action:M.ContentUpdates.PAST_RELEASES}}}],lG=[{id:mq.ThisMonth,value:mq.ThisMonth,from:nG.getFirstDayInMonthNumMonthsAgo(0),to:rh().format("YYYY-MM-DD"),name:function(){return u.LanguageService.getPhrase("contentUpdates.utils","thisMonth")},queryString:mq.ThisMonth},{id:mq.LastMonth,value:mq.LastMonth,from:nG.getFirstDayInMonthNumMonthsAgo(1),to:nG.getLastDayInMonthNumMonthsAgo(1),name:function(){return u.LanguageService.getPhrase("contentUpdates.utils","lastMonth")},queryString:mq.LastMonth},{id:mq.Last3Months,value:mq.Last3Months,from:nG.getFirstDayInMonthNumMonthsAgo(2),to:rh().format("YYYY-MM-DD"),queryString:mq.Last3Months,name:function(){return u.LanguageService.getPhrase("contentUpdates.utils","last3Months")}},{id:mq.Last6Months,value:mq.Last6Months,from:nG.getFirstDayInMonthNumMonthsAgo(5),to:rh().format("YYYY-MM-DD"),queryString:mq.Last6Months,name:function(){return u.LanguageService.getPhrase("contentUpdates.utils","last6Months")}}],sG=s.last(lG),uG={groupVideosByHostedLibrary:function(e){return uG.groupVideosByLibrary(e,O.HostedLibrary,!0)},groupVideosByLibrary:function(e,t,n){if(!e||!e.length)return new Xq;var o=[],r=e.groupBy((function(e){var o=e.libraries.findWhere({type:t});return o?o.get("name"):n&&(o=e.libraries.first())?o.get("name"):"Unknown Library"}));return s.each(r,(function(e,t){o.push(new Vq({id:t,videos:e,groupTitle:t}))})),new Xq(s.sortBy(o,"id"))}},cG=n(299),pG=n.n(cG),fG=n(300),hG=n.n(fG);function dG(e){return(dG="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 yG(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 gG(e,t){return!t||"object"!==dG(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 mG(e){return(mG=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bG(e,t){return(bG=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var vG=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),gG(this,mG(t).call(this,e))}var n,o,r;return 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&&bG(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(rB.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(rB.Disabled,!0),sh.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(rB.Disabled,!1),sh.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=s.map(e,(function(e){return"<strong>".concat(yh.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=u.LanguageService.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=sh.getSelected(this.folderTreeKey,this.customLibraries),r=o.get("id"),i=sh.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===O.HostedLibrary})),l=this.model.categories;l&&l.last()&&(e=l.last().get("id")),a&&a.length&&(t=s.last(a).get("id"));var u={masterObjectId:this.options.videoId,masterObjectType:k.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:i,destinationCategoryId:r}};this.videoDataService.addVideoToCustomLibrary(u,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(rB.Disabled)&&this.hasAvailableLibraries())return{title:u.LanguageService.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===O.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===O.CustomLibrary}));return s.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=sh.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new OC({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&sh.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=sh.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,o=this.getUI("folderName");t&&n&&this.$(o).show(),this.showChildView("folderSelector",new yB({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:hG.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"template",get:function(){return pG.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new kB,buttonText:u.LanguageService.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:XL.libraries}}}])&&yG(n.prototype,o),r&&yG(n,r),t}(u.Core.View),wG=n(301),SG=n.n(wG);function kG(e){return(kG="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 OG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CG(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 EG(e,t){return!t||"object"!==kG(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 _G(e){return(_G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function TG(e,t){return(TG=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var PG=function(e){function t(){return OG(this,t),EG(this,_G(t).apply(this,arguments))}var n,o,r;return 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&&TG(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll"}}},{key:"onClickApproveAll",value:function(){var e=this;new th(this.getApproveAllDialogOptions()).render().done((function(){return e.onConfirmApproveAll()})),this.logAction(jb.WorkflowPhase.Start)}},{key:"onConfirmApproveAll",value:function(){sp.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(jb.WorkflowPhase.Complete)}},{key:"getApproveAllDialogOptions",value:function(){return{title:u.LanguageService.getPhrase(this.lang,"dialogTitle"),text:u.LanguageService.getPhrase(this.lang,"dialogBody"),buttons:[{text:u.LanguageService.getPhrase(this.lang,"dialogButton"),className:"btn btn-primary",success:!0}]}}},{key:"logAction",value:function(e){var t={location:jb.LocationContext.AwaitingReviewVideoListHeader,actionType:jb.UserAction.Approve,descriptor:jb.OperationDescriptor.All,entity:jb.EntityType.Video,workflowPhase:e},n={approvedCount:this.collection.length};jb.AnalyticsHelper.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{videosToReview:!!this.collection.length,multipleVideos:this.collection.length>1,numVideos:this.collection.length}}},{key:"name",get:function(){return"AwaitingReviewHeaderComponent"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return SG.a}},{key:"lang",get:function(){return"contentUpdates.awaitingReviewHeader"}}])&&CG(n.prototype,o),r&&CG(n,r),t}(u.Core.Component),xG=n(302),IG=n.n(xG),LG=n(303),jG=n.n(LG);function RG(e){return(RG="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 DG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NG(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 AG(e,t,n){return t&&NG(e.prototype,t),n&&NG(e,n),e}function MG(e,t){return!t||"object"!==RG(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 VG(e){return(VG=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function UG(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&&FG(e,t)}function FG(e,t){return(FG=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var BG=function(e){function t(e){return DG(this,t),MG(this,VG(t).call(this,e))}return UG(t,e),AG(t,[{key:"regions",value:function(){return{videos:{el:".video-list-region",replaceElement:!0}}}},{key:"getGroupTitle",value:function(){var e=this.options.groupTitleAttr||"groupTitle";return this.model.get(e)}},{key:"viewOptions",value:function(){return{groupTitle:this.getGroupTitle()}}},{key:"onRender",value:function(){this.showChildView("videos",new MM({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:y.CONTENT_UPDATES,collectionIdentifier:null,videoItemComponentType:this.options.videoItemComponentType,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasCustomLibrary:this.options.customerHasCustomLibrary}))}},{key:"name",get:function(){return"VideoGroupItemComponent"}},{key:"template",get:function(){return jG.a}},{key:"className",get:function(){return"pt-3"}},{key:"defaults",get:function(){return{videoItemComponentType:UA.Base}}}]),t}(u.Core.Component),HG=function(e){function t(e){return DG(this,t),MG(this,VG(t).call(this,e))}return UG(t,e),AG(t,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return BG}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),t}(u.Core.ComponentCollection),WG=function(e){function t(e){return DG(this,t),MG(this,VG(t).call(this,e))}return UG(t,e),AG(t,[{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.emptyStateType===S.AwaitingReview?{heading:u.LanguageService.getPhrase(this.lang,"awaitingReviewEmptyStateHeading"),description:u.LanguageService.getPhrase(this.lang,"awaitingReviewEmptyStateBody")}:this.options.emptyStateType===S.PastReleases?{heading:u.LanguageService.getPhrase(this.lang,"pastReleasesEmptyStateHeading")}:void 0}},{key:"onRender",value:function(){this.showChildView("videos",new HG(this.options))}},{key:"name",get:function(){return"VideoGroupListComponent"}},{key:"template",get:function(){return IG.a}},{key:"lang",get:function(){return"contentUpdates.videoGroupList"}},{key:"defaults",get:function(){return{emptyState:S.Default}}},{key:"behaviors",get:function(){return[{behaviorClass:p.EmptyStateBehavior,region:"videos",type:this.options.emptyStateType,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:wn}]}}]),t}(u.Core.Component),zG=n(304),qG=n.n(zG),GG=n(305),YG=n.n(GG);function JG(e){return(JG="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 KG(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 QG(e,t){return!t||"object"!==JG(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 ZG(e){return(ZG=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $G(e,t){return($G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var XG=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),QG(this,ZG(t).call(this,e))}var n,o,r;return 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&&$G(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var e={location:jb.LocationContext.LeftNav,actionType:jb.UserAction.Disable,entity:jb.EntityType.CustomerSetting,descriptor:jb.CustomerSettingDescriptor.LibraryReview,workflowPhase:jb.WorkflowPhase.Start};jb.AnalyticsHelper.logUserAction({},e)}},{key:"viewOptions",value:function(){return{supportUrl:u.UrlHelper.safeUrlConcat(this.options.supportSiteUrl,cn.LIBRARY_REVIEW)}}},{key:"name",get:function(){return"ContentUpdatesLeftNavComponent"}},{key:"className",get:function(){return"d-inline-block ".concat(YG.a.leftNav)}},{key:"template",get:function(){return qG.a}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesLeftNav"}},{key:"appLinks",get:function(){return{".disable-review":{application:y.CONTENT_UPDATES,action:M.ContentUpdates.DISABLE_REVIEW}}}}])&&KG(n.prototype,o),r&&KG(n,r),t}(u.Core.Component),eY=n(306),tY=n.n(eY),nY=n(307),oY=n.n(nY);function rY(e){return(rY="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 iY(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 aY(e,t){return!t||"object"!==rY(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 lY(e){return(lY=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sY(e,t){return(sY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var uY=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),aY(this,lY(t).call(this,e))}var n,o,r;return 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&&sY(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{tabs:{el:".tabs-region"}}}},{key:"getTabs",value:function(){var e=aG;return this.options.reviewEnabled?e:e.filter((function(e){return e.name!==oG.AwaitingReview}))}},{key:"viewOptions",value:function(){return{styles:oY.a}}},{key:"onRender",value:function(){var e=this.getTabs();e.length<=1||this.showChildView("tabs",new Ik({tabs:e,activeTab:this.options.activeTab,className:"border-0"}))}},{key:"name",get:function(){return"ContentUpdatesHeaderComponent"}},{key:"className",get:function(){return"d-flex align-items-end border-bottom"}},{key:"template",get:function(){return tY.a}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesHeader"}}])&&iY(n.prototype,o),r&&iY(n,r),t}(u.Core.Component),cY=n(308),pY=n.n(cY),fY=n(27),hY=n.n(fY);function dY(e){return(dY="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 yY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gY(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 mY(e,t){return!t||"object"!==dY(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 bY(e){return(bY=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vY(e,t){return(vY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wY=function(e){function t(){return yY(this,t),mY(this,bY(t).apply(this,arguments))}var n,o,i;return 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&&vY(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=u.InstanceManager.getInstance(un.Settings,this),this.contentUpdatesDataService=u.InstanceManager.getInstance(un.ContentUpdates,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this)}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0,partialLoading:r.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:r.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(f.SETTINGS,"".concat(F.SETTINGS,":sync"),this.render),this.listenTo(f.CONTENT_UPDATES,"".concat(F.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(f.RESTRICTED_VIDEO,"".concat(F.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(s.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){u.Core.AppLinkHelper.trigger({application:y.CONTENT_UPDATES,action:M.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(hY.a.content," border-left ").concat(hY.a.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new xr(this.videoCollection.map((function(e){return new jl({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new uY({activeTab:rG,reviewEnabled:this.reviewSetting.get("value")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new XG({supportSiteUrl:this.config.get("supportSiteUrl")}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new PG({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new WG({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:UA.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName},emptyStateType:S.AwaitingReview,emptyStateOptions:{heading:u.LanguageService.getPhrase(this.lang,"emptyStateHeading"),description:u.LanguageService.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=uG.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.settingsDataService.getSetting(this.currentUser.get("customerId"),v.LibraryReview),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("value")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white"}},{key:"template",get:function(){return pY.a}},{key:"requiredResources",get:function(){return{config:IB.config,currentUser:GB.currentUser}}}])&&gY(n.prototype,o),i&&gY(n,i),t}(u.Core.View),SY=n(309),kY=n.n(SY);function OY(e){return(OY="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 CY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EY(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 _Y(e,t){return!t||"object"!==OY(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 TY(e){return(TY=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function PY(e,t){return(PY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xY=function(e){function t(){return CY(this,t),_Y(this,TY(t).apply(this,arguments))}var n,o,r;return 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&&PY(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=u.InstanceManager.getInstance(un.Settings,this),this.contentUpdatesDataService=u.InstanceManager.getInstance(un.ContentUpdates,this)}},{key:"bindListeners",value:function(){this.listenTo(f.VIDEO,"".concat(F.VIDEOS_TO_REVIEW,":sync"),this.render)}},{key:"videosToReview",value:function(){return!!this.videoCollection&&!!this.videoCollection.length}},{key:"onClickDisable",value:function(){this.videosToReview()?this.approveAllThenDisableReview():this.disableReview(),this.triggerMethod("hide")}},{key:"approveAllThenDisableReview",value:function(){var e=this;this.contentUpdatesDataService.approveAllVideos((function(){return e.disableReview()}))}},{key:"disableReview",value:function(){var e=lh.getLibraryReviewOptions(!1);this.settingsDataService.updateSetting(this.currentUser.get("customerId"),e,u.LanguageService.getPhrase(this.lang,"disableSuccess"),this.redirectToPastReleases),this.logAction()}},{key:"redirectToPastReleases",value:function(){u.Core.AppLinkHelper.trigger({application:y.CONTENT_UPDATES,action:M.ContentUpdates.PAST_RELEASES})}},{key:"logAction",value:function(){var e={location:jb.LocationContext.Popup,actionType:jb.UserAction.Disable,entity:jb.EntityType.CustomerSetting,descriptor:jb.CustomerSettingDescriptor.LibraryReview,workflowPhase:jb.WorkflowPhase.Complete},t={approvedCount:this.videoCollection.length};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"onBeforeRender",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&this.spinnerModel.set(rB.Disabled,!1)}},{key:"viewOptions",value:function(){return{videosToReview:this.videosToReview(),dataFetched:!!this.videoCollection,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"DisableReviewView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"template",get:function(){return kY.a}},{key:"lang",get:function(){return"contentUpdates.disableReview"}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:u.LanguageService.getPhrase(this.lang,"heading"),behaviorClass:Sg,spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"offBtn"),onClick:function(){return e.onClickDisable()}}}]}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&EY(n.prototype,o),r&&EY(n,r),t}(u.Core.View);function IY(e){return(IY="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 LY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jY(e,t){return!t||"object"!==IY(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 RY(e){return(RY=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function DY(e,t){return(DY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var NY=function(e){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return LY(this,t),jY(this,RY(t).call(this,{collectionPrefix:"".concat(F.VIDEOS,":collection"),id:e,sort:n,cursor:o}))}return 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&&DY(e,t)}(t,e),t}(p.CollectionIdentifier);function AY(e){return(AY="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 MY(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function VY(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 UY(e,t){return!t||"object"!==AY(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 FY(e){return(FY=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function BY(e,t){return(BY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var HY=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=UY(this,FY(t).call(this,{collectionPrefix:"".concat(F.RECENT_VIDEOS,":collection"),cursor:e.cursor,sort:e.sort}))).setAdditionalData(e),n}var n,o,r;return 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&&BY(e,t)}(t,e),n=t,(o=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString,o=e.subjects;t&&(this.libraryIds=t),o&&(s.isArray(o)&&o.length&&(this.subjects=o),s.isArray(o)||(this.subjects=[o]));var r=s.findWhere(lG,{queryString:n})||sG;this.dateOption=new Lx(r)}},{key:"toString",value:function(){var e=this.subjects&&this.subjects.length&&this.subjects.map((function(e){return escape(e.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(MY(e),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),this.subjects&&(e.subjectIds=s.flatten(this.subjects.map((function(e){return e.get("subjectIds")})))),this.cursor&&(e.cursor=this.cursor),e}}])&&VY(n.prototype,o),r&&VY(n,r),t}(p.CollectionIdentifier);function WY(e){return(WY="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 zY(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 qY(e,t){return!t||"object"!==WY(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 GY(e){return(GY=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function YY(e,t){return(YY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var JY=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=qY(this,GY(t).call(this,{collectionPrefix:"".concat(F.RECENT_SUBJECTS,":collection"),sort:e.sort}))).setAdditionalData(e),n}var n,o,r;return 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&&YY(e,t)}(t,e),n=t,(o=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString;t&&(this.libraryIds=t);var o=s.findWhere(lG,{queryString:n})||sG;this.dateOption=new Lx(o)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),e}}])&&zY(n.prototype,o),r&&zY(n,r),t}(p.CollectionIdentifier);function KY(e){return(KY="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 QY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZY(e,t){return!t||"object"!==KY(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)}function XY(e,t){return(XY=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var eJ=function(e){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return QY(this,t),ZY(this,$Y(t).call(this,{collectionPrefix:F.LIBRARY_FOLDERS,id:e,sort:n,cursor:o}))}return 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&&XY(e,t)}(t,e),t}(p.CollectionIdentifier),tJ=n(310),nJ=n.n(tJ),oJ=n(311),rJ=n.n(oJ);function iJ(e){return(iJ="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 aJ(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 lJ(e,t){return!t||"object"!==iJ(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 sJ(e){return(sJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uJ(e,t){return(uJ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var cJ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lJ(this,sJ(t).call(this,e))}var n,o,r;return 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&&uJ(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.contentUpdatesDataService=u.InstanceManager.getInstance(un.ContentUpdates,this),this.exportDataService=u.InstanceManager.getInstance(un.Export,this)}},{key:"onLibrariesSync",value:function(e){var t=this;this.libraries=e,this.selectedLibraryIds=nG.getLibraryIds(this.options.librariesQueryString,e),this.subjectCollectionIdentifier=new JY({dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)}))}},{key:"onSubjectsSync",value:function(e,t){var n=nG.getSubjectOptions(t).map((function(e){return new Lx(e)})),o={dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds};if(!this.options.subjectQueryString)return this.videoCollectionIdentifier=new HY(o),void this.spinnerModel.set(rB.Disabled,!1);var r=this.getSubjectIds();this.videoCollectionIdentifier=new HY(s.extend(o,{subjects:n.filter((function(e){return!!s.intersection(r,e.get("subjectIds")).length}))})),this.spinnerModel.set(rB.Disabled,!1)}},{key:"getSubjectIds",value:function(){if(this.options.subjectQueryString)return this.options.subjectQueryString.split("-")[1].split(",")}},{key:"getLibrariesText",value:function(){var e=this;if(this.libraries.length!==this.selectedLibraryIds.length){var t=this.libraries.filter((function(t){return s.contains(e.selectedLibraryIds,t.id.toString())})),n=t.map((function(e){return"<strong>".concat(yh.escapeExpression(e.get("name")),"</strong>")}));return t.length<=2?n.join(" ".concat(u.LanguageService.getPhrase(this.lang,"and")," ")):s.first(n,n.length-1).join(", ")+" ".concat(u.LanguageService.getPhrase(this.lang,"and")," ").concat(s.last(n))}}},{key:"getFormattedDate",value:function(e){if(e)return rh(e).format("DD MMMM YYYY")}},{key:"getFormattedSubjects",value:function(){if(this.videoCollectionIdentifier.subjects){var e=this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")}));return 1===e.length?e[0]:e.slice(0,-1).join(", ")+" ".concat(u.LanguageService.getPhrase(this.lang,"and")," ")+e.slice(-1)}}},{key:"onClickGeneratePdf",value:function(){this.spinnerModel.set(rB.ShowSpinner,!0),this.fetchVideosAndGeneratePdf()}},{key:"fetchVideosAndGeneratePdf",value:function(){var e=this;this.contentUpdatesDataService.getRecentVideosAllPages(this.videoCollectionIdentifier,(function(t){t&&t.length?e.generatePdf(t.map((function(e){return e.id.toString()}))):e.triggerMethod("hide")}))}},{key:"generatePdf",value:function(e){var t=this,n=this.videoCollectionIdentifier.subjects?this.getFormattedSubjects():u.LanguageService.getPhrase(this.lang,"latestReleases"),o=rh(this.videoCollectionIdentifier.dateOption.get("from")).format("MMMM YYYY"),r=rh(this.videoCollectionIdentifier.dateOption.get("to")).format("MMMM YYYY"),i=o===r?u.LanguageService.getPhrase(this.lang,"fromContentUpdate",{from:o}):u.LanguageService.getPhrase(this.lang,"fromToContentUpdates",{from:o,to:r});this.exportDataService.generateCustomListPdf(n,i,e,this.currentUser,(function(){return t.triggerMethod("hide")})),this.logAction(e.length)}},{key:"logAction",value:function(e){var t={location:jb.LocationContext.Popup,actionType:jb.UserAction.Create,entity:jb.EntityType.PDF,workflowPhase:jb.WorkflowPhase.Complete},n={videoCount:e,libraries:this.selectedLibraryIds.join(","),releaseDate:this.videoCollectionIdentifier.dateOption.get("name"),subjects:this.options.subjectQueryString?this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")})).join(","):""};jb.AnalyticsHelper.logUserAction(n,t)}},{key:"onBeforeRender",value:function(){var e=this;this.libraries||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"viewOptions",value:function(){return{styles:rJ.a,dataFetched:!!this.libraries,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:yn.Shared.GeneratePdf,libraryText:this.getLibrariesText(),subject:this.getFormattedSubjects(),from:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("from")),to:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("to"))}}},{key:"name",get:function(){return"GeneratePastReleasesPdfView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.generatePastReleasesPdf"}},{key:"template",get:function(){return nJ.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"generateBtn"),onClick:function(){return e.onClickGeneratePdf()}}}]}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&aJ(n.prototype,o),r&&aJ(n,r),t}(u.Core.View),pJ=n(312),fJ=n.n(pJ),hJ="tag:filter",dJ=n(313),yJ=n.n(dJ);function gJ(e){return(gJ="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 mJ(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 bJ(e,t){return!t||"object"!==gJ(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 vJ(e){return(vJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wJ(e,t){return(wJ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var SJ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),bJ(this,vJ(t).call(this,e))}var n,o,r;return 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&&wJ(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new SK({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return yJ.a}},{key:"className",get:function(){return"py-1"}}])&&mJ(n.prototype,o),r&&mJ(n,r),t}(u.Core.Component),kJ=n(314),OJ=n.n(kJ);function CJ(e){return(CJ="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 EJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _J(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 TJ(e,t,n){return t&&_J(e.prototype,t),n&&_J(e,n),e}function PJ(e,t){return!t||"object"!==CJ(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 xJ(e){return(xJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function IJ(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&&LJ(e,t)}function LJ(e,t){return(LJ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jJ=function(e){function t(){return EJ(this,t),PJ(this,xJ(t).apply(this,arguments))}return IJ(t,e),TJ(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,V.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),sp.Radio.channel(this.options.channelName).trigger("reset:filters"),Oq.clearFilters(this.collection),this.isTagFilterType()&&sp.Radio.channel(hJ).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){sp.Radio.channel(this.options.channelName).trigger(V.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return Oq.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:p.FilterTypes.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new RJ({collection:this.collection,channelName:this.channelName}))}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return OJ.a}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}]),t}(u.Core.Component),RJ=function(e){function t(e){return EJ(this,t),PJ(this,xJ(t).call(this,e))}return IJ(t,e),TJ(t,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return SJ}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),t}(u.Core.ComponentCollection),DJ=n(18),NJ=n.n(DJ),AJ=n(315),MJ=n.n(AJ),VJ=n(316),UJ=n.n(VJ);function FJ(e){return(FJ="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 BJ(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 HJ(e,t){return!t||"object"!==FJ(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 WJ(e){return(WJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zJ(e,t){return(zJ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qJ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),HJ(this,WJ(t).call(this,e))}var n,o,r;return 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&&zJ(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=u.ViewModelService.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,V.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new cx(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),sp.Radio.channel(this.options.channelName).trigger(V.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!Oq.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return Oq.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return Oq.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=u.LanguageService.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(NJ.a.filterButton);return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){Oq.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:jb.LocationContext.SearchFilters,actionType:jb.UserAction.Filter,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Complete},o={filter:e.get("title"),selectedOption:Oq.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};jb.AnalyticsHelper.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:jb.LocationContext.SearchFilters,actionType:jb.UserAction.Filter,descriptor:jb.FilterDescriptor.Reset,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Complete};jb.AnalyticsHelper.logUserAction({filter:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new jJ({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return MJ.a}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat(UJ.a.moreFiltersButton)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&BJ(n.prototype,o),r&&BJ(n,r),t}(u.Core.Component),GJ=n(317),YJ=n.n(GJ);function JJ(e){return(JJ="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 KJ(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 QJ(e,t){return!t||"object"!==JJ(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 ZJ(e){return(ZJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $J(e,t){return($J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var XJ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),QJ(this,ZJ(t).call(this,e))}var n,o,i;return 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)}(t,e),n=t,(o=[{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:r.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){Oq.clearFilters(this.collection),sp.Radio.channel(this.options.channelName).trigger(V.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new cx(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&Oq.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new cx(this.collection.filter((function(e){return e.get("showInMoreFilters")&&Oq.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return Oq.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:jb.LocationContext.SearchFilters,actionType:jb.UserAction.Filter,descriptor:jb.FilterDescriptor.Reset,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Complete};jb.AnalyticsHelper.logUserAction({filter:"All"},e)}},{key:"renderFilterList",value:function(){var e=new iK({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new qJ({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:NJ.a.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:NJ.a.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}},{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return YJ.a}},{key:"lang",get:function(){return"search.filters"}}])&&KJ(n.prototype,o),i&&KJ(n,i),t}(u.Core.Component);function eK(e){return(eK="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 tK(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 nK(e,t){return!t||"object"!==eK(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 oK(e){return(oK=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rK(e,t){return(rK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var iK=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nK(this,oK(t).call(this,e))}var n,o,r;return 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&&rK(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return hK}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:jb.LocationContext.SearchFilters,entity:jb.EntityType.Video}}}}])&&tK(n.prototype,o),r&&tK(n,r),t}(u.Core.ComponentCollection),aK=n(318),lK=n.n(aK);function sK(e){return(sK="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 uK(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 cK(e,t){return!t||"object"!==sK(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 pK(e){return(pK=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fK(e,t){return(fK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hK=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cK(this,pK(t).call(this,e))}var n,o,r;return 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&&fK(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=u.ViewModelService.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,V.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new Cx(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){Oq.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==p.FilterTypes.Tags&&(this.setInitialFilter(),yf.channel(this.options.channelName).trigger(V.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return Oq.isSelected(this.model)?Oq.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(NJ.a.filterButton);return Oq.isSelected(this.model)?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Filter,workflowPhase:jb.WorkflowPhase.Complete}),n={filter:this.model.get("title"),selectedOption:Oq.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};jb.AnalyticsHelper.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{actionType:jb.UserAction.Filter,descriptor:jb.FilterDescriptor.Reset,workflowPhase:jb.WorkflowPhase.Complete}),t={filter:this.model.get("title")};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:NJ.a,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new jJ({collection:new u.Core.Collection([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return lK.a}},{key:"className",get:function(){return"d-inline-block m-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&uK(n.prototype,o),r&&uK(n,r),t}(u.Core.Component),dK=n(319),yK=n.n(dK);function gK(e){return(gK="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 mK(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 bK(e,t){return!t||"object"!==gK(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 vK(e){return(vK=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wK(e,t){return(wK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var SK=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),bK(this,vK(t).call(this,e))}var n,o,r;return 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&&wK(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,V.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(sp.Radio.channel(this.options.channelName).trigger(V.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){Oq.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){Oq.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===sq.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===sq.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===sq.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===sq.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===sq.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===p.FilterTypes.Duration?kQ:this.isTagType()?BQ:this.isRangeType()?sQ:this.isBooleanType()?KK:jK}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return yK.a}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&mK(n.prototype,o),r&&mK(n,r),t}(u.Core.Component),kK=n(320),OK=n.n(kK);function CK(e){return(CK="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 EK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _K(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 TK(e,t,n){return t&&_K(e.prototype,t),n&&_K(e,n),e}function PK(e,t){return!t||"object"!==CK(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 xK(e){return(xK=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function IK(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&&LK(e,t)}function LK(e,t){return(LK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jK=function(e){function t(e){return EK(this,t),PK(this,xK(t).call(this,e))}return IK(t,e),TK(t,[{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===sq.Inclusive?Oq.selectAllOptions(this.model):Oq.clearOptions(this.model),yf.channel(this.options.channelName).trigger(V.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===sq.Inclusive?Oq.allOptionsSelected(this.model):!Oq.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new RK({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return OK.a}}]),t}(u.Core.Component),RK=function(e){function t(e){return EK(this,t),PK(this,xK(t).call(this,e))}return IK(t,e),TK(t,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return BK}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),t}(u.Core.ComponentCollection),DK=n(321),NK=n.n(DK);function AK(e){return(AK="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 MK(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 VK(e,t){return!t||"object"!==AK(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 UK(e){return(UK=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function FK(e,t){return(FK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var BK=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),VK(this,UK(t).call(this,e))}var n,o,r;return 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&&FK(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),sp.Radio.channel(this.options.channelName).trigger(V.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return NK.a}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}}])&&MK(n.prototype,o),r&&MK(n,r),t}(u.Core.Component),HK=n(322),WK=n.n(HK);function zK(e){return(zK="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 qK(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 GK(e,t){return!t||"object"!==zK(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 YK(e){return(YK=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function JK(e,t){return(JK=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var KK=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),GK(this,YK(t).call(this,e))}var n,o,r;return 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&&JK(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),sp.Radio.channel(this.options.channelName).trigger(V.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}},{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return WK.a}}])&&qK(n.prototype,o),r&&qK(n,r),t}(u.Core.Component),QK=n(323),ZK=n.n(QK),$K=n(93),XK=n.n($K);function eQ(e){return(eQ="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 tQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nQ(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 oQ(e,t,n){return t&&nQ(e.prototype,t),n&&nQ(e,n),e}function rQ(e,t){return!t||"object"!==eQ(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 iQ(e){return(iQ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aQ(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&&lQ(e,t)}function lQ(e,t){return(lQ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sQ=function(e){function t(){return tQ(this,t),rQ(this,iQ(t).apply(this,arguments))}return aQ(t,e),oQ(t,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat(XK.a.options," py-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return uQ}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),t}(u.Core.ComponentCollection),uQ=function(e){function t(){return tQ(this,t),rQ(this,iQ(t).apply(this,arguments))}return aQ(t,e),oQ(t,[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),sp.Radio.channel(this.options.channelName).trigger(V.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}},{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return ZK.a}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat(XK.a.option," border btn btn-");return this.isSelected()?"".concat(e,"info"):"".concat(e,"light")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}}]),t}(u.Core.Component),cQ=n(324),pQ=n.n(cQ),fQ=n(40),hQ=n.n(fQ);function dQ(e){return(dQ="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 yQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gQ(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 mQ(e,t,n){return t&&gQ(e.prototype,t),n&&gQ(e,n),e}function bQ(e,t){return!t||"object"!==dQ(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 vQ(e){return(vQ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wQ(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&&SQ(e,t)}function SQ(e,t){return(SQ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kQ=function(e){function t(){return yQ(this,t),bQ(this,vQ(t).apply(this,arguments))}return wQ(t,e),mQ(t,[{key:"getOptionItemClassName",value:function(){var e=hQ.a.optionItem;return 4===this.collection.length&&(e+=" ".concat(hQ.a.customOptionItem)),e}},{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return OQ}},{key:"className",get:function(){return hQ.a.options}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}]),t}(u.Core.ComponentCollection),OQ=function(e){function t(e){return yQ(this,t),bQ(this,vQ(t).call(this,e))}return wQ(t,e),mQ(t,[{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),sp.Radio.channel(this.options.channelName).trigger(V.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(hQ.a.optionButton," p-1");return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return pQ.a}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}}]),t}(u.Core.Component),CQ=n(325),EQ=n.n(CQ),_Q=n(326),TQ=n.n(_Q),PQ=n(327),xQ=n.n(PQ);function IQ(e){return(IQ="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 LQ(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 jQ(e,t){return!t||"object"!==IQ(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 RQ(e){return(RQ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function DQ(e,t){return(DQ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var NQ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jQ(this,RQ(t).call(this,e))}var n,o,i;return 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&&DQ(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:r.TagFilter}}}},{key:"onBeforeRender",value:function(){return!s.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new bE({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}},{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return xQ.a}}])&&LQ(n.prototype,o),i&&LQ(n,i),t}(u.Core.Component);function AQ(e){return(AQ="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 MQ(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 VQ(e,t){return!t||"object"!==AQ(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 UQ(e){return(UQ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function FQ(e,t){return(FQ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var BQ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),VQ(this,UQ(t).call(this,e))}var n,o,r;return 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&&FQ(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){sp.Radio.channel(this.options.channelName).trigger(V.Filters.OPTION_SELECTED,e,!0),sp.Radio.channel(hJ).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=Oq.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new mx(this.collection.filter((function(t){return!s.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=Oq.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return s.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=Oq.getSelectedOptions(this.collection);this.showChildView("selectedTags",new NQ({collection:e,channelName:this.channelName,behavior:Zf.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new NQ({collection:this.relevantTags,channelName:this.channelName,behavior:Zf.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return TQ.a}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat(EQ.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&MQ(n.prototype,o),r&&MQ(n,r),t}(u.Core.Component);function HQ(e){return(HQ="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 WQ(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 zQ(e,t){return!t||"object"!==HQ(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 qQ(e){return(qQ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GQ(e,t){return(GQ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var YQ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zQ(this,qQ(t).call(this,e))}var n,o,i;return 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&&GQ(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!1,partialLoading:r.PastReleasesSearchFilter}}}},{key:"getVisibleFilters",value:function(){return new cx(this.collection.filter((function(e){return Oq.showFilter(e)})))}},{key:"renderFilterList",value:function(){var e=new iK({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList()}},{key:"name",get:function(){return"PastReleasesFiltersComponent"}},{key:"template",get:function(){return fJ.a}},{key:"lang",get:function(){return"contentUpdates.pastReleasesFilters"}}])&&WQ(n.prototype,o),i&&WQ(n,i),t}(u.Core.Component),JQ=n(328),KQ=n.n(JQ);function QQ(e){return(QQ="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 ZQ(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 $Q(e,t){return!t||"object"!==QQ(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 XQ(e){return(XQ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eZ(e,t){return(eZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tZ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$Q(this,XQ(t).call(this,e))}var n,o,r;return 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&&eZ(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{filters:{el:".filters-region"}}}},{key:"events",value:function(){return{"click .generate-pdf":"onClickGeneratePdf"}}},{key:"onClickGeneratePdf",value:function(){sp.Radio.channel(this.options.channelName).trigger("generate:pdf")}},{key:"renderFilters",value:function(){var e=new YQ({collection:this.filterCollection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"viewOptions",value:function(){return{showGeneratePdf:this.options.showGeneratePdf}}},{key:"onRender",value:function(){this.renderFilters()}},{key:"name",get:function(){return"PastReleasesHeaderComponent"}},{key:"props",get:function(){return["filterCollection"]}},{key:"lang",get:function(){return"contentUpdates.pastReleasesHeader"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return KQ.a}}])&&ZQ(n.prototype,o),r&&ZQ(n,r),t}(u.Core.Component),nZ=n(329),oZ=n.n(nZ);function rZ(e){return(rZ="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 iZ(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 aZ(e,t){return!t||"object"!==rZ(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 lZ(e){return(lZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sZ(e,t){return(sZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var uZ=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),aZ(this,lZ(t).call(this,e))}var n,o,i;return 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&&sZ(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=u.InstanceManager.getInstance(un.Settings,this),this.contentUpdatesDataService=u.InstanceManager.getInstance(un.ContentUpdates,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.videoMixinService=u.InstanceManager.getInstance(sn.VideoMixin,this)}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0},videos:{el:".video-list-region",replaceElement:!0,partialLoading:r.VideoGroupList},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(f.SETTINGS,"".concat(F.SETTINGS,":sync"),this.render),this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(f.RESTRICTED_VIDEO,"".concat(F.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,V.Filters.FILTER_CHANGED,s.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"initializeFilterCollection",value:function(){var e=this;this.filterCollection||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"onLibrariesSync",value:function(e){var t=this;this.filterCollection||(this.libraryIds=nG.getLibraryIds(this.options.queryParams[gq.Libraries],e),this.subjectCollectionIdentifier=new JY({dateQueryString:this.options.queryParams[gq.ReleaseDate],libraryIds:this.libraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)})))}},{key:"onSubjectsSync",value:function(e,t){var n=nG.getSubjectOptions(t);this.filterCollection=nG.getFilterCollection(e,n,this.options.queryParams);var o=nG.getSelectedSubjects(this.filterCollection),r=n.length>1&&n.length===o.length;this.videoCollectionIdentifier=new HY({dateQueryString:this.options.queryParams[gq.ReleaseDate],libraryIds:this.libraryIds,subjects:!r&&o,cursor:this.options.queryParams.cursor}),this.listenTo(f.CONTENT_UPDATES,"".concat(this.videoCollectionIdentifier.toString(),":sync"),this.render),this.fetchVideos()}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new xr(this.videoCollection.map((function(e){return new jl({id:e.get("id")})}))))}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,null,(function(){return e.render()}))}},{key:"onFilterChange",value:function(){u.Core.AppLinkHelper.trigger({application:y.CONTENT_UPDATES,action:M.ContentUpdates.PAST_RELEASES,params:nG.getRouteQueryParams(this.filterCollection)})}},{key:"onClickGeneratePdf",value:function(){this.videoCollection.length&&(u.Core.AppLinkHelper.trigger({application:y.CONTENT_UPDATES,action:M.ContentUpdates.GENERATE_PDF,params:nG.getRouteQueryParams(this.filterCollection)}),this.logPdfAction())}},{key:"getContentClassName",value:function(){var e=hY.a.content;return this.reviewSetting&&this.reviewSetting.get("value")?e+=" d-inline-block border-left ".concat(hY.a.contentWithLeftNav):e+=" w-100",e}},{key:"logPdfAction",value:function(){var e={location:jb.LocationContext.PastReleasesHeader,actionType:jb.UserAction.Create,entity:jb.EntityType.PDF,workflowPhase:jb.WorkflowPhase.Start},t=nG.getSelectedSubjects(this.filterCollection),n=nG.getSelectedReleaseDate(this.filterCollection),o={libraries:this.libraryIds.join(","),subjects:t.map((function(e){return e.get("name")})).join(","),releaseDate:n.get("name")};jb.AnalyticsHelper.logUserAction(o,e)}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new uY({activeTab:iG,reviewEnabled:this.reviewSetting.get("value")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.reviewSetting.get("value")&&this.showChildView("leftNav",new XG({supportSiteUrl:this.config.get("supportSiteUrl")}))}},{key:"renderListHeader",value:function(){this.showChildView("listHeader",new tZ({filterCollection:this.filterCollection,channelName:this.channelName,showGeneratePdf:!!this.videoCollection&&!!this.videoCollection.length}))}},{key:"renderVideos",value:function(){this.config&&this.groupedVideoCollection?this.showChildView("videos",new WG({collection:this.groupedVideoCollection,childOptions:{config:this.config,videoItemComponentType:UA.PastReleases,videosWithMetadata:this.videosWithMetadata,customerHasCustomLibrary:this.customLibraries&&!!this.customLibraries.length,collectionViewChannel:this.channelName},emptyStateType:S.PastReleases,emptyStateOptions:{heading:u.LanguageService.getPhrase(this.lang,"emptyState")}})):this.renderPartialLoading("videos")}},{key:"renderPagination",value:function(){if(this.videoCollection){var e=this.contentUpdatesDataService.getVideoCollectionCursors(this.videoCollectionIdentifier),t=new p.PaginationComponent({cursors:e,appLink:{application:y.CONTENT_UPDATES,action:M.ContentUpdates.PAST_RELEASES,params:nG.getRouteQueryParams(this.filterCollection)}});this.showChildView("pagination",t)}}},{key:"fetchVideos",value:function(){this.filterCollection&&!this.videoCollection&&(this.videoCollection=this.contentUpdatesDataService.getRecentVideos(this.videoCollectionIdentifier),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=nG.groupVideosByReleaseMonth(this.videoCollection)))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"onBeforeRender",value:function(){this.initializeFilterCollection(),this.fetchVideos(),this.videoCollection&&(this.groupedVideoCollection=nG.groupVideosByReleaseMonth(this.videoCollection)),this.reviewSetting=this.settingsDataService.getSetting(this.currentUser.get("customerId"),v.LibraryReview)}},{key:"viewOptions",value:function(){return{showLeftNav:this.reviewSetting&&this.reviewSetting.get("value"),contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos(),this.renderPagination()}},{key:"name",get:function(){return"PastReleasesView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.pastReleases"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white"}},{key:"template",get:function(){return oZ.a}},{key:"requiredResources",get:function(){return{config:IB.config,currentUser:GB.currentUser,customLibraries:XL.libraries}}}])&&iZ(n.prototype,o),i&&iZ(n,i),t}(u.Core.View),cZ="library:status";function pZ(e){return(pZ="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 fZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hZ(e,t){return!t||"object"!==pZ(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 dZ(e){return(dZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yZ(e,t){return(yZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gZ=function(e){function t(){return fZ(this,t),hZ(this,dZ(t).apply(this,arguments))}return 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&&yZ(e,t)}(t,e),t}(u.Core.Model);function mZ(e){return(mZ="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 bZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vZ(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 wZ(e,t){return!t||"object"!==mZ(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 SZ(e){return(SZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kZ(e,t){return(kZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var OZ=function(e){function t(){return bZ(this,t),wZ(this,SZ(t).apply(this,arguments))}var n,o,r;return 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&&kZ(e,t)}(t,e),n=t,(o=[{key:"idAttribute",get:function(){return"videoId"}}])&&vZ(n.prototype,o),r&&vZ(n,r),t}(u.Core.Model);function CZ(e){return(CZ="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 EZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _Z(e,t){return!t||"object"!==CZ(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 TZ(e){return(TZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function PZ(e,t){return(PZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xZ=function(e){function t(){return EZ(this,t),_Z(this,TZ(t).apply(this,arguments))}return 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&&PZ(e,t)}(t,e),t}(u.Core.Model);function IZ(e){return(IZ="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 LZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jZ(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 RZ(e,t){return!t||"object"!==IZ(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 DZ(e){return(DZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function NZ(e,t){return(NZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var AZ=function(e){function t(){return LZ(this,t),RZ(this,DZ(t).apply(this,arguments))}var n,o,r;return 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&&NZ(e,t)}(t,e),n=t,(o=[{key:"associations",get:function(){return{keyContact:Gs,finalisationTask:xZ}}}])&&jZ(n.prototype,o),r&&jZ(n,r),t}(u.Core.NestedModel);function MZ(e){return(MZ="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 VZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UZ(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 FZ(e,t){return!t||"object"!==MZ(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 BZ(e,t,n){return(BZ="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=HZ(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function HZ(e){return(HZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function WZ(e,t){return(WZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var zZ=function(e){function t(){return VZ(this,t),FZ(this,HZ(t).apply(this,arguments))}var n,o,r;return 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&&WZ(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.id=e.chord,e.children&&!e.children.length&&(e.children=null),e}},{key:"associations",get:function(){return s.extend({},BZ(HZ(t.prototype),"associations",this),{children:y$})}}])&&UZ(n.prototype,o),r&&UZ(n,r),t}(fl);function qZ(e){return(qZ="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 GZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YZ(e,t){return!t||"object"!==qZ(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 JZ(e){return(JZ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function KZ(e,t){return(KZ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var QZ=function(e){function t(){return GZ(this,t),YZ(this,JZ(t).apply(this,arguments))}return 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&&KZ(e,t)}(t,e),t}(u.Core.Model);function ZZ(e){return(ZZ="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 $Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XZ(e,t){return!t||"object"!==ZZ(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$(e){return(e$=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t$(e,t){return(t$=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var n$=function(e){function t(){return $Z(this,t),XZ(this,e$(t).apply(this,arguments))}return 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&&t$(e,t)}(t,e),t}(u.Core.Model);function o$(e){return(o$="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 r$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i$(e,t){return!t||"object"!==o$(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 a$(e){return(a$=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l$(e,t){return(l$=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s$=function(e){function t(){return r$(this,t),i$(this,a$(t).apply(this,arguments))}return 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)}(t,e),t}(u.Core.Model);function u$(e){return(u$="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 c$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 f$(e,t){return!t||"object"!==u$(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)}function d$(e,t){return(d$=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y$=function(e){function t(){return c$(this,t),f$(this,h$(t).apply(this,arguments))}var n,o,r;return 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)}(t,e),n=t,(o=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return zZ}}])&&p$(n.prototype,o),r&&p$(n,r),t}(yr);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 m$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b$(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v$(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 w$(e){return(w$=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S$(e,t){return(S$=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k$=function(e){function t(){return m$(this,t),v$(this,w$(t).apply(this,arguments))}var n,o,r;return 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)}(t,e),n=t,(o=[{key:"model",get:function(){return OZ}}])&&b$(n.prototype,o),r&&b$(n,r),t}(u.Core.Collection);function O$(e){return(O$="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 C$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _$(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 T$(e,t){return!t||"object"!==O$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P$(e){return(P$=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x$(e,t){return(x$=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var I$=function(e){var t={categoryChord:e};return"/api/homemigrator/v1/customers/categories/videos?".concat($.param(t,!0))},L$=function(){return"/api/homemigrator/v1/customers/categories"},j$=function(){return"/api/homemigrator/v1/customer-meta"},R$=function(e){return"/api/homemigrator/v1/synced-videos/publisher-metadata?trackingCode=".concat(e)},D$=function(e){return"/api/homemigrator/v1/synced-videos/publisher-metadata?masterId=".concat(e)},N$=function(){return"/api/homemigrator/v1/backup/progress"},A$=function(e){return"/api/homemigrator/v1/customer-meta/options/".concat(e)},M$=function(){return"/api/homemigrator/v1/finalise/smart"},V$=function(){return"/api/homemigrator/v1/finalise/full"},U$=function(e){return"/api/homemigrator/v1/finalise/".concat(e)},F$=function(e){return"/api/homemigrator/v1/backup-tools/head?channel=".concat(e)},B$=function(){return"/api/homemigrator/v1/finalise/phase2"},H$=function(e){return"/api/homemigrator/v1/finalise?type=".concat(e)},W$=function(){return"/api/homemigrator/v1/customers/reviewvideos"},z$=function(){return"/api/homemigrator/v1/customers/reviewvideos/count"},q$=function(){return"/api/homemigrator/v1/synced-videos/migrationstatus"},G$=function(e){return"/api/homemigrator/v1/reports/".concat(e)},Y$=function(){return"/api/homemigrator/v1/reports"},J$=function(e){return"/api/homemigrator/v2/customers/videos/smart?limit=987".concat(e?"&cursor=".concat(e):"")},K$={video:function(e){return new u.Core.Model(e[0],{parse:!0})},videos:function(e){return new xr(e,{parse:!0})},smartSelectVideos:function(e){return new k$(e)},videoCount:function(e){return new s$(e)},folders:function(e){return new y$(e,{parse:!0})},customerMetadata:function(e){return new AZ(e)},finalisationTask:function(e){return new xZ(e)},backupTool:function(e){return new gZ(e)}},Q$=F,Z$=function(e){function t(){return E$(this,t),T$(this,P$(t).apply(this,arguments))}var n,o,r;return 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)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.folderCacheService=u.InstanceManager.getInstance(sn.FolderCache,this)}},{key:"clearVideoCache",value:function(){this.invalidateCache([Q$.CUSTOMER_VIDEOS])}},{key:"getCustomerFolders",value:function(e){return this.get({callback:e,expiryTime:Pn.STANDARD,formatData:K$.folders,resource:L$(),eventPrefix:"".concat(Q$.CUSTOMER_FOLDERS)})}},{key:"getCustomerVideos",value:function(e,t){return this.get({callback:t,expiryTime:Pn.STANDARD,formatData:function(t){return s.each(t,(function(t){return t.categoryChord=e})),new xr(t)},resource:I$(e),eventPrefix:"".concat(Q$.CUSTOMER_VIDEOS,":").concat(escape(e))})}},{key:"clearCacheAndgetCustomerSmartSelect",value:function(e,t){var n=this,o=function(e,t){n.clearCacheAndGet({expiryTime:Pn.STANDARD,resource:J$(e),eventPrefix:"".concat(Q$.CUSTOMER_SMART_VIDEOS),errorHandler:n.alertService.error({useXHR:!0}),callback:t})},r=[];o("",(function n(i){i.data.length&&r.push.apply(r,i.data),e(r.length),null===i.cursor?t(new k$(r)):o(i.cursor,n)}))}},{key:"getCustomerMetadata",value:function(e){return this.get({callback:e,expiryTime:Pn.STANDARD,formatData:K$.customerMetadata,resource:j$(),eventPrefix:"".concat(Q$.CUSTOMER_METADATA),bootstrapName:En.CUSTOMER_META})}},{key:"clearCacheAndGetCustomerMetadata",value:function(e){return this.clearCacheAndGet({callback:e,formatData:K$.customerMetadata,resource:j$(),eventPrefix:"".concat(Q$.CUSTOMER_METADATA)})}},{key:"getCustomerVideoByTrackingCode",value:function(e,t){return this.get({callback:t,expiryTime:Pn.STANDARD,formatData:K$.video,resource:R$(e),eventPrefix:"".concat(Q$.CUSTOMER_VIDEO,":").concat(e)})}},{key:"getCustomerVideoByMasterId",value:function(e,t){return this.get({callback:t,expiryTime:Pn.STANDARD,formatData:K$.video,resource:D$(e),eventPrefix:"".concat(Q$.CUSTOMER_VIDEO,":").concat(e),errorHandler:!1})}},{key:"getCustomerVideoCount",value:function(e){this.clearCacheAndGet({callback:e,expiryTime:Pn.STANDARD,formatData:K$.videoCount,resource:N$(),eventPrefix:"".concat(Q$.CUSTOMER_VIDEO,":count")})}},{key:"getCustomerVideoCountCached",value:function(e){return this.get({callback:e,expiryTime:Pn.STANDARD,formatData:K$.videoCount,resource:N$(),eventPrefix:"".concat(Q$.CUSTOMER_VIDEO,":count")})}},{key:"updateCustomerMigrationOption",value:function(e,t){return this.update({data:{},resource:A$(e),eventPrefix:"".concat(Q$.CUSTOMER_METADATA,":update"),callback:t,invalidationKeys:["".concat(Q$.CUSTOMER_METADATA),"libraries"]})}},{key:"finaliseCustomerVideos",value:function(e,t,n){var o=this,r=e.map((function(e){return{category:e.get("folderChord"),videoIds:e.get("videoIds"),forceMigrateWarnings:t}}));this.create({data:r,callback:function(e){o.clearVideoCache(),s.isFunction(n)&&n(e)},resource:M$(),eventPrefix:"".concat(Q$.CUSTOMER_VIDEOS,":finalise"),invalidationKeys:["manual:review:videos","manual:review:video:count",Q$.VIDEOS],formatData:function(e){return new xZ(e)}})}},{key:"finaliseAllVideos",value:function(e){var t=this;this.create({data:{},callback:function(n){t.clearVideoCache(),s.isFunction(e)&&e(n)},resource:V$(),eventPrefix:"".concat(Q$.CUSTOMER_VIDEOS,":finalise:all"),formatData:function(e){return new xZ(e)}})}},{key:"getFinalisationTask",value:function(e,t){this.clearCacheAndGet({callback:t,expiryTime:Pn.STANDARD,formatData:K$.finalisationTask,resource:U$(e),eventPrefix:"".concat(Q$.FINALISATION,":").concat(e)})}},{key:"deselectAll",value:function(){this.getCustomerFolders((function(e){sh.deselectAll(gL,e)}))}},{key:"setSelected",value:function(e){var t=this;this.getCustomerFolders((function(n){sh.setSelected(gL,t.folderCacheService.getFolderByChord(e,n),n)}))}},{key:"getSelected",value:function(e){this.getCustomerFolders((function(t){var n=sh.getSelected(gL,t);e(n)}))}},{key:"getBackupTool",value:function(e,t){return this.get({resource:F$(e),formatData:K$.backupTool,eventPrefix:Q$.BACKUP_TOOL,callback:t})}},{key:"publishLibraries",value:function(e){return this.create({data:{},resource:B$(),eventPrefix:"publish:libraries",callback:e})}},{key:"getPublishLibrariesProgress",value:function(e,t){this.clearCacheAndGet({resource:H$(e),eventPrefix:"current:finalisation:task",formatData:K$.finalisationTask,callback:t})}},{key:"clearCacheAndGetManualReviewVideoCount",value:function(e){this.clearCacheAndGet({resource:z$(),eventPrefix:"manual:review:video:count",formatData:function(e){return new u.Core.Model(e)},callback:e})}},{key:"getManualReviewVideoCount",value:function(e){return this.get({resource:z$(),eventPrefix:"manual:review:video:count",formatData:function(e){return new u.Core.Model(e)},callback:e})}},{key:"getManualReviewVideos",value:function(e){return this.get({resource:W$(),eventPrefix:"manual:review:videos",formatData:function(e){return new u.Core.Collection(e)},callback:e})}},{key:"updateMigrationStatus",value:function(e,t,n){this.update({data:{videoIds:e,migrationStatus:t},resource:q$(),eventPrefix:"update:migration:status",invalidationKeys:["manual:review:videos","manual:review:video:count"],callback:n})}},{key:"getMigrationReportOptions",value:function(e){return this.get({resource:Y$(),eventPrefix:"get:migration:report:options",callback:e})}},{key:"generateMigrationReportCsv",value:function(e,t){var n,o=this,r=(C$(n={},az.Migrated,"homemigrator.le.migration.migrated.report"),C$(n,az.Remaining,"homemigrator.le.migration.remaining.videos.report"),C$(n,az.Errored,"homemigrator.le.migration.error.report"),C$(n,az.ContentMatched,"homemigrator.le.migration.content.matched.report"),n),i=new u.ConcurrencyHelper(e.length),a=function(){i.decrement(),0===i.getValue()&&(o.alertService.success(u.LanguageService.getPhrase(o.lang,"generateCsvSuccess"))(),t())};s.each(e,(function(e){o.create({callback:a,resource:G$(r[e]),data:{},eventPrefix:"generate:migration:report:csv:".concat(e),errorHandler:o.alertService.error(u.LanguageService.getPhrase(o.lang,"generateCsvFail"))})}))}},{key:"name",get:function(){return"MigrationVideoDataService"}},{key:"channelName",get:function(){return f.MIGRATION}},{key:"lang",get:function(){return"migrationWizard.services"}}])&&_$(n.prototype,o),r&&_$(n,r),t}(u.BaseDataService),$$={customerMetaData:{dataServiceName:f.MIGRATION,eventName:"".concat(Q$.CUSTOMER_METADATA,":sync"),getData:function(e){return e.getCustomerMetadata()},getInstance:function(e){return u.InstanceManager.getInstance(un.MigrationVideo,e)},beforeOnBeforeRender:!0}},X$=n(330),eX=n.n(X$);function tX(e){return(tX="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 nX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oX(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 rX(e,t){return!t||"object"!==tX(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 iX(e){return(iX=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aX(e,t){return(aX=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lX=function(e){function t(){return nX(this,t),rX(this,iX(t).apply(this,arguments))}var n,o,r;return 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&&aX(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this)}},{key:"onClickContinue",value:function(){var e=this;yf.channel(this.channelName).trigger(oB.ShowSpinner);var t=0,n=function(){++t===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),yf.channel(cZ).trigger("status:changed"))};dz.noPublisher(this.customerMetadata)?this.libraries.each((function(t){e.libraryDataService.publishLibrary(t.get("id"),n)})):this.migrationVideoDataService.publishLibraries((function(){u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PUBLISH_LIBRARY_PROGRESS})}))}},{key:"viewOptions",value:function(){return{noPublisher:dz.noPublisher(this.customerMetadata)}}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return eX.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:u.LanguageService.getPhrase(this.lang,"heading"),behaviorClass:Sg,spinnerButtonOptions:{channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"requiredResources",get:function(){return{libraries:XL.libraries,customerMetadata:$$.customerMetaData}}}])&&oX(n.prototype,o),r&&oX(n,r),t}(u.Core.View);function sX(e){return(sX="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 uX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cX(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 pX(e,t,n){return t&&cX(e.prototype,t),n&&cX(e,n),e}function fX(e,t){return!t||"object"!==sX(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 hX(e){return(hX=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dX(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&&yX(e,t)}function yX(e,t){return(yX=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gX=function(e){function t(){return uX(this,t),fX(this,hX(t).apply(this,arguments))}return dX(t,e),pX(t,[{key:"channelName",get:function(){return y.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"manage/content-updates(/)":"index","manage/content-updates/awaiting-review(/)":"awaitingReview","manage/content-updates/past-releases(/)":"pastReleases"}}},{key:"appLinks",get:function(){return["shareVideo","disableReview","generatePdf","manageVideoAccess","addToLibrary","makeLibraryAvailable"]}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,iq]}}]),t}(u.Core.AppRouter),mX=function(e){function t(){return uX(this,t),fX(this,hX(t).apply(this,arguments))}return dX(t,e),pX(t,[{key:"index",value:function(){u.Core.AppLinkHelper.trigger({application:this.channelName,action:M.ContentUpdates.AWAITING_REVIEW},{replace:!0})}},{key:"awaitingReview",value:function(){this.layout.showChildView(an.CONTENT,new wY)}},{key:"pastReleases",value:function(e){var t=e[gq.ReleaseDate]||sG.queryString,n=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},gq.ReleaseDate,t);this.setDefaultQueryParams(n),this.layout.showChildView(an.CONTENT,new uZ({queryParams:s.extend({},e,n)}))}},{key:"generatePdf",value:function(e){var t=new cJ({librariesQueryString:e[gq.Libraries],dateQueryString:e[gq.ReleaseDate],subjectQueryString:e[gq.Subjects]});this.layout.showChildView(an.POPUP,t)}},{key:"shareVideo",value:function(e){this.layout.showChildView(an.POPUP,new uz({videoId:e}))}},{key:"disableReview",value:function(){this.layout.showChildView(an.POPUP,new xY)}},{key:"manageVideoAccess",value:function(e){this.layout.showChildView(an.POPUP,new AW({videoId:e}))}},{key:"addToLibrary",value:function(e){this.layout.showChildView(an.POPUP,new vG({videoId:e}))}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"name",get:function(){return"ContentUpdatesApplication"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.CONTENT_UPDATES,selectedNavItem:{application:y.CONTENT_UPDATES,action:M.ContentUpdates.AWAITING_REVIEW}}}}},{key:"channelName",get:function(){return y.CONTENT_UPDATES}}],[{key:"router",get:function(){return gX}}]),t}(u.Core.Application),bX=n(331),vX=n.n(bX),wX=n(32),SX=n.n(wX);function kX(e){return(kX="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 OX(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 CX(e,t){return!t||"object"!==kX(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 EX(e){return(EX=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _X(e,t){return(_X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var TX=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),CX(this,EX(t).call(this,e))}var n,o,i;return 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)}(t,e),n=t,(o=[{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:r.DashboardActionTile},emptyState:{el:".empty-state-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return s.extend({},this.options,{styles:SX.a,count:this.collection&&this.collection.length,descriptionClass:this.options.descriptionClass})}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"name",get:function(){return"DashboardActionTileComponent"}},{key:"template",get:function(){return vX.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.EmptyStateBehavior,region:"emptyState",type:this.options.emptyState,componentOptions:{imageClass:SX.a.emptyStateImage},emptyStateComponents:wn}]}},{key:"appLinks",get:function(){return this.options.appLink?{".action-link":this.options.appLink,".action-btn":this.options.appLink}:{}}}])&&OX(n.prototype,o),i&&OX(n,i),t}(u.Core.Component),PX=n(332),xX=n.n(PX);function IX(e){return(IX="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 LX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jX(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 RX(e,t){return!t||"object"!==IX(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 DX(e){return(DX=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function NX(e,t){return(NX=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var AX=function(e){function t(){return LX(this,t),RX(this,DX(t).apply(this,arguments))}var n,o,r;return 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&&NX(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return this.options}},{key:"name",get:function(){return"DashboardInfoTileComponent"}},{key:"template",get:function(){return xX.a}}])&&jX(n.prototype,o),r&&jX(n,r),t}(u.Core.Component),MX=n(333),VX=n.n(MX),UX=n(44),FX=n.n(UX);function BX(e){return(BX="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 HX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WX(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 zX(e,t){return!t||"object"!==BX(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 qX(e){return(qX=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GX(e,t){return(GX=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var YX=function(e){function t(){return HX(this,t),zX(this,qX(t).apply(this,arguments))}var n,o,i;return 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&&GX(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{notifications:{el:".notifications-region",replaceElement:!1,partialLoading:r.DashboardNotifications}}}},{key:"renderNotificationList",value:function(){var e=new p.NotificationListComponent({collection:this.collection,childType:p.NotificationChildType.Popover});this.showChildView("notifications",e)}},{key:"viewOptions",value:function(){return{styles:FX.a,noNotifications:this.collection&&!this.collection.length}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList()}},{key:"name",get:function(){return"DashboardNotificationsComponent"}},{key:"className",get:function(){return"d-flex flex-column"}},{key:"template",get:function(){return VX.a}},{key:"lang",get:function(){return"dashboard.dashboardNotifications"}},{key:"appLinks",get:function(){return{".see-all":{application:y.NOTIFICATIONS,action:M.Notifications.HOME}}}}])&&WX(n.prototype,o),i&&WX(n,i),t}(u.Core.Component),JX=n(334),KX=n.n(JX);function QX(e){return(QX="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 ZX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function XX(e,t){return!t||"object"!==QX(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 e0(e){return(e0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t0(e,t){return(t0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var n0=function(e){function t(){return ZX(this,t),XX(this,e0(t).apply(this,arguments))}var n,o,r;return 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&&t0(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{content:{el:".content-region",replaceElement:!0}}}},{key:"hasSubList",value:function(){return this.model.get("component")===c0}},{key:"getChildComponent",value:function(){var e=this.model.get("component");return e||u.Core.ErrorHelper.throw(new u.DevError("Must define a child component for ".concat(this.name,"."))),new e(this.model.get("options")||{})}},{key:"onRender",value:function(){this.showChildView("content",this.getChildComponent())}},{key:"name",get:function(){return"DashboardTileContainerComponent"}},{key:"template",get:function(){return KX.a}},{key:"className",get:function(){var e="";return this.hasSubList()||(e+=" bg-white p-3"),this.model.get("isInner")||(e+=" m-2"),this.model.get("className")&&(e+=" ".concat(this.model.get("className"))),e}}])&&$X(n.prototype,o),r&&$X(n,r),t}(u.Core.Component),o0=n(335),r0=n.n(o0);function i0(e){return(i0="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 a0(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 l0(e,t){return!t||"object"!==i0(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 s0(e){return(s0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u0(e,t){return(u0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c0=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l0(this,s0(t).call(this,e))}var n,o,r;return 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&&u0(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"DashboardTileListComponent"}},{key:"className",get:function(){var e="d-flex flex-wrap justify-content-between h-100 ".concat(r0.a.tileList);return this.options.flexDirection&&(e+=" ".concat(this.options.flexDirection)),e}},{key:"childView",get:function(){return n0}}])&&a0(n.prototype,o),r&&a0(n,r),t}(u.Core.ComponentCollection),p0=n(111),f0=n.n(p0),h0=n(336),d0=n.n(h0);function y0(e){return(y0="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 g0(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 m0(e,t){return!t||"object"!==y0(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 b0(e){return(b0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v0(e,t){return(v0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var w0=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m0(this,b0(t).call(this,e))}var n,o,r;return 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&&v0(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.notificationService=u.InstanceManager.getInstance(sn.Notifications,this),this.contentUpdatesDataService=u.InstanceManager.getInstance(un.ContentUpdates,this),this.staffRequestDataService=u.InstanceManager.getInstance(un.StaffRequests,this),this.settingsDataService=u.InstanceManager.getInstance(un.Settings,this)}},{key:"regions",value:function(){return{content:{el:".content-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(f.SETTINGS,"".concat(F.SETTINGS,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(f.STAFF_REQUEST,"".concat(F.STAFF_REQUESTS,":sync"),this.render)}},{key:"getComponentCollection",value:function(){return new u.Core.Collection([{component:c0,options:{flexDirection:"flex-column",collection:new u.Core.Collection(this.getActionTiles())}},{component:YX,className:FX.a.tile,options:{collection:this.notificationCollection}},{component:AX,className:f0.a.tile,options:{title:u.LanguageService.getPhrase(this.lang,"train"),description:u.LanguageService.getPhrase(this.lang,"trainInfo"),links:[{text:u.LanguageService.getPhrase(this.lang,"whatIsClickview"),url:"https://clickview.com.au"},{text:u.LanguageService.getPhrase(this.lang,"findAndShare"),url:"https://clickview.com.au"},{text:u.LanguageService.getPhrase(this.lang,"trainingChannel"),url:"https://clickview.com.au"}]}},{component:AX,className:f0.a.tile,options:{title:u.LanguageService.getPhrase(this.lang,"faq"),links:[{text:u.LanguageService.getPhrase(this.lang,"whatIsLibraryEditor"),url:"https://clickview.com.au"},{text:u.LanguageService.getPhrase(this.lang,"manageStudentAccess"),url:"https://clickview.com.au"},{text:u.LanguageService.getPhrase(this.lang,"reviewContent"),url:"https://clickview.com.au"},{text:u.LanguageService.getPhrase(this.lang,"addToSchoolLibrary"),url:"https://clickview.com.au"},{text:u.LanguageService.getPhrase(this.lang,"manageStaffRequests"),url:"https://clickview.com.au"}]}}])}},{key:"getActionTiles",value:function(){var e=[{component:TX,className:SX.a.tile,isInner:!0,options:this.getContentUpdatesComponentOptions()}];return this.isStaffRequestsEnabled&&e.splice(0,0,{component:TX,className:SX.a.tile,isInner:!0,options:this.getStaffRequestsComponentOptions()}),e}},{key:"getStaffRequestsComponentOptions",value:function(){var e=this.staffRequestCollection&&this.staffRequestCollection.length,t=this.staffRequestCollection&&this.staffRequestCollection.length>1?u.LanguageService.getPhrase(this.lang,"videos"):u.LanguageService.getPhrase(this.lang,"video"),n=e?"".concat(t," ").concat(u.LanguageService.getPhrase(this.lang,"requested")):u.LanguageService.getPhrase(this.lang,"caughtUp"),o=e?"":"text-muted",r=e?u.LanguageService.getPhrase(this.lang,"manageRequests"):"";return{title:u.LanguageService.getPhrase(this.lang,"staffRequests"),collection:this.staffRequestCollection,description:n,descriptionClass:o,btnText:r,appLink:{application:y.STAFF_REQUESTS,action:M.StaffRequests.HOME},emptyState:S.StaffRequestsDashboardTile}}},{key:"getContentUpdatesComponentOptions",value:function(){var e=this.contentUpdatesCollection&&this.contentUpdatesCollection.length,t=this.contentUpdatesCollection&&this.contentUpdatesCollection.length>1?u.LanguageService.getPhrase(this.lang,"videos"):u.LanguageService.getPhrase(this.lang,"video"),n=e?"".concat(t," ").concat(u.LanguageService.getPhrase(this.lang,"awaitingApproval")):"",o=e?u.LanguageService.getPhrase(this.lang,"approve"):u.LanguageService.getPhrase(this.lang,"viewPastReleases"),r=e?M.ContentUpdates.AWAITING_REVIEW:M.ContentUpdates.PAST_RELEASES;return{title:u.LanguageService.getPhrase(this.lang,"contentUpdates"),collection:this.contentUpdatesCollection,description:n,btnText:o,emptyStateImageUrl:yn.EmptyStates.ContentUpdatesDashboardTile,appLink:{application:y.CONTENT_UPDATES,action:r},emptyState:S.ContentUpdatesDashboardTile}}},{key:"fetchData",value:function(){this.fetchNotifications(),this.fetchContentUpdates(),this.staffRequestSetting=this.settingsDataService.getSetting(this.currentUser.get("customerId"),v.StaffRequest),this.staffRequestSetting&&(this.isStaffRequestsEnabled=this.staffRequestSetting.get("value")===C.StaffRequest,this.isStaffRequestsEnabled&&this.fetchStaffRequests())}},{key:"fetchNotifications",value:function(){var e=this;this.notificationCollection||this.notificationService.getNotifications(null,this.getNotificationCollectionIdentifier(),(function(t){e.notificationCollection=t,e.render()}))}},{key:"fetchContentUpdates",value:function(){this.contentUpdatesCollection||(this.contentUpdatesCollection=this.contentUpdatesDataService.getVideosToReview())}},{key:"fetchStaffRequests",value:function(){this.staffRequestCollection||(this.staffRequestCollection=this.staffRequestDataService.getStaffRequests())}},{key:"getNotificationCollectionIdentifier",value:function(){return this.notificationCollectionIdentifier?this.notificationCollectionIdentifier:this.notificationCollectionIdentifier=new p.CollectionIdentifier({collectionPrefix:F.NOTIFICATIONS})}},{key:"onBeforeRender",value:function(){return this.fetchData(),!0}},{key:"onRender",value:function(){this.showChildView("content",new c0({collection:this.getComponentCollection()}))}},{key:"name",get:function(){return"DashboardView"}},{key:"template",get:function(){return d0.a}},{key:"lang",get:function(){return"dashboard.dashboard"}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&g0(n.prototype,o),r&&g0(n,r),t}(u.Core.View);function S0(e){return(S0="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 k0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O0(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 C0(e,t,n){return t&&O0(e.prototype,t),n&&O0(e,n),e}function E0(e,t){return!t||"object"!==S0(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 _0(e){return(_0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T0(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&&P0(e,t)}function P0(e,t){return(P0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x0=function(e){function t(){return k0(this,t),E0(this,_0(t).apply(this,arguments))}return T0(t,e),C0(t,[{key:"channelName",get:function(){return y.DASHBOARD}},{key:"appRoutes",get:function(){return{"manage/overview(/)":"index"}}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,iq]}}]),t}(u.Core.AppRouter),I0=function(e){function t(){return k0(this,t),E0(this,_0(t).apply(this,arguments))}return T0(t,e),C0(t,[{key:"index",value:function(){this.layout.showChildView(an.CONTENT,new w0)}},{key:"name",get:function(){return"DashboardApplication"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.DASHBOARD,selectedNavItem:{application:y.DASHBOARD,action:M.Dashboard.HOME}}}}},{key:"channelName",get:function(){return y.DASHBOARD}}],[{key:"router",get:function(){return x0}}]),t}(u.Core.Application),L0=n(337),j0=n.n(L0),R0=n(338),D0=n.n(R0);function N0(e){return(N0="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 A0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M0(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 V0(e,t){return!t||"object"!==N0(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 U0(e){return(U0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F0(e,t){return(F0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var B0=function(e){function t(){return A0(this,t),V0(this,U0(t).apply(this,arguments))}var n,o,r;return 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&&F0(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return{styles:D0.a,linkClasses:"applink-home info-link"}}},{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return j0.a}},{key:"appLinks",get:function(){return{".applink-home":{application:y.DEFAULT,action:M.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center"}}])&&M0(n.prototype,o),r&&M0(n,r),t}(u.Core.View),H0=n(339),W0=n.n(H0);function z0(e){return(z0="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 q0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G0(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 Y0(e,t){return!t||"object"!==z0(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 J0(e){return(J0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function K0(e,t){return(K0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Q0=function(e){function t(){return q0(this,t),Y0(this,J0(t).apply(this,arguments))}var n,o,r;return 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&&K0(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=sp.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return W0.a}},{key:"className",get:function(){return"mt-5"}}])&&G0(n.prototype,o),r&&G0(n,r),t}(u.Core.View),Z0=n(340),$0=n.n(Z0),X0=n(341),e1=n.n(X0);function t1(e){return(t1="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 n1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o1(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 r1(e,t){return!t||"object"!==t1(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 i1(e){return(i1=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a1(e,t){return(a1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l1=function(e){function t(){return n1(this,t),r1(this,i1(t).apply(this,arguments))}var n,o,r;return 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&&a1(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=yf.channel("error:view");this.error=e.request("current:error")}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageNumber:Math.round(5*Math.random()+1),styles:e1.a}}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center"}},{key:"template",get:function(){return $0.a}},{key:"appLinks",get:function(){return this.error.appLink||{}}}])&&o1(n.prototype,o),r&&o1(n,r),t}(u.Core.View);function s1(e){return(s1="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 u1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c1(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 p1(e,t,n){return t&&c1(e.prototype,t),n&&c1(e,n),e}function f1(e,t){return!t||"object"!==s1(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 h1(e){return(h1=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d1(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&&y1(e,t)}function y1(e,t){return(y1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g1=function(e){function t(){return u1(this,t),f1(this,h1(t).apply(this,arguments))}return d1(t,e),p1(t,[{key:"channelName",get:function(){return y.DEFAULT}},{key:"appRoutes",get:function(){return{"":"index","*path":"catchAllRoutes",logout:"logOut"}}},{key:"appLinks",get:function(){return["devError","error","notFound"]}}]),t}(u.Core.AppRouter),m1=function(e){function t(){return u1(this,t),f1(this,h1(t).apply(this,arguments))}return d1(t,e),p1(t,[{key:"index",value:function(){u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME},{replace:!0})}},{key:"catchAllRoutes",value:function(){u.Core.ErrorHelper.throw(new Jn)}},{key:"notFound",value:function(){this.layout.showChildView(an.CONTENT,new B0)}},{key:"error",value:function(){this.layout.showChildView(an.CONTENT,new l1)}},{key:"devError",value:function(){this.layout.showChildView(an.CONTENT,new Q0)}},{key:"logOut",value:function(){u.Core.LocationUtils.PageLoad("/logout")}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.DEFAULT,showFullHeader:!1,showTopNav:!1,allowBanner:!1}}}},{key:"channelName",get:function(){return y.DEFAULT}}],[{key:"router",get:function(){return g1}}]),t}(u.Core.Application),b1=n(342),v1=n.n(b1);function w1(e,t,n){return(w1="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_1(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function S1(e){return(S1="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 k1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O1(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 C1(e,t,n){return t&&O1(e.prototype,t),n&&O1(e,n),e}function E1(e,t){return!t||"object"!==S1(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 _1(e){return(_1=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T1(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&&P1(e,t)}function P1(e,t){return(P1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x1=function(e){function t(e){return k1(this,t),E1(this,_1(t).call(this,e))}return T1(t,e),C1(t,[{key:"initialize",value:function(){this.bindListeners(),this.getSortType(),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.pendingItemsService=u.InstanceManager.getInstance(sn.PendingItems,this),this.localCacheDataService=u.InstanceManager.getInstance(un.LocalCache,this),this.videoMixinService=u.InstanceManager.getInstance(sn.VideoMixin,this)}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0,partialLoading:r.Banner},header:{el:".header-region",replaceElement:!0,partialLoading:r.VideoListHeader},videoList:{el:".video-list-region",replaceElement:!0,partialLoading:r.VideoListWithBulkActions},childFolders:{el:".child-folders-region",replaceElement:!1,partialLoading:r.SubFolder},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this.options.collectionIdentifier.toString();this.listenTo(f.VIDEO,"".concat(e,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.DELETE_VIDEO,":sync"),this.fetchData),this.listenTo(f.VIDEO,"cache:cleared",this.render),this.listenTo(f.RESTRICTED_VIDEO,"".concat(F.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,"cancel:pending:item",this.cancelPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.retryPendingItem),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.LOCAL_CACHE,"".concat(F.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(f.LOCAL_CACHE,"".concat(F.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"getSortType",value:function(){this.sortType||(this.sortType=this.options.collectionIdentifier.sort)}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,this.collectionIdentifier,(function(){return e.render()}))}},{key:"cancelPendingItem",value:function(e){this.pendingItemsService.clearPendingItem(e)}},{key:"retryPendingItem",value:function(e){this.pendingItemsService.retryPendingItem(e)}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&(this.videosWithMetadata=new xr(this.videoCollection.map((function(e){return new jl({id:e.get("id")})}))))}},{key:"renderBanner",value:function(){var e=new qw({model:this.model,channelName:this.channelName,imageCdnUrl:this.config.get("imageCdnUrl")});this.showChildView("banner",e)}},{key:"renderChildFolders",value:function(){if(this.folderWithChildren&&this.folderWithChildren.children&&this.folderWithChildren.children.length){var e=new qC({collection:this.folderWithChildren.children});this.showChildView("childFolders",e)}}},{key:"renderHeader",value:function(){this.showChildView("header",new AE({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof fl&&this.model,application:y.LIBRARY_EDITOR,action:this.appLinkAction(),allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.options.analyticsOptions}))}},{key:"renderVideoList",value:function(){var e=new MM({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:y.LIBRARY_EDITOR,allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,config:this.config,pendingItems:this.pendingItemsService.getPendingItems(),videoItemComponentType:this.componentType,emptyStateType:this.emptyStateType(),emptyStateOptions:this.emptyStateOptions(),supportSiteUrl:this.config.get("supportSiteUrl"),collectionViewChannel:this.channelName,customerHasLocalCache:_h.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),analyticsOptions:this.options.analyticsOptions,sourceMetadataOptions:{showFolder:this.showFolderSource()},videoCollectionSource:this.getVideoCollectionSource()});this.showChildView("videoList",e)}},{key:"renderPagination",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new p.PaginationComponent({cursors:e,collectionId:this.options.collectionIdentifier.id,appLink:{application:y.LIBRARY_EDITOR,action:this.appLinkAction(),args:[this.collectionIdentifier.id],params:this.collectionIdentifier.toParams()},analyticsOptions:this.options.analyticsOptions});this.showChildView("pagination",t)}},{key:"fetchData",value:function(){this.fetchModel(),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.fetchVideoCollection()}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.videoCollection&&(this.setVideosWithMetadata(),!!this.model)}},{key:"onRender",value:function(){this.renderBanner(),this.renderChildFolders(),this.renderHeader(),this.renderVideoList(),this.renderPagination()}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"template",get:function(){return v1.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"requiredResources",get:function(){return{config:IB.config,currentUser:GB.currentUser,libraryCollection:XL.libraries,exchanges:XL.exchanges}}}]),t}(u.Core.View),I1=function(e){function t(){return k1(this,t),E1(this,_1(t).apply(this,arguments))}return T1(t,e),C1(t,[{key:"bindListeners",value:function(){this.listenTo(f.LIBRARY,"".concat(F.FOLDER,":").concat(this.options.collectionIdentifier.id,":sync libraries:sync"),this.render),this.listenTo(f.LIBRARY,"".concat(F.FOLDER,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),this.listenTo(f.LIBRARY,"".concat(F.UPDATE_FOLDER_BANNER,":").concat(this.options.collectionIdentifier.id,":sync"),this.fetchModel),w1(_1(t.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){switch(e.type){case u.DataServiceErrorType.Forbidden:u.Core.ErrorHelper.throw(new Ld);break;case u.DataServiceErrorType.NotFound:u.Core.ErrorHelper.throw(new Ed)}}},{key:"appLinkAction",value:function(){return M.LibraryEditor.FOLDER}},{key:"allowBulk",value:function(){return!0}},{key:"emptyStateType",value:function(){return S.Folder}},{key:"emptyStateOptions",value:function(){return{heading:u.LanguageService.getPhrase(this.lang,"emptyStateHeading"),description:u.LanguageService.getPhrase(this.lang,"emptyStateInfo",{url:u.UrlHelper.safeUrlConcat(this.config.get("supportSiteUrl"),cn.ADD_FROM_ONLINE),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!1}},{key:"getVideoCollectionSource",value:function(){return eh.Folder}},{key:"fetchModel",value:function(){this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getCollectionVideos(this.collectionIdentifier)}},{key:"onBeforeRender",value:function(){return this.folderWithChildren=sh.getModelFromCollection(this.collectionIdentifier.id,this.libraryCollection),this.folderWithChildren.children&&this.listenTo(this.folderWithChildren.children,"add remove",this.render),w1(_1(t.prototype),"onBeforeRender",this).call(this)}},{key:"name",get:function(){return"FolderView"}},{key:"lang",get:function(){return"libraryEditor.folderView"}},{key:"componentType",get:function(){return UA.Draggable}}]),t}(x1),L1=function(e){function t(){return k1(this,t),E1(this,_1(t).apply(this,arguments))}return T1(t,e),C1(t,[{key:"initialize",value:function(){this.seriesDataService=u.InstanceManager.getInstance(un.Series,this),w1(_1(t.prototype),"initialize",this).call(this)}},{key:"bindListeners",value:function(){this.listenTo(f.SERIES,"".concat(F.SERIES,":").concat(this.options.collectionIdentifier.id,":sync"),this.render),this.listenTo(f.SERIES,"".concat(F.SERIES,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),w1(_1(t.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){switch(e.type){case u.DataServiceErrorType.NotFound:u.Core.ErrorHelper.throw(new Kd)}}},{key:"appLinkAction",value:function(){return M.LibraryEditor.SERIES}},{key:"allowBulk",value:function(){return!1}},{key:"emptyStateType",value:function(){return S.Series}},{key:"emptyStateOptions",value:function(){return{heading:u.LanguageService.getPhrase(this.lang,"emptyStateHeading"),description:u.LanguageService.getPhrase(this.lang,"emptyStateInfo",{url:u.UrlHelper.safeUrlConcat(this.config.get("supportSiteUrl"),cn.ADD_FROM_ONLINE),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!0}},{key:"getVideoCollectionSource",value:function(){return eh.Series}},{key:"fetchModel",value:function(){this.model=this.seriesDataService.getSeries(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getSeriesVideos(this.collectionIdentifier,this.libraryCollection.pluck("id"))}},{key:"name",get:function(){return"SeriesView"}},{key:"lang",get:function(){return"libraryEditor.seriesView"}},{key:"componentType",get:function(){return UA.Base}}]),t}(x1),j1=n(343),R1=n.n(j1);function D1(e){return(D1="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 N1(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 A1(e,t){return!t||"object"!==D1(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 M1(e){return(M1=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V1(e,t){return(V1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var U1=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),A1(this,M1(t).call(this,e))}var n,o,r;return 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&&V1(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(f.LIBRARY,"libraries:sync",this.render),this.listenTo(f.VIDEO,"".concat(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=u.InstanceManager.getInstance(un.Library,this),this.videoDataService=u.InstanceManager.getInstance(un.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=s.uniq(s.flatten(t)),o=[],r=[];this.libraries.forEach((function(t){var i=sh.getModelFromCollection(e.options.folderId,t.get("children"));!s.contains(n,+t.get("id"))||i?o.push(t):r.push(t)})),this.libraries=new kr(o),this.hiddenLibraryNames=r.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(rB.Disabled))return{title:u.LanguageService.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=sh.getSelected(this.libraryTreeKey,this.libraries);t&&sh.deselectAll(this.folderTreeKey,t.get("children")),sh.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(rB.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=sh.getSelected(this.libraryTreeKey,this.libraries).get("children");sh.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(rB.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(rB.ShowSpinner,!0);var t,n,o=sh.getSelected(this.folderTreeKey,this.libraries),r=o.get("id"),i=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(o){t||(t=o.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=o)}));var a=1===i.length?n.get("name"):"",l=vj.moveVideoAlert(t.get("name"),o.get("name"),o.get("id"),i.length,a);this.videoDataService.moveVideos(i,r,this.options.folderId,(function(){e.triggerMethod("hide")}),l),this.logAction(i,r)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=s.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(u.TextHelper.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=u.LanguageService.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=s.first(e)),jb.AnalyticsHelper.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=sh.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new OC({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=sh.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new yB({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 kr(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(),sh.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&u.LanguageService.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return Th.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 R1.a}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:u.LanguageService.getPhrase(this.lang,"heading"),behaviorClass:Sg,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new kB,buttonText:u.LanguageService.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}}])&&N1(n.prototype,o),r&&N1(n,r),t}(u.Core.View),F1=n(344),B1=n.n(F1),H1=n(345),W1=n.n(H1);function z1(e){return(z1="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 q1(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 G1(e,t){return!t||"object"!==z1(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 Y1(e){return(Y1=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J1(e,t){return(J1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var K1=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),G1(this,Y1(t).call(this,e))}var n,o,i;return 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&&J1(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=u.InstanceManager.getInstance(un.Settings,this)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:library",this.onSelectLibrary),this.listenTo(f.LIBRARY,"cache:cleared",this.fetchData),this.listenTo(h.FOLDER_DRAG_DROP,"re:render:left:nav",this.render),this.listenTo(f.SETTINGS,"".concat(F.SETTINGS,":sync"),this.render)}},{key:"regions",value:function(){return{logo:{el:".logo-region",replaceElement:!1},folderTree:{el:".folder-tree-region",replaceElement:!1,partialLoading:r.LeftNav}}}},{key:"events",value:function(){return{"click .new-folder":"newFolder"}}},{key:"fetchData",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),v.MaxCustomLibraries)}},{key:"onSelectLibrary",value:function(e){this.collection.each((function(t){u.ViewModelService.get("".concat("library:left:nav",":").concat(t.id)).set("open",t.id.toString()===e)})),this.render()}},{key:"renderLogo",value:function(){this.showChildView("logo",new yT({model:this.currentUser.get("customerLogo"),customerId:this.currentUser.get("customerId"),onlineUrl:this.config.get("onlineUrl")}))}},{key:"renderLeftNav",value:function(){var e=new yC({collection:this.collection,channelName:this.channelName,libraryId:this.options.libraryId,folderTreeId:yL,forceOpen:1===this.collection.length});this.showChildView("folderTree",e)}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.maxCustomLibraries}},{key:"viewOptions",value:function(){if(this.collection)return{styles:W1.a,plusSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Plus),canCreateLibraries:!!this.maxCustomLibraries&&this.maxCustomLibraries.get("value")>this.collection.length}}},{key:"onRender",value:function(){this.renderLogo(),this.renderLeftNav()}},{key:"name",get:function(){return"LeftNavigationView"}},{key:"title",get:function(){return!1}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.leftNavigation"}},{key:"className",get:function(){return"bg-white pb-3"}},{key:"template",get:function(){return B1.a}},{key:"appLinks",get:function(){return{".applink-new-library":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.NEW_LIBRARY}}}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser,config:IB.config,collection:XL.libraries}}}])&&q1(n.prototype,o),i&&q1(n,i),t}(u.Core.View),Q1=n(346),Z1=n.n(Q1);function $1(e){return($1="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 X1(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 e3(e,t){return!t||"object"!==$1(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 t3(e){return(t3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n3(e,t){return(n3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o3=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=e3(this,t3(t).call(this,e))).editable=!1,n}var n,o,i;return 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&&n3(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0,partialLoading:r.EditVideoTabs},content:{el:".edit-content-region",replaceElement:!0,partialLoading:r.EditVideoDetails}}}},{key:"initialize",value:function(){this.navLock=VB,this.initDataListeners(),Jh.initBackButton(),this.initServices()}},{key:"initServices",value:function(){this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.tagDataService=u.InstanceManager.getInstance(un.Tags,this),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.seriesDataService=u.InstanceManager.getInstance(un.Series,this),this.ratingsDataService=u.InstanceManager.getInstance(un.Ratings,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.fieldsDataService=u.InstanceManager.getInstance(un.Fields,this),this.alertService=u.InstanceManager.getInstance(sn.Alerts,this),this.personDataService=u.InstanceManager.getInstance(un.Person,this),this.companyDataService=u.InstanceManager.getInstance(un.Company,this)}},{key:"initDataListeners",value:function(){this.listenTo(u.CommonChannels.SHELL,u.Core.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway),this.listenTo(f.VIDEO,"videos:".concat(this.options.videoId,":sync"),this.render),this.listenTo(f.VIDEO,"videos:".concat(this.options.videoId,":error"),this.onError),this.listenTo(f.RATINGS,"".concat(F.RATINGS,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),this.onThumbnailUpdated),this.listenTo(f.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(this.channelName,"select:rating",s.partial(this.onTypeaheadSelection,s,"rating")),this.listenTo(this.channelName,"select:channel",s.partial(this.onTypeaheadSelection,s,"channel")),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:tag",this.onAddTag),this.listenTo(this.channelName,"remove:distributors",this.onRemoveDistributor),this.listenTo(this.channelName,"remove:productionCompanies",this.onRemoveProductionCompany),this.listenTo(this.channelName,"remove:directors",this.onRemoveDirector),this.listenTo(this.channelName,"remove:producers",this.onRemoveProducer),this.listenTo(this.channelName,"remove:tag",this.onRemoveTag),this.listenTo(this.channelName,Jp,this.onSave),this.listenTo(this.channelName,Kp,this.onUndo),this.listenTo(this.channelName,Xp,this.onTypeaheadInput),this.listenTo(this.channelName,"image:load",this.onBeforeThumbnailUpload)}},{key:"onError",value:function(e){switch(e.type){case u.DataServiceErrorType.NotFound:u.Core.ErrorHelper.throw(new hy);break;case u.DataServiceErrorType.Forbidden:u.Core.ErrorHelper.throw(new Md)}}},{key:"onTypeaheadSelection",value:function(e,t,n){if(n){var o=this.viewModel.get(t),r=o.filter({name:e.name});s.each(r,(function(e){return o.remove(e)})),o.add(e)}else this.viewModel.set(t,e);this.onModelChange(e,{manualUpdate:!0})}},{key:"onTypeaheadInput",value:function(e,t,n){e.get("name")||(n&&n.isCollection?this.viewModel.get(t).remove(e.get("id"),{silent:!0}):this.viewModel.get(t).clear({silent:!0}),this.onModelChange(null,{manualUpdate:!0}),"series"===t&&(this.validateSeries(),yf.channel(this.channelName).trigger("clear:series")))}},{key:"onSelectSeries",value:function(e){var t=this;e.id?this.seriesDataService.getSeries(e.id,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection(e.toJSON(),"series")})):e.name&&this.seriesDataService.createSeries(e.name,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection({id:e.id},"series")}))}},{key:"onSelectSeason",value:function(e){var t=this;if(s.isNull(e))return this.viewModel.get("season").clear({silent:!0}),this.viewModel.set("episodeNumber",null),Zh.deselectAll(this.viewModel.get("series.seasons")),void this.onModelChange(null,{manualUpdate:!0});if(e.id)return this.viewModel.set("season",e),Zh.setSelected(e.id,this.viewModel.get("series.seasons")),void this.onModelChange(e,{manualUpdate:!0});if(e.number){var n=this.viewModel.get("series.id");this.seriesDataService.createSeason(e,n,(function(e){t.viewModel.set("season",e.toJSON()),!t.viewModel.get("series.seasons")&&t.viewModel.get("series").set("seasons",new il),t.viewModel.get("series.seasons").add(e.toJSON()),Zh.setSelected(e.id,t.viewModel.get("series.seasons")),t.onModelChange(e.toJSON(),{manualUpdate:!0}),t.render()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"distributors",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"distributors",!0)}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"productionCompanies",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"productionCompanies",!0)}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"directors",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"directors",!0)}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"producers",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"producers",!0)}))}},{key:"onRemoveDistributor",value:function(e){this.removeFromCollection(e,"distributors")}},{key:"onRemoveProductionCompany",value:function(e){this.removeFromCollection(e,"productionCompanies")}},{key:"onRemoveDirector",value:function(e){this.removeFromCollection(e,"directors")}},{key:"onRemoveProducer",value:function(e){this.removeFromCollection(e,"producers")}},{key:"removeFromCollection",value:function(e,t){e&&e.id&&t&&(this.viewModel.get(t).remove(e.id),this.onModelChange(null,{manualUpdate:!0}))}},{key:"onAddTag",value:function(e){var t=this;if(e&&e.name){var n=e.name.trim().toLowerCase();if(n&&!Zh.findModelByName(n,this.viewModel.tags)){var o=new cu({name:n});this.viewModel.tags.add(o),this.tagDataService.createTag(n,this.model.get("id"),(function(e){o.set(e.toJSON()),yf.channel(t.channelName).trigger("update:tags")}))}}}},{key:"onRemoveTag",value:function(e){var t=this;e instanceof cu&&e.id&&this.tagDataService.dissociateTag(e.id,this.model.get("id"),(function(){t.viewModel.tags.remove(e),yf.channel(t.channelName).trigger("update:tags"),t.logDissocAction(t.model.get("id"),e,jb.EntityType.Tag)}))}},{key:"saveFields",value:function(e,t){var n=this,o=0;e.updatedVideo=s.extend({},e.updatedVideo||{});var r=function(){++o===e.dataChanges.fields.length&&t(e)};s.each(e.dataChanges.fields,(function(e){if(e.id&&!e.value)return n.viewModel.fields.remove(n.viewModel.fields.findWhere({id:e.id})),void n.fieldsDataService.deleteField(e.id,r);!e.id||e.id>0?n.fieldsDataService.updateField(e,r):n.fieldsDataService.addField(n.options.videoId,e,(function(t){n.viewModel.fields.findWhere({id:e.id}).set("id",t.id),r()}))}))}},{key:"bulkDissoc",value:function(e,t){this.videoDataService.bulkDissoc(this.model.id,e.pendingDissocs,(function(){t(e)}))}},{key:"saveVideo",value:function(e,t){var n=this,o=s.omit(e.dataChanges,"fields");if(s.isEmpty(o))t(e);else{var r=s.omit(e.dataChanges,"fields");this.videoDataService.updateVideo(this.model.get("id"),this.folder.get("id"),r,(function(o){(e.dataChanges.series&&e.dataChanges.series.id||e.dataChanges.episodeNumber||e.dataChanges.season)&&n.videoDataService.clearVideoCache(),e.updatedVideo=s.extend({},e.updatedVideo||{},o),t(e)}))}}},{key:"afterSave",value:function(e,t){if(this.viewModel){e.updatedVideo&&this.updateState(e.updatedVideo),this.unlockNav(),this.updateSaveButton(Zp),this.logEditAction(e.dataChanges,jb.WorkflowPhase.Save);var n=vj.updatedVideoAlert(this.viewModel.get("name"));this.alertService.success(n||"Video was successfully updated")()}}},{key:"onSave",value:function(){if(this.viewModel.validate(),!1===this.viewModel.isValid())return this.updateSaveButton(Qp),!1;this.validateSeries();var e=sw.getChanges(this.model,this.viewModel),t=sw.getRemovedObjectIds(this.model,this.viewModel);if(!e&&!s.keys(t).length)return this.updateSaveButton(Qp),!1;var n=new u.Core.Middleware;return e&&e.fields&&n.use(s.bind(this.saveFields,this)),t&&s.keys(t).length&&n.use(s.bind(this.bulkDissoc,this)),this.editable&&n.use(s.bind(this.saveVideo,this)),n.use(s.bind(this.afterSave,this)),n.go({dataChanges:e,pendingDissocs:t},null),!1}},{key:"onUndo",value:function(){var e=this;new th({title:u.LanguageService.getPhrase(this.lang,"undoTitle"),text:u.LanguageService.getPhrase(this.lang,"undoBody",{videoName:this.model.get("name")}),buttons:[{text:u.LanguageService.getPhrase(this.lang,"undo"),className:"btn btn-danger",success:!0},{text:u.LanguageService.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}).render().done((function(){e.logEditAction({},jb.WorkflowPhase.Discard),e.revertState({undo:!0}),e.render()}))}},{key:"updateState",value:function(e){this.stopListening(this.viewModel),sw.updateModelState(this.model,this.viewModel,e),u.ViewModelService.clear(this.viewModelName),this.getViewModel(),this.renderContent()}},{key:"onNavigateAway",value:function(){this.revertState()}},{key:"revertState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.undo;this.stopListening(this.viewModel),u.ViewModelService.clear(this.viewModelName),delete this.viewModel,this.unlockNav(),t&&this.getViewModel()}},{key:"lockNav",value:function(){this.navLock.lock({title:u.LanguageService.getPhrase(this.lang,"navLockHeading"),text:u.LanguageService.getPhrase(this.lang,"navLockBody")})}},{key:"unlockNav",value:function(){this.navLock.unlock()}},{key:"onBeforeThumbnailUpload",value:function(){this.navLock.isLocked()&&(this.navLock.unlock(),u.ViewModelService.get("upload:thumbnail:options").set("lockNav",!0))}},{key:"onModelChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.stickitChange||t.manualUpdate)if(this.viewModel.validate(),!1!==this.viewModel.isValid()){var n=sw.getChanges(this.model,this.viewModel)||s.keys(sw.getRemovedObjectIds(this.model,this.viewModel)).length;if(!n)return this.unlockNav(),void this.updateSaveButton(Zp);this.lockNav(),this.updateSaveButton($p)}else this.updateSaveButton(Zp)}},{key:"updateSaveButton",value:function(e){var t=yf.channel(this.channelName),n=$p,o=Zp,r=Qp;switch(e){case n:return void t.trigger(n);case o:return void t.trigger(o);case r:return void t.trigger(r)}u.Core.ErrorHelper.throw(new u.DevError("Save action type is not valid."))}},{key:"onThumbnailUpdated",value:function(){var e=this;this.videoDataService.clearCacheAndGetVideo(this.options.videoId,(function(t){e.model=t,e.viewModel.set("thumbnail",e.model.thumbnail.toJSON())}))}},{key:"logEditAction",value:function(e,t){var n=Object.assign({id:this.model.get("id")},e);jb.AnalyticsHelper.logUserAction(n,{actionType:jb.UserAction.Edit,entity:jb.EntityType.Video,location:jb.LocationContext.EditVideoDetails,workflowPhase:t})}},{key:"logDissocAction",value:function(e,t,n){var o=Object.assign({videoId:e},t.pick("id","name"));jb.AnalyticsHelper.logUserAction(o,{actionType:jb.UserAction.Dissociate,entity:n,location:jb.LocationContext.EditVideoDetails})}},{key:"onValidation",value:function(e){this.viewModel.set("disabled",!e)}},{key:"getViewModel",value:function(){this.model.fields&&this.model.fields.length||this.model.set("fields",[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]),this.viewModel=u.ViewModelService.get(this.viewModelName,this.model.toJSON(),{ctor:jl}),this.editable&&(this.viewModel.addValidation(uw),this.viewModel.addValidation(pw)),this.viewModel.addValidation(vw),this.listenTo(this.viewModel,"validated",this.onValidation),this.listenTo(this.viewModel,"change",this.onModelChange),this.listenTo(this.viewModel,"change:dateBroadcast",s.partial(this.onModelChange,s,{manualUpdate:!0})),this.viewModel.fields&&(this.viewModel.fields&&this.viewModel.fields.each((function(e){return e.addValidation(bw)})),this.listenTo(this.viewModel.fields,"change",this.onModelChange))}},{key:"validateSeries",value:function(){this.viewModel.get("series.id")||(this.viewModel.unset("season"),this.viewModel.set("episodeNumber",null))}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getHostedLibraries(),this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.videoId,(function(t){var n=!!e.publisherVideo;e.publisherVideo=t,n&&e.isRendered()&&e.renderContent()})),this.model&&(this.editable=bh.canEditVideo(this.model),this.folder=this.model.categories.first(),this.ratings&&this.hostedLibraries&&(this.viewModel instanceof jl||this.getViewModel()))}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.model&&!!this.ratings&&!!this.viewModel}},{key:"renderContent",value:function(){var e=sw.getChanges(this.model,this.viewModel)||s.keys(sw.getRemovedObjectIds(this.model,this.viewModel)).length;this.showChildView("content",new gk({model:this.viewModel,ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,channelName:this.channelName,isSaveDisabled:!e,hasChanges:!!e,editable:this.editable,currentUser:this.currentUser,showPublisherVideoDetails:!!this.publisherVideo}))}},{key:"renderTabs",value:function(){this.showChildView("tabs",new Ak({tabs:Jh.getEditVideoTabs(this.options.videoId,{hideChaptersTab:!this.editable}),activeTab:".edit-video-applink",goBackTab:Jh.getBackButton(this.options.videoId)}))}},{key:"onRender",value:function(){this.renderTabs(),this.renderContent()}},{key:"name",get:function(){return"EditVideoView"}},{key:"title",get:function(){return this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editVideo"}},{key:"className",get:function(){return"bg-white p-3"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"template",get:function(){return Z1.a}},{key:"requiredResources",get:function(){return{libraries:XL.libraries,currentUser:GB.currentUser}}}])&&X1(n.prototype,o),i&&X1(n,i),t}(u.Core.View),r3=n(347),i3=n.n(r3);function a3(e){return(a3="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 l3(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 s3(e,t){return!t||"object"!==a3(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 u3(e){return(u3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c3(e,t){return(c3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p3=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s3(this,u3(t).call(this,e))}var n,o,i;return 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&&c3(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.videoMixinService=u.InstanceManager.getInstance(sn.VideoMixin,this),this.localCacheDataService=u.InstanceManager.getInstance(un.LocalCache,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(f.VIDEO,"".concat(F.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.VIDEO,"cache:cleared",this.render),this.listenTo(f.LIBRARY,"libraries:sync",this.render),this.listenTo(f.RESTRICTED_VIDEO,"".concat(F.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(f.RESTRICTED_VIDEO,"".concat(F.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.LOCAL_CACHE,"".concat(F.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(f.LOCAL_CACHE,"".concat(F.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"onError",value:function(e){switch(e.type){case u.DataServiceErrorType.NotFound:u.Core.ErrorHelper.throw(new hy);break;case u.DataServiceErrorType.Forbidden:u.Core.ErrorHelper.throw(new Md)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1},header:{replaceElement:!0,el:".video-header-region",partialLoading:r.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:r.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:r.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.showChildView("breadcrumbs",new MV({folder:this.folder,libraries:this.libraries,enableLastItemAppLink:!0}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new PE({model:this.video,customerHasLocalCache:_h.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new NY(this.folder.id,oh.GetCurrentSortType()),config:this.config}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new d_({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new Mw({model:this.video,showHeading:!0,showPublisherVideoDetails:!!this.publisherVideo,config:this.config}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.length&&this.showChildView("fields",new GU({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new OS({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new r_({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new CP({model:this.video,headingText:"Links"}))}},{key:"onBeforeRender",value:function(){var e=this;return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=this.video.categories.first()),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.videoId,(function(t){var n=!!e.publisherVideo;e.publisherVideo=t,n&&e.isRendered()&&e.renderBasicInfo()})),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,t=e.chapters,n=e.resources,o=e.fields,r=e.links;return{hasFolder:!!this.folder,hasChapters:t&&t.length,hasResources:n&&n.length,hasFields:o&&o.length,hasLinks:r&&r.length}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks()}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return i3.a}},{key:"className",get:function(){return"container-fluid h-100 bg-white"}},{key:"requiredResources",get:function(){return{config:IB.config,currentUser:GB.currentUser,libraries:XL.libraries,exchanges:XL.exchanges}}}])&&l3(n.prototype,o),i&&l3(n,i),t}(u.Core.View),f3=n(348),h3=n.n(f3);function d3(e){return(d3="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 y3(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 g3(e,t){return!t||"object"!==d3(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 m3(e){return(m3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b3(e,t){return(b3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v3=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g3(this,m3(t).call(this,e))}var n,o,r;return 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&&b3(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this)}},{key:"onClickDelete",value:function(){var e=this;this.library&&(sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.videoDataService.deleteVideosFromLibrary(this.library.id,this.options.folderId,this.options.videoIds,(function(){e.options.routeToFolderOnDelete?u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[e.options.folderId]}):e.triggerMethod("hide")})),this.logAction())}},{key:"logAction",value:function(){var e=this.options.videoIds,t={libraryId:this.library.id,folderId:this.options.folderId,count:e.length};1===e.length&&(t.id=s.first(e)),jb.AnalyticsHelper.logUserAction(t,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;this.library?this.spinnerModel.set(rB.Disabled,!1):this.libraryDataService.getLibraries((function(t){e.library=sh.getLibrary(e.options.folderId,t),e.render()}))}},{key:"viewOptions",value:function(){return{count:this.options.videoIds.length,libraryFetched:!!this.library,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),videoCount:this.options.videoIds.length}}},{key:"name",get:function(){return"DeleteVideoView"}},{key:"lang",get:function(){return"libraryEditor.deleteVideos"}},{key:"title",get:function(){return this.options.videoIds&&u.LanguageService.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"template",get:function(){return h3.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:u.LanguageService.getPhrase(this.lang,"removeVideos"),behaviorClass:Sg,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new kB,buttonText:u.LanguageService.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}}])&&y3(n.prototype,o),r&&y3(n,r),t}(u.Core.View),w3=n(349),S3=n.n(w3);function k3(e){return(k3="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 O3(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 C3(e,t){return!t||"object"!==k3(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 E3(e){return(E3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _3(e,t){return(_3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var T3=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),C3(this,E3(t).call(this,e))}var n,o,r;return 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&&_3(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(f.LIBRARY,"libraries:sync",this.render),this.collectionIdentifier=new NY(this.options.folderId,oh.GetCurrentSortType()),this.listenTo(f.VIDEO,"".concat(this.collectionIdentifier,":sync"),this.render),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this)}},{key:"getParentId",value:function(){if(sh.isSubFolder(this.model)&&this.model&&this.model.collection&&this.model.collection.parent&&this.model.collection.parent instanceof u.Core.Model)return this.model.collection.parent.get("id");var e=sh.getLibrary(this.model.get("id"),this.model.collection);return e&&e.id||null}},{key:"onClickDelete",value:function(e){e&&e.preventDefault(),yf.channel(this.channelName).trigger(oB.ShowSpinner);var t=this.getParentId(),n=sh.isSubFolder(this.model)?M.LibraryEditor.FOLDER:M.LibraryEditor.LIBRARY;this.libraryDataService.deleteFolder(this.options.folderId,(function(){u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:n,args:[t]},{replace:!0})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.model.get("name")};jb.AnalyticsHelper.logUserAction(e,this.options.analyticsOptions)}},{key:"canDelete",value:function(){return!(this.model.children&&this.model.children.length||this.videos&&this.videos.length)}},{key:"onBeforeRender",value:function(){var e=this;return this.libraryDataService.getFolderFromLibraries(this.options.folderId,(function(t){e.model=t})),this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),!(!this.model||!this.videos||!this.canDelete()&&(window.setTimeout((function(){e.triggerMethod("hide"),u.Core.ErrorHelper.throw(new hd)}),On.POPUP_FADE_TIMEOUT),1))}},{key:"name",get:function(){return"DeleteFolderView"}},{key:"title",get:function(){return!!this.model&&u.LanguageService.getPhrase(this.lang,"title",{folderName:this.model.get("name")})}},{key:"lang",get:function(){return"libraryEditor.deleteFolder"}},{key:"template",get:function(){return S3.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"removeFolder"),spinnerButtonOptions:{channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(t){return e.onClickDelete(t)}}}]}}])&&O3(n.prototype,o),r&&O3(n,r),t}(u.Core.View),P3=n(350),x3=n.n(P3);function I3(e){return(I3="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 L3(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 j3(e,t){return!t||"object"!==I3(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 R3(e){return(R3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D3(e,t){return(D3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N3=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),j3(this,R3(t).call(this,e))}var n,o,r;return 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&&D3(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(e){var t=e.parentId,n=e.libraryId;(t?!n:n)||u.Core.ErrorHelper.throw(new u.DevError("Must provide either a libraryId or a parentId to ".concat(this.name))),this.bindListeners(),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.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()&&(sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.trimFolderName(),this.addFolder(),this.logAction())}},{key:"addFolder",value:function(){var e=this,t=this.viewModel.get("parentId").toString()===this.library.get("id").toString()?null:this.viewModel.get("parentId").toString();this.libraryDataService.addFolder(this.viewModel,this.library.get("id").toString(),t,(function(t){u.ViewModelService.clear(e.getViewModelKey()),e.options.routeToFolderOnCreate?u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[t.get("id")]}):e.triggerMethod("hide")}))}},{key:"trimFolderName",value:function(){var e=this.viewModel.get("name");this.viewModel.set("name",e.trim())}},{key:"logAction",value:function(){var e={id:this.options.libraryId,name:this.viewModel.get("name"),isSubfolder:this.viewModel.get("parentId").toString()!==this.library.get("id").toString()};jb.AnalyticsHelper.logUserAction(e,this.options.analyticsOptions)}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e=this.getViewModelKey();this.viewModel=u.ViewModelService.get(e,null,{ctor:fl}),this.viewModel.set({parentId:this.options.parentId||this.options.libraryId})}}},{key:"getViewModelKey",value:function(){return"folder:new:".concat(this.options.libraryId,":").concat(this.options.parentId)}},{key:"renderFolderDetails",value:function(){if(this.collection){var e=new IO({model:this.viewModel,collection:this.collection,library:this.library,channelName:this.channelName,editName:!0,editParent:!0,folderTreeKey:this.folderTreeKey});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getLibraries((function(t){if(!e.collection){var n=e.options.libraryId||e.options.parentId;e.library=sh.getLibrary(n,t),e.setUpViewModel(),e.collection=new yr([e.library]),sh.setSelected(e.folderTreeKey,e.viewModel.get("parentId"),e.collection)}})),this.collection&&this.spinnerModel.set(rB.Disabled,!1),sh.getFolderDepth(this.options.parentId,this.collection)>=On.MAX_FOLDER_DEPTH)return window.setTimeout((function(){e.triggerMethod("hide"),u.Core.ErrorHelper.throw(new vd)}),On.POPUP_FADE_TIMEOUT),!1}},{key:"viewOptions",value:function(){return{dataFetched:!!this.collection,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"NewFolderView"}},{key:"lang",get:function(){return"libraryEditor.newFolder"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return x3.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),appLink:this.options.returnAppLink,spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"create"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&L3(n.prototype,o),r&&L3(n,r),t}(u.Core.View),A3=n(351),M3=n.n(A3);function V3(e){return(V3="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 U3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F3(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 B3(e,t){return!t||"object"!==V3(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 H3(e){return(H3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W3(e,t){return(W3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var z3=function(e){function t(){return U3(this,t),B3(this,H3(t).apply(this,arguments))}var n,o,r;return 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&&W3(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.model=u.ViewModelService.get("new:library",null,{ctor:vl}),this.bindListeners(),this.settingsDataService=u.InstanceManager.getInstance(un.Settings,this),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.SEARCH,"".concat(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()&&(yf.channel(this.channelName).trigger(oB.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){u.ViewModelService.clear("new:library"),u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),v.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?u.Core.ErrorHelper.throw(new Ay(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(rB.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return M3.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:og,modelValidation:kw},{behaviorClass:Pg},{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.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:GB.currentUser,libraries:XL.libraries}}}])&&F3(n.prototype,o),r&&F3(n,r),t}(u.Core.View),q3=n(352),G3=n.n(q3);function Y3(e){return(Y3="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 J3(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 K3(e,t){return!t||"object"!==Y3(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 Q3(e){return(Q3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z3(e,t){return(Z3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $3=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),K3(this,Q3(t).call(this,e))}var n,o,r;return 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&&Z3(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(f.LIBRARY,"libraries:sync",this.render),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this)}},{key:"onClickDelete",value:function(){yf.channel(this.channelName).trigger(oB.ShowSpinner),this.libraryDataService.deleteLibrary(this.options.libraryId,(function(){u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.libraryId};jb.AnalyticsHelper.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model=t})),!this.model)return!1;var t=null;return this.model.get("hasSubscribers")?t=new Cy:this.model.children.length&&(t=new Iy),t?(window.setTimeout((function(){e.triggerMethod("hide"),u.Core.ErrorHelper.throw(t)}),On.POPUP_FADE_TIMEOUT),!1):!!this.model}},{key:"name",get:function(){return"DeleteLibraryView"}},{key:"title",get:function(){return!!this.model&&u.LanguageService.getPhrase(this.lang,"title",{libraryName:this.model.get("name")})}},{key:"lang",get:function(){return"libraryEditor.deleteLibrary"}},{key:"template",get:function(){return G3.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:u.LanguageService.getPhrase(this.lang,"removeLibrary"),behaviorClass:Sg,spinnerButtonOptions:{channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}}])&&J3(n.prototype,o),r&&J3(n,r),t}(u.Core.View),X3=n(353),e2=n.n(X3);function t2(e){return(t2="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 n2(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 o2(e,t){return!t||"object"!==t2(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 r2(e){return(r2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i2(e,t){return(i2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a2=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o2(this,r2(t).call(this,e))}var n,o,i;return 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&&i2(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.initializeDataServices(),Jh.initBackButton()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:r.EditVideoTabs},webplayer:{replaceElement:!0,el:".webplayer-region",partialLoading:r.WebPlayer},addChapter:{replaceElement:!0,el:".add-chapter-region",partialLoading:r.EditVideoChaptersForm},chapterList:{replaceElement:!0,el:".chapter-list-region",partialLoading:r.EditVideoChapterList}}}},{key:"bindListeners",value:function(){this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(f.VIDEO,"".concat(F.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.CHAPTER,"".concat(F.CONCATENATE_STATUS,":").concat(this.options.videoId,":error"),this.onConcatenateDataError),this.listenTo(this.channelName,Fp,this.onCreateChapter),this.listenTo(this.channelName,Bp,this.onUpdateChapter),this.listenTo(this.channelName,Hp,this.onDeleteChapter),this.listenTo(this.channelName,zp,this.onTimeInputUpdate),this.listenTo(this.channelName,Yp,this.onSeekToChapter),this.listenTo(this.channelName,Gp,this.onMergeChapters)}},{key:"initializeDataServices",value:function(){this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.chapterDataService=u.InstanceManager.getInstance(un.Chapter,this)}},{key:"onVideoDataError",value:function(e){switch(e.type){case u.DataServiceErrorType.NotFound:u.Core.ErrorHelper.throw(new hy);break;case u.DataServiceErrorType.Forbidden:u.Core.ErrorHelper.throw(new Md)}}},{key:"onConcatenateDataError",value:function(e){e.type===u.DataServiceErrorType.NotFound&&(this.concatenateRequestNotFound=!0,this.render())}},{key:"onCreateChapter",value:function(e){0===this.chapters.length&&0!==e.startTime&&this.createChapter({name:u.LanguageService.getPhrase(this.lang,"intro"),startTime:0}),this.createChapter(e)}},{key:"createChapter",value:function(e){var t=this,n=new Rs(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,jb.UserAction.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 o=vj.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,jb.UserAction.Edit)}),o)}},{key:"onDeleteChapter",value:function(e){var t=this;e.set("loading",!0),this.chapterDataService.deleteChapter(e.id,(function(){t.logAction(e,jb.UserAction.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<=ah.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"));jb.AnalyticsHelper.logUserAction(n,{actionType:t,entity:jb.EntityType.Chapter,location:jb.LocationContext.EditVideoChapters})}},{key:"onSeekToChapter",value:function(e){e<0||this.player.seekToChapter(e)}},{key:"startPollingConcatenation",value:function(){if(this.concatenateRequest){var e=[Qf.SingleFile,Qf.ConcatenationFailed];s.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")!==Qf.SingleFile)return setTimeout((function(){return e.pollConcatenation()}),5e3),void e.renderConcatenationRequest();e.videoDataService.clearPhysicialChaptersCache(),e.render()}))}},{key:"renderChapterList",value:function(){this.showChildView("chapterList",new OS({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 Xw({model:new Rs,collection:this.chapters,creating:!0,duration:this.model.get("duration"),channelName:this.channelName,playerViewModelKey:"".concat(Cn.NAME,"-").concat(this.model.get("id"))}))}},{key:"renderConcatenationRequest",value:function(){this.isRendered()&&this.showChildView("addChapter",new RS({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 Ak({tabs:Jh.getEditVideoTabs(this.options.videoId),activeTab:".edit-chapters-applink",goBackTab:Jh.getBackButton(this.options.videoId)}))}},{key:"renderWebPlayer",value:function(){this.player=new KV({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 Oi(ow(t)),e.renderChapterList()}))}},{key:"redirectToVideoDetails",value:function(){u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.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(!bh.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 e2.a}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&n2(n.prototype,o),i&&n2(n,i),t}(u.Core.View),l2=n(354),s2=n.n(l2);function u2(e){return(u2="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 c2(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 p2(e,t){return!t||"object"!==u2(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 f2(e){return(f2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h2(e,t){return(h2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d2=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p2(this,f2(t).call(this,e))}var n,o,i;return 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&&h2(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.initializeUploadServices(),this.bindDataListeners(),this.bindViewListeners(),this.bindFileSelectListeners(),Jh.initBackButton(),this.chapterDataService=u.InstanceManager.getInstance(un.Chapter,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.linkDataService=u.InstanceManager.getInstance(un.Link,this),this.resourceDataService=u.InstanceManager.getInstance(un.Resource,this),this.subtitleDataService=u.InstanceManager.getInstance(un.Subtitle,this),this.resourceUploads=[],this.resourceUploadCount=0}},{key:"initializeUploadServices",value:function(){this.resourceUploadService=new p.LearningResourceUploadService,this.listenTo(h.RESOURCE_UPLOAD,p.UploadEventNames.UPLOAD_COMPLETE,this.onResourceUploadComplete),this.subtitleUploadService=new p.SubtitleUploadService,this.listenTo(h.SUBTITLE_UPLOAD,p.UploadEventNames.UPLOAD_COMPLETE,this.onSubtitleUploadComplete)}},{key:"bindDataListeners",value:function(){this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(f.VIDEO,"".concat(F.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.CHAPTER,"".concat(F.CONCATENATE_STATUS,":").concat(this.options.videoId,":error"),this.onConcatenateDataError)}},{key:"bindViewListeners",value:function(){this.listenTo(this.channelName,"add:link",this.onAddLink),this.listenTo(this.channelName,"delete:subtitle",this.onDeleteSubtitle),this.listenTo(this.channelName,"delete:resource",this.onDeleteResource),this.listenTo(this.channelName,"delete:link",this.onDeleteLink),this.listenTo(this.channelName,"cancel:upload",this.onCancelUpload),this.listenTo(this.channelName,Gp,this.onMergeChapters)}},{key:"bindFileSelectListeners",value:function(){this.listenTo(this.getSubtitleSelectChannelName(),p.UploadEventNames.FILES_SELECTED,this.onSubtitleFilesAdded),this.listenTo(this.getResourceSelectChannelName(),p.UploadEventNames.FILES_SELECTED,this.onResourceFilesAdded)}},{key:"getSubtitleSelectChannelName",value:function(){return"".concat(this.name).concat(this.cid,"subtitles")}},{key:"getResourceSelectChannelName",value:function(){return"".concat(this.name).concat(this.cid,"resources")}},{key:"onVideoDataError",value:function(e){switch(e.type){case u.DataServiceErrorType.NotFound:u.Core.ErrorHelper.throw(new hy);break;case u.DataServiceErrorType.Forbidden:u.Core.ErrorHelper.throw(new Md)}}},{key:"onConcatenateDataError",value:function(e){e.type===u.DataServiceErrorType.NotFound&&(this.concatenateRequestNotFound=!0,this.render())}},{key:"onSubtitleFilesAdded",value:function(e,t){e.length>5-this.model.subtitles.length?u.Core.ErrorHelper.throw(new ly(5)):(t&&(this.interactionType=t),this.subtitleUploadService.addFiles(e))}},{key:"onResourceFilesAdded",value:function(e,t){e.length>25-this.model.resources.length?u.Core.ErrorHelper.throw(new ty(25)):(this.resourceUploadCount+=e.length,t&&(this.interactionType=t),this.resourceUploadService.addFiles(e))}},{key:"onAddLink",value:function(e){var t=this;25!==this.model.links.length&&(this.model.links.length+1===25&&this.renderAddLinks(!0),this.linkDataService.addLink(this.model.get("id"),e,(function(e){t.model.links.add(e),t.render()})))}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:r.EditVideoTabs},subtitlesUpload:{el:".subtitles-upload-region",partialLoading:r.EditVideoUploadArea},subtitlesUploadList:".subtitles-upload-list-region",customerSubtitlesList:".customer-subtitles-list-region",clickViewSubtitlesList:".clickview-subtitles-list-region",resourcesUpload:{el:".resources-upload-region",partialLoading:r.EditVideoUploadArea},resourcesUploadList:".resources-upload-list-region",customerResourcesList:".customer-resources-list-region",clickViewResourcesList:".clickview-resources-list-region",addLinks:{el:".add-links-region",partialLoading:r.EditVideoUploadArea},customerLinkList:".customer-link-list-region",clickViewLinkList:".clickview-link-list-region"}}},{key:"startPollingConcatenation",value:function(){if(this.concatenateRequest){var e=[Qf.SingleFile,Qf.ConcatenationFailed];s.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")!==Qf.SingleFile)return setTimeout((function(){return e.pollConcatenation()}),5e3),void e.renderConcatenationRequest();e.videoDataService.clearPhysicialChaptersCache(),e.videoDataService.hasPhysicalChapters(e.options.videoId,(function(t){e.hasPhysicalChapters=t,e.renderSubtitleFileSelect()}))}))}},{key:"onDeleteResource",value:function(e){var t=this;this.resourceDataService.deleteResource(this.options.videoId,e,(function(){t.logDeleteAction(jb.EntityType.Resource,e),t.render()}))}},{key:"onDeleteSubtitle",value:function(e){var t=this;this.subtitleDataService.deleteSubtitle(this.options.videoId,e,(function(){t.logDeleteAction(jb.EntityType.Subtitle,e),t.render()}))}},{key:"onDeleteLink",value:function(e){var t=this;this.linkDataService.deleteLink(this.options.videoId,e,(function(){t.logDeleteAction(jb.EntityType.Link,e),t.render()}))}},{key:"onCancelUpload",value:function(e){this.resourceUploadService.cancelUpload(e),this.subtitleUploadService.cancelUpload(e)}},{key:"onResourceUploadComplete",value:function(e){var t=this,n=e.toJSON(),o={fileId:n.fileInfo.id,uploadId:n.file.cvUpload.uploadId,name:n.fileInfo.name,type:p.FileExtensionHelper.getResourceType(n.fileInfo.extension),extension:n.fileInfo.extension,fileSize:n.fileInfo.size,fileUrl:n.fileInfo.url,ingestUrl:n.file.cvUpload.ingestUrl,metaData:{type:p.FileExtensionHelper.getResourceType(n.fileInfo.extension)},contribution:!1,url:n.fileInfo.url,fileIdType:2};this.resourceUploads.push(o),this.resourceUploadCount--,this.resourceUploadCount>0||(this.resourceDataService.addResource(this.options.videoId,this.resourceUploads,(function(e){t.model.resources.add(e);var n=t.resourceUploadService.getCollection().filter((function(t){return t.get("fileInfo").id===e.get("fileId")}));t.resourceUploadService.getCollection().remove(n),t.logUploadAction(e),t.render()})),this.resourceUploads=[])}},{key:"onSubtitleUploadComplete",value:function(e){var t=this,n=$.Deferred(),o=new YO({defaultLanguage:{code:"en",name:"English"},promise:n});n.done((function(n){var o=e.toJSON(),r={fileId:o.fileInfo.id,name:n.name,language:n.code,type:p.FileExtensionHelper.getResourceType(o.fileInfo.extension),fileIdType:2};t.subtitleDataService.addSubtitle(t.options.videoId,r,(function(n){t.model.subtitles.add(n),t.subtitleUploadService.getCollection().remove(e),t.logUploadAction(n),t.render()}))})).fail((function(){t.subtitleUploadService.cancelUpload(e.get("id"))})),yf.channel(u.CommonChannels.POPUP).trigger(u.Core.EventNames.SHOW_POPUP,o)}},{key:"logUploadAction",value:function(e){var t=e instanceof ys?jb.EntityType.Resource:jb.EntityType.Subtitle,n=jb.AnalyticsHelper.mapInteractionType(this.interactionType),o={location:jb.LocationContext.EditVideoResources,actionType:jb.UserAction.Upload,entity:t,descriptor:n};jb.AnalyticsHelper.logUserAction(e,o)}},{key:"logDeleteAction",value:function(e,t){var n={location:jb.LocationContext.EditVideoResources,actionType:jb.UserAction.Delete,entity:e},o={id:t,parentId:+this.options.videoId};jb.AnalyticsHelper.logUserAction(o,n)}},{key:"onMergeChapters",value:function(){var e=this;this.chapterDataService.addConcatenateRequest(this.options.videoId,(function(){e.pollConcatenation()}))}},{key:"renderTabs",value:function(){var e=!bh.canEditVideo(this.model);this.showChildView("tabs",new Ak({tabs:Jh.getEditVideoTabs(this.options.videoId,{hideChaptersTab:e}),activeTab:".edit-resources-subtitles-applink",goBackTab:Jh.getBackButton(this.options.videoId)}))}},{key:"renderSubtitleFileSelect",value:function(){if(this.hasPhysicalChapters.get("value"))this.renderConcatenationRequest();else{var e=u.LanguageService.getPhrase(this.lang,"subtitlesLimit",{limit:5});this.showChildView("subtitlesUpload",new Jk({title:this.isClickViewContent?u.LanguageService.getPhrase(this.lang,"customerSubtitles"):u.LanguageService.getPhrase(this.lang,"subtitles"),description:u.LanguageService.getPhrase(this.lang,"subtitlesInfo"),alternateText:u.LanguageService.getPhrase(this.lang,"subtitlesAlternative"),mimeType:p.FileExtensions.SUBTITLES,channelName:this.getSubtitleSelectChannelName(),acceptMultiple:!1,limitText:this.model.subtitles.length>=5?e:null,isClickViewContent:this.isClickViewContent}))}}},{key:"renderSubtitleUploadList",value:function(){var e=this.subtitleUploadService.getCollection();this.showChildView("subtitlesUploadList",new ST({collection:e,channelName:this.channelName}))}},{key:"renderSubtitlesLists",value:function(){this.renderClickViewSubtitlesList(),this.renderCustomerSubtitlesList()}},{key:"renderClickViewSubtitlesList",value:function(){if(this.isClickViewContent){var e=bh.filterObjectsByOwnerType(this.model.subtitles,Xf.ClickView);this.showChildView("clickViewSubtitlesList",new N_({collection:e,channelName:this.channelName,isClickViewContent:!0,headerText:u.LanguageService.getPhrase(this.lang,"clickViewSubtitles"),emptyStateText:e.models.length?"":u.LanguageService.getPhrase(this.lang,"clickViewSubtitlesEmpty")}))}}},{key:"renderCustomerSubtitlesList",value:function(){this.showChildView("customerSubtitlesList",new N_({collection:bh.filterObjectsByOwnerType(this.model.subtitles,Xf.Customer,this.currentUser.get("customerId")),channelName:this.channelName}))}},{key:"renderConcatenationRequest",value:function(){this.isRendered()&&this.showChildView("subtitlesUpload",new RS({type:this.isClickViewContent?"clickViewSubtitles":"subtitles",channelName:this.channelName,model:this.concatenateRequest}))}},{key:"renderResourcesFileSelect",value:function(){var e=u.LanguageService.getPhrase(this.lang,"resourcesLimit",{limit:25});this.showChildView("resourcesUpload",new Jk({title:this.isClickViewContent?u.LanguageService.getPhrase(this.lang,"customerResources"):u.LanguageService.getPhrase(this.lang,"resources"),description:u.LanguageService.getPhrase(this.lang,"resourcesDescription"),alternateText:u.LanguageService.getPhrase(this.lang,"resourcesAlternative"),mimeType:p.FileExtensions.RESOURCES,channelName:this.getResourceSelectChannelName(),limitText:this.model.resources.length>=25?e:null,isClickViewContent:this.isClickViewContent}))}},{key:"renderResourcesUploadList",value:function(){var e=this.resourceUploadService.getCollection();this.showChildView("resourcesUploadList",new ST({collection:e,channelName:this.channelName}))}},{key:"renderResourcesLists",value:function(){this.renderClickViewResourcesList(),this.renderCustomerResourcesList()}},{key:"renderClickViewResourcesList",value:function(){if(this.isClickViewContent){var e=bh.filterObjectsByOwnerType(this.model.resources,Xf.ClickView);this.showChildView("clickViewResourcesList",new r_({model:this.model,customCollection:e,editable:!1,videoId:this.options.videoId,parentChannelName:this.channelName,headerText:u.LanguageService.getPhrase(this.lang,"clickViewResources"),emptyStateText:e.models.length?"":u.LanguageService.getPhrase(this.lang,"clickViewResourcesEmpty"),analyticsOptions:{location:jb.LocationContext.EditVideoResources}}))}}},{key:"renderCustomerResourcesList",value:function(){this.showChildView("customerResourcesList",new o_({collection:bh.filterObjectsByOwnerType(this.model.resources,Xf.Customer,this.currentUser.get("customerId")),editable:!0,videoId:this.options.videoId,channelName:this.channelName,analyticsOptions:{location:jb.LocationContext.EditVideoResources}}))}},{key:"renderAddLinks",value:function(e){this.showChildView("addLinks",new oP({collection:this.model.get("links"),channelName:this.channelName,hide:e||25===this.model.get("links").length,limit:25}))}},{key:"renderLinkLists",value:function(){var e={channelName:this.channelName,analyticsOptions:{location:jb.LocationContext.EditVideoResources},videoId:this.options.videoId};this.renderClickViewLinkList(e),this.renderCustomerLinkList(e)}},{key:"renderClickViewLinkList",value:function(e){if(this.isClickViewContent){var t=bh.filterObjectsByOwnerType(this.model.links,Xf.ClickView);this.showChildView("clickViewLinkList",new CP(Object.assign(Object.assign({},e),{headingText:"Resource Links by ClickView",emptyStateText:t.models.length?"":"There are no ClickView links for this video",customCollection:t,editable:!1})))}}},{key:"renderCustomerLinkList",value:function(e){this.showChildView("customerLinkList",new CP(Object.assign(Object.assign({},e),{customCollection:bh.filterObjectsByOwnerType(this.model.links,Xf.Customer,this.currentUser.get("customerId")),editable:!0})))}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.hasPhysicalChapters=this.videoDataService.hasPhysicalChapters(this.options.videoId),this.isClickViewContent=this.model&&!bh.canEditVideo(this.model),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:"viewOptions",value:function(){return{isClickViewContent:this.isClickViewContent}}},{key:"onRender",value:function(){this.renderTabs(),this.renderSubtitleFileSelect(),this.renderSubtitleUploadList(),this.renderSubtitlesLists(),this.renderResourcesFileSelect(),this.renderResourcesUploadList(),this.renderResourcesLists(),this.renderAddLinks(),this.renderLinkLists(),this.startPollingConcatenation()}},{key:"onDestroy",value:function(){this.subtitleUploadService.destroy(),this.resourceUploadService.destroy()}},{key:"name",get:function(){return"EditResourcesView"}},{key:"lang",get:function(){return"libraryEditor.editResources"}},{key:"title",get:function(){return this.model&&this.model.get("name")||"Edit Resources"}},{key:"template",get:function(){return s2.a}},{key:"props",get:function(){return["videoDataService"]}},{key:"className",get:function(){return"bg-white p-3"}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:Qy}]}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&c2(n.prototype,o),i&&c2(n,i),t}(u.Core.View),y2=n(355),g2=n.n(y2);function m2(e){return(m2="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 b2(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 v2(e,t){return!t||"object"!==m2(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 w2(e){return(w2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S2(e,t){return(S2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k2=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),v2(this,w2(t).call(this,e))}var n,o,r;return 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&&S2(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(f.RESOURCE,"resource:".concat(this.options.resourceId,":sync"),this.render),this.resourceDataService=u.InstanceManager.getInstance(un.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()&&(yf.channel(this.channelName).trigger(oB.ShowSpinner),this.resourceDataService.updateResource(this.options.videoId,this.viewModel,(function(){t.logAction(),u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.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")};jb.AnalyticsHelper.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,o){if(s.isFunction(o.setSelectionRange))t.focus(),o.setSelectionRange(0,e.length);else if(s.isFunction(o.createTextRange)){var r=o.createTextRange();r.collapse(!0),r.moveEnd("character",e.length),r.moveStart("character",0),r.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=u.ViewModelService.get("resource:".concat(e.options.resourceId),t.toJSON(),{ctor:ys}),e.viewModel.addValidation(fw)})),this.dataFetched()&&this.spinnerModel.set(rB.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),sp.Validation.bind(this,{model:this.viewModel}),this.selectAllWithoutExtension())}},{key:"onClose",value:function(){this.unstickit(),sp.Validation.unbind(this)}},{key:"name",get:function(){return"EditResourceView"}},{key:"lang",get:function(){return"libraryEditor.editResource"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"template",get:function(){return g2.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new kB,buttonText:u.LanguageService.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"}}}])&&b2(n.prototype,o),r&&b2(n,r),t}(u.Core.View),O2=n(356),C2=n.n(O2);function E2(e){return(E2="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 _2(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 T2(e,t){return!t||"object"!==E2(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 P2(e){return(P2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x2(e,t){return(x2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var I2=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),T2(this,P2(t).call(this,e))}var n,o,r;return 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&&x2(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(f.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()&&(sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};jb.AnalyticsHelper.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=sh.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=u.ViewModelService.get(e,this.model.toJSON(),{ctor:fl})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new IO({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(s.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,s.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(rB.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return C2.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&_2(n.prototype,o),r&&_2(n,r),t}(u.Core.View),L2=n(357),j2=n.n(L2);function R2(e){return(R2="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 D2(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function N2(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 A2(e,t){return!t||"object"!==R2(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 M2(e){return(M2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V2(e,t){return(V2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var U2=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),A2(this,M2(t).call(this,e))}var n,o,r;return 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&&V2(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.LIBRARY,"libraries:sync",this.render),this.listenTo(f.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()&&(sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e=this.getParentIds(),t=e.oldParentId,n=e.newParentId,o={id:this.options.folderId,isSubfolder:n.toString()!==this.library.get("id").toString(),oldParentId:t,newParentId:n};jb.AnalyticsHelper.logUserAction(o,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this,t=this.getParentIds(),n=t.oldParentId,o=t.newParentId;n!==o?this.libraryDataService.moveFolder(this.viewModel.get("id"),o,n,(function(){u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[e.viewModel.get("id")]}),e.triggerMethod("hide")})):u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER,args:[this.viewModel.get("id")]})}},{key:"getParentIds",value:function(){return{oldParentId:sh.getParent(this.options.folderId,this.collection).get("id"),newParentId:this.viewModel.get("parentId")}}},{key:"setUpCollection",value:function(e){this.collection||(this.library=sh.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=u.ViewModelService.get(e,this.model.toJSON(),{ctor:fl});var t=sh.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(rB.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,D2(sh.flatten(this.model.children).map((function(e){return e.id.toString()})))):e}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new IO({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(s.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,s.bind(this.setUpModel,this))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"MoveFolderView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.moveFolder"}},{key:"template",get:function(){return j2.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"move"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&N2(n.prototype,o),r&&N2(n,r),t}(u.Core.View),F2=n(358),B2=n.n(F2);function H2(e){return(H2="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 W2(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 z2(e,t){return!t||"object"!==H2(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 q2(e){return(q2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G2(e,t){return(G2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Y2=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),z2(this,q2(t).call(this,e))}var n,o,r;return 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&&G2(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.imageUploadDataService=u.InstanceManager.getInstance(un.ImageUpload,this),this.viewModel=u.ViewModelService.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,aV.ImageCropped,this.onImageCropped),this.listenTo(f.VIDEO,"".concat(F.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||u.Core.ErrorHelper.throw(new u.DevError("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){sp.Radio.channel(this.channelName).trigger(aV.CropImage),sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,E.Banners,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n={folderId:this.options.folderId,imageModel:e,currentImageId:this.model.banner&&this.model.banner.id};this.libraryDataService.addOrUpdateBanner(n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new gu({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new mV({model:e,channelName:this.channelName,imageType:E.Banners,minWidth:hn[E.Banners].width,minHeight:hn[E.Banners].height,getCropRegionWidth:s.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.libraryDataService.getFolder(this.options.folderId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return B2.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}}])&&W2(n.prototype,o),r&&W2(n,r),t}(u.Core.View),J2=n(359),K2=n.n(J2);function Q2(e){return(Q2="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 Z2(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 $2(e,t){return!t||"object"!==Q2(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 X2(e){return(X2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function e4(e,t){return(e4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var t4=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$2(this,X2(t).call(this,e))}var n,o,r;return 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&&e4(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.imageUploadDataService=u.InstanceManager.getInstance(un.ImageUpload,this),this.viewModel=u.ViewModelService.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,aV.ImageCropped,this.onImageCropped),this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(F.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||u.Core.ErrorHelper.throw(new u.DevError("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){sp.Radio.channel(this.channelName).trigger(aV.CropImage),sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,E.Thumbnails,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n=this.model.thumbnail&&this.model.thumbnail.id;this.videoDataService.addOrUpdateThumbnail(this.options.videoId,e,n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new gu({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new mV({model:e,channelName:this.channelName,imageType:E.Thumbnails,minWidth:hn[E.Thumbnails].width,minHeight:hn[E.Thumbnails].height,getCropRegionWidth:s.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeDestroy",value:function(){u.ViewModelService.get("upload:thumbnail:options").get("lockNav")&&VB.lock()}},{key:"name",get:function(){return"ThumbnailUploadView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.thumbnailUpload"}},{key:"template",get:function(){return K2.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}}])&&Z2(n.prototype,o),r&&Z2(n,r),t}(u.Core.View),n4=n(360),o4=n.n(n4),r4=n(361),i4=n.n(r4);function a4(e){return(a4="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 l4(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 s4(e,t){return!t||"object"!==a4(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 u4(e){return(u4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c4(e,t){return(c4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p4=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s4(this,u4(t).call(this,e))}var n,o,r;return 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&&c4(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.collectionIdentifier=this.options.collectionIdentifier,this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.exportDataService=u.InstanceManager.getInstance(un.Export,this),this.bindListeners()}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(f.LIBRARY,"".concat(F.FOLDER,":").concat(this.collectionIdentifier.id,":sync"),this.render),this.listenTo(f.VIDEO,"".concat(this.collectionIdentifier.toString(),":sync"),this.render),this.listenTo(f.EXPORT,"".concat(F.GENERATE_COLLECTION_PDF,":").concat(this.collectionIdentifier.id,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"onClickGeneratePdf",value:function(){this.hasDataFetched()&&(yf.channel(this.channelName).trigger(oB.ShowSpinner),this.exportDataService.generateCollectionPdf(this.library.id,this.collectionIdentifier.id,this.currentUser,this.collectionIdentifier.sort),this.logAction(this.collectionIdentifier.id,this.collectionIdentifier.sort))}},{key:"fetchData",value:function(){var e=this;this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id),this.library||this.libraryDataService.getLibraries((function(t){e.library=sh.getLibrary(e.collectionIdentifier.id,t),e.render()}))}},{key:"logAction",value:function(e,t){var n={location:jb.LocationContext.Popup,actionType:jb.UserAction.Create,entity:jb.EntityType.PDF,workflowPhase:jb.WorkflowPhase.Complete},o={id:e,sort:p.SortType[t]};jb.AnalyticsHelper.logUserAction(o,n)}},{key:"hasDataFetched",value:function(){return!!this.model&&!!this.videos&&!!this.library}},{key:"onBeforeRender",value:function(){var e=this;return this.fetchData(),!!this.hasDataFetched()&&(this.videos&&!this.videos.length?(window.setTimeout((function(){e.triggerMethod("hide"),u.Core.ErrorHelper.throw(new ld(u.LanguageService.getPhrase(e.lang,"errorHeading")))}),On.POPUP_FADE_TIMEOUT),!1):(this.hasDataFetched()&&this.spinnerModel.set(rB.Disabled,!1),!0))}},{key:"viewOptions",value:function(){return{dataFetched:this.hasDataFetched(),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:yn.Shared.GeneratePdf,styles:i4.a}}},{key:"name",get:function(){return"GeneratePdfView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.generatePdf"}},{key:"template",get:function(){return o4.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new kB,saveEvent:"generate:pdf",channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"generate"),extraButtonClass:"btn-primary",spinnerOptions:{size:qh.Small,type:Gh.Light,extraClasses:"mx-auto"}}}]}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&l4(n.prototype,o),r&&l4(n,r),t}(u.Core.View),f4=n(362),h4=n.n(f4),d4=n(94),y4=n.n(d4);function g4(e){return(g4="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 m4(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 b4(e,t){return!t||"object"!==g4(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 v4(e){return(v4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w4(e,t){return(w4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var S4=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b4(this,v4(t).call(this,e))}var n,o,i;return 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&&w4(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this;this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.listenTo(f.LIBRARY,"clear:library:folder:cache",(function(){e.folders=null,e.render()}))}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:r.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new iT({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new iC({model:this.model,extraClasses:"".concat(y4.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:jb.LocationContext.Banner}}))}},{key:"bindScrollListener",value:function(){var e=this;if(!this.scrollBound){this.scrollBound=!0;var t=$(window),n=s.debounce((function(){if(t.scrollTop()+t.height()>e.$el.offset().top+e.$el.height()&&e.currentIdentifier){var n=e.libraryDataService.getLibraryFoldersCursors(e.currentIdentifier);n&&n.next&&e.libraryDataService.getLibraryFolders(e.getNewCollectionIdentifier(n.next),(function(t){e.folders.add(t.toJSON())}))}}),333);t.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(e){return this.currentIdentifier=new eJ(this.model.categoryTree.get("id"),p.SortType.AtoZ,e)}},{key:"onBeforeRender",value:function(){var e=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(t){e.folders=t,e.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(t){e.model=t.get(e.options.libraryId),e.listenTo(e.model,"change:name",e.render),e.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return h4.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(y4.a.library)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:p.EmptyStateBehavior,region:"folders",type:S.Library,shouldRender:function(){return e.model&&!e.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.More),heading:u.LanguageService.getPhrase(this.lang,"emptyStateHeading"),description:u.LanguageService.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(p.SvgHelper.getSvg(p.cvSvgLibrary.More),"</span>")})},emptyStateComponents:wn}]}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&m4(n.prototype,o),i&&m4(n,i),t}(u.Core.View),k4=n(363),O4=n.n(k4);function C4(e){return(C4="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 E4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _4(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 T4(e,t){return!t||"object"!==C4(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 P4(e){return(P4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x4(e,t){return(x4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var I4=function(e){function t(){return E4(this,t),T4(this,P4(t).apply(this,arguments))}var n,o,r;return 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&&x4(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{emptyState:{el:".no-library-region",replaceElement:!0}}}},{key:"name",get:function(){return"NoLibraryView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.noLibrary"}},{key:"template",get:function(){return O4.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.EmptyStateBehavior,region:"emptyState",type:S.LibraryEditor,shouldRender:function(){return!0},componentOptions:{plusSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Plus),heading:u.LanguageService.getPhrase(this.lang,"emptyStateHeading"),btnText:u.LanguageService.getPhrase(this.lang,"emptyStateDescription")},emptyStateComponents:wn}]}}])&&_4(n.prototype,o),r&&_4(n,r),t}(u.Core.View),L4=n(364),j4=n.n(L4);function R4(e){return(R4="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 D4(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 N4(e,t){return!t||"object"!==R4(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 A4(e){return(A4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M4(e,t){return(M4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var V4,U4=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),N4(this,A4(t).call(this,e))}var n,o,r;return 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&&M4(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.LIBRARY,"libraries:sync",this.render)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(yf.channel(this.channelName).trigger(oB.ShowSpinner),this.saveLibrary(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.libraryId,name:this.model.get("name")};jb.AnalyticsHelper.logUserAction(e,this.options.analyticsOptions)}},{key:"saveLibrary",value:function(){var e=this;this.libraryDataService.updateLibrary(this.model,(function(){e.triggerMethod("hide")}))}},{key:"onBeforeRender",value:function(){var e=this;return this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model||(e.model=u.ViewModelService.get("library:".concat(e.options.libraryId),t.toJSON(),{ctor:vl}))})),!!this.model}},{key:"name",get:function(){return"RenameLibraryView"}},{key:"lang",get:function(){return"libraryEditor.renameLibrary"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"template",get:function(){return j4.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:og,modelValidation:kw},{behaviorClass:Pg},{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&D4(n.prototype,o),r&&D4(n,r),t}(u.Core.View),F4=function(){var e=docCookies.getItem("clear-video-cache");e&&(u.InstanceManager.getInstance(un.Video).clearVideoCache(),u.InstanceManager.releaseInstance(un.Video),docCookies.removeItem("clear-video-cache","/",e))};!function(e){e[e.Email=0]="Email"}(V4||(V4={}));var B4=Object.assign(Object.assign({},p.NotificationsHelper),{createSuggestEditNotification:function(e){return{_type:p.NotificationType.SuggestEdit,groupId:e.groupId,receiverId:0,countryCode:e.countryCode,channels:[V4.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),H4=n(365),W4=n.n(H4);function z4(e){return(z4="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 q4(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 G4(e,t){return!t||"object"!==z4(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 Y4(e){return(Y4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J4(e,t){return(J4=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var K4=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),G4(this,Y4(t).call(this,e))}var n,o,r;return 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&&J4(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.ratingsDataService=u.InstanceManager.getInstance(un.Ratings,this),this.notificationDataService=u.InstanceManager.getInstance(un.Notifications,this),this.selectedMetadata=new Oc,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(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(f.NOTIFICATIONS,"".concat(F.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(e){var t=this;if(this.validateForm()){this.spinnerModel.set(rB.ShowSpinner,!0);var n=this.selectedMetadata.get("metadataType")===Ap.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),o=this.config.get("suggestEditMetadataGroupId"),r=B4.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(r,(function(){t.triggerMethod("hide"),t.spinnerModel.set(rB.ShowSpinner,!1),t.spinnerModel.set(rB.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(rB.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(rB.Disabled,!1),Zh.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==Ap.Other?this.model.get(e.get("property")):null}),e.get("name")!==Ap.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){return new Ca(Object.keys(nf).map((function(e){return nf[e]})))}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=u.ViewModelService.get(this.viewModelName),this.viewModel.addValidation(hw)}},{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")!==Ap.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==Ap.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?gw():"":yw()}},{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=Kh.getSourceTypes(this.model);e=s.filter(e,(function(e){return e!==O.CustomLibrary}));var t={videoSourceTypes:s.sortBy(s.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")};jb.AnalyticsHelper.logUserAction(t,{descriptor:jb.SuggestionDescriptor.Edit,location:jb.LocationContext.Popup,actionType:jb.UserAction.Suggest,entity:jb.EntityType.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new iU({collection:_w.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||u.LanguageService.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:jb.AnalyticsHelper}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new LT({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new ql(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:td.getSpinner({size:qh.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 W4.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 u.LanguageService.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"submit"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"requiredResources",get:function(){return{config:IB.config,currentUser:GB.currentUser}}}])&&q4(n.prototype,o),r&&q4(n,r),t}(u.Core.View),Q4=n(366),Z4=n.n(Q4);function $4(e){return($4="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 X4(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 e5(e,t){return!t||"object"!==$4(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 t5(e){return(t5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n5(e,t){return(n5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o5=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e5(this,t5(t).call(this,e))}var n,o,r;return 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&&n5(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.localOptionsService=u.InstanceManager.getInstance(sn.LocalOptions,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this);var e=this.localOptionsService.getOption(oz.MigratedHidden);s.isUndefined(e)?(this.setMigrationHiddenOption(!1),this.migratedHidden=!1):this.migratedHidden=e}},{key:"events",value:function(){return{"click @ui.toggleMigrated":"toggleMigrated"}}},{key:"viewOptions",value:function(){return{styles:It,name:this.options.searchTerm||this.model&&this.model.get("name"),hidden:this.migratedHidden,svg:p.SvgHelper.getSvg(this.migratedHidden?p.cvSvgLibrary.VisibleOn:p.cvSvgLibrary.VisibleOff),goBack:this.options.searchTerm,showMigrationToggle:!this.options.initialMigration,backSvg:p.SvgHelper.getSvg("arrow-left",{prefix:"fas"}),searchTerm:this.options.searchTerm,results:10}}},{key:"onBeforeRender",value:function(){var e=this;return!(!this.model&&!this.options.searchTerm&&(this.migrationVideoDataService.getSelected((function(t){t&&(e.model=t,e.triggerToggle(),e.render())})),!this.model))}},{key:"toggleMigrated",value:function(){this.migratedHidden=!this.migratedHidden,this.setMigrationHiddenOption(this.migratedHidden),this.triggerToggle(),this.render()}},{key:"triggerToggle",value:function(){sp.Radio.channel(f.MIGRATION).trigger(V.MigrationWizard.TOGGLE_MIGRATED,this.migratedHidden)}},{key:"setMigrationHiddenOption",value:function(e){this.localOptionsService.setOption(oz.MigratedHidden,e)}},{key:"name",get:function(){return"CurrentSectionHeaderView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"migrationWizard.currentSectionHeader"}},{key:"className",get:function(){return"row px-2 ".concat(It.currentHeader)}},{key:"template",get:function(){return Z4.a}},{key:"elements",get:function(){return{toggleMigrated:".toggle-migrated"}}},{key:"appLinks",get:function(){return{".applink-goback":{application:y.MIGRATION_WIZARD,action:this.options.initialMigration?M.MigrationWizard.SMART:M.MigrationWizard.HOME}}}}])&&X4(n.prototype,o),r&&X4(n,r),t}(u.Core.View),r5=n(367),i5=n.n(r5),a5=n(368),l5=n.n(a5);function s5(e){return(s5="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 u5(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 c5(e,t){return!t||"object"!==s5(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 p5(e){return(p5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f5(e,t){return(f5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h5=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c5(this,p5(t).call(this,e))}var n,o,r;return 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&&f5(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_VIDEO,":").concat(this.options.trackingCode,":sync"),this.render),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_VIDEO,":").concat(this.options.masterId,":sync"),this.render)}},{key:"regions",value:function(){return{thumbnail:".thumbnail-region"}}},{key:"getUrl",value:function(){if(this.model){var e=this.config.get("imageCdnUrl"),t=this.model.get("trackingCode");return"".concat(e,"v1/thumbnails/trackingcode/").concat(t)}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?rh(this.model.get("dateBroadcast")).format(P.FULL_YEAR):""}},{key:"viewOptions",value:function(){return{styles:i5.a,dataFetched:!!this.model,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),dateBroadcast:this.getBroadcastDate()}}},{key:"onBeforeRender",value:function(){return this.options.trackingCode&&(this.model=this.migrationVideoDataService.getCustomerVideoByTrackingCode(this.options.trackingCode)),this.options.masterId&&(this.model=this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.masterId)),!!this.model}},{key:"onRender",value:function(){this.showChildView("thumbnail",new p.ThumbnailComponent({model:new jl({thumbnail:{url:this.getUrl()}},{parse:!0}),thumbnailOptions:{size:p.ImageSize.Small}}))}},{key:"name",get:function(){return"ShowPublisherVideoPopupView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"p"}},{key:"template",get:function(){return l5.a}},{key:"behaviors",get:function(){return[{behaviorClass:Sg,title:"Publisher Archive Video Details",hideCloseButton:!0,size:"modal-lg"}]}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&u5(n.prototype,o),r&&u5(n,r),t}(u.Core.View);function d5(e){return(d5="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 y5(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 g5(e,t){return!t||"object"!==d5(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 m5(e){return(m5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b5(e,t){return(b5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v5=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g5(this,m5(t).call(this,u.LanguageService.getPhrase("migrationWizard.backupProgress","title")))}var n,o,r;return 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&&b5(e,t)}(t,e),n=t,(o=[{key:"onDone",value:function(){u.Core.LocationUtils.Reload()}},{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("migrationWizard.backupProgress","heading"),text:u.LanguageService.getPhrase("migrationWizard.backupProgress","body"),buttons:[{text:u.LanguageService.getPhrase("migrationWizard.backupProgress","reload"),className:"btn btn-primary",success:!0}]}}}])&&y5(n.prototype,o),r&&y5(n,r),t}(p.DialogError);function w5(e){return(w5="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 S5(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 k5(e,t){return!t||"object"!==w5(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 O5(e){return(O5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C5(e,t){return(C5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var E5=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),k5(this,O5(t).call(this,u.LanguageService.getPhrase("migrationWizard.migrationProgressError","title")))}var n,o,r;return 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&&C5(e,t)}(t,e),n=t,(o=[{key:"onDone",value:function(){u.Core.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("migrationWizard.migrationProgressError","heading"),text:u.LanguageService.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:u.LanguageService.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}}])&&S5(n.prototype,o),r&&S5(n,r),t}(p.DialogError);function _5(e){return(_5="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 T5(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 P5(e,t){return!t||"object"!==_5(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 x5(e){return(x5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I5(e,t){return(I5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var L5=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),P5(this,x5(t).call(this,u.LanguageService.getPhrase("migrationWizard.migrationFinalisation","title")))}var n,o,r;return 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&&I5(e,t)}(t,e),n=t,(o=[{key:"onDone",value:function(){u.Core.LocationUtils.Reload()}},{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("migrationWizard.migrationFinalisation","heading"),text:u.LanguageService.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:u.LanguageService.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}}])&&T5(n.prototype,o),r&&T5(n,r),t}(p.DialogError);function j5(e){return(j5="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 R5(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 D5(e,t){return!t||"object"!==j5(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 N5(e){return(N5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A5(e,t){return(A5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var M5=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=D5(this,N5(t).call(this,u.LanguageService.getPhrase("migrationWizard.smartMigrationApiCall","title")))).supportUrl=e,n}var n,o,r;return 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&&A5(e,t)}(t,e),n=t,(o=[{key:"onDone",value:function(){u.Core.LocationUtils.Reload()}},{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("migrationWizard.smartMigrationApiCall","heading"),text:"<p>".concat(u.LanguageService.getPhrase("migrationWizard.smartMigrationApiCall","errorNotice")," \n <strong>").concat(u.LanguageService.getPhrase("migrationWizard.smartMigrationApiCall","reloadPage"),"</strong></p>\n <p>").concat(u.LanguageService.getPhrase("migrationWizard.smartMigrationApiCall","helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"\n </p>"),buttons:[{text:u.LanguageService.getPhrase("migrationWizard.smartMigrationApiCall","reload"),className:"btn btn-primary",success:!0}]}}}])&&R5(n.prototype,o),r&&R5(n,r),t}(p.DialogError),V5=n(51),U5=n.n(V5),F5=n(369),B5=n.n(F5);function H5(e){return(H5="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 W5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z5(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 q5(e,t){return!t||"object"!==H5(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 G5(e){return(G5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y5(e,t){return(Y5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var J5,K5=function(e){function t(){return W5(this,t),q5(this,G5(t).apply(this,arguments))}var n,o,r;return 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&&Y5(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.selectedVideoService=u.InstanceManager.getInstance(sn.SelectedVideo,this),this.initViewModel(),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_SMART_VIDEOS,":error"),this.onSmartMigrationError)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"initViewModel",value:function(){this.viewModel=u.ViewModelService.get("".concat(this.name,":viewmodel"),{option:nz.Smart},{ctor:QZ})}},{key:"viewOptions",value:function(){return{styles:U5.a,supportUrl:u.UrlHelper.safeUrlConcat(this.config.get("supportSiteUrl"),cn.MIGRATION_OPTIONS)}}},{key:"onClickContinue",value:function(){switch(this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_VIDEOS,":finalise:all:error"),this.onFinaliseError),yf.channel(this.channelName).trigger(oB.ShowSpinner),+this.viewModel.get("option")){case nz.Smart:this.startSmartMigrationPaginated();break;case nz.Full:this.startFullMigration();break;case nz.Scratch:this.startScratchMigration()}}},{key:"startScratchMigration",value:function(){var e=this;this.migrationVideoDataService.updateCustomerMigrationOption(nz.Scratch,(function(){e.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME})}))}))}},{key:"startFullMigration",value:function(){var e=this;this.migrationVideoDataService.updateCustomerMigrationOption(nz.Full,(function(){e.migrationVideoDataService.finaliseAllVideos((function(t){e.migrationVideoDataService.getCustomerMetadata((function(e){e.set("finalisationTask",t.toJSON()),u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PROGRESS,args:[t.get("id")],params:{initialMigration:!0}})}))}))}))}},{key:"startSmartMigrationPaginated",value:function(){var e=this,t=window.setTimeout((function(){var t=e.getUI("waitingMessage");t&&t.show()}),2e3);this.selectedVideoService.removeAllSelectedVideos(),this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect((function(t){var n="<strong>".concat(u.LanguageService.getPhrase(e.lang,"progress",{count:t}),"</strong>");e.getUI("smartCount").html(n)}),(function(n){window.clearTimeout(t),e.selectedVideoService.addSmartSelectedVideos(n),u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.SMART})}))}},{key:"onSmartMigrationError",value:function(){u.Core.ErrorHelper.throw(new M5(this.config.get("supportSiteUrl")))}},{key:"onFinaliseError",value:function(){u.Core.ErrorHelper.throw(new L5)}},{key:"renderSaveButton",value:function(){var e=new iB({saveEvent:"continue",channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"continue"),extraButtonClass:"btn-lg btn-primary mt-3",spinnerOptions:{size:qh.Medium,type:Gh.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}},{key:"name",get:function(){return"StartView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.start"}},{key:"className",get:function(){return"".concat(U5.a.migrationContainer," text-center bg-white ").concat(U5.a.start)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return B5.a}},{key:"bindings",get:function(){return{"input[name=options]":"option"}}},{key:"behaviors",get:function(){return[{behaviorClass:Pg,bindViewModel:!0}]}},{key:"elements",get:function(){return{continue:".continue",waitingMessage:".smart-select-waiting-message",smartCount:".smart-count"}}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&z5(n.prototype,o),r&&z5(n,r),t}(u.Core.View),Q5=n(52),Z5=n.n(Q5),$5=n(95),X5=n.n($5),e8=n(370),t8=n.n(e8);!function(e){e[e.NeedsManualReview=-1]="NeedsManualReview",e[e.HasNotBeenMigrated=0]="HasNotBeenMigrated",e[e.MigratedByUser=1]="MigratedByUser"}(J5||(J5={}));var n8=function(e,t,n){e.set("selected",!1);var o=n&&e.get("viewsLast3Years")>0;(s.contains(t,e.id.toString())||o&&0===t.length)&&e.set("selected",!0)},o8=function(e,t,n){var o="name";return e.comparator=function(e,r){e.keys().forEach((function(e){e===t&&(o=e)}));var i=e.get(o),a=r.get(o);return"string"==typeof i&&"string"==typeof a&&(i=i.toLowerCase(),a=a.toLowerCase()),i<a?n?1:-1:i>a?n?-1:1:0},e.sort(),e},r8=function(e,t){return e.each((function(e){var n=e.get("migrationStatus")!==J5.HasNotBeenMigrated,o=e.get("hidden");!s.isUndefined(t)&&n?e.set("hidden",t):n?e.set("hidden",!o):e.set("hidden",!1)})),e},i8=function(e){var t=new u.Core.Collection;return Object.keys(e).forEach((function(n){var o=e[n],r=o.id,i=o.folderChord,a=t.findWhere({folderChord:i});a?(a.set("count",a.get("count")+1),a.get("videoIds").push(r)):t.add(new n$({count:1,folderChord:i,videoIds:[r]}))})),t.each((function(e){e.set("folderChord",e.get("folderChord"))})),t},a8={getSelectedInFolder:function(e,t){var n=i8(e),o=!0,r=!1,i=void 0;try{for(var a,l=n.toArray()[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var s=a.value;if(s.get("category")===t)return s.get("count")}}catch(e){r=!0,i=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return 0},findFolder:function(e,t){var n;if(e)return e.forEach((function(e){if(e.get("categoryGuid")===t)n=e;else{var o=a8.findFolder(e.get("children"),t);o&&(n=o)}})),n}},l8=n(371),s8=n.n(l8);function u8(e){return(u8="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 c8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p8(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 f8(e,t){return!t||"object"!==u8(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 h8(e){return(h8=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d8(e,t){return(d8=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y8=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f8(this,h8(t).call(this,e))}var n,o,r;return 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&&d8(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{generateReport:{el:".generate-report-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:st,warningSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Warning)}}},{key:"onRender",value:function(){this.showChildView("generateReport",new v9)}},{key:"name",get:function(){return"SearchBarComponent"}},{key:"template",get:function(){return s8.a}},{key:"lang",get:function(){return"migrationWizard.searchBar"}},{key:"className",get:function(){var e="container";return"publisher-archive"===this.options.selected&&(e+=" ".concat(st.publisherArchive)),"migration-errors"===this.options.selected&&(e+=" ".concat(st.migrationErrors)),"none"===this.options.selected&&(e+=" ".concat(st.none)),e}},{key:"elements",get:function(){return{search:".search"}}},{key:"appLinks",get:function(){var e;return c8(e={},".".concat(st.reviewErroredAppLink),{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.MIGRATION_ERRORS}),c8(e,".".concat(st.publisherArchiveAppLink),{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.HOME}),e}}])&&p8(n.prototype,o),r&&p8(n,r),t}(u.Core.Component),g8=n(372),m8=n.n(g8);function b8(e){return(b8="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 v8(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 w8(e,t){return!t||"object"!==b8(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 S8(e){return(S8=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k8(e,t){return(k8=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var O8=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),w8(this,S8(t).call(this,e))}var n,o,r;return 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&&k8(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.viewModel=nh.GetViewModel(this.getCheckboxKey(),tf),this.listenTo(this.viewModel,"change:".concat("checkbox-all"),this.onCheckboxChange)}},{key:"viewOptions",value:function(){return{styles:yt.a,showCategory:this.options.searchTerm,sortSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.UpDown)}}},{key:"events",value:function(){return{"click .sort-title":"sortTitle","click .sort-views":"sortViews"}}},{key:"regions",value:function(){return{selectAll:{replaceElement:!0,el:".select-all"}}}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.options.folderChord}},{key:"onRender",value:function(){this.showChildView("selectAll",new Kb({type:tf,key:this.getCheckboxKey(),disabled:0===this.getVideosThatCanBeMigrated().length,className:"".concat(yt.a.bulkCheckbox," position-relative d-inline-block"),numberOfItems:this.collection.length}))}},{key:"sortTitle",value:function(){this.sort(ez.Title)}},{key:"sortViews",value:function(){this.sort(ez.Views)}},{key:"getVideosThatCanBeMigrated",value:function(){return this.collection.filter((function(e){return e.get("migrationStatus")===J5.HasNotBeenMigrated}))}},{key:"sort",value:function(e){sp.Radio.channel(f.MIGRATION).trigger(V.MigrationWizard.SORT_VIDEOS,e)}},{key:"onCheckboxChange",value:function(){var e=sp.Radio.channel(this.options.channelName),t=this.viewModel.get("checkbox-all"),n=this.getVideosThatCanBeMigrated();t?e.trigger("add:selected",n,this.options.folderChord):s.isUndefined(t)&&e.trigger("remove:selected",n,this.options.folderChord)}},{key:"name",get:function(){return"SortingRowComponent"}},{key:"template",get:function(){return m8.a}},{key:"className",get:function(){return"row no-gutters px-2 py-1 ".concat(yt.a.sortingRow)}},{key:"lang",get:function(){return"migrationWizard.sortingRow"}},{key:"elements",get:function(){return{sortOption:".sort"}}}])&&v8(n.prototype,o),r&&v8(n,r),t}(u.Core.Component),C8=n(373),E8=n.n(C8);function _8(e){return(_8="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 T8(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 P8(e,t){return!t||"object"!==_8(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 x8(e){return(x8=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I8(e,t){return(I8=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var L8=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),P8(this,x8(t).call(this,e))}var n,o,r;return 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&&I8(e,t)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .applink-next":"onClickNext","click .applink-back":"onClickBack"}}},{key:"onClickNext",value:function(){this.options.nextDisabled||s.isFunction(this.options.onClickNext)&&this.options.onClickNext()}},{key:"onClickBack",value:function(){s.isFunction(this.options.onClickBack)&&this.options.onClickBack()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:Pt},this.options),{multipleVideosAvailable:1!==this.options.numberAvailable,numberAvailable:this.options.numberAvailable,videoCount:this.options.numberSelected})}},{key:"name",get:function(){return"StatusBarComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(Pt.statusBar)}},{key:"template",get:function(){return E8.a}},{key:"lang",get:function(){return"migrationWizard.statusBar"}},{key:"appLinks",get:function(){var e=this.options,t=e.nextAppLink,n=e.backAppLink,o={".applink-next":t};return n&&(o[".applink-back"]=n),o}}])&&T8(n.prototype,o),r&&T8(n,r),t}(u.Core.Component),j8=n(374),R8=n.n(j8);function D8(e){return(D8="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 N8(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 A8(e,t){return!t||"object"!==D8(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 M8(e){return(M8=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V8(e,t){return(V8=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var U8=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),A8(this,M8(t).call(this,e))}var n,o,r;return 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&&V8(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=nh.GetViewModel(this.getCheckboxKey(),tf),this.selectedVideoService=u.InstanceManager.getInstance(sn.SelectedVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:".concat(this.getCheckboxId()),this.onCheckboxChange)}},{key:"regions",value:function(){return{bulkCheckbox:{replaceElement:!0,el:".bulk-checkbox-region"},errorCode:{replaceElement:!0,el:".error-code-region"}}}},{key:"hasBeenMigrated",value:function(){return this.model.get("migrationStatus")!==J5.HasNotBeenMigrated}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.model.get("categoryChord")}},{key:"getCheckboxId",value:function(){return this.model.get("id")}},{key:"onCheckboxChange",value:function(){if(!this.hasBeenMigrated()){var e=this.viewModel.get("".concat(this.getCheckboxId()));e?this.selectedVideoService.addSelectedVideos(this.model,this.options.folderChord):s.isUndefined(e)||this.selectedVideoService.removeSelectedVideos(this.model,this.options.folderChord)}}},{key:"shouldRender",value:function(){return!this.model.get("hidden")}},{key:"renderCheckbox",value:function(){var e=this.hasBeenMigrated(),t=e?" ".concat(mt.a.faded):"",n=this.model.get("selected")||this.model.get("checkedForMigration")||e;this.showChildView("bulkCheckbox",new tv({checked:n,checkboxClassName:t,disabled:e,key:this.getCheckboxKey(),itemId:this.getCheckboxId(),type:tf,className:"".concat(mt.a.bulkCheckbox," position-relative d-inline-block")}))}},{key:"onBeforeRender",value:function(){return this.shouldRender()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:mt.a},this.options),{migrated:this.hasBeenMigrated(),views:this.model.get("viewsLast3Years")})}},{key:"onRender",value:function(){this.renderCheckbox()}},{key:"template",get:function(){return R8.a}},{key:"name",get:function(){return"MigrationVideoItemComponent"}},{key:"className",get:function(){if(this.shouldRender())return"col-12 py-1 ".concat(mt.a.videoRow)}},{key:"lang",get:function(){return"migrationWizard.migrationVideoItem"}},{key:"appLinks",get:function(){return{".applink-show":{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.SHOW_PUBLISHER_VIDEO,args:[this.model.get("trackingCode")]},".applink-remigrate":{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.REMIGRATE_VIDEO,args:[this.model.get("id").toString(),this.model.get("masterId")&&this.model.get("masterId").toString(),this.model.get("categoryChord")]}}}}])&&N8(n.prototype,o),r&&N8(n,r),t}(u.Core.Component),F8=n(375),B8=n.n(F8);function H8(e){return(H8="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 W8(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 z8(e,t){return!t||"object"!==H8(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 q8(e){return(q8=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G8(e,t){return(G8=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Y8=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),z8(this,q8(t).call(this,e))}var n,o,r;return 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&&G8(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{videoListSort:{replaceElement:!0,el:".video-sorting-region"},videoList:{el:".video-list-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(f.MIGRATION,V.MigrationWizard.SORT_VIDEOS,this.sort),this.listenTo(f.MIGRATION,V.MigrationWizard.TOGGLE_MIGRATED,this.toggleMigrated)}},{key:"toggleMigrated",value:function(e){this.collection&&0!==this.collection.length&&(this.collection=r8(this.collection,e),this.render())}},{key:"sort",value:function(e){0!==this.collection.length&&(this.sortedBy=this.sortedBy===e?void 0:e,this.collection=o8(this.collection,e,this.sortedBy===e),this.renderVideoList())}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new L6({text:u.LanguageService.getPhrase(this.lang,"noVideos")}))}},{key:"renderSortingRow",value:function(){this.showChildView("videoListSort",new O8({collection:this.collection,folderChord:this.options.folderChord,searchTerm:this.options.searchTerm,channelName:this.options.channelName}))}},{key:"renderVideoList",value:function(){this.showChildView("videoList",new t6({folderChord:this.options.folderChord,collection:this.collection,searchTerm:this.options.searchTerm,supportSiteUrl:this.options.supportSiteUrl}))}},{key:"onRender",value:function(){this.renderSortingRow(),0!==this.collection.where({hidden:!1}).length?this.renderVideoList():this.renderEmptyMessage()}},{key:"name",get:function(){return"VideoListCollection"}},{key:"template",get:function(){return B8.a}},{key:"lang",get:function(){return"migrationWizard.videoList"}}])&&W8(n.prototype,o),r&&W8(n,r),t}(u.Core.Component),J8=n(376),K8=n.n(J8);function Q8(e){return(Q8="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 Z8(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 $8(e,t){return!t||"object"!==Q8(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 X8(e){return(X8=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function e6(e,t){return(e6=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var t6=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$8(this,X8(t).call(this,e))}var n,o,r;return 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&&e6(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"VideoListCollectionComponent"}},{key:"className",get:function(){return K8.a.videoList}},{key:"childView",get:function(){return U8}},{key:"childViewOptions",get:function(){return{folderChord:this.options.folderChord,searchTerm:this.getOption("searchTerm"),supportSiteUrl:this.options.supportSiteUrl}}}])&&Z8(n.prototype,o),r&&Z8(n,r),t}(u.Core.ComponentCollection),n6=n(96),o6=n.n(n6),r6=n(377),i6=n.n(r6);function a6(e){return(a6="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 l6(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 s6(e,t){return!t||"object"!==a6(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 u6(e){return(u6=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c6(e,t){return(c6=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p6=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s6(this,u6(t).call(this,e))}var n,o,r;return 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&&c6(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return{styles:o6.a,learnMoreUrl:this.getLearnMoreUrl()}}},{key:"getLearnMoreUrl",value:function(){var e=this.config.get("supportSiteUrl");return u.UrlHelper.safeUrlConcat(e,cn.PUBLISHER_ARCHIVE)}},{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(o6.a.banner)}},{key:"lang",get:function(){return"migrationWizard.banner"}},{key:"props",get:function(){return["config"]}},{key:"template",get:function(){return i6.a}}])&&l6(n.prototype,o),r&&l6(n,r),t}(u.Core.Component),f6=n(378),h6=n.n(f6),d6=n(379),y6=n.n(d6);function g6(e){return(g6="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 m6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b6(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 v6(e,t){return!t||"object"!==g6(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 w6(e){return(w6=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S6(e,t){return(S6=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k6=function(e){function t(){return m6(this,t),v6(this,w6(t).apply(this,arguments))}var n,o,r;return 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&&S6(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return{styles:h6.a,folder:this.model.get("folderChord").split("->").join(" / "),videoCount:this.model.get("count")}}},{key:"name",get:function(){return"SelectedVideoItemComponent"}},{key:"template",get:function(){return y6.a}},{key:"lang",get:function(){return"migrationWizard.selectedVideoItem"}},{key:"className",get:function(){return"ml-2 pt-1"}}])&&b6(n.prototype,o),r&&b6(n,r),t}(u.Core.Component),O6=n(380),C6=n(381),E6=n.n(C6);function _6(e){return(_6="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 T6(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 P6(e,t){return!t||"object"!==_6(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 x6(e){return(x6=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I6(e,t){return(I6=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var L6=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),P6(this,x6(t).call(this,e))}var n,o,r;return 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&&I6(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return{text:this.options.text}}},{key:"name",get:function(){return"EmptyVideoListComponent"}},{key:"className",get:function(){return"d-flex justify-content-center align-items-center text-muted p-5 ".concat(O6.videoList)}},{key:"template",get:function(){return E6.a}}])&&T6(n.prototype,o),r&&T6(n,r),t}(u.Core.Component),j6=n(382),R6=n.n(j6),D6=n(383),N6=n.n(D6);function A6(e){return(A6="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 M6(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 V6(e,t){return!t||"object"!==A6(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 U6(e){return(U6=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F6(e,t){return(F6=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var B6=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),V6(this,U6(t).call(this,e))}var n,o,r;return 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&&F6(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return{styles:R6.a,background:this.options.backgroundClass,progress:this.options.percentage}}},{key:"update",value:function(){var e=this.getUI("progressBar"),t=this.getUI("progressText");e&&e.get(0)&&$(e.get(0)).css("width","".concat(this.model.get("percentage"),"%")),t&&t.get(0)&&$(t.get(0)).text("".concat(this.model.get("percentage"),"%"))}},{key:"onRender",value:function(){this.update()}},{key:"name",get:function(){return"ProgressBarComponent"}},{key:"className",get:function(){return this.options.class||""}},{key:"template",get:function(){return N6.a}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}}])&&M6(n.prototype,o),r&&M6(n,r),t}(u.Core.Component),H6=n(384),W6=n.n(H6),z6=n(385),q6=n.n(z6);function G6(e){return(G6="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 Y6(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 J6(e,t){return!t||"object"!==G6(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 K6(e){return(K6=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q6(e,t){return(Q6=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Z6=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),J6(this,K6(t).call(this,e))}var n,o,r;return 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&&Q6(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:percentage",this.update)}},{key:"viewOptions",value:function(){return{styles:W6.a,text:this.options.text,class:this.options.class,percentage:this.options.percentage}}},{key:"onRender",value:function(){this.update()}},{key:"update",value:function(){var e=this.model.get("percentage")||0,t=this.getUI("circle").get(0),n=2*t.r.baseVal.value*Math.PI;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=n;var o=n-e/100*n;t.style.strokeDashoffset=o;var r=this.getUI("text");r&&r.text("".concat(e,"%"))}},{key:"name",get:function(){return"ProgressCircleComponent"}},{key:"template",get:function(){return q6.a}},{key:"lang",get:function(){return"migrationWizard.progressCircle"}},{key:"elements",get:function(){return{circle:".progress-circle",text:".progress-circle-text"}}}])&&Y6(n.prototype,o),r&&Y6(n,r),t}(u.Core.Component);function $6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X6={getReportOptions:function(){var e;return $6(e={},az.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:u.LanguageService.getPhrase("migrationWizard.utils","migratedOption")}),$6(e,az.Remaining,{id:"remaining",type:"homemigrator.le.migration.remaining.videos.report",labelText:u.LanguageService.getPhrase("migrationWizard.utils","remainingOption")}),$6(e,az.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:u.LanguageService.getPhrase("migrationWizard.utils","erroredOption")}),$6(e,az.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:u.LanguageService.getPhrase("migrationWizard.utils","linkedOption")}),e},processValidReportOptions:function(e){var t=this.getReportOptions(),n={};return s.each(s.keys(t),(function(o){s.contains(e,t[o].type)&&(n[o]=t[o])})),n},filterSelectedOptions:function(e){return s.filter(s.keys(e),(function(t){return e[t].selected})).map((function(t){return e[t].id}))},getSelectedOptionsText:function(e){var t=this.getReportOptions();return s.filter(s.keys(t),(function(n){return s.contains(e,t[n].id)})).map((function(e){return t[e].labelText}))}},e9=n(386),t9=n.n(e9);function n9(e){return(n9="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 o9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r9(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 i9(e,t){return!t||"object"!==n9(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 a9(e){return(a9=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l9(e,t){return(l9=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var s9=function(e){function t(){var e;return o9(this,t),(e=i9(this,a9(t).apply(this,arguments))).buttonDisabled=!0,e}var n,o,r;return 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&&l9(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.bindListeners()}},{key:"events",value:function(){return{"click .options":"onClickOptionsContainer","change #migrated-option":"onToggleMigratedOption","change #remaining-option":"onToggleRemainingOption","change #errored-option":"onToggleErroredOption","change #content-matched-option":"onToggleContentMatchedOption","click .generate-report":"onClickSubmit"}}},{key:"bindListeners",value:function(){this.listenTo(f.MIGRATION,"get:migration:report:options",this.render)}},{key:"onClickOptionsContainer",value:function(e){e.stopPropagation()}},{key:"onToggleMigratedOption",value:function(){var e=this.reportOptions[az.Migrated];e.selected=!e.selected,this.updateButton()}},{key:"onToggleRemainingOption",value:function(){var e=this.reportOptions[az.Remaining];e.selected=!e.selected,this.updateButton()}},{key:"onToggleErroredOption",value:function(){var e=this.reportOptions[az.Errored];e.selected=!e.selected,this.updateButton()}},{key:"onToggleContentMatchedOption",value:function(){var e=this.reportOptions[az.ContentMatched];e.selected=!e.selected,this.updateButton()}},{key:"onClickSubmit",value:function(){this.buttonDisabled||u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.GENERATE_CSV_REPORT,params:{options:X6.filterSelectedOptions(this.reportOptions)}})}},{key:"updateButton",value:function(){var e=this.getUI("generateReportBtn");X6.filterSelectedOptions(this.reportOptions).length?(this.buttonDisabled=!1,e.removeAttr("disabled")):(this.buttonDisabled=!0,e.attr("disabled","disabled"))}},{key:"fetchMigrationReportOptions",value:function(){var e=this;this.migrationVideoDataService.getMigrationReportOptions((function(t){e.reportOptions=X6.processValidReportOptions(t),e.render()}))}},{key:"viewOptions",value:function(){return{reportOptions:this.reportOptions}}},{key:"onRender",value:function(){this.reportOptions||this.fetchMigrationReportOptions()}},{key:"name",get:function(){return"GenerateReportComponent"}},{key:"template",get:function(){return t9.a}},{key:"className",get:function(){return"dropdown-menu dropdown-menu-right dropdown-arrow"}},{key:"lang",get:function(){return"migrationWizard.generateReport"}},{key:"elements",get:function(){return{generateReportBtn:".generate-report"}}}])&&r9(n.prototype,o),r&&r9(n,r),t}(u.Core.Component),u9=n(387),c9=n.n(u9),p9=n(388),f9=n.n(p9);function h9(e){return(h9="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 d9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y9(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 g9(e,t){return!t||"object"!==h9(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 m9(e){return(m9=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b9(e,t){return(b9=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var v9=function(e){function t(){return d9(this,t),g9(this,m9(t).apply(this,arguments))}var n,o,r;return 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&&b9(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:f9.a}}},{key:"onRender",value:function(){this.showChildView("options",new s9)}},{key:"name",get:function(){return"GenerateReportButtonComponent"}},{key:"template",get:function(){return c9.a}},{key:"lang",get:function(){return"migrationWizard.generateReportButton"}}])&&y9(n.prototype,o),r&&y9(n,r),t}(u.Core.Component);function w9(e){return(w9="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 S9(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 k9(e,t){return!t||"object"!==w9(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 O9(e){return(O9=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C9(e,t){return(C9=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var E9=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),k9(this,O9(t).call(this,e))}var n,o,i;return 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&&C9(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get(this.viewModelName,{bannerShown:!0},{ctor:QZ,storage:{type:u.StorageType.LocalStorage,persistProps:["bannerShown"]}}),this.bindListeners(),this.initializeServices()}},{key:"regions",value:function(){return{selectedBanner:{replaceElement:!0,el:".selected-banner-region"},search:{replaceElement:!0,el:".search-region",partialLoading:r.PublisherArchiveSearchBar},banner:{replaceElement:!0,el:".banner-region"},leftNav:{replaceElement:!0,el:".left-nav-region",partialLoading:r.PublisherArchiveLeftNav},header:{replaceElement:!0,el:".header-region",partialLoading:r.PublisherArchiveSectionHeader},videoList:{replaceElement:!0,el:".video-list-region",partialLoading:r.PublisherArchiveVideoList},footer:{replaceElement:!0,el:".footer-region",partialLoading:r.PublisherArchiveStatusBar}}}},{key:"initializeServices",value:function(){this.folderCacheService=u.InstanceManager.getInstance(sn.FolderCache,this),this.selectedVideoService=u.InstanceManager.getInstance(sn.SelectedVideo,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.alertService=u.InstanceManager.getInstance(sn.Alerts)}},{key:"bindListeners",value:function(){this.listenTo(f.MIGRATION,V.MigrationWizard.SELECTED_CHANGED,this.setSelectedVideos),this.listenTo(f.MIGRATION,"manual:review:video:count:sync",this.render),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_VIDEO,":count:sync"),this.render),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(y.MIGRATION_WIZARD,V.MigrationWizard.CLOSE_BANNER,this.closeSelectionBanner),this.listenTo(this.channelName,"add:selected",this.addSelected),this.listenTo(this.channelName,"remove:selected",this.removeSelected),this.listenTo(this.viewModel,"change:selectedVideoCount",this.renderStatusBar)}},{key:"fetchVideos",value:function(){var e=this;!this.videos&&this.options.folderChord&&this.migrationVideoDataService.getCustomerVideos(this.options.folderChord,(function(t){e.videos||(e.videos=r8(t,!0),e.setSelectedVideos(),e.isRendering||e.render())}))}},{key:"fetchFolders",value:function(){var e=this;this.folders||this.migrationVideoDataService.getCustomerFolders((function(t){if(!e.folders){if(e.folders=t,e.options.folderChord){var n=e.folderCacheService.getFolderByChord(e.options.folderChord,t);sh.setSelected(gL,n,e.folders),e.selectedFolder=sh.getSelected(gL,t)}else{var o=e.folders.first();if(o)return void u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.HOME,params:{folder:o.get("chord")}},{replace:!0})}e.isRendering||e.render()}}))}},{key:"setFolderText",value:function(e,t){var n=this,o=e.get("chord"),r=e.get("name"),i=this.folderCacheService.getFolderCache(),a=this.options.folderChord;if(a){var l,s=a8.getSelectedInFolder(t,r);if(o===a){var u=this.migrationVideoDataService.getCustomerVideos(o);if(!this.selectedFolder)return;u&&(i[a]=u.length),l=i[a]}i[o]&&(l=i[o]),s&&l?e.set("text","".concat(r," (").concat(s,"/").concat(l,")")):e.set("text",r),e.children.forEach((function(e){return n.setFolderText(e,t)}))}else e.set("text",r)}},{key:"closeSelectionBanner",value:function(){var e=this.getRegion("selectedBanner");e&&(this.viewModel.set("bannerShown",!1),e.destroy())}},{key:"setSelectedVideos",value:function(){var e=this,t=this.selectedVideoService.getSelectedVideoIds();this.videos&&this.videos.forEach((function(n){return n8(n,t,e.isInitialMigration())})),t&&this.viewModel.set("selectedVideoCount",t.length)}},{key:"addSelected",value:function(e,t){this.selectedVideoService.addSelectedVideos(e,t)}},{key:"removeSelected",value:function(e,t){this.selectedVideoService.removeSelectedVideos(e,t)}},{key:"isInitialMigration",value:function(){return dz.isInitialMigration(this.customerMetadata)}},{key:"onClickBack",value:function(){var e=this;new th({title:u.LanguageService.getPhrase(this.lang,"backHeading"),text:u.LanguageService.getPhrase(this.lang,"backBody"),buttons:[{text:u.LanguageService.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:u.LanguageService.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}).render().done((function(){e.selectedVideoService.removeAllSelectedVideos(),e.viewModel.set("alertShown",!1),u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.START_MIGRATION})}))}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".".concat(Z5.a.leftNav)),t=e.find(".".concat(X5.a.selected));if(t.length&&!(t.offset().top-e.offset().top+t.height()<e.height())){var n=e.scrollTop()+(t.offset().top-e.offset().top),o=.5*e.height()+.5*t.height();e.scrollTop(n-o)}}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new L6({text:"No folder selected"}))}},{key:"renderSelectedBanner",value:function(){if(this.isInitialMigration()&&!this.viewModel.get("alertShown")){this.viewModel.set("alertShown",!0);var e={heading:u.LanguageService.getPhrase(this.lang,"smartSelected"),message:u.LanguageService.getPhrase(this.lang,"last3Years"),type:u.AlertType.Success};this.alertService.createAlert(e)}}},{key:"renderLeftNav",value:function(){var e=this,t=new Gv({styles:X5.a,appLink:{action:M.MigrationWizard.HOME,application:y.MIGRATION_WIZARD},linkParams:function(e){return{folder:e.get("chord")}},collection:this.folders,channelName:"".concat(this.cid),childrenProperty:"children",textProperty:"name",extraClass:"p-0",folderTreeId:gL});this.showChildView("leftNav",t),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){e.centerSelectedItem()}))}))}},{key:"renderSearchBar",value:function(){this.showChildView("search",new y8({selected:this.errorCount.get("count")?"publisher-archive":"none"}))}},{key:"renderStatusBar",value:function(){var e=this;if(this.videoCount){var t={application:y.MIGRATION_WIZARD,action:M.MigrationWizard.SELECTED,args:[this.options.folderChord]},n=this.videoCount.get("successCount"),o=this.selectedVideoService.getNumberSelected(),r=new L8({nextAppLink:t,showSelected:!0,nextDisabled:0===o,showBackButton:this.isInitialMigration(),text:this.isInitialMigration()?u.LanguageService.getPhrase(this.lang,"next"):u.LanguageService.getPhrase(this.lang,"addToLibrary"),numberSelected:o,numberAvailable:n,onClickBack:function(){return e.onClickBack()}});this.showChildView("footer",r)}}},{key:"renderVideoList",value:function(){var e=this.options,t=e.folderChord,n=e.searchTerm;if(this.videos||!t&&!n)if(this.selectedFolder){this.showChildView("videoList",new Y8({model:this.selectedFolder,initialMigration:this.isInitialMigration(),folderChord:t,searchTerm:n,collection:this.videos,channelName:this.channelName,supportSiteUrl:this.config.get("supportSiteUrl")}));var o=n||t;nh.GetViewModel(o,tf).trigger("change")}else this.renderEmptyMessage();else this.renderPartialLoading("videoList")}},{key:"renderCurrentSection",value:function(){this.showChildView("header",new o5({searchTerm:this.options.searchTerm,initialMigration:this.isInitialMigration()}))}},{key:"renderBanner",value:function(){this.isInitialMigration()&&this.showChildView("banner",new p6({config:this.config}))}},{key:"onBeforeRender",value:function(){this.isRendering=!0,this.fetchVideos(),this.fetchFolders(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),this.videoCount=this.migrationVideoDataService.getCustomerVideoCountCached();var e=!!(this.customerMetadata&&this.folders&&this.videoCount&&this.errorCount);return e||(this.isRendering=!1),e}},{key:"viewOptions",value:function(){return{styles:Z5.a}}},{key:"onRender",value:function(){if(this.renderSelectedBanner(),this.renderLeftNav(),this.renderSearchBar(),this.renderStatusBar(),this.renderBanner(),!this.videos)return this.renderPartialLoading("header"),this.renderPartialLoading("videoList"),void(this.isRendering=!1);this.options.folderChord||this.options.searchTerm?(this.renderVideoList(),this.renderCurrentSection()):this.renderEmptyMessage(),this.isRendering=!1}},{key:"name",get:function(){return"SmartMigrationView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.smartMigration"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"template",get:function(){return t8.a}},{key:"className",get:function(){return"row no-gutters w-100 ".concat(Z5.a.smart)}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&S9(n.prototype,o),i&&S9(n,i),t}(u.Core.View),_9=n(53),T9=n.n(_9),P9=n(389),x9=n.n(P9);function I9(e){return(I9="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 L9(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 j9(e,t){return!t||"object"!==I9(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 R9(e){return(R9=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D9(e,t){return(D9=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N9=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),j9(this,R9(t).call(this,e))}var n,o,r;return 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&&D9(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get("migration:progress",{percentage:0}),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.bindMigrationDataListeners()}},{key:"regions",value:function(){return{progressBar:{replaceElement:!0,el:".progress-bar-region"}}}},{key:"bindMigrationDataListeners",value:function(){this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(f.MIGRATION,"".concat(F.FINALISATION,":").concat(this.options.finalisationTaskId,":error"),this.onError)}},{key:"poll",value:function(){var e=this;this.migrationVideoDataService.getFinalisationTask(this.options.finalisationTaskId,(function(t){if(e.finalisationTask=t,e.setPercentage(),e.viewModel.get("percentage")>=100){u.InstanceManager.getInstance(un.Library).clearLibrariesCache(),u.InstanceManager.releaseInstance(un.Library),e.migrationVideoDataService.clearCacheAndGetCustomerMetadata();var n={};return e.options.firstTime&&(n.initialMigration=!0),void u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.VIDEOS_ADDED,args:[e.options.finalisationTaskId],params:n})}setTimeout((function(){return e.poll()}),5e3),e.isRendered()?(e.renderProgressBar(),e.getUI("addingText").text(e.getAddingText())):e.render()}))}},{key:"setPercentage",value:function(){if(this.finalisationTask){var e=this.finalisationTask.get("successfullyProcessed")+this.finalisationTask.get("failedToProcess"),t=this.finalisationTask.get("numberOfVideos");this.finalisationTask.get("videosWithWarning")&&0===t?this.viewModel.set("percentage",100):this.viewModel.set("percentage",Math.round(e/t*100))}}},{key:"onError",value:function(){u.Core.ErrorHelper.throw(new E5)}},{key:"renderProgressBar",value:function(){this.showChildView("progressBar",new B6({model:this.viewModel,backgroundClass:"bg-info"}))}},{key:"onBeforeRender",value:function(){return this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!!this.finalisationTask&&!!this.customerMetadata}},{key:"getAddingText",value:function(){var e=this.finalisationTask.get("successfullyProcessed")+this.finalisationTask.get("failedToProcess");return u.LanguageService.getPhrase(this.lang,"addingVideos",{numberMigrated:e||1,numberSelected:this.finalisationTask.get("numberOfVideos")+this.finalisationTask.get("videosWithWarning")})}},{key:"viewOptions",value:function(){if(this.finalisationTask){var e=this.finalisationTask.get("successfullyProcessed")+this.finalisationTask.get("failedToProcess");return{styles:T9.a,numberMigrated:e||1,numberSelected:this.finalisationTask.get("numberOfVideos")+this.finalisationTask.get("videosWithWarning"),addingText:this.getAddingText()}}}},{key:"onRender",value:function(){this.renderProgressBar()}},{key:"name",get:function(){return"MigrationProgressView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.migrationProgress"}},{key:"template",get:function(){return x9.a}},{key:"className",get:function(){return"".concat(T9.a.migrationContainer," p-3 bg-white ").concat(T9.a.progress)}},{key:"elements",get:function(){return{addingText:".adding-text"}}}])&&L9(n.prototype,o),r&&L9(n,r),t}(u.Core.View),A9=n(54),M9=n.n(A9),V9=n(390),U9=n.n(V9);function F9(e){return(F9="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 B9(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 H9(e,t){return!t||"object"!==F9(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 W9(e){return(W9=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z9(e,t){return(z9=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var q9=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),H9(this,W9(t).call(this,e))}var n,o,r;return 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&&z9(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.listenTo(f.MIGRATION,"".concat(F.FINALISATION,":").concat(this.options.finalisationTaskId,":sync"),this.render)}},{key:"showError",value:function(){return!this.options.firstTime&&this.model.get("videosWithWarning")}},{key:"showWarning",value:function(){return!(!this.options.firstTime||!this.model.get("videosWithWarning"))}},{key:"showSuccess",value:function(){return!this.model.get("videosWithWarning")}},{key:"viewOptions",value:function(){return{styles:M9.a,publisherIcon:p.SvgHelper.getSvg(p.cvSvgLibrary.PublisherArchive),firstTime:this.options.firstTime,showSuccess:this.showSuccess(),showWarning:this.showWarning(),showError:this.showError(),successes:this.model.get("successfullyProcessed"),warnings:this.model.get("videosWithWarning")}}},{key:"onBeforeRender",value:function(){var e=this;return!!this.model||(this.migrationVideoDataService.clearCacheAndGetManualReviewVideoCount(),this.migrationVideoDataService.getFinalisationTask(this.options.finalisationTaskId,(function(t){e.model=t,e.render()})),!1)}},{key:"name",get:function(){return"VideosAddedView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.videosAdded"}},{key:"template",get:function(){return U9.a}},{key:"className",get:function(){return"".concat(M9.a.migrationContainer," text-center p-3 bg-white ").concat(M9.a.videosAdded)}},{key:"appLinks",get:function(){return{".applink-start":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME},".applink-migration-warnings":{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.MIGRATION_ERRORS}}}}])&&B9(n.prototype,o),r&&B9(n,r),t}(u.Core.View),G9=n(97),Y9=n.n(G9),J9=n(391),K9=n.n(J9);function Q9(e){return(Q9="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 Z9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $9(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 X9(e,t,n){return t&&$9(e.prototype,t),n&&$9(e,n),e}function e7(e,t){return!t||"object"!==Q9(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 t7(e){return(t7=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n7(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&&o7(e,t)}function o7(e,t){return(o7=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var r7=function(e){function t(){return Z9(this,t),e7(this,t7(t).apply(this,arguments))}return n7(t,e),X9(t,[{key:"name",get:function(){return"SelectedVideoComponentCollection"}},{key:"childView",get:function(){return k6}}]),t}(u.Core.ComponentCollection),i7=function(e){function t(e){return Z9(this,t),e7(this,t7(t).call(this,e))}return n7(t,e),X9(t,[{key:"initialize",value:function(){this.selectedVideoService=u.InstanceManager.getInstance(sn.SelectedVideo,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.listenTo(this.channelName,"add",this.onClickAdd)}},{key:"regions",value:function(){return{selectedVideoListRegion:{replaceElement:!0,el:".selected-video-list-region"},spinner:".spinner-region"}}},{key:"onClickAdd",value:function(){var e=this;this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_VIDEOS,":finalise:error"),this.onError),yf.channel(this.channelName).trigger(oB.ShowSpinner);var t={};dz.isInitialMigration(this.customerMetaData)&&(t.initialMigration=!0),this.migrationVideoDataService.updateCustomerMigrationOption(nz.Smart,(function(){e.migrationVideoDataService.finaliseCustomerVideos(e.groupedVideos,!1,(function(n){e.selectedVideoService.removeAllSelectedVideos(),e.migrationVideoDataService.clearVideoCache(),e.videoDataService.clearVideoCache(),u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PROGRESS,args:[n.id],params:t})}))}))}},{key:"onError",value:function(){u.Core.ErrorHelper.throw(new L5)}},{key:"getGroupedVideos",value:function(){var e=this.selectedVideoService.getSelectedVideos();this.groupedVideos=new u.Core.Collection(i8(e).sortBy("folderChord"))}},{key:"renderSelectedVideoList",value:function(){this.showChildView("selectedVideoListRegion",new r7({collection:this.groupedVideos}))}},{key:"renderSpinner",value:function(){var e=this.selectedVideoService.getNumberSelected(),t=new iB({buttonText:u.LanguageService.getPhrase(this.lang,"buttonText",{smartCount:e}),extraButtonClass:"btn-primary",model:new u.Core.Model({disabled:0===e}),spinnerOptions:{size:qh.Small,type:Gh.Light,extraClasses:"mx-auto"},saveEvent:"add",channelName:this.channelName});this.showChildView("spinner",t)}},{key:"viewOptions",value:function(){var e=this.selectedVideoService.getNumberSelected();return{styles:Y9.a,selected:e,multipleSelected:e>1,nextDisabled:0===e}}},{key:"onRender",value:function(){this.getGroupedVideos(),this.renderSelectedVideoList(),this.renderSpinner()}},{key:"name",get:function(){return"SelectedVideosView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.selectedVideos"}},{key:"template",get:function(){return K9.a}},{key:"className",get:function(){return"row mt-2 container-region ".concat(Y9.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-back":{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.HOME,params:{folder:this.options.previousFolderChord}}}}},{key:"requiredResources",get:function(){return{customerMetaData:$$.customerMetaData}}}]),t}(u.Core.View),a7=n(55),l7=n.n(a7),s7=n(392),u7=n.n(s7);function c7(e){return(c7="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 p7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f7(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 h7(e,t){return!t||"object"!==c7(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 d7(e){return(d7=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y7(e,t){return(y7=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g7=function(e){function t(){return p7(this,t),h7(this,d7(t).apply(this,arguments))}var n,o,r;return 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&&y7(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.listenTo(f.MIGRATION,"".concat(F.BACKUP_TOOL,":sync"),this.render)}},{key:"pollCloudSyncStatus",value:function(){var e=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(t){dz.backupProcessing(t)?u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_PROGRESS}):dz.backupComplete(t)?u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return e.pollCloudSyncStatus()}),3e4)}))}},{key:"onBeforeRender",value:function(){return this.model=this.migrationVideoDataService.getBackupTool(this.config.get("pbtDownloadChannel")),!!this.model}},{key:"viewOptions",value:function(){return{styles:l7.a,supportUrl:u.UrlHelper.safeUrlConcat(this.config.get("supportSiteUrl"),cn.PUBLISHER_SERVER),appointmentUrl:"".concat(u.UrlHelper.safeUrlConcat(this.config.get("marketingSiteUrl"),"/library-editor/book-appointment"))}}},{key:"onRender",value:function(){this.pollingStarted||(this.pollCloudSyncStatus(),this.pollingStarted=!0)}},{key:"name",get:function(){return"PublisherBackupView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackup"}},{key:"className",get:function(){return"container p-4 bg-white ".concat(l7.a.migrationBackupContainer," ").concat(l7.a.info)}},{key:"template",get:function(){return u7.a}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&f7(n.prototype,o),r&&f7(n,r),t}(u.Core.View),m7=n(41),b7=n.n(m7),v7=n(393),w7=n.n(v7);function S7(e){return(S7="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 k7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O7(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 C7(e,t){return!t||"object"!==S7(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 E7(e){return(E7=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _7(e,t){return(_7=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var T7=function(e){function t(){return k7(this,t),C7(this,E7(t).apply(this,arguments))}var n,o,r;return 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&&_7(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get("backup:progress",{percentage:0}),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.bindMigrationDataListeners()}},{key:"regions",value:function(){return{progressCircle:{replaceElement:!0,el:".progress-circle-region"}}}},{key:"bindMigrationDataListeners",value:function(){this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_VIDEO,":count:error"),this.onError)}},{key:"onError",value:function(){u.Core.ErrorHelper.throw(new v5)}},{key:"poll",value:function(){var e=this;this.migrationVideoDataService.getCustomerVideoCount((function(t){e.isDestroyed()||(e.videoCount=t,e.setPercentage(),e.viewModel.get("percentage")>=100?e.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_COMPLETE})})):(setTimeout((function(){return e.poll()}),5e3),e.render()))}))}},{key:"setPercentage",value:function(){if(this.videoCount){var e=100*this.videoCount.get("progressPercentage");e>100&&(e=100),this.viewModel.set({percentage:Math.round(e)})}}},{key:"renderProgressCircle",value:function(){this.showChildView("progressCircle",new Z6({model:this.viewModel,text:u.LanguageService.getPhrase(this.lang,"hasBeenBackedUp"),class:b7.a.progress}))}},{key:"onBeforeRender",value:function(){return this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!!this.customerMetadata}},{key:"viewOptions",value:function(){return{styles:b7.a,timeRemaining:"30 minutes"}}},{key:"onRender",value:function(){this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.renderProgressCircle()}},{key:"name",get:function(){return"PublisherBackupProgressView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupProgress"}},{key:"className",get:function(){return"container text-center p-5 bg-white ".concat(b7.a.migrationBackupContainer," ").concat(b7.a.backupProgress)}},{key:"template",get:function(){return w7.a}}])&&O7(n.prototype,o),r&&O7(n,r),t}(u.Core.View),P7=n(56),x7=n.n(P7),I7=n(394),L7=n.n(I7);function j7(e){return(j7="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 R7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D7(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 N7(e,t){return!t||"object"!==j7(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 A7(e){return(A7=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M7(e,t){return(M7=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var V7=function(e){function t(){return R7(this,t),N7(this,A7(t).apply(this,arguments))}var n,o,r;return 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&&M7(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_METADATA,":sync"),this.render)}},{key:"viewOptions",value:function(){return{styles:x7.a,error:this.hasErrored(),archiveSvg:'<span class="d-inline-block align-middle svg-container">\n '.concat(p.SvgHelper.getSvg(p.cvSvgLibrary.PublisherArchive),"</span>"),appointmentUrl:"\n ".concat(u.UrlHelper.safeUrlConcat(this.config.get("marketingSiteUrl"),"/library-editor/book-appointment?type=library-editor-publisher-backup-tool"),"\n ")}}},{key:"onBeforeRender",value:function(){var e=this;return this.migrationVideoDataService.getCustomerMetadata((function(t){e.metadata=t})),!!this.metadata}},{key:"onRender",value:function(){!this.pollingStarted&&this.hasErrored()&&(this.pollCloudSyncStatus(),this.pollingStarted=!0)}},{key:"hasErrored",value:function(){return dz.backupCompleteWithError(this.metadata)}},{key:"pollCloudSyncStatus",value:function(){var e=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(t){e.isDestroyed()||(dz.backupProcessing(t)?u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_PROGRESS}):dz.backupCompleteWithoutError(t)?u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return e.pollCloudSyncStatus()}),3e4))}))}},{key:"name",get:function(){return"PublisherBackupCompleteView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupComplete"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(x7.a.migrationBackupContainer," ").concat(x7.a.complete)}},{key:"template",get:function(){return L7.a}},{key:"appLinks",get:function(){return{".applink-start-migration":{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.START_MIGRATION}}}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&D7(n.prototype,o),r&&D7(n,r),t}(u.Core.View),U7=n(57),F7=n.n(U7),B7=n(395),H7=n.n(B7);function W7(e){return(W7="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 z7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q7(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 G7(e,t){return!t||"object"!==W7(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 Y7(e){return(Y7=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function J7(e,t){return(J7=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var K7=function(e){function t(){return z7(this,t),G7(this,Y7(t).apply(this,arguments))}var n,o,r;return 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&&J7(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this)}},{key:"pollCloudSyncStatus",value:function(){var e=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(t){dz.backupProcessing(t)?u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_PROGRESS}):dz.backupComplete(t)?u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return e.pollCloudSyncStatus()}),3e4)}))}},{key:"getMigrationUrl",value:function(){var e=this.config.get("supportSiteUrl");return u.UrlHelper.safeUrlConcat(e,cn.PUBLISHER_ARCHIVE)}},{key:"viewOptions",value:function(){return{styles:F7.a,migrationUrl:this.getMigrationUrl()}}},{key:"onRender",value:function(){this.pollCloudSyncStatus()}},{key:"name",get:function(){return"PublisherBackupWelcomeView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupWelcome"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(F7.a.migrationBackupContainer," ").concat(F7.a.welcome)}},{key:"template",get:function(){return H7.a}},{key:"appLinks",get:function(){return{".applink-lets-start":{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.BACKUP_DOWNLOAD}}}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&q7(n.prototype,o),r&&q7(n,r),t}(u.Core.View),Q7=n(396),Z7=n.n(Q7);function $7(e){return($7="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 X7(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 eee(e,t){return!t||"object"!==$7(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 tee(e){return(tee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nee(e,t){return(nee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oee=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),eee(this,tee(t).call(this,e))}var n,o,r;return 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&&nee(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.spinnerModel=new kB,this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.options.masterId&&this.listenTo(f.VIDEO,"".concat(F.VIDEOS,":").concat(this.options.masterId,":error"),this.onError)}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.model)return{model:this.spinnerModel,channelName:this.channelName,buttonText:function(){return e.getButtonText()},onClick:function(){return e.migrateVideo()}}}},{key:"getButtonText",value:function(){return this.model?u.LanguageService.getPhrase(this.lang,"viewVideo"):u.LanguageService.getPhrase(this.lang,"addToLibrary")}},{key:"onVideoSync",value:function(e){e.libraries&&e.libraries.any((function(e){return e.get("type")===O.CustomLibrary}))?(this.model=e,this.spinnerModel.set(rB.Disabled,!1),this.render()):this.onError()}},{key:"onError",value:function(){this.spinnerModel.set(rB.Disabled,!1),this.render()}},{key:"migrateVideo",value:function(){var e=this;this.spinnerModel.set(rB.ShowSpinner,!0);var t=new u.Core.Collection([{folderChord:this.options.folderChord,videoIds:[this.options.videoId]}]);this.migrationVideoDataService.finaliseCustomerVideos(t,!1,(function(t){e.migrationVideoDataService.clearVideoCache(),e.videoDataService.clearVideoCache(),u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PROGRESS,args:[t.id]})}))}},{key:"dataFetched",value:function(){return!this.spinnerModel.get(rB.Disabled)}},{key:"onBeforeRender",value:function(){var e=this;!this.model&&this.options.masterId?this.dataFetched()||this.videoDataService.clearCacheAndGetVideo(this.options.masterId,(function(t){return e.onVideoSync(t)}),!1):this.spinnerModel.set(rB.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),videoDeleted:!this.model,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"RemigrateVideoView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.remigrateVideo"}},{key:"template",get:function(){return Z7.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"appLinks",get:function(){return{".view-video":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[this.options.masterId]}}}}])&&X7(n.prototype,o),r&&X7(n,r),t}(u.Core.View),ree=n(397),iee=n.n(ree),aee=n(398),lee=n.n(aee);function see(e){return(see="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 uee(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 cee(e,t){return!t||"object"!==see(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 pee(e){return(pee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fee(e,t){return(fee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hee,dee=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cee(this,pee(t).call(this,e))}var n,o,r;return 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&&fee(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"generate:csv",this.onClickGenerateCsv)}},{key:"onClickGenerateCsv",value:function(){var e=this;sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.migrationVideoDataService.generateMigrationReportCsv(this.options.options,(function(){return e.triggerMethod("hide")}))}},{key:"viewOptions",value:function(){return{styles:iee.a,reportOptions:X6.getSelectedOptionsText(this.options.options),imageUrl:yn.Shared.GenerateCsv,email:this.currentUser.get("email")}}},{key:"onBeforeRender",value:function(){this.spinnerModel.set(rB.Disabled,!1)}},{key:"name",get:function(){return"GenerateCsvReportView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.generateCsvReport"}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"template",get:function(){return lee.a}},{key:"behaviors",get:function(){return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new kB,saveEvent:"generate:csv",channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"generateReport"),extraButtonClass:"btn-primary",spinnerOptions:{size:qh.Small,type:Gh.Light,extraClasses:"mx-auto"}}}]}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser}}}])&&uee(n.prototype,o),r&&uee(n,r),t}(u.Core.View),yee=n(58),gee=n.n(yee),mee=n(399),bee=n.n(mee);function vee(e){return(vee="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 wee(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 See(e,t){return!t||"object"!==vee(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 kee(e){return(kee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oee(e,t){return(Oee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e[e.Upload=0]="Upload",e[e.Crop=1]="Crop"}(hee||(hee={}));var Cee=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),See(this,kee(t).call(this,e))}var n,o,r;return 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&&Oee(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.popupContentState=hee.Upload,this.viewModel=u.ViewModelService.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(rB.Disabled,!1),this.popupContentState=hee.Crop),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.imageUploadDataService=u.InstanceManager.getInstance(un.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(f.LIBRARY,"".concat(F.FOLDER,":").concat(this.options.folderId,":sync"),this.render);var t="".concat(this.channelName,":").concat(E.Banners),n="".concat(this.channelName,":").concat(E.Thumbnails);this.listenTo(t,"select:image",(function(t){return e.onSelectImage(t,E.Banners)})),this.listenTo(n,"select:image",(function(t){return e.onSelectImage(t,E.Thumbnails)})),this.listenTo(t,"show:dialog",(function(){return e.onShowDialog(E.Banners)})),this.listenTo(n,"show:dialog",(function(){return e.onShowDialog(E.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,aV.ImageCropped,this.onImageCropped)}},{key:"onClickBackButton",value:function(){this.popupContentState!==hee.Upload&&(this.popupContentState=hee.Upload,this.selectedImageType=null,this.newImageEl=null,this.spinnerModel.set(rB.Disabled,!0),this.renderContent())}},{key:"onClickCrop",value:function(){sp.Radio.channel(this.channelName).trigger(aV.CropImage).trigger(oB.ShowSpinner)}},{key:"onSelectImage",value:function(e,t){this.selectedImageType=t,this.newImageEl=new Image,this.newImageEl.src=e,this.popupContentState=hee.Crop,this.spinnerModel.set(rB.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},o=this.selectedImageType===E.Banners?jb.EntityType.Banner:jb.EntityType.Thumbnail,r=this.selectedImageType===E.Banners?"addOrUpdateBanner":"addOrUpdateThumbnail";this.libraryDataService[r](n,(function(e){jb.AnalyticsHelper.logUserAction({libraryId:t.libraryId,folderId:t.options.folderId,id:e.get("id")},{actionType:jb.UserAction.Upload,entity:o,workflowPhase:jb.WorkflowPhase.Complete,location:jb.LocationContext.Popup}),t.reloadPage()}))}},{key:"onShowDialog",value:function(e){var t=this,n=new th({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===E.Banners?"deleteBanner":"deleteThumbnail",o=e===E.Banners?this.currentBanner:this.currentThumbnail,r={libraryId:this.libraryId,folderId:this.model.get("id"),imageId:o.get("id")},i=e===E.Banners?jb.EntityType.Banner:jb.EntityType.Thumbnail;this.libraryDataService[n](r,(function(){jb.AnalyticsHelper.logUserAction({libraryId:t.libraryId,folderId:t.model.get("id"),id:o.get("id")},{actionType:jb.UserAction.Delete,entity:i,workflowPhase:jb.WorkflowPhase.Complete,location:jb.LocationContext.Popup}),t.reloadPage()}))}},{key:"reloadPage",value:function(){var e=this,t=u.Core.LocationUtils.GetCurrentPath().includes("folders");setTimeout((function(){return u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:t?M.LibraryEditor.FOLDER:M.LibraryEditor.HOME,args:t?[e.options.folderId]:void 0})}),0)}},{key:"getCurrentImageId",value:function(){return this.selectedImageType===E.Banners&&this.currentBanner?this.currentBanner.get("id"):this.selectedImageType===E.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 gu({dataUrl:this.newImageEl.src,width:this.newImageEl.width,height:this.newImageEl.height})}},{key:"renderContent",value:function(){this.popupContentState===hee.Upload&&(this.getUI("backBtn").addClass(gee.a.hide),this.showChildView("content",new UT({imageCdnUrl:this.config.get("imageCdnUrl"),folderName:this.model.get("name"),bannerImage:this.currentBanner,thumbnailImage:this.currentThumbnail,bannerChannel:"".concat(this.channelName,":").concat(E.Banners),thumbnailChannel:"".concat(this.channelName,":").concat(E.Thumbnails),folderId:this.options.folderId})))}},{key:"renderCropper",value:function(){this.popupContentState===hee.Crop&&(this.getUI("backBtn").removeClass(gee.a.hide),this.showChildView("content",new mV({model:this.getImageModel(),channelName:this.channelName,imageType:this.selectedImageType,minWidth:hn[this.selectedImageType].width,minHeight:hn[this.selectedImageType].height,getCropRegionWidth:s.bind(this.getCropRegionWidth,this)})))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.libraryId,spinnerEl:td.getSpinner({size:qh.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 bee.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{backBtn:".back-btn"}}},{key:"behaviors",get:function(){return[{title:"Edit folder images",behaviorClass:Sg,size:"modal-lg",buttons:[{text:"Back",className:"btn btn-light back-btn ".concat(gee.a.hide)}],spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:"Continue",onClick:this.onClickCrop}}]}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&wee(n.prototype,o),r&&wee(n,r),t}(u.Core.View),Eee=n(400),_ee=n.n(Eee);function Tee(e){return(Tee="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 Pee(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 xee(e,t){return!t||"object"!==Tee(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 Iee(e){return(Iee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lee(e,t){return(Lee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jee=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),xee(this,Iee(t).call(this,e))}var n,o,r;return 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&&Lee(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(f.LINK,"link:".concat(this.options.linkId,":sync"),this.render),this.linkDataService=u.InstanceManager.getInstance(un.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()&&(sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.linkDataService.updateLink(this.options.videoId,this.viewModel,(function(){t.logAction(),u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.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")};jb.AnalyticsHelper.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=u.ViewModelService.get("link:".concat(e.options.linkId),t.toJSON(),{ctor:xc}),e.viewModel.addValidation(mw)})),this.dataFetched()&&this.spinnerModel.set(rB.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),sp.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 _ee.a}},{key:"channelName",get:function(){return Th.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:Sg,title:"Edit link",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new kB,buttonText:"Save",onClick:function(t){return e.onSubmit(t)}}}]}}])&&Pee(n.prototype,o),r&&Pee(n,r),t}(u.Core.View),Ree=n(401),Dee=n.n(Ree);function Nee(e){return(Nee="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 Aee(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 Mee(e,t){return!t||"object"!==Nee(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 Vee(e){return(Vee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Uee(e,t){return(Uee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Fee=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Mee(this,Vee(t).call(this,e))}var n,o,r;return 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&&Uee(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.alertService=u.InstanceManager.getInstance(sn.Alerts,this),this.listenTo(f.LIBRARY,"exchange:".concat(10,":sync"),this.render),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{folderDropdown:".folder-dropdown-region"}}},{key:"getExchange",value:function(){return this.exchangeLibraries.first()}},{key:"onClickSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.spinnerModel.set(rB.ShowSpinner,!0),this.videoDataService.copyVideo(this.options.videoId,this.getExchange().get("id"),this.folder.get("id"),(function(){t.alertService.createAlert({heading:"Request submitted",message:"We will notify you once your Exchange request has been approved",type:u.AlertType.Success}),t.triggerMethod("hide")}))}},{key:"onFolderSelected",value:function(e){this.folder=e,this.spinnerModel.set(rB.Disabled,!1),sh.setSelected(this.folderTreeKey,e,this.getExchange().children)}},{key:"onBeforeRender",value:function(){this.exchangeLibraries=this.libraryDataService.getExchange(10)}},{key:"onRender",value:function(){this.exchangeLibraries&&this.showChildView("folderDropdown",new yB({collection:this.getExchange().children,channelName:this.channelName,folderTreeKey:this.folderTreeKey}))}},{key:"viewOptions",value:function(){return{foldersLoaded:!!this.exchangeLibraries,guidelinesUrl:u.UrlHelper.safeUrlConcat(this.config.get("onlineUrl"),"/exchange/community-guidelines"),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"AddToExchangeView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Dee.a}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:"Add to the Exchange",spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:"Submit",onClick:function(t){return e.onClickSubmit(t)}}}]}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&Aee(n.prototype,o),r&&Aee(n,r),t}(u.Core.View);function Bee(e){return(Bee="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 Hee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wee(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 zee(e,t,n){return t&&Wee(e.prototype,t),n&&Wee(e,n),e}function qee(e,t){return!t||"object"!==Bee(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 Gee(e){return(Gee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yee(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&&Jee(e,t)}function Jee(e,t){return(Jee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Kee,Qee=function(e){function t(){return Hee(this,t),qee(this,Gee(t).apply(this,arguments))}return Yee(t,e),zee(t,[{key:"channelName",get:function(){return y.LIBRARY_EDITOR}},{key:"appRoutes",get:function(){return{"manage/libraries(/)":"index","manage/libraries/:id(/)":"library","manage/libraries/folders/:id(/)":"folder","manage/libraries/series/:id(/)":"series","manage/libraries/videos/:id(/)":"videoDetails","manage/libraries/videos/:id/edit(/)":"editVideo","manage/libraries/videos/:id/edit/chapters(/)":"editVideoChapters","manage/libraries/videos/:id/edit/resources(/)":"editVideoResources"}}},{key:"appLinks",get:function(){return["newFolder","newSubFolder","renameFolder","moveFolder","deleteFolder","shareVideo","deleteVideos","moveVideos","manageVideoAccess","newLibrary","renameLibrary","deleteLibrary","editResource","uploadThumbnail","uploadBanner","downloadVideo","generatePdf","makeLibraryAvailable","downloadToLocalCache","suggestAnEdit","showPublisherVideo","editFolderImages","editLink","addToExchange"]}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,iq]}}]),t}(u.Core.AppRouter),Zee=function(e){function t(){return Hee(this,t),qee(this,Gee(t).apply(this,arguments))}return Yee(t,e),zee(t,[{key:"initialize",value:function(){this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),u.InstanceManager.getInstance(sn.VideoDragDrop,this),u.InstanceManager.getInstance(sn.FolderDragDrop,this),this.pageVisibilityService=u.InstanceManager.getInstance(sn.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(e){e||F4()})),F4()}},{key:"index",value:function(){var e=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(t){var n=t.first();if(n)e.renderLeftNav(n.id),u.Core.AppLinkHelper.trigger({application:e.channelName,action:M.LibraryEditor.LIBRARY,args:[n.id]},{replace:!0});else{e.renderLeftNav();var o=new I4;e.layout.showChildView(an.CONTENT,o)}}))}},{key:"library",value:function(e){this.libraryDataService.deselectAll(),this.renderLeftNav(e);var t=new S4({libraryId:e});this.layout.showChildView(an.CONTENT,t)}},{key:"folder",value:function(e,t){var n=this,o=t.sort||oh.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(e);var r=new I1({collectionIdentifier:new NY(e,oh.GetSortTypeFromName(o),t.cursor),analyticsOptions:{entity:jb.EntityType.Folder}});this.layout.showChildView(an.CONTENT,r),this.libraryDataService.getLibraries((function(t){var o=sh.getLibrary(e,t);n.renderLeftNav(o.id)}))}},{key:"renameFolder",value:function(e){var t=new I2({folderId:e,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Rename,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,t)}},{key:"moveFolder",value:function(e){var t=new U2({folderId:e,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Move,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,t)}},{key:"newFolder",value:function(e,t){var n=new N3({libraryId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Create,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,n)}},{key:"newSubFolder",value:function(e,t){var n=new N3({parentId:e,routeToFolderOnCreate:!0,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Create,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,n)}},{key:"deleteFolder",value:function(e){var t=new T3({folderId:e,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Delete,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,t)}},{key:"series",value:function(e,t){var n=t.sort||oh.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:n});var o=new NY(e,oh.GetSortTypeFromName(n),t.cursor),r=new L1({collectionIdentifier:o,analyticsOptions:{entity:jb.EntityType.Series}});this.layout.showChildView(an.CONTENT,r),this.renderLeftNav()}},{key:"moveVideos",value:function(e,t){var n=e.split(","),o=new U1({videoIds:n,folderId:t,analyticsOptions:{descriptor:n.length>1?jb.OperationDescriptor.Bulk:jb.OperationDescriptor.Single,location:jb.LocationContext.Popup,actionType:jb.UserAction.Move,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,o)}},{key:"deleteVideos",value:function(e,t,n){var o=new v3({folderId:e,videoIds:t.split(","),routeToFolderOnDelete:n&&n.routeToFolderOnDelete,analyticsOptions:{descriptor:t.length>1?jb.OperationDescriptor.Bulk:jb.OperationDescriptor.Single,location:jb.LocationContext.Popup,actionType:jb.UserAction.Delete,entity:jb.EntityType.Video,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,o)}},{key:"videoDetails",value:function(e,t){var n=new p3({videoId:e});this.layout.showChildView(an.CONTENT,n),this.renderLeftNav()}},{key:"shareVideo",value:function(e){var t=new uz({videoId:e.toString()});this.layout.showChildView(an.POPUP,t)}},{key:"manageVideoAccess",value:function(e){this.layout.showChildView(an.POPUP,new AW({videoId:e}))}},{key:"editVideo",value:function(e){p.ContextService.fromPageLoad()&&this.logEditPageLoad({id:+e},jb.LocationContext.EditVideoDetails);var t=new o3({videoId:e});this.layout.showChildView(an.CONTENT,t),this.renderLeftNav()}},{key:"editVideoChapters",value:function(e){p.ContextService.fromPageLoad()&&this.logEditPageLoad({id:+e},jb.LocationContext.EditVideoChapters);var t=new a2({videoId:e});this.layout.showChildView(an.CONTENT,t),this.renderLeftNav()}},{key:"editVideoResources",value:function(e){p.ContextService.fromPageLoad()&&this.logEditPageLoad({id:+e},jb.LocationContext.EditVideoResources);var t=new d2({videoId:e});this.layout.showChildView(an.CONTENT,t),this.renderLeftNav()}},{key:"editResource",value:function(e,t){var n=new k2({videoId:e,resourceId:t,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Edit,entity:jb.EntityType.Resource,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,n)}},{key:"newLibrary",value:function(){var e=new z3({});this.layout.showChildView(an.POPUP,e)}},{key:"renameLibrary",value:function(e){var t=new U4({libraryId:e,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Rename,entity:jb.EntityType.Library,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,t)}},{key:"deleteLibrary",value:function(e){var t=new $3({libraryId:e,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Delete,entity:jb.EntityType.Library,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,t)}},{key:"generatePdf",value:function(e,t){var n=t.sort||oh.GetSortViewModel().get("sortName"),o=new p4({collectionIdentifier:new NY(e,oh.GetSortTypeFromName(n))});this.layout.showChildView(an.POPUP,o)}},{key:"uploadThumbnail",value:function(e){var t=new t4({videoId:e});this.layout.showChildView(an.POPUP,t)}},{key:"uploadBanner",value:function(e){var t=new Y2({folderId:e});this.layout.showChildView(an.POPUP,t)}},{key:"downloadVideo",value:function(e){var t=new _W({videoId:e});this.layout.showChildView(an.HIDDEN,t)}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"downloadToLocalCache",value:function(e){var t=new Lz({videoId:e});this.layout.showChildView(an.POPUP,t)}},{key:"showPublisherVideo",value:function(e){this.layout.showChildView(an.POPUP,new h5({masterId:e}))}},{key:"editFolderImages",value:function(e){var t=new Cee({folderId:e});this.layout.showChildView(an.POPUP,t)}},{key:"renderLeftNav",value:function(e){var t=new K1({libraryId:e});this.layout.showChildView(an.LEFT_NAV,t)}},{key:"suggestAnEdit",value:function(e,t){var n=new K4({videoId:e,metadata:t.metadata});this.layout.showChildView(an.POPUP,n)}},{key:"editLink",value:function(e,t){var n=new jee({videoId:e,linkId:t,analyticsOptions:{location:jb.LocationContext.Popup,actionType:jb.UserAction.Edit,entity:jb.EntityType.Link,workflowPhase:jb.WorkflowPhase.Complete}});this.layout.showChildView(an.POPUP,n)}},{key:"addToExchange",value:function(e){var t=new Fee({videoId:e});this.layout.showChildView(an.POPUP,t)}},{key:"logEditPageLoad",value:function(e,t){jb.AnalyticsHelper.logUserAction(e,{actionType:jb.UserAction.Edit,location:t,entity:jb.EntityType.Video,descriptor:jb.PageDescriptor.PageLoad,workflowPhase:jb.WorkflowPhase.Start})}},{key:"name",get:function(){return"Library Editor Application"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.LIBRARY_EDITOR,showLeftNav:!0,selectedNavItem:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME}}}}},{key:"channelName",get:function(){return y.LIBRARY_EDITOR}}],[{key:"router",get:function(){return Qee}}]),t}(u.Core.Application);!function(e){e[e.Processing=1]="Processing",e[e.Completed=2]="Completed",e[e.Queued=3]="Queued"}(Kee||(Kee={}));var $ee=n(59),Xee=n(402);function ete(e){return(ete="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 tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nte(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 ote(e,t){return!t||"object"!==ete(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 rte(e){return(rte=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ite(e,t){return(ite=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ate=function(e){function t(){return tte(this,t),ote(this,rte(t).apply(this,arguments))}var n,o,r;return 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&&ite(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.viewModel=u.ViewModelService.get("publish:library:progress",{percentage:0})}},{key:"regions",value:function(){return{progressCircle:{replaceElement:!0,el:".progress-circle-region"}}}},{key:"poll",value:function(){var e=this;this.migrationVideoDataService.getPublishLibrariesProgress(lz.Phase2,(function(t){if(!e.isDestroyed()){if(t.get("type")!==lz.Phase2)return e.progress=0,void setTimeout((function(){return e.poll()}),3e3);e.progress=100*t.get("progressPercentage"),e.setPercentage(),t.get("status")!==Kee.Completed?setTimeout((function(){return e.poll()}),3e3):e.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){sp.Radio.channel(cZ).trigger("status:changed"),u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PUBLISH_LIBRARY_COMPLETE})}))}}))}},{key:"setPercentage",value:function(){this.progress&&this.viewModel.set({percentage:Math.round(this.progress)})}},{key:"renderProgressCircle",value:function(){this.showChildView("progressCircle",new Z6({model:this.viewModel,text:u.LanguageService.getPhrase(this.lang,"hasBeenPublished"),class:$ee.progress}))}},{key:"onRender",value:function(){this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.renderProgressCircle()}},{key:"name",get:function(){return"PublishLibraryProgressView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryProgress"}},{key:"className",get:function(){return"container text-center p-5 bg-white ".concat($ee.migrationBackupContainer," ").concat($ee.backupProgress)}},{key:"template",get:function(){return Xee}}])&&nte(n.prototype,o),r&&nte(n,r),t}(u.Core.View),lte=n(403),ste=n.n(lte),ute=n(60),cte=n.n(ute);function pte(e){return(pte="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 fte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hte(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 dte(e,t){return!t||"object"!==pte(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 yte(e){return(yte=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gte(e,t){return(gte=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mte=function(e){function t(){return fte(this,t),dte(this,yte(t).apply(this,arguments))}var n,o,r;return 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)}(t,e),n=t,(o=[{key:"events",value:function(){return{"click .link-to-online":"onClickLinkToOnline"}}},{key:"onClickLinkToOnline",value:function(){u.Core.AppLinkHelper.trigger({application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME})}},{key:"viewOptions",value:function(){return{styles:cte.a,onlineUrl:u.UrlHelper.safeUrlConcat(this.config.get("onlineUrl"),"libraries")}}},{key:"name",get:function(){return"PublishLibraryCompleteView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryComplete"}},{key:"template",get:function(){return ste.a}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(cte.a.migrationBackupContainer," ").concat(cte.a.complete)}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&hte(n.prototype,o),r&&hte(n,r),t}(u.Core.View),bte=n(404),vte=n(405);function wte(e){return(wte="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 Ste(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 kte(e,t){return!t||"object"!==wte(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 Ote(e){return(Ote=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cte(e,t){return(Cte=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ete,_te=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kte(this,Ote(t).call(this,e))}var n,o,r;return 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&&Cte(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},webplayer:{el:".webplayer-region"}}}},{key:"onRender",value:function(){this.showChildView("webplayer",new ZP({webPlayerUrl:this.options.webplayerUrl,model:new jl({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))},trackingCode:this.model.get("trackingCode")}),captureAnalytics:!1})),this.model.get("description")&&this.showChildView("description",new EM({model:this.model,linkify:!0,size:sM.Large,truncate:!0,allowExpand:!0}))}},{key:"name",get:function(){return"ErroredVideoPreviewComponent"}},{key:"className",get:function(){return"p-3 border-top"}},{key:"template",get:function(){return vte}},{key:"lang",get:function(){return"migrationWizard.erroredVideoPreview"}}])&&Ste(n.prototype,o),r&&Ste(n,r),t}(u.Core.Component),Tte=n(406),Pte=n(407);function xte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ite=function(){return u.LanguageService.getPhrase("migrationWizard.utils","videoFileCorrupt")},Lte=function(){return u.LanguageService.getPhrase("migrationWizard.utils","videoFileInformationMissing")},jte=function(){return u.LanguageService.getPhrase("migrationWizard.utils","resouceFileMissing")},Rte=(xte(Ete={},rz.BinaryRemoved,(function(){return""})),xte(Ete,rz.LocalFileNotFound,(function(){return u.LanguageService.getPhrase("migrationWizard.utils","videoFileMissing")})),xte(Ete,rz.DbEmptyChapter,Ite),xte(Ete,rz.DbChapterChecksumNotFound,Ite),xte(Ete,rz.DbChapterDurationNotFound,Lte),xte(Ete,rz.DbChapterFileSizeNotFound,Lte),xte(Ete,rz.DbChapterChecksumNotMatch,Lte),xte(Ete,rz.DbChapterDurationNotMatch,Lte),xte(Ete,rz.DbChapterFileSizeNotMatch,Lte),xte(Ete,rz.SubtitleUploadFailure,(function(){return u.LanguageService.getPhrase("migrationWizard.utils","subtitleFileMissing")})),xte(Ete,rz.ResourceUploadFailure,jte),xte(Ete,rz.ResourceFileNotFound,jte),xte(Ete,rz.ResourceFileInvalid,jte),xte(Ete,rz.DbResourceChecksumNotFound,jte),xte(Ete,rz.DbResourceExtensionNotFound,jte),xte(Ete,rz.DbResourceFileSizeNotFound,jte),xte(Ete,rz.DbResourceChecksumNotMatch,jte),xte(Ete,rz.DbResourceFileSizeNotMatch,jte),xte(Ete,rz.CoverImageUploadFailure,(function(){return u.LanguageService.getPhrase("migrationWizard.utils","thumbnailMissing")})),Ete),Dte=function(e){return s.unique(s.map(e,(function(e){return Rte[e]()})))};function Nte(e){return(Nte="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 Ate(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mte(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 Vte(e,t){return!t||"object"!==Nte(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 Ute(e){return(Ute=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fte(e,t){return(Fte=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Bte=function(e){function t(){return Ate(this,t),Vte(this,Ute(t).apply(this,arguments))}var n,o,r;return 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&&Fte(e,t)}(t,e),n=t,(o=[{key:"viewOptions",value:function(){return{styles:Pte,errorStrings:Dte(this.model.get("clientValidationResults")),ratingColorClass:this.model.get("rating")&&_w.mapRatingToClass(this.model.get("rating").value)}}},{key:"name",get:function(){return"ErroredVideoMetadataComponent"}},{key:"template",get:function(){return Tte}},{key:"lang",get:function(){return"migrationWizard.erroredVideoMetadata"}}])&&Mte(n.prototype,o),r&&Mte(n,r),t}(u.Core.Component),Hte="use-online-copy",Wte="do-not-add",zte="migration:errored:videos:preview",qte="migration:errored:videos:selected",Gte=n(408),Yte=n(409);function Jte(e){return(Jte="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 Kte(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 Qte(e,t){return!t||"object"!==Jte(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 Zte(e){return(Zte=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $te(e,t){return($te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xte=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qte(this,Zte(t).call(this,e))}var n,o,r;return 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&&$te(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get(qte),this.previewViewModel=u.ViewModelService.get(zte),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render)}},{key:"events",value:function(){return{"click .use-online-copy":"onClickSelect","click .dismiss":"onClickDismiss"}}},{key:"isSelected",value:function(){return this.viewModel.get(this.model.get("id"))===Hte}},{key:"onClickSelect",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.isSelected()?this.viewModel.unset(this.model.get("id")):this.viewModel.set(this.model.get("id"),Hte)}},{key:"onClickDismiss",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.viewModel.set(this.model.get("id"),Wte)}},{key:"viewOptions",value:function(){return{styles:Gte,selected:this.isSelected(),checkSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Check),previewSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Preview)}}},{key:"name",get:function(){return"ErroredVideoActionsComponent"}},{key:"template",get:function(){return Yte}},{key:"lang",get:function(){return"migrationWizard.erroredVideoActions"}},{key:"className",get:function(){return"text-right"}}])&&Kte(n.prototype,o),r&&Kte(n,r),t}(u.Core.Component),ene=n(410),tne=n(98);function nne(e){return(nne="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 one(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rne(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 ine(e,t){return!t||"object"!==nne(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 ane(e){return(ane=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lne(e,t){return(lne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sne=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ine(this,ane(t).call(this,e))}var n,o,r;return 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&&lne(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get(qte),this.previewViewModel=u.ViewModelService.get(zte),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.previewViewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad)}},{key:"regions",value:function(){var e;return one(e={},FA.Thumbnail,".thumbnail-region"),one(e,FA.Metadata,".metadata-region"),one(e,FA.VideoActions,".video-actions-region"),one(e,FA.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{"click .drag-item":"onClick","click .undo":"onClickUndo"}}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.previewViewModel.get(this.model.get("id"))?this.previewViewModel.unset(this.model.get("id")):(this.previewViewModel.clear(),this.previewViewModel.set(this.model.get("id"),!0))}},{key:"onClickUndo",value:function(){this.viewModel.unset(this.model.get("id"))}},{key:"shouldLazyLoadThumbnail",value:function(){return!!$h.isLazyLoadSupported(In)&&!this.thumbnailLoaded}},{key:"renderThumbnail",value:function(){var e=new p.ThumbnailComponent({model:new jl({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))}}),lazyload:this.shouldLazyLoadThumbnail(),channelName:this.channelName});this.showChildView(FA.Thumbnail,e)}},{key:"renderMetadata",value:function(){var e=new Bte({model:this.model});this.showChildView(FA.Metadata,e)}},{key:"renderActions",value:function(){var e=new Xte({model:this.model});this.showChildView(FA.VideoActions,e)}},{key:"renderPreview",value:function(){if(this.previewViewModel.get(this.model.get("id"))){var e=new _te({model:this.model,webplayerUrl:this.options.webplayerUrl,imageCdnUrl:this.options.imageCdnUrl});this.showChildView(FA.VideoInfo,e)}}},{key:"viewOptions",value:function(){return{styles:tne,doNotAdd:this.viewModel.get(this.model.get("id"))===Wte}}},{key:"onRender",value:function(){this.renderThumbnail(),this.renderMetadata(),this.renderActions(),this.renderPreview()}},{key:"name",get:function(){return"ErroredVideoItemComponent"}},{key:"template",get:function(){return ene}},{key:"lang",get:function(){return"migrationWizard.erroredVideoItem"}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"className",get:function(){return"border-bottom ".concat(tne.component)}}])&&rne(n.prototype,o),r&&rne(n,r),t}(u.Core.Component);function une(e){return(une="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 cne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pne(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 fne(e,t,n){return t&&pne(e.prototype,t),n&&pne(e,n),e}function hne(e,t){return!t||"object"!==une(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 dne(e){return(dne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yne(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&&gne(e,t)}function gne(e,t){return(gne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mne=function(e){function t(e){return cne(this,t),hne(this,dne(t).call(this,e))}return yne(t,e),fne(t,[{key:"name",get:function(){return"ErroredVideoItemComponentCollection"}},{key:"childView",get:function(){return sne}},{key:"childViewOptions",get:function(){return this.options}}]),t}(u.Core.ComponentCollection),bne=function(e){function t(e){return cne(this,t),hne(this,dne(t).call(this,e))}return yne(t,e),fne(t,[{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("videos",new mne(this.options))}},{key:"name",get:function(){return"ErroredVideoListComponent"}},{key:"template",get:function(){return bte}},{key:"behaviors",get:function(){return[{behaviorClass:cg,selector:".lazy-img",minBrowserSupportVersion:In}]}}]),t}(u.Core.Component),vne=n(411);function wne(e){return(wne="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 Sne(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 kne(e,t){return!t||"object"!==wne(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 One(e){return(One=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cne(e,t){return(Cne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ene=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kne(this,One(t).call(this,e))}var n,o,r;return 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&&Cne(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get(qte),this.listenTo(this.viewModel,"change",this.render)}},{key:"events",value:function(){return{"click .clear-all":"onClickClearAll","click .submit":"onClickSubmit"}}},{key:"onClickClearAll",value:function(){this.viewModel.clear()}},{key:"onClickSubmit",value:function(){sp.Radio.channel(this.options.channelName).trigger(this.options.submitEvent)}},{key:"canSubmit",value:function(){return this.viewModel.keys().length>0}},{key:"countWillBeAdded",value:function(){var e=this;return s.filter(this.viewModel.keys(),(function(t){return e.viewModel.get(t)===Hte})).length}},{key:"viewOptions",value:function(){return{count:this.countWillBeAdded(),submitDisabled:!this.canSubmit()}}},{key:"name",get:function(){return"ErroredVideoFooterComponent"}},{key:"template",get:function(){return vne}},{key:"lang",get:function(){return"migrationWizard.erroredVideoFooter"}},{key:"className",get:function(){return"border-top px-3 py-2 text-right"}}])&&Sne(n.prototype,o),r&&Sne(n,r),t}(u.Core.Component),_ne=n(412),Tne=n(413),Pne=n(61);function xne(e){return(xne="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 Ine(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lne(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 jne(e,t){return!t||"object"!==xne(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 Rne(e){return(Rne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dne(e,t){return(Dne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nne=function(e){function t(){return Ine(this,t),jne(this,Rne(t).apply(this,arguments))}var n,o,i;return 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&&Dne(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this),this.viewModel=u.ViewModelService.get(qte),this.previewViewModel=u.ViewModelService.get(zte),this.listenTo(f.MIGRATION,"manual:review:videos:sync",this.render),this.listenTo(this.channelName,"submit",this.onSubmit),this.listenTo(this.viewModel,"change",this.onChangeSelected),this.page=1}},{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0},videos:{el:".videos-region",partialLoading:r.VideoList},footer:{el:".footer-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll","click .do-not-add":"onClickDoNotAdd"}}},{key:"onClickApproveAll",value:function(){var e={};this.collection.each((function(t){e[t.get("id")]=Hte})),this.viewModel.set(e)}},{key:"onClickDoNotAdd",value:function(){this.previewViewModel.clear();var e={};this.collection.each((function(t){e[t.get("id")]=Wte})),this.viewModel.set(e)}},{key:"onChangeSelected",value:function(){this.viewModel.keys().length?VB.lock({title:u.LanguageService.getPhrase(this.lang,"navLockTitle"),text:u.LanguageService.getPhrase(this.lang,"navLockBody")}):VB.unlock()}},{key:"getDialog",value:function(e,t){return new th({title:u.LanguageService.getPhrase(this.lang,"dialogHeading"),text:_ne({onlineCopyCount:e,onlineCopyCountText:u.LanguageService.getPhrase(this.lang,"videos",{smartCount:e}),warningText:u.LanguageService.getPhrase(this.lang,"warningText",{smartCount:e}),doNotAddCount:t,doNotAddCountText:u.LanguageService.getPhrase(this.lang,"videos",{smartCount:t}),styles:Pne,warningSvg:p.SvgHelper.getSvg(p.cvSvgLibrary.Warning)}),buttons:[{text:u.LanguageService.getPhrase(this.lang,"submit"),className:"btn btn-primary",success:!0}]})}},{key:"getSelectedVideos",value:function(){var e=this,t=this.collection.filter((function(t){return e.viewModel.get(t.get("id"))===Hte})),n=s.groupBy(t,(function(e){return e.get("category")})),o=s.map(s.keys(n),(function(e){return{folderChord:e,videoIds:s.map(n[e],(function(e){return e.get("id")}))}}));return new u.Core.Collection(o)}},{key:"onSubmit",value:function(){var e=this,t=[],n=[];s.each(this.viewModel.keys(),(function(o){var r=e.viewModel.get(o);r===Wte&&t.push(+o),r===Hte&&n.push(+o)}));var o=this.getDialog(n.length,t.length),r=!1,i=!1,a=0,l=function(){r&&i&&(n.length?(e.viewModel.clear({silent:!0}),VB.unlock(),u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.PROGRESS,args:[a]})):(e.viewModel.clear(),e.migrationVideoDataService.clearCacheAndGetCustomerMetadata(),e.migrationVideoDataService.getManualReviewVideos(),delete e.collectionSubset))};o.render().done((function(){e.logMigrationActions(n,t),t.length?e.migrationVideoDataService.updateMigrationStatus(t,J5.HasNotBeenMigrated,(function(){r=!0,l()})):r=!0,n.length?e.migrationVideoDataService.finaliseCustomerVideos(e.getSelectedVideos(),!0,(function(e){i=!0,a=e.get("id"),l()})):i=!0}))}},{key:"logMigrationActions",value:function(e,t){var n=this;if(e.length){var o=s.map(e,(function(t){return n.processLogData(t,e)}));this.logData(jb.UserAction.ResolveWarning,o)}if(t.length){var r=s.map(t,(function(e){return n.processLogData(e,t)}));this.logData(jb.UserAction.DismissWarning,r)}}},{key:"logData",value:function(e,t){var n={location:jb.LocationContext.MigrationWarnings,entity:jb.EntityType.Video},o=t.length===this.collection.length;jb.AnalyticsHelper.logUserAction(t,jb.AnalyticsHelper.mergeOptions(n,{actionType:e,descriptor:o?jb.OperationDescriptor.All:jb.OperationDescriptor.Single}))}},{key:"processLogData",value:function(e,t){var n=this.collection.get(e).pick("name","trackingCode");return{id:e,name:n.name,trackingCode:n.trackingCode,actionCount:t.length,warningCount:this.collection.length}}},{key:"unBindScroll",value:function(){this.getUI("videos").off("scroll")}},{key:"bindScroll",value:function(){this.scrollBound||(this.getUI("videos").on("scroll",s.bind(this.onScroll,this)),this.scrollBound=!0)}},{key:"onScroll",value:function(){var e=this.getUI("videos"),t=e.children().height()-e.height()/2;e.scrollTop()+e.height()<t||25*this.page>this.collection.length||(this.collectionSubset.add(s.first(this.collection.rest(25*this.page),25)),this.page++)}},{key:"viewOptions",value:function(){var e=this.config?"".concat(this.config.get("supportSiteUrl")).concat(cn.MANUAL_REVIEW):"";return{styles:Pne,supportArticle:e,items:this.collection&&this.collection.length}}},{key:"onBeforeRender",value:function(){return this.collection=this.migrationVideoDataService.getManualReviewVideos(),this.collection&&!this.collectionSubset&&(this.collectionSubset=new u.Core.Collection(this.collection.first(25))),!!this.collection}},{key:"onRender",value:function(){this.showChildView("tabs",new y8({selected:"migration-errors"})),this.showChildView("videos",new bne({collection:this.collectionSubset,imageCdnUrl:this.config.get("imageCdnUrl"),webplayerUrl:this.config.get("webPlayerUrl")})),this.showChildView("footer",new Ene({channelName:this.channelName,submitEvent:"submit"})),this.bindScroll()}},{key:"onBeforeDestroy",value:function(){this.unBindScroll()}},{key:"onDestroy",value:function(){u.ViewModelService.clear(zte),u.ViewModelService.clear(qte)}},{key:"name",get:function(){return"MigrationErrorView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.migrationError"}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{videos:".videos-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:p.EmptyStateBehavior,region:"videos",type:S.ManualReviewVideos,emptyStateComponents:wn}]}},{key:"template",get:function(){return Tne}},{key:"className",get:function(){return"bg-white w-100 ".concat(Pne.migrationErrorView)}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&Lne(n.prototype,o),i&&Lne(n,i),t}(u.Core.View),Ane=/^clickviewactasuser.*/i,Mne={handleMismatch:function(){u.InstanceManager.getInstance(un.MigrationVideo).getCustomerMetadata((function(e){(u.InstanceManager.releaseInstance(un.MigrationVideo),dz.isInitialMigration(e))&&(e.keyContact&&e.keyContact.get("fullName")&&(Ane.test(e.keyContact.get("username"))||u.InstanceManager.getInstance(un.User).getCurrentUser((function(t){u.InstanceManager.releaseInstance(un.User),e.keyContact.get("userId")!==t.get("id")&&Mne.showDialog(e)}))))}))},showDialog:function(e){new th({title:u.LanguageService.getPhrase("migrationWizard.utils","keyContactHeading"),text:u.LanguageService.getPhrase("migrationWizard.utils","keyContactBody",{fullName:e.keyContact.get("fullName")}),buttons:[{text:u.LanguageService.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:u.LanguageService.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){u.InstanceManager.getInstance(un.Config).getConfig((function(e){u.InstanceManager.releaseInstance(un.Config),window.location=e.get("onlineUrl")}))}))}};function Vne(e){return(Vne="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 Une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fne(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 Bne(e,t,n){return t&&Fne(e.prototype,t),n&&Fne(e,n),e}function Hne(e,t){return!t||"object"!==Vne(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 Wne(e){return(Wne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zne(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&&qne(e,t)}function qne(e,t){return(qne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gne=function(e){function t(){return Une(this,t),Hne(this,Wne(t).apply(this,arguments))}return zne(t,e),Bne(t,[{key:"channelName",get:function(){return y.MIGRATION_WIZARD}},{key:"appRoutes",get:function(){return{"manage/publisher-archive(/)":"index","manage/publisher-backup(/)":"backupWelcome","manage/publisher-backup/download(/)":"backupDownload","manage/publisher-archive/migrate(/)":"startMigration","manage/publisher-archive/search(/)":"search","manage/publisher-archive/folders/:id(/)":"folder","manage/publisher-archive/progress/:id(/)":"progress","manage/publish-library/progress":"publishLibraryProgress","manage/manual-review":"migrationErrors"}}},{key:"appLinks",get:function(){return["backupProgress","backupComplete","publishLibraryComplete","smart","selected","videosAdded","showPublisherVideo","makeLibraryAvailable","remigrateVideo","generateCsvReport"]}},{key:"filters",get:function(){return u.EnvironmentVariables.isDevelopment?[No]:[Ao,No,rq]}}]),t}(u.Core.AppRouter),Yne=function(e){function t(){return Une(this,t),Hne(this,Wne(t).apply(this,arguments))}return zne(t,e),Bne(t,[{key:"initialize",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this)}},{key:"index",value:function(e){e.folder?this.folder(e.folder):u.Core.AppLinkHelper.trigger({application:y.MIGRATION_WIZARD,action:M.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){this.layout.showChildView(an.CONTENT,new K7)}},{key:"backupDownload",value:function(){this.layout.showChildView(an.CONTENT,new g7)}},{key:"backupProgress",value:function(){this.layout.showChildView(an.CONTENT,new T7)}},{key:"backupComplete",value:function(){this.layout.showChildView(an.CONTENT,new V7)}},{key:"startMigration",value:function(){this.layout.showChildView(an.CONTENT,new K5)}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(e){this.migrationVideoDataService.setSelected(e),this.renderSmartMigration(e)}},{key:"search",value:function(e){this.renderSmartMigration(void 0,e.term)}},{key:"progress",value:function(e,t){this.layout.showChildView(an.CONTENT,new N9({finalisationTaskId:e,firstTime:!!t.initialMigration}))}},{key:"videosAdded",value:function(e,t){this.layout.showChildView(an.CONTENT,new q9({finalisationTaskId:e,firstTime:!!t.initialMigration}))}},{key:"selected",value:function(e){this.layout.showChildView(an.CONTENT,new i7({previousFolderChord:e}))}},{key:"showPublisherVideo",value:function(e){this.layout.showChildView(an.POPUP,new h5({trackingCode:e}))}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"remigrateVideo",value:function(e,t,n){var o=new oee({videoId:e,masterId:t,folderChord:n});this.layout.showChildView(an.POPUP,o)}},{key:"publishLibraryProgress",value:function(){var e=new ate;this.layout.showChildView(an.CONTENT,e)}},{key:"publishLibraryComplete",value:function(){var e=new mte;this.layout.showChildView(an.CONTENT,e)}},{key:"migrationErrors",value:function(){var e=new Nne;this.layout.showChildView(an.CONTENT,e)}},{key:"generateCsvReport",value:function(e){var t=new dee({options:e.options});this.layout.showChildView(an.POPUP,t)}},{key:"renderSmartMigration",value:function(e,t){var n=new E9({folderChord:e,searchTerm:t});this.layout.showChildView(an.CONTENT,n)}},{key:"onLayoutLoaded",value:function(){var e=this;this.layoutLoaded||Mne.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(t){dz.isInitialMigration(t)||(dz.isCurrentlyMigratingAll(t)?e.layout.showChildView(an.PAGE_HEADER,new wD({onlyShowProfile:!0})):(e.layout.showChildView(an.PAGE_HEADER,new wD),e.layout.showChildView(an.TOP_NAV,new Oz({selected:{application:y.MIGRATION_WIZARD,action:M.MigrationWizard.HOME}}))))}))}},{key:"name",get:function(){return"MigrationWizardApplication"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.MIGRATION_WIZARD,showFullHeader:!1,centredContent:!0,showTopNav:!1,allowFileDrop:!1}}}},{key:"channelName",get:function(){return y.MIGRATION_WIZARD}}],[{key:"router",get:function(){return Gne}}]),t}(u.Core.Application);function Jne(e){return(Jne="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 Kne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qne(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 Zne(e,t,n){return t&&Qne(e.prototype,t),n&&Qne(e,n),e}function $ne(e,t){return!t||"object"!==Jne(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 Xne(e){return(Xne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eoe(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&&toe(e,t)}function toe(e,t){return(toe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var noe=function(e){function t(){return Kne(this,t),$ne(this,Xne(t).apply(this,arguments))}return eoe(t,e),Zne(t,[{key:"channelName",get:function(){return y.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"manage/notifications(/)":"index"}}},{key:"appLinks",get:function(){return["makeLibraryAvailable"]}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,iq]}}]),t}(u.Core.AppRouter),ooe=function(e){function t(){return Kne(this,t),$ne(this,Xne(t).apply(this,arguments))}return eoe(t,e),Zne(t,[{key:"index",value:function(e){this.layout.showChildView(an.CONTENT,new p.NotificationsView({params:e}))}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.NOTIFICATIONS}}}},{key:"channelName",get:function(){return y.NOTIFICATIONS}}],[{key:"router",get:function(){return noe}}]),t}(u.Core.Application),roe=n(414),ioe=n.n(roe);function aoe(e){return(aoe="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 loe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function soe(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 uoe(e,t){return!t||"object"!==aoe(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 coe(e){return(coe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function poe(e,t){return(poe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var foe=function(e){function t(){return loe(this,t),uoe(this,coe(t).apply(this,arguments))}var n,o,r;return 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&&poe(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!0}}}},{key:"renderFilters",value:function(){var e=new XJ({collection:this.collection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"onRender",value:function(){this.renderFilters()}},{key:"name",get:function(){return"SearchHeaderComponent"}},{key:"template",get:function(){return ioe.a}},{key:"lang",get:function(){return"search.searchHeader"}},{key:"className",get:function(){return"bg-white border-bottom p-3"}}])&&soe(n.prototype,o),r&&soe(n,r),t}(u.Core.Component),hoe=n(415),doe=n.n(hoe);function yoe(e){return(yoe="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 goe(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 moe(e,t){return!t||"object"!==yoe(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 boe(e){return(boe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function voe(e,t){return(voe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var woe=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),moe(this,boe(t).call(this,e))}var n,o,i;return 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&&voe(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{results:{replaceElement:!0,el:".results-region",partialLoading:r.VideoList}}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){var e=new MM({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,application:y.SEARCH,videoItemComponentType:UA.Search,collectionIdentifier:null,config:this.options.config,emptyStateType:S.Search,emptyStateOptions:{heading:u.LanguageService.getPhrase(this.lang,"emptyStateHeading"),description:u.LanguageService.getPhrase(this.lang,"emptyStateDescription")},collectionViewChannel:this.options.collectionViewChannel,customerHasExchange:this.options.customerHasExchange});this.showChildView("results",e)}},{key:"name",get:function(){return"SearchResultsComponent"}},{key:"template",get:function(){return doe.a}},{key:"lang",get:function(){return"search.searchResults"}},{key:"className",get:function(){return"bg-white"}}])&&goe(n.prototype,o),i&&goe(n,i),t}(u.Core.Component),Soe=n(416),koe=n.n(Soe);function Ooe(e){return(Ooe="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 Coe(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 Eoe(e,t){return!t||"object"!==Ooe(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 _oe(e){return(_oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Toe(e,t){return(Toe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Poe=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Eoe(this,_oe(t).call(this,e))}var n,o,r;return 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&&Toe(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.contextualSearchService=u.InstanceManager.getInstance(p.SharedServices.ContextualSearch,this),this.searchDataService=u.InstanceManager.getInstance(p.SharedDataServices.Search,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.ratingsDataService=u.InstanceManager.getInstance(un.Ratings,this),this.collectionIdentifier=new p.CollectionIdentifier(Object.assign({collectionPrefix:F.SEARCH_VIDEOS},this.options.queryParams))}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"bindListeners",value:function(){this.listenTo(f.RATINGS,"".concat(F.RATINGS,":sync"),this.render),this.listenTo(this.channelName,V.Filters.FILTER_CHANGED,s.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(hJ,"change:relevant:tags",this.updateSearchResults)}},{key:"regions",value:function(){return{header:{replaceElement:!0,el:".header-region"},results:{replaceElement:!0,el:".results-region"},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"getSearchModel",value:function(){return u.ViewModelService.get("search",{ctor:ox})}},{key:"fetchSearchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.ratings&&!this.filterCollection&&this.initializeFilterCollection()}},{key:"initializeFilterCollection",value:function(){this.filterCollection=Oq.getFilterCollection(this.sources,this.ratings),this.setQueryParams()}},{key:"setQueryParams",value:function(){Eq.setQueryParams(Object.assign(Object.assign({},this.options.queryParams),this.getContextParams()),this.queryModel,this.filterCollection)}},{key:"getContextParams",value:function(){if(!this.queryModel.get("query"))return sp.Radio.channel(h.CONTEXTUAL_SEARCH).trigger("reset:search:context"),{};var e=this.contextualSearchService.getSearchContext();return e&&e.get("filterParam")?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.get("filterParam"),e.get("filterValue")):{}}},{key:"onFilterChange",value:function(){u.Core.AppLinkHelper.trigger({application:y.SEARCH,action:M.Search.HOME,params:Eq.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)})}},{key:"setVideosWithMetadata",value:function(){this.resultCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new xr(this.resultCollection.map((function(e){return new jl({id:e.get("id")})}))))}},{key:"updateSearchResults",value:function(){var e=this;this.resultCollection=null,this.renderResults(),this.queryString=Eq.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=function(){return u.Core.AppLinkHelper.trigger({application:y.SEARCH,action:M.Search.HOME,params:Eq.getRouteQueryParams(e.queryModel,e.filterCollection,e.sources)})};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,t):t()}},{key:"renderHeader",value:function(){var e=new foe({collection:this.filterCollection,channelName:this.channelName});this.showChildView("header",e)}},{key:"renderResults",value:function(){var e=new woe({collection:this.resultCollection,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,customerHasExchange:this.exchanges.any()});this.showChildView("results",e)}},{key:"renderPagination",value:function(){if(this.resultCollection&&this.resultCollection.length){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new p.PaginationComponent({cursors:e,appLink:{application:y.SEARCH,action:M.Search.HOME,params:Eq.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)}});this.showChildView("pagination",t)}}},{key:"fetchResults",value:function(){var e=this;if(this.filterCollection){this.queryString=Eq.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=Eq.getDynamicFilterQueryString(this.queryModel,this.filterCollection);if(this.dynamicFiltersFetched||this.searchDataService.getDynamicFilters(t,(function(t){e.dynamicFiltersFetched||(e.filterCollection.add(t.toJSON(),{merge:!0}),e.dynamicFiltersFetched=!0,e.render())})),!this.resultCollection){var n=function(t){e.resultCollection=t,e.setVideosWithMetadata(),e.render()};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,n):n(new xr([]))}}}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"onBeforeRender",value:function(){return this.fetchSearchData(),this.fetchResults(),!0}},{key:"onRender",value:function(){this.renderHeader(),this.renderResults(),this.renderPagination()}},{key:"onBeforeDestroy",value:function(){this.queryModel.clear()}},{key:"name",get:function(){return"SearchView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"search.search"}},{key:"template",get:function(){return koe.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:IB.config,sources:XL.libraries,exchanges:XL.exchanges}}}])&&Coe(n.prototype,o),r&&Coe(n,r),t}(u.Core.View);function xoe(e){return(xoe="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 Ioe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Loe(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 joe(e,t,n){return t&&Loe(e.prototype,t),n&&Loe(e,n),e}function Roe(e,t){return!t||"object"!==xoe(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 Doe(e){return(Doe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Noe(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&&Aoe(e,t)}function Aoe(e,t){return(Aoe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Moe,Voe=function(e){function t(){return Ioe(this,t),Roe(this,Doe(t).apply(this,arguments))}return Noe(t,e),joe(t,[{key:"channelName",get:function(){return y.SEARCH}},{key:"appRoutes",get:function(){return{"manage/search(/)":"index"}}},{key:"appLinks",get:function(){return["shareVideo","manageVideoAccess","downloadVideo","makeLibraryAvailable","addToExchange"]}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,iq]}}]),t}(u.Core.AppRouter),Uoe=function(e){function t(){return Ioe(this,t),Roe(this,Doe(t).apply(this,arguments))}return Noe(t,e),joe(t,[{key:"index",value:function(e){if(p.ContextService.fromPageLoad()){var t=e&&e.query;this.logSearch(t)}var n=new Poe({queryParams:e});this.layout.showChildView(an.CONTENT,n)}},{key:"shareVideo",value:function(e){this.layout.showChildView(an.POPUP,new uz({videoId:e}))}},{key:"manageVideoAccess",value:function(e){this.layout.showChildView(an.POPUP,new AW({videoId:e}))}},{key:"downloadVideo",value:function(e){var t=new _W({videoId:e});this.layout.showChildView(an.HIDDEN,t)}},{key:"logSearch",value:function(e){if(e){var t=jb.AnalyticsHelper.buildSearchEvent(e,jb.PageDescriptor.PageLoad),n=t.data,o=t.action;jb.Analytics.log(jb.UserAction.Search,n,o)}}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"addToExchange",value:function(e){var t=new Fee({videoId:e});this.layout.showChildView(an.POPUP,t)}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.SEARCH}}}},{key:"channelName",get:function(){return y.SEARCH}}],[{key:"router",get:function(){return Voe}}]),t}(u.Core.Application);!function(e){e[e.Approved=1]="Approved",e[e.Pending=2]="Pending",e[e.Rejected=3]="Rejected"}(Moe||(Moe={}));var Foe=n(417),Boe=n.n(Foe),Hoe=n(62),Woe=n.n(Hoe);function zoe(e){return(zoe="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 qoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Goe(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 Yoe(e,t,n){return t&&Goe(e.prototype,t),n&&Goe(e,n),e}function Joe(e,t){return!t||"object"!==zoe(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 Koe(e){return(Koe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qoe(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&&Zoe(e,t)}function Zoe(e,t){return(Zoe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var $oe=function(e){function t(e){return qoe(this,t),Joe(this,Koe(t).call(this,e))}return Qoe(t,e),Yoe(t,[{key:"events",value:function(){return{click:"onClick"}}},{key:"isSelected",value:function(){return this.options.selectedRequestId&&this.model.get("id").toString()===this.options.selectedRequestId.toString()}},{key:"onClick",value:function(){u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.StaffRequests.EDIT_REQUEST,args:[this.model.get("id")]})}},{key:"viewOptions",value:function(){return{dateRequested:rh.parseZone(this.model.get("dateCreated")).local().fromNow(),isSelected:this.isSelected(),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"name",get:function(){return"StaffRequestItemComponent"}},{key:"template",get:function(){return Boe.a}},{key:"lang",get:function(){return"staffRequests.staffRequestItem"}},{key:"className",get:function(){var e="p-3 border-bottom cursor-pointer ".concat(Woe.a.item);return this.isSelected()&&(e+=" ".concat(Woe.a.selected)),e}}]),t}(u.Core.Component),Xoe=function(e){function t(e){return qoe(this,t),Joe(this,Koe(t).call(this,e))}return Qoe(t,e),Yoe(t,[{key:"name",get:function(){return"StaffRequestListComponent"}},{key:"className",get:function(){return Woe.a.list}},{key:"childView",get:function(){return $oe}},{key:"childViewOptions",get:function(){return{selectedRequestId:this.options.selectedRequestId,currentUser:this.options.currentUser}}}]),t}(u.Core.ComponentCollection);function ere(e){return(ere="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 tre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nre(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 ore(e,t){return!t||"object"!==ere(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 rre(e){return(rre=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ire(e,t){return(ire=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var are=function(e){function t(){return tre(this,t),ore(this,rre(t).apply(this,arguments))}var n,o,r;return 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&&ire(e,t)}(t,e),n=t,(o=[{key:"parse",value:function(e){var t=s.omit(e,["sourceCategory","destinationCategory"]);return t.sourceFolder=e.sourceCategory,t.destinationFolder=e.destinationCategory,t}},{key:"associations",get:function(){return{video:jl,sourceLibrary:vl,sourceFolder:fl,destinationLibrary:vl,destinationFolder:fl,user:Gs,senderCustomer:ku}}}])&&nre(n.prototype,o),r&&nre(n,r),t}(u.Core.NestedModel);function lre(e){return(lre="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 sre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ure(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 cre(e,t){return!t||"object"!==lre(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 pre(e){return(pre=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fre(e,t){return(fre=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hre=function(e){function t(){return sre(this,t),cre(this,pre(t).apply(this,arguments))}var n,o,r;return 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&&fre(e,t)}(t,e),n=t,(o=[{key:"associations",get:function(){return{user:Gs}}}])&&ure(n.prototype,o),r&&ure(n,r),t}(u.Core.NestedModel),dre={destinationLibrary:function(e){if(!e||!e.id)return u.LanguageService.getPhrase("staffRequests.utils","selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return u.LanguageService.getPhrase("staffRequests.utils","selectFolder")}},yre={message:[{required:!0,msg:function(){return u.LanguageService.getPhrase("staffRequests.utils","provideMessage")}}]},gre=n(63),mre=n.n(gre),bre=n(418),vre=n.n(bre);function wre(e){return(wre="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 Sre(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 kre(e,t){return!t||"object"!==wre(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 Ore(e){return(Ore=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cre(e,t){return(Cre=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ere=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kre(this,Ore(t).call(this,e))}var n,o,r;return 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&&Cre(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.getViewModel();var e=this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),t=e&&this.collection.get(e);this.folderCollection=t?t.children:new yr,sh.setSelected(this.folderTreeKey,this.viewModel.destinationFolder,this.folderCollection)}},{key:"regions",value:function(){return{librarySelect:{el:".library-select-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve":"onClickApprove","click .reject":"onClickReject"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onClickCreateFolder),this.listenTo(this.options.staffRequestsChannel,"select:folder",(function(t){e.onFolderSelected(t),e.render()}))}},{key:"getViewModel",value:function(){var e={},t=this.collection.get(this.model.destinationLibrary);t&&(e.destinationLibrary=t.toJSON());var n=sh.getModelFromCollection(this.model.destinationFolder.get("id"),this.collection);n&&(e.destinationFolder=n.toJSON()),this.viewModel=u.ViewModelService.get(this.viewModelName,e,{ctor:are}),this.viewModel.addValidation(dre)}},{key:"onLibrarySelected",value:function(e){this.viewModel.set("destinationLibrary",e.toJSON()),this.viewModel.unset("destinationFolder"),this.viewModel.set("destinationFolder",{}),sh.deselectAll(this.folderTreeKey,this.folderCollection),this.folderCollection=e.get("children"),this.renderFolderSelect()}},{key:"onFolderSelected",value:function(e){this.viewModel.set("destinationFolder",e.toJSON()),sh.setSelected(this.folderTreeKey,e,this.folderCollection)}},{key:"onClickApprove",value:function(){var e=this.model.get("id"),t=this.viewModel.destinationLibrary.get("id"),n=this.viewModel.destinationFolder.get("id");e&&t&&n&&(u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.StaffRequests.APPROVE_REQUEST,args:[e,t,n]}),this.logStaffRequestAction(jb.UserAction.Approve))}},{key:"onClickReject",value:function(){u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.StaffRequests.REJECT_REQUEST,args:[this.model.get("id")]}),this.logStaffRequestAction(jb.UserAction.Reject)}},{key:"onClickCreateFolder",value:function(){u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.Shared.NEW_FOLDER,args:[this.viewModel.destinationLibrary.get("id")]}),this.logCreateFolderAction()}},{key:"logStaffRequestAction",value:function(e){var t={location:jb.LocationContext.StaffRequestDetails,actionType:e,entity:jb.EntityType.StaffRequest,workflowPhase:jb.WorkflowPhase.Start},n={id:this.model.get("id"),videoId:this.model.get("video")&&this.model.get("video").get("id"),requestingUserId:this.model.get("user")&&this.model.get("user").get("id"),sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").get("id"),sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").get("id"),destinationLibraryId:this.viewModel.destinationLibrary.get("id"),destinationFolderId:this.viewModel.destinationFolder.get("id")};jb.AnalyticsHelper.logUserAction(n,t)}},{key:"logCreateFolderAction",value:function(){var e={location:jb.LocationContext.StaffRequestDetails,actionType:jb.UserAction.Create,entity:jb.EntityType.Folder,workflowPhase:jb.WorkflowPhase.Start},t={libraryId:this.viewModel.destinationLibrary.get("id")};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"renderLibrarySelect",value:function(){this.collection.length<2||this.showChildView("librarySelect",new OC({collection:this.collection,channelName:this.channelName,currentLibraryId:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),inputName:"destinationLibrary",placeholderText:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("name"),disabledLibraryIds:this.options.disabledLibraryIds}))}},{key:"renderFolderSelect",value:function(){this.showChildView("folderSelect",new yB({collection:this.folderCollection,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0}))}},{key:"viewOptions",value:function(){return{styles:mre.a,sourceLibraryName:_w.mapSourceToDisplayName(this.model.sourceLibrary),sourceClass:"".concat(mre.a.source," ").concat(_w.mapSourceToClass(this.model.sourceLibrary.get("type"))),showLibrarySelect:this.collection&&this.collection.length>1}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect(),sp.Validation.bind(this,{model:this.viewModel})}},{key:"name",get:function(){return"StaffRequestActionsComponent"}},{key:"template",get:function(){return vre.a}},{key:"lang",get:function(){return"staffRequests.staffRequestActions"}},{key:"folderTreeKey",get:function(){return"staff:requests:folder:select"}},{key:"className",get:function(){return"p-3 border-bottom ".concat(mre.a.actions)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("id"))}}])&&Sre(n.prototype,o),r&&Sre(n,r),t}(u.Core.Component),_re=n(419),Tre=n.n(_re),Pre=n(420),xre=n.n(Pre);function Ire(e){return(Ire="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 Lre(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 jre(e,t){return!t||"object"!==Ire(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 Rre(e){return(Rre=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dre(e,t){return(Dre=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nre=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jre(this,Rre(t).call(this,e))}var n,o,r;return 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&&Dre(e,t)}(t,e),n=t,(o=[{key:"regions",value:function(){return{actions:{el:".request-action-region",replaceElement:!0},preview:{el:".video-preview-region",replaceElement:!1},info:{el:".video-info-region",replaceElement:!1}}}},{key:"getAvatarUrl",value:function(){var e=this.collection&&this.collection.first(),t=e&&e.user&&e.user.avatar;if(t&&t.get("url"))return t.get("url");var n="".concat(this.options.config.get("imageCdnUrl"),"/v1/profile-images?initials=").concat(this.getInitials());return Ch.createUrl(n,{size:"small"})}},{key:"getInitials",value:function(){var e=this.collection&&this.collection.first();if(e&&e.user){var t=e.user.get("name"),n=e.user.get("surname");return"".concat(t&&t.trim()[0]).concat(n&&n.trim()[0])}}},{key:"renderActions",value:function(){this.showChildView("actions",new Ere({model:this.model,collection:this.options.libraryCollection,disabledLibraryIds:this.options.disabledLibraryIds,staffRequestsChannel:this.options.channelName}))}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new ZP({model:this.model.video,webPlayerUrl:this.options.config.get("webPlayerUrl"),analyticsOptions:{location:jb.LocationContext.VideoRequest}}))}},{key:"renderVideoInfo",value:function(){this.showChildView("info",new Mw({model:this.model.video,config:this.options.config,externalSeriesLink:!0}))}},{key:"viewOptions",value:function(){return{styles:xre.a,avatarUrl:this.getAvatarUrl(),message:this.collection&&this.collection.length&&this.collection.first().toJSON(),interactive:_w.isInteractive(this.model.video),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"onRender",value:function(){this.renderActions(),this.renderVideoPreview(),this.renderVideoInfo()}},{key:"name",get:function(){return"StaffRequestDetailsComponent"}},{key:"template",get:function(){return Tre.a}},{key:"lang",get:function(){return"staffRequests.staffRequestDetails"}}])&&Lre(n.prototype,o),r&&Lre(n,r),t}(u.Core.Component),Are=n(421),Mre=n.n(Are),Vre=n(422),Ure=n.n(Vre);function Fre(e){return(Fre="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 Bre(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 Hre(e,t){return!t||"object"!==Fre(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 Wre(e){return(Wre=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zre(e,t){return(zre=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qre=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Hre(this,Wre(t).call(this,e))).unavailableLibraryIds=[],n}var n,o,i;return 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&&zre(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.staffRequestDataService=u.InstanceManager.getInstance(un.StaffRequests,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.options.referrer===p.AppLinkReferrer.Notification&&this.staffRequestDataService.clearRequestCache(),this.bindListeners()}},{key:"regions",value:function(){return{requestList:{el:".request-list-region",partialLoading:r.StaffRequestList,replaceElement:!1},requestDetails:{el:".request-details-region",partialLoading:r.StaffRequestDetails,replaceElement:!1},emptyState:{el:".empty-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){if(this.listenTo(f.LIBRARY,"folder:created",this.onFolderCreated),this.options.requestId){this.listenTo(f.STAFF_REQUEST,"cache:cleared",this.render);var e="".concat(F.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(f.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(f.STAFF_REQUEST,"".concat(e,":error"),this.onError),this.listenTo(f.STAFF_REQUEST,"".concat(F.STAFF_REQUESTS,":invalidate"),this.onUpdate);var t="".concat(F.STAFF_REQUEST_MESSAGES,":").concat(this.options.requestId);this.listenTo(f.STAFF_REQUEST,"".concat(t,":sync"),this.render),this.listenTo(f.STAFF_REQUEST,"".concat(t,":error"),this.onError)}}},{key:"onUpdate",value:function(){this.staffRequestCollection=null,this.render()}},{key:"fetchData",value:function(){var e=this;if(this.staffRequestCollection||this.staffRequestDataService.getStaffRequests((function(t){e.staffRequestCollection=t,e.onRequestsSync()})),this.options.requestId&&(this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId),this.staffRequestMessageCollection=this.staffRequestDataService.getMessages(this.options.requestId),this.libraryCollection&&this.libraryCollection.length>1&&this.model&&!this.unavailableLibraryIds.length)){var t=this.model.get("video");this.videoDataService.getLibraries(t.get("id"),(function(t){e.unavailableLibraryIds=t.map((function(e){return e.get("id")+""})),e.render()}))}}},{key:"onRequestsSync",value:function(){var e;this.options.requestId&&(e=this.staffRequestCollection.get(this.options.requestId)),!e&&this.staffRequestCollection.first()?(e=this.staffRequestCollection.first(),u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.StaffRequests.EDIT_REQUEST,args:[e.id]},{replace:!0})):this.render()}},{key:"onError",value:function(){this.redirectToHome()}},{key:"onFolderCreated",value:function(e){sp.Radio.channel(this.channelName).trigger("select:folder",e),this.render()}},{key:"redirectToHome",value:function(){u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.StaffRequests.HOME})}},{key:"getEmptyStateDescription",value:function(){return this.libraryCollection?!this.libraryCollection.length||this.libraryCollection.every((function(e){return e.get("status")!==p.CurationStatus.Published}))?u.LanguageService.getPhrase(this.lang,"emptyStateNoLibraries"):u.LanguageService.getPhrase(this.lang,"emptyStateDescription"):""}},{key:"renderRequestList",value:function(){this.staffRequestCollection?this.showChildView("requestList",new Xoe({collection:this.staffRequestCollection,selectedRequestId:this.options.requestId,currentUser:this.currentUser})):this.renderPartialLoading("requestList")}},{key:"renderRequestDetails",value:function(){var e=!!this.libraryCollection,t=e&&!!this.model&&!!this.staffRequestMessageCollection;!this.options.requestId&&!e||this.options.requestId&&!t?this.renderPartialLoading("requestDetails"):this.options.requestId&&this.showChildView("requestDetails",new Nre({model:this.model,collection:this.staffRequestMessageCollection,libraryCollection:this.libraryCollection,disabledLibraryIds:this.unavailableLibraryIds,config:this.config,channelName:this.channelName}))}},{key:"viewOptions",value:function(){return{styles:Ure.a}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!this.model||this.model.get("status")===Moe.Pending||(this.redirectToHome(),!1)}},{key:"onRender",value:function(){this.renderRequestList(),this.renderRequestDetails()}},{key:"name",get:function(){return"StaffRequestsView"}},{key:"lang",get:function(){return"staffRequests.staffRequests"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"template",get:function(){return Mre.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:p.EmptyStateBehavior,collectionName:"staffRequestCollection",region:"emptyState",type:S.StaffRequests,shouldRender:p.EmptyStateHelper.isCollectionEmpty.bind(null,this,"staffRequestCollection"),componentOptions:{description:function(){return e.getEmptyStateDescription()},emptyState:function(){return u.LanguageService.getPhrase(e.lang,"emptyStateHeading")}},emptyStateComponents:wn}]}},{key:"requiredResources",get:function(){return{config:IB.config,libraryCollection:XL.libraries,currentUser:GB.currentUser}}}])&&Bre(n.prototype,o),i&&Bre(n,i),t}(u.Core.View),Gre=n(423),Yre=n.n(Gre);function Jre(e){return(Jre="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 Kre(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 Qre(e,t){return!t||"object"!==Jre(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 Zre(e){return(Zre=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $re(e,t){return($re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xre=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qre(this,Zre(t).call(this,e))}var n,o,r;return 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&&$re(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.staffRequestDataService=u.InstanceManager.getInstance(un.StaffRequests,this),this.getViewModel(),this.bindListeners()}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){var e="".concat(F.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(f.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(f.STAFF_REQUEST,"".concat(e,":error"),this.redirectToHome);var t="".concat(F.STAFF_REQUESTS,":").concat(this.options.requestId,":update");this.listenTo(f.STAFF_REQUEST,"".concat(t,":sync"),this.redirectToHome),this.listenTo(f.STAFF_REQUEST,"".concat(t,":error"),this.redirectToHome),this.listenTo(this.viewModel,"change",this.onChange)}},{key:"getViewModel",value:function(){this.viewModel=u.ViewModelService.get(this.viewModelName),this.viewModel.addValidation(yre)}},{key:"getBtnTooltipOptions",value:function(){if(!this.viewModel.isValid())return{title:u.LanguageService.getPhrase(this.lang,"provideMessage")}}},{key:"onChange",value:function(){this.spinnerModel.set(rB.Disabled,!1===this.viewModel.isValid())}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.staffRequestDataService.rejectStaffRequest(this.options.requestId,this.viewModel.get("message")),this.logAction())}},{key:"logAction",value:function(){var e={location:jb.LocationContext.Popup,actionType:jb.UserAction.Reject,entity:jb.EntityType.StaffRequest,workflowPhase:jb.WorkflowPhase.Complete},t={id:this.options.requestId,videoId:this.model.get("video")&&this.model.get("video").id,requestingUserId:this.model.get("user")&&this.model.get("user").id,sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").id,sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").id};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"redirectToHome",value:function(){u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.StaffRequests.HOME})}},{key:"onBeforeRender",value:function(){this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){sp.Validation.bind(this,{model:this.viewModel})}},{key:"name",get:function(){return"RejectStaffRequestView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"staffRequests.rejectStaffRequest"}},{key:"template",get:function(){return Yre.a}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.requestId)}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"rejectCheck"),size:"modal-md",spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"reject"),extraButtonClass:"btn-danger",onClick:function(t){return e.onSubmit(t)},tooltip:function(){return e.getBtnTooltipOptions()}}},{behaviorClass:Pg,bindViewModel:!0}]}},{key:"bindings",get:function(){return{"[name=message]":{observe:"message",setOptions:{validate:!0}}}}}])&&Kre(n.prototype,o),r&&Kre(n,r),t}(u.Core.View),eie=n(424),tie=n.n(eie);function nie(e){return(nie="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 oie(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 rie(e,t){return!t||"object"!==nie(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 iie(e){return(iie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aie(e,t){return(aie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rie(this,iie(t).call(this,e))}var n,o,r;return 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&&aie(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.staffRequestDataService=u.InstanceManager.getInstance(un.StaffRequests,this),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.bindListeners()}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){var e="".concat(F.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(f.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(f.STAFF_REQUEST,"".concat(e,":error"),this.redirectToHome);var t="".concat(F.STAFF_REQUESTS,":").concat(this.options.requestId,":update");this.listenTo(f.STAFF_REQUEST,"".concat(t,":sync"),this.redirectToHome),this.listenTo(f.STAFF_REQUEST,"".concat(t,":error"),this.redirectToHome),this.listenTo(f.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render)}},{key:"fetchData",value:function(){var e=this;this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId),this.library||this.libraryDataService.getLibraries((function(t){e.library=sh.getLibrary(e.options.libraryId,t),e.render()})),this.folder=this.libraryDataService.getFolder(this.options.folderId)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),sp.Radio.channel(this.channelName).trigger(oB.ShowSpinner),this.staffRequestDataService.approveStaffRequest(this.options.requestId,this.options.libraryId,this.options.folderId),this.logAction()}},{key:"logAction",value:function(){var e={location:jb.LocationContext.Popup,actionType:jb.UserAction.Approve,entity:jb.EntityType.StaffRequest,workflowPhase:jb.WorkflowPhase.Complete},t={id:this.options.requestId,videoId:this.model.get("video")&&this.model.get("video").id,requestingUserId:this.model.get("user")&&this.model.get("user").id,sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").id,sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").id,destinationLibraryId:this.options.libraryId,destinationFolderId:this.options.folderId};jb.AnalyticsHelper.logUserAction(t,e)}},{key:"redirectToHome",value:function(){u.Core.AppLinkHelper.trigger({application:y.STAFF_REQUESTS,action:M.StaffRequests.HOME})}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.library&&!!this.folder,library:this.library&&this.library.get("name"),folder:this.folder&&this.folder.get("name"),spinnerEl:td.getSpinner({size:qh.Large,extraClasses:"mx-auto"}),libraryName:this.library&&yh.escapeExpression(this.library.get("name")),folderName:this.folder&&yh.escapeExpression(this.folder.get("name")),videoName:this.model&&this.model.get("video")&&yh.escapeExpression(this.model.get("video").get("name"))}}},{key:"onBeforeRender",value:function(){this.fetchData(),this.model&&this.library&&this.folder&&this.spinnerModel.set(rB.Disabled,!1)}},{key:"name",get:function(){return"ApproveStaffRequestView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"staffRequests.approveStaffRequest"}},{key:"template",get:function(){return tie.a}},{key:"tagName",get:function(){return"form"}},{key:"channelName",get:function(){return Th.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Sg,title:u.LanguageService.getPhrase(this.lang,"approveCheck"),size:"modal-md",spinnerButtonOptions:{model:this.spinnerModel=new kB,channelName:this.channelName,buttonText:u.LanguageService.getPhrase(this.lang,"approve"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&oie(n.prototype,o),r&&oie(n,r),t}(u.Core.View);function sie(e){return(sie="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 uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cie(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 pie(e,t,n){return t&&cie(e.prototype,t),n&&cie(e,n),e}function fie(e,t){return!t||"object"!==sie(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 hie(e){return(hie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function die(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&&yie(e,t)}function yie(e,t){return(yie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gie=function(e){function t(){return uie(this,t),fie(this,hie(t).apply(this,arguments))}return die(t,e),pie(t,[{key:"channelName",get:function(){return y.STAFF_REQUESTS}},{key:"appRoutes",get:function(){return{"manage/staff-requests(/)":"index","manage/staff-requests/:id(/)":"editRequest"}}},{key:"appLinks",get:function(){return["approveRequest","rejectRequest","newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,Ro([{name:v.StaffRequest,value:C.StaffRequest}]),iq]}}]),t}(u.Core.AppRouter),mie=function(e){function t(){return uie(this,t),fie(this,hie(t).apply(this,arguments))}return die(t,e),pie(t,[{key:"index",value:function(){this.layout.showChildView(an.CONTENT,new qre({}))}},{key:"editRequest",value:function(e,t){t=t||{},this.layout.showChildView(an.CONTENT,new qre({requestId:e,referrer:t.referrer}))}},{key:"approveRequest",value:function(e,t,n){this.editRequest(e),e&&t&&n&&this.layout.showChildView(an.POPUP,new lie({requestId:e,libraryId:t,folderId:n}))}},{key:"rejectRequest",value:function(e){this.editRequest(e),this.layout.showChildView(an.POPUP,new Xre({requestId:e}))}},{key:"newFolder",value:function(e){var t=new N3({libraryId:e,routeToFolderOnCreate:!1});this.layout.showChildView(an.POPUP,t)}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"name",get:function(){return"StaffRequestsApplication"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.STAFF_REQUESTS,selectedNavItem:{application:y.STAFF_REQUESTS,action:M.StaffRequests.HOME}}}}},{key:"channelName",get:function(){return y.STAFF_REQUESTS}}],[{key:"router",get:function(){return gie}}]),t}(u.Core.Application),bie=n(425),vie=n.n(bie),wie=n(426),Sie=n.n(wie);function kie(e){return(kie="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 Oie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cie(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 Eie(e,t){return!t||"object"!==kie(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 _ie(e){return(_ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tie(e,t){return(Tie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pie=function(e){function t(){return Oie(this,t),Eie(this,_ie(t).apply(this,arguments))}var n,o,r;return 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&&Tie(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.channelName,p.UploadEventNames.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=u.InstanceManager.getInstance(sn.VideoUpload,this)}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logAction(e,t)}},{key:"logAction",value:function(e,t){var n={actionType:jb.UserAction.Upload,entity:jb.EntityType.Video,location:jb.LocationContext.VideoUpload,workflowPhase:jb.WorkflowPhase.Start,descriptor:jb.AnalyticsHelper.mapInteractionType(t)};jb.AnalyticsHelper.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{styles:Sie.a,uploadArticleUrl:this.config?u.UrlHelper.safeUrlConcat(this.config.get("supportSiteUrl"),cn.UPLOAD):"",uploadTermsUrl:this.config?u.UrlHelper.safeUrlConcat(this.config.get("marketingSiteUrl"),_n.UploadingUserContent):"",classNames:"info-link"}}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return vie.a}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=s.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:zf,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&Cie(n.prototype,o),r&&Cie(n,r),t}(u.Core.View),xie=n(427),Iie=n.n(xie),Lie=n(428),jie=n.n(Lie);function Rie(e){return(Rie="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 Die(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 Nie(e,t){return!t||"object"!==Rie(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 Aie(e){return(Aie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mie(e,t){return(Mie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Vie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Nie(this,Aie(t).call(this,e))}var n,o,r;return 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&&Mie(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.model=u.ViewModelService.get("upload:progress:".concat(p.UploadType.Video)),this.listenTo(this.model,"change:done",this.render),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.options.uploadChannelName,"start:spinner",this.startSpinner)}},{key:"regions",value:function(){return{finishButton:{el:".finish-button-region",replaceElement:!0}}}},{key:"startSpinner",value:function(){yf.channel(this.channelName).trigger(oB.ShowSpinner)}},{key:"onClickContinue",value:function(){this.model.get("done")&&yf.channel(this.options.uploadChannelName).trigger("continue")}},{key:"onRender",value:function(){this.showChildView("finishButton",new iB({channelName:this.channelName,disabled:!this.model.get("done"),saveEvent:"continue",extraButtonClass:"btn-primary float-right ml-3",buttonText:u.LanguageService.getPhrase(this.lang,"finish"),spinnerOptions:{size:qh.Small,type:Gh.Light,extraClasses:"mx-auto"},tooltip:{title:this.model.get("done")?"":u.LanguageService.getPhrase(this.lang,"stillUploading")}}))}},{key:"name",get:function(){return"UploadActionsComponent"}},{key:"lang",get:function(){return"upload.uploadActions"}},{key:"template",get:function(){return jie.a}},{key:"className",get:function(){return"clearfix my-3"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:zf,buttonSelector:".add-more-videos",channelName:this.options.uploadChannelName,acceptMultiple:!0,mimeType:"video/*"}]}}])&&Die(n.prototype,o),r&&Die(n,r),t}(u.Core.Component),Uie=n(429),Fie=n.n(Uie),Bie=n(430),Hie=n.n(Bie);function Wie(e){return(Wie="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 zie(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 qie(e,t){return!t||"object"!==Wie(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 Gie(e){return(Gie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yie(e,t){return(Yie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qie(this,Gie(t).call(this,e))}var n,o,r;return 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&&Yie(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){var e=this;this.librariesWithoutFolders=new kr,this.collection.each((function(t){return e.librariesWithoutFolders.add(t.toFlatJSON())})),this.listenTo(this.libraryChannelName,"folder:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected new:folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onCreateFolderClicked),!this.hasMultipleLibraries()&&this.librariesWithoutFolders.first()&&this.model.set("libraryId",this.librariesWithoutFolders.first().get("id"));var t=this.collection.get(this.model.get("libraryId"));if(t){var n=sh.getSelected(this.folderTreeKey,t.children);this.options.preselectedFolderId&&!n&&this.onFolderSelected(this.options.preselectedFolderId)}}},{key:"regions",value:function(){return{librarySelect:".library-select-region",folderSelect:".folder-select-region"}}},{key:"hasMultipleLibraries",value:function(){return this.librariesWithoutFolders.length>1}},{key:"onLibrarySelected",value:function(e){this.model.set("libraryId",e.get("id")),this.model.unset("folderId"),this.render()}},{key:"onFolderSelected",value:function(e){var t=e;e instanceof fl&&(t=e.get("id")),this.model.set("folderId",t);var n=this.collection.get(this.model.get("libraryId")).children;sh.setSelected(this.folderTreeKey,t,n),this.model.validate()}},{key:"onCreateFolderClicked",value:function(){yf.channel(this.options.channelName).trigger("show:new:folder",this.model.get("libraryId"),this.channelName)}},{key:"renderLibrarySelect",value:function(){if(this.hasMultipleLibraries()){var e=new VO({collection:this.librariesWithoutFolders,channelName:this.libraryChannelName,placeholderText:u.LanguageService.getPhrase(this.lang,"selectLibraryPlaceholder"),currentFolderId:this.model.get("libraryId"),currentSelectedMessage:u.LanguageService.getPhrase(this.lang,"currentLibrary"),inputName:"libraryId",canCreateFolder:!1});this.showChildView("librarySelect",e)}}},{key:"renderFolderSelect",value:function(){var e=this.model.get("libraryId");if(e){var t=this.collection.get(e);this.showChildView("folderSelect",new yB({collection:t.children,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0,name:"folderId"}))}}},{key:"viewOptions",value:function(){return{styles:Fie.a,hasMultipleLibraries:this.hasMultipleLibraries(),requiredFields:this.options.requiredFields}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect()}},{key:"name",get:function(){return"UploadFolderSelectComponent"}},{key:"template",get:function(){return Hie.a}},{key:"lang",get:function(){return"upload.uploadFolderSelect"}},{key:"folderTreeKey",get:function(){return"folder:tree:".concat(this.model.cid)}},{key:"libraryChannelName",get:function(){return"".concat(this.channelName,":").concat(this.options.selectId,":libraries")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid).concat(this.options.selectId)}}])&&zie(n.prototype,o),r&&zie(n,r),t}(u.Core.Component),Kie=n(431),Qie=n.n(Kie);function Zie(e){return(Zie="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 $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xie(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 eae(e,t){return!t||"object"!==Zie(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 tae(e){return(tae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nae(e,t){return(nae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oae=function(e){function t(){return $ie(this,t),eae(this,tae(t).apply(this,arguments))}var n,o,r;return 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&&nae(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.update)}},{key:"update",value:function(){var e=this.model.get("progress"),t=this.getUI("progressBar");t&&t.get(0)&&$(t.get(0)).css("width","".concat(e,"%"))}},{key:"name",get:function(){return"UploadProgressComponent"}},{key:"template",get:function(){return Qie.a}},{key:"className",get:function(){return"progress my-3"}},{key:"elements",get:function(){return{progressBar:".progress-bar"}}}])&&Xie(n.prototype,o),r&&Xie(n,r),t}(u.Core.Component),rae=n(432),iae=n.n(rae),aae=n(433),lae=n.n(aae),sae=n(434),uae=n.n(sae),cae=n(99),pae=n.n(cae);function fae(e){return(fae="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 hae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dae(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 yae(e,t,n){return t&&dae(e.prototype,t),n&&dae(e,n),e}function gae(e,t){return!t||"object"!==fae(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 mae(e){return(mae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bae(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&&vae(e,t)}function vae(e,t){return(vae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wae=function(e){function t(){return hae(this,t),gae(this,mae(t).apply(this,arguments))}return bae(t,e),yae(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"viewOptions",value:function(){return{name:this.model.get("name")||this.model.get("fileName")}}},{key:"name",get:function(){return"UploadTitleComponent"}},{key:"template",get:function(){return lae.a}},{key:"tagName",get:function(){return"h3"}},{key:"className",get:function(){return"mb-0 border-bottom p-3 ".concat(pae.a.title)}}]),t}(u.Core.Component),Sae=function(e){function t(){return hae(this,t),gae(this,mae(t).apply(this,arguments))}return bae(t,e),yae(t,[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"viewOptions",value:function(){return{percentage:Math.round(this.model.get("progress")||0)}}},{key:"name",get:function(){return"TextProgressComponent"}},{key:"template",get:function(){return uae.a}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"className",get:function(){return" text-muted"}},{key:"tagName",get:function(){return"p"}}]),t}(u.Core.Component),kae=function(e){function t(e){return hae(this,t),gae(this,mae(t).call(this,e))}return bae(t,e),yae(t,[{key:"initialize",value:function(){this.viewModel=u.ViewModelService.get("upload:".concat(this.model.get("id")),{name:this.model.get("name"),fileName:this.model.get("name"),showAdvanced:this.options.openAdvancedMetadata,rating:this.options.ratings.findWhere({value:0}),folderId:this.options.folderId,libraryId:this.options.libraryId,timeInitialized:rh()},{ctor:jl}),this.viewModel.addValidation(Ow),this.listenTo(this.channelName,"select:rating",s.partial(this.onAssociationSelected,s,"rating")),this.listenTo(this.channelName,"select:channel",s.partial(this.onAssociationSelected,s,"channel")),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.options.uploadChannelName,"invalid:".concat(this.model.get("id")),this.scrollTo)}},{key:"events",value:function(){return{"click .add-advanced-metadata":"onClickAddAdvancedMetadata","click .cancel-upload":"onClickCancelUpload"}}},{key:"regions",value:function(){return{progress:{el:".upload-progress-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},uploadTitle:{el:".upload-title-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0},textProgress:{el:".text-progress-region",replaceElement:!0},videoDetails:{el:".video-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},advancedDetails:{el:".additional-info-region",replaceElement:!0}}}},{key:"onClickAddAdvancedMetadata",value:function(){this.viewModel.set("showAdvanced",!this.viewModel.get("showAdvanced")),this.render()}},{key:"onClickCancelUpload",value:function(){var e=this,t={title:u.LanguageService.getPhrase(this.lang,"cancelHeading"),text:u.LanguageService.getPhrase(this.lang,"cancelBody",{videoTitle:this.model.get("name")}),buttons:[{text:u.LanguageService.getPhrase(this.lang,"yes"),className:"btn btn-primary",success:!0},{text:u.LanguageService.getPhrase(this.lang,"no"),className:"btn btn-link",close:!0}],channelName:this.channelName};new th(t).render().done((function(){yf.channel(e.options.uploadChannelName).trigger("cancel:upload",e.model.get("id"))}))}},{key:"onAssociationSelected",value:function(e,t){var n=this.viewModel.get(t);if(n instanceof u.Core.Collection){var o=n.filter((function(t){return!t.id||t.name===e.name}));s.each(o,(function(e){return n.remove(e)})),this.viewModel.get(t).add(e)}else this.viewModel.set(t,e)}},{key:"onSelectSeries",value:function(e){var t=this,n=yf.channel(this.options.uploadChannelName);e.id?n.trigger("get:series",e.id,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()})):e.name&&n.trigger("create:series",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()}))}},{key:"onSelectSeason",value:function(e){var t=this;if(s.isNull(e))return this.viewModel.get("season").clear({silent:!0}),Zh.deselectAll(this.viewModel.get("series.seasons")),this.onAssociationSelected(null,"season"),void this.renderAdvancedVideoDetails();if(e.id)return Zh.setSelected(e.id,this.viewModel.get("series.seasons")),this.onAssociationSelected(e,"season"),void this.renderAdvancedVideoDetails();if(e.number){var n=this.viewModel.get("series.id");yf.channel(this.options.uploadChannelName).trigger("create:season",e,n,(function(e){t.viewModel.get("series.seasons").add(e.toJSON()),Zh.setSelected(e.id,t.viewModel.get("series.seasons")),t.onAssociationSelected(e.toJSON(),"season"),t.renderAdvancedVideoDetails()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"distributors"):e.name&&yf.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"distributors")}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"productionCompanies"):e.name&&yf.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"productionCompanies")}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"directors"):e.name&&yf.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"directors")}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"producers"):e.name&&yf.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"producers")}))}},{key:"getRequiredFields",value:function(){return{uploadDestination:!0}}},{key:"renderTitle",value:function(){var e=new wae({model:this.viewModel});this.showChildView("uploadTitle",e)}},{key:"renderThumbnail",value:function(){var e=new p.ThumbnailComponent({model:this.viewModel,thumbnailOptions:{size:p.ImageSize.Medium}});this.showChildView("thumbnail",e)}},{key:"renderProgress",value:function(){var e=new oae({model:this.model});this.showChildView("progress",e);var t=new Sae({model:this.model});this.showChildView("textProgress",t)}},{key:"renderBasicVideoDetails",value:function(){var e=new df({model:this.viewModel,channelName:this.channelName,ratings:this.options.ratings,requiredFields:this.getRequiredFields(),editable:!0});this.showChildView("videoDetails",e)}},{key:"renderFolderSelect",value:function(){var e=new Jie({collection:this.options.libraries,selectId:this.model.get("id"),model:this.viewModel,channelName:this.options.uploadChannelName,requiredFields:this.getRequiredFields(),preselectedFolderId:this.options.folderId});this.showChildView("folderSelect",e)}},{key:"renderAdvancedVideoDetails",value:function(){if(this.viewModel.get("showAdvanced")){var e=new gm({channelName:this.channelName,model:this.viewModel,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:!0}),t=new Ag({channelName:this.channelName,model:this.viewModel,editable:!0});this.showChildView("advancedDetails",e),this.showChildView("productionInfo",t)}}},{key:"scrollTo",value:function(){$("html,body").animate({scrollTop:this.$el.offset().top},250)}},{key:"viewOptions",value:function(){return Object.assign({styles:pae.a},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.renderTitle(),this.renderThumbnail(),this.renderProgress(),this.renderBasicVideoDetails(),this.renderFolderSelect(),this.renderAdvancedVideoDetails(),sp.Validation.bind(this,{model:this.viewModel})}},{key:"onDestroy",value:function(){sp.Validation.unbind(this)}},{key:"name",get:function(){return"UploadVideoComponent"}},{key:"template",get:function(){return iae.a}},{key:"className",get:function(){return"bg-white mb-3"}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}]),t}(u.Core.Component);function Oae(e){return(Oae="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 Cae(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 Eae(e,t){return!t||"object"!==Oae(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 _ae(e){return(_ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tae(e,t){return(Tae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pae=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Eae(this,_ae(t).call(this,e))}var n,o,r;return 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&&Tae(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"UploadVideoComponentCollection"}},{key:"childView",get:function(){return kae}},{key:"childViewOptions",get:function(){return{ratings:this.options.ratings,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,uploadChannelName:this.options.uploadChannelName,folderId:this.options.folderId,libraryId:this.options.libraryId,openAdvancedMetadata:this.collection.length<=1}}}])&&Cae(n.prototype,o),r&&Cae(n,r),t}(u.Core.ComponentCollection);function xae(e){return(xae="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 Iae(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 Lae(e,t){return!t||"object"!==xae(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 jae(e){return(jae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rae(e,t){return(Rae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Dae=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Lae(this,jae(t).call(this,e))}var n,o,r;return 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&&Rae(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.initServices(),this.initDataListeners(),this.initComponentListeners(),this.initCollectionListeners(),this.initShellListeners()}},{key:"regions",value:function(){return{topActions:{el:".top-actions-region",replaceElement:!0},bottomActions:{el:".bottom-actions-region",replaceElement:!0},videos:{el:".videos-region",replaceElement:!0}}}},{key:"initServices",value:function(){this.videoDataService=u.InstanceManager.getInstance(un.Video,this),this.libraryDataService=u.InstanceManager.getInstance(un.Library,this),this.videoUploadService=u.InstanceManager.getInstance(sn.VideoUpload,this),this.videoUploadDataService=u.InstanceManager.getInstance(un.VideoUpload,this),this.seriesDataService=u.InstanceManager.getInstance(un.Series,this),this.ratingsDataService=u.InstanceManager.getInstance(un.Ratings,this),this.companyDataService=u.InstanceManager.getInstance(un.Company,this),this.personDataService=u.InstanceManager.getInstance(un.Person,this),this.alertService=u.InstanceManager.getInstance(sn.Alerts,this)}},{key:"initDataListeners",value:function(){this.listenTo(f.RATINGS,"".concat(F.RATINGS,":sync"),this.render),this.listenTo(f.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(f.LIBRARY,"folder:created",this.onFolderCreated)}},{key:"initComponentListeners",value:function(){this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.channelName,"cancel:upload",this.cancelUpload),this.listenTo(this.channelName,p.UploadEventNames.FILES_SELECTED,this.onFilesSelected),this.listenTo(this.channelName,"show:new:folder",this.onClickNewFolder),this.listenTo(this.channelName,"get:series",this.onSelectSeries),this.listenTo(this.channelName,"create:series",this.onCreateSeries),this.listenTo(this.channelName,"create:season",this.onCreateSeason),this.listenTo(this.channelName,"create:company",this.onCreateCompany),this.listenTo(this.channelName,"create:person",this.onCreatePerson)}},{key:"initCollectionListeners",value:function(){var e=this.videoUploadService.getCollection();this.listenTo(e,"remove",this.onCollectionChange)}},{key:"initShellListeners",value:function(){this.listenTo(u.CommonChannels.SHELL,u.Core.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway)}},{key:"cancelUpload",value:function(e){this.logCancelAction(e),this.videoUploadService.cancelUpload(e)}},{key:"onNavigateAway",value:function(){this.logCancelAction(),this.videoUploadService.cancelAllUploads()}},{key:"onCollectionChange",value:function(e,t){t.length||(VB.unlock(),u.Core.AppLinkHelper.trigger({application:y.UPLOAD,action:M.Upload.FILE_SELECTION}))}},{key:"onSelectSeries",value:function(e,t){this.seriesDataService.getSeries(e,t)}},{key:"onCreateSeries",value:function(e,t){this.seriesDataService.createSeries(e,t)}},{key:"onCreateSeason",value:function(e,t,n){this.seriesDataService.createSeason(e,t,n)}},{key:"onCreateCompany",value:function(e,t){this.companyDataService.createCompany(e,t)}},{key:"onCreatePerson",value:function(e,t){this.personDataService.createPerson(e,t)}},{key:"onClickContinue",value:function(){var e,t=this,n=yf.channel(this.channelName),o=this.videoUploadService.getCollection(),r=!0;if(o.each((function(t){var n=u.ViewModelService.get("upload:".concat(t.get("id")),null,{ctor:jl});n.validate();var o=n.isValid();!1!==o||e||(e=t.id),r=r&&o})),e&&n.trigger("invalid:".concat(e)),r){n.trigger("start:spinner");var i=[];o.each((function(e){var n=e.get("file"),r=u.ViewModelService.get("upload:".concat(e.get("id")),null,{ctor:jl});if(p.PendingItemsHelper.hasExpired(r,t.config.get("uploadSessionExpiryTime")))return t.alertService.createAlert({heading:u.LanguageService.getPhrase(t.lang,"uploadErrorHeading"),message:u.LanguageService.getPhrase(t.lang,"uploadErrorBody",{videoName:r.get("name")}),type:u.AlertType.Fail}),void o.remove(e);r.set("fileUrl",n.cvUpload.fileUrl),r.set("fileSize",n.size),i.push(r)})),this.videoUploadDataService.completeVideoUploads(this.currentUser.get("id"),this.currentUser.get("customerId"),i,(function(){VB.unlock(),u.InstanceManager.getInstance(sn.PendingItems).forceFetchPendingItems(),u.InstanceManager.releaseInstance(sn.PendingItems),u.Core.AppLinkHelper.trigger({application:y.UPLOAD,action:i.length?M.Upload.UPLOAD_COMPLETE:M.Upload.FILE_SELECTION}),t.logFinishAction(i),t.videoDataService.clearVideoCache()}))}}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logStartAction(e,t)}},{key:"onClickNewFolder",value:function(e,t){this.setFolderChannel=t,VB.unlock(),u.Core.AppLinkHelper.trigger({application:y.UPLOAD,action:M.Shared.NEW_FOLDER,args:[e]}),this.lockNav()}},{key:"onFolderCreated",value:function(e){this.setFolderChannel&&(yf.channel(this.setFolderChannel).trigger("new:folder:selected",e),this.render())}},{key:"logStartAction",value:function(e,t){var n=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{workflowPhase:jb.WorkflowPhase.Start,descriptor:jb.AnalyticsHelper.mapInteractionType(t)});jb.AnalyticsHelper.logUserAction(e,n)}},{key:"logCancelAction",value:function(e){var t=this.videoUploadService.getCollection();if(t.length){var n=e?t.get(e):t,o=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{workflowPhase:jb.WorkflowPhase.Discard,descriptor:e?jb.OperationDescriptor.Single:jb.OperationDescriptor.All});jb.AnalyticsHelper.logUserAction(n.toJSON(),o)}}},{key:"logFinishAction",value:function(e){if(e.length){var t=s.map(e,(function(e){return e.toJSON()})),n=jb.AnalyticsHelper.mergeOptions(this.options.analyticsOptions,{workflowPhase:jb.WorkflowPhase.Complete});jb.AnalyticsHelper.logUserAction(t,n)}}},{key:"fetchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getLibraries()}},{key:"renderUploadActions",value:function(){this.showChildView("topActions",new Vie({uploadChannelName:this.channelName})),this.showChildView("bottomActions",new Vie({uploadChannelName:this.channelName}))}},{key:"renderVideos",value:function(){var e={collection:this.videoUploadService.getCollection(),ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,uploadChannelName:this.channelName};if(this.options.folderId){var t=sh.getLibrary(this.options.folderId,this.libraries);t&&(e.folderId=this.options.folderId,e.libraryId=t.get("id"))}var n=new Pae(e);this.showChildView("videos",n)}},{key:"lockNav",value:function(){VB.lock({title:u.LanguageService.getPhrase(this.lang,"navLockHeading"),text:u.LanguageService.getPhrase(this.lang,"navLockBody")})}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.ratings&&!!this.hostedLibraries}},{key:"onRender",value:function(){this.lockNav(),this.renderUploadActions(),this.renderVideos()}},{key:"name",get:function(){return"UploadVideosView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadVideos"}},{key:"template",get:function(){return Iie.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{currentUser:GB.currentUser,libraries:XL.libraries,config:IB.config}}}])&&Iae(n.prototype,o),r&&Iae(n,r),t}(u.Core.View),Nae=n(435),Aae=n.n(Nae),Mae=n(436),Vae=n.n(Mae);function Uae(e){return(Uae="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 Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bae(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 Hae(e,t){return!t||"object"!==Uae(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 Wae(e){return(Wae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zae(e,t){return(zae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qae=function(e){function t(){return Fae(this,t),Hae(this,Wae(t).apply(this,arguments))}var n,o,r;return 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&&zae(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.videoUploadService=u.InstanceManager.getInstance(sn.VideoUpload,this)}},{key:"viewOptions",value:function(){return{styles:Vae.a,count:this.videoUploadService.getCollection().length}}},{key:"onBeforeDestroy",value:function(){this.videoUploadService.getCollection().reset()}},{key:"name",get:function(){return"UploadCompleteView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadComplete"}},{key:"template",get:function(){return Aae.a}},{key:"className",get:function(){return"p-3 my-3 bg-white text-center"}},{key:"appLinks",get:function(){return{".back-to-library-applink":{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.HOME}}}}])&&Bae(n.prototype,o),r&&Bae(n,r),t}(u.Core.View);function Gae(e){return(Gae="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 Yae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jae(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 Kae(e,t,n){return t&&Jae(e.prototype,t),n&&Jae(e,n),e}function Qae(e,t){return!t||"object"!==Gae(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 Zae(e){return(Zae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $ae(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&&Xae(e,t)}function Xae(e,t){return(Xae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ele=function(e){function t(){return Yae(this,t),Qae(this,Zae(t).apply(this,arguments))}return $ae(t,e),Kae(t,[{key:"channelName",get:function(){return y.UPLOAD}},{key:"appRoutes",get:function(){return{"manage/upload(/)":"fileSelection","manage/upload/details(/)":"uploadDetails","manage/upload/complete(/)":"uploadComplete"}}},{key:"appLinks",get:function(){return["newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,iq]}}]),t}(u.Core.AppRouter),tle=function(e){function t(){return Yae(this,t),Qae(this,Zae(t).apply(this,arguments))}return $ae(t,e),Kae(t,[{key:"initialize",value:function(){this.videoUploadService=u.InstanceManager.getInstance(sn.VideoUpload,this)}},{key:"fileSelection",value:function(){var e=new Pie;this.layout.showChildView(an.CONTENT,e)}},{key:"uploadDetails",value:function(e){if(this.videoUploadService.isUploading()){var t=new Dae({folderId:e.folderId,analyticsOptions:{actionType:jb.UserAction.Upload,entity:jb.EntityType.Video,location:jb.LocationContext.VideoUpload}});this.layout.showChildView(an.CONTENT,t)}else this.fileSelection()}},{key:"uploadComplete",value:function(){if(this.videoUploadService.isUploading()){var e=new qae;this.layout.showChildView(an.CONTENT,e)}else this.fileSelection()}},{key:"newFolder",value:function(e,t){var n=new N3({libraryId:e,routeToFolderOnCreate:!1});this.layout.showChildView(an.POPUP,n)}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.UPLOAD}}}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return y.UPLOAD}}],[{key:"router",get:function(){return ele}}]),t}(u.Core.Application),nle=n(100),ole=n.n(nle),rle=n(437),ile=n.n(rle);function ale(e){return(ale="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 lle(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 sle(e,t){return!t||"object"!==ale(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 ule(e){return(ule=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cle(e,t){return(cle=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ple=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),sle(this,ule(t).call(this,e))}var n,o,i;return 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&&cle(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=u.InstanceManager.getInstance(un.RestrictedVideo,this),this.videoDataService=u.InstanceManager.getInstance(un.Video,this)}},{key:"bindListeners",value:function(){this.listenTo(f.RESTRICTED_VIDEO,"".concat(F.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.RESTRICTED_VIDEO,"cache:cleared",this.render)}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:r.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new xr(this.videoCollection.map((function(e){return new jl({id:e.get("id")})}))))}},{key:"renderVideoList",value:function(){this.showChildView("videos",new MM({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:y.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:UA.VideoAccess,config:this.config,emptyStateType:S.VideoAccess,emptyStateOptions:{heading:u.LanguageService.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new p.PaginationComponent({cursors:e,appLink:{application:y.VIDEO_ACCESS,action:M.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){var e=this.config?"".concat(this.config.get("supportSiteUrl")).concat(cn.VIDEO_ACCESS):"";return{styles:ole.a,supportUrl:e,svg:p.SvgHelper.getSvg(p.cvSvgLibrary.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination()}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return u.LanguageService.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return ile.a}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".".concat(ole.a.svgContainer),title:u.LanguageService.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"requiredResources",get:function(){return{config:IB.config}}}])&&lle(n.prototype,o),i&&lle(n,i),t}(u.Core.View);function fle(e){return(fle="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 hle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dle(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 yle(e,t,n){return t&&dle(e.prototype,t),n&&dle(e,n),e}function gle(e,t){return!t||"object"!==fle(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 mle(e){return(mle=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ble(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&&vle(e,t)}function vle(e,t){return(vle=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wle=function(e){function t(){return hle(this,t),gle(this,mle(t).apply(this,arguments))}return ble(t,e),yle(t,[{key:"channelName",get:function(){return y.VIDEO_ACCESS}},{key:"appRoutes",get:function(){return{"manage/video-access(/)":"index"}}},{key:"appLinks",get:function(){return["manageVideoAccess","makeLibraryAvailable"]}},{key:"filters",get:function(){return[Ao,Do([T.Admin]),No,iq]}}]),t}(u.Core.AppRouter),Sle=function(e){function t(){return hle(this,t),gle(this,mle(t).apply(this,arguments))}return ble(t,e),yle(t,[{key:"index",value:function(e){var t=s.isNaN(+e.page)?"1":e.page;this.layout.showChildView(an.CONTENT,new ple({page:t}))}},{key:"manageVideoAccess",value:function(e){this.layout.showChildView(an.POPUP,new AW({videoId:e}))}},{key:"makeLibraryAvailable",value:function(){var e=new lX;this.layout.showChildView(an.POPUP,e)}},{key:"name",get:function(){return"VideoAccessApplication"}},{key:"layoutOptions",get:function(){return{name:c.ManageLayout,options:{application:y.VIDEO_ACCESS,selectedNavItem:{application:y.VIDEO_ACCESS,action:M.VideoAccess.HOME}}}}},{key:"channelName",get:function(){return y.VIDEO_ACCESS}}],[{key:"router",get:function(){return wle}}]),t}(u.Core.Application);function kle(e){return(kle="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 Ole(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cle(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 Ele(e,t){return!t||"object"!==kle(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 _le(e){return(_le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tle(e,t){return(Tle=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ple(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var xle=function(e,t,n,o,r){var i=e.map((function(e){return"libraryId=".concat(e)})),a=[].concat(Ple(i),["from=".concat(t),"to=".concat(n)]);r&&a.push("offset=".concat(r));var l=A.HOSTED_VIDEO_COLLECTION;return o&&a.push.apply(a,Ple(o.map((function(e){return"categoryId=".concat(e)})))),"/api/domain/v2/videos/recent?query=".concat(l,"&").concat(a.join("&"))},Ile=function(e,t,n){var o=e.map((function(e){return"libraryId=".concat(e)})),r=[].concat(Ple(o),["from=".concat(t),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(r.join("&"))},Lle=function(){var e=["type=".concat(I.TermUpdate),"objectTypeId=".concat(k.Video),"with=".concat(A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(e.join("&"))},jle=function(){var e=["type=".concat(I.TermUpdate),"objectTypeId=".concat(k.Video)];return"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},Rle=function(e){function t(){return Ole(this,t),Ele(this,_le(t).apply(this,arguments))}var n,o,r;return 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&&Tle(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.videoMixinService=u.InstanceManager.getInstance(sn.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(e){return this.getCursors(e.toString())}},{key:"getRecentVideos",value:function(e,t){var n=this,o=e.toParams();return this.get({resource:xle(o.libraryIds,o.from,o.to,o.subjectIds,o.cursor),formatData:function(e){return new xr(e,{parse:!0})},expiryTime:Pn.STANDARD,eventPrefix:e.toString(),callback:function(o){return n.videoMixinService.mixinVideoCollectionData(o,e,t)}})}},{key:"getRecentVideosAllPages",value:function(e,t){var n,o=this,r=e.toParams(),i=new xr;this.get({resource:xle(r.libraryIds,r.from,r.to,r.subjectIds),formatData:function(e){return new xr(e,{parse:!0})},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString()),callback:function a(l){i.add(l.models);var u="".concat(F.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString());n&&n.next&&(u+=":".concat(n.next)),(n=o.getCursors(u))&&n.next?o.get({resource:xle(r.libraryIds,r.from,r.to,r.subjectIds,n.next),formatData:function(e){return new xr(e,{parse:!0})},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.RECENT_VIDEOS_ALL_PAGES,":").concat(e.toString(),":").concat(n.next),callback:a}):s.isFunction(t)&&t(i)}})}},{key:"getRecentVideoSubjects",value:function(e,t){var n=e.toParams();return this.get({resource:Ile(n.libraryIds,n.from,n.to),formatData:function(e){return new qq(e)},expiryTime:Pn.STANDARD,eventPrefix:e.toString(),callback:t})}},{key:"getVideosToReview",value:function(e){return this.get({callback:e,resource:Lle(),formatData:function(e){return new xr(e)},expiryTime:Pn.STANDARD,eventPrefix:F.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(e){return this.delete({callback:e,resource:jle(),eventPrefix:"".concat(F.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[F.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"approveAllVideosSuccess"))})}},{key:"name",get:function(){return un.ContentUpdates}},{key:"channelName",get:function(){return f.CONTENT_UPDATES}},{key:"lang",get:function(){return"contentUpdates.services"}}])&&Cle(n.prototype,o),r&&Cle(n,r),t}(u.BaseDataService);function Dle(e){return(Dle="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 Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ale(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 Mle(e,t){return!t||"object"!==Dle(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 Vle(e){return(Vle=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ule(e,t){return(Ule=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Fle=function(e){function t(){return Nle(this,t),Mle(this,Vle(t).apply(this,arguments))}var n,o,r;return 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&&Ule(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.folderCache={}}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(e,t){return this.folderChordMap&&!this.collectionUpdated(t)||this.buildFolderChordMap(t),this.folderChordMap[e]}},{key:"buildFolderChordMap",value:function(e){var t=this;this.folderChordMap={},e.each((function e(n){t.folderChordMap[n.get("chord")]=n;var o=n.children;o&&o.length&&o.each(e)}))}},{key:"collectionUpdated",value:function(e){return!(this.cachedFolderCollectionCid&&e.customCid&&this.cachedFolderCollectionCid===e.customCid||(e.customCid=this.cachedFolderCollectionCid=s.uniqueId("custom"),0))}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return h.FOLDER_CACHE}}])&&Ale(n.prototype,o),r&&Ale(n,r),t}(u.Core.Service);function Ble(e){return(Ble="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 Hle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wle(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 zle(e,t){return!t||"object"!==Ble(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 qle(e){return(qle=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gle(e,t){return(Gle=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yle=function(e){function t(){return Hle(this,t),zle(this,qle(t).apply(this,arguments))}var n,o,r;return 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&&Gle(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.options={}}},{key:"setOption",value:function(e,t){this.options[e]=t}},{key:"getOption",value:function(e){return this.options[e]}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return h.LOCAL_OPTIONS}}])&&Wle(n.prototype,o),r&&Wle(n,r),t}(u.Core.Service);function Jle(e){return(Jle="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 Kle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qle(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 Zle(e,t){return!t||"object"!==Jle(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 $le(e){return($le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xle(e,t){return(Xle=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ese=function(e){function t(){return Kle(this,t),Zle(this,$le(t).apply(this,arguments))}var n,o,r;return 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&&Xle(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.selectedVideosViewModel=u.ViewModelService.get(this.viewModelName,{videos:{}},{ctor:jl,storage:{type:u.StorageType.LocalStorage,persistProps:["videos"]}})}},{key:"addSelectedVideos",value:function(e,t){s.isArray(e)||(e=[e]);var n={};e.forEach((function(e){return n["".concat(e.id,":").concat(t)]={id:e.id.toString(),folderChord:t}}));var o=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},o),n);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(e){var t={};e.each((function(e){return t["".concat(e.id,":").concat(e.get("chord"))]={id:e.id.toString(),folderChord:e.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},n),t);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(e,t){s.isArray(e)||(e=[e]);var n=e.map((function(e){return"".concat(e.id,":").concat(t)})),o=this.selectedVideosViewModel.get("videos"),r=s.omit(o,(function(e,t){return s.contains(n,t)}));this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var e=this.getSelectedVideos();return s.map(s.keys(e),(function(t){return e[t]&&e[t].id}))}},{key:"getSelectedVideos",value:function(){return this.selectedVideosViewModel.get("videos")}},{key:"getNumberSelected",value:function(){return this.getSelectedVideoIds().length}},{key:"selectedVideosChanged",value:function(){sp.Radio.channel(f.MIGRATION).trigger(V.MigrationWizard.SELECTED_CHANGED)}},{key:"name",get:function(){return"SelectedVideoService"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return h.SELECTED_VIDEO}}])&&Qle(n.prototype,o),r&&Qle(n,r),t}(u.Core.Service);function tse(e){return(tse="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 nse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ose(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 rse(e,t){return!t||"object"!==tse(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 ise(e){return(ise=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ase(e,t){return(ase=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lse=function(e){return"/api/domain/v2/search/videos?".concat(e,"&with=").concat(A.VIDEO_COLLECTION)},sse=function(e){return"/api/domain/v1/search/nav?".concat(e)},use=function(e){function t(){return nse(this,t),rse(this,ise(t).apply(this,arguments))}var n,o,r;return 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&&ase(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.videoMixinService=u.InstanceManager.getInstance(sn.VideoMixin,this)}},{key:"searchVideos",value:function(e,t,n){var o=this;return this.clearCacheAndGet({callback:function(e){return o.videoMixinService.mixinVideoCollectionData(e,null,n)},resource:lse(e),formatData:function(e){return new xr(e.data)},eventPrefix:t.toString()})}},{key:"getDynamicFilters",value:function(e,t){return this.clearCacheAndGet({callback:t,resource:sse(e),formatData:function(e){return new cx(e,{parse:!0})},eventPrefix:F.SEARCH_FILTERS})}},{key:"name",get:function(){return p.SharedDataServices.Search}},{key:"channelName",get:function(){return p.SharedDataChannels.SEARCH}}])&&ose(n.prototype,o),r&&ose(n,r),t}(u.BaseDataService);function cse(e){return(cse="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 pse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fse(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 hse(e,t){return!t||"object"!==cse(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 dse(e){return(dse=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yse(e,t){return(yse=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gse=function(e){function t(){return pse(this,t),hse(this,dse(t).apply(this,arguments))}var n,o,r;return 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&&yse(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return are}}])&&fse(n.prototype,o),r&&fse(n,r),t}(u.Core.Collection);function mse(e){return(mse="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 bse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vse(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 wse(e,t){return!t||"object"!==mse(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 Sse(e){return(Sse=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kse(e,t){return(kse=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ose=function(e){function t(){return bse(this,t),wse(this,Sse(t).apply(this,arguments))}var n,o,r;return 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&&kse(e,t)}(t,e),n=t,(o=[{key:"model",get:function(){return hre}}])&&vse(n.prototype,o),r&&vse(n,r),t}(u.Core.Collection);function Cse(e){return(Cse="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 Ese(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _se(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 Tse(e,t){return!t||"object"!==Cse(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 Pse(e){return(Pse=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xse(e,t){return(xse=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ise=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat(k.Video,"&status=").concat(Moe.Pending)},Lse=function(e){return"/api/domain/v1/staffrequests/".concat(e)},jse=function(){return"/api/domain/v1/staffrequests"},Rse=function(e){return"/api/domain/v1/staffrequests/".concat(e,"/messages")},Dse=function(e){function t(){return Ese(this,t),Tse(this,Pse(t).apply(this,arguments))}var n,o,r;return 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&&xse(e,t)}(t,e),n=t,(o=[{key:"clearRequestCache",value:function(){this.invalidateCache([F.STAFF_REQUESTS]),yf.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(e){return this.get({resource:Ise(),formatData:function(e){return new gse(e,{parse:!0})},expiryTime:Pn.STANDARD,eventPrefix:F.STAFF_REQUESTS,callback:e})}},{key:"getStaffRequest",value:function(e,t){return this.get({resource:Lse(e),formatData:function(e){return new are(e,{parse:!0})},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.STAFF_REQUEST_BY_ID,":").concat(e),callback:t})}},{key:"approveStaffRequest",value:function(e,t,n,o){var r={id:e,status:Moe.Approved,metadata:{destinationLibraryId:t,destinationCategoryId:n}};return this.update({data:r,resource:jse(),eventPrefix:"".concat(F.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[F.VIDEOS,F.STAFF_REQUESTS,F.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"approveRequestSuccess")),callback:o})}},{key:"rejectStaffRequest",value:function(e,t,n){var o={id:e,status:Moe.Rejected,message:t};return this.update({data:o,resource:jse(),eventPrefix:"".concat(F.STAFF_REQUESTS,":").concat(e,":update"),invalidationKeys:[F.STAFF_REQUESTS,F.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(u.LanguageService.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(e,t){return this.get({resource:Rse(e),formatData:function(e){return new Ose(e)},expiryTime:Pn.STANDARD,eventPrefix:"".concat(F.STAFF_REQUEST_MESSAGES,":").concat(e),callback:t})}},{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return f.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}}])&&_se(n.prototype,o),r&&_se(n,r),t}(u.BaseDataService);function Nse(e){return(Nse="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 Ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mse(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 Vse(e,t){return!t||"object"!==Nse(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 Use(e){return(Use=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fse(e,t){return(Fse=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Bse=function(e){function t(){return Ase(this,t),Vse(this,Use(t).apply(this,arguments))}var n,o,r;return 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&&Fse(e,t)}(t,e),n=t,(o=[{key:"uploadBase64Image",value:function(e,t,n){return this.create({resource:"/api/image/upload?type=".concat(t),eventPrefix:F.UPLOAD_IMAGE,data:e,formatData:function(e){return new gu(e)},callback:n})}},{key:"name",get:function(){return un.ImageUpload}},{key:"channelName",get:function(){return f.IMAGE_UPLOAD}}])&&Mse(n.prototype,o),r&&Mse(n,r),t}(u.BaseDataService);function Hse(e){return(Hse="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 Wse(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 zse(e,t){return!t||"object"!==Hse(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 qse(e){return(qse=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gse(e,t){return(Gse=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yse=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zse(this,qse(t).call(this,u.LanguageService.getPhrase("upload.errors.noLibrariesUpload","title")))}var n,o,r;return 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&&Gse(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:u.LanguageService.getPhrase("upload.errors.noLibrariesUpload","heading"),text:u.LanguageService.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:u.LanguageService.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&Wse(n.prototype,o),r&&Wse(n,r),t}(p.DialogError);function Jse(e){return(Jse="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 Kse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qse(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 Zse(e,t){return!t||"object"!==Jse(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 $se(e,t,n){return($se="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xse(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function Xse(e){return(Xse=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eue(e,t){return(eue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tue=function(e){function t(){return Kse(this,t),Zse(this,Xse(t).apply(this,arguments))}var n,o,r;return 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&&eue(e,t)}(t,e),n=t,(o=[{key:"addFiles",value:function(e){var n=this;u.InstanceManager.getInstance(un.Library).getLibraries((function(o){u.InstanceManager.releaseInstance(un.Library),o&&o.length?$se(Xse(t.prototype),"addFiles",n).call(n,e):u.Core.ErrorHelper.throw(new Yse)}))}}])&&Qse(n.prototype,o),r&&Qse(n,r),t}(p.BaseVideoUploadService);function nue(e){return(nue="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 oue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rue(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 iue(e,t){return!t||"object"!==nue(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 aue(e){return(aue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lue(e,t){return(lue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sue=function(e){function t(){return oue(this,t),iue(this,aue(t).apply(this,arguments))}var n,o,r;return 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&&lue(e,t)}(t,e),n=t,(o=[{key:"getPendingItem",value:function(e,t){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(e),eventPrefix:"pending:item:".concat(e),formatData:function(e){return new u.Core.Model(e)},callback:t})}},{key:"getPendingItems",value:function(e){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:e})}},{key:"clearPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process?".concat(s.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"clear:pending:".concat(e.join(",")),callback:t})}},{key:"cancelPendingItems",value:function(e,t){this.delete({resource:"/api/domain/v2/process/cancel?".concat(s.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"cancel:pending:".concat(e.join(",")),callback:t})}},{key:"retryPendingItems",value:function(e,t){this.create({resource:"/api/domain/v2/process/retry?".concat(s.map(e,(function(e){return"pendingProcessId=".concat(e)}))),eventPrefix:"retry:pending:".concat(e.join(",")),callback:t,data:null})}},{key:"completeVideoUploads",value:function(e,t,n,o){var r=this,i=this.chain();s.each(n,(function(n){i.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:e,customerId:t,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:p.VideoOrigin.Curator,fileUrl:n.get("fileUrl"),video:r.toVideoUploadMetadata(n)},errorHandler:r.alertService.error(u.LanguageService.getPhrase(r.lang,"processingError",{videoName:yh.escapeExpression(n.get("name"))}))})})),s.isFunction(o)&&i.func(o),i.run()}},{key:"toVideoUploadMetadata",value:function(e){var t=this,n=e.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return s.extend(n,{origin:p.VideoOrigin.Curator}),s.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(o){return t.setAssoc(o,n,e)})),n}},{key:"setAssoc",value:function(e,t,n){var o=n[e];if(o instanceof u.Core.Collection){if(!o.length||1===o.length&&!o.first().id)return;t[e]=o.map((function(e){return e.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;t[e]=o.get("id")?{id:o.get("id")}:o.pick(["name"])}}},{key:"name",get:function(){return un.VideoUpload}},{key:"channelName",get:function(){return f.VIDEO_UPLOAD}},{key:"lang",get:function(){return"upload.services"}}])&&rue(n.prototype,o),r&&rue(n,r),t}(u.BaseDataService);function uue(e){return(uue="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 cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pue(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 fue(e,t){return!t||"object"!==uue(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 hue(e,t,n){return(hue="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=due(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function due(e){return(due=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yue(e,t){return(yue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gue=function(e){function t(){return cue(this,t),fue(this,due(t).apply(this,arguments))}var n,o,r;return 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&&yue(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){hue(due(t.prototype),"initialize",this).call(this),this.alertService=u.InstanceManager.getInstance(sn.Alerts,this),this.listenTo(this.channelName,p.UploadEventNames.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"onReadyToWatch",value:function(e){var t=e.get("video");if(t){var n=u.LanguageService.getPhrase(this.lang,"readyToWatch",{videoName:yh.escapeExpression(t.get("name"))});p.PendingItemsHelper.isDone(e)||(n+=u.LanguageService.getPhrase(this.lang,"processingResolutions"));var o={heading:u.LanguageService.getPhrase(this.lang,"readyToWatchHeading",{videoName:t.get("name")}),message:n,type:u.AlertType.Success,appLinkText:u.LanguageService.getPhrase(this.lang,"goToVideo",{videoName:t.get("name")}),appLink:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS,args:[t.get("id")]}};this.alertService.createAlert(o)}}},{key:"lang",get:function(){return"upload.services"}}])&&pue(n.prototype,o),r&&pue(n,r),t}(p.BasePendingItemsService);function mue(e){return(mue="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 bue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vue(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 wue(e,t){return!t||"object"!==mue(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 Sue(e){return(Sue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kue(e,t){return(kue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Oue=function(e){function t(){return bue(this,t),wue(this,Sue(t).apply(this,arguments))}var n,o,r;return 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&&kue(e,t)}(t,e),n=t,(o=[{key:"appLinks",get:function(){return{searchResults:{application:y.SEARCH,action:M.Search.HOME},videoDetails:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS},series:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.SERIES},tagSearch:{application:y.SEARCH,action:M.Search.HOME},newLibrary:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.NEW_LIBRARY},folder:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.FOLDER}}}}])&&vue(n.prototype,o),r&&vue(n,r),t}(p.BaseSearchAppVariables);function Cue(e){return(Cue="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 Eue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ue(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 Tue(e,t){return!t||"object"!==Cue(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 Pue(e){return(Pue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xue(e,t){return(xue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Iue=function(e){function t(){return Eue(this,t),Tue(this,Pue(t).apply(this,arguments))}var n,o,r;return 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&&xue(e,t)}(t,e),n=t,(o=[{key:"appLinks",get:function(){return{videoDetails:{application:y.LIBRARY_EDITOR,action:M.LibraryEditor.VIDEO_DETAILS},notifications:{application:y.NOTIFICATIONS,action:M.Notifications.HOME},pastReleases:{application:y.CONTENT_UPDATES,action:M.ContentUpdates.PAST_RELEASES},awaitingReview:{application:y.CONTENT_UPDATES,action:M.ContentUpdates.AWAITING_REVIEW},editStaffRequest:{application:y.STAFF_REQUESTS,action:M.StaffRequests.EDIT_REQUEST}}}},{key:"notificationTypesWithAppLinks",get:function(){return[p.NotificationType.VideoReviewReminder,p.NotificationType.VideoReviewAddedToLibrary,p.NotificationType.CustomLibraryVideoAvailable,p.NotificationType.StaffRequest,p.NotificationType.StaffRequestFulfilled,p.NotificationType.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&_ue(n.prototype,o),r&&_ue(n,r),t}(p.BaseNotificationsAppVariables),Lue=n(438),jue=n.n(Lue),Rue=n(30),Due=n(439),Nue=n.n(Due),Aue=n(440),Mue=n.n(Aue);function Vue(e){return(Vue="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 Uue(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 Fue(e,t){return!t||"object"!==Vue(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 Bue(e){return(Bue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hue(e,t){return(Hue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wue=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fue(this,Bue(t).call(this,e))}var n,o,r;return 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&&Hue(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(f.LIBRARY,"library:created",this.render),this.listenTo(f.LIBRARY,"library:deleted",this.onLibraryDeted),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(cZ,"status:changed",this.destroy),this.listenTo(u.CommonChannels.SHELL,u.Core.EventNames.ROUTE,this.onRoute)}},{key:"onLibraryDeted",value:function(){this.libraries.length||this.$el.empty()}},{key:"onRoute",value:function(){u.Core.AppLinkHelper.getCurrentAppLink().application===y.MIGRATION_WIZARD&&this.render()}},{key:"isDisabled",value:function(){var e=u.Core.AppLinkHelper.getCurrentAppLink();if(e.application!==y.MIGRATION_WIZARD)return!1;var t=[M.MigrationWizard.HOME,M.MigrationWizard.SELECTED,M.MigrationWizard.REMIGRATE_VIDEO,M.MigrationWizard.SHOW_PUBLISHER_VIDEO,M.MigrationWizard.MIGRATION_ERRORS];return!s.contains(t,e.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var e=this.getUI("makeAvailable");e instanceof jQuery&&e.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(e){return e.get("status")!==p.CurationStatus.Draft}))||dz.isPublishingLibraries(this.customerMetadata)||dz.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var e=this.isDisabled();return{styles:Nue.a,disabled:e}}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Mue.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.TooltipBehavior,selector:".make-available"}]}},{key:"lang",get:function(){return"migrationWizard.publishLibraryBanner"}},{key:"elements",get:function(){return{makeAvailable:".make-available"}}},{key:"appLinks",get:function(){return this.isDisabled()?{}:{".make-available":{application:this.options.application,action:M.Shared.MAKE_LIBRARY_AVAILABLE}}}},{key:"requiredResources",get:function(){return{libraries:XL.libraries}}}])&&Uue(n.prototype,o),r&&Uue(n,r),t}(u.Core.View);function zue(e){return(zue="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 que(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gue(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 Yue(e,t){return!t||"object"!==zue(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 Jue(e){return(Jue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kue(e,t){return(Kue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Que=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Yue(this,Jue(t).call(this,e))}var n,o,r;return 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&&Kue(e,t)}(t,e),n=t,r=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=s.omit(e,["application","selectedNavItem"]),o=[];return s.each(s.keys(n),(function(e){o.push("".concat(e,":").concat(n[e]))})),o.length&&(o.sort(),t+=":".concat(o.join(":"))),t}}],(o=[{key:"initialize",value:function(){this.listenTo(f.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,p.UploadEventNames.FILES_SELECTED,this.onFilesSelected),this.listenTo(h.VIDEO_UPLOAD,p.UploadEventNames.FILES_ADDED,this.onFilesAdded),this.configDataService=u.InstanceManager.getInstance(un.Config,this),this.videoUploadService=u.InstanceManager.getInstance(sn.VideoUpload,this),this.listenTo(f.MIGRATION,"".concat(F.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=u.InstanceManager.getInstance(un.MigrationVideo,this)}},{key:"regions",value:function(){var e;return que(e={},an.TOP_BANNER,".top-banner-region"),que(e,an.POPUP,".popup-region"),que(e,an.TOP_NAV,".top-nav-region"),que(e,an.CONTENT,".content-region"),que(e,an.LEFT_NAV,".left-nav-region"),que(e,an.PAGE_HEADER,".page-header-region"),que(e,an.ALERT,".alert-region"),que(e,an.PAGE_FOOTER,".page-footer-region"),que(e,an.HIDDEN,".hidden-region"),e}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logAction(e,t)}},{key:"logAction",value:function(e,t){var n={actionType:jb.UserAction.Upload,entity:jb.EntityType.Video,location:jb.LocationContext.VideoUpload,workflowPhase:jb.WorkflowPhase.Start,descriptor:jb.AnalyticsHelper.mapInteractionType(t)};jb.AnalyticsHelper.logUserAction(e,n)}},{key:"onFilesAdded",value:function(){var e=u.Core.AppLinkHelper.getCurrentAppLink(),t=e.application===y.LIBRARY_EDITOR&&e.action===M.LibraryEditor.FOLDER,n={application:y.UPLOAD,action:M.Upload.UPLOAD_DETAILS};t&&(n.params={folderId:e.args[0]}),u.Core.AppLinkHelper.trigger(n)}},{key:"getContentBoxClassName",value:function(){var e=Rue.contentBox;return this.options.showLeftNav&&(e+=" ".concat(Rue.leftNavContentBox)),e}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(e){this.options=s.extend({},this.defaults,e),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var e=this.getRegion(an.CONTENT).currentView;e?e.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(an.TOP_BANNER,new Wue({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(an.PAGE_HEADER,new wD({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(an.TOP_NAV,new Oz({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var e=this.configDataService.getVersion();e&&this.showChildView(an.PAGE_FOOTER,new ew({version:e}))}},{key:"handleNoIntercom",value:function(){var e=this.migrationVideoDataService.getCustomerMetadata();e&&e.get("customerMeta")!==tz.LibraryPublished&&this.getUI("alertRegion").removeClass(Rue.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:Rue,showLeftNav:this.options.showLeftNav,contentBoxClassName:this.getContentBoxClassName(),contentContainerClassName:this.getContentContainerClassName()}}},{key:"onRender",value:function(){this.renderTopBanner(),this.renderHeader(),this.renderTopNav(),this.renderFooter(),this.listenTo(this.getRegion(an.POPUP),"empty",this.onPopupRegionEmpty)}},{key:"name",get:function(){return"ManageLayoutView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return jue.a}},{key:"className",get:function(){return Rue.lockedWidth}},{key:"channelName",get:function(){return this.name}},{key:"defaults",get:function(){return{showFullHeader:!0,showTopNav:!0,allowBanner:!0,allowFileDrop:!0}}},{key:"elements",get:function(){return{alertRegion:".alert-region"}}},{key:"behaviors",get:function(){if(this.options.allowFileDrop)return[{behaviorClass:Of,channelName:this.channelName},{behaviorClass:Df,channelName:this.channelName}]}}])&&Gue(n.prototype,o),r&&Gue(n,r),t}(u.Core.LayoutView);n(641);n.d(t,"ContentUpdatesApplication",(function(){return mX})),n.d(t,"DashboardApplication",(function(){return I0})),n.d(t,"DefaultApplication",(function(){return m1})),n.d(t,"LibraryEditorApplication",(function(){return Zee})),n.d(t,"MigrationWizardApplication",(function(){return Yne})),n.d(t,"NotificationsApplication",(function(){return ooe})),n.d(t,"SearchApplication",(function(){return Uoe})),n.d(t,"StaffRequestsApplication",(function(){return mie})),n.d(t,"UploadApplication",(function(){return tle})),n.d(t,"VideoAccessApplication",(function(){return Sle})),n.d(t,"SearchAppVariables",(function(){return Oue})),n.d(t,"NotificationsAppVariables",(function(){return Iue})),n.d(t,"ChapterDataService",(function(){return aL})),n.d(t,"ExportDataService",(function(){return dL})),n.d(t,"FolderDragDropService",(function(){return OL})),n.d(t,"LibraryDataService",(function(){return $L})),n.d(t,"LibraryDataServiceHelper",(function(){return XL})),n.d(t,"SeriesDataService",(function(){return uj})),n.d(t,"TagDataService",(function(){return bj})),n.d(t,"VideoDataService",(function(){return Uj})),n.d(t,"VideoDataServiceHelper",(function(){return Fj})),n.d(t,"VideoDragDropService",(function(){return Yj})),n.d(t,"RatingsDataService",(function(){return tR})),n.d(t,"ResourceDataService",(function(){return fR})),n.d(t,"SubtitleDataService",(function(){return SR})),n.d(t,"LinkDataService",(function(){return jR})),n.d(t,"PersonDataService",(function(){return FR})),n.d(t,"CompanyDataService",(function(){return JR})),n.d(t,"FieldsDataService",(function(){return rD})),n.d(t,"ContentUpdatesDataService",(function(){return Rle})),n.d(t,"FolderCacheService",(function(){return Fle})),n.d(t,"LocalOptionsService",(function(){return Yle})),n.d(t,"MigrationVideoDataService",(function(){return Z$})),n.d(t,"MigrationVideoDataServiceHelper",(function(){return $$})),n.d(t,"SelectedVideoService",(function(){return ese})),n.d(t,"SearchDataService",(function(){return use})),n.d(t,"StaffRequestDataService",(function(){return Dse})),n.d(t,"ImageUploadDataService",(function(){return Bse})),n.d(t,"VideoUploadService",(function(){return tue})),n.d(t,"VideoUploadDataService",(function(){return sue})),n.d(t,"PendingItemsService",(function(){return gue})),n.d(t,"LayoutRegions",(function(){return an})),n.d(t,"RequiredLayoutRegions",(function(){return ln})),n.d(t,"UserRole",(function(){return T})),n.d(t,"RestrictAccessView",(function(){return AW})),n.d(t,"VideoAlerts",(function(){return vj})),n.d(t,"FileDropBehavior",(function(){return Of})),n.d(t,"FileDropMaskBehavior",(function(){return Df})),n.d(t,"FileSelectBehavior",(function(){return zf})),n.d(t,"ImageSelectBehavior",(function(){return Wy})),n.d(t,"LockLayoutFileDropBehavior",(function(){return Qy})),n.d(t,"BackboneValidationBehavior",(function(){return og})),n.d(t,"LazyLoadBehavior",(function(){return cg})),n.d(t,"PopupBehavior",(function(){return Sg})),n.d(t,"StickitBehavior",(function(){return Pg})),n.d(t,"FolderCollection",(function(){return yr})),n.d(t,"LibraryCollection",(function(){return kr})),n.d(t,"VideoCollection",(function(){return xr})),n.d(t,"RatingCollection",(function(){return Nr})),n.d(t,"ChannelCollection",(function(){return Hr})),n.d(t,"DistributorCollection",(function(){return Kr})),n.d(t,"ProducerCollection",(function(){return ni})),n.d(t,"ResourceCollection",(function(){return ui})),n.d(t,"InteractivesCollection",(function(){return gi})),n.d(t,"ChapterCollection",(function(){return Oi})),n.d(t,"TagCollection",(function(){return Ii})),n.d(t,"RestrictedObjectCollection",(function(){return Mi})),n.d(t,"SettingCollection",(function(){return zi})),n.d(t,"LocalCacheDeviceCollection",(function(){return Zi})),n.d(t,"LocalCacheDownloadCollection",(function(){return ra})),n.d(t,"SubtitleCollection",(function(){return pa})),n.d(t,"RestrictionCollection",(function(){return ba})),n.d(t,"MetadataCollection",(function(){return Ca})),n.d(t,"FieldsCollection",(function(){return La})),n.d(t,"LinkCollection",(function(){return Va})),n.d(t,"ProductionCompanyCollection",(function(){return qa})),n.d(t,"DirectorCollection",(function(){return $a})),n.d(t,"SeasonCollection",(function(){return il})),n.d(t,"AlertComponentCollection",(function(){return Op})),n.d(t,"TopNavigationComponentCollection",(function(){return Vp})),n.d(t,"EditBasicInfoComponent",(function(){return df})),n.d(t,"EditProductionInfoComponent",(function(){return Ag})),n.d(t,"SelectRatingCollectionComponent",(function(){return $g})),n.d(t,"SelectRatingComponent",(function(){return am})),n.d(t,"EditAdditionalInfoComponent",(function(){return gm})),n.d(t,"EditBroadcastComponent",(function(){return qm})),n.d(t,"ToggleBroadcastComponent",(function(){return tb})),n.d(t,"ExtraInfoComponent",(function(){return Sb})),n.d(t,"ExtraInfoItemComponent",(function(){return ub})),n.d(t,"SearchTypeaheadComponent",(function(){return Lb})),n.d(t,"BulkVideoActionsComponent",(function(){return Fb})),n.d(t,"CheckboxComponent",(function(){return tv})),n.d(t,"ALL_CHECKBOX_ITEM_ID",(function(){return"checkbox-all"})),n.d(t,"BulkCheckboxComponent",(function(){return Kb})),n.d(t,"LeftNavComponent",(function(){return Gv})),n.d(t,"PageFooterComponent",(function(){return ew})),n.d(t,"VideoBasicInfoComponent",(function(){return Mw})),n.d(t,"VideoItemPreviewComponent",(function(){return WP})),n.d(t,"VideoPreviewComponent",(function(){return ZP})),n.d(t,"PageHeaderComponent",(function(){return wD})),n.d(t,"VideoDescriptionTruncationSize",(function(){return sM})),n.d(t,"VideoDescriptionComponent",(function(){return EM})),n.d(t,"VideoListComponent",(function(){return MM})),n.d(t,"VideoActionsComponent",(function(){return lV})),n.d(t,"CropEventNames",(function(){return aV})),n.d(t,"ImageCropperComponent",(function(){return mV})),n.d(t,"ClearButtonComponent",(function(){return _m})),n.d(t,"BreadcrumbsComponent",(function(){return MV})),n.d(t,"AlertItemComponent",(function(){return gp})),n.d(t,"WebPlayerComponent",(function(){return KV})),n.d(t,"SelectComponent",(function(){return iU})),n.d(t,"TypeaheadListComponentCollection",(function(){return PU})),n.d(t,"FieldsComponent",(function(){return GU})),n.d(t,"EditSeasonInfoComponent",(function(){return sF})),n.d(t,"ResizingTextAreaComponent",(function(){return bF})),n.d(t,"DialogView",(function(){return _F})),n.d(t,"DropdownButtonComponent",(function(){return DF})),n.d(t,"DropdownComponentCollection",(function(){return FF})),n.d(t,"DropdownItemComponent",(function(){return KF})),n.d(t,"SpinnerButtonEvents",(function(){return oB})),n.d(t,"SpinnerButtonModelAttributes",(function(){return rB})),n.d(t,"SpinnerButtonComponent",(function(){return iB})),n.d(t,"TreeDropdownComponent",(function(){return yB})),n.d(t,"Layouts",(function(){return c})),n.d(t,"DataChannels",(function(){return f})),n.d(t,"ServiceChannels",(function(){return h})),n.d(t,"GlobalChannels",(function(){return d})),n.d(t,"AppChannels",(function(){return y})),n.d(t,"WithStatements",(function(){return A})),n.d(t,"Actions",(function(){return M})),n.d(t,"EventNames",(function(){return V})),n.d(t,"LibraryType",(function(){return R})),n.d(t,"SearchQueryType",(function(){return D})),n.d(t,"DataPrefixes",(function(){return F})),n.d(t,"PartialLoadingComponents",(function(){return rn})),n.d(t,"Services",(function(){return sn})),n.d(t,"DataServices",(function(){return un})),n.d(t,"SupportArticles",(function(){return cn})),n.d(t,"ImageMinDimensions",(function(){return hn})),n.d(t,"ImageWarnDimensions",(function(){return dn})),n.d(t,"ImageUrls",(function(){return yn})),n.d(t,"EmptyStateComponents",(function(){return wn})),n.d(t,"FormattedCustomerSettingNames",(function(){return kn})),n.d(t,"MiscConstants",(function(){return On})),n.d(t,"Webplayer",(function(){return Cn})),n.d(t,"BootstrapKeys",(function(){return En})),n.d(t,"MarketingSiteArticles",(function(){return _n})),n.d(t,"OnlineUrls",(function(){return Tn})),n.d(t,"CacheDurations",(function(){return Pn})),n.d(t,"DefaultDataServiceErrorCode",(function(){return"generic"})),n.d(t,"DataServiceErrorMessageMappings",(function(){return xn})),n.d(t,"LazyLoadMinBrowserSupportVersion",(function(){return In})),n.d(t,"ExportServiceSortType",(function(){return o})),n.d(t,"PartialLoading",(function(){return r})),n.d(t,"CustomerRegion",(function(){return i})),n.d(t,"SchoolType",(function(){return l})),n.d(t,"SchoolTypeMetadata",(function(){return j})),n.d(t,"YearGroup",(function(){return m})),n.d(t,"SettingKind",(function(){return b})),n.d(t,"SettingName",(function(){return v})),n.d(t,"SharedResourcePrivacy",(function(){return w})),n.d(t,"EmptyState",(function(){return S})),n.d(t,"MasterType",(function(){return k})),n.d(t,"MasterObjectTypes",(function(){return O})),n.d(t,"StaffRequestOption",(function(){return C})),n.d(t,"ImageType",(function(){return E})),n.d(t,"FileIdType",(function(){return _})),n.d(t,"TimeType",(function(){return P})),n.d(t,"InteractionType",(function(){return x})),n.d(t,"RestrictedObjectType",(function(){return I})),n.d(t,"CitationType",(function(){return L})),n.d(t,"AuthenticationError",(function(){return An})),n.d(t,"ForbiddenAccessError",(function(){return Hn})),n.d(t,"NotFoundError",(function(){return Jn})),n.d(t,"OldVersionError",(function(){return eo})),n.d(t,"TooManyFilesError",(function(){return ao})),n.d(t,"CustomerSettingError",(function(){return fo})),n.d(t,"LocalCacheDeviceNotFoundError",(function(){return vo})),n.d(t,"EmailNotVerifiedError",(function(){return Eo})),n.d(t,"NoBetaAccessError",(function(){return jo})),n.d(t,"CustomerSettingsFilter",(function(){return Ro})),n.d(t,"RoleFilter",(function(){return Do})),n.d(t,"VerifiedEmailFilter",(function(){return No})),n.d(t,"BetaAccessFilter",(function(){return Ao})),n.d(t,"VideoCollectionIdentifier",(function(){return NY})),n.d(t,"RecentVideoCollectionIdentifier",(function(){return HY})),n.d(t,"RecentVideoSubjectCollectionIdentifier",(function(){return JY})),n.d(t,"LibraryFoldersIdentifier",(function(){return eJ})),n.d(t,"ManageLayoutView",(function(){return Que})),n.d(t,"Avatar",(function(){return Qo})),n.d(t,"Banner",(function(){return nr})),n.d(t,"Logo",(function(){return sr})),n.d(t,"Folder",(function(){return fl})),n.d(t,"Library",(function(){return vl})),n.d(t,"Thumbnail",(function(){return El})),n.d(t,"Video",(function(){return jl})),n.d(t,"Series",(function(){return Ul})),n.d(t,"Rating",(function(){return ql})),n.d(t,"Channel",(function(){return Zl})),n.d(t,"Distributor",(function(){return os})),n.d(t,"Producer",(function(){return us})),n.d(t,"Resource",(function(){return ys})),n.d(t,"RestrictedObject",(function(){return Ss})),n.d(t,"Interactives",(function(){return Ts})),n.d(t,"Chapter",(function(){return Rs})),n.d(t,"Restriction",(function(){return Us})),n.d(t,"User",(function(){return Gs})),n.d(t,"Config",(function(){return $s})),n.d(t,"Setting",(function(){return ru})),n.d(t,"Tag",(function(){return cu})),n.d(t,"Image",(function(){return gu})),n.d(t,"Customer",(function(){return ku})),n.d(t,"LocalCacheDevice",(function(){return Pu})),n.d(t,"LocalCacheDownload",(function(){return Du})),n.d(t,"Owner",(function(){return Fu})),n.d(t,"Playlist",(function(){return Gu})),n.d(t,"SharedResource",(function(){return $u})),n.d(t,"Subtitle",(function(){return rc})),n.d(t,"LanguageConfig",(function(){return mc})),n.d(t,"Metadata",(function(){return Oc})),n.d(t,"Link",(function(){return xc})),n.d(t,"Director",(function(){return Nc})),n.d(t,"ProductionCompany",(function(){return Bc})),n.d(t,"Person",(function(){return Yc})),n.d(t,"Company",(function(){return Xc})),n.d(t,"Season",(function(){return ip})),n.d(t,"DisabledSpinnerModel",(function(){return kB})),n.d(t,"DefaultAlertHeading",(function(){return Lo})),n.d(t,"AlertService",(function(){return zo})),n.d(t,"ConfigDataService",(function(){return xB})),n.d(t,"ConfigDataServiceHelper",(function(){return IB})),n.d(t,"NavigationLockService",(function(){return MB})),n.d(t,"NavLockService",(function(){return VB})),n.d(t,"UserDataService",(function(){return qB})),n.d(t,"UserDataServiceHelper",(function(){return GB})),n.d(t,"PartialLoadingService",(function(){return XB})),n.d(t,"SettingsDataService",(function(){return sH})),n.d(t,"CustomerDataService",(function(){return yH})),n.d(t,"LocalCacheDataService",(function(){return _H})),n.d(t,"RestrictedVideoDataService",(function(){return MH})),n.d(t,"PageVisibilityService",(function(){return zH})),n.d(t,"PageTitleService",(function(){return $H})),n.d(t,"VideoMixinService",(function(){return iW})),n.d(t,"DownloadProxyDataService",(function(){return fW})),n.d(t,"IntercomService",(function(){return vW})),n.d(t,"DialogHelper",(function(){return th})),n.d(t,"BulkCheckboxHelper",(function(){return nh})),n.d(t,"SortHelper",(function(){return oh})),n.d(t,"RestrictedAccessHelper",(function(){return ih})),n.d(t,"TimeHelpers",(function(){return ah})),n.d(t,"SettingsHelper",(function(){return lh})),n.d(t,"FolderTreeHelpers",(function(){return sh})),n.d(t,"TextHelper",(function(){return yh})),n.d(t,"PermissionsHelper",(function(){return bh})),n.d(t,"ImageHelper",(function(){return Ch})),n.d(t,"RatingHelper",(function(){return Eh})),n.d(t,"LocalCacheHelper",(function(){return _h})),n.d(t,"RadioChannelHelper",(function(){return Th})),n.d(t,"DurationHelper",(function(){return xh})),n.d(t,"PartialLoadingHelper",(function(){return Ih})),n.d(t,"SubtitleLanguageValidation",(function(){return Lh})),n.d(t,"RawSearchHelper",(function(){return Yh})),n.d(t,"TabHelper",(function(){return Jh})),n.d(t,"VideoHelper",(function(){return Kh})),n.d(t,"CancelProcessingHelper",(function(){return Qh})),n.d(t,"CollectionHelpers",(function(){return Zh})),n.d(t,"LazyLoadHelper",(function(){return $h})),n.d(t,"SpinnerSize",(function(){return qh})),n.d(t,"SpinnerType",(function(){return Gh})),n.d(t,"SpinnerHelper",(function(){return td})),n.d(t,"DownloadVideoView",(function(){return _W})),n.d(t,"ShareView",(function(){return uz})),n.d(t,"UserOptionsView",(function(){return nI})),n.d(t,"TopNavigationView",(function(){return Oz})),n.d(t,"DownloadToLocalCacheView",(function(){return Lz})),n.d(t,"RestrictAccessComponent",(function(){return Vz})),n.d(t,"RestrictAccessGroupComponent",(function(){return Zz})),n.d(t,"VideoItemActionsComponent",(function(){return ID})),n.d(t,"VideoItemReviewActionsComponent",(function(){return VD})),n.d(t,"VideoItemVideoAccessActionsComponent",(function(){return GD})),n.d(t,"VideoItemProcessingActionsComponent",(function(){return eN})),n.d(t,"VideoItemComponent",(function(){return QA})),n.d(t,"VideoItemComponentType",(function(){return UA})),n.d(t,"VideoItemComponentRegion",(function(){return FA})),n.d(t,"VideoItemComponents",(function(){return oM})),n.d(t,"VideoItemComponentHelper",(function(){return fM})),n.d(t,"PartialLoadingComponent",(function(){return pU})),n.d(t,"PartialLoadingComponentCollection",(function(){return mU})),n.d(t,"VideoItemMetadataComponent",(function(){return cN})),n.d(t,"VideoItemSearchMetadataComponent",(function(){return TN})),n.d(t,"VideoItemVideoAccessMetadataComponent",(function(){return NN})),n.d(t,"VideoItemProcessingMetadataComponent",(function(){return WN})),n.d(t,"VideoItemAwaitingReviewMetadataComponent",(function(){return ZN})),n.d(t,"VideoItemPastReleasesMetadataComponent",(function(){return sA})),n.d(t,"VideoSourcesMetadataComponent",(function(){return bA})),n.d(t,"VideoItemBadgesComponent",(function(){return PA})),n.d(t,"VideoItemSeriesComponent",(function(){return SN}))}])}));
|