@clickview/library-editor 1.1.26 → 1.1.27-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -0
- package/dist/css/1.chunk.css.map +1 -1
- package/dist/css/10.chunk.css.map +1 -1
- package/dist/css/11.chunk.css.map +1 -1
- package/dist/css/12.chunk.css.map +1 -1
- package/dist/css/13.chunk.css.map +1 -1
- package/dist/css/14.chunk.css.map +1 -1
- package/dist/css/16.chunk.css.map +1 -1
- package/dist/css/17.chunk.css.map +1 -1
- package/dist/css/18.chunk.css.map +1 -1
- package/dist/css/2.chunk.css.map +1 -1
- package/dist/css/21.chunk.css.map +1 -1
- package/dist/css/22.chunk.css.map +1 -1
- package/dist/css/23.chunk.css +5 -5
- package/dist/css/23.chunk.css.map +1 -1
- package/dist/css/25.chunk.css +2 -2
- package/dist/css/25.chunk.css.map +1 -1
- package/dist/css/26.chunk.css.map +1 -1
- package/dist/css/28.chunk.css.map +1 -1
- package/dist/css/29.chunk.css.map +1 -1
- package/dist/css/3.chunk.css.map +1 -1
- package/dist/css/30.chunk.css.map +1 -1
- package/dist/css/31.chunk.css.map +1 -1
- package/dist/css/32.chunk.css.map +1 -1
- package/dist/css/33.chunk.css.map +1 -1
- package/dist/css/34.chunk.css.map +1 -1
- package/dist/css/35.chunk.css.map +1 -1
- package/dist/css/36.chunk.css.map +1 -1
- package/dist/css/37.chunk.css.map +1 -1
- package/dist/css/38.chunk.css.map +1 -1
- package/dist/css/40.chunk.css.map +1 -1
- package/dist/css/41.chunk.css.map +1 -1
- package/dist/css/42.chunk.css.map +1 -1
- package/dist/css/43.chunk.css.map +1 -1
- package/dist/css/44.chunk.css.map +1 -1
- package/dist/css/45.chunk.css.map +1 -1
- package/dist/css/46.chunk.css.map +1 -1
- package/dist/css/47.chunk.css.map +1 -1
- package/dist/css/48.chunk.css.map +1 -1
- package/dist/css/49.chunk.css.map +1 -1
- package/dist/css/50.chunk.css.map +1 -1
- package/dist/css/51.chunk.css.map +1 -1
- package/dist/css/52.chunk.css.map +1 -1
- package/dist/css/55.chunk.css.map +1 -1
- package/dist/css/56.chunk.css.map +1 -1
- package/dist/css/58.chunk.css.map +1 -1
- package/dist/css/59.chunk.css.map +1 -1
- package/dist/css/6.chunk.css.map +1 -1
- package/dist/css/60.chunk.css.map +1 -1
- package/dist/css/62.chunk.css.map +1 -1
- package/dist/css/63.chunk.css.map +1 -1
- package/dist/css/67.chunk.css.map +1 -1
- package/dist/css/68.chunk.css.map +1 -1
- package/dist/css/69.chunk.css.map +1 -1
- package/dist/css/7.chunk.css.map +1 -1
- package/dist/css/70.chunk.css.map +1 -1
- package/dist/css/71.chunk.css.map +1 -1
- package/dist/css/72.chunk.css.map +1 -1
- package/dist/css/73.chunk.css.map +1 -1
- package/dist/css/74.chunk.css.map +1 -1
- package/dist/css/75.chunk.css.map +1 -1
- package/dist/css/76.chunk.css.map +1 -1
- package/dist/css/8.chunk.css.map +1 -1
- package/dist/css/library-editor-app.css +4 -4
- package/dist/css/library-editor-app.css.map +1 -1
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
- package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
- package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +9 -3
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +6 -2
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
- package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +2 -2
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
- package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +2 -2
- package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +5 -0
- package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +1 -1
- package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +5 -5
- package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +24 -24
- package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +8 -5
- package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +1 -1
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +2 -0
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +5 -0
- package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
- package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -0
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +10 -1
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +9 -1
- package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
- package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +1 -1
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
- package/dist/libs/shared/src/utils/MaskHelper.d.ts +1 -1
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -9
- package/dist/projects/library-editor/src/app.d.ts +20 -5
- package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +1 -1
- package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +3 -3
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +1 -1
- package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +1 -2
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +3 -1
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +4 -1
- package/dist/projects/library-editor/src/apps/library-editor/enums/index.d.ts +0 -1
- package/dist/projects/library-editor/src/apps/library-editor/errors/index.d.ts +0 -2
- package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +2 -2
- package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +2 -2
- package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +1 -1
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +3 -3
- package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +1 -1
- package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +2 -2
- package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +2 -2
- package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +1 -0
- package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +2 -2
- package/dist/projects/library-editor/src/shared/behaviors/index.d.ts +0 -3
- package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +3 -3
- package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +2 -2
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +4 -4
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +4 -4
- package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponents.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -2
- package/dist/projects/library-editor/src/shared/errors/index.d.ts +0 -1
- package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +2 -0
- package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +1 -2
- package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +1 -1
- package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +0 -1
- package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +1 -1
- package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +1 -1
- package/dist/projects/library-editor/typings/libs/LazyLoad.d.ts +1 -1
- package/dist/scripts/{0-1c2bb7e28a.chunk.js → 0-e25d47c666.chunk.js} +1 -1
- package/dist/scripts/0.chunk.js +1 -1
- package/dist/scripts/0.chunk.js.map +1 -1
- package/dist/scripts/1-620c685eee.chunk.js +1 -0
- package/dist/scripts/1.chunk.js.map +1 -1
- package/dist/scripts/{10-31317a2d02.chunk.js → 10-3baf058564.chunk.js} +1 -1
- package/dist/scripts/10.chunk.js.map +1 -1
- package/dist/scripts/{11-039959db6c.chunk.js → 11-9f5f0c25dc.chunk.js} +1 -1
- package/dist/scripts/11.chunk.js.map +1 -1
- package/dist/scripts/{12-07999b80e0.chunk.js → 12-b460ad405e.chunk.js} +1 -1
- package/dist/scripts/12.chunk.js.map +1 -1
- package/dist/scripts/13-89b3a0aebb.chunk.js +1 -0
- package/dist/scripts/13.chunk.js.map +1 -1
- package/dist/scripts/14-670309ef33.chunk.js +1 -0
- package/dist/scripts/14.chunk.js.map +1 -1
- package/dist/scripts/15-39010184ed.chunk.js +1 -0
- package/dist/scripts/15.chunk.js.map +1 -1
- package/dist/scripts/{16-427a8933c8.chunk.js → 16-0971cabfc8.chunk.js} +1 -1
- package/dist/scripts/16.chunk.js.map +1 -1
- package/dist/scripts/{17-140fec014b.chunk.js → 17-f364868870.chunk.js} +1 -1
- package/dist/scripts/17.chunk.js.map +1 -1
- package/dist/scripts/18.chunk.js.map +1 -1
- package/dist/scripts/19.chunk.js.map +1 -1
- package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-cd7f1d10b5.chunk.js} +1 -1
- package/dist/scripts/2.chunk.js.map +1 -1
- package/dist/scripts/{20-df9f6f7661.chunk.js → 20-42dc06da39.chunk.js} +1 -1
- package/dist/scripts/20.chunk.js.map +1 -1
- package/dist/scripts/{21-0b84d33cef.chunk.js → 21-05615559be.chunk.js} +1 -1
- package/dist/scripts/21.chunk.js.map +1 -1
- package/dist/scripts/{22-3b2207c8f6.chunk.js → 22-70b4c18dd2.chunk.js} +1 -1
- package/dist/scripts/22.chunk.js.map +1 -1
- package/dist/scripts/23-3166dfeef5.chunk.js +1 -0
- package/dist/scripts/23.chunk.js +1 -1
- package/dist/scripts/23.chunk.js.map +1 -1
- package/dist/scripts/{24-7aa9b43511.chunk.js → 24-6fbd14025b.chunk.js} +1 -1
- package/dist/scripts/24.chunk.js.map +1 -1
- package/dist/scripts/25-3d067b8b9a.chunk.js +1 -0
- package/dist/scripts/25.chunk.js.map +1 -1
- package/dist/scripts/{26-d166e3c313.chunk.js → 26-468305820a.chunk.js} +1 -1
- package/dist/scripts/26.chunk.js.map +1 -1
- package/dist/scripts/27-d03a99658e.chunk.js +1 -0
- package/dist/scripts/27.chunk.js +1 -1
- package/dist/scripts/27.chunk.js.map +1 -1
- package/dist/scripts/{28-738b88c816.chunk.js → 28-f3f43a3001.chunk.js} +1 -1
- package/dist/scripts/28.chunk.js +2 -2
- package/dist/scripts/28.chunk.js.map +1 -1
- package/dist/scripts/29-268278d2ac.chunk.js +1 -0
- package/dist/scripts/29.chunk.js.map +1 -1
- package/dist/scripts/{3-42e8af9f39.chunk.js → 3-4694b66aa5.chunk.js} +1 -1
- package/dist/scripts/3.chunk.js +4 -4
- package/dist/scripts/3.chunk.js.map +1 -1
- package/dist/scripts/{30-109f8ddd5c.chunk.js → 30-694b0a0d4b.chunk.js} +1 -1
- package/dist/scripts/30.chunk.js +2 -2
- package/dist/scripts/30.chunk.js.map +1 -1
- package/dist/scripts/{31-639090fee3.chunk.js → 31-4c542c18dc.chunk.js} +1 -1
- package/dist/scripts/31.chunk.js.map +1 -1
- package/dist/scripts/32-a1543ffe27.chunk.js +1 -0
- package/dist/scripts/32.chunk.js +4 -0
- package/dist/scripts/32.chunk.js.map +1 -1
- package/dist/scripts/33-9685703df6.chunk.js +1 -0
- package/dist/scripts/33.chunk.js +46 -33
- package/dist/scripts/33.chunk.js.map +1 -1
- package/dist/scripts/34-eb9f6709b3.chunk.js +1 -0
- package/dist/scripts/34.chunk.js.map +1 -1
- package/dist/scripts/35-1ff49137e7.chunk.js +1 -0
- package/dist/scripts/35.chunk.js.map +1 -1
- package/dist/scripts/36-9e89154ca2.chunk.js +1 -0
- package/dist/scripts/36.chunk.js.map +1 -1
- package/dist/scripts/{37-3f3a603b60.chunk.js → 37-80589d542e.chunk.js} +1 -1
- package/dist/scripts/37.chunk.js.map +1 -1
- package/dist/scripts/38-7e88534f67.chunk.js +1 -0
- package/dist/scripts/38.chunk.js.map +1 -1
- package/dist/scripts/{39-71c4bb46b2.chunk.js → 39-99824f3b64.chunk.js} +1 -1
- package/dist/scripts/39.chunk.js.map +1 -1
- package/dist/scripts/4-ad1e4b43da.chunk.js +1 -0
- package/dist/scripts/4.chunk.js.map +1 -1
- package/dist/scripts/{40-f1d72b1049.chunk.js → 40-dbfd665c74.chunk.js} +1 -1
- package/dist/scripts/40.chunk.js.map +1 -1
- package/dist/scripts/41-25fbac3d17.chunk.js +1 -0
- package/dist/scripts/41.chunk.js.map +1 -1
- package/dist/scripts/{42-3480033857.chunk.js → 42-9f757567db.chunk.js} +1 -1
- package/dist/scripts/42.chunk.js +13 -13
- package/dist/scripts/42.chunk.js.map +1 -1
- package/dist/scripts/{43-2fe5b1c9cc.chunk.js → 43-5ef29feb2c.chunk.js} +1 -1
- package/dist/scripts/43.chunk.js.map +1 -1
- package/dist/scripts/44-223f602431.chunk.js +1 -0
- package/dist/scripts/44.chunk.js.map +1 -1
- package/dist/scripts/45-344492a36f.chunk.js +1 -0
- package/dist/scripts/45.chunk.js.map +1 -1
- package/dist/scripts/46-9ca7afd6a4.chunk.js +1 -0
- package/dist/scripts/46.chunk.js +2 -2
- package/dist/scripts/46.chunk.js.map +1 -1
- package/dist/scripts/{47-1e3d829757.chunk.js → 47-ac0c9c5ce1.chunk.js} +1 -1
- package/dist/scripts/47.chunk.js.map +1 -1
- package/dist/scripts/{48-877e9e02b8.chunk.js → 48-6bf590b9a0.chunk.js} +1 -1
- package/dist/scripts/48.chunk.js.map +1 -1
- package/dist/scripts/{49-0f9a6a1782.chunk.js → 49-8e3e782ffb.chunk.js} +1 -1
- package/dist/scripts/49.chunk.js.map +1 -1
- package/dist/scripts/5-b236603e85.chunk.js +1 -0
- package/dist/scripts/5.chunk.js +1 -1
- package/dist/scripts/5.chunk.js.map +1 -1
- package/dist/scripts/{50-0741587a02.chunk.js → 50-30ba08212e.chunk.js} +1 -1
- package/dist/scripts/50.chunk.js.map +1 -1
- package/dist/scripts/{51-a5f1309ada.chunk.js → 51-828972defb.chunk.js} +1 -1
- package/dist/scripts/51.chunk.js.map +1 -1
- package/dist/scripts/{52-bc48f1f9e8.chunk.js → 52-b2acf3e742.chunk.js} +1 -1
- package/dist/scripts/52.chunk.js.map +1 -1
- package/dist/scripts/{53-36007500cf.chunk.js → 53-5d6ea94871.chunk.js} +1 -1
- package/dist/scripts/53.chunk.js.map +1 -1
- package/dist/scripts/{54-7cdbdcebf9.chunk.js → 54-2d8bd6fde0.chunk.js} +1 -1
- package/dist/scripts/54.chunk.js.map +1 -1
- package/dist/scripts/{55-078bb9b0ea.chunk.js → 55-4a8d360746.chunk.js} +1 -1
- package/dist/scripts/55.chunk.js.map +1 -1
- package/dist/scripts/{56-36d54fa08f.chunk.js → 56-ad12ebab5f.chunk.js} +1 -1
- package/dist/scripts/56.chunk.js.map +1 -1
- package/dist/scripts/{57-0e126120b9.chunk.js → 57-53b89c2ef0.chunk.js} +1 -1
- package/dist/scripts/57.chunk.js.map +1 -1
- package/dist/scripts/{58-17706ccb46.chunk.js → 58-b246abe78c.chunk.js} +1 -1
- package/dist/scripts/58.chunk.js.map +1 -1
- package/dist/scripts/{59-0a7bdc86b0.chunk.js → 59-19290686e0.chunk.js} +1 -1
- package/dist/scripts/59.chunk.js.map +1 -1
- package/dist/scripts/{6-51a379e066.chunk.js → 6-6fb543aa78.chunk.js} +1 -1
- package/dist/scripts/6.chunk.js.map +1 -1
- package/dist/scripts/{60-0d8896555f.chunk.js → 60-0c075e7b5c.chunk.js} +1 -1
- package/dist/scripts/60.chunk.js.map +1 -1
- package/dist/scripts/{61-57fa6b5248.chunk.js → 61-2725bbfab2.chunk.js} +1 -1
- package/dist/scripts/61.chunk.js +4 -4
- package/dist/scripts/61.chunk.js.map +1 -1
- package/dist/scripts/{62-67458b7fb4.chunk.js → 62-472d10a18e.chunk.js} +1 -1
- package/dist/scripts/62.chunk.js.map +1 -1
- package/dist/scripts/{63-420b10f5f2.chunk.js → 63-7d00e50441.chunk.js} +1 -1
- package/dist/scripts/63.chunk.js.map +1 -1
- package/dist/scripts/{64-e6598113a7.chunk.js → 64-1b42f78644.chunk.js} +1 -1
- package/dist/scripts/64.chunk.js.map +1 -1
- package/dist/scripts/{65-93567fe088.chunk.js → 65-14af88c745.chunk.js} +1 -1
- package/dist/scripts/65.chunk.js.map +1 -1
- package/dist/scripts/{66-c84a3a3c3f.chunk.js → 66-bc274df13a.chunk.js} +1 -1
- package/dist/scripts/66.chunk.js.map +1 -1
- package/dist/scripts/67-d1edef09d6.chunk.js +1 -0
- package/dist/scripts/67.chunk.js.map +1 -1
- package/dist/scripts/{68-38a6d7fb50.chunk.js → 68-52468201b9.chunk.js} +1 -1
- package/dist/scripts/68.chunk.js.map +1 -1
- package/dist/scripts/{69-3d2063cd0f.chunk.js → 69-b681e9a99c.chunk.js} +1 -1
- package/dist/scripts/69.chunk.js.map +1 -1
- package/dist/scripts/{7-d41d3bf60c.chunk.js → 7-2807a666bc.chunk.js} +1 -1
- package/dist/scripts/7.chunk.js.map +1 -1
- package/dist/scripts/{70-27e9e5792a.chunk.js → 70-d4018838a9.chunk.js} +1 -1
- package/dist/scripts/70.chunk.js.map +1 -1
- package/dist/scripts/{71-c5923e2d2d.chunk.js → 71-29cce07c7f.chunk.js} +1 -1
- package/dist/scripts/71.chunk.js.map +1 -1
- package/dist/scripts/{72-0a6c88f9fe.chunk.js → 72-6f83214b8d.chunk.js} +1 -1
- package/dist/scripts/72.chunk.js.map +1 -1
- package/dist/scripts/73.chunk.js.map +1 -1
- package/dist/scripts/74.chunk.js.map +1 -1
- package/dist/scripts/75.chunk.js.map +1 -1
- package/dist/scripts/76.chunk.js.map +1 -1
- package/dist/scripts/77.chunk.js.map +1 -1
- package/dist/scripts/78.chunk.js.map +1 -1
- package/dist/scripts/79.chunk.js.map +1 -1
- package/dist/scripts/{8-7278f3247c.chunk.js → 8-8f44e8bfc4.chunk.js} +1 -1
- package/dist/scripts/8.chunk.js.map +1 -1
- package/dist/scripts/80.chunk.js.map +1 -1
- package/dist/scripts/81.chunk.js.map +1 -1
- package/dist/scripts/82.chunk.js.map +1 -1
- package/dist/scripts/83.chunk.js.map +1 -1
- package/dist/scripts/84.chunk.js.map +1 -1
- package/dist/scripts/85.chunk.js.map +1 -1
- package/dist/scripts/86.chunk.js.map +1 -1
- package/dist/scripts/87.chunk.js.map +1 -1
- package/dist/scripts/88.chunk.js.map +1 -1
- package/dist/scripts/89.chunk.js.map +1 -1
- package/dist/scripts/9-b8f9ea66c4.chunk.js +1 -0
- package/dist/scripts/9.chunk.js.map +1 -1
- package/dist/scripts/90.chunk.js.map +1 -1
- package/dist/scripts/91.chunk.js.map +1 -1
- package/dist/scripts/92.chunk.js.map +1 -1
- package/dist/scripts/bundle-f28b86bf5b.min.js +8 -0
- package/dist/scripts/bundle.js +593 -487
- package/dist/scripts/bundle.js.map +1 -1
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-1d2233ebcc.min.js +1 -0
- package/dist/scripts/polyfills.js +350 -350
- package/dist/scripts/polyfills.js.map +1 -1
- package/package.json +4 -3
- package/typings/libs/CVEvents.d.ts +1 -1
- package/typings/libs/LazyLoad.ts +2 -1
- package/typings/libs/Trackers.d.ts +1 -1
- package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/library-editor/components/file-select/FileSelectComponent.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadComponent.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/ResourceItemComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/SubtitleItemComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/library-editor/enums/ObjectOwnerType.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropHelper.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/enums/MasterObjectTypes.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/enums/UploadInteractionType.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/errors/too-many-files/TooManyFilesError.d.ts +0 -7
- package/dist/scripts/0-1dbc79e4e7.chunk.js +0 -1
- package/dist/scripts/0-8b75adf540.chunk.js +0 -1
- package/dist/scripts/0-93276429bf.chunk.js +0 -1
- package/dist/scripts/1-22a3bd404f.chunk.js +0 -1
- package/dist/scripts/1-480e5932a6.chunk.js +0 -1
- package/dist/scripts/1-6051b28de6.chunk.js +0 -1
- package/dist/scripts/1-b85c11fc30.chunk.js +0 -1
- package/dist/scripts/10-3ff370d548.chunk.js +0 -1
- package/dist/scripts/10-923c4b075a.chunk.js +0 -1
- package/dist/scripts/10-e2fea45a6c.chunk.js +0 -1
- package/dist/scripts/11-3dec7d2c7e.chunk.js +0 -11
- package/dist/scripts/11-74bc3f2d9f.chunk.js +0 -11
- package/dist/scripts/12-24bd360be0.chunk.js +0 -1
- package/dist/scripts/12-6ecdd79b85.chunk.js +0 -1
- package/dist/scripts/12-e522e64a94.chunk.js +0 -1
- package/dist/scripts/13-081c0e5887.chunk.js +0 -1
- package/dist/scripts/13-282f8add17.chunk.js +0 -1
- package/dist/scripts/13-54fe4fe53b.chunk.js +0 -1
- package/dist/scripts/13-958a8fd026.chunk.js +0 -1
- package/dist/scripts/14-16f84b2721.chunk.js +0 -1
- package/dist/scripts/14-45cd4dc6ef.chunk.js +0 -1
- package/dist/scripts/14-5e443cb402.chunk.js +0 -1
- package/dist/scripts/14-68c85d6674.chunk.js +0 -1
- package/dist/scripts/15-12fa4c3471.chunk.js +0 -1
- package/dist/scripts/15-1f779dd0d3.chunk.js +0 -1
- package/dist/scripts/15-5544e6bde6.chunk.js +0 -1
- package/dist/scripts/15-8c96c3288e.chunk.js +0 -1
- package/dist/scripts/16-670c43d26f.chunk.js +0 -1
- package/dist/scripts/16-742a776f88.chunk.js +0 -1
- package/dist/scripts/16-7bcffb06e7.chunk.js +0 -1
- package/dist/scripts/17-7093f50dff.chunk.js +0 -1
- package/dist/scripts/17-b5e44e8b17.chunk.js +0 -1
- package/dist/scripts/17-f6b0159da3.chunk.js +0 -1
- package/dist/scripts/2-5fd33f5359.chunk.js +0 -1
- package/dist/scripts/2-7cc9176e8a.chunk.js +0 -1
- package/dist/scripts/20-4d88ede0e0.chunk.js +0 -1
- package/dist/scripts/20-732a7a549d.chunk.js +0 -1
- package/dist/scripts/20-a84733c89f.chunk.js +0 -1
- package/dist/scripts/21-9b28a13702.chunk.js +0 -1
- package/dist/scripts/21-c9983ca8ad.chunk.js +0 -1
- package/dist/scripts/21-ee85b6d208.chunk.js +0 -1
- package/dist/scripts/22-082c94a39c.chunk.js +0 -1
- package/dist/scripts/22-151cf38018.chunk.js +0 -1
- package/dist/scripts/22-6e6ed9f607.chunk.js +0 -1
- package/dist/scripts/23-1af21bf234.chunk.js +0 -1
- package/dist/scripts/23-2b00ff99bf.chunk.js +0 -1
- package/dist/scripts/23-94f9fe4222.chunk.js +0 -1
- package/dist/scripts/23-ab8f73ee87.chunk.js +0 -1
- package/dist/scripts/24-74ab289589.chunk.js +0 -1
- package/dist/scripts/24-c94049500e.chunk.js +0 -1
- package/dist/scripts/24-d1ffdd4755.chunk.js +0 -1
- package/dist/scripts/25-34c0406f50.chunk.js +0 -1
- package/dist/scripts/25-5a38ce3533.chunk.js +0 -1
- package/dist/scripts/25-76d9011eea.chunk.js +0 -1
- package/dist/scripts/25-866cfc0ef5.chunk.js +0 -1
- package/dist/scripts/26-d19e3f755c.chunk.js +0 -1
- package/dist/scripts/26-e53ba8e00f.chunk.js +0 -1
- package/dist/scripts/26-ea028a6276.chunk.js +0 -1
- package/dist/scripts/27-2109d41afa.chunk.js +0 -1
- package/dist/scripts/27-3aa629dd67.chunk.js +0 -1
- package/dist/scripts/27-c1241fcd84.chunk.js +0 -1
- package/dist/scripts/27-ee88c84482.chunk.js +0 -1
- package/dist/scripts/28-5c540e74cc.chunk.js +0 -1
- package/dist/scripts/28-76b9766891.chunk.js +0 -1
- package/dist/scripts/28-e490147f6b.chunk.js +0 -1
- package/dist/scripts/29-2da59b1589.chunk.js +0 -1
- package/dist/scripts/29-3faa153e38.chunk.js +0 -1
- package/dist/scripts/29-69389908f8.chunk.js +0 -1
- package/dist/scripts/29-bb7e39304b.chunk.js +0 -1
- package/dist/scripts/3-6e67dd4b74.chunk.js +0 -1
- package/dist/scripts/3-81b501ac1e.chunk.js +0 -1
- package/dist/scripts/3-c69e4454ce.chunk.js +0 -1
- package/dist/scripts/30-9d32d88d76.chunk.js +0 -1
- package/dist/scripts/30-a1df3e37da.chunk.js +0 -1
- package/dist/scripts/30-fa390c35f6.chunk.js +0 -1
- package/dist/scripts/31-ce31250e42.chunk.js +0 -1
- package/dist/scripts/31-f15802825c.chunk.js +0 -1
- package/dist/scripts/31-fc63c4629d.chunk.js +0 -1
- package/dist/scripts/32-1ad8193581.chunk.js +0 -1
- package/dist/scripts/32-3de9c7454b.chunk.js +0 -1
- package/dist/scripts/32-4173874dbe.chunk.js +0 -1
- package/dist/scripts/32-9bca57f408.chunk.js +0 -1
- package/dist/scripts/33-20ac0ab4a1.chunk.js +0 -1
- package/dist/scripts/33-350334db4c.chunk.js +0 -1
- package/dist/scripts/33-675467f07d.chunk.js +0 -1
- package/dist/scripts/33-7efae85b8b.chunk.js +0 -1
- package/dist/scripts/34-0a7f3b55fe.chunk.js +0 -1
- package/dist/scripts/34-3adf309726.chunk.js +0 -1
- package/dist/scripts/34-c4f0495750.chunk.js +0 -1
- package/dist/scripts/34-f6eea83a09.chunk.js +0 -1
- package/dist/scripts/35-17b30890a5.chunk.js +0 -1
- package/dist/scripts/35-4254e160f0.chunk.js +0 -1
- package/dist/scripts/35-7f90628b77.chunk.js +0 -1
- package/dist/scripts/35-9c3899dfbd.chunk.js +0 -1
- package/dist/scripts/36-1fde696d6a.chunk.js +0 -1
- package/dist/scripts/36-2ec95df618.chunk.js +0 -1
- package/dist/scripts/36-b5ad543fba.chunk.js +0 -1
- package/dist/scripts/36-cdbe95bd06.chunk.js +0 -1
- package/dist/scripts/37-6fa4b8fc60.chunk.js +0 -1
- package/dist/scripts/37-97b84a8be5.chunk.js +0 -1
- package/dist/scripts/37-c649a307d4.chunk.js +0 -1
- package/dist/scripts/38-0cf8029bec.chunk.js +0 -1
- package/dist/scripts/38-1c98f19489.chunk.js +0 -1
- package/dist/scripts/38-6fc346f964.chunk.js +0 -1
- package/dist/scripts/38-7ffe535b0d.chunk.js +0 -1
- package/dist/scripts/39-13d6669c3f.chunk.js +0 -1
- package/dist/scripts/39-748eb61732.chunk.js +0 -1
- package/dist/scripts/39-e5983a5d53.chunk.js +0 -1
- package/dist/scripts/4-435484d217.chunk.js +0 -1
- package/dist/scripts/4-5c50e71b83.chunk.js +0 -1
- package/dist/scripts/4-7274621693.chunk.js +0 -1
- package/dist/scripts/4-85ba8523ad.chunk.js +0 -1
- package/dist/scripts/40-2691dfbd5a.chunk.js +0 -1
- package/dist/scripts/40-2ecbd41570.chunk.js +0 -1
- package/dist/scripts/40-a691a401ff.chunk.js +0 -1
- package/dist/scripts/41-0368ba16dc.chunk.js +0 -1
- package/dist/scripts/41-1df587ee3a.chunk.js +0 -1
- package/dist/scripts/41-85fcb15184.chunk.js +0 -1
- package/dist/scripts/41-bb9aef24f7.chunk.js +0 -1
- package/dist/scripts/42-389acb6e55.chunk.js +0 -1
- package/dist/scripts/42-3ef41f40f5.chunk.js +0 -1
- package/dist/scripts/42-61a626d7f4.chunk.js +0 -1
- package/dist/scripts/43-49f13dab14.chunk.js +0 -1
- package/dist/scripts/43-72d1bc0ae2.chunk.js +0 -1
- package/dist/scripts/43-a5b882d502.chunk.js +0 -1
- package/dist/scripts/44-0703eb0ad8.chunk.js +0 -1
- package/dist/scripts/44-756fd6622b.chunk.js +0 -1
- package/dist/scripts/44-de22428999.chunk.js +0 -1
- package/dist/scripts/44-ee6a740a16.chunk.js +0 -1
- package/dist/scripts/45-610d098194.chunk.js +0 -1
- package/dist/scripts/45-806dd5b78c.chunk.js +0 -1
- package/dist/scripts/45-da34a8b6b2.chunk.js +0 -1
- package/dist/scripts/45-e4a92a40fd.chunk.js +0 -1
- package/dist/scripts/46-4aa05464fe.chunk.js +0 -1
- package/dist/scripts/46-cadf3f46ee.chunk.js +0 -1
- package/dist/scripts/46-cccef3e874.chunk.js +0 -1
- package/dist/scripts/46-ebf8eee4ac.chunk.js +0 -1
- package/dist/scripts/47-22a83e5974.chunk.js +0 -1
- package/dist/scripts/47-56d22af6ba.chunk.js +0 -1
- package/dist/scripts/47-c61fa52c53.chunk.js +0 -1
- package/dist/scripts/48-e05ab3ecac.chunk.js +0 -1
- package/dist/scripts/48-e577124476.chunk.js +0 -1
- package/dist/scripts/48-fc96b968fc.chunk.js +0 -1
- package/dist/scripts/49-13c5f8e87d.chunk.js +0 -1
- package/dist/scripts/49-4a6c119f58.chunk.js +0 -1
- package/dist/scripts/49-f9151c7e06.chunk.js +0 -1
- package/dist/scripts/5-06b97501c3.chunk.js +0 -1
- package/dist/scripts/5-1ba89c4774.chunk.js +0 -1
- package/dist/scripts/5-515b264fbc.chunk.js +0 -1
- package/dist/scripts/5-d6a7d71167.chunk.js +0 -1
- package/dist/scripts/50-0d5aed7730.chunk.js +0 -1
- package/dist/scripts/50-3924907655.chunk.js +0 -1
- package/dist/scripts/50-4de0b758d5.chunk.js +0 -1
- package/dist/scripts/51-cd37c8efa2.chunk.js +0 -1
- package/dist/scripts/51-dca2a9cc86.chunk.js +0 -1
- package/dist/scripts/51-ea33746146.chunk.js +0 -1
- package/dist/scripts/52-50230b48c8.chunk.js +0 -1
- package/dist/scripts/52-8b53a5c0b1.chunk.js +0 -1
- package/dist/scripts/52-a3c8ed29ca.chunk.js +0 -1
- package/dist/scripts/53-0e253f9f3e.chunk.js +0 -1
- package/dist/scripts/53-54b0df474f.chunk.js +0 -1
- package/dist/scripts/53-d8f0dea552.chunk.js +0 -1
- package/dist/scripts/54-d1bc70c7b5.chunk.js +0 -1
- package/dist/scripts/54-dd4d101665.chunk.js +0 -1
- package/dist/scripts/54-ead54d0b34.chunk.js +0 -1
- package/dist/scripts/55-3c60601030.chunk.js +0 -1
- package/dist/scripts/55-a5fa20b497.chunk.js +0 -1
- package/dist/scripts/55-e29d6a6ba9.chunk.js +0 -1
- package/dist/scripts/56-370078d597.chunk.js +0 -1
- package/dist/scripts/56-7a6c662f14.chunk.js +0 -1
- package/dist/scripts/56-df0a32000b.chunk.js +0 -1
- package/dist/scripts/57-6e622c6480.chunk.js +0 -1
- package/dist/scripts/57-a4f4d6fe41.chunk.js +0 -1
- package/dist/scripts/57-c1faec8b32.chunk.js +0 -1
- package/dist/scripts/58-5729cbaa5c.chunk.js +0 -1
- package/dist/scripts/58-a0fe201826.chunk.js +0 -1
- package/dist/scripts/58-e996405f2b.chunk.js +0 -1
- package/dist/scripts/59-333f38ee3b.chunk.js +0 -1
- package/dist/scripts/59-381a49ed7f.chunk.js +0 -1
- package/dist/scripts/59-4f2fcb6412.chunk.js +0 -1
- package/dist/scripts/6-1045293de4.chunk.js +0 -1
- package/dist/scripts/6-40c8ba5007.chunk.js +0 -1
- package/dist/scripts/6-b3d36065dc.chunk.js +0 -1
- package/dist/scripts/60-b17c6609cd.chunk.js +0 -1
- package/dist/scripts/60-b4a91c86fa.chunk.js +0 -1
- package/dist/scripts/60-c57f161f18.chunk.js +0 -1
- package/dist/scripts/61-5d6e59d408.chunk.js +0 -1
- package/dist/scripts/61-7d81d27c31.chunk.js +0 -1
- package/dist/scripts/61-a342a0d501.chunk.js +0 -1
- package/dist/scripts/62-758f5e505b.chunk.js +0 -1
- package/dist/scripts/62-b572d8b80d.chunk.js +0 -1
- package/dist/scripts/62-f5fd35fdc0.chunk.js +0 -1
- package/dist/scripts/63-568008965e.chunk.js +0 -1
- package/dist/scripts/63-6700b4d00a.chunk.js +0 -1
- package/dist/scripts/63-c88b9860e9.chunk.js +0 -1
- package/dist/scripts/64-9c88ee6161.chunk.js +0 -1
- package/dist/scripts/64-e177d4c971.chunk.js +0 -1
- package/dist/scripts/64-fa2facacbb.chunk.js +0 -1
- package/dist/scripts/65-a7e499ceee.chunk.js +0 -1
- package/dist/scripts/65-e4568d1f06.chunk.js +0 -1
- package/dist/scripts/65-f750573f69.chunk.js +0 -1
- package/dist/scripts/66-f00f29ccae.chunk.js +0 -1
- package/dist/scripts/66-f325ff3187.chunk.js +0 -1
- package/dist/scripts/66-f6d213b33c.chunk.js +0 -1
- package/dist/scripts/67-1ebaab7a2d.chunk.js +0 -1
- package/dist/scripts/67-3c9628d296.chunk.js +0 -1
- package/dist/scripts/67-97c694c3d5.chunk.js +0 -1
- package/dist/scripts/67-c5af18680c.chunk.js +0 -1
- package/dist/scripts/68-488cd1552f.chunk.js +0 -1
- package/dist/scripts/68-7b1d5e8e75.chunk.js +0 -1
- package/dist/scripts/68-eb8700aeb1.chunk.js +0 -1
- package/dist/scripts/69-870856c6fb.chunk.js +0 -1
- package/dist/scripts/69-b0ea71d7c5.chunk.js +0 -1
- package/dist/scripts/69-be2be90b7c.chunk.js +0 -1
- package/dist/scripts/7-3151397d74.chunk.js +0 -1
- package/dist/scripts/7-aac8c84ccb.chunk.js +0 -1
- package/dist/scripts/7-dfddb8ffa8.chunk.js +0 -1
- package/dist/scripts/70-39dc936989.chunk.js +0 -1
- package/dist/scripts/70-6ef72cd9b6.chunk.js +0 -1
- package/dist/scripts/70-e6ebb44667.chunk.js +0 -1
- package/dist/scripts/71-4e4a47d601.chunk.js +0 -1
- package/dist/scripts/71-8e3682a7d7.chunk.js +0 -1
- package/dist/scripts/71-a80858069c.chunk.js +0 -1
- package/dist/scripts/72-245f28bf97.chunk.js +0 -1
- package/dist/scripts/72-550438db4e.chunk.js +0 -1
- package/dist/scripts/72-65364adff1.chunk.js +0 -1
- package/dist/scripts/8-c4955c2009.chunk.js +0 -1
- package/dist/scripts/8-d46f48d03c.chunk.js +0 -1
- package/dist/scripts/8-e5d19252c8.chunk.js +0 -1
- package/dist/scripts/9-4589726554.chunk.js +0 -1
- package/dist/scripts/9-576592d419.chunk.js +0 -1
- package/dist/scripts/9-66021549bd.chunk.js +0 -1
- package/dist/scripts/9-df99ba6ce1.chunk.js +0 -1
- package/dist/scripts/bundle-1b984e2fd9.min.js +0 -8
- package/dist/scripts/bundle-203920eb14.min.js +0 -8
- package/dist/scripts/bundle-7d13ba933b.min.js +0 -8
- package/dist/scripts/bundle-d5b23160b1.min.js +0 -8
- package/dist/scripts/polyfills-5a81b67408.min.js +0 -1
- package/dist/scripts/polyfills-9b0be1bd72.min.js +0 -1
- package/dist/scripts/polyfills-cd3d0a9f6d.min.js +0 -1
- package/dist/scripts/polyfills-d891a77823.min.js +0 -1
- /package/dist/libs/shared/src/interfaces/models/{Interactive.d.ts → interactive.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[6],{1042:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){return" cursor-pointer"},3:function(t,e,n,o,r){return"checked"},5:function(t,e,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=e?e.options:e)?i.checkboxClassName:i,e))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=e?e.options:e)?i.id:i,e))+'" id="checkbox-'+a(l(null!=(i=null!=e?e.options:e)?i.id:i,e))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(u,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.checked:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(u,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=e?e.options:e)?i.id:i,e))+'"> </label>\r\n</div>'},useData:!0})},1050:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return g}));var o=n(1),r=n(2),i=n(1042),l=n.n(i),a=n(13);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=d(t);if(e){var r=d(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y="checkbox-all",g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,r,i=p(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){this.model=a.a.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 t=o.values(this.model.omit("all",y));o.every(t,(function(t){return!!t}))&&(this.model.get("all")||t.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return y}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(y),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 l.a}}])&&s(e.prototype,n),r&&s(e,r),u}(r.a.Component)},1056:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(2),r=n(1042),i=n.n(r),l=n(13),a=n(1050);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(u,t);var e,n,o,r=f(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),r.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var t=this.getItemId();this.model.set(t,!0,{silent:!0})}}},{key:"getViewModel",value:function(){this.model=l.a.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(t){t.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var t=this.getItemId();this.model.has(t)||this.model.get("all")?!1===this.model.get(t)?this.model.set(t,!0):(this.model.set(t,!1),this.model.set(a.a,!1)):this.model.set(t,!0)}}},{key:"viewOptions",value:function(){var t=this.getItemId();return{id:t,checked:this.model.has(t)?this.model.get(t):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 i.a}}])&&c(e.prototype,n),o&&c(e,o),u}(o.a.Component)},1111:function(t,e,n){"use strict";var o=n(2),r=n(15),i=n(0),l=n(302),a=n(1363),u=n.n(a);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(c,t);var e,n,o,a=h(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"regions",value:function(){return{generateReport:{el:".generate-report-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:l,warningSvg:r.a.getSvg(r.b.Warning)}}},{key:"onRender",value:function(){this.showChildView("generateReport",new Ae)}},{key:"name",get:function(){return"SearchBarComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"migrationWizard.searchBar"}},{key:"className",get:function(){var t="container";return"publisher-archive"===this.options.selected&&(t+=" ".concat(l.publisherArchive)),"migration-errors"===this.options.selected&&(t+=" ".concat(l.migrationErrors)),"none"===this.options.selected&&(t+=" ".concat(l.none)),t}},{key:"elements",get:function(){return{search:".search"}}},{key:"appLinks",get:function(){var t;return s(t={},".".concat(l.reviewErroredAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.MIGRATION_ERRORS}),s(t,".".concat(l.publisherArchiveAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.HOME}),t}}])&&f(e.prototype,n),o&&f(e,o),c}(o.a.Component),b=n(1),m=n(6),v=n(1050),k=n(13),O=n(186),w=n(1118),C=n(47),x=n(303),R=n.n(x),S=n(1364),_=n.n(S);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function I(t,e){return(I=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=M(t);if(e){var r=M(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return T(this,n)}}function T(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&I(t,e)}(a,t);var e,n,o,l=P(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,t)}return e=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),O.a.MIGRATION_VIDEO_LIST),this.listenTo(this.viewModel,"change:".concat(v.a),this.onCheckboxChange)}},{key:"viewOptions",value:function(){return{styles:R.a,showCategory:this.options.searchTerm,sortSvg:r.a.getSvg(r.b.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 v.b({type:O.a.MIGRATION_VIDEO_LIST,key:this.getCheckboxKey(),disabled:0===this.getVideosThatCanBeMigrated().length,className:"".concat(R.a.bulkCheckbox," position-relative d-inline-block"),numberOfItems:this.collection.length}))}},{key:"sortTitle",value:function(){this.sort(C.e.Title)}},{key:"sortViews",value:function(){this.sort(C.e.Views)}},{key:"getVideosThatCanBeMigrated",value:function(){return this.collection.filter((function(t){return t.get("migrationStatus")===w.a.HasNotBeenMigrated}))}},{key:"sort",value:function(t){m.Radio.channel(i.e.MIGRATION).trigger(i.i.MigrationWizard.SORT_VIDEOS,t)}},{key:"onCheckboxChange",value:function(){var t=m.Radio.channel(this.options.channelName),e=this.viewModel.get(v.a),n=this.getVideosThatCanBeMigrated();e?t.trigger("add:selected",n,this.options.folderChord):b.isUndefined(e)&&t.trigger("remove:selected",n,this.options.folderChord)}},{key:"name",get:function(){return"SortingRowComponent"}},{key:"template",get:function(){return _.a}},{key:"className",get:function(){return"row no-gutters px-2 py-1 ".concat(R.a.sortingRow)}},{key:"lang",get:function(){return"migrationWizard.sortingRow"}},{key:"elements",get:function(){return{sortOption:".sort"}}}])&&j(e.prototype,n),o&&j(e,o),a}(o.a.Component),V=n(1365),L=n.n(V),N=n(269);function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function W(t,e){return(W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=U(t);if(e){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(t,e){return!e||"object"!==B(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&W(t,e)}(i,t);var e,n,o,r=z(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"events",value:function(){return{"click .applink-next":"onClickNext","click .applink-back":"onClickBack"}}},{key:"onClickNext",value:function(){this.options.nextDisabled||b.isFunction(this.options.onClickNext)&&this.options.onClickNext()}},{key:"onClickBack",value:function(){b.isFunction(this.options.onClickBack)&&this.options.onClickBack()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:N},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(N.statusBar)}},{key:"template",get:function(){return L.a}},{key:"lang",get:function(){return"migrationWizard.statusBar"}},{key:"appLinks",get:function(){var t=this.options,e=t.nextAppLink,n=t.backAppLink,o={".applink-next":e};return n&&(o[".applink-back"]=n),o}}])&&A(e.prototype,n),o&&A(e,o),i}(o.a.Component),K=n(5),Z=n(304),F=n.n(Z),Y=n(1366),J=n.n(Y),X=n(1056);function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Q(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function tt(t,e){return(tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function et(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=ot(t);if(e){var r=ot(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return nt(this,n)}}function nt(t,e){return!e||"object"!==q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ot(t){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tt(t,e)}(l,t);var e,n,o,r=et(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{key:"initialize",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),O.a.MIGRATION_VIDEO_LIST),this.selectedVideoService=K.a.getInstance(i.x.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")!==w.a.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 t=this.viewModel.get("".concat(this.getCheckboxId()));t?this.selectedVideoService.addSelectedVideos(this.model,this.options.folderChord):b.isUndefined(t)||this.selectedVideoService.removeSelectedVideos(this.model,this.options.folderChord)}}},{key:"shouldRender",value:function(){return!this.model.get("hidden")}},{key:"renderCheckbox",value:function(){var t=this.hasBeenMigrated(),e=t?" ".concat(F.a.faded):"",n=this.model.get("selected")||this.model.get("checkedForMigration")||t;this.showChildView("bulkCheckbox",new X.a({checked:n,checkboxClassName:e,disabled:t,key:this.getCheckboxKey(),itemId:this.getCheckboxId(),type:O.a.MIGRATION_VIDEO_LIST,className:"".concat(F.a.bulkCheckbox," position-relative d-inline-block")}))}},{key:"onBeforeRender",value:function(){return this.shouldRender()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:F.a},this.options),{migrated:this.hasBeenMigrated(),views:this.model.get("viewsLast3Years")})}},{key:"onRender",value:function(){this.renderCheckbox()}},{key:"template",get:function(){return J.a}},{key:"name",get:function(){return"MigrationVideoItemComponent"}},{key:"className",get:function(){if(this.shouldRender())return"col-12 py-1 ".concat(F.a.videoRow)}},{key:"lang",get:function(){return"migrationWizard.migrationVideoItem"}},{key:"appLinks",get:function(){return{".applink-show":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,args:[this.model.get("trackingCode")]},".applink-remigrate":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.REMIGRATE_VIDEO,args:[this.model.get("id").toString(),this.model.get("masterId")&&this.model.get("masterId").toString(),this.model.get("categoryChord")]}}}}])&&Q(e.prototype,n),o&&Q(e,o),l}(o.a.Component),it=n(3),lt=n(1119),at=n(1367),ut=n.n(at);function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=dt(t);if(e){var r=dt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ht(this,n)}}function ht(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(l,t);var e,n,o,r=pt(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{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(i.e.MIGRATION,i.i.MigrationWizard.SORT_VIDEOS,this.sort),this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.TOGGLE_MIGRATED,this.toggleMigrated)}},{key:"toggleMigrated",value:function(t){this.collection&&0!==this.collection.length&&(this.collection=lt.a.toggleMigrated(this.collection,t),this.render())}},{key:"sort",value:function(t){0!==this.collection.length&&(this.sortedBy=this.sortedBy===t?void 0:t,this.collection=lt.a.sortVideos(this.collection,t,this.sortedBy===t),this.renderVideoList())}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new re({text:it.a.getPhrase(this.lang,"noVideos")}))}},{key:"renderSortingRow",value:function(){this.showChildView("videoListSort",new D({collection:this.collection,folderChord:this.options.folderChord,searchTerm:this.options.searchTerm,channelName:this.options.channelName}))}},{key:"renderVideoList",value:function(){this.showChildView("videoList",new xt({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 ut.a}},{key:"lang",get:function(){return"migrationWizard.videoList"}}])&&st(e.prototype,n),o&&st(e,o),l}(o.a.Component),gt=n(1368),bt=n.n(gt);function mt(t){return(mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function kt(t,e){return(kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Ct(t);if(e){var r=Ct(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return wt(this,n)}}function wt(t,e){return!e||"object"!==mt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ct(t){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kt(t,e)}(i,t);var e,n,o,r=Ot(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"name",get:function(){return"VideoListCollectionComponent"}},{key:"className",get:function(){return bt.a.videoList}},{key:"childView",get:function(){return rt}},{key:"childViewOptions",get:function(){return{folderChord:this.options.folderChord,searchTerm:this.getOption("searchTerm"),supportSiteUrl:this.options.supportSiteUrl}}}])&&vt(e.prototype,n),o&&vt(e,o),i}(o.a.ComponentCollection),Rt=n(82),St=n(1369),_t=n.n(St),Et=n(1370),jt=n.n(Et);function It(t){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Tt(t,e){return(Tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Vt(t);if(e){var r=Vt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Dt(this,n)}}function Dt(t,e){return!e||"object"!==It(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tt(t,e)}(l,t);var e,n,o,r=Mt(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{key:"viewOptions",value:function(){return{styles:_t.a,learnMoreUrl:this.getLearnMoreUrl()}}},{key:"getLearnMoreUrl",value:function(){var t=this.config.get("supportSiteUrl");return Rt.a.safeUrlConcat(t,i.y.PUBLISHER_ARCHIVE)}},{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(_t.a.banner)}},{key:"lang",get:function(){return"migrationWizard.banner"}},{key:"props",get:function(){return["config"]}},{key:"template",get:function(){return jt.a}}])&&Pt(e.prototype,n),o&&Pt(e,o),l}(o.a.Component),Nt=n(1371),Bt=n.n(Nt),At=n(1372),Wt=n.n(At);function zt(t){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ut(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ht(t,e){return(Ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Ft(t);if(e){var r=Ft(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Zt(this,n)}}function Zt(t,e){return!e||"object"!==zt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ft(t){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ht(t,e)}(i,t);var e,n,o,r=Kt(i);function i(){return Gt(this,i),r.apply(this,arguments)}return e=i,(n=[{key:"viewOptions",value:function(){return{styles:Bt.a,folder:this.model.get("folderChord").split("->").join(" / "),videoCount:this.model.get("count")}}},{key:"name",get:function(){return"SelectedVideoItemComponent"}},{key:"template",get:function(){return Wt.a}},{key:"lang",get:function(){return"migrationWizard.selectedVideoItem"}},{key:"className",get:function(){return"ml-2 pt-1"}}])&&Ut(e.prototype,n),o&&Ut(e,o),i}(o.a.Component),Jt=n(1373),$t=n(1374),Xt=n.n($t);function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function te(t,e){return(te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ee(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=oe(t);if(e){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(t,e){return!e||"object"!==qt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function oe(t){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var re=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&te(t,e)}(i,t);var e,n,o,r=ee(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"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(Jt.videoList)}},{key:"template",get:function(){return Xt.a}}])&&Qt(e.prototype,n),o&&Qt(e,o),i}(o.a.Component),ie=n(1375),le=n.n(ie),ae=n(1376),ue=n.n(ae);function ce(t){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function se(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function fe(t,e){return(fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=de(t);if(e){var r=de(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return he(this,n)}}function he(t,e){return!e||"object"!==ce(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fe(t,e)}(i,t);var e,n,o,r=pe(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return{styles:le.a,background:this.options.backgroundClass,progress:this.options.percentage}}},{key:"update",value:function(){var t=this.getUI("progressBar"),e=this.getUI("progressText");t&&t.get(0)&&$(t.get(0)).css("width","".concat(this.model.get("percentage"),"%")),e&&e.get(0)&&$(e.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 ue.a}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}}])&&se(e.prototype,n),o&&se(e,o),i}(o.a.Component),ge=n(1117),be=n(1178),me=n(1377),ve=n.n(me);function ke(t){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function we(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ce(t,e){return(Ce=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Se(t);if(e){var r=Se(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Re(this,n)}}function Re(t,e){return!e||"object"!==ke(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ce(t,e)}(a,t);var e,n,r,l=xe(a);function a(){var t;return Oe(this,a),(t=l.apply(this,arguments)).buttonDisabled=!0,t}return e=a,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=K.a.getInstance(i.g.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(i.e.MIGRATION,"get:migration:report:options",this.render)}},{key:"onClickOptionsContainer",value:function(t){t.stopPropagation()}},{key:"onToggleMigratedOption",value:function(){var t=this.reportOptions[C.d.Migrated];t.selected=!t.selected,this.updateButton()}},{key:"onToggleRemainingOption",value:function(){var t=this.reportOptions[C.d.Remaining];t.selected=!t.selected,this.updateButton()}},{key:"onToggleErroredOption",value:function(){var t=this.reportOptions[C.d.Errored];t.selected=!t.selected,this.updateButton()}},{key:"onToggleContentMatchedOption",value:function(){var t=this.reportOptions[C.d.ContentMatched];t.selected=!t.selected,this.updateButton()}},{key:"onClickSubmit",value:function(){this.buttonDisabled||o.a.AppLinkHelper.trigger({application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.GENERATE_CSV_REPORT,params:{options:be.a.filterSelectedOptions(this.reportOptions)}})}},{key:"updateButton",value:function(){var t=this.getUI("generateReportBtn");be.a.filterSelectedOptions(this.reportOptions).length?(this.buttonDisabled=!1,t.removeAttr("disabled")):(this.buttonDisabled=!0,t.attr("disabled","disabled"))}},{key:"fetchMigrationReportOptions",value:function(){var t=this;this.migrationVideoDataService.getMigrationReportOptions((function(e){t.reportOptions=be.a.processValidReportOptions(e),t.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 ve.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"}}}])&&we(e.prototype,n),r&&we(e,r),a}(o.a.Component),Ee=n(1378),je=n.n(Ee),Ie=n(1379),Pe=n.n(Ie);function Te(t){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Me(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function De(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ve(t,e){return(Ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Le(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Be(t);if(e){var r=Be(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ne(this,n)}}function Ne(t,e){return!e||"object"!==Te(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Be(t){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ae=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}(i,t);var e,n,o,r=Le(i);function i(){return Me(this,i),r.apply(this,arguments)}return e=i,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:Pe.a}}},{key:"onRender",value:function(){this.showChildView("options",new _e)}},{key:"name",get:function(){return"GenerateReportButtonComponent"}},{key:"template",get:function(){return je.a}},{key:"lang",get:function(){return"migrationWizard.generateReportButton"}}])&&De(e.prototype,n),o&&De(e,o),i}(o.a.Component);n.d(e,"h",(function(){return g})),n.d(e,"j",(function(){return D})),n.d(e,"k",(function(){return H})),n.d(e,"e",(function(){return rt})),n.d(e,"l",(function(){return yt})),n.d(e,"m",(function(){return xt})),n.d(e,"a",(function(){return Lt})),n.d(e,"i",(function(){return Yt})),n.d(e,"b",(function(){return re})),n.d(e,"f",(function(){return ye})),n.d(e,"g",(function(){return ge.a})),n.d(e,"d",(function(){return _e})),n.d(e,"c",(function(){return Ae}))},1117:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(2),r=n(1176),i=n.n(r),l=n(1177),a=n.n(l);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,o,r=f(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:percentage",this.update)}},{key:"viewOptions",value:function(){return{styles:i.a,text:this.options.text,class:this.options.class,percentage:this.options.percentage}}},{key:"onRender",value:function(){this.update()}},{key:"update",value:function(){var t=this.model.get("percentage")||0,e=this.getUI("circle").get(0),n=2*e.r.baseVal.value*Math.PI;e.style.strokeDasharray="".concat(n," ").concat(n),e.style.strokeDashoffset=n;var o=n-t/100*n;e.style.strokeDashoffset=o;var r=this.getUI("text");r&&r.text("".concat(t,"%"))}},{key:"name",get:function(){return"ProgressCircleComponent"}},{key:"template",get:function(){return a.a}},{key:"lang",get:function(){return"migrationWizard.progressCircle"}},{key:"elements",get:function(){return{circle:".progress-circle",text:".progress-circle-text"}}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a.Component)},1118:function(t,e,n){"use strict";var o;n.d(e,"a",(function(){return o})),function(t){t[t.NeedsManualReview=-1]="NeedsManualReview",t[t.HasNotBeenMigrated=0]="HasNotBeenMigrated",t[t.MigratedByUser=1]="MigratedByUser"}(o||(o={}))},1119:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n(1),r=n(2),i=n(88),l=n(1118),a={setChecked:function(t,e,n){t.set("selected",!1);var r=n&&t.get("viewsLast3Years")>0;(o.contains(e,t.id.toString())||r&&0===e.length)&&t.set("selected",!0)},sortVideos:function(t,e,n){var o="name";return t.comparator=function(t,r){t.keys().forEach((function(t){t===e&&(o=t)}));var i=t.get(o),l=r.get(o);return"string"==typeof i&&"string"==typeof l&&(i=i.toLowerCase(),l=l.toLowerCase()),i<l?n?1:-1:i>l?n?-1:1:0},t.sort(),t},toggleMigrated:function(t,e){return t.each((function(t){var n=t.get("migrationStatus")!==l.a.HasNotBeenMigrated,r=t.get("hidden");!o.isUndefined(e)&&n?t.set("hidden",e):n?t.set("hidden",!r):t.set("hidden",!1)})),t},getSelectedVideosCollection:function(t){var e=new r.a.Collection;return Object.keys(t).forEach((function(n){var o=t[n],r=o.id,l=o.folderChord,a=e.findWhere({folderChord:l});a?(a.set("count",a.get("count")+1),a.get("videoIds").push(r)):e.add(new i.f({count:1,folderChord:l,videoIds:[r]}))})),e.each((function(t){t.set("folderChord",t.get("folderChord"))})),e}}},1176:function(t,e,n){t.exports={circle:"_3iX0l",extraText:"_1nYnx",progressCircleContainer:"_2l1Al",progressCircle:"_1RbA5"}},1177:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression;return' <span class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.extraText:i,e))+'">'+a(l(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.circle:i,e))+" "+a(l(null!=(i=null!=e?e.options:e)?i.class:i,e))+'">\r\n <span>\r\n <span class="progress-circle-text">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(u,"progress",{name:"lang",hash:{percentage:null!=(i=null!=e?e.options:e)?i.percentage:i},data:r}))+"</span>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.text:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' </span>\r\n\r\n <svg class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressCircleContainer:i,e))+'">\r\n <circle class="progress-circle '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressCircle:i,e))+'" transform=\'rotate(270 160 0)\' stroke-width="28" fill="transparent" r="150">\r\n </svg>\r\n</div>'},useData:!0})},1178:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var o=n(1),r=n(3),i=n(47);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a="migrationWizard.utils",u={getReportOptions:function(){var t;return l(t={},i.d.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:r.a.getPhrase(a,"migratedOption")}),l(t,i.d.Remaining,{id:"remaining",type:"homemigrator.le.migration.videos.remaining.report",labelText:r.a.getPhrase(a,"remainingOption")}),l(t,i.d.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:r.a.getPhrase(a,"erroredOption")}),l(t,i.d.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:r.a.getPhrase(a,"linkedOption")}),t},processValidReportOptions:function(t){var e=this.getReportOptions(),n={};return o.each(o.keys(e),(function(r){o.contains(t,e[r].type)&&(n[r]=e[r])})),n},filterSelectedOptions:function(t){return o.filter(o.keys(t),(function(e){return t[e].selected})).map((function(e){return t[e].id}))},getSelectedOptionsText:function(t){var e=this.getReportOptions();return o.filter(o.keys(e),(function(n){return o.contains(t,e[n].id)})).map((function(t){return e[t].labelText}))}}},1363:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing;return'<div class="row '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabContainer:i,e))+' position-relative">\r\n <a class="col-4 p-3 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.publisherArchiveAppLink:i,e))+'"><h1 class="m-0 h5">'+a((n.lang||e&&e.lang||c).call(u,"addVideos",{name:"lang",hash:{},data:r}))+'</h1></a>\r\n <a class="p-3 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.reviewErroredAppLink:i,e))+'"><h1 class="m-0 h5">'+a((n.lang||e&&e.lang||c).call(u,"migrationWarnings",{name:"lang",hash:{},data:r}))+'<span class="ml-2 svg-container d-inline-block '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.warningSvg:i,e))?i:"")+'</span></h1></a>\r\n <div class="generate-report-region"></div>\r\n</div>'},useData:!0})},1364:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{},c=t.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 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sortOption:i,e))+'">\r\n <span>'+a((n.lang||e&&e.lang||c).call(u,"sortTitle",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.sortSvg:i,e))?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 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sortOption:i,e))+'">\r\n <span>'+a((n.lang||e&&e.lang||c).call(u,"sortViews",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.sortSvg:i,e))?i:"")+"</span>\r\n </span>\r\n</div>"},useData:!0})},1365:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <button class="applink-back btn btn-secondary '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"back",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n"},3:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <span class="align-middle '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.statusBarMessage:i,e))+'">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"videosSelected",{name:"lang",hash:{videoCount:null!=(i=null!=e?e.options:e)?i.videoCount:i,smartCount:null!=(i=null!=e?e.options:e)?i.numberAvailable:i},data:r}))+"\r\n </span>\r\n"},5:function(t,e,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.lambda,u=t.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showBackButton:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' </div>\r\n <div class="col-6">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showSelected:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")+' </div>\r\n <div class="col-2 text-right">\r\n <button class="applink-next btn btn-primary '+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" '+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.nextDisabled:i,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?i:"")+">\r\n "+u(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"\r\n </button>\r\n </div>\r\n</div>"},useData:!0})},1366:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){return"text-muted"},3:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <a class="applink-remigrate cursor-pointer '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.viewLink:i,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"readd",{name:"lang",hash:{},data:r}))+"</a>\r\n"},5:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <a class="applink-show cursor-pointer '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.viewLink:i,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"details",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l,a=t.lambda,u=t.escapeExpression,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing;return'<div class="row no-gutters">\r\n <div class="col-8">\r\n <div class="bulk-checkbox-region '+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.bulkCheckbox:i,e))+'"></div>\r\n <a class="applink-show align-middle cursor-pointer mt-2 '+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoTitle:i,e))+" "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.migrated:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+u("function"==typeof(l=null!=(l=n.name||(null!=e?e.name:e))?l:s)?l.call(c,{name:"name",hash:{},data:r}):l)+'</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(c,null!=(i=null!=e?e.options:e)?i.migrated:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.program(5,r,0),data:r}))?i:"")+' <div class="'+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.viewCount:i,e))+'">\r\n <span>\r\n '+u((n.lang||e&&e.lang||s).call(c,"views",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?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})},1367:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="video-sorting-region"></div>\r\n<div class="video-list-region"></div>'},useData:!0})},1368:function(t,e,n){t.exports={videoList:"_3RFYO"}},1369:function(t,e,n){t.exports={banner:"O5CMF",learnMore:"MjcUE"}},1370:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,u=t.escapeExpression,c=t.lambda;return'<span class="text-white mr-1">'+u((n.lang||e&&e.lang||a).call(l,"banner",{name:"lang",hash:{},data:r}))+'</span>\r\n<a href="'+u(c(null!=(i=null!=e?e.options:e)?i.learnMoreUrl:i,e))+'" class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.learnMore:i,e))+'" target="_blank">'+u((n.lang||e&&e.lang||a).call(l,"learnMore",{name:"lang",hash:{},data:r}))+"</a>"},useData:!0})},1371:function(t,e,n){t.exports={category:"BSPKV"}},1372:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"selectedVideos",{name:"lang",hash:{folder:null!=(i=null!=e?e.options:e)?i.folder:i,className:null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.category:i,smartCount:null!=(i=null!=e?e.options:e)?i.videoCount:i},data:r}))?i:""},useData:!0})},1373:function(t,e,n){t.exports={videoList:"_3TgUv"}},1374:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return'<h3 class="m-0">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</h3>"},useData:!0})},1375:function(t,e,n){t.exports={progressBarContainter:"_1aNlZ",progressBar:"_325nt"}},1376:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression;return'<div class="row">\r\n <div class="col-11 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressBarContainter:i,e))+' pl-0">\r\n <div class="progress '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressBar:i,e))+'">\r\n <div class="progress-bar '+a(l(null!=(i=null!=e?e.options:e)?i.background:i,e))+" "+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressBar:i,e))+'" role="progressbar" aria-valuenow="'+a(l(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'" 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">'+a(l(null!=(i=null!=e?e.options:e)?i.progress:i,e))+"%</span>\r\n </div>\r\n</div>\r\n\r\n"},useData:!0})},1377:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i=t.lambda,l=t.escapeExpression;return' <div class="d-flex py-1">\r\n <div class="custom-control custom-checkbox">\r\n <input id="'+l(i(null!=e?e.id:e,e))+'-option" name="checkbox-'+l(i(null!=e?e.id:e,e))+'" type="checkbox" class="custom-control-input cursor-pointer">\r\n <label class="custom-control-label cursor-pointer" for="'+l(i(null!=e?e.id:e,e))+'-option"> </label>\r\n </div>\r\n <label for="'+l(i(null!=e?e.id:e,e))+'-option">'+l(i(null!=e?e.labelText:e,e))+"</label>\r\n </div> \r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,u=t.escapeExpression;return'<h1 class="h5 py-1 mx-2">'+u((n.lang||e&&e.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h1>\r\n<div class="dropdown-divider"></div>\r\n<p class="m-2 mt-0">'+u((n.lang||e&&e.lang||a).call(l,"options",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n<div class="mx-2 options">\r\n'+(null!=(i=n.each.call(l,null!=(i=null!=e?e.options:e)?i.reportOptions:i,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.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>'+u((n.lang||e&&e.lang||a).call(l,"generate",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>"},useData:!0})},1378:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="'+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.generateReport:i,e))+' mr-2"\r\n>\r\n <div class="btn btn-link border px-2 my-2">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"generateReport",{name:"lang",hash:{},data:r}))+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},1379:function(t,e,n){t.exports={generateReport:"_2PRgW"}}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[6],{1066:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){return" cursor-pointer"},3:function(t,e,n,o,r){return"checked"},5:function(t,e,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=e?e.options:e)?i.checkboxClassName:i,e))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=e?e.options:e)?i.id:i,e))+'" id="checkbox-'+a(l(null!=(i=null!=e?e.options:e)?i.id:i,e))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(u,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.checked:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(u,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=e?e.options:e)?i.id:i,e))+'"> </label>\r\n</div>'},useData:!0})},1074:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return g}));var o=n(1),r=n(2),i=n(1066),l=n.n(i),a=n(12);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=d(t);if(e){var r=d(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y="checkbox-all",g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,r,i=p(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){this.model=a.a.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 t=o.values(this.model.omit("all",y));o.every(t,(function(t){return!!t}))&&(this.model.get("all")||t.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return y}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(y),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 l.a}}])&&s(e.prototype,n),r&&s(e,r),u}(r.a.Component)},1080:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(2),r=n(1066),i=n.n(r),l=n(12),a=n(1074);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(u,t);var e,n,o,r=f(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),r.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var t=this.getItemId();this.model.set(t,!0,{silent:!0})}}},{key:"getViewModel",value:function(){this.model=l.a.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(t){t.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var t=this.getItemId();this.model.has(t)||this.model.get("all")?!1===this.model.get(t)?this.model.set(t,!0):(this.model.set(t,!1),this.model.set(a.a,!1)):this.model.set(t,!0)}}},{key:"viewOptions",value:function(){var t=this.getItemId();return{id:t,checked:this.model.has(t)?this.model.get(t):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 i.a}}])&&c(e.prototype,n),o&&c(e,o),u}(o.a.Component)},1135:function(t,e,n){"use strict";var o=n(2),r=n(15),i=n(0),l=n(303),a=n(1390),u=n.n(a);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(c,t);var e,n,o,a=h(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"regions",value:function(){return{generateReport:{el:".generate-report-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:l,warningSvg:r.a.getSvg(r.b.Warning)}}},{key:"onRender",value:function(){this.showChildView("generateReport",new Ae)}},{key:"name",get:function(){return"SearchBarComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"migrationWizard.searchBar"}},{key:"className",get:function(){var t="container";return"publisher-archive"===this.options.selected&&(t+=" ".concat(l.publisherArchive)),"migration-errors"===this.options.selected&&(t+=" ".concat(l.migrationErrors)),"none"===this.options.selected&&(t+=" ".concat(l.none)),t}},{key:"elements",get:function(){return{search:".search"}}},{key:"appLinks",get:function(){var t;return s(t={},".".concat(l.reviewErroredAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.MIGRATION_ERRORS}),s(t,".".concat(l.publisherArchiveAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.HOME}),t}}])&&f(e.prototype,n),o&&f(e,o),c}(o.a.Component),b=n(1),m=n(6),v=n(1074),k=n(12),O=n(186),w=n(1142),C=n(47),x=n(304),R=n.n(x),S=n(1391),_=n.n(S);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function I(t,e){return(I=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=M(t);if(e){var r=M(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return T(this,n)}}function T(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&I(t,e)}(a,t);var e,n,o,l=P(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,t)}return e=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),O.a.MIGRATION_VIDEO_LIST),this.listenTo(this.viewModel,"change:".concat(v.a),this.onCheckboxChange)}},{key:"viewOptions",value:function(){return{styles:R.a,showCategory:this.options.searchTerm,sortSvg:r.a.getSvg(r.b.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 v.b({type:O.a.MIGRATION_VIDEO_LIST,key:this.getCheckboxKey(),disabled:0===this.getVideosThatCanBeMigrated().length,className:"".concat(R.a.bulkCheckbox," position-relative d-inline-block"),numberOfItems:this.collection.length}))}},{key:"sortTitle",value:function(){this.sort(C.e.Title)}},{key:"sortViews",value:function(){this.sort(C.e.Views)}},{key:"getVideosThatCanBeMigrated",value:function(){return this.collection.filter((function(t){return t.get("migrationStatus")===w.a.HasNotBeenMigrated}))}},{key:"sort",value:function(t){m.Radio.channel(i.e.MIGRATION).trigger(i.i.MigrationWizard.SORT_VIDEOS,t)}},{key:"onCheckboxChange",value:function(){var t=m.Radio.channel(this.options.channelName),e=this.viewModel.get(v.a),n=this.getVideosThatCanBeMigrated();e?t.trigger("add:selected",n,this.options.folderChord):b.isUndefined(e)&&t.trigger("remove:selected",n,this.options.folderChord)}},{key:"name",get:function(){return"SortingRowComponent"}},{key:"template",get:function(){return _.a}},{key:"className",get:function(){return"row no-gutters px-2 py-1 ".concat(R.a.sortingRow)}},{key:"lang",get:function(){return"migrationWizard.sortingRow"}},{key:"elements",get:function(){return{sortOption:".sort"}}}])&&j(e.prototype,n),o&&j(e,o),a}(o.a.Component),V=n(1392),L=n.n(V),N=n(267);function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function W(t,e){return(W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=U(t);if(e){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(t,e){return!e||"object"!==B(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&W(t,e)}(i,t);var e,n,o,r=z(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"events",value:function(){return{"click .applink-next":"onClickNext","click .applink-back":"onClickBack"}}},{key:"onClickNext",value:function(){this.options.nextDisabled||b.isFunction(this.options.onClickNext)&&this.options.onClickNext()}},{key:"onClickBack",value:function(){b.isFunction(this.options.onClickBack)&&this.options.onClickBack()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:N},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(N.statusBar)}},{key:"template",get:function(){return L.a}},{key:"lang",get:function(){return"migrationWizard.statusBar"}},{key:"appLinks",get:function(){var t=this.options,e=t.nextAppLink,n=t.backAppLink,o={".applink-next":e};return n&&(o[".applink-back"]=n),o}}])&&A(e.prototype,n),o&&A(e,o),i}(o.a.Component),K=n(5),Z=n(305),F=n.n(Z),Y=n(1393),J=n.n(Y),X=n(1080);function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Q(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function tt(t,e){return(tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function et(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=ot(t);if(e){var r=ot(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return nt(this,n)}}function nt(t,e){return!e||"object"!==q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ot(t){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tt(t,e)}(l,t);var e,n,o,r=et(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{key:"initialize",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),O.a.MIGRATION_VIDEO_LIST),this.selectedVideoService=K.a.getInstance(i.x.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")!==w.a.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 t=this.viewModel.get("".concat(this.getCheckboxId()));t?this.selectedVideoService.addSelectedVideos(this.model,this.options.folderChord):b.isUndefined(t)||this.selectedVideoService.removeSelectedVideos(this.model,this.options.folderChord)}}},{key:"shouldRender",value:function(){return!this.model.get("hidden")}},{key:"renderCheckbox",value:function(){var t=this.hasBeenMigrated(),e=t?" ".concat(F.a.faded):"",n=this.model.get("selected")||this.model.get("checkedForMigration")||t;this.showChildView("bulkCheckbox",new X.a({checked:n,checkboxClassName:e,disabled:t,key:this.getCheckboxKey(),itemId:this.getCheckboxId(),type:O.a.MIGRATION_VIDEO_LIST,className:"".concat(F.a.bulkCheckbox," position-relative d-inline-block")}))}},{key:"onBeforeRender",value:function(){return this.shouldRender()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:F.a},this.options),{migrated:this.hasBeenMigrated(),views:this.model.get("viewsLast3Years")})}},{key:"onRender",value:function(){this.renderCheckbox()}},{key:"template",get:function(){return J.a}},{key:"name",get:function(){return"MigrationVideoItemComponent"}},{key:"className",get:function(){if(this.shouldRender())return"col-12 py-1 ".concat(F.a.videoRow)}},{key:"lang",get:function(){return"migrationWizard.migrationVideoItem"}},{key:"appLinks",get:function(){return{".applink-show":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,args:[this.model.get("trackingCode")]},".applink-remigrate":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.REMIGRATE_VIDEO,args:[this.model.get("id").toString(),this.model.get("masterId")&&this.model.get("masterId").toString(),this.model.get("categoryChord")]}}}}])&&Q(e.prototype,n),o&&Q(e,o),l}(o.a.Component),it=n(3),lt=n(1143),at=n(1394),ut=n.n(at);function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=dt(t);if(e){var r=dt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ht(this,n)}}function ht(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(l,t);var e,n,o,r=pt(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{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(i.e.MIGRATION,i.i.MigrationWizard.SORT_VIDEOS,this.sort),this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.TOGGLE_MIGRATED,this.toggleMigrated)}},{key:"toggleMigrated",value:function(t){this.collection&&0!==this.collection.length&&(this.collection=lt.a.toggleMigrated(this.collection,t),this.render())}},{key:"sort",value:function(t){0!==this.collection.length&&(this.sortedBy=this.sortedBy===t?void 0:t,this.collection=lt.a.sortVideos(this.collection,t,this.sortedBy===t),this.renderVideoList())}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new re({text:it.a.getPhrase(this.lang,"noVideos")}))}},{key:"renderSortingRow",value:function(){this.showChildView("videoListSort",new D({collection:this.collection,folderChord:this.options.folderChord,searchTerm:this.options.searchTerm,channelName:this.options.channelName}))}},{key:"renderVideoList",value:function(){this.showChildView("videoList",new xt({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 ut.a}},{key:"lang",get:function(){return"migrationWizard.videoList"}}])&&st(e.prototype,n),o&&st(e,o),l}(o.a.Component),gt=n(1395),bt=n.n(gt);function mt(t){return(mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function kt(t,e){return(kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Ct(t);if(e){var r=Ct(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return wt(this,n)}}function wt(t,e){return!e||"object"!==mt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ct(t){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kt(t,e)}(i,t);var e,n,o,r=Ot(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"name",get:function(){return"VideoListCollectionComponent"}},{key:"className",get:function(){return bt.a.videoList}},{key:"childView",get:function(){return rt}},{key:"childViewOptions",get:function(){return{folderChord:this.options.folderChord,searchTerm:this.getOption("searchTerm"),supportSiteUrl:this.options.supportSiteUrl}}}])&&vt(e.prototype,n),o&&vt(e,o),i}(o.a.ComponentCollection),Rt=n(81),St=n(1396),_t=n.n(St),Et=n(1397),jt=n.n(Et);function It(t){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Tt(t,e){return(Tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Vt(t);if(e){var r=Vt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Dt(this,n)}}function Dt(t,e){return!e||"object"!==It(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tt(t,e)}(l,t);var e,n,o,r=Mt(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{key:"viewOptions",value:function(){return{styles:_t.a,learnMoreUrl:this.getLearnMoreUrl()}}},{key:"getLearnMoreUrl",value:function(){var t=this.config.get("supportSiteUrl");return Rt.a.safeUrlConcat(t,i.y.PUBLISHER_ARCHIVE)}},{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(_t.a.banner)}},{key:"lang",get:function(){return"migrationWizard.banner"}},{key:"props",get:function(){return["config"]}},{key:"template",get:function(){return jt.a}}])&&Pt(e.prototype,n),o&&Pt(e,o),l}(o.a.Component),Nt=n(1398),Bt=n.n(Nt),At=n(1399),Wt=n.n(At);function zt(t){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ut(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ht(t,e){return(Ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Ft(t);if(e){var r=Ft(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Zt(this,n)}}function Zt(t,e){return!e||"object"!==zt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ft(t){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ht(t,e)}(i,t);var e,n,o,r=Kt(i);function i(){return Gt(this,i),r.apply(this,arguments)}return e=i,(n=[{key:"viewOptions",value:function(){return{styles:Bt.a,folder:this.model.get("folderChord").split("->").join(" / "),videoCount:this.model.get("count")}}},{key:"name",get:function(){return"SelectedVideoItemComponent"}},{key:"template",get:function(){return Wt.a}},{key:"lang",get:function(){return"migrationWizard.selectedVideoItem"}},{key:"className",get:function(){return"ml-2 pt-1"}}])&&Ut(e.prototype,n),o&&Ut(e,o),i}(o.a.Component),Jt=n(1400),$t=n(1401),Xt=n.n($t);function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function te(t,e){return(te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ee(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=oe(t);if(e){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(t,e){return!e||"object"!==qt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function oe(t){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var re=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&te(t,e)}(i,t);var e,n,o,r=ee(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"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(Jt.videoList)}},{key:"template",get:function(){return Xt.a}}])&&Qt(e.prototype,n),o&&Qt(e,o),i}(o.a.Component),ie=n(1402),le=n.n(ie),ae=n(1403),ue=n.n(ae);function ce(t){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function se(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function fe(t,e){return(fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=de(t);if(e){var r=de(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return he(this,n)}}function he(t,e){return!e||"object"!==ce(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fe(t,e)}(i,t);var e,n,o,r=pe(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return{styles:le.a,background:this.options.backgroundClass,progress:this.options.percentage}}},{key:"update",value:function(){var t=this.getUI("progressBar"),e=this.getUI("progressText");t&&t.get(0)&&$(t.get(0)).css("width","".concat(this.model.get("percentage"),"%")),e&&e.get(0)&&$(e.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 ue.a}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}}])&&se(e.prototype,n),o&&se(e,o),i}(o.a.Component),ge=n(1141),be=n(1203),me=n(1404),ve=n.n(me);function ke(t){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function we(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ce(t,e){return(Ce=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Se(t);if(e){var r=Se(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Re(this,n)}}function Re(t,e){return!e||"object"!==ke(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ce(t,e)}(a,t);var e,n,r,l=xe(a);function a(){var t;return Oe(this,a),(t=l.apply(this,arguments)).buttonDisabled=!0,t}return e=a,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=K.a.getInstance(i.g.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(i.e.MIGRATION,"get:migration:report:options",this.render)}},{key:"onClickOptionsContainer",value:function(t){t.stopPropagation()}},{key:"onToggleMigratedOption",value:function(){var t=this.reportOptions[C.d.Migrated];t.selected=!t.selected,this.updateButton()}},{key:"onToggleRemainingOption",value:function(){var t=this.reportOptions[C.d.Remaining];t.selected=!t.selected,this.updateButton()}},{key:"onToggleErroredOption",value:function(){var t=this.reportOptions[C.d.Errored];t.selected=!t.selected,this.updateButton()}},{key:"onToggleContentMatchedOption",value:function(){var t=this.reportOptions[C.d.ContentMatched];t.selected=!t.selected,this.updateButton()}},{key:"onClickSubmit",value:function(){this.buttonDisabled||o.a.AppLinkHelper.trigger({application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.GENERATE_CSV_REPORT,params:{options:be.a.filterSelectedOptions(this.reportOptions)}})}},{key:"updateButton",value:function(){var t=this.getUI("generateReportBtn");be.a.filterSelectedOptions(this.reportOptions).length?(this.buttonDisabled=!1,t.removeAttr("disabled")):(this.buttonDisabled=!0,t.attr("disabled","disabled"))}},{key:"fetchMigrationReportOptions",value:function(){var t=this;this.migrationVideoDataService.getMigrationReportOptions((function(e){t.reportOptions=be.a.processValidReportOptions(e),t.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 ve.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"}}}])&&we(e.prototype,n),r&&we(e,r),a}(o.a.Component),Ee=n(1405),je=n.n(Ee),Ie=n(1406),Pe=n.n(Ie);function Te(t){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Me(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function De(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Ve(t,e){return(Ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Le(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=Be(t);if(e){var r=Be(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ne(this,n)}}function Ne(t,e){return!e||"object"!==Te(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Be(t){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ae=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}(i,t);var e,n,o,r=Le(i);function i(){return Me(this,i),r.apply(this,arguments)}return e=i,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:Pe.a}}},{key:"onRender",value:function(){this.showChildView("options",new _e)}},{key:"name",get:function(){return"GenerateReportButtonComponent"}},{key:"template",get:function(){return je.a}},{key:"lang",get:function(){return"migrationWizard.generateReportButton"}}])&&De(e.prototype,n),o&&De(e,o),i}(o.a.Component);n.d(e,"h",(function(){return g})),n.d(e,"j",(function(){return D})),n.d(e,"k",(function(){return H})),n.d(e,"e",(function(){return rt})),n.d(e,"l",(function(){return yt})),n.d(e,"m",(function(){return xt})),n.d(e,"a",(function(){return Lt})),n.d(e,"i",(function(){return Yt})),n.d(e,"b",(function(){return re})),n.d(e,"f",(function(){return ye})),n.d(e,"g",(function(){return ge.a})),n.d(e,"d",(function(){return _e})),n.d(e,"c",(function(){return Ae}))},1141:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(2),r=n(1201),i=n.n(r),l=n(1202),a=n.n(l);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,o,r=f(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,t)}return e=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:percentage",this.update)}},{key:"viewOptions",value:function(){return{styles:i.a,text:this.options.text,class:this.options.class,percentage:this.options.percentage}}},{key:"onRender",value:function(){this.update()}},{key:"update",value:function(){var t=this.model.get("percentage")||0,e=this.getUI("circle").get(0),n=2*e.r.baseVal.value*Math.PI;e.style.strokeDasharray="".concat(n," ").concat(n),e.style.strokeDashoffset=n;var o=n-t/100*n;e.style.strokeDashoffset=o;var r=this.getUI("text");r&&r.text("".concat(t,"%"))}},{key:"name",get:function(){return"ProgressCircleComponent"}},{key:"template",get:function(){return a.a}},{key:"lang",get:function(){return"migrationWizard.progressCircle"}},{key:"elements",get:function(){return{circle:".progress-circle",text:".progress-circle-text"}}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a.Component)},1142:function(t,e,n){"use strict";var o;n.d(e,"a",(function(){return o})),function(t){t[t.NeedsManualReview=-1]="NeedsManualReview",t[t.HasNotBeenMigrated=0]="HasNotBeenMigrated",t[t.MigratedByUser=1]="MigratedByUser"}(o||(o={}))},1143:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n(1),r=n(2),i=n(87),l=n(1142),a={setChecked:function(t,e,n){t.set("selected",!1);var r=n&&t.get("viewsLast3Years")>0;(o.contains(e,t.id.toString())||r&&0===e.length)&&t.set("selected",!0)},sortVideos:function(t,e,n){var o="name";return t.comparator=function(t,r){t.keys().forEach((function(t){t===e&&(o=t)}));var i=t.get(o),l=r.get(o);return"string"==typeof i&&"string"==typeof l&&(i=i.toLowerCase(),l=l.toLowerCase()),i<l?n?1:-1:i>l?n?-1:1:0},t.sort(),t},toggleMigrated:function(t,e){return t.each((function(t){var n=t.get("migrationStatus")!==l.a.HasNotBeenMigrated,r=t.get("hidden");!o.isUndefined(e)&&n?t.set("hidden",e):n?t.set("hidden",!r):t.set("hidden",!1)})),t},getSelectedVideosCollection:function(t){var e=new r.a.Collection;return Object.keys(t).forEach((function(n){var o=t[n],r=o.id,l=o.folderChord,a=e.findWhere({folderChord:l});a?(a.set("count",a.get("count")+1),a.get("videoIds").push(r)):e.add(new i.f({count:1,folderChord:l,videoIds:[r]}))})),e.each((function(t){t.set("folderChord",t.get("folderChord"))})),e}}},1201:function(t,e,n){t.exports={circle:"_3iX0l",extraText:"_1nYnx",progressCircleContainer:"_2l1Al",progressCircle:"_1RbA5"}},1202:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression;return' <span class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.extraText:i,e))+'">'+a(l(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.circle:i,e))+" "+a(l(null!=(i=null!=e?e.options:e)?i.class:i,e))+'">\r\n <span>\r\n <span class="progress-circle-text">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(u,"progress",{name:"lang",hash:{percentage:null!=(i=null!=e?e.options:e)?i.percentage:i},data:r}))+"</span>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.text:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' </span>\r\n\r\n <svg class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressCircleContainer:i,e))+'">\r\n <circle class="progress-circle '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressCircle:i,e))+'" transform=\'rotate(270 160 0)\' stroke-width="28" fill="transparent" r="150">\r\n </svg>\r\n</div>'},useData:!0})},1203:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var o=n(1),r=n(3),i=n(47);function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a="migrationWizard.utils",u={getReportOptions:function(){var t;return l(t={},i.d.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:r.a.getPhrase(a,"migratedOption")}),l(t,i.d.Remaining,{id:"remaining",type:"homemigrator.le.migration.videos.remaining.report",labelText:r.a.getPhrase(a,"remainingOption")}),l(t,i.d.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:r.a.getPhrase(a,"erroredOption")}),l(t,i.d.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:r.a.getPhrase(a,"linkedOption")}),t},processValidReportOptions:function(t){var e=this.getReportOptions(),n={};return o.each(o.keys(e),(function(r){o.contains(t,e[r].type)&&(n[r]=e[r])})),n},filterSelectedOptions:function(t){return o.filter(o.keys(t),(function(e){return t[e].selected})).map((function(e){return t[e].id}))},getSelectedOptionsText:function(t){var e=this.getReportOptions();return o.filter(o.keys(e),(function(n){return o.contains(t,e[n].id)})).map((function(t){return e[t].labelText}))}}},1390:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing;return'<div class="row '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabContainer:i,e))+' position-relative">\r\n <a class="col-4 p-3 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.publisherArchiveAppLink:i,e))+'"><h1 class="m-0 h5">'+a((n.lang||e&&e.lang||c).call(u,"addVideos",{name:"lang",hash:{},data:r}))+'</h1></a>\r\n <a class="p-3 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.reviewErroredAppLink:i,e))+'"><h1 class="m-0 h5">'+a((n.lang||e&&e.lang||c).call(u,"migrationWarnings",{name:"lang",hash:{},data:r}))+'<span class="ml-2 svg-container d-inline-block '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.warningSvg:i,e))?i:"")+'</span></h1></a>\r\n <div class="generate-report-region"></div>\r\n</div>'},useData:!0})},1391:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{},c=t.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 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sortOption:i,e))+'">\r\n <span>'+a((n.lang||e&&e.lang||c).call(u,"sortTitle",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.sortSvg:i,e))?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 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sortOption:i,e))+'">\r\n <span>'+a((n.lang||e&&e.lang||c).call(u,"sortViews",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=l(null!=(i=null!=e?e.options:e)?i.sortSvg:i,e))?i:"")+"</span>\r\n </span>\r\n</div>"},useData:!0})},1392:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <button class="applink-back btn btn-secondary '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"back",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n"},3:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <span class="align-middle '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.statusBarMessage:i,e))+'">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"videosSelected",{name:"lang",hash:{videoCount:null!=(i=null!=e?e.options:e)?i.videoCount:i,smartCount:null!=(i=null!=e?e.options:e)?i.numberAvailable:i},data:r}))+"\r\n </span>\r\n"},5:function(t,e,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.lambda,u=t.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showBackButton:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' </div>\r\n <div class="col-6">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.showSelected:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")+' </div>\r\n <div class="col-2 text-right">\r\n <button class="applink-next btn btn-primary '+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" '+(null!=(i=n.if.call(l,null!=(i=null!=e?e.options:e)?i.nextDisabled:i,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?i:"")+">\r\n "+u(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"\r\n </button>\r\n </div>\r\n</div>"},useData:!0})},1393:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){return"text-muted"},3:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <a class="applink-remigrate cursor-pointer '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.viewLink:i,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"readd",{name:"lang",hash:{},data:r}))+"</a>\r\n"},5:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return' <a class="applink-show cursor-pointer '+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.viewLink:i,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"details",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l,a=t.lambda,u=t.escapeExpression,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing;return'<div class="row no-gutters">\r\n <div class="col-8">\r\n <div class="bulk-checkbox-region '+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.bulkCheckbox:i,e))+'"></div>\r\n <a class="applink-show align-middle cursor-pointer mt-2 '+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoTitle:i,e))+" "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.migrated:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+u("function"==typeof(l=null!=(l=n.name||(null!=e?e.name:e))?l:s)?l.call(c,{name:"name",hash:{},data:r}):l)+'</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(c,null!=(i=null!=e?e.options:e)?i.migrated:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.program(5,r,0),data:r}))?i:"")+' <div class="'+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.viewCount:i,e))+'">\r\n <span>\r\n '+u((n.lang||e&&e.lang||s).call(c,"views",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?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})},1394:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="video-sorting-region"></div>\r\n<div class="video-list-region"></div>'},useData:!0})},1395:function(t,e,n){t.exports={videoList:"_3RFYO"}},1396:function(t,e,n){t.exports={banner:"O5CMF",learnMore:"MjcUE"}},1397:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,u=t.escapeExpression,c=t.lambda;return'<span class="text-white mr-1">'+u((n.lang||e&&e.lang||a).call(l,"banner",{name:"lang",hash:{},data:r}))+'</span>\r\n<a href="'+u(c(null!=(i=null!=e?e.options:e)?i.learnMoreUrl:i,e))+'" class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.learnMore:i,e))+'" target="_blank">'+u((n.lang||e&&e.lang||a).call(l,"learnMore",{name:"lang",hash:{},data:r}))+"</a>"},useData:!0})},1398:function(t,e,n){t.exports={category:"BSPKV"}},1399:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"selectedVideos",{name:"lang",hash:{folder:null!=(i=null!=e?e.options:e)?i.folder:i,className:null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.category:i,smartCount:null!=(i=null!=e?e.options:e)?i.videoCount:i},data:r}))?i:""},useData:!0})},1400:function(t,e,n){t.exports={videoList:"_3TgUv"}},1401:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return'<h3 class="m-0">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</h3>"},useData:!0})},1402:function(t,e,n){t.exports={progressBarContainter:"_1aNlZ",progressBar:"_325nt"}},1403:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression;return'<div class="row">\r\n <div class="col-11 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressBarContainter:i,e))+' pl-0">\r\n <div class="progress '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressBar:i,e))+'">\r\n <div class="progress-bar '+a(l(null!=(i=null!=e?e.options:e)?i.background:i,e))+" "+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressBar:i,e))+'" role="progressbar" aria-valuenow="'+a(l(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'" 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">'+a(l(null!=(i=null!=e?e.options:e)?i.progress:i,e))+"%</span>\r\n </div>\r\n</div>\r\n\r\n"},useData:!0})},1404:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i=t.lambda,l=t.escapeExpression;return' <div class="d-flex py-1">\r\n <div class="custom-control custom-checkbox">\r\n <input id="'+l(i(null!=e?e.id:e,e))+'-option" name="checkbox-'+l(i(null!=e?e.id:e,e))+'" type="checkbox" class="custom-control-input cursor-pointer">\r\n <label class="custom-control-label cursor-pointer" for="'+l(i(null!=e?e.id:e,e))+'-option"> </label>\r\n </div>\r\n <label for="'+l(i(null!=e?e.id:e,e))+'-option">'+l(i(null!=e?e.labelText:e,e))+"</label>\r\n </div> \r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,u=t.escapeExpression;return'<h1 class="h5 py-1 mx-2">'+u((n.lang||e&&e.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h1>\r\n<div class="dropdown-divider"></div>\r\n<p class="m-2 mt-0">'+u((n.lang||e&&e.lang||a).call(l,"options",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n<div class="mx-2 options">\r\n'+(null!=(i=n.each.call(l,null!=(i=null!=e?e.options:e)?i.reportOptions:i,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.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>'+u((n.lang||e&&e.lang||a).call(l,"generate",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>"},useData:!0})},1405:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,l=t.escapeExpression;return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="'+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.generateReport:i,e))+' mr-2"\r\n>\r\n <div class="btn btn-link border px-2 my-2">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"generateReport",{name:"lang",hash:{},data:r}))+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},1406:function(t,e,n){t.exports={generateReport:"_2PRgW"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-description/VideoDescription.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-description/VideoDescriptionComponent.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-description/video-description.scss","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-preview/VideoPreview.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-preview/VideoPreviewComponent.ts"],"names":[],"mappings":"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","file":"scripts/6.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.descriptionWrapper : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"description \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.description : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.expandable : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(4, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"</p>\\r\\n </div>\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1), depth0)) != null ? stack1 : \"\")\n + \"<span class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.showMoreEllipsis : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.hideEllipsis : stack1), depth0))\n + \"\\\">... \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"showMore\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1), depth0)) != null ? stack1 : \"\")\n + \"<span class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.singleEllipsis : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.hideEllipsis : stack1), depth0))\n + \"\\\">...</span>\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;\n\n return \" <p class=\\\"\"\n + container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.description : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1), depth0)) != null ? stack1 : \"\")\n + \"</p>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.truncate : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(6, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { TextHelper } from 'shared/utils';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport VideoDescriptionTemplate from './VideoDescription.hbs';\r\nimport styles from './video-description.scss';\r\n\r\nexport enum VideoDescriptionTruncationSize {\r\n Small = 'sm',\r\n Large = 'lg'\r\n}\r\n\r\nconst VideoDescriptionTruncationLineNumbers: { [index: string]: number } = {\r\n [VideoDescriptionTruncationSize.Small]: 3,\r\n [VideoDescriptionTruncationSize.Large]: 5\r\n};\r\n\r\ninterface VideoDescriptionComponentOptions extends Core.ComponentOptions {\r\n truncate?: boolean;\r\n allowExpand?: boolean;\r\n size?: VideoDescriptionTruncationSize.Small | VideoDescriptionTruncationSize.Large;\r\n linkify?: boolean;\r\n highlighter?: boolean;\r\n}\r\n\r\n/**\r\n * A single line of text = 0.875rem (14px) * 1.5 (line-height) = 21px.\r\n * If we change either the line-height or base font size, this number will \r\n * likely need to be updated too.\r\n */\r\nconst LINE_HEIGHT: number = 21;\r\n\r\nexport class VideoDescriptionComponent extends Core.Component {\r\n public options: VideoDescriptionComponentOptions;\r\n private showingMore: boolean = false;\r\n\r\n constructor(options: VideoDescriptionComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoDescriptionComponent';\r\n }\r\n\r\n public get template(): any {\r\n return VideoDescriptionTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared.videoDescription';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n size: 'sm'\r\n };\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n description: `.description`,\r\n ellipsis: this.options.allowExpand ? `.${styles.showMoreEllipsis}` : `.${styles.singleEllipsis}`,\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n [`click .${styles.showMoreEllipsis}`]: 'onClickShowMore'\r\n };\r\n }\r\n\r\n private onClickShowMore(e: JQuery.Event): void {\r\n e.preventDefault();\r\n this.showingMore ? this.showLessDescription() : this.showMoreDescription();\r\n }\r\n\r\n private getDescription(): string {\r\n if (this.options.linkify)\r\n return TextHelper.linkifyText(TextHelper.escapeExpression(this.model.get('description')));\r\n\r\n if (this.options.highlighter)\r\n return TextHelper.wordsHighlighter(TextHelper.escapeExpression(this.model.get('description')), this.model.get('_matchedWords'));\r\n }\r\n\r\n private getDescriptionElements(): ObjectHash {\r\n const descriptionTextEl = this.getUI('description');\r\n const ellipsisEl = this.getUI('ellipsis');\r\n\r\n return { descriptionTextEl, ellipsisEl };\r\n }\r\n\r\n private showMoreDescription(): void {\r\n const { descriptionTextEl, ellipsisEl } = this.getDescriptionElements();\r\n\r\n descriptionTextEl\r\n .removeClass(styles.truncateLarge)\r\n .addClass(styles.open);\r\n\r\n ellipsisEl.text(LanguageService.getPhrase(this.lang, 'showLess'));\r\n\r\n this.showingMore = true;\r\n }\r\n\r\n private showLessDescription(): void {\r\n const { descriptionTextEl, ellipsisEl } = this.getDescriptionElements();\r\n\r\n let truncationClass;\r\n if (this.options.size === VideoDescriptionTruncationSize.Small) truncationClass = 'truncateSmall';\r\n if (this.options.size === VideoDescriptionTruncationSize.Large) truncationClass = 'truncateLarge';\r\n descriptionTextEl.addClass(styles[truncationClass]);\r\n\r\n ellipsisEl\r\n .text(this.options.allowExpand ? `... ${LanguageService.getPhrase(this.lang, 'showMore')}` : '...')\r\n .removeClass(styles.hideEllipsis)\r\n .addClass(styles.showEllipsis);\r\n\r\n this.showingMore = false;\r\n }\r\n\r\n private truncateDescription(): void {\r\n if (!this.options.truncate)\r\n return;\r\n\r\n const { descriptionTextEl } = this.getDescriptionElements();\r\n const maxLines = VideoDescriptionTruncationLineNumbers[this.options.size];\r\n if (descriptionTextEl.height() <= (LINE_HEIGHT * maxLines))\r\n return;\r\n\r\n this.showLessDescription();\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n truncate: this.options.truncate,\r\n expandable: this.options.allowExpand,\r\n description: this.getDescription()\r\n };\r\n }\r\n\r\n public onAttach(): void {\r\n this.truncateDescription();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"columnNames\":\"cv--columnNames--1a1Re\",\"descriptionWrapper\":\"cv--descriptionWrapper--2MZC5\",\"description\":\"cv--description--3U9j9\",\"ellipsis\":\"cv--ellipsis--1YjUg\",\"singleEllipsis\":\"cv--singleEllipsis--3SNtn\",\"showMoreEllipsis\":\"cv--showMoreEllipsis--xy3i9\",\"showEllipsis\":\"cv--showEllipsis--1_L9t\",\"hideEllipsis\":\"cv--hideEllipsis--TCdgP\",\"open\":\"cv--open--18ojI\",\"truncateSmall\":\"cv--truncateSmall--nLuVF\",\"truncateLarge\":\"cv--truncateLarge--sEELY\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"video-player-region cursor-pointer responsize-img\\\">\\r\\n <div class=\\\"thumbnail-region\\\"></div>\\r\\n</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { AnalyticsOptions, EntityType } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\nimport { ImageSize } from 'libs/shared/enums/Images';\r\nimport { ThumbnailComponent } from 'libs/shared/legacy/components/thumbnail/ThumbnailComponent';\r\n\r\nimport { LazyLoadBehavior } from 'shared/behaviors';\r\nimport { Video } from 'shared/models/Video';\r\nimport { RadioChannelHelper } from 'shared/utils';\r\nimport { LazyLoadMinBrowserSupportVersion } from 'shared/constants';\r\nimport { WebPlayerComponent } from 'shared/components/web-player/WebPlayerComponent';\r\n\r\nimport VideoPreviewTemplate from './VideoPreview.hbs';\r\n\r\ninterface VideoPreviewComponentOptions extends Core.ComponentOptions<Video> {\r\n webPlayerUrl: string;\r\n analyticsOptions?: AnalyticsOptions;\r\n captureAnalytics?: boolean;\r\n}\r\n\r\nexport class VideoPreviewComponent extends Core.Component<Video> {\r\n public options: VideoPreviewComponentOptions;\r\n private player: WebPlayerComponent;\r\n\r\n constructor(options: VideoPreviewComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.bindListeners();\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoPreviewComponent';\r\n }\r\n\r\n public get template(): string {\r\n return VideoPreviewTemplate;\r\n }\r\n\r\n public get instanceChannelName(): string {\r\n return RadioChannelHelper.generateUniqueChannelName(this);\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n captureAnalytics: true\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: LazyLoadBehavior,\r\n selector: '.lazy-img',\r\n callback: () => {\r\n const channel = Radio.channel(this.instanceChannelName);\r\n channel.trigger('show:play:icon');\r\n },\r\n minBrowserSupportVersion: LazyLoadMinBrowserSupportVersion\r\n }];\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n player: {\r\n el: '.video-player-region',\r\n replaceElement: false\r\n },\r\n thumbnail: {\r\n el: '.thumbnail-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n click: 'onClick'\r\n };\r\n }\r\n\r\n private bindListeners(): void {\r\n if (!this.options.channelName)\r\n return;\r\n\r\n this.listenTo(this.options.channelName, 'update:chapter:time', this.onUpdateWebplayer);\r\n }\r\n\r\n private onUpdateWebplayer(time: number): void {\r\n /**\r\n * Where the webplayer hasn't been set up yet, we want to render it then jump to \r\n * the chapter's timepoint immediately once it has been initialised.\r\n */\r\n if (!this.player) {\r\n this.listenToOnce(this.options.channelName, 'webplayer:loaded', _.bind(this.seekToChapter, this, time));\r\n this.renderVideoPreview();\r\n return;\r\n }\r\n\r\n this.seekToChapter(time);\r\n }\r\n\r\n private seekToChapter(time: number): void {\r\n this.player.seekTo(time);\r\n }\r\n\r\n private onClick(): void {\r\n if (this.player) return;\r\n\r\n this.renderVideoPreview();\r\n }\r\n\r\n private renderThumbnail(): void {\r\n this.showChildView('thumbnail', new ThumbnailComponent({\r\n model: this.model,\r\n thumbnailOptions: { size: ImageSize.Medium },\r\n playIcon: true,\r\n lazyload: true,\r\n channelName: this.instanceChannelName\r\n }));\r\n }\r\n\r\n private renderVideoPreview(): void {\r\n this.player = new WebPlayerComponent({\r\n model: this.model,\r\n webPlayerUrl: this.options.webPlayerUrl,\r\n parentChannelName: this.options.channelName,\r\n autoplay: true,\r\n analyticsOptions: AnalyticsHelper.mergeOptions(this.options.analyticsOptions, {\r\n entity: EntityType.Video\r\n }),\r\n captureAnalytics: this.options.captureAnalytics\r\n });\r\n\r\n this.showChildView('player', this.player);\r\n }\r\n\r\n public onRender(): void {\r\n this.renderThumbnail();\r\n }\r\n}\r\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/video-description/VideoDescription.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/video-description/VideoDescriptionComponent.ts","webpack://@clickview/library-editor/./src/shared/components/video-description/video-description.scss?921b","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/video-preview/VideoPreview.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/video-preview/VideoPreviewComponent.ts"],"names":[],"mappings":"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","file":"scripts/6.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.descriptionWrapper : stack1), depth0))\n + \"\\\">\\r\\n <p class=\\\"description \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.description : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.expandable : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(4, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"</p>\\r\\n </div>\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1), depth0)) != null ? stack1 : \"\")\n + \"<span class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.showMoreEllipsis : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.hideEllipsis : stack1), depth0))\n + \"\\\">... \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"showMore\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</span>\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1), depth0)) != null ? stack1 : \"\")\n + \"<span class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.singleEllipsis : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.hideEllipsis : stack1), depth0))\n + \"\\\">...</span>\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;\n\n return \" <p class=\\\"\"\n + container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.description : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1), depth0)) != null ? stack1 : \"\")\n + \"</p>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.truncate : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(6, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { TextHelper } from 'shared/utils';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport VideoDescriptionTemplate from './VideoDescription.hbs';\r\nimport styles from './video-description.scss';\r\n\r\nexport enum VideoDescriptionTruncationSize {\r\n Small = 'sm',\r\n Large = 'lg'\r\n}\r\n\r\nconst VideoDescriptionTruncationLineNumbers: { [index: string]: number } = {\r\n [VideoDescriptionTruncationSize.Small]: 3,\r\n [VideoDescriptionTruncationSize.Large]: 5\r\n};\r\n\r\ninterface VideoDescriptionComponentOptions extends Core.ComponentOptions {\r\n truncate?: boolean;\r\n allowExpand?: boolean;\r\n size?: VideoDescriptionTruncationSize.Small | VideoDescriptionTruncationSize.Large;\r\n linkify?: boolean;\r\n highlighter?: boolean;\r\n}\r\n\r\n/**\r\n * A single line of text = 0.875rem (14px) * 1.5 (line-height) = 21px.\r\n * If we change either the line-height or base font size, this number will \r\n * likely need to be updated too.\r\n */\r\nconst LINE_HEIGHT: number = 21;\r\n\r\nexport class VideoDescriptionComponent extends Core.Component {\r\n public options: VideoDescriptionComponentOptions;\r\n private showingMore: boolean = false;\r\n\r\n constructor(options: VideoDescriptionComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoDescriptionComponent';\r\n }\r\n\r\n public get template(): any {\r\n return VideoDescriptionTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared.videoDescription';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n size: 'sm'\r\n };\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n description: `.description`,\r\n ellipsis: this.options.allowExpand ? `.${styles.showMoreEllipsis}` : `.${styles.singleEllipsis}`,\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n [`click .${styles.showMoreEllipsis}`]: 'onClickShowMore'\r\n };\r\n }\r\n\r\n private onClickShowMore(e: JQuery.Event): void {\r\n e.preventDefault();\r\n this.showingMore ? this.showLessDescription() : this.showMoreDescription();\r\n }\r\n\r\n private getDescription(): string {\r\n if (this.options.linkify)\r\n return TextHelper.linkifyText(TextHelper.escapeExpression(this.model.get('description')));\r\n\r\n if (this.options.highlighter)\r\n return TextHelper.wordsHighlighter(TextHelper.escapeExpression(this.model.get('description')), this.model.get('_matchedWords'));\r\n }\r\n\r\n private getDescriptionElements(): ObjectHash {\r\n const descriptionTextEl = this.getUI('description');\r\n const ellipsisEl = this.getUI('ellipsis');\r\n\r\n return { descriptionTextEl, ellipsisEl };\r\n }\r\n\r\n private showMoreDescription(): void {\r\n const { descriptionTextEl, ellipsisEl } = this.getDescriptionElements();\r\n\r\n descriptionTextEl\r\n .removeClass(styles.truncateLarge)\r\n .addClass(styles.open);\r\n\r\n ellipsisEl.text(LanguageService.getPhrase(this.lang, 'showLess'));\r\n\r\n this.showingMore = true;\r\n }\r\n\r\n private showLessDescription(): void {\r\n const { descriptionTextEl, ellipsisEl } = this.getDescriptionElements();\r\n\r\n let truncationClass;\r\n if (this.options.size === VideoDescriptionTruncationSize.Small) truncationClass = 'truncateSmall';\r\n if (this.options.size === VideoDescriptionTruncationSize.Large) truncationClass = 'truncateLarge';\r\n descriptionTextEl.addClass(styles[truncationClass]);\r\n\r\n ellipsisEl\r\n .text(this.options.allowExpand ? `... ${LanguageService.getPhrase(this.lang, 'showMore')}` : '...')\r\n .removeClass(styles.hideEllipsis)\r\n .addClass(styles.showEllipsis);\r\n\r\n this.showingMore = false;\r\n }\r\n\r\n private truncateDescription(): void {\r\n if (!this.options.truncate)\r\n return;\r\n\r\n const { descriptionTextEl } = this.getDescriptionElements();\r\n const maxLines = VideoDescriptionTruncationLineNumbers[this.options.size];\r\n if (descriptionTextEl.height() <= (LINE_HEIGHT * maxLines))\r\n return;\r\n\r\n this.showLessDescription();\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n truncate: this.options.truncate,\r\n expandable: this.options.allowExpand,\r\n description: this.getDescription()\r\n };\r\n }\r\n\r\n public onAttach(): void {\r\n this.truncateDescription();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"columnNames\":\"cv--columnNames--1a1Re\",\"descriptionWrapper\":\"cv--descriptionWrapper--2MZC5\",\"description\":\"cv--description--3U9j9\",\"ellipsis\":\"cv--ellipsis--1YjUg\",\"singleEllipsis\":\"cv--singleEllipsis--3SNtn\",\"showMoreEllipsis\":\"cv--showMoreEllipsis--xy3i9\",\"showEllipsis\":\"cv--showEllipsis--1_L9t\",\"hideEllipsis\":\"cv--hideEllipsis--TCdgP\",\"open\":\"cv--open--18ojI\",\"truncateSmall\":\"cv--truncateSmall--nLuVF\",\"truncateLarge\":\"cv--truncateLarge--sEELY\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"video-player-region cursor-pointer responsize-img\\\">\\r\\n <div class=\\\"thumbnail-region\\\"></div>\\r\\n</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { AnalyticsOptions, EntityType } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\nimport { ImageSize } from 'libs/shared/enums/Images';\r\nimport { ThumbnailComponent } from 'libs/shared/legacy/components/thumbnail/ThumbnailComponent';\r\n\r\nimport { LazyLoadBehavior } from 'shared/behaviors';\r\nimport { Video } from 'shared/models/Video';\r\nimport { RadioChannelHelper } from 'shared/utils';\r\nimport { LazyLoadMinBrowserSupportVersion } from 'shared/constants';\r\nimport { WebPlayerComponent } from 'shared/components/web-player/WebPlayerComponent';\r\n\r\nimport VideoPreviewTemplate from './VideoPreview.hbs';\r\n\r\ninterface VideoPreviewComponentOptions extends Core.ComponentOptions<Video> {\r\n webPlayerUrl: string;\r\n analyticsOptions?: AnalyticsOptions;\r\n captureAnalytics?: boolean;\r\n}\r\n\r\nexport class VideoPreviewComponent extends Core.Component<Video> {\r\n public options: VideoPreviewComponentOptions;\r\n private player: WebPlayerComponent;\r\n\r\n constructor(options: VideoPreviewComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.bindListeners();\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoPreviewComponent';\r\n }\r\n\r\n public get template(): string {\r\n return VideoPreviewTemplate;\r\n }\r\n\r\n public get instanceChannelName(): string {\r\n return RadioChannelHelper.generateUniqueChannelName(this);\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n captureAnalytics: true\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: LazyLoadBehavior,\r\n selector: '.lazy-img',\r\n callback: () => {\r\n const channel = Radio.channel(this.instanceChannelName);\r\n channel.trigger('show:play:icon');\r\n },\r\n minBrowserSupportVersion: LazyLoadMinBrowserSupportVersion\r\n }];\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n player: {\r\n el: '.video-player-region',\r\n replaceElement: false\r\n },\r\n thumbnail: {\r\n el: '.thumbnail-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n click: 'onClick'\r\n };\r\n }\r\n\r\n private bindListeners(): void {\r\n if (!this.options.channelName)\r\n return;\r\n\r\n this.listenTo(this.options.channelName, 'update:chapter:time', this.onUpdateWebplayer);\r\n }\r\n\r\n private onUpdateWebplayer(time: number): void {\r\n /**\r\n * Where the webplayer hasn't been set up yet, we want to render it then jump to \r\n * the chapter's timepoint immediately once it has been initialised.\r\n */\r\n if (!this.player) {\r\n this.listenToOnce(this.options.channelName, 'webplayer:loaded', _.bind(this.seekToChapter, this, time));\r\n this.renderVideoPreview();\r\n return;\r\n }\r\n\r\n this.seekToChapter(time);\r\n }\r\n\r\n private seekToChapter(time: number): void {\r\n this.player.seekTo(time);\r\n }\r\n\r\n private onClick(): void {\r\n if (this.player) return;\r\n\r\n this.renderVideoPreview();\r\n }\r\n\r\n private renderThumbnail(): void {\r\n this.showChildView('thumbnail', new ThumbnailComponent({\r\n model: this.model,\r\n thumbnailOptions: { size: ImageSize.Medium },\r\n playIcon: true,\r\n lazyload: true,\r\n channelName: this.instanceChannelName\r\n }));\r\n }\r\n\r\n private renderVideoPreview(): void {\r\n this.player = new WebPlayerComponent({\r\n model: this.model,\r\n webPlayerUrl: this.options.webPlayerUrl,\r\n parentChannelName: this.options.channelName,\r\n autoplay: true,\r\n analyticsOptions: AnalyticsHelper.mergeOptions(this.options.analyticsOptions, {\r\n entity: EntityType.Video\r\n }),\r\n captureAnalytics: this.options.captureAnalytics\r\n });\r\n\r\n this.showChildView('player', this.player);\r\n }\r\n\r\n public onRender(): void {\r\n this.renderThumbnail();\r\n }\r\n}\r\n"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[60],{
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[60],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,i=c(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&s(t.prototype,n),r&&s(t,r),l}(r.a.Model)},1207:function(e,t,n){"use strict";var r=n(3),o="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return r.a.getPhrase(o,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return r.a.getPhrase(o,"selectFolder")}},a={message:[{required:!0,msg:function(){return r.a.getPhrase("staffRequests.utils","provideMessage")}}]};n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))},1352:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=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||u).call(s,"notAddedToLibrary",{name:"lang",hash:{},data:o}))+'</p>\r\n<div class="form-group">\r\n <label for="message">'+a((n.lang||t&&t.lang||u).call(s,"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:o}))+'</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,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1460:function(e,t,n){"use strict";n.r(t),n.d(t,"RejectStaffRequestView",(function(){return T}));var r=n(6),o=n(2),i=n(30),a=n(5),s=n(4),u=n(42),c=n(282),l=n(243),f=n(1051),d=n(0),p=n(12),h=n(3),y=n(1207),g=n(1352),m=n.n(g);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 v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(R,e);var t,n,g,b=S(R);function R(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),b.call(this,e)}return t=R,(n=[{key:"initialize",value:function(){this.staffRequestDataService=a.a.getInstance(d.g.StaffRequests,this),this.getViewModel(),this.bindListeners()}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){var e="".concat(d.f.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(d.e.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(d.e.STAFF_REQUEST,"".concat(e,":error"),this.redirectToHome);var t="".concat(d.f.STAFF_REQUESTS,":").concat(this.options.requestId,":update");this.listenTo(d.e.STAFF_REQUEST,"".concat(t,":sync"),this.redirectToHome),this.listenTo(d.e.STAFF_REQUEST,"".concat(t,":error"),this.redirectToHome),this.listenTo(this.viewModel,"change",this.onChange)}},{key:"getViewModel",value:function(){this.viewModel=i.a.get(this.viewModelName),this.viewModel.addValidation(y.b)}},{key:"getBtnTooltipOptions",value:function(){if(!this.viewModel.isValid())return{title:h.a.getPhrase(this.lang,"provideMessage")}}},{key:"onChange",value:function(){this.spinnerModel.set(l.c.Disabled,!1===this.viewModel.isValid())}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(l.b.ShowSpinner),this.staffRequestDataService.rejectStaffRequest(this.options.requestId,this.viewModel.get("message")),this.logAction())}},{key:"logAction",value:function(){var e={location:s.k.Popup,actionType:s.q.Reject,entity:s.e.StaffRequest,workflowPhase:s.r.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};u.a.logUserAction(t,e)}},{key:"redirectToHome",value:function(){o.a.AppLinkHelper.trigger({application:d.b.STAFF_REQUESTS,action:d.a.StaffRequests.HOME})}},{key:"onBeforeRender",value:function(){this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){r.Validation.bind(this,{model:this.viewModel})}},{key:"name",get:function(){return"RejectStaffRequestView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"staffRequests.rejectStaffRequest"}},{key:"template",get:function(){return m.a}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.requestId)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:h.a.getPhrase(this.lang,"rejectCheck"),size:"modal-md",spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:h.a.getPhrase(this.lang,"reject"),extraButtonClass:"btn-danger",onClick:function(t){return e.onSubmit(t)},tooltip:function(){return e.getBtnTooltipOptions()}}},{behaviorClass:c.f,bindViewModel:!0}]}},{key:"bindings",get:function(){return{"[name=message]":{observe:"message",setOptions:{validate:!0}}}}}])&&v(t.prototype,n),g&&v(t,g),R}(o.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["file://C:/ClickView
|
|
1
|
+
{"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/migration-wizard/enums/FinalisationTaskStatus.ts","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgress.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.ts","webpack://@clickview/library-editor/./src/apps/migration-wizard/views/publish-library-progress/publish-library-progress.scss?2ca9"],"names":[],"mappings":"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","file":"scripts/60.chunk.js","sourcesContent":["export enum FinalisationTaskStatus {\r\n Processing = 1,\r\n Completed = 2,\r\n Queued = 3\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;\n\n return \"<h4 class=\\\"pb-4\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"heading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h4>\\r\\n<div class=\\\"progress-circle-region\\\"></div>\\r\\n<p class=\\\"\"\n + alias4(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.info : stack1), depth0))\n + \" pt-4\\\">\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"body\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n <br>\\r\\n \"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"note\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n</p>\";\n},\"useData\":true});","import { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport { DataServices, AppChannels, Actions } from 'shared/constants';\r\n\r\nimport { MigrationVideoDataService } from 'apps/migration-wizard/services/MigrationVideoDataService';\r\nimport { ProgressCircleComponent } from 'apps/migration-wizard/components';\r\nimport { FinalisationTask } from 'apps/migration-wizard/models';\r\nimport { FinalisationType } from 'apps/migration-wizard/enums/FinalisationType';\r\nimport { FinalisationTaskStatus } from 'apps/migration-wizard/enums/FinalisationTaskStatus';\r\nimport { MigrationRadioChannels } from 'apps/migration-wizard/utils/MigrationRadioChannels';\r\n\r\nimport * as styles from './publish-library-progress.scss';\r\nimport * as PublishLibraryProgressTemplate from './PublishLibraryProgress.hbs';\r\n\r\n/**\r\n * Interval in ms to poll\r\n */\r\nconst pollingInterval = 3000;\r\n\r\nexport class PublishLibraryProgressView extends Core.View {\r\n private pollingStarted: boolean;\r\n private progress: any;\r\n\r\n private migrationVideoDataService: MigrationVideoDataService;\r\n\r\n public initialize(): void {\r\n this.migrationVideoDataService = InstanceManager.getInstance(DataServices.MigrationVideo, this);\r\n\r\n this.viewModel = ViewModelService.get('publish:library:progress', { percentage: 0 });\r\n }\r\n\r\n public get name(): string {\r\n return 'PublishLibraryProgressView';\r\n }\r\n\r\n public get title(): string {\r\n return LanguageService.getPhrase(this.lang, 'title');\r\n }\r\n\r\n public get lang(): string {\r\n return 'migrationWizard.publishLibraryProgress';\r\n }\r\n\r\n public get className(): string {\r\n return `container text-center p-5 bg-white ${styles.migrationBackupContainer} ${styles.backupProgress}`;\r\n }\r\n\r\n public get template(): any {\r\n return PublishLibraryProgressTemplate;\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n progressCircle: {\r\n replaceElement: true,\r\n el: '.progress-circle-region',\r\n },\r\n };\r\n }\r\n\r\n private poll(): void {\r\n this.migrationVideoDataService.getPublishLibrariesProgress(\r\n FinalisationType.Phase2, (progress: FinalisationTask) => {\r\n /**\r\n * This prevents the polling from returning and redirecting back to this view\r\n * if the user has already been directed to backup_complete and is trying\r\n * to progress onto the start view\r\n */\r\n if (this.isDestroyed())\r\n return;\r\n\r\n\r\n if (progress.get('type') !== FinalisationType.Phase2) {\r\n this.progress = 0;\r\n setTimeout(() => this.poll(), pollingInterval);\r\n return;\r\n }\r\n\r\n this.progress = progress.get('progressPercentage') * 100;\r\n\r\n this.setPercentage();\r\n\r\n if (progress.get('status') === FinalisationTaskStatus.Completed) {\r\n this.migrationVideoDataService.clearCacheAndGetCustomerMetadata(() => {\r\n Radio.channel(MigrationRadioChannels.LIBRARY_STATUS)\r\n .trigger('status:changed');\r\n Core.AppLinkHelper.trigger({\r\n application: AppChannels.MIGRATION_WIZARD,\r\n action: Actions.MigrationWizard.PUBLISH_LIBRARY_COMPLETE,\r\n });\r\n });\r\n return;\r\n }\r\n\r\n setTimeout(() => this.poll(), pollingInterval);\r\n });\r\n }\r\n\r\n private setPercentage(): void {\r\n if (!this.progress) return;\r\n\r\n this.viewModel.set({ percentage: Math.round(this.progress) });\r\n }\r\n\r\n private renderProgressCircle(): void {\r\n this.showChildView('progressCircle', new ProgressCircleComponent({\r\n model: this.viewModel,\r\n text: LanguageService.getPhrase(this.lang, 'hasBeenPublished'),\r\n class: styles.progress,\r\n }));\r\n }\r\n\r\n public onRender(): void {\r\n if (!this.pollingStarted) {\r\n this.poll();\r\n this.pollingStarted = true;\r\n }\r\n\r\n this.renderProgressCircle();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"backupProgress\":\"cv--backupProgress--sg8Kg\",\"info\":\"cv--info--2HxTI\",\"progress\":\"cv--progress--hbLuA\",\"migrationBackupContainer\":\"cv--migrationBackupContainer--2lpDI\"};"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[61],{
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[61],{1363:function(n,e,t){var r=t(10);n.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(n,e,t,r,a){n.propertyIsEnumerable;var o,l=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,c=n.escapeExpression,s=n.lambda;return'<div class="p-3 my-3 bg-white text-center">\r\n <h1>'+c((t.lang||e&&e.lang||i).call(l,"uploadVideos",{name:"lang",hash:{},data:a}))+'</h1>\r\n <div class="my-3">\r\n <img src="/images/upload/upload-vid@2x.png" class="'+c(s(null!=(o=null!=(o=null!=e?e.options:e)?o.styles:o)?o.uploadImage:o,e))+'" />\r\n </div>\r\n <div>\r\n <button class="btn btn-primary choose-files">'+c((t.lang||e&&e.lang||i).call(l,"chooseVideo",{name:"lang",hash:{},data:a}))+"</button>\r\n </div>\r\n <div>\r\n <span>"+c((t.lang||e&&e.lang||i).call(l,"dragDrop",{name:"lang",hash:{},data:a}))+'</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>'+c((t.lang||e&&e.lang||i).call(l,"help",{name:"lang",hash:{},data:a}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ul>\r\n <li><a class="info-link" href="'+c(s(null!=(o=null!=e?e.options:e)?o.uploadArticleUrl:o,e))+'" target="_blank">'+c((t.lang||e&&e.lang||i).call(l,"instructionsHeading",{name:"lang",hash:{},data:a}))+'</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="col-8">\r\n <h4>'+c((t.lang||e&&e.lang||i).call(l,"termsHeading",{name:"lang",hash:{},data:a}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ol>\r\n <li>'+c((t.lang||e&&e.lang||i).call(l,"term1",{name:"lang",hash:{},data:a}))+"</li>\r\n <li>"+c((t.lang||e&&e.lang||i).call(l,"term2",{name:"lang",hash:{},data:a}))+"</li>\r\n <li>"+(null!=(o=(t.lang||e&&e.lang||i).call(l,"term3",{name:"lang",hash:{classNames:null!=(o=null!=e?e.options:e)?o.classNames:o,uploadTermsUrl:null!=(o=null!=e?e.options:e)?o.uploadTermsUrl:o},data:a}))?o:"")+"</li>\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},1364:function(n,e,t){n.exports={uploadImage:"_2qNTM"}},1466:function(n,e,t){"use strict";t.r(e),t.d(e,"FileSelectView",(function(){return O}));var r=t(1),a=t(2),o=t(5),l=t(3),i=t(81),c=t(187),s=t(4),u=t(42),p=t(0),f=t(1363),d=t.n(f),h=t(1364),g=t.n(h),y=t(292),m=t(44);function v(n){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function k(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function w(n,e){return(w=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function S(n){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}();return function(){var t,r=_(n);if(e){var a=_(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return U(this,t)}}function U(n,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):e}function _(n){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var O=function(n){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&w(n,e)}(h,n);var e,t,a,f=S(h);function h(){return b(this,h),f.apply(this,arguments)}return e=h,(t=[{key:"initialize",value:function(){this.listenTo(this.channelName,m.a.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=o.a.getInstance(p.x.VideoUpload,this)}},{key:"onFilesSelected",value:function(n,e){this.videoUploadService.addFiles(n),this.logAction(n,e)}},{key:"logAction",value:function(n,e){var t={actionType:s.q.Upload,entity:s.e.Video,location:s.k.VideoUpload,workflowPhase:s.r.Start,descriptor:u.a.mapInteractionType(e)};u.a.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{styles:g.a,uploadArticleUrl:this.config?i.a.safeUrlConcat(this.config.get("supportSiteUrl"),p.y.UPLOAD):"",uploadTermsUrl:this.config?i.a.safeUrlConcat(this.config.get("marketingSiteUrl"),p.r.UploadingUserContent):"",classNames:"info-link"}}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return l.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return d.a}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=r.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:y.a,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"requiredResources",get:function(){return{config:c.b.config}}}])&&k(e.prototype,t),a&&k(e,a),h}(a.a.View)}}]);
|