@clickview/library-editor 1.1.25 → 1.1.26-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -0
- package/dist/css/23.chunk.css +3 -5
- package/dist/css/25.chunk.css +0 -2
- package/dist/css/library-editor-app.css +2 -2
- 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 +4 -1
- 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 +1 -1
- 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/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/flight/enums/RequestStatus.d.ts +6 -0
- package/dist/libs/common/src/react/flight/enums/index.d.ts +1 -0
- package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +22 -0
- package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +4 -0
- package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +29 -0
- package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +15 -0
- package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +3 -0
- package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +8 -0
- package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +4 -0
- package/dist/libs/common/src/react/interfaces/index.d.ts +4 -0
- 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/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 +5 -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 +1 -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/collections/SubtitleCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +9 -1
- package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.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 +3 -0
- package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.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/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-drop/FileDropBehavior.d.ts +1 -1
- package/dist/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-drop/FileDropMaskBehavior.d.ts +1 -1
- package/dist/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-select/FileSelectBehavior.d.ts +1 -1
- package/dist/{projects/library-editor/src/apps/library-editor → libs/shared/src/legacy}/components/file-select/FileSelectComponent.d.ts +1 -2
- package/dist/{projects/library-editor/src/apps/library-editor → libs/shared/src/legacy}/components/file-uploads/FileUploadComponent.d.ts +2 -2
- package/dist/{projects/library-editor/src/apps/library-editor/components/video-resources → libs/shared/src/legacy/components/resource-item}/ResourceItemComponent.d.ts +4 -4
- package/dist/{projects/library-editor/src/apps/library-editor/components/video-subtitles → libs/shared/src/legacy/components/subtitle-item}/SubtitleItemComponent.d.ts +2 -3
- package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +1 -1
- package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +7 -0
- package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
- package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +3 -3
- package/dist/libs/shared/src/utils/MaskHelper.d.ts +1 -1
- package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +9 -0
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +21 -0
- 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/components/status-bar/StatusBarComponent.d.ts +2 -2
- package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +1 -1
- 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/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-65b134af4f.chunk.js} +1 -1
- package/dist/scripts/1-42cd7dafc9.chunk.js +1 -0
- package/dist/scripts/{10-923c4b075a.chunk.js → 10-75e622dc44.chunk.js} +1 -1
- package/dist/scripts/{11-3dec7d2c7e.chunk.js → 11-9f5f0c25dc.chunk.js} +1 -1
- package/dist/scripts/{12-07999b80e0.chunk.js → 12-e5d7fe24d9.chunk.js} +1 -1
- package/dist/scripts/13-2247b585ba.chunk.js +1 -0
- package/dist/scripts/14-76f0d1344e.chunk.js +1 -0
- package/dist/scripts/15-044f3ce266.chunk.js +1 -0
- package/dist/scripts/{16-742a776f88.chunk.js → 16-0ebecead61.chunk.js} +1 -1
- package/dist/scripts/{17-b5e44e8b17.chunk.js → 17-9a2f82453a.chunk.js} +1 -1
- package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-cd7f1d10b5.chunk.js} +1 -1
- package/dist/scripts/{20-732a7a549d.chunk.js → 20-8cabdf4ccb.chunk.js} +1 -1
- package/dist/scripts/{21-0b84d33cef.chunk.js → 21-9dfc314143.chunk.js} +1 -1
- package/dist/scripts/{22-3b2207c8f6.chunk.js → 22-ea1736d37f.chunk.js} +1 -1
- package/dist/scripts/23-c5137083a9.chunk.js +1 -0
- package/dist/scripts/{24-c94049500e.chunk.js → 24-d6b7d3f374.chunk.js} +1 -1
- package/dist/scripts/25-4f3f34d140.chunk.js +1 -0
- package/dist/scripts/{26-e53ba8e00f.chunk.js → 26-b3a2e6bca1.chunk.js} +1 -1
- package/dist/scripts/27-0dd00d8e76.chunk.js +1 -0
- package/dist/scripts/{28-738b88c816.chunk.js → 28-cef433c779.chunk.js} +1 -1
- package/dist/scripts/29-cf9581eef8.chunk.js +1 -0
- package/dist/scripts/{3-6e67dd4b74.chunk.js → 3-02a37512e4.chunk.js} +1 -1
- package/dist/scripts/{30-a1df3e37da.chunk.js → 30-cc04703754.chunk.js} +1 -1
- package/dist/scripts/{31-ce31250e42.chunk.js → 31-92c7d2494b.chunk.js} +1 -1
- package/dist/scripts/32-b8ea5b8dea.chunk.js +1 -0
- package/dist/scripts/33-6da26969d0.chunk.js +1 -0
- package/dist/scripts/34-5469e12196.chunk.js +1 -0
- package/dist/scripts/35-9aae492c3e.chunk.js +1 -0
- package/dist/scripts/36-8849ade3c7.chunk.js +1 -0
- package/dist/scripts/{37-6fa4b8fc60.chunk.js → 37-3b6bf13818.chunk.js} +1 -1
- package/dist/scripts/38-f8f1eeba1f.chunk.js +1 -0
- package/dist/scripts/{39-748eb61732.chunk.js → 39-01d58327ca.chunk.js} +1 -1
- package/dist/scripts/4-eaa7ec4468.chunk.js +1 -0
- package/dist/scripts/{40-2ecbd41570.chunk.js → 40-60f5d582c8.chunk.js} +1 -1
- package/dist/scripts/41-9d3182f53c.chunk.js +1 -0
- package/dist/scripts/{42-3ef41f40f5.chunk.js → 42-390bbda5c5.chunk.js} +1 -1
- package/dist/scripts/{43-49f13dab14.chunk.js → 43-acc9eadde2.chunk.js} +1 -1
- package/dist/scripts/44-8f053335a7.chunk.js +1 -0
- package/dist/scripts/45-a4f9646555.chunk.js +1 -0
- package/dist/scripts/46-6b9fc8453b.chunk.js +1 -0
- package/dist/scripts/{47-56d22af6ba.chunk.js → 47-7c5a3685a5.chunk.js} +1 -1
- package/dist/scripts/{48-e05ab3ecac.chunk.js → 48-469dfae9ba.chunk.js} +1 -1
- package/dist/scripts/{49-4a6c119f58.chunk.js → 49-06756becaf.chunk.js} +1 -1
- package/dist/scripts/5-674db7af1b.chunk.js +1 -0
- package/dist/scripts/{50-3924907655.chunk.js → 50-49475581af.chunk.js} +1 -1
- package/dist/scripts/{51-dca2a9cc86.chunk.js → 51-4adcf4ff0a.chunk.js} +1 -1
- package/dist/scripts/{52-a3c8ed29ca.chunk.js → 52-57782063fd.chunk.js} +1 -1
- package/dist/scripts/{53-d8f0dea552.chunk.js → 53-6f14b50628.chunk.js} +1 -1
- package/dist/scripts/{54-7cdbdcebf9.chunk.js → 54-78c19a2ad8.chunk.js} +1 -1
- package/dist/scripts/{55-a5fa20b497.chunk.js → 55-dceece7f6e.chunk.js} +1 -1
- package/dist/scripts/{56-370078d597.chunk.js → 56-791cbec86d.chunk.js} +1 -1
- package/dist/scripts/{57-0e126120b9.chunk.js → 57-b80d1bf344.chunk.js} +1 -1
- package/dist/scripts/{58-17706ccb46.chunk.js → 58-74a2cc409b.chunk.js} +1 -1
- package/dist/scripts/{59-381a49ed7f.chunk.js → 59-a05072e424.chunk.js} +1 -1
- package/dist/scripts/{6-40c8ba5007.chunk.js → 6-9a7ab29bcf.chunk.js} +1 -1
- package/dist/scripts/{60-b4a91c86fa.chunk.js → 60-3ea0df7910.chunk.js} +1 -1
- package/dist/scripts/{61-7d81d27c31.chunk.js → 61-49a9fb2c98.chunk.js} +1 -1
- package/dist/scripts/{62-758f5e505b.chunk.js → 62-afa39e4cc9.chunk.js} +1 -1
- package/dist/scripts/{63-6700b4d00a.chunk.js → 63-348b096dca.chunk.js} +1 -1
- package/dist/scripts/{64-9c88ee6161.chunk.js → 64-6f7edb1451.chunk.js} +1 -1
- package/dist/scripts/{65-a7e499ceee.chunk.js → 65-1a6aecc0e3.chunk.js} +1 -1
- package/dist/scripts/{66-f00f29ccae.chunk.js → 66-fe5934023f.chunk.js} +1 -1
- package/dist/scripts/67-69b25bd800.chunk.js +1 -0
- package/dist/scripts/{68-38a6d7fb50.chunk.js → 68-54be8dbe28.chunk.js} +1 -1
- package/dist/scripts/{69-870856c6fb.chunk.js → 69-2dbcfa995c.chunk.js} +1 -1
- package/dist/scripts/{7-aac8c84ccb.chunk.js → 7-e9fd5a70f5.chunk.js} +1 -1
- package/dist/scripts/{70-39dc936989.chunk.js → 70-145a5802f1.chunk.js} +1 -1
- package/dist/scripts/{71-8e3682a7d7.chunk.js → 71-2ea1363d8f.chunk.js} +1 -1
- package/dist/scripts/{72-550438db4e.chunk.js → 72-3d94c9900f.chunk.js} +1 -1
- package/dist/scripts/{8-d46f48d03c.chunk.js → 8-3db468b0ad.chunk.js} +1 -1
- package/dist/scripts/9-c8b248951d.chunk.js +1 -0
- package/dist/scripts/bundle-c736d7845b.min.js +8 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-d24f8f2432.min.js +1 -0
- package/dist/sw.js +3 -0
- package/package.json +100 -99
- 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/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/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/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-31317a2d02.chunk.js +0 -1
- package/dist/scripts/10-e2fea45a6c.chunk.js +0 -1
- package/dist/scripts/11-039959db6c.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/13-081c0e5887.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/15-12fa4c3471.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-7bcffb06e7.chunk.js +0 -1
- package/dist/scripts/17-140fec014b.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-a84733c89f.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-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/24-74ab289589.chunk.js +0 -1
- package/dist/scripts/24-7aa9b43511.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/26-d166e3c313.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/28-5c540e74cc.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-69389908f8.chunk.js +0 -1
- package/dist/scripts/29-bb7e39304b.chunk.js +0 -1
- package/dist/scripts/3-42e8af9f39.chunk.js +0 -1
- package/dist/scripts/3-81b501ac1e.chunk.js +0 -1
- package/dist/scripts/30-9d32d88d76.chunk.js +0 -1
- package/dist/scripts/30-fa390c35f6.chunk.js +0 -1
- package/dist/scripts/31-639090fee3.chunk.js +0 -1
- package/dist/scripts/31-f15802825c.chunk.js +0 -1
- package/dist/scripts/32-1ad8193581.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-7efae85b8b.chunk.js +0 -1
- package/dist/scripts/34-0a7f3b55fe.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-9c3899dfbd.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-3f3a603b60.chunk.js +0 -1
- package/dist/scripts/37-97b84a8be5.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-71c4bb46b2.chunk.js +0 -1
- package/dist/scripts/4-435484d217.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-a691a401ff.chunk.js +0 -1
- package/dist/scripts/40-f1d72b1049.chunk.js +0 -1
- package/dist/scripts/41-0368ba16dc.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-61a626d7f4.chunk.js +0 -1
- package/dist/scripts/43-2fe5b1c9cc.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-de22428999.chunk.js +0 -1
- package/dist/scripts/44-ee6a740a16.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-cccef3e874.chunk.js +0 -1
- package/dist/scripts/46-ebf8eee4ac.chunk.js +0 -1
- package/dist/scripts/47-1e3d829757.chunk.js +0 -1
- package/dist/scripts/47-c61fa52c53.chunk.js +0 -1
- package/dist/scripts/48-877e9e02b8.chunk.js +0 -1
- package/dist/scripts/48-e577124476.chunk.js +0 -1
- package/dist/scripts/49-0f9a6a1782.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/50-0741587a02.chunk.js +0 -1
- package/dist/scripts/50-4de0b758d5.chunk.js +0 -1
- package/dist/scripts/51-a5f1309ada.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-bc48f1f9e8.chunk.js +0 -1
- package/dist/scripts/53-0e253f9f3e.chunk.js +0 -1
- package/dist/scripts/53-36007500cf.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/55-3c60601030.chunk.js +0 -1
- package/dist/scripts/55-e29d6a6ba9.chunk.js +0 -1
- package/dist/scripts/56-36d54fa08f.chunk.js +0 -1
- package/dist/scripts/56-7a6c662f14.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-a0fe201826.chunk.js +0 -1
- package/dist/scripts/58-e996405f2b.chunk.js +0 -1
- package/dist/scripts/59-0a7bdc86b0.chunk.js +0 -1
- package/dist/scripts/59-4f2fcb6412.chunk.js +0 -1
- package/dist/scripts/6-51a379e066.chunk.js +0 -1
- package/dist/scripts/6-b3d36065dc.chunk.js +0 -1
- package/dist/scripts/60-0d8896555f.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-a342a0d501.chunk.js +0 -1
- package/dist/scripts/62-67458b7fb4.chunk.js +0 -1
- package/dist/scripts/62-f5fd35fdc0.chunk.js +0 -1
- package/dist/scripts/63-420b10f5f2.chunk.js +0 -1
- package/dist/scripts/63-c88b9860e9.chunk.js +0 -1
- package/dist/scripts/64-e177d4c971.chunk.js +0 -1
- package/dist/scripts/64-e6598113a7.chunk.js +0 -1
- package/dist/scripts/65-93567fe088.chunk.js +0 -1
- package/dist/scripts/65-f750573f69.chunk.js +0 -1
- package/dist/scripts/66-c84a3a3c3f.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-97c694c3d5.chunk.js +0 -1
- package/dist/scripts/67-c5af18680c.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-3d2063cd0f.chunk.js +0 -1
- package/dist/scripts/69-b0ea71d7c5.chunk.js +0 -1
- package/dist/scripts/7-3151397d74.chunk.js +0 -1
- package/dist/scripts/7-d41d3bf60c.chunk.js +0 -1
- package/dist/scripts/70-27e9e5792a.chunk.js +0 -1
- package/dist/scripts/70-6ef72cd9b6.chunk.js +0 -1
- package/dist/scripts/71-a80858069c.chunk.js +0 -1
- package/dist/scripts/71-c5923e2d2d.chunk.js +0 -1
- package/dist/scripts/72-245f28bf97.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-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-df99ba6ce1.chunk.js +0 -1
- package/dist/scripts/bundle-1b984e2fd9.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-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/{projects/library-editor/src/shared → libs/shared/src}/enums/MasterObjectTypes.d.ts +0 -0
- /package/dist/{projects/library-editor/src/apps/library-editor → libs/shared/src}/enums/ObjectOwnerType.d.ts +0 -0
- /package/dist/{projects/library-editor/src/shared → libs/shared/src}/enums/UploadInteractionType.d.ts +0 -0
- /package/dist/{projects/library-editor/src/shared → libs/shared/src/legacy}/behaviors/file-drop/FileDropHelper.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[27],{1084:function(e,t,n){"use strict";var i=n(2),o=n(19),r=n(6),a=n(0),s=n(283),l=n(1153),c=n.n(l),u=n(1154),h=n.n(u);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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,i=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,i,o=v(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,e)}return t=l,(n=[{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.b.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.b.Filter){var e=this.model.pick("id","name","remove"),t=e.id,n=e.name;return!!e.remove||!t||!n}}},{key:"onRemoveTag",value:function(e){if(e.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.b.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}},{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.b.Link?"a":"span"}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.c.Vertical?"":" d-inline-flex"),t="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.b.Disabled?" ".concat(h.a.disabled):""),i="".concat(this.options.behavior===s.b.Filter?" cursor-pointer":"");return"badge-pill tag py-1 px-2 my-1 mr-1".concat(i).concat(e).concat(t).concat(n)}},{key:"template",get:function(){return c.a}},{key:"elements",get:function(){return{close:".close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.b.Link?{}:{"[this]":{application:a.b.SEARCH,action:a.a.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.b.Link,orientation:s.c.Flex}}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a.Component);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function k(e,t){return(k=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,i=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return C}));var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(l,e);var t,n,r,a=S(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.options.behavior!==s.b.Edit||this.options.removeEvent||i.a.ErrorHelper.throw(new o.a("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.c.Flex}}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.c.Vertical?" d-flex align-items-start flex-column":"");return"tags".concat(e)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&w(t.prototype,n),r&&w(t,r),l}(i.a.ComponentCollection)},1109:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n(1),o=n(2),r=n(1110),a=n.n(r),s=n(1111),l=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e);var t,n,o,r=d(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return t=s,(n=[{key:"viewOptions",value:function(){var e=this.options.tabs.map((function(e){return Object.assign(Object.assign({},e),{link:e.link.selector.replace(".","")})}));return{styles:a.a,tabs:e}}},{key:"setActiveTab",value:function(){var e=this,t=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===e.options.activeTab&&(n.active=!0,t=!0)})),!t){var n=i.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}},{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var e="bg-white py-2 border-bottom";return this.options.className&&(e+=" ".concat(this.options.className)),e}},{key:"template",get:function(){return l.a}},{key:"appLinks",get:function(){var e={};return this.options.tabs.forEach((function(t){return e[t.link.selector]=t.link.appLink})),e}}])&&u(t.prototype,n),o&&u(t,o),s}(o.a.Component)},1110:function(e,t,n){e.exports={link:"_5idZs",active:"_3Ty4M"}},1111:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o,r,a){var s;e.propertyIsEnumerable;return null!=(s=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hide:t,{name:"unless",hash:{},fn:e.program(2,o,0,r,a),inverse:e.noop,data:o}))?s:""},2:function(e,t,n,i,o,r,a){e.propertyIsEnumerable;var s,l=e.lambda,c=e.escapeExpression;return' <a class="'+c(l(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.link:s,t))+" p-2 "+c(l(null!=t?t.link:t,t))+" "+(null!=(s=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.active:t,{name:"if",hash:{},fn:e.program(3,o,0,r,a),inverse:e.noop,data:o}))?s:"")+'">'+c(l(null!=t?t.name:t,t))+"</a>\r\n"},3:function(e,t,n,i,o,r,a){var s;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.active:s,t))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,r,a){var s;e.propertyIsEnumerable;return null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=(s=null!=t?t.options:t)?s.tabs:s,{name:"each",hash:{},fn:e.program(1,o,0,r,a),inverse:e.noop,data:o}))?s:""},useData:!0,useDepths:!0})},1131:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(6),o=n(2),r=n(15),a=n(1132),s=n.n(a),l=n(1133),c=n.n(l),u=n(0),h=n(1109);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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,i=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,o,a=v(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var e=Object.assign(Object.assign({},this.options.goBackTab),{link:this.options.goBackTab.link.selector.replace(".","")});return{styles:s.a,backTab:e,backArrow:r.a.getSvg(r.b.ArrowLeft)}}},{key:"onSave",value:function(){i.Radio.channel(u.b.LIBRARY_EDITOR).trigger(u.a.LibraryEditor.SAVE_VIDEO)}},{key:"onRender",value:function(){this.showChildView("tabs",new h.a({tabs:this.options.tabs,activeTab:this.options.activeTab}))}},{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"template",get:function(){return c.a}},{key:"appLinks",get:function(){var e,t,n,i=this.options.goBackTab.link;return e={},t=i.selector,n=i.appLink,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}])&&f(t.prototype,n),o&&f(t,o),l}(o.a.Component)},1132:function(e,t,n){e.exports={svgContainer:"_27gR6"}},1133:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <h4>\r\n <a class="d-inline-flex align-items-center '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.link:r,t))+" "+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.backTab:r)?r.link:r,t))+'">\r\n <span class="'+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' d-inline-block mx-2">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.backArrow:r,t))?r:"")+"</span>\r\n "+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.backTab:r)?r.name:r,t))+'\r\n </a>\r\n </h4>\r\n</div>\r\n<div class="tabs-region pl-2"></div>'},useData:!0})},1153:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return'<span class="close cursor-pointer" aria-hidden="true">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a,s=null!=t?t:e.nullContext||{};return e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:o}):a)+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.removable:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")},useData:!0})},1154:function(e,t,n){e.exports={disabled:"_3Vziu"}},1290:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return'<div class="form-group">\r\n <label for="edit-description">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+'</label>\r\n <div class="text-area-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1291:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to admins and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},1292:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.headerText:r,t))+"</h5>\r\n"},3:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.emptyStateText:r,t))+"</p>\r\n"},5:function(e,t,n,i,o){return'<div class="tag-selector-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.headerText:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.emptyStateText:r,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?r:"")+'<div class="tag-list-region"></div>'},useData:!0})},1293:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.escapeExpression;return'<span class="text-muted mx-2 undo '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.undo:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"undo",{name:"lang",hash:{},data:o}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.allowUndo:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'<div class="save-region"></div>'},useData:!0})},1294:function(e,t,n){e.exports={saveButton:"_2FsA6",undo:"v6msX"}},1295:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){e.propertyIsEnumerable;return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"label",{name:"lang",hash:{},data:o}))+"</h5>\r\n"},3:function(e,t,n,i,o){return"my-2"},5:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="text-muted mt-3 mb-1"><em>'+l((n.lang||t&&t.lang||s).call(a,"recommendedSize",{name:"lang",hash:{height:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.height:r,width:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.width:r},data:o}))+'</em></div>\r\n <button class="upload-thumbnail btn btn-light mb-3 w-100">'+l((n.lang||t&&t.lang||s).call(a,"upload",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'<div class="thumbnail-region"></div>\r\n<div class="'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+'">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?r:"")+"</div>"},useData:!0})},1296:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return"mb-4"},3:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return' <p class="mb-2 py-1 px-2 alert alert-info '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.suggestEdit:r,t))+'">\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExchange:r,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?r:"")+" </p>\r\n"},4:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return" "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEditExchange",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:o}))?r:"")+"\r\n"},6:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return" "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:o}))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<div class="row">\r\n <div class="left-pane col-4">\r\n <div class="thumbnail-region"></div>\r\n <div class="cv-tags-region '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'"></div>\r\n <div class="customer-tags-region"></div>\r\n </div>\r\n <div class="right-pane col-8">\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+' <div class="top-save-region"></div>\r\n <div class="basic-info-region mb-4"></div> \r\n <div class="additional-details-region mb-4"></div> \r\n <div class="production-info-region mb-4"></div> \r\n <div class="fields-region mb-4"></div>\r\n <div class="bottom-save-region"></div>\r\n </div>\r\n</div>'},useData:!0})},1297:function(e,t,n){e.exports={suggestEdit:"_1X4l5"}},1298:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="tab-region"></div>\r\n<div class="edit-content-region"></div>\r\n<div class="dialog-region"></div>'},useData:!0})},1483:function(e,t,n){"use strict";n.r(t);var i=n(1),o=n(6),r=n(2),a=n(19),s=n(30),l=n(3),c=n(14),u=n(5),h=n(113),d=n(0),f=n(295),p=n(134),v=n(12),m=n(97),y=n(218),b=n(293),g=n(9),w=n(4),k=n(42),S=n(185),T=n(136),E=n(1055),C=n(1213),O=n(1218),R=n(1216),x=n(1215),D=n(1290),N=n.n(D);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(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,i=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(a,e);var t,n,i,r=j(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){var e=this;this.listenTo(this.model,"change",(function(){return e.options.viewModel.validate()}))}},{key:"regions",value:function(){return{textArea:{el:".text-area-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("textArea",new x.a({name:"value",class:"form-control",placeholder:this.model.get("placeholder"),id:"admin-notes"})),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}},{key:"template",get:function(){return N.a}},{key:"name",get:function(){return"ExtraInfoItemComponent"}},{key:"bindings",get:function(){return{"[name=value]":{observe:"value",setOptions:{validate:!0}}}}}])&&P(t.prototype,n),i&&P(t,i),a}(r.a.Component),U=n(1291),B=n.n(U);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function z(e,t,n){return t&&J(e.prototype,t),n&&J(e,n),e}function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){H(n,e);var t=G(n);function n(e){return F(this,n),t.call(this,e)}return z(n,[{key:"name",get:function(){return"ExtraInfoComponentCollection"}},{key:"childView",get:function(){return L}},{key:"childViewOptions",get:function(){return{viewModel:this.options.viewModel}}}]),n}(r.a.ComponentCollection),K=function(e){H(n,e);var t=G(n);function n(e){return F(this,n),t.call(this,e)}return z(n,[{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new X({collection:this.model.fields,viewModel:this.model}))}},{key:"name",get:function(){return"ExtraInfoComponent"}},{key:"template",get:function(){return B.a}},{key:"className",get:function(){return"border-top pt-3"}}]),n}(r.a.Component),Z=n(245),Q=n(92),$=n(289),ee=n(1119),te=n(1084),ne=n(283),ie=n(1292),oe=n.n(ie);function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(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,i=ue(e);if(t){var o=ue(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he=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&&se(e,t)}(s,e);var t,n,i,o=le(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{tagList:{el:".tag-list-region",replaceElement:!0},tagSelector:{el:".tag-selector-region",replaceElement:!0}}}},{key:"initialize",value:function(){this.options.behavior!==ne.b.Edit||this.options.parentId||r.a.ErrorHelper.throw(new a.a("parentId is required to edit tags."))}},{key:"getTypeaheadConfigs",value:function(){var e=$.a.getTypeaheadConfig(),t=$.a.getBloodhoundConfig(),n={newType:d.v.TagsRaw},i={newType:d.v.TagsRaw,footerTemplate:Q.a.getConfirmSelectionTemplate()};return[{name:d.v.TagsRaw,typeaheadConfig:e,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:t,options:n},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:t,options:i}]}},{key:"viewOptions",value:function(){var e;return this.showEmptyStateText()&&(e=this.options.emptyStateText),{headerText:this.options.headerText,editable:this.options.behavior===ne.b.Edit,emptyStateText:e}}},{key:"showEmptyStateText",value:function(){return this.options.behavior!==ne.b.Edit&&!this.collection.length&&!!this.options.emptyStateText}},{key:"renderTagSelector",value:function(){this.options.behavior===ne.b.Edit&&this.showChildView("tagSelector",new ee.a({model:this.model,parentChannelName:this.options.channelName,inputId:"tag-select",selectEvent:"add:tag",typeaheadConfigs:this.getTypeaheadConfigs(),placeholderText:l.a.getPhrase(this.lang,"placeholder"),callbacks:{onRender:Q.a.selectFirstResult,onBlur:Q.a.clearInputOnBlur},typeaheadOptions:{hint:!1},actionOptions:{clearOnSelect:!0}}))}},{key:"renderTagList",value:function(){this.showEmptyStateText()||this.showChildView("tagList",new te.a({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent}))}},{key:"onRender",value:function(){this.renderTagSelector(),this.renderTagList()}},{key:"name",get:function(){return"TagsComponent"}},{key:"template",get:function(){return oe.a}},{key:"lang",get:function(){return"libraryEditor.tags"}},{key:"defaults",get:function(){return{headerText:l.a.getPhrase(this.lang,"heading"),orientation:ne.c.Flex}}}])&&ae(t.prototype,n),i&&ae(t,i),s}(r.a.Component),de=n(244),fe=n(1293),pe=n.n(fe),ve=n(1294),me=n.n(ve);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(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,i=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Se(this,n)}}function Se(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ee=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&&we(e,t)}(s,e);var t,n,i,a=ke(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"getParentChannel",value:function(){return o.Radio.channel(this.options.channelName)}},{key:"getSaveChannelName",value:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .undo":"onUndo"}}},{key:"initialize",value:function(){var e;this.model||(this.model=new r.a.Model((be(e={},de.c.ShowSpinner,this.options.showSpinner),be(e,de.c.Disabled,this.options.isDisabled),e)));var t=this.options.channelName;this.listenTo(t,S.d.DisableSave,this.onDisableSave),this.listenTo(t,S.d.EnableSave,this.onEnableSave),this.listenTo(t,S.d.CancelSave,this.onCancelSave);var n=o.Radio.channel(this.getSaveChannelName());this.listenTo(n,S.d.Save,this.onSave),this.options.allowUndo&&(this.options.hasChanges&&this.model.set("showUndo",!0),this.listenTo(this.model,"change:showUndo",this.render))}},{key:"onCancelSave",value:function(){this.model.set(de.c.ShowSpinner,!1)}},{key:"onEnableSave",value:function(){this.model.set(de.c.Disabled,!1),this.options.allowUndo&&this.model.set("showUndo",!0)}},{key:"onDisableSave",value:function(){this.model.get(de.c.ShowSpinner)&&this.model.set(de.c.ShowSpinner,!1,{silent:!0}),this.model.set(de.c.Disabled,!0),this.options.allowUndo&&this.model.set("showUndo",!1)}},{key:"onUndo",value:function(e){e.stopPropagation(),this.getParentChannel().trigger(S.d.Undo)}},{key:"onSave",value:function(){this.model.set(de.c.ShowSpinner,!0),this.getParentChannel().trigger(S.d.Save)}},{key:"viewOptions",value:function(){return{allowUndo:this.options.allowUndo&&this.model.get("showUndo"),styles:me.a}}},{key:"renderSaveButton",value:function(){var e=new de.a({saveEvent:S.d.Save,channelName:this.getSaveChannelName(),model:this.model,buttonText:l.a.getPhrase(this.lang,"save"),extraButtonClass:"btn-primary ".concat(me.a.saveButton),spinnerOptions:{size:v.r.Small,type:v.s.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}},{key:"name",get:function(){return"SaveComponent"}},{key:"template",get:function(){return pe.a}},{key:"className",get:function(){return"save-component ".concat(this.options.extraClasses)}},{key:"lang",get:function(){return"libraryEditor.save"}}])&&ge(t.prototype,n),i&&ge(t,i),s}(r.a.Component),Ce=n(188),Oe=n(190),Re=n(282),xe=n(1295),De=n.n(xe);function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Me(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,i=Ve(e);if(t){var o=Ve(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return je(this,n)}}function je(e,t){return!t||"object"!==Ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ie=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&&Pe(e,t)}(r,e);var t,n,i,o=Me(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),o.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=s.a.get("image:storage")}},{key:"regions",value:function(){return{thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{editable:this.options.editable,dimensions:d.m[g.f.Thumbnails]}}},{key:"onRender",value:function(){this.showChildView("thumbnail",new Ce.a({model:this.model,thumbnailOptions:{size:Oe.a.Medium}}))}},{key:"name",get:function(){return"EditThumbnailComponent"}},{key:"lang",get:function(){return"libraryEditor.editThumbnail"}},{key:"template",get:function(){return De.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Re.b,channelName:this.options.channelName,buttonSelector:".upload-thumbnail",imageType:g.f.Thumbnails,appLink:{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.UPLOAD_THUMBNAIL,args:[this.options.model.id]},saveImage:function(t){return e.viewModel.set({dataUrl:t})}}]}},{key:"defaults",get:function(){return{editable:!0}}}])&&_e(t.prototype,n),i&&_e(t,i),r}(r.a.Component),Le=n(1296),Ue=n.n(Le),Be=n(1297),Ae=n.n(Be);function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(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,i=Ge(e);if(t){var o=Ge(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return qe(this,n)}}function qe(e,t){return!t||"object"!==Fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=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&&ze(e,t)}(r,e);var t,n,i,o=He(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),o.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"update:tags",this.renderCustomerTags)}},{key:"regions",value:function(){return{topSave:{el:".top-save-region",replaceElement:!0},bottomSave:{el:".bottom-save-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},basicInfo:{el:".basic-info-region",replaceElement:!0},additionalInfo:{el:".additional-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},fields:{el:".fields-region",replaceElement:!0},clickViewTags:{el:".cv-tags-region",replaceElement:!1},customerTags:{el:".customer-tags-region",replaceElement:!0}}}},{key:"renderSave",value:function(){this.options.editable&&this.showChildView("topSave",new Ee({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"})),this.showChildView("bottomSave",new Ee({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"}))}},{key:"renderBasicInfo",value:function(){this.showChildView("basicInfo",new C.a({model:this.model,ratings:this.options.ratings,channelName:this.options.channelName,editable:this.options.editable,showingSaveButton:this.options.editable,showPublisherVideoDetails:this.options.showPublisherVideoDetails}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new Ie({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderAdditionalInfo",value:function(){this.showChildView("additionalInfo",new R.a({model:this.model,channelName:this.options.channelName,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:this.options.editable}))}},{key:"renderProductionInfo",value:function(){this.showChildView("productionInfo",new O.a({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderFields",value:function(){this.showChildView("fields",new K({model:this.model,channelName:this.options.channelName}))}},{key:"renderClickViewTags",value:function(){if(!this.options.editable){var e=v.j.filterObjectsByOwnerType(this.model.tags,Z.a.ClickView,this.options.currentUser.get("customerId"));this.showChildView("clickViewTags",new he({parentId:this.model.get("id"),collection:e,orientation:ne.c.Flex,behavior:ne.b.Disabled,channelName:this.options.channelName,headerText:l.a.getPhrase(this.lang,"clickviewTags"),emptyStateText:l.a.getPhrase(this.lang,"clickviewTagsEmpty")}))}}},{key:"renderCustomerTags",value:function(){var e=v.j.filterObjectsByOwnerType(this.model.tags,Z.a.Customer,this.options.currentUser.get("customerId"));this.showChildView("customerTags",new he({parentId:this.model.get("id"),collection:e,channelName:this.options.channelName,behavior:ne.b.Edit,headerText:l.a.getPhrase(this.lang,"customerTags"),removeEvent:"remove:tag"}))}},{key:"renderTags",value:function(){this.renderClickViewTags(),this.renderCustomerTags()}},{key:"viewOptions",value:function(){return{styles:Ae.a,editable:this.options.editable,suggestEditClasses:"info-link text-underline suggest-edit",isExchange:v.x.isExchangeVideo(this.model)}}},{key:"onRender",value:function(){this.renderSave(),this.renderBasicInfo(),this.renderThumbnail(),this.renderAdditionalInfo(),this.renderProductionInfo(),this.renderFields(),this.renderTags()}},{key:"name",get:function(){return"EditVideoDetailsComponent"}},{key:"className",get:function(){return"edit-video-detail py-3"}},{key:"lang",get:function(){return"libraryEditor.editVideoDetails"}},{key:"template",get:function(){return Ue.a}},{key:"appLinks",get:function(){return{".suggest-edit":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.id]}}}}])&&Je(t.prototype,n),i&&Je(t,i),r}(r.a.Component),We=n(1131),Xe=n(290),Ke=n(291),Ze=n(1298),Qe=n.n(Ze);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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,i=ot(e);if(t){var o=ot(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return it(this,n)}}function it(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"EditVideoView",(function(){return rt}));var rt=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&&tt(e,t)}(R,e);var t,n,C,O=nt(R);function R(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),(t=O.call(this,e)).editable=!1,t}return t=R,(n=[{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0,partialLoading:g.h.EditVideoTabs},content:{el:".edit-content-region",replaceElement:!0,partialLoading:g.h.EditVideoDetails}}}},{key:"initialize",value:function(){this.navLock=u.a.getInstance(d.x.NavLock,this),this.initDataListeners(),v.u.initBackButton(),this.initServices()}},{key:"initServices",value:function(){this.videoDataService=u.a.getInstance(d.g.Video,this),this.tagDataService=u.a.getInstance(d.g.Tags,this),this.libraryDataService=u.a.getInstance(d.g.Library,this),this.seriesDataService=u.a.getInstance(d.g.Series,this),this.ratingsDataService=u.a.getInstance(d.g.Ratings,this),this.migrationVideoDataService=u.a.getInstance(d.g.MigrationVideo,this),this.fieldsDataService=u.a.getInstance(d.g.Fields,this),this.alertService=u.a.getInstance(d.x.Alerts,this),this.personDataService=u.a.getInstance(d.g.Person,this),this.companyDataService=u.a.getInstance(d.g.Company,this)}},{key:"initDataListeners",value:function(){this.listenTo(c.a.SHELL,r.a.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway),this.listenTo(d.e.VIDEO,"videos:".concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"videos:".concat(this.options.videoId,":error"),this.onError),this.listenTo(d.e.RATINGS,"".concat(d.f.RATINGS,":sync"),this.render),this.listenTo(d.e.VIDEO,"".concat(d.f.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),this.onThumbnailUpdated),this.listenTo(d.e.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(this.channelName,"select:rating",i.partial(this.onTypeaheadSelection,i,"rating")),this.listenTo(this.channelName,"select:channel",i.partial(this.onTypeaheadSelection,i,"channel")),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:tag",this.onAddTag),this.listenTo(this.channelName,"remove:distributors",this.onRemoveDistributor),this.listenTo(this.channelName,"remove:productionCompanies",this.onRemoveProductionCompany),this.listenTo(this.channelName,"remove:directors",this.onRemoveDirector),this.listenTo(this.channelName,"remove:producers",this.onRemoveProducer),this.listenTo(this.channelName,"remove:tag",this.onRemoveTag),this.listenTo(this.channelName,S.d.Save,this.onSave),this.listenTo(this.channelName,S.d.Undo,this.onUndo),this.listenTo(this.channelName,S.d.DetectInput,this.onTypeaheadInput),this.listenTo(this.channelName,"image:load",this.onBeforeThumbnailUpload)}},{key:"onError",value:function(e){switch(e.type){case h.a.NotFound:r.a.ErrorHelper.throw(new Ke.a);break;case h.a.Forbidden:r.a.ErrorHelper.throw(new Xe.a)}}},{key:"onTypeaheadSelection",value:function(e,t,n){if(n){var o=this.viewModel.get(t),r=o.filter({name:e.name});i.each(r,(function(e){return o.remove(e)})),o.add(e)}else this.viewModel.set(t,e);this.onModelChange(e,{manualUpdate:!0})}},{key:"onTypeaheadInput",value:function(e,t,n){e.get("name")||(n&&n.isCollection?this.viewModel.get(t).remove(e.get("id"),{silent:!0}):this.viewModel.get(t).clear({silent:!0}),this.onModelChange(null,{manualUpdate:!0}),"series"===t&&(this.validateSeries(),o.Radio.channel(this.channelName).trigger("clear:series")))}},{key:"onSelectSeries",value:function(e){var t=this;e.id?this.seriesDataService.getSeries(e.id,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection(e.toJSON(),"series")})):e.name&&this.seriesDataService.createSeries(e.name,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection({id:e.id},"series")}))}},{key:"onSelectSeason",value:function(e){var t=this;if(i.isNull(e))return this.viewModel.get("season").clear({silent:!0}),this.viewModel.set("episodeNumber",null),v.c.deselectAll(this.viewModel.get("series.seasons")),void this.onModelChange(null,{manualUpdate:!0});if(e.id)return this.viewModel.set("season",e),v.c.setSelected(e.id,this.viewModel.get("series.seasons")),void this.onModelChange(e,{manualUpdate:!0});if(e.number){var n=this.viewModel.get("series.id");this.seriesDataService.createSeason(e,n,(function(e){t.viewModel.set("season",e.toJSON()),!t.viewModel.get("series.seasons")&&t.viewModel.get("series").set("seasons",new f.a),t.viewModel.get("series.seasons").add(e.toJSON()),v.c.setSelected(e.id,t.viewModel.get("series.seasons")),t.onModelChange(e.toJSON(),{manualUpdate:!0}),t.render()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"distributors",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"distributors",!0)}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"productionCompanies",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"productionCompanies",!0)}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"directors",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"directors",!0)}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"producers",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"producers",!0)}))}},{key:"onRemoveDistributor",value:function(e){this.removeFromCollection(e,"distributors")}},{key:"onRemoveProductionCompany",value:function(e){this.removeFromCollection(e,"productionCompanies")}},{key:"onRemoveDirector",value:function(e){this.removeFromCollection(e,"directors")}},{key:"onRemoveProducer",value:function(e){this.removeFromCollection(e,"producers")}},{key:"removeFromCollection",value:function(e,t){e&&e.id&&t&&(this.viewModel.get(t).remove(e.id),this.onModelChange(null,{manualUpdate:!0}))}},{key:"onAddTag",value:function(e){var t=this;if(e&&e.name){var n=e.name.trim().toLowerCase();if(n&&!v.c.findModelByName(n,this.viewModel.tags)){var i=new y.a({name:n});this.viewModel.tags.add(i),this.tagDataService.createTag(n,this.model.get("id"),(function(e){i.set(e.toJSON()),o.Radio.channel(t.channelName).trigger("update:tags")}))}}}},{key:"onRemoveTag",value:function(e){var t=this;e instanceof y.a&&e.id&&this.tagDataService.dissociateTag(e.id,this.model.get("id"),(function(){t.viewModel.tags.remove(e),o.Radio.channel(t.channelName).trigger("update:tags"),t.logDissocAction(t.model.get("id"),e,w.e.Tag)}))}},{key:"saveFields",value:function(e,t){var n=this,o=0;e.updatedVideo=i.extend({},e.updatedVideo||{});var r=function(){++o===e.dataChanges.fields.length&&t(e)};i.each(e.dataChanges.fields,(function(e){if(e.id&&!e.value)return n.viewModel.fields.remove(n.viewModel.fields.findWhere({id:e.id})),void n.fieldsDataService.deleteField(e.id,r);!e.id||e.id>0?n.fieldsDataService.updateField(e,r):n.fieldsDataService.addField(n.options.videoId,e,(function(t){n.viewModel.fields.findWhere({id:e.id}).set("id",t.id),r()}))}))}},{key:"bulkDissoc",value:function(e,t){this.videoDataService.bulkDissoc(this.model.id,e.pendingDissocs,(function(){t(e)}))}},{key:"saveVideo",value:function(e,t){var n=this,o=i.omit(e.dataChanges,"fields");if(i.isEmpty(o))t(e);else{var r=i.omit(e.dataChanges,"fields");this.videoDataService.updateVideo(this.model.get("id"),this.folder.get("id"),r,(function(o){(e.dataChanges.series&&e.dataChanges.series.id||e.dataChanges.episodeNumber||e.dataChanges.season)&&n.videoDataService.clearVideoCache(),e.updatedVideo=i.extend({},e.updatedVideo||{},o),t(e)}))}}},{key:"afterSave",value:function(e){if(this.viewModel){e.updatedVideo&&this.updateState(e.updatedVideo),this.unlockNav(),this.updateSaveButton(S.d.DisableSave),this.logEditAction(e.dataChanges,w.r.Save);var t=b.a.updatedVideoAlert(this.viewModel.get("name"));this.alertService.success(t||"Video was successfully updated")()}}},{key:"onSave",value:function(){if(this.viewModel.validate(),!1===this.viewModel.isValid())return this.updateSaveButton(S.d.CancelSave),!1;this.validateSeries();var e=E.a.getChanges(this.model,this.viewModel),t=E.a.getRemovedObjectIds(this.model,this.viewModel);if(!e&&!i.keys(t).length)return this.updateSaveButton(S.d.CancelSave),!1;var n=new r.a.Middleware;return e&&e.fields&&n.use(i.bind(this.saveFields,this)),t&&i.keys(t).length&&n.use(i.bind(this.bulkDissoc,this)),this.editable&&n.use(i.bind(this.saveVideo,this)),n.use(i.bind(this.afterSave,this)),n.go({dataChanges:e,pendingDissocs:t},null),!1}},{key:"onUndo",value:function(){var e=this;new v.d({title:l.a.getPhrase(this.lang,"undoTitle"),text:l.a.getPhrase(this.lang,"undoBody",{videoName:this.model.get("name")}),buttons:[{text:l.a.getPhrase(this.lang,"undo"),className:"btn btn-danger",success:!0},{text:l.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}).render().done((function(){e.logEditAction({},w.r.Discard),e.revertState({undo:!0}),e.render()}))}},{key:"updateState",value:function(e){this.stopListening(this.viewModel),E.a.updateModelState(this.model,this.viewModel,e),s.a.clear(this.viewModelName),this.getViewModel(),this.renderContent()}},{key:"onNavigateAway",value:function(){this.revertState()}},{key:"revertState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.undo;this.stopListening(this.viewModel),s.a.clear(this.viewModelName),delete this.viewModel,this.unlockNav(),t&&this.getViewModel()}},{key:"lockNav",value:function(){this.navLock.lock({title:l.a.getPhrase(this.lang,"navLockHeading"),text:l.a.getPhrase(this.lang,"navLockBody")})}},{key:"unlockNav",value:function(){this.navLock.unlock()}},{key:"onBeforeThumbnailUpload",value:function(){this.navLock.isLocked()&&(this.navLock.unlock(),s.a.get("upload:thumbnail:options").set("lockNav",!0))}},{key:"onModelChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.stickitChange||t.manualUpdate)if(this.viewModel.validate(),!1!==this.viewModel.isValid()){var n=E.a.getChanges(this.model,this.viewModel)||i.keys(E.a.getRemovedObjectIds(this.model,this.viewModel)).length;if(!n)return this.unlockNav(),void this.updateSaveButton(S.d.DisableSave);this.lockNav(),this.updateSaveButton(S.d.EnableSave)}else this.updateSaveButton(S.d.DisableSave)}},{key:"updateSaveButton",value:function(e){var t=o.Radio.channel(this.channelName),n=S.d.EnableSave,i=S.d.DisableSave,s=S.d.CancelSave;switch(e){case n:return void t.trigger(n);case i:return void t.trigger(i);case s:return void t.trigger(s)}r.a.ErrorHelper.throw(new a.a("Save action type is not valid."))}},{key:"onThumbnailUpdated",value:function(){var e=this;this.videoDataService.clearCacheAndGetVideo(this.options.videoId,(function(t){e.model=t,e.viewModel.set("thumbnail",e.model.thumbnail.toJSON())}))}},{key:"logEditAction",value:function(e,t){var n=Object.assign({id:this.model.get("id")},e);k.a.logUserAction(n,{actionType:w.q.Edit,entity:w.e.Video,location:w.k.EditVideoDetails,workflowPhase:t})}},{key:"logDissocAction",value:function(e,t,n){var i=Object.assign({videoId:e},t.pick("id","name"));k.a.logUserAction(i,{actionType:w.q.Dissociate,entity:n,location:w.k.EditVideoDetails})}},{key:"onValidation",value:function(e){this.viewModel.set("disabled",!e)}},{key:"getViewModel",value:function(){this.model.fields&&this.model.fields.length||this.model.set("fields",Object(E.d)()),this.viewModel=s.a.get(this.viewModelName,this.model.toJSON(),{ctor:m.a}),this.editable&&(this.viewModel.addValidation(E.k),this.viewModel.addValidation(E.e)),this.viewModel.addValidation(E.b),this.listenTo(this.viewModel,"validated",this.onValidation),this.listenTo(this.viewModel,"change",this.onModelChange),this.listenTo(this.viewModel,"change:dateBroadcast",i.partial(this.onModelChange,i,{manualUpdate:!0})),this.viewModel.fields&&(this.viewModel.fields&&this.viewModel.fields.each((function(e){return e.addValidation(E.c)})),this.listenTo(this.viewModel.fields,"change",this.onModelChange))}},{key:"validateSeries",value:function(){this.viewModel.get("series.id")||(this.viewModel.unset("season"),this.viewModel.set("episodeNumber",null))}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getHostedLibraries(),this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.videoId,(function(t){var n=!!e.publisherVideo;e.publisherVideo=t,n&&e.isRendered()&&e.renderContent()})),this.model&&(this.editable=v.j.canEditVideo(this.model),this.folder=this.model.categories.first(),this.ratings&&this.hostedLibraries&&(this.viewModel instanceof m.a||this.getViewModel()))}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.model&&!!this.ratings&&!!this.viewModel}},{key:"renderContent",value:function(){var e=E.a.getChanges(this.model,this.viewModel)||i.keys(E.a.getRemovedObjectIds(this.model,this.viewModel)).length;this.showChildView("content",new Ye({model:this.viewModel,ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,channelName:this.channelName,isSaveDisabled:!e,hasChanges:!!e,editable:this.editable,currentUser:this.currentUser,showPublisherVideoDetails:!!this.publisherVideo}))}},{key:"renderTabs",value:function(){this.showChildView("tabs",new We.a({tabs:v.u.getEditVideoTabs(this.options.videoId,{hideChaptersTab:!this.editable}),activeTab:".edit-video-applink",goBackTab:v.u.getBackButton(this.options.videoId)}))}},{key:"onRender",value:function(){this.renderTabs(),this.renderContent()}},{key:"name",get:function(){return"EditVideoView"}},{key:"title",get:function(){return this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editVideo"}},{key:"className",get:function(){return"bg-white p-3"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"template",get:function(){return Qe.a}},{key:"requiredResources",get:function(){return{libraries:T.b.libraries,currentUser:p.b.currentUser}}}])&&et(t.prototype,n),C&&et(t,C),R}(r.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[28],{1033:function(e,t,n){"use strict";var o,i;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(i||(i={}))},1062:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return w}));var o,i,r=n(2),l=n(13),a=n(3),s=n(1129),u=n.n(s),c=n(1130),p=n.n(c);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Small="sm",e.Large="lg"}(i||(i={}));var b=(v(o={},i.Small,3),v(o,i.Large,5),o),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,o,r=g(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=r.call(this,e)).showingMore=!1,t}return t=s,(n=[{key:"events",value:function(){return v({},"click .".concat(p.a.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.v.linkifyText(l.v.escapeExpression(this.model.get("description"))):this.options.highlighter?l.v.wordsHighlighter(l.v.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),t=e.descriptionTextEl,n=e.ellipsisEl;t.removeClass(p.a.truncateLarge).addClass(p.a.open),n.text(a.a.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,t=this.getDescriptionElements(),n=t.descriptionTextEl,o=t.ellipsisEl;this.options.size===i.Small&&(e="truncateSmall"),this.options.size===i.Large&&(e="truncateLarge"),n.addClass(p.a[e]),o.text(this.options.allowExpand?"... ".concat(a.a.getPhrase(this.lang,"showMore")):"...").removeClass(p.a.hideEllipsis).addClass(p.a.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,t=b[this.options.size];e.height()<=21*t||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:p.a,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}},{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description",ellipsis:this.options.allowExpand?".".concat(p.a.showMoreEllipsis):".".concat(p.a.singleEllipsis)}}}])&&h(t.prototype,n),o&&h(t,o),s}(r.a.Component)},1079:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var o=n(1),i=n(6),r=n(2),l=n(4),a=n(42),s=n(191),u=n(189),c=n(283),p=n(13),f=n(0),h=n(1185),d=n(1131),g=n.n(d);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?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 C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(y,e);var t,n,r,d=b(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),d.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(e){if(!this.player)return this.listenToOnce(this.options.channelName,"webplayer:loaded",o.bind(this.seekToChapter,this,e)),void this.renderVideoPreview();this.seekToChapter(e)}},{key:"seekToChapter",value:function(e){this.player.seekTo(e)}},{key:"onClick",value:function(){this.player||this.renderVideoPreview()}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new u.a({model:this.model,thumbnailOptions:{size:s.a.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName}))}},{key:"renderVideoPreview",value:function(){this.player=new h.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{entity:l.e.Video}),captureAnalytics:this.options.captureAnalytics}),this.showChildView("player",this.player)}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return g.a}},{key:"instanceChannelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.d,selector:".lazy-img",callback:function(){i.Radio.channel(e.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.p}]}}])&&m(t.prototype,n),r&&m(t,r),y}(r.a.Component)},1129:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.descriptionWrapper:r,t))+'">\r\n <p class="description '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.description:r,t))+'">'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.expandable:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),data:i}))?r:"")+"</p>\r\n </div>\r\n"},2:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+'<span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showMoreEllipsis:r,t))+" "+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.hideEllipsis:r,t))+'">... '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+'<span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.singleEllipsis:r,t))+" "+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.hideEllipsis:r,t))+'">...</span>'},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <p class="'+e.escapeExpression(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.description:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.truncate:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(6,i,0),data:i}))?r:""},useData:!0})},1130:function(e,t,n){e.exports={columnNames:"_1a1Re",descriptionWrapper:"_2MZC5",description:"_3U9j9",ellipsis:"_1YjUg",singleEllipsis:"_3SNtn",showMoreEllipsis:"xy3i9",showEllipsis:"_1_L9t",hideEllipsis:"TCdgP",open:"_18ojI",truncateSmall:"nLuVF",truncateLarge:"sEELY"}},1131:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="video-player-region cursor-pointer responsize-img">\r\n <div class="thumbnail-region"></div>\r\n</div>'},useData:!0})},1396:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="videos-region"></div>'},useData:!0})},1397:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return'<p class="text-uppercase text-muted">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.description:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="description-region"></div>\r\n<div class="webplayer-region col-5 pl-0"></div>'},useData:!0})},1398:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return" <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{series:null!=t?t.series:t},data:i}))+"</span>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return" "+(null!=(r=n.if.call(l,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{folder:null!=t?t.category:t},data:i}))+"</span>\r\n"},4:function(e,t,n,o,i){return'<span class="mx-1">|</span>'},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.rating:r,t))+" "+a(l(null!=(r=null!=t?t.options:t)?r.ratingColorClass:r,t))+'" title="'+a(l(null!=(r=null!=t?t.rating:t)?r.name:r,t))+'">'+a(l(null!=(r=null!=t?t.rating:t)?r.code:r,t))+"</span>\r\n"},8:function(e,t,n,o,i){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:""},9:function(e,t,n,o,i){return' <div class="text-danger">'+e.escapeExpression(e.lambda(t,t))+"</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l,a=null!=t?t:e.nullContext||{};return'<div>\r\n <a class="h6">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n</div>\r\n<div>\r\n"+(null!=(r=n.if.call(a,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=t?t.category:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"</div>\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.rating:t)?r.code:r,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.each.call(a,null!=(r=null!=t?t.options:t)?r.errorStrings:r,{name:"each",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1399:function(e,t,n){e.exports={rating:"_3IJcl"}},1400:function(e,t,n){e.exports={svgContainer:"_-0ibU",selectedButton:"_28zhr",showPreview:"_2r4VF"}},1401:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <button class="btn btn-success use-online-copy '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectedButton:r,t))+'"><span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.checkSvg:r,t))?r:"")+"</span>"+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"resolve",{name:"lang",hash:{},data:i}))+"</button>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <button class="btn btn-link dismiss">'+a((n.lang||t&&t.lang||l).call(r,"dismiss",{name:"lang",hash:{},data:i}))+'</button>\r\n <button class="btn btn-outline-secondary use-online-copy">'+a((n.lang||t&&t.lang||l).call(r,"resolve",{name:"lang",hash:{},data:i}))+"</button>\r\n"},5:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},7:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.lambda,s=e.escapeExpression;return"<div>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.selected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'</div>\r\n<div class="mt-4 cursor-pointer video-item-show-preview text-right '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showPreview:r,t))+'">\r\n <span class="svg-container d-inline-block">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.previewSvg:r,t))?r:"")+"</span>\r\n "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+" "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1402:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" cursor-pointer"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.doNotAdd:r,t))+' text-center">\r\n <p class="mb-0 mt-3">'+(null!=(r=(n.lang||t&&t.lang||s).call(a,"willNotBeAdded",{name:"lang",hash:{videoName:null!=t?t.name:t},data:i}))?r:"")+'</p>\r\n <p class="m-0">'+l((n.lang||t&&t.lang||s).call(a,"willBeRemoved",{name:"lang",hash:{},data:i}))+'</p>\r\n <button class="btn btn-link undo">'+l((n.lang||t&&t.lang||s).call(a,"undo",{name:"lang",hash:{},data:i}))+"</button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.videoItem:r,t))+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n <div class="thumbnail-region d-inline-block '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.thumbnailContainer:r,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metaContainer:r,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.actionsContainer:r,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.previewContainer:r,t))+'"></div>\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.doNotAdd:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1403:function(e,t,n){e.exports={component:"_13khy",thumbnailContainer:"_gEcp",metaContainer:"zuMb1",actionsContainer:"_1ppp8",videoItem:"_2Ru6c",doNotAdd:"_8l6WV"}},1404:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<span class="border-right d-inline-block align-middle pr-3">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosAdded",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.count:r},data:i}))+"</span>\r\n"},3:function(e,t,n,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.countPhrase:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<span class="d-inline-block align-middle"><button class="btn btn-link clear-all"'+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.submitDisabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+">"+s((n.lang||t&&t.lang||a).call(l,"reset",{name:"lang",hash:{},data:i}))+'</button></span>\r\n<button class="btn btn-primary align-middle ml-2 submit" '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.submitDisabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+">"+s((n.lang||t&&t.lang||a).call(l,"submit",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},1405:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="m-auto text-warning '+a(e.lambda(null!=(r=null!=t?t.styles:t)?r.svgContainer:r,t))+'">'+(null!=(r="function"==typeof(l=null!=(l=n.warningSvg||(null!=t?t.warningSvg:t))?l:u)?l.call(s,{name:"warningSvg",hash:{},data:i}):l)?r:"")+"</div>\r\n<p>\r\n <div>"+(null!=(r="function"==typeof(l=null!=(l=n.onlineCopyCountText||(null!=t?t.onlineCopyCountText:t))?l:u)?l.call(s,{name:"onlineCopyCountText",hash:{},data:i}):l)?r:"")+' will be migrated to your Library Editor ignoring all warnings.</div>\r\n <span class="text-danger">\r\n '+a("function"==typeof(l=null!=(l=n.warningText||(null!=t?t.warningText:t))?l:u)?l.call(s,{name:"warningText",hash:{},data:i}):l)+"\r\n </span>\r\n</p> \r\n"},3:function(e,t,n,o,i){var r,l;e.propertyIsEnumerable;return"<p>"+(null!=(r="function"==typeof(l=null!=(l=n.doNotAddCountText||(null!=t?t.doNotAddCountText:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"doNotAddCountText",hash:{},data:i}):l)?r:"")+" will be removed from this list and will not be added to your library.</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(l,null!=t?t.onlineCopyCount:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(l,null!=t?t.doNotAddCount:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1406:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return' <h2 class="h3">'+s((n.lang||t&&t.lang||a).call(l,"couldNotBeMigrated",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.items:r},data:i}))+'</h2>\r\n <p class="mb-1">'+s((n.lang||t&&t.lang||a).call(l,"ensureValidity",{name:"lang",hash:{},data:i}))+'</p>\r\n <p class="mb-2"><a href="'+s(e.lambda(null!=(r=null!=t?t.options:t)?r.supportArticle:r,t))+'" target="_blank" class="text-info">'+s((n.lang||t&&t.lang||a).call(l,"moreInfo",{name:"lang",hash:{},data:i}))+'</a></p>\r\n <button class="approve-all btn btn-success d-inline-block mr-2" type="button">'+s((n.lang||t&&t.lang||a).call(l,"resolve",{name:"lang",hash:{},data:i}))+'</button>\r\n <button class="do-not-add btn btn-link d-inline-block" type="button">'+s((n.lang||t&&t.lang||a).call(l,"dismiss",{name:"lang",hash:{},data:i}))+"</button>\r\n"},3:function(e,t,n,o,i){return""},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<div class="tab-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.tabsContainer:r,t))+' border-bottom"></div>\r\n<div class="p-3 border-bottom '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.headingContainer:r,t))+'">\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.items:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'</div>\r\n<div class="videos-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.videoContainer:r,t))+'"></div>\r\n<div class="footer-region"></div>\r\n'},useData:!0})},1407:function(e,t,n){e.exports={migrationErrorView:"_1Jo6e",videoContainer:"_7tGnj",svgContainer:"csNIF",headingContainer:"_30NNv",tabsContainer:"_10__f"}},1459:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(2),r=n(5),l=n(30),a=n(3),s=n(15),u=n(285),c=n(4),p=n(42),f=n(187),h=n(0),d=n(8),g=n(13),y=n(283),m=n(1396),v=n(189),b=n(1033),w=n(97),k=n(1397),C=n(1062),S=n(1079);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=P(e);if(t){var i=P(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R,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&&O(e,t)}(r,e);var t,n,o,i=M(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},webplayer:{el:".webplayer-region"}}}},{key:"onRender",value:function(){this.showChildView("webplayer",new S.a({webPlayerUrl:this.options.webplayerUrl,model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))},trackingCode:this.model.get("trackingCode")}),captureAnalytics:!1})),this.model.get("description")&&this.showChildView("description",new C.a({model:this.model,linkify:!0,size:C.b.Large,truncate:!0,allowExpand:!0}))}},{key:"name",get:function(){return"ErroredVideoPreviewComponent"}},{key:"className",get:function(){return"p-3 border-top"}},{key:"template",get:function(){return k}},{key:"lang",get:function(){return"migrationWizard.erroredVideoPreview"}}])&&x(t.prototype,n),o&&x(t,o),r}(i.a.Component),V=n(1398),j=n(1399),T=n(47);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I="migrationWizard.utils",A=function(){return a.a.getPhrase(I,"videoFileCorrupt")},L=function(){return a.a.getPhrase(I,"videoFileInformationMissing")},U=function(){return a.a.getPhrase(I,"resouceFileMissing")},z=(N(R={},T.f.BinaryRemoved,(function(){return""})),N(R,T.f.LocalFileNotFound,(function(){return a.a.getPhrase(I,"videoFileMissing")})),N(R,T.f.DbEmptyChapter,A),N(R,T.f.DbChapterChecksumNotFound,A),N(R,T.f.DbChapterDurationNotFound,L),N(R,T.f.DbChapterFileSizeNotFound,L),N(R,T.f.DbChapterChecksumNotMatch,L),N(R,T.f.DbChapterDurationNotMatch,L),N(R,T.f.DbChapterFileSizeNotMatch,L),N(R,T.f.SubtitleUploadFailure,(function(){return a.a.getPhrase(I,"subtitleFileMissing")})),N(R,T.f.ResourceUploadFailure,U),N(R,T.f.ResourceFileNotFound,U),N(R,T.f.ResourceFileInvalid,U),N(R,T.f.DbResourceChecksumNotFound,U),N(R,T.f.DbResourceExtensionNotFound,U),N(R,T.f.DbResourceFileSizeNotFound,U),N(R,T.f.DbResourceChecksumNotMatch,U),N(R,T.f.DbResourceFileSizeNotMatch,U),N(R,T.f.CoverImageUploadFailure,(function(){return a.a.getPhrase(I,"thumbnailMissing")})),R),F=function(e){return o.unique(o.map(e,(function(e){return z[e]()})))},W=n(1036);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 q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Z(e);if(t){var i=Z(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==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 Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(r,e);var t,n,o,i=J(r);function r(){return q(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"viewOptions",value:function(){return{styles:j,errorStrings:F(this.model.get("clientValidationResults")),ratingColorClass:this.model.get("rating")&&W.i.mapRatingToClass(this.model.get("rating").value)}}},{key:"name",get:function(){return"ErroredVideoMetadataComponent"}},{key:"template",get:function(){return V}},{key:"lang",get:function(){return"migrationWizard.erroredVideoMetadata"}}])&&G(t.prototype,n),o&&G(t,o),r}(i.a.Component),Q="use-online-copy",X="do-not-add",$="migration:errored:videos:preview",ee="migration:errored:videos:selected",te=n(1400),ne=n(1401);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=se(e);if(t){var i=se(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ue=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&&re(e,t)}(r,e);var t,n,o,i=le(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render)}},{key:"events",value:function(){return{"click .use-online-copy":"onClickSelect","click .dismiss":"onClickDismiss"}}},{key:"isSelected",value:function(){return this.viewModel.get(this.model.get("id"))===Q}},{key:"onClickSelect",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.isSelected()?this.viewModel.unset(this.model.get("id")):this.viewModel.set(this.model.get("id"),Q)}},{key:"onClickDismiss",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.viewModel.set(this.model.get("id"),X)}},{key:"viewOptions",value:function(){return{styles:te,selected:this.isSelected(),checkSvg:s.a.getSvg(s.b.Check),previewSvg:s.a.getSvg(s.b.Preview)}}},{key:"name",get:function(){return"ErroredVideoActionsComponent"}},{key:"template",get:function(){return ne}},{key:"lang",get:function(){return"migrationWizard.erroredVideoActions"}},{key:"className",get:function(){return"text-right"}}])&&ie(t.prototype,n),o&&ie(t,o),r}(i.a.Component),ce=n(1402),pe=n(1403);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ve(e);if(t){var i=ve(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return me(this,n)}}function me(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=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&&ge(e,t)}(r,e);var t,n,o,i=ye(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.previewViewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad)}},{key:"regions",value:function(){var e;return he(e={},b.a.Thumbnail,".thumbnail-region"),he(e,b.a.Metadata,".metadata-region"),he(e,b.a.VideoActions,".video-actions-region"),he(e,b.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{"click .drag-item":"onClick","click .undo":"onClickUndo"}}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.previewViewModel.get(this.model.get("id"))?this.previewViewModel.unset(this.model.get("id")):(this.previewViewModel.clear(),this.previewViewModel.set(this.model.get("id"),!0))}},{key:"onClickUndo",value:function(){this.viewModel.unset(this.model.get("id"))}},{key:"shouldLazyLoadThumbnail",value:function(){return!!g.h.isLazyLoadSupported(h.p)&&!this.thumbnailLoaded}},{key:"renderThumbnail",value:function(){var e=new v.a({model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))}}),lazyload:this.shouldLazyLoadThumbnail(),channelName:this.channelName});this.showChildView(b.a.Thumbnail,e)}},{key:"renderMetadata",value:function(){var e=new K({model:this.model});this.showChildView(b.a.Metadata,e)}},{key:"renderActions",value:function(){var e=new ue({model:this.model});this.showChildView(b.a.VideoActions,e)}},{key:"renderPreview",value:function(){if(this.previewViewModel.get(this.model.get("id"))){var e=new D({model:this.model,webplayerUrl:this.options.webplayerUrl,imageCdnUrl:this.options.imageCdnUrl});this.showChildView(b.a.VideoInfo,e)}}},{key:"viewOptions",value:function(){return{styles:pe,doNotAdd:this.viewModel.get(this.model.get("id"))===X}}},{key:"onRender",value:function(){this.renderThumbnail(),this.renderMetadata(),this.renderActions(),this.renderPreview()}},{key:"name",get:function(){return"ErroredVideoItemComponent"}},{key:"template",get:function(){return ce}},{key:"lang",get:function(){return"migrationWizard.erroredVideoItem"}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"className",get:function(){return"border-bottom ".concat(pe.component)}}])&&de(t.prototype,n),o&&de(t,o),r}(i.a.Component);function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Se(e,t,n){return t&&Ce(e.prototype,t),n&&Ce(e,n),e}function Ee(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xe(e,t)}function xe(e,t){return(xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=_e(e);if(t){var i=_e(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pe=function(e){Ee(n,e);var t=Oe(n);function n(e){return ke(this,n),t.call(this,e)}return Se(n,[{key:"name",get:function(){return"ErroredVideoItemComponentCollection"}},{key:"childView",get:function(){return be}},{key:"childViewOptions",get:function(){return this.options}}]),n}(i.a.ComponentCollection),Re=function(e){Ee(n,e);var t=Oe(n);function n(e){return ke(this,n),t.call(this,e)}return Se(n,[{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("videos",new Pe(this.options))}},{key:"name",get:function(){return"ErroredVideoListComponent"}},{key:"template",get:function(){return m}},{key:"behaviors",get:function(){return[{behaviorClass:y.d,selector:".lazy-img",minBrowserSupportVersion:h.p}]}}]),n}(i.a.Component),De=n(1404),Ve=n(6);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Le(e);if(t){var i=Le(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){return!t||"object"!==je(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ue=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&&Ne(e,t)}(a,e);var t,n,i,r=Ie(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.listenTo(this.viewModel,"change",this.render)}},{key:"events",value:function(){return{"click .clear-all":"onClickClearAll","click .submit":"onClickSubmit"}}},{key:"onClickClearAll",value:function(){this.viewModel.clear()}},{key:"onClickSubmit",value:function(){Ve.Radio.channel(this.options.channelName).trigger(this.options.submitEvent)}},{key:"canSubmit",value:function(){return this.viewModel.keys().length>0}},{key:"countWillBeAdded",value:function(){var e=this;return o.filter(this.viewModel.keys(),(function(t){return e.viewModel.get(t)===Q})).length}},{key:"viewOptions",value:function(){return{count:this.countWillBeAdded(),submitDisabled:!this.canSubmit()}}},{key:"name",get:function(){return"ErroredVideoFooterComponent"}},{key:"template",get:function(){return De}},{key:"lang",get:function(){return"migrationWizard.erroredVideoFooter"}},{key:"className",get:function(){return"border-top px-3 py-2 text-right"}}])&&Te(t.prototype,n),i&&Te(t,i),a}(i.a.Component),ze=n(1123),Fe=n(1116),We=n(1405),Be=n(1406),qe=n(1407);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Qe(e);if(t){var i=Qe(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"MigrationErrorView",(function(){return Xe}));var Xe=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&&Ye(e,t)}(v,e);var t,n,y,m=Ze(v);function v(){return He(this,v),m.apply(this,arguments)}return t=v,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=r.a.getInstance(h.g.MigrationVideo,this),this.navLockService=r.a.getInstance(h.x.NavLock,this),this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(h.e.MIGRATION,"manual:review:videos:sync",this.render),this.listenTo(this.channelName,"submit",this.onSubmit),this.listenTo(this.viewModel,"change",this.onChangeSelected),this.page=1}},{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0},videos:{el:".videos-region",partialLoading:d.j.VideoList},footer:{el:".footer-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll","click .do-not-add":"onClickDoNotAdd"}}},{key:"onClickApproveAll",value:function(){var e={};this.collection.each((function(t){e[t.get("id")]=Q})),this.viewModel.set(e)}},{key:"onClickDoNotAdd",value:function(){this.previewViewModel.clear();var e={};this.collection.each((function(t){e[t.get("id")]=X})),this.viewModel.set(e)}},{key:"onChangeSelected",value:function(){this.viewModel.keys().length?this.navLockService.lock({title:a.a.getPhrase(this.lang,"navLockTitle"),text:a.a.getPhrase(this.lang,"navLockBody")}):this.navLockService.unlock()}},{key:"getDialog",value:function(e,t){return new g.d({title:a.a.getPhrase(this.lang,"dialogHeading"),text:We({onlineCopyCount:e,onlineCopyCountText:a.a.getPhrase(this.lang,"videos",{smartCount:e}),warningText:a.a.getPhrase(this.lang,"warningText",{smartCount:e}),doNotAddCount:t,doNotAddCountText:a.a.getPhrase(this.lang,"videos",{smartCount:t}),styles:qe,warningSvg:s.a.getSvg(s.b.Warning)}),buttons:[{text:a.a.getPhrase(this.lang,"submit"),className:"btn btn-primary",success:!0}]})}},{key:"getSelectedVideos",value:function(){var e=this,t=this.collection.filter((function(t){return e.viewModel.get(t.get("id"))===Q})),n=o.groupBy(t,(function(e){return e.get("category")})),r=o.map(o.keys(n),(function(e){return{folderChord:e,videoIds:o.map(n[e],(function(e){return e.get("id")}))}}));return new i.a.Collection(r)}},{key:"onSubmit",value:function(){var e=this,t=[],n=[];o.each(this.viewModel.keys(),(function(o){var i=e.viewModel.get(o);i===X&&t.push(+o),i===Q&&n.push(+o)}));var r=this.getDialog(n.length,t.length),l=!1,a=!1,s=0,u=function(){l&&a&&(n.length?(e.viewModel.clear({silent:!0}),e.navLockService.unlock(),i.a.AppLinkHelper.trigger({application:h.b.MIGRATION_WIZARD,action:h.a.MigrationWizard.PROGRESS,args:[s]})):(e.viewModel.clear(),e.migrationVideoDataService.clearCacheAndGetCustomerMetadata(),e.migrationVideoDataService.getManualReviewVideos(),delete e.collectionSubset))};r.render().done((function(){e.logMigrationActions(n,t),t.length?e.migrationVideoDataService.updateMigrationStatus(t,ze.a.HasNotBeenMigrated,(function(){l=!0,u()})):l=!0,n.length?e.migrationVideoDataService.finaliseCustomerVideos(e.getSelectedVideos(),!0,(function(e){a=!0,s=e.get("id"),u()})):a=!0}))}},{key:"logMigrationActions",value:function(e,t){var n=this;if(e.length){var i=o.map(e,(function(t){return n.processLogData(t,e)}));this.logData(c.q.ResolveWarning,i)}if(t.length){var r=o.map(t,(function(e){return n.processLogData(e,t)}));this.logData(c.q.DismissWarning,r)}}},{key:"logData",value:function(e,t){var n={location:c.k.MigrationWarnings,entity:c.e.Video},o=t.length===this.collection.length;p.a.logUserAction(t,p.a.mergeOptions(n,{actionType:e,descriptor:o?c.l.All:c.l.Single}))}},{key:"processLogData",value:function(e,t){var n=this.collection.get(e).pick("name","trackingCode");return{id:e,name:n.name,trackingCode:n.trackingCode,actionCount:t.length,warningCount:this.collection.length}}},{key:"unBindScroll",value:function(){this.getUI("videos").off("scroll")}},{key:"bindScroll",value:function(){this.scrollBound||(this.getUI("videos").on("scroll",o.bind(this.onScroll,this)),this.scrollBound=!0)}},{key:"onScroll",value:function(){var e=this.getUI("videos"),t=e.children().height()-e.height()/2;e.scrollTop()+e.height()<t||25*this.page>this.collection.length||(this.collectionSubset.add(o.first(this.collection.rest(25*this.page),25)),this.page++)}},{key:"viewOptions",value:function(){var e=this.config?"".concat(this.config.get("supportSiteUrl")).concat(h.y.MANUAL_REVIEW):"";return{styles:qe,supportArticle:e,items:this.collection&&this.collection.length}}},{key:"onBeforeRender",value:function(){return this.collection=this.migrationVideoDataService.getManualReviewVideos(),this.collection&&!this.collectionSubset&&(this.collectionSubset=new i.a.Collection(this.collection.first(25))),!!this.collection}},{key:"onRender",value:function(){this.showChildView("tabs",new Fe.h({selected:"migration-errors"})),this.showChildView("videos",new Re({collection:this.collectionSubset,imageCdnUrl:this.config.get("imageCdnUrl"),webplayerUrl:this.config.get("webPlayerUrl")})),this.showChildView("footer",new Ue({channelName:this.channelName,submitEvent:"submit"})),this.bindScroll()}},{key:"onBeforeDestroy",value:function(){this.unBindScroll()}},{key:"onDestroy",value:function(){l.a.clear($),l.a.clear(ee)}},{key:"name",get:function(){return"MigrationErrorView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.migrationError"}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{videos:".videos-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:u.a,region:"videos",type:d.c.ManualReviewVideos,emptyStateComponents:h.h}]}},{key:"template",get:function(){return Be}},{key:"className",get:function(){return"bg-white w-100 ".concat(qe.migrationErrorView)}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&Je(t.prototype,n),y&&Je(t,y),v}(i.a.View)}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[28],{1053:function(e,t,n){"use strict";var o,i;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(i||(i={}))},1082:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return w}));var o,i,r=n(2),l=n(12),a=n(3),s=n(1150),u=n.n(s),c=n(1151),p=n.n(c);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Small="sm",e.Large="lg"}(i||(i={}));var b=(v(o={},i.Small,3),v(o,i.Large,5),o),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,o,r=g(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=r.call(this,e)).showingMore=!1,t}return t=s,(n=[{key:"events",value:function(){return v({},"click .".concat(p.a.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.v.linkifyText(l.v.escapeExpression(this.model.get("description"))):this.options.highlighter?l.v.wordsHighlighter(l.v.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),t=e.descriptionTextEl,n=e.ellipsisEl;t.removeClass(p.a.truncateLarge).addClass(p.a.open),n.text(a.a.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,t=this.getDescriptionElements(),n=t.descriptionTextEl,o=t.ellipsisEl;this.options.size===i.Small&&(e="truncateSmall"),this.options.size===i.Large&&(e="truncateLarge"),n.addClass(p.a[e]),o.text(this.options.allowExpand?"... ".concat(a.a.getPhrase(this.lang,"showMore")):"...").removeClass(p.a.hideEllipsis).addClass(p.a.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,t=b[this.options.size];e.height()<=21*t||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:p.a,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}},{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description",ellipsis:this.options.allowExpand?".".concat(p.a.showMoreEllipsis):".".concat(p.a.singleEllipsis)}}}])&&h(t.prototype,n),o&&h(t,o),s}(r.a.Component)},1099:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var o=n(1),i=n(6),r=n(2),l=n(4),a=n(42),s=n(190),u=n(188),c=n(282),p=n(12),f=n(0),h=n(1205),d=n(1152),g=n.n(d);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?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 C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(y,e);var t,n,r,d=b(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),d.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(e){if(!this.player)return this.listenToOnce(this.options.channelName,"webplayer:loaded",o.bind(this.seekToChapter,this,e)),void this.renderVideoPreview();this.seekToChapter(e)}},{key:"seekToChapter",value:function(e){this.player.seekTo(e)}},{key:"onClick",value:function(){this.player||this.renderVideoPreview()}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new u.a({model:this.model,thumbnailOptions:{size:s.a.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName}))}},{key:"renderVideoPreview",value:function(){this.player=new h.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{entity:l.e.Video}),captureAnalytics:this.options.captureAnalytics}),this.showChildView("player",this.player)}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return g.a}},{key:"instanceChannelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.c,selector:".lazy-img",callback:function(){i.Radio.channel(e.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.p}]}}])&&m(t.prototype,n),r&&m(t,r),y}(r.a.Component)},1150:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.descriptionWrapper:r,t))+'">\r\n <p class="description '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.description:r,t))+'">'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.expandable:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),data:i}))?r:"")+"</p>\r\n </div>\r\n"},2:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+'<span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showMoreEllipsis:r,t))+" "+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.hideEllipsis:r,t))+'">... '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+'<span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.singleEllipsis:r,t))+" "+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.hideEllipsis:r,t))+'">...</span>'},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <p class="'+e.escapeExpression(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.description:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.truncate:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(6,i,0),data:i}))?r:""},useData:!0})},1151:function(e,t,n){e.exports={columnNames:"_1a1Re",descriptionWrapper:"_2MZC5",description:"_3U9j9",ellipsis:"_1YjUg",singleEllipsis:"_3SNtn",showMoreEllipsis:"xy3i9",showEllipsis:"_1_L9t",hideEllipsis:"TCdgP",open:"_18ojI",truncateSmall:"nLuVF",truncateLarge:"sEELY"}},1152:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="video-player-region cursor-pointer responsize-img">\r\n <div class="thumbnail-region"></div>\r\n</div>'},useData:!0})},1416:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="videos-region"></div>'},useData:!0})},1417:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return'<p class="text-uppercase text-muted">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.description:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="description-region"></div>\r\n<div class="webplayer-region col-5 pl-0"></div>'},useData:!0})},1418:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return" <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{series:null!=t?t.series:t},data:i}))+"</span>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return" "+(null!=(r=n.if.call(l,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{folder:null!=t?t.category:t},data:i}))+"</span>\r\n"},4:function(e,t,n,o,i){return'<span class="mx-1">|</span>'},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.rating:r,t))+" "+a(l(null!=(r=null!=t?t.options:t)?r.ratingColorClass:r,t))+'" title="'+a(l(null!=(r=null!=t?t.rating:t)?r.name:r,t))+'">'+a(l(null!=(r=null!=t?t.rating:t)?r.code:r,t))+"</span>\r\n"},8:function(e,t,n,o,i){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:""},9:function(e,t,n,o,i){return' <div class="text-danger">'+e.escapeExpression(e.lambda(t,t))+"</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l,a=null!=t?t:e.nullContext||{};return'<div>\r\n <a class="h6">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n</div>\r\n<div>\r\n"+(null!=(r=n.if.call(a,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=t?t.category:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"</div>\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.rating:t)?r.code:r,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.each.call(a,null!=(r=null!=t?t.options:t)?r.errorStrings:r,{name:"each",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1419:function(e,t,n){e.exports={rating:"_3IJcl"}},1420:function(e,t,n){e.exports={svgContainer:"_-0ibU",selectedButton:"_28zhr",showPreview:"_2r4VF"}},1421:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <button class="btn btn-success use-online-copy '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectedButton:r,t))+'"><span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.checkSvg:r,t))?r:"")+"</span>"+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"resolve",{name:"lang",hash:{},data:i}))+"</button>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <button class="btn btn-link dismiss">'+a((n.lang||t&&t.lang||l).call(r,"dismiss",{name:"lang",hash:{},data:i}))+'</button>\r\n <button class="btn btn-outline-secondary use-online-copy">'+a((n.lang||t&&t.lang||l).call(r,"resolve",{name:"lang",hash:{},data:i}))+"</button>\r\n"},5:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},7:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.lambda,s=e.escapeExpression;return"<div>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.selected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'</div>\r\n<div class="mt-4 cursor-pointer video-item-show-preview text-right '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showPreview:r,t))+'">\r\n <span class="svg-container d-inline-block">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.previewSvg:r,t))?r:"")+"</span>\r\n "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+" "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1422:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" cursor-pointer"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.doNotAdd:r,t))+' text-center">\r\n <p class="mb-0 mt-3">'+(null!=(r=(n.lang||t&&t.lang||s).call(a,"willNotBeAdded",{name:"lang",hash:{videoName:null!=t?t.name:t},data:i}))?r:"")+'</p>\r\n <p class="m-0">'+l((n.lang||t&&t.lang||s).call(a,"willBeRemoved",{name:"lang",hash:{},data:i}))+'</p>\r\n <button class="btn btn-link undo">'+l((n.lang||t&&t.lang||s).call(a,"undo",{name:"lang",hash:{},data:i}))+"</button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.videoItem:r,t))+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n <div class="thumbnail-region d-inline-block '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.thumbnailContainer:r,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metaContainer:r,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.actionsContainer:r,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.previewContainer:r,t))+'"></div>\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.doNotAdd:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1423:function(e,t,n){e.exports={component:"_13khy",thumbnailContainer:"_gEcp",metaContainer:"zuMb1",actionsContainer:"_1ppp8",videoItem:"_2Ru6c",doNotAdd:"_8l6WV"}},1424:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<span class="border-right d-inline-block align-middle pr-3">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosAdded",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.count:r},data:i}))+"</span>\r\n"},3:function(e,t,n,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.countPhrase:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<span class="d-inline-block align-middle"><button class="btn btn-link clear-all"'+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.submitDisabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+">"+s((n.lang||t&&t.lang||a).call(l,"reset",{name:"lang",hash:{},data:i}))+'</button></span>\r\n<button class="btn btn-primary align-middle ml-2 submit" '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.submitDisabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+">"+s((n.lang||t&&t.lang||a).call(l,"submit",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},1425:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="m-auto text-warning '+a(e.lambda(null!=(r=null!=t?t.styles:t)?r.svgContainer:r,t))+'">'+(null!=(r="function"==typeof(l=null!=(l=n.warningSvg||(null!=t?t.warningSvg:t))?l:u)?l.call(s,{name:"warningSvg",hash:{},data:i}):l)?r:"")+"</div>\r\n<p>\r\n <div>"+(null!=(r="function"==typeof(l=null!=(l=n.onlineCopyCountText||(null!=t?t.onlineCopyCountText:t))?l:u)?l.call(s,{name:"onlineCopyCountText",hash:{},data:i}):l)?r:"")+' will be migrated to your Library Editor ignoring all warnings.</div>\r\n <span class="text-danger">\r\n '+a("function"==typeof(l=null!=(l=n.warningText||(null!=t?t.warningText:t))?l:u)?l.call(s,{name:"warningText",hash:{},data:i}):l)+"\r\n </span>\r\n</p> \r\n"},3:function(e,t,n,o,i){var r,l;e.propertyIsEnumerable;return"<p>"+(null!=(r="function"==typeof(l=null!=(l=n.doNotAddCountText||(null!=t?t.doNotAddCountText:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"doNotAddCountText",hash:{},data:i}):l)?r:"")+" will be removed from this list and will not be added to your library.</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(l,null!=t?t.onlineCopyCount:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(l,null!=t?t.doNotAddCount:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1426:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return' <h2 class="h3">'+s((n.lang||t&&t.lang||a).call(l,"couldNotBeMigrated",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.items:r},data:i}))+'</h2>\r\n <p class="mb-1">'+s((n.lang||t&&t.lang||a).call(l,"ensureValidity",{name:"lang",hash:{},data:i}))+'</p>\r\n <p class="mb-2"><a href="'+s(e.lambda(null!=(r=null!=t?t.options:t)?r.supportArticle:r,t))+'" target="_blank" class="text-info">'+s((n.lang||t&&t.lang||a).call(l,"moreInfo",{name:"lang",hash:{},data:i}))+'</a></p>\r\n <button class="approve-all btn btn-success d-inline-block mr-2" type="button">'+s((n.lang||t&&t.lang||a).call(l,"resolve",{name:"lang",hash:{},data:i}))+'</button>\r\n <button class="do-not-add btn btn-link d-inline-block" type="button">'+s((n.lang||t&&t.lang||a).call(l,"dismiss",{name:"lang",hash:{},data:i}))+"</button>\r\n"},3:function(e,t,n,o,i){return""},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<div class="tab-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.tabsContainer:r,t))+' border-bottom"></div>\r\n<div class="p-3 border-bottom '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.headingContainer:r,t))+'">\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.items:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'</div>\r\n<div class="videos-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.videoContainer:r,t))+'"></div>\r\n<div class="footer-region"></div>\r\n'},useData:!0})},1427:function(e,t,n){e.exports={migrationErrorView:"_1Jo6e",videoContainer:"_7tGnj",svgContainer:"csNIF",headingContainer:"_30NNv",tabsContainer:"_10__f"}},1480:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(2),r=n(5),l=n(30),a=n(3),s=n(15),u=n(285),c=n(4),p=n(42),f=n(186),h=n(0),d=n(9),g=n(12),y=n(282),m=n(1416),v=n(188),b=n(1053),w=n(97),k=n(1417),C=n(1082),S=n(1099);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=P(e);if(t){var i=P(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R,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&&O(e,t)}(r,e);var t,n,o,i=M(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},webplayer:{el:".webplayer-region"}}}},{key:"onRender",value:function(){this.showChildView("webplayer",new S.a({webPlayerUrl:this.options.webplayerUrl,model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))},trackingCode:this.model.get("trackingCode")}),captureAnalytics:!1})),this.model.get("description")&&this.showChildView("description",new C.a({model:this.model,linkify:!0,size:C.b.Large,truncate:!0,allowExpand:!0}))}},{key:"name",get:function(){return"ErroredVideoPreviewComponent"}},{key:"className",get:function(){return"p-3 border-top"}},{key:"template",get:function(){return k}},{key:"lang",get:function(){return"migrationWizard.erroredVideoPreview"}}])&&x(t.prototype,n),o&&x(t,o),r}(i.a.Component),V=n(1418),j=n(1419),T=n(47);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I="migrationWizard.utils",A=function(){return a.a.getPhrase(I,"videoFileCorrupt")},L=function(){return a.a.getPhrase(I,"videoFileInformationMissing")},U=function(){return a.a.getPhrase(I,"resouceFileMissing")},z=(N(R={},T.f.BinaryRemoved,(function(){return""})),N(R,T.f.LocalFileNotFound,(function(){return a.a.getPhrase(I,"videoFileMissing")})),N(R,T.f.DbEmptyChapter,A),N(R,T.f.DbChapterChecksumNotFound,A),N(R,T.f.DbChapterDurationNotFound,L),N(R,T.f.DbChapterFileSizeNotFound,L),N(R,T.f.DbChapterChecksumNotMatch,L),N(R,T.f.DbChapterDurationNotMatch,L),N(R,T.f.DbChapterFileSizeNotMatch,L),N(R,T.f.SubtitleUploadFailure,(function(){return a.a.getPhrase(I,"subtitleFileMissing")})),N(R,T.f.ResourceUploadFailure,U),N(R,T.f.ResourceFileNotFound,U),N(R,T.f.ResourceFileInvalid,U),N(R,T.f.DbResourceChecksumNotFound,U),N(R,T.f.DbResourceExtensionNotFound,U),N(R,T.f.DbResourceFileSizeNotFound,U),N(R,T.f.DbResourceChecksumNotMatch,U),N(R,T.f.DbResourceFileSizeNotMatch,U),N(R,T.f.CoverImageUploadFailure,(function(){return a.a.getPhrase(I,"thumbnailMissing")})),R),F=function(e){return o.unique(o.map(e,(function(e){return z[e]()})))},W=n(1056);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 q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Z(e);if(t){var i=Z(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==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 Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(r,e);var t,n,o,i=J(r);function r(){return q(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"viewOptions",value:function(){return{styles:j,errorStrings:F(this.model.get("clientValidationResults")),ratingColorClass:this.model.get("rating")&&W.i.mapRatingToClass(this.model.get("rating").value)}}},{key:"name",get:function(){return"ErroredVideoMetadataComponent"}},{key:"template",get:function(){return V}},{key:"lang",get:function(){return"migrationWizard.erroredVideoMetadata"}}])&&G(t.prototype,n),o&&G(t,o),r}(i.a.Component),Q="use-online-copy",X="do-not-add",$="migration:errored:videos:preview",ee="migration:errored:videos:selected",te=n(1420),ne=n(1421);function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=se(e);if(t){var i=se(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ue=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&&re(e,t)}(r,e);var t,n,o,i=le(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render)}},{key:"events",value:function(){return{"click .use-online-copy":"onClickSelect","click .dismiss":"onClickDismiss"}}},{key:"isSelected",value:function(){return this.viewModel.get(this.model.get("id"))===Q}},{key:"onClickSelect",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.isSelected()?this.viewModel.unset(this.model.get("id")):this.viewModel.set(this.model.get("id"),Q)}},{key:"onClickDismiss",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.viewModel.set(this.model.get("id"),X)}},{key:"viewOptions",value:function(){return{styles:te,selected:this.isSelected(),checkSvg:s.a.getSvg(s.b.Check),previewSvg:s.a.getSvg(s.b.Preview)}}},{key:"name",get:function(){return"ErroredVideoActionsComponent"}},{key:"template",get:function(){return ne}},{key:"lang",get:function(){return"migrationWizard.erroredVideoActions"}},{key:"className",get:function(){return"text-right"}}])&&ie(t.prototype,n),o&&ie(t,o),r}(i.a.Component),ce=n(1422),pe=n(1423);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ve(e);if(t){var i=ve(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return me(this,n)}}function me(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=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&&ge(e,t)}(r,e);var t,n,o,i=ye(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.previewViewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad)}},{key:"regions",value:function(){var e;return he(e={},b.a.Thumbnail,".thumbnail-region"),he(e,b.a.Metadata,".metadata-region"),he(e,b.a.VideoActions,".video-actions-region"),he(e,b.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{"click .drag-item":"onClick","click .undo":"onClickUndo"}}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.previewViewModel.get(this.model.get("id"))?this.previewViewModel.unset(this.model.get("id")):(this.previewViewModel.clear(),this.previewViewModel.set(this.model.get("id"),!0))}},{key:"onClickUndo",value:function(){this.viewModel.unset(this.model.get("id"))}},{key:"shouldLazyLoadThumbnail",value:function(){return!!g.h.isLazyLoadSupported(h.p)&&!this.thumbnailLoaded}},{key:"renderThumbnail",value:function(){var e=new v.a({model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))}}),lazyload:this.shouldLazyLoadThumbnail(),channelName:this.channelName});this.showChildView(b.a.Thumbnail,e)}},{key:"renderMetadata",value:function(){var e=new K({model:this.model});this.showChildView(b.a.Metadata,e)}},{key:"renderActions",value:function(){var e=new ue({model:this.model});this.showChildView(b.a.VideoActions,e)}},{key:"renderPreview",value:function(){if(this.previewViewModel.get(this.model.get("id"))){var e=new D({model:this.model,webplayerUrl:this.options.webplayerUrl,imageCdnUrl:this.options.imageCdnUrl});this.showChildView(b.a.VideoInfo,e)}}},{key:"viewOptions",value:function(){return{styles:pe,doNotAdd:this.viewModel.get(this.model.get("id"))===X}}},{key:"onRender",value:function(){this.renderThumbnail(),this.renderMetadata(),this.renderActions(),this.renderPreview()}},{key:"name",get:function(){return"ErroredVideoItemComponent"}},{key:"template",get:function(){return ce}},{key:"lang",get:function(){return"migrationWizard.erroredVideoItem"}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"className",get:function(){return"border-bottom ".concat(pe.component)}}])&&de(t.prototype,n),o&&de(t,o),r}(i.a.Component);function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Se(e,t,n){return t&&Ce(e.prototype,t),n&&Ce(e,n),e}function Ee(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xe(e,t)}function xe(e,t){return(xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=_e(e);if(t){var i=_e(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pe=function(e){Ee(n,e);var t=Oe(n);function n(e){return ke(this,n),t.call(this,e)}return Se(n,[{key:"name",get:function(){return"ErroredVideoItemComponentCollection"}},{key:"childView",get:function(){return be}},{key:"childViewOptions",get:function(){return this.options}}]),n}(i.a.ComponentCollection),Re=function(e){Ee(n,e);var t=Oe(n);function n(e){return ke(this,n),t.call(this,e)}return Se(n,[{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("videos",new Pe(this.options))}},{key:"name",get:function(){return"ErroredVideoListComponent"}},{key:"template",get:function(){return m}},{key:"behaviors",get:function(){return[{behaviorClass:y.c,selector:".lazy-img",minBrowserSupportVersion:h.p}]}}]),n}(i.a.Component),De=n(1424),Ve=n(6);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Le(e);if(t){var i=Le(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){return!t||"object"!==je(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ue=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&&Ne(e,t)}(a,e);var t,n,i,r=Ie(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.listenTo(this.viewModel,"change",this.render)}},{key:"events",value:function(){return{"click .clear-all":"onClickClearAll","click .submit":"onClickSubmit"}}},{key:"onClickClearAll",value:function(){this.viewModel.clear()}},{key:"onClickSubmit",value:function(){Ve.Radio.channel(this.options.channelName).trigger(this.options.submitEvent)}},{key:"canSubmit",value:function(){return this.viewModel.keys().length>0}},{key:"countWillBeAdded",value:function(){var e=this;return o.filter(this.viewModel.keys(),(function(t){return e.viewModel.get(t)===Q})).length}},{key:"viewOptions",value:function(){return{count:this.countWillBeAdded(),submitDisabled:!this.canSubmit()}}},{key:"name",get:function(){return"ErroredVideoFooterComponent"}},{key:"template",get:function(){return De}},{key:"lang",get:function(){return"migrationWizard.erroredVideoFooter"}},{key:"className",get:function(){return"border-top px-3 py-2 text-right"}}])&&Te(t.prototype,n),i&&Te(t,i),a}(i.a.Component),ze=n(1144),Fe=n(1136),We=n(1425),Be=n(1426),qe=n(1427);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Qe(e);if(t){var i=Qe(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"MigrationErrorView",(function(){return Xe}));var Xe=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&&Ye(e,t)}(v,e);var t,n,y,m=Ze(v);function v(){return He(this,v),m.apply(this,arguments)}return t=v,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=r.a.getInstance(h.g.MigrationVideo,this),this.navLockService=r.a.getInstance(h.x.NavLock,this),this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(h.e.MIGRATION,"manual:review:videos:sync",this.render),this.listenTo(this.channelName,"submit",this.onSubmit),this.listenTo(this.viewModel,"change",this.onChangeSelected),this.page=1}},{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0},videos:{el:".videos-region",partialLoading:d.h.VideoList},footer:{el:".footer-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll","click .do-not-add":"onClickDoNotAdd"}}},{key:"onClickApproveAll",value:function(){var e={};this.collection.each((function(t){e[t.get("id")]=Q})),this.viewModel.set(e)}},{key:"onClickDoNotAdd",value:function(){this.previewViewModel.clear();var e={};this.collection.each((function(t){e[t.get("id")]=X})),this.viewModel.set(e)}},{key:"onChangeSelected",value:function(){this.viewModel.keys().length?this.navLockService.lock({title:a.a.getPhrase(this.lang,"navLockTitle"),text:a.a.getPhrase(this.lang,"navLockBody")}):this.navLockService.unlock()}},{key:"getDialog",value:function(e,t){return new g.d({title:a.a.getPhrase(this.lang,"dialogHeading"),text:We({onlineCopyCount:e,onlineCopyCountText:a.a.getPhrase(this.lang,"videos",{smartCount:e}),warningText:a.a.getPhrase(this.lang,"warningText",{smartCount:e}),doNotAddCount:t,doNotAddCountText:a.a.getPhrase(this.lang,"videos",{smartCount:t}),styles:qe,warningSvg:s.a.getSvg(s.b.Warning)}),buttons:[{text:a.a.getPhrase(this.lang,"submit"),className:"btn btn-primary",success:!0}]})}},{key:"getSelectedVideos",value:function(){var e=this,t=this.collection.filter((function(t){return e.viewModel.get(t.get("id"))===Q})),n=o.groupBy(t,(function(e){return e.get("category")})),r=o.map(o.keys(n),(function(e){return{folderChord:e,videoIds:o.map(n[e],(function(e){return e.get("id")}))}}));return new i.a.Collection(r)}},{key:"onSubmit",value:function(){var e=this,t=[],n=[];o.each(this.viewModel.keys(),(function(o){var i=e.viewModel.get(o);i===X&&t.push(+o),i===Q&&n.push(+o)}));var r=this.getDialog(n.length,t.length),l=!1,a=!1,s=0,u=function(){l&&a&&(n.length?(e.viewModel.clear({silent:!0}),e.navLockService.unlock(),i.a.AppLinkHelper.trigger({application:h.b.MIGRATION_WIZARD,action:h.a.MigrationWizard.PROGRESS,args:[s]})):(e.viewModel.clear(),e.migrationVideoDataService.clearCacheAndGetCustomerMetadata(),e.migrationVideoDataService.getManualReviewVideos(),delete e.collectionSubset))};r.render().done((function(){e.logMigrationActions(n,t),t.length?e.migrationVideoDataService.updateMigrationStatus(t,ze.a.HasNotBeenMigrated,(function(){l=!0,u()})):l=!0,n.length?e.migrationVideoDataService.finaliseCustomerVideos(e.getSelectedVideos(),!0,(function(e){a=!0,s=e.get("id"),u()})):a=!0}))}},{key:"logMigrationActions",value:function(e,t){var n=this;if(e.length){var i=o.map(e,(function(t){return n.processLogData(t,e)}));this.logData(c.q.ResolveWarning,i)}if(t.length){var r=o.map(t,(function(e){return n.processLogData(e,t)}));this.logData(c.q.DismissWarning,r)}}},{key:"logData",value:function(e,t){var n={location:c.k.MigrationWarnings,entity:c.e.Video},o=t.length===this.collection.length;p.a.logUserAction(t,p.a.mergeOptions(n,{actionType:e,descriptor:o?c.l.All:c.l.Single}))}},{key:"processLogData",value:function(e,t){var n=this.collection.get(e).pick("name","trackingCode");return{id:e,name:n.name,trackingCode:n.trackingCode,actionCount:t.length,warningCount:this.collection.length}}},{key:"unBindScroll",value:function(){this.getUI("videos").off("scroll")}},{key:"bindScroll",value:function(){this.scrollBound||(this.getUI("videos").on("scroll",o.bind(this.onScroll,this)),this.scrollBound=!0)}},{key:"onScroll",value:function(){var e=this.getUI("videos"),t=e.children().height()-e.height()/2;e.scrollTop()+e.height()<t||25*this.page>this.collection.length||(this.collectionSubset.add(o.first(this.collection.rest(25*this.page),25)),this.page++)}},{key:"viewOptions",value:function(){var e=this.config?"".concat(this.config.get("supportSiteUrl")).concat(h.y.MANUAL_REVIEW):"";return{styles:qe,supportArticle:e,items:this.collection&&this.collection.length}}},{key:"onBeforeRender",value:function(){return this.collection=this.migrationVideoDataService.getManualReviewVideos(),this.collection&&!this.collectionSubset&&(this.collectionSubset=new i.a.Collection(this.collection.first(25))),!!this.collection}},{key:"onRender",value:function(){this.showChildView("tabs",new Fe.h({selected:"migration-errors"})),this.showChildView("videos",new Re({collection:this.collectionSubset,imageCdnUrl:this.config.get("imageCdnUrl"),webplayerUrl:this.config.get("webPlayerUrl")})),this.showChildView("footer",new Ue({channelName:this.channelName,submitEvent:"submit"})),this.bindScroll()}},{key:"onBeforeDestroy",value:function(){this.unBindScroll()}},{key:"onDestroy",value:function(){l.a.clear($),l.a.clear(ee)}},{key:"name",get:function(){return"MigrationErrorView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.migrationError"}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{videos:".videos-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:u.a,region:"videos",type:d.c.ManualReviewVideos,emptyStateComponents:h.h}]}},{key:"template",get:function(){return Be}},{key:"className",get:function(){return"bg-white w-100 ".concat(qe.migrationErrorView)}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&Je(t.prototype,n),y&&Je(t,y),v}(i.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[29],{1064:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(287);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,i,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return r.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}}])&&l(t.prototype,n),i&&l(t,i),u}(i.a.ComponentCollection)},1069:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),i=n(2),r=n(3),a=n(1083),l=n(12),s=n(1070),c=n.n(s),u=n(1071),d=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(u,e);var t,n,i,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=l.f.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.a.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new a.a({styles:d.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:d.a.list,extraClasses:d.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:d.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&h(t.prototype,n),i&&h(t,i),u}(i.a.Component)},1070:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.customItem:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<button\r\n class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectBtn:r,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+l(a(null!=(r=null!=t?t.options:t)?r.name:r,t))+"\r\n>"+l(a(null!=(r=null!=t?t.options:t)?r.buttonText:r,t))+'</button>\r\n<div class="dropdown-menu '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selector:r,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.canCreateNew:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1071:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1106:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(6),r=n(2),a=n(1064),l=n(12),s=n(1107),c=n.n(s),u=n(1108),d=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(u,e);var t,n,r,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){l.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(l.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(l.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),i.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=l.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=l.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(l.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var i=n[this.sameCharIndex];return i||(i=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,i}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(i))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=l.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:d.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(d.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&h(t.prototype,n),r&&h(t,r),u}(r.a.Component)},1107:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \r\n name="'+l(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+l(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1108:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1365:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="top-actions-region"></div>\r\n<div class="videos-region"></div>\r\n<div class="bottom-actions-region"></div>'},useData:!0})},1366:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;return'<div class="finish-button-region"></div>\r\n<button class="btn btn-secondary float-right add-more-videos">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMore",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},1367:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="dropdown-menu-region"></div>'},useData:!0})},1368:function(e,t,n){e.exports={requiredStar:"_3m_pH"}},1369:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.requiredStar:r,t))+'">*</span>'},3:function(e,t,n,o,i){return' <div class="library-select-region form-group col-6"></div>\r\n'},5:function(e,t,n,o,i){return"col-6"},7:function(e,t,n,o,i){return"col-12"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"uploadDestination",{name:"lang",hash:{},data:i}))+(null!=(r=n.if.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.requiredFields:r)?r.uploadDestination:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</h5>\r\n <div class="container-fluid px-0">\r\n <div class="row">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="folder-select-region form-group '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+'"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1370:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="progress-bar bg-info" style="width: '+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'%" aria-valuenow="'+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'" aria-valuemin="0" aria-valuemax="100"></div>'},useData:!0})},1371:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hideMetadata",{name:"lang",hash:{},data:i}))},3:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMetadata",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="upload-title-region"></div>\r\n<div class="container-fluid border-bottom">\r\n <div class="row">\r\n <div class="col-4 p-3">\r\n <div class="thumbnail-region"></div>\r\n <div class="upload-progress-region"></div>\r\n <div class="my-3">\r\n <h5 class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.title:r,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(s,{name:"name",hash:{},data:i}):a)+'</h5>\r\n <div class="text-progress-region"></div>\r\n <button class="btn btn-secondary cancel-upload">'+l((n.lang||t&&t.lang||c).call(s,"cancel",{name:"lang",hash:{},data:i}))+'</button>\r\n </div>\r\n\r\n </div>\r\n <div class="col-8 py-3 pr-3">\r\n <div class="video-details-region"></div>\r\n <div class="folder-select-region"></div>\r\n <div class="additional-info-region"></div>\r\n <div class="production-info-region"></div>\r\n <div class="video-options-region"></div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="p-2 text-center">\r\n <button class="add-advanced-metadata btn btn-link">'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.showAdvanced:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+"</a>\r\n</div>"},useData:!0})},1372:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.name:r,t))},useData:!0})},1373:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploading",{name:"lang",hash:{percentage:null!=(r=null!=t?t.options:t)?r.percentage:r},data:i}))},useData:!0})},1374:function(e,t,n){e.exports={title:"_2yTdm"}},1375:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0">\r\n <div class="d-block">\r\n <label>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningHeading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="custom-toggle toggle-option float-right'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.isSelected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"><span class="handle"></span></div>\r\n </div>\r\n <p class=\'mb-0 mr-5\'>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningInfo",{name:"lang",hash:{},data:i}))+"</p>\r\n </div>\r\n </div>\r\n</div>\r\n \r\n"},useData:!0})},1481:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(6),r=n(2),a=n(30),l=n(5),s=n(3),c=n(52),u=n(14),d=n(60),f=n(1365),h=n.n(f),p=n(299),y=n(292),g=n(12),m=n(244),v=n(1366),b=n.n(v);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=N(e);if(t){var i=N(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(l,e);var t,n,o,r=C(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.model=a.a.get("upload:progress:".concat(p.d.Video)),this.listenTo(this.model,"change:done",this.render),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.options.uploadChannelName,"start:spinner",this.startSpinner)}},{key:"regions",value:function(){return{finishButton:{el:".finish-button-region",replaceElement:!0}}}},{key:"startSpinner",value:function(){i.Radio.channel(this.channelName).trigger(m.b.ShowSpinner)}},{key:"onClickContinue",value:function(){this.model.get("done")&&i.Radio.channel(this.options.uploadChannelName).trigger("continue")}},{key:"onRender",value:function(){this.showChildView("finishButton",new m.a({channelName:this.channelName,disabled:!this.model.get("done"),saveEvent:"continue",extraButtonClass:"btn-primary float-right ml-3",buttonText:s.a.getPhrase(this.lang,"finish"),spinnerOptions:{size:g.r.Small,type:g.s.Light,extraClasses:"mx-auto"},tooltip:{title:this.model.get("done")?"":s.a.getPhrase(this.lang,"stillUploading")}}))}},{key:"name",get:function(){return"UploadActionsComponent"}},{key:"lang",get:function(){return"upload.uploadActions"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"clearfix my-3"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:y.a,buttonSelector:".add-more-videos",channelName:this.options.uploadChannelName,acceptMultiple:!0,mimeType:"video/*"}]}}])&&S(t.prototype,n),o&&S(t,o),l}(r.a.Component),T=n(29),P=n(188),_=n(190),I=n(97),R=n(1213),E=n(1216),D=n(1218),A=n(1065),j=(n(296),n(297),n(144)),L=n(82),M=n(1069),F=n(42),V=n(49),U=n(58),B=n(1106),z=n(1367),H=n.n(z);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Y(e);if(t){var i=Y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return G(this,n)}}function G(e,t){return!t||"object"!==J(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Q=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&&q(e,t)}(l,e);var t,n,r,a=W(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.prepareData(),this.bindListeners()}},{key:"prepareData",value:function(){var e=this.options.library?this.options.library.collection:this.collection;this.collection=V.a.flatten(e),g.c.setSelected(this.options.currentFolderId,this.collection),this.options.canCreateFolder&&this.collection.add({name:s.a.getPhrase(this.lang,"createNew"),eventName:"create:folder"})}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"create:folder",this.onClickCreateFolder),this.listenTo(this.channelName,"select:option:selected",(function(t){i.Radio.channel(e.options.channelName).trigger("folder:selected",t)}))}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onClickCreateFolder",value:function(){i.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"generatePrefix",value:function(){var e=this.model.get("depth");if(!o.isNumber(e)||this.model.get("hidePrefix"))return"";for(var t="",n=0;n<e;n++)t+=" ";return e&&(t+="- "),t}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disableLibraries,t=this.options.disabledFolderIds;return function(n){var i=n||this.model;return!(!e||i.get("type")!==U.a.CustomLibrary)||!(!t||!o.contains(t,i.get("id").toString()))}}},{key:"onRender",value:function(){this.showChildView("dropdown",new B.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",prefixHandler:this.generatePrefix,currentSelectedMessage:this.options.currentSelectedMessage||s.a.getPhrase(this.lang,"current"),isDisabled:this.getIsOptionDisabledFn(),truncateOptionNames:!0},placeholderText:this.options.placeholderText||s.a.getPhrase(this.lang,"placeholder"),noOptionsText:s.a.getPhrase(this.lang,"noFolders"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:F.a}))}},{key:"lang",get:function(){return"libraryEditor.folderSelect"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"name",get:function(){return"FolderSelectView"}},{key:"className",get:function(){return"position-relative"}},{key:"template",get:function(){return H.a}}])&&K(t.prototype,n),r&&K(t,r),l}(r.a.Component),X=n(1368),Z=n.n(X),ee=n(1369),te=n.n(ee);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=le(e);if(t){var i=le(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=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&&ie(e,t)}(a,e);var t,n,o,r=re(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){var e=this;this.librariesWithoutFolders=new j.a,this.collection.each((function(t){return e.librariesWithoutFolders.add(t.toFlatJSON())})),this.listenTo(this.libraryChannelName,"folder:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected new:folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onCreateFolderClicked),!this.hasMultipleLibraries()&&this.librariesWithoutFolders.first()&&this.model.set("libraryId",this.librariesWithoutFolders.first().get("id"));var t=this.collection.get(this.model.get("libraryId"));if(t){var n=g.f.getSelected(this.folderTreeKey,t.children);this.options.preselectedFolderId&&!n&&this.onFolderSelected(this.options.preselectedFolderId)}}},{key:"regions",value:function(){return{librarySelect:".library-select-region",folderSelect:".folder-select-region"}}},{key:"hasMultipleLibraries",value:function(){return this.librariesWithoutFolders.length>1}},{key:"onLibrarySelected",value:function(e){this.model.set("libraryId",e.get("id")),this.model.unset("folderId"),this.render()}},{key:"onFolderSelected",value:function(e){var t=e;e instanceof L.a&&(t=e.get("id")),this.model.set("folderId",t);var n=this.collection.get(this.model.get("libraryId")).children;g.f.setSelected(this.folderTreeKey,t,n),this.model.validate()}},{key:"onCreateFolderClicked",value:function(){i.Radio.channel(this.options.channelName).trigger("show:new:folder",this.model.get("libraryId"),this.channelName)}},{key:"renderLibrarySelect",value:function(){if(this.hasMultipleLibraries()){var e=new Q({collection:this.librariesWithoutFolders,channelName:this.libraryChannelName,placeholderText:s.a.getPhrase(this.lang,"selectLibraryPlaceholder"),currentFolderId:this.model.get("libraryId"),currentSelectedMessage:s.a.getPhrase(this.lang,"currentLibrary"),inputName:"libraryId",canCreateFolder:!1});this.showChildView("librarySelect",e)}}},{key:"renderFolderSelect",value:function(){var e=this.model.get("libraryId");if(e){var t=this.collection.get(e);this.showChildView("folderSelect",new M.a({collection:t.children,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0,name:"folderId"}))}}},{key:"viewOptions",value:function(){return{styles:Z.a,hasMultipleLibraries:this.hasMultipleLibraries(),requiredFields:this.options.requiredFields}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect()}},{key:"name",get:function(){return"UploadFolderSelectComponent"}},{key:"template",get:function(){return te.a}},{key:"lang",get:function(){return"upload.uploadFolderSelect"}},{key:"folderTreeKey",get:function(){return"folder:tree:".concat(this.model.cid)}},{key:"libraryChannelName",get:function(){return"".concat(this.channelName,":").concat(this.options.selectId,":libraries")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid).concat(this.options.selectId)}}])&&oe(t.prototype,n),o&&oe(t,o),a}(r.a.Component),ce=n(1370),ue=n.n(ce);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function pe(e,t){return(pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=me(e);if(t){var i=me(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ge(this,n)}}function ge(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=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&&pe(e,t)}(r,e);var t,n,o,i=ye(r);function r(){return fe(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.update)}},{key:"update",value:function(){var e=this.model.get("progress"),t=this.getUI("progressBar");t&&t.get(0)&&$(t.get(0)).css("width","".concat(e,"%"))}},{key:"name",get:function(){return"UploadProgressComponent"}},{key:"template",get:function(){return ue.a}},{key:"className",get:function(){return"progress my-3"}},{key:"elements",get:function(){return{progressBar:".progress-bar"}}}])&&he(t.prototype,n),o&&he(t,o),r}(r.a.Component),be=n(1371),we=n.n(be),Se=n(1372),ke=n.n(Se),Ce=n(1373),Oe=n.n(Ce),Ne=n(1374),xe=n.n(Ne),Te=n(1375),Pe=n.n(Te);function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ae(e);if(t){var i=Ae(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return De(this,n)}}function De(e,t){return!t||"object"!==_e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=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&&Re(e,t)}(r,e);var t,n,o,i=Ee(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"events",value:function(){return{"click .toggle-option":"onToggleAutoCaptioning"}}},{key:"onToggleAutoCaptioning",value:function(e){e.stopPropagation(),this.model.set("autoCaption",!this.model.get("autoCaption")),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("autoCaption")}}},{key:"name",get:function(){return"UploadVideoOptionsComponent"}},{key:"template",get:function(){return Pe.a}},{key:"lang",get:function(){return"upload.uploadVideoOptions"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"border-top pt-3"}}])&&Ie(t.prototype,n),o&&Ie(t,o),r}(r.a.Component);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ve(e,t,n){return t&&Fe(e.prototype,t),n&&Fe(e,n),e}function Ue(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Je(e);if(t){var i=Je(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"viewOptions",value:function(){return{name:this.model.get("name")||this.model.get("fileName")}}},{key:"name",get:function(){return"UploadTitleComponent"}},{key:"template",get:function(){return ke.a}},{key:"tagName",get:function(){return"h3"}},{key:"className",get:function(){return"mb-0 border-bottom p-3 ".concat(xe.a.title)}}]),n}(r.a.Component),qe=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"viewOptions",value:function(){return{percentage:Math.round(this.model.get("progress")||0)}}},{key:"name",get:function(){return"TextProgressComponent"}},{key:"template",get:function(){return Oe.a}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"className",get:function(){return" text-muted"}},{key:"tagName",get:function(){return"p"}}]),n}(r.a.Component),We=function(e){Ue(n,e);var t=ze(n);function n(e){return Me(this,n),t.call(this,e)}return Ve(n,[{key:"initialize",value:function(){this.viewModel=a.a.get("upload:".concat(this.model.get("id")),{name:this.model.get("name"),fileName:this.model.get("name"),showAdvanced:this.options.openAdvancedMetadata,rating:this.options.ratings.findWhere({value:0}),folderId:this.options.folderId,libraryId:this.options.libraryId,timeInitialized:T(),autoCaption:!1},{ctor:I.a}),this.viewModel.addValidation(A.a),this.listenTo(this.channelName,"select:rating",o.partial(this.onAssociationSelected,o,"rating")),this.listenTo(this.channelName,"select:channel",o.partial(this.onAssociationSelected,o,"channel")),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.options.uploadChannelName,"invalid:".concat(this.model.get("id")),this.scrollTo)}},{key:"events",value:function(){return{"click .add-advanced-metadata":"onClickAddAdvancedMetadata","click .cancel-upload":"onClickCancelUpload"}}},{key:"regions",value:function(){return{progress:{el:".upload-progress-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},uploadTitle:{el:".upload-title-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0},textProgress:{el:".text-progress-region",replaceElement:!0},videoDetails:{el:".video-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},advancedDetails:{el:".additional-info-region",replaceElement:!0},uploadOptions:{el:".video-options-region",replaceElement:!0}}}},{key:"onClickAddAdvancedMetadata",value:function(){this.viewModel.set("showAdvanced",!this.viewModel.get("showAdvanced")),this.render()}},{key:"onClickCancelUpload",value:function(){var e=this,t={title:s.a.getPhrase(this.lang,"cancelHeading"),text:s.a.getPhrase(this.lang,"cancelBody",{videoTitle:this.model.get("name")}),buttons:[{text:s.a.getPhrase(this.lang,"yes"),className:"btn btn-primary",success:!0},{text:s.a.getPhrase(this.lang,"no"),className:"btn btn-link",close:!0}],channelName:this.channelName};new g.d(t).render().done((function(){i.Radio.channel(e.options.uploadChannelName).trigger("cancel:upload",e.model.get("id"))}))}},{key:"onAssociationSelected",value:function(e,t){var n=this.viewModel.get(t);if(n instanceof r.a.Collection){var i=n.filter((function(t){return!t.id||t.name===e.name}));o.each(i,(function(e){return n.remove(e)})),this.viewModel.get(t).add(e)}else this.viewModel.set(t,e)}},{key:"onSelectSeries",value:function(e){var t=this,n=i.Radio.channel(this.options.uploadChannelName);e.id?n.trigger("get:series",e.id,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()})):e.name&&n.trigger("create:series",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()}))}},{key:"onSelectSeason",value:function(e){var t=this;if(o.isNull(e))return this.viewModel.get("season").clear({silent:!0}),g.c.deselectAll(this.viewModel.get("series.seasons")),this.onAssociationSelected(null,"season"),void this.renderAdvancedVideoDetails();if(e.id)return g.c.setSelected(e.id,this.viewModel.get("series.seasons")),this.onAssociationSelected(e,"season"),void this.renderAdvancedVideoDetails();if(e.number){var n=this.viewModel.get("series.id");i.Radio.channel(this.options.uploadChannelName).trigger("create:season",e,n,(function(e){t.viewModel.get("series.seasons").add(e.toJSON()),g.c.setSelected(e.id,t.viewModel.get("series.seasons")),t.onAssociationSelected(e.toJSON(),"season"),t.renderAdvancedVideoDetails()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"distributors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"distributors")}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"productionCompanies"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"productionCompanies")}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"directors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"directors")}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"producers"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"producers")}))}},{key:"getRequiredFields",value:function(){return{uploadDestination:!0}}},{key:"renderTitle",value:function(){var e=new Ke({model:this.viewModel});this.showChildView("uploadTitle",e)}},{key:"renderThumbnail",value:function(){var e=new P.a({model:this.viewModel,thumbnailOptions:{size:_.a.Medium}});this.showChildView("thumbnail",e)}},{key:"renderProgress",value:function(){var e=new ve({model:this.model});this.showChildView("progress",e);var t=new qe({model:this.model});this.showChildView("textProgress",t)}},{key:"renderBasicVideoDetails",value:function(){var e=new R.a({model:this.viewModel,channelName:this.channelName,ratings:this.options.ratings,requiredFields:this.getRequiredFields(),editable:!0});this.showChildView("videoDetails",e)}},{key:"renderFolderSelect",value:function(){var e=new se({collection:this.options.libraries,selectId:this.model.get("id"),model:this.viewModel,channelName:this.options.uploadChannelName,requiredFields:this.getRequiredFields(),preselectedFolderId:this.options.folderId});this.showChildView("folderSelect",e)}},{key:"renderAdvancedVideoDetails",value:function(){if(this.viewModel.get("showAdvanced")){var e=new E.a({channelName:this.channelName,model:this.viewModel,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:!0}),t=new D.a({channelName:this.channelName,model:this.viewModel,editable:!0});this.showChildView("advancedDetails",e),this.showChildView("productionInfo",t),this.options.allowAutoCaptioning&&this.showChildView("uploadOptions",new je({model:this.viewModel}))}}},{key:"scrollTo",value:function(){$("html,body").animate({scrollTop:this.$el.offset().top},250)}},{key:"viewOptions",value:function(){return Object.assign({styles:xe.a},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.renderTitle(),this.renderThumbnail(),this.renderProgress(),this.renderBasicVideoDetails(),this.renderFolderSelect(),this.renderAdvancedVideoDetails(),i.Validation.bind(this,{model:this.viewModel})}},{key:"onDestroy",value:function(){i.Validation.unbind(this)}},{key:"name",get:function(){return"UploadVideoComponent"}},{key:"template",get:function(){return we.a}},{key:"className",get:function(){return"bg-white mb-3"}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}]),n}(r.a.Component);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var i=Ze(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=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&&Ye(e,t)}(r,e);var t,n,o,i=Qe(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"UploadVideoComponentCollection"}},{key:"childView",get:function(){return We}},{key:"childViewOptions",get:function(){return{ratings:this.options.ratings,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,uploadChannelName:this.options.uploadChannelName,folderId:this.options.folderId,libraryId:this.options.libraryId,allowAutoCaptioning:this.options.allowAutoCaptioning,openAdvancedMetadata:this.collection.length<=1}}}])&&Ge(t.prototype,n),o&&Ge(t,o),r}(r.a.ComponentCollection),tt=n(0),nt=n(186),ot=n(134),it=n(136),rt=n(4),at=n(43),lt=n(98);function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ht(e);if(t){var i=ht(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ft(this,n)}}function ft(e,t){return!t||"object"!==st(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"UploadVideosView",(function(){return pt}));var pt=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&&ut(e,t)}(y,e);var t,n,f,p=dt(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.initServices(),this.initDataListeners(),this.initComponentListeners(),this.initCollectionListeners(),this.initShellListeners()}},{key:"regions",value:function(){return{topActions:{el:".top-actions-region",replaceElement:!0},bottomActions:{el:".bottom-actions-region",replaceElement:!0},videos:{el:".videos-region",replaceElement:!0}}}},{key:"initServices",value:function(){this.videoDataService=l.a.getInstance(tt.g.Video,this),this.libraryDataService=l.a.getInstance(tt.g.Library,this),this.videoUploadService=l.a.getInstance(tt.x.VideoUpload,this),this.videoUploadDataService=l.a.getInstance(tt.g.VideoUpload,this),this.seriesDataService=l.a.getInstance(tt.g.Series,this),this.ratingsDataService=l.a.getInstance(tt.g.Ratings,this),this.companyDataService=l.a.getInstance(tt.g.Company,this),this.personDataService=l.a.getInstance(tt.g.Person,this),this.alertService=l.a.getInstance(tt.x.Alerts,this),this.navLockService=l.a.getInstance(tt.x.NavLock,this),this.settingsDataService=l.a.getInstance(tt.g.Settings,this)}},{key:"initDataListeners",value:function(){this.listenTo(tt.e.RATINGS,"".concat(tt.f.RATINGS,":sync"),this.render),this.listenTo(tt.e.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(tt.e.LIBRARY,"folder:created",this.onFolderCreated)}},{key:"initComponentListeners",value:function(){this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.channelName,"cancel:upload",this.cancelUpload),this.listenTo(this.channelName,at.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(this.channelName,"show:new:folder",this.onClickNewFolder),this.listenTo(this.channelName,"get:series",this.onSelectSeries),this.listenTo(this.channelName,"create:series",this.onCreateSeries),this.listenTo(this.channelName,"create:season",this.onCreateSeason),this.listenTo(this.channelName,"create:company",this.onCreateCompany),this.listenTo(this.channelName,"create:person",this.onCreatePerson)}},{key:"initCollectionListeners",value:function(){var e=this.videoUploadService.getCollection();this.listenTo(e,"remove",this.onCollectionChange)}},{key:"initShellListeners",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway)}},{key:"cancelUpload",value:function(e){this.logCancelAction(e),this.videoUploadService.cancelUpload(e)}},{key:"onNavigateAway",value:function(){this.logCancelAction(),this.videoUploadService.cancelAllUploads()}},{key:"onCollectionChange",value:function(e,t){t.length||(this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Upload.FILE_SELECTION}))}},{key:"onSelectSeries",value:function(e,t){this.seriesDataService.getSeries(e,t)}},{key:"onCreateSeries",value:function(e,t){this.seriesDataService.createSeries(e,t)}},{key:"onCreateSeason",value:function(e,t,n){this.seriesDataService.createSeason(e,t,n)}},{key:"onCreateCompany",value:function(e,t){this.companyDataService.createCompany(e,t)}},{key:"onCreatePerson",value:function(e,t){this.personDataService.createPerson(e,t)}},{key:"onClickContinue",value:function(){var e,t=this,n=i.Radio.channel(this.channelName),o=this.videoUploadService.getCollection(),u=!0;if(o.each((function(t){var n=a.a.get("upload:".concat(t.get("id")),null,{ctor:I.a});n.validate();var o=n.isValid();!1!==o||e||(e=t.id),u=u&&o})),e&&n.trigger("invalid:".concat(e)),u){n.trigger("start:spinner");var d=[];o.each((function(e){var n=e.get("file"),i=a.a.get("upload:".concat(e.get("id")),null,{ctor:I.a});if(lt.a.hasExpired(i,t.config.get("uploadSessionExpiryTime")))return t.alertService.createAlert({heading:s.a.getPhrase(t.lang,"uploadErrorHeading"),message:s.a.getPhrase(t.lang,"uploadErrorBody",{videoName:i.get("name")}),type:c.a.Fail}),void o.remove(e);i.set("fileUrl",n.cvUpload.fileUrl),i.set("fileSize",n.size),d.push(i)})),this.videoUploadDataService.completeVideoUploads(this.currentUser.get("id"),this.currentUser.get("customerId"),d,(function(){t.navLockService.unlock(),l.a.getInstance(tt.x.PendingItems).forceFetchPendingItems(),l.a.releaseInstance(tt.x.PendingItems),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:d.length?tt.a.Upload.UPLOAD_COMPLETE:tt.a.Upload.FILE_SELECTION}),t.logFinishAction(d),t.videoDataService.clearVideoCache()}))}}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logStartAction(e,t)}},{key:"onClickNewFolder",value:function(e,t){this.setFolderChannel=t,this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Shared.NEW_FOLDER,args:[e]}),this.lockNav()}},{key:"onFolderCreated",value:function(e){this.setFolderChannel&&(i.Radio.channel(this.setFolderChannel).trigger("new:folder:selected",e),this.render())}},{key:"logStartAction",value:function(e,t){var n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.r.Start,descriptor:F.a.mapInteractionType(t)});F.a.logUserAction(e,n)}},{key:"logCancelAction",value:function(e){var t=this.videoUploadService.getCollection();if(t.length){var n=e?t.get(e):t,o=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.r.Discard,descriptor:e?rt.l.Single:rt.l.All});F.a.logUserAction(n.toJSON(),o)}}},{key:"logFinishAction",value:function(e){if(e.length){var t=o.map(e,(function(e){return e.toJSON()})),n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.r.Complete});F.a.logUserAction(t,n)}}},{key:"fetchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getLibraries(),this.autoCaptioning=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.a.AutoCaptioning)}},{key:"renderUploadActions",value:function(){this.showChildView("topActions",new x({uploadChannelName:this.channelName})),this.showChildView("bottomActions",new x({uploadChannelName:this.channelName}))}},{key:"renderVideos",value:function(){var e={collection:this.videoUploadService.getCollection(),ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,uploadChannelName:this.channelName,allowAutoCaptioning:this.autoCaptioning.get("value")};if(this.options.folderId){var t=g.f.getLibrary(this.options.folderId,this.libraries);t&&(e.folderId=this.options.folderId,e.libraryId=t.get("id"))}var n=new et(e);this.showChildView("videos",n)}},{key:"lockNav",value:function(){this.navLockService.lock({title:s.a.getPhrase(this.lang,"navLockHeading"),text:s.a.getPhrase(this.lang,"navLockBody")})}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.ratings&&!!this.hostedLibraries&&!!this.autoCaptioning}},{key:"onRender",value:function(){this.lockNav(),this.renderUploadActions(),this.renderVideos()}},{key:"name",get:function(){return"UploadVideosView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadVideos"}},{key:"template",get:function(){return h.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{currentUser:ot.b.currentUser,libraries:it.b.libraries,config:nt.b.config}}}])&&ct(t.prototype,n),f&&ct(t,f),y}(r.a.View)}}]);
|