@clickview/library-editor 1.1.26 → 1.1.27-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 +8 -3
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +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/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/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +4 -0
- package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -0
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +8 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
- package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +1 -1
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
- package/dist/libs/shared/src/utils/MaskHelper.d.ts +1 -1
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
- package/dist/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-93276429bf.chunk.js → 0-7d941d48a1.chunk.js} +1 -1
- package/dist/scripts/1-d174976195.chunk.js +1 -0
- package/dist/scripts/{10-31317a2d02.chunk.js → 10-9389c5decb.chunk.js} +1 -1
- package/dist/scripts/{11-74bc3f2d9f.chunk.js → 11-85acf490ea.chunk.js} +1 -1
- package/dist/scripts/{12-6ecdd79b85.chunk.js → 12-0db13732f7.chunk.js} +1 -1
- package/dist/scripts/13-994f87e579.chunk.js +1 -0
- package/dist/scripts/14-2902bc9522.chunk.js +1 -0
- package/dist/scripts/15-c6ed60d5c9.chunk.js +1 -0
- package/dist/scripts/{16-427a8933c8.chunk.js → 16-745edb531a.chunk.js} +1 -1
- package/dist/scripts/{17-140fec014b.chunk.js → 17-84499189f1.chunk.js} +1 -1
- package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-236aa94486.chunk.js} +1 -1
- package/dist/scripts/{20-732a7a549d.chunk.js → 20-96717eb19f.chunk.js} +1 -1
- package/dist/scripts/{21-ee85b6d208.chunk.js → 21-65f36b6673.chunk.js} +1 -1
- package/dist/scripts/{22-082c94a39c.chunk.js → 22-5e4db41745.chunk.js} +1 -1
- package/dist/scripts/23-d0172ec9d2.chunk.js +1 -0
- package/dist/scripts/{24-c94049500e.chunk.js → 24-6ac1386d9a.chunk.js} +1 -1
- package/dist/scripts/25-36d490b1c6.chunk.js +1 -0
- package/dist/scripts/{26-d166e3c313.chunk.js → 26-58a421e3cb.chunk.js} +1 -1
- package/dist/scripts/27-a507f85408.chunk.js +1 -0
- package/dist/scripts/{28-e490147f6b.chunk.js → 28-add4a2a74d.chunk.js} +1 -1
- package/dist/scripts/29-adf22ec3a1.chunk.js +1 -0
- package/dist/scripts/{3-42e8af9f39.chunk.js → 3-3c39acc333.chunk.js} +1 -1
- package/dist/scripts/{30-9d32d88d76.chunk.js → 30-6e869b77b2.chunk.js} +1 -1
- package/dist/scripts/{31-639090fee3.chunk.js → 31-f3a0832478.chunk.js} +1 -1
- package/dist/scripts/32-cbcb5dba41.chunk.js +1 -0
- package/dist/scripts/33-c9a197cce2.chunk.js +1 -0
- package/dist/scripts/34-37fc1c9761.chunk.js +1 -0
- package/dist/scripts/35-21329b155d.chunk.js +1 -0
- package/dist/scripts/36-0d3fa3d249.chunk.js +1 -0
- package/dist/scripts/{37-3f3a603b60.chunk.js → 37-681f25d8de.chunk.js} +1 -1
- package/dist/scripts/38-5364f1bd67.chunk.js +1 -0
- package/dist/scripts/{39-71c4bb46b2.chunk.js → 39-996d4ddc74.chunk.js} +1 -1
- package/dist/scripts/4-93e14cac14.chunk.js +1 -0
- package/dist/scripts/{40-f1d72b1049.chunk.js → 40-7ecb39dfb5.chunk.js} +1 -1
- package/dist/scripts/41-8b5abd983b.chunk.js +1 -0
- package/dist/scripts/{42-3480033857.chunk.js → 42-b0867d7db0.chunk.js} +1 -1
- package/dist/scripts/{43-2fe5b1c9cc.chunk.js → 43-32a9ad2254.chunk.js} +1 -1
- package/dist/scripts/44-bf0ebe3cf7.chunk.js +1 -0
- package/dist/scripts/45-2ba05e3821.chunk.js +1 -0
- package/dist/scripts/46-3bdc667e2e.chunk.js +1 -0
- package/dist/scripts/{47-1e3d829757.chunk.js → 47-9955928b6f.chunk.js} +1 -1
- package/dist/scripts/{48-877e9e02b8.chunk.js → 48-3922b945f4.chunk.js} +1 -1
- package/dist/scripts/{49-0f9a6a1782.chunk.js → 49-23a1f6f7e7.chunk.js} +1 -1
- package/dist/scripts/5-4bea739cc3.chunk.js +1 -0
- package/dist/scripts/{50-0741587a02.chunk.js → 50-5c842985ec.chunk.js} +1 -1
- package/dist/scripts/{51-a5f1309ada.chunk.js → 51-76bb20846a.chunk.js} +1 -1
- package/dist/scripts/{52-bc48f1f9e8.chunk.js → 52-837abee352.chunk.js} +1 -1
- package/dist/scripts/{53-36007500cf.chunk.js → 53-52c9fac5eb.chunk.js} +1 -1
- package/dist/scripts/{54-7cdbdcebf9.chunk.js → 54-557f6ffe65.chunk.js} +1 -1
- package/dist/scripts/{55-078bb9b0ea.chunk.js → 55-8dea861900.chunk.js} +1 -1
- package/dist/scripts/{56-36d54fa08f.chunk.js → 56-491db19e9d.chunk.js} +1 -1
- package/dist/scripts/{57-c1faec8b32.chunk.js → 57-87323c96be.chunk.js} +1 -1
- package/dist/scripts/{58-e996405f2b.chunk.js → 58-3408474ea9.chunk.js} +1 -1
- package/dist/scripts/{59-0a7bdc86b0.chunk.js → 59-ad89e8b776.chunk.js} +1 -1
- package/dist/scripts/{6-1045293de4.chunk.js → 6-cf6bf13de2.chunk.js} +1 -1
- package/dist/scripts/{60-0d8896555f.chunk.js → 60-3324435680.chunk.js} +1 -1
- package/dist/scripts/{61-57fa6b5248.chunk.js → 61-57f4830468.chunk.js} +1 -1
- package/dist/scripts/{62-67458b7fb4.chunk.js → 62-27f0a916e8.chunk.js} +1 -1
- package/dist/scripts/{63-420b10f5f2.chunk.js → 63-c328125cb6.chunk.js} +1 -1
- package/dist/scripts/{64-e6598113a7.chunk.js → 64-32b869d473.chunk.js} +1 -1
- package/dist/scripts/{65-93567fe088.chunk.js → 65-2f7971dc4f.chunk.js} +1 -1
- package/dist/scripts/{66-c84a3a3c3f.chunk.js → 66-34c241cba2.chunk.js} +1 -1
- package/dist/scripts/67-b5429e74ed.chunk.js +1 -0
- package/dist/scripts/{68-7b1d5e8e75.chunk.js → 68-c8848a4a9d.chunk.js} +1 -1
- package/dist/scripts/{69-3d2063cd0f.chunk.js → 69-3840d20a46.chunk.js} +1 -1
- package/dist/scripts/{7-3151397d74.chunk.js → 7-d1e99b91aa.chunk.js} +1 -1
- package/dist/scripts/{70-27e9e5792a.chunk.js → 70-812a99c9c1.chunk.js} +1 -1
- package/dist/scripts/{71-c5923e2d2d.chunk.js → 71-5523ee0121.chunk.js} +1 -1
- package/dist/scripts/{72-0a6c88f9fe.chunk.js → 72-fd2b5e6473.chunk.js} +1 -1
- package/dist/scripts/{8-7278f3247c.chunk.js → 8-1c22ae2c22.chunk.js} +1 -1
- package/dist/scripts/9-fab9edf019.chunk.js +1 -0
- package/dist/scripts/bundle-c2eae7224c.min.js +8 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-1554419c02.min.js +1 -0
- package/package.json +4 -3
- package/typings/libs/CVEvents.d.ts +1 -1
- package/typings/libs/LazyLoad.ts +2 -1
- package/typings/libs/Trackers.d.ts +1 -1
- package/dist/css/1.chunk.css.map +0 -1
- package/dist/css/10.chunk.css.map +0 -1
- package/dist/css/11.chunk.css +0 -137
- package/dist/css/11.chunk.css.map +0 -1
- package/dist/css/12.chunk.css.map +0 -1
- package/dist/css/13.chunk.css.map +0 -1
- package/dist/css/14.chunk.css.map +0 -1
- package/dist/css/16.chunk.css.map +0 -1
- package/dist/css/17.chunk.css.map +0 -1
- package/dist/css/18.chunk.css +0 -20
- package/dist/css/18.chunk.css.map +0 -1
- package/dist/css/2.chunk.css +0 -145
- package/dist/css/2.chunk.css.map +0 -1
- package/dist/css/21.chunk.css.map +0 -1
- package/dist/css/22.chunk.css.map +0 -1
- package/dist/css/23.chunk.css.map +0 -1
- package/dist/css/25.chunk.css.map +0 -1
- package/dist/css/26.chunk.css.map +0 -1
- package/dist/css/28.chunk.css.map +0 -1
- package/dist/css/29.chunk.css.map +0 -1
- package/dist/css/3.chunk.css.map +0 -1
- package/dist/css/30.chunk.css.map +0 -1
- package/dist/css/31.chunk.css.map +0 -1
- package/dist/css/32.chunk.css.map +0 -1
- package/dist/css/33.chunk.css.map +0 -1
- package/dist/css/34.chunk.css +0 -21
- package/dist/css/34.chunk.css.map +0 -1
- package/dist/css/35.chunk.css +0 -20
- package/dist/css/35.chunk.css.map +0 -1
- package/dist/css/36.chunk.css +0 -14
- package/dist/css/36.chunk.css.map +0 -1
- package/dist/css/37.chunk.css.map +0 -1
- package/dist/css/38.chunk.css.map +0 -1
- package/dist/css/40.chunk.css.map +0 -1
- package/dist/css/41.chunk.css.map +0 -1
- package/dist/css/42.chunk.css.map +0 -1
- package/dist/css/43.chunk.css.map +0 -1
- package/dist/css/44.chunk.css.map +0 -1
- package/dist/css/45.chunk.css.map +0 -1
- package/dist/css/46.chunk.css.map +0 -1
- package/dist/css/47.chunk.css.map +0 -1
- package/dist/css/48.chunk.css.map +0 -1
- package/dist/css/49.chunk.css +0 -35
- package/dist/css/49.chunk.css.map +0 -1
- package/dist/css/50.chunk.css.map +0 -1
- package/dist/css/51.chunk.css.map +0 -1
- package/dist/css/52.chunk.css +0 -66
- package/dist/css/52.chunk.css.map +0 -1
- package/dist/css/55.chunk.css.map +0 -1
- package/dist/css/56.chunk.css.map +0 -1
- package/dist/css/58.chunk.css.map +0 -1
- package/dist/css/59.chunk.css.map +0 -1
- package/dist/css/6.chunk.css.map +0 -1
- package/dist/css/60.chunk.css +0 -18
- package/dist/css/60.chunk.css.map +0 -1
- package/dist/css/62.chunk.css.map +0 -1
- package/dist/css/63.chunk.css +0 -170
- package/dist/css/63.chunk.css.map +0 -1
- package/dist/css/67.chunk.css +0 -78
- package/dist/css/67.chunk.css.map +0 -1
- package/dist/css/68.chunk.css +0 -17
- package/dist/css/68.chunk.css.map +0 -1
- package/dist/css/69.chunk.css +0 -17
- package/dist/css/69.chunk.css.map +0 -1
- package/dist/css/7.chunk.css.map +0 -1
- package/dist/css/70.chunk.css +0 -23
- package/dist/css/70.chunk.css.map +0 -1
- package/dist/css/71.chunk.css +0 -40
- package/dist/css/71.chunk.css.map +0 -1
- package/dist/css/72.chunk.css +0 -16
- package/dist/css/72.chunk.css.map +0 -1
- package/dist/css/73.chunk.css +0 -37
- package/dist/css/73.chunk.css.map +0 -1
- package/dist/css/74.chunk.css +0 -29
- package/dist/css/74.chunk.css.map +0 -1
- package/dist/css/75.chunk.css +0 -6
- package/dist/css/75.chunk.css.map +0 -1
- package/dist/css/76.chunk.css +0 -6
- package/dist/css/76.chunk.css.map +0 -1
- package/dist/css/8.chunk.css.map +0 -1
- package/dist/css/library-editor-app.css.map +0 -1
- package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
- package/dist/projects/library-editor/src/apps/library-editor/components/file-select/FileSelectComponent.d.ts +0 -30
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadComponent.d.ts +0 -15
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/ResourceItemComponent.d.ts +0 -22
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/SubtitleItemComponent.d.ts +0 -18
- package/dist/projects/library-editor/src/apps/library-editor/enums/ObjectOwnerType.d.ts +0 -4
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropHelper.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
- package/dist/projects/library-editor/src/shared/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
- package/dist/projects/library-editor/src/shared/enums/MasterObjectTypes.d.ts +0 -8
- package/dist/projects/library-editor/src/shared/enums/UploadInteractionType.d.ts +0 -4
- package/dist/projects/library-editor/src/shared/errors/too-many-files/TooManyFilesError.d.ts +0 -7
- package/dist/scripts/0-1c2bb7e28a.chunk.js +0 -1
- package/dist/scripts/0-1dbc79e4e7.chunk.js +0 -1
- package/dist/scripts/0-8b75adf540.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -1039
- package/dist/scripts/0.chunk.js.map +0 -1
- package/dist/scripts/1-22a3bd404f.chunk.js +0 -1
- package/dist/scripts/1-480e5932a6.chunk.js +0 -1
- package/dist/scripts/1-6051b28de6.chunk.js +0 -1
- package/dist/scripts/1-b85c11fc30.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -442
- package/dist/scripts/1.chunk.js.map +0 -1
- package/dist/scripts/10-3ff370d548.chunk.js +0 -1
- package/dist/scripts/10-923c4b075a.chunk.js +0 -1
- package/dist/scripts/10-e2fea45a6c.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -820
- package/dist/scripts/10.chunk.js.map +0 -1
- package/dist/scripts/11-039959db6c.chunk.js +0 -11
- package/dist/scripts/11-3dec7d2c7e.chunk.js +0 -11
- package/dist/scripts/11.chunk.js +0 -4091
- package/dist/scripts/11.chunk.js.map +0 -1
- package/dist/scripts/12-07999b80e0.chunk.js +0 -1
- package/dist/scripts/12-24bd360be0.chunk.js +0 -1
- package/dist/scripts/12-e522e64a94.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -555
- package/dist/scripts/12.chunk.js.map +0 -1
- package/dist/scripts/13-081c0e5887.chunk.js +0 -1
- package/dist/scripts/13-282f8add17.chunk.js +0 -1
- package/dist/scripts/13-54fe4fe53b.chunk.js +0 -1
- package/dist/scripts/13-958a8fd026.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -380
- package/dist/scripts/13.chunk.js.map +0 -1
- package/dist/scripts/14-16f84b2721.chunk.js +0 -1
- package/dist/scripts/14-45cd4dc6ef.chunk.js +0 -1
- package/dist/scripts/14-5e443cb402.chunk.js +0 -1
- package/dist/scripts/14-68c85d6674.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -2386
- package/dist/scripts/14.chunk.js.map +0 -1
- package/dist/scripts/15-12fa4c3471.chunk.js +0 -1
- package/dist/scripts/15-1f779dd0d3.chunk.js +0 -1
- package/dist/scripts/15-5544e6bde6.chunk.js +0 -1
- package/dist/scripts/15-8c96c3288e.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -314
- package/dist/scripts/15.chunk.js.map +0 -1
- package/dist/scripts/16-670c43d26f.chunk.js +0 -1
- package/dist/scripts/16-742a776f88.chunk.js +0 -1
- package/dist/scripts/16-7bcffb06e7.chunk.js +0 -1
- package/dist/scripts/16.chunk.js +0 -1290
- package/dist/scripts/16.chunk.js.map +0 -1
- package/dist/scripts/17-7093f50dff.chunk.js +0 -1
- package/dist/scripts/17-b5e44e8b17.chunk.js +0 -1
- package/dist/scripts/17-f6b0159da3.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -381
- package/dist/scripts/17.chunk.js.map +0 -1
- package/dist/scripts/18.chunk.js +0 -393
- package/dist/scripts/18.chunk.js.map +0 -1
- package/dist/scripts/19.chunk.js +0 -364
- package/dist/scripts/19.chunk.js.map +0 -1
- package/dist/scripts/2-5fd33f5359.chunk.js +0 -1
- package/dist/scripts/2-7cc9176e8a.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -523
- package/dist/scripts/2.chunk.js.map +0 -1
- package/dist/scripts/20-4d88ede0e0.chunk.js +0 -1
- package/dist/scripts/20-a84733c89f.chunk.js +0 -1
- package/dist/scripts/20-df9f6f7661.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -317
- package/dist/scripts/20.chunk.js.map +0 -1
- package/dist/scripts/21-0b84d33cef.chunk.js +0 -1
- package/dist/scripts/21-9b28a13702.chunk.js +0 -1
- package/dist/scripts/21-c9983ca8ad.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -531
- package/dist/scripts/21.chunk.js.map +0 -1
- package/dist/scripts/22-151cf38018.chunk.js +0 -1
- package/dist/scripts/22-3b2207c8f6.chunk.js +0 -1
- package/dist/scripts/22-6e6ed9f607.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -354
- package/dist/scripts/22.chunk.js.map +0 -1
- package/dist/scripts/23-1af21bf234.chunk.js +0 -1
- package/dist/scripts/23-2b00ff99bf.chunk.js +0 -1
- package/dist/scripts/23-94f9fe4222.chunk.js +0 -1
- package/dist/scripts/23-ab8f73ee87.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -604
- package/dist/scripts/23.chunk.js.map +0 -1
- package/dist/scripts/24-74ab289589.chunk.js +0 -1
- package/dist/scripts/24-7aa9b43511.chunk.js +0 -1
- package/dist/scripts/24-d1ffdd4755.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -318
- package/dist/scripts/24.chunk.js.map +0 -1
- package/dist/scripts/25-34c0406f50.chunk.js +0 -1
- package/dist/scripts/25-5a38ce3533.chunk.js +0 -1
- package/dist/scripts/25-76d9011eea.chunk.js +0 -1
- package/dist/scripts/25-866cfc0ef5.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -365
- package/dist/scripts/25.chunk.js.map +0 -1
- package/dist/scripts/26-d19e3f755c.chunk.js +0 -1
- package/dist/scripts/26-e53ba8e00f.chunk.js +0 -1
- package/dist/scripts/26-ea028a6276.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -442
- package/dist/scripts/26.chunk.js.map +0 -1
- package/dist/scripts/27-2109d41afa.chunk.js +0 -1
- package/dist/scripts/27-3aa629dd67.chunk.js +0 -1
- package/dist/scripts/27-c1241fcd84.chunk.js +0 -1
- package/dist/scripts/27-ee88c84482.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -3630
- package/dist/scripts/27.chunk.js.map +0 -1
- package/dist/scripts/28-5c540e74cc.chunk.js +0 -1
- package/dist/scripts/28-738b88c816.chunk.js +0 -1
- package/dist/scripts/28-76b9766891.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -3172
- package/dist/scripts/28.chunk.js.map +0 -1
- package/dist/scripts/29-2da59b1589.chunk.js +0 -1
- package/dist/scripts/29-3faa153e38.chunk.js +0 -1
- package/dist/scripts/29-69389908f8.chunk.js +0 -1
- package/dist/scripts/29-bb7e39304b.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -3090
- package/dist/scripts/29.chunk.js.map +0 -1
- package/dist/scripts/3-6e67dd4b74.chunk.js +0 -1
- package/dist/scripts/3-81b501ac1e.chunk.js +0 -1
- package/dist/scripts/3-c69e4454ce.chunk.js +0 -1
- package/dist/scripts/3.chunk.js +0 -845
- package/dist/scripts/3.chunk.js.map +0 -1
- package/dist/scripts/30-109f8ddd5c.chunk.js +0 -1
- package/dist/scripts/30-a1df3e37da.chunk.js +0 -1
- package/dist/scripts/30-fa390c35f6.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -1851
- package/dist/scripts/30.chunk.js.map +0 -1
- package/dist/scripts/31-ce31250e42.chunk.js +0 -1
- package/dist/scripts/31-f15802825c.chunk.js +0 -1
- package/dist/scripts/31-fc63c4629d.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -958
- package/dist/scripts/31.chunk.js.map +0 -1
- package/dist/scripts/32-1ad8193581.chunk.js +0 -1
- package/dist/scripts/32-3de9c7454b.chunk.js +0 -1
- package/dist/scripts/32-4173874dbe.chunk.js +0 -1
- package/dist/scripts/32-9bca57f408.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -1235
- package/dist/scripts/32.chunk.js.map +0 -1
- package/dist/scripts/33-20ac0ab4a1.chunk.js +0 -1
- package/dist/scripts/33-350334db4c.chunk.js +0 -1
- package/dist/scripts/33-675467f07d.chunk.js +0 -1
- package/dist/scripts/33-7efae85b8b.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -958
- package/dist/scripts/33.chunk.js.map +0 -1
- package/dist/scripts/34-0a7f3b55fe.chunk.js +0 -1
- package/dist/scripts/34-3adf309726.chunk.js +0 -1
- package/dist/scripts/34-c4f0495750.chunk.js +0 -1
- package/dist/scripts/34-f6eea83a09.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -990
- package/dist/scripts/34.chunk.js.map +0 -1
- package/dist/scripts/35-17b30890a5.chunk.js +0 -1
- package/dist/scripts/35-4254e160f0.chunk.js +0 -1
- package/dist/scripts/35-7f90628b77.chunk.js +0 -1
- package/dist/scripts/35-9c3899dfbd.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -518
- package/dist/scripts/35.chunk.js.map +0 -1
- package/dist/scripts/36-1fde696d6a.chunk.js +0 -1
- package/dist/scripts/36-2ec95df618.chunk.js +0 -1
- package/dist/scripts/36-b5ad543fba.chunk.js +0 -1
- package/dist/scripts/36-cdbe95bd06.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -335
- package/dist/scripts/36.chunk.js.map +0 -1
- package/dist/scripts/37-6fa4b8fc60.chunk.js +0 -1
- package/dist/scripts/37-97b84a8be5.chunk.js +0 -1
- package/dist/scripts/37-c649a307d4.chunk.js +0 -1
- package/dist/scripts/37.chunk.js +0 -236
- package/dist/scripts/37.chunk.js.map +0 -1
- package/dist/scripts/38-0cf8029bec.chunk.js +0 -1
- package/dist/scripts/38-1c98f19489.chunk.js +0 -1
- package/dist/scripts/38-6fc346f964.chunk.js +0 -1
- package/dist/scripts/38-7ffe535b0d.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -315
- package/dist/scripts/38.chunk.js.map +0 -1
- package/dist/scripts/39-13d6669c3f.chunk.js +0 -1
- package/dist/scripts/39-748eb61732.chunk.js +0 -1
- package/dist/scripts/39-e5983a5d53.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -107
- package/dist/scripts/39.chunk.js.map +0 -1
- package/dist/scripts/4-435484d217.chunk.js +0 -1
- package/dist/scripts/4-5c50e71b83.chunk.js +0 -1
- package/dist/scripts/4-7274621693.chunk.js +0 -1
- package/dist/scripts/4-85ba8523ad.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -335
- package/dist/scripts/4.chunk.js.map +0 -1
- package/dist/scripts/40-2691dfbd5a.chunk.js +0 -1
- package/dist/scripts/40-2ecbd41570.chunk.js +0 -1
- package/dist/scripts/40-a691a401ff.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -2493
- package/dist/scripts/40.chunk.js.map +0 -1
- package/dist/scripts/41-0368ba16dc.chunk.js +0 -1
- package/dist/scripts/41-1df587ee3a.chunk.js +0 -1
- package/dist/scripts/41-85fcb15184.chunk.js +0 -1
- package/dist/scripts/41-bb9aef24f7.chunk.js +0 -1
- package/dist/scripts/41.chunk.js +0 -1782
- package/dist/scripts/41.chunk.js.map +0 -1
- package/dist/scripts/42-389acb6e55.chunk.js +0 -1
- package/dist/scripts/42-3ef41f40f5.chunk.js +0 -1
- package/dist/scripts/42-61a626d7f4.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -2327
- package/dist/scripts/42.chunk.js.map +0 -1
- package/dist/scripts/43-49f13dab14.chunk.js +0 -1
- package/dist/scripts/43-72d1bc0ae2.chunk.js +0 -1
- package/dist/scripts/43-a5b882d502.chunk.js +0 -1
- package/dist/scripts/43.chunk.js +0 -1206
- package/dist/scripts/43.chunk.js.map +0 -1
- package/dist/scripts/44-0703eb0ad8.chunk.js +0 -1
- package/dist/scripts/44-756fd6622b.chunk.js +0 -1
- package/dist/scripts/44-de22428999.chunk.js +0 -1
- package/dist/scripts/44-ee6a740a16.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -2245
- package/dist/scripts/44.chunk.js.map +0 -1
- package/dist/scripts/45-610d098194.chunk.js +0 -1
- package/dist/scripts/45-806dd5b78c.chunk.js +0 -1
- package/dist/scripts/45-da34a8b6b2.chunk.js +0 -1
- package/dist/scripts/45-e4a92a40fd.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -1065
- package/dist/scripts/45.chunk.js.map +0 -1
- package/dist/scripts/46-4aa05464fe.chunk.js +0 -1
- package/dist/scripts/46-cadf3f46ee.chunk.js +0 -1
- package/dist/scripts/46-cccef3e874.chunk.js +0 -1
- package/dist/scripts/46-ebf8eee4ac.chunk.js +0 -1
- package/dist/scripts/46.chunk.js +0 -655
- package/dist/scripts/46.chunk.js.map +0 -1
- package/dist/scripts/47-22a83e5974.chunk.js +0 -1
- package/dist/scripts/47-56d22af6ba.chunk.js +0 -1
- package/dist/scripts/47-c61fa52c53.chunk.js +0 -1
- package/dist/scripts/47.chunk.js +0 -736
- package/dist/scripts/47.chunk.js.map +0 -1
- package/dist/scripts/48-e05ab3ecac.chunk.js +0 -1
- package/dist/scripts/48-e577124476.chunk.js +0 -1
- package/dist/scripts/48-fc96b968fc.chunk.js +0 -1
- package/dist/scripts/48.chunk.js +0 -994
- package/dist/scripts/48.chunk.js.map +0 -1
- package/dist/scripts/49-13c5f8e87d.chunk.js +0 -1
- package/dist/scripts/49-4a6c119f58.chunk.js +0 -1
- package/dist/scripts/49-f9151c7e06.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -761
- package/dist/scripts/49.chunk.js.map +0 -1
- package/dist/scripts/5-06b97501c3.chunk.js +0 -1
- package/dist/scripts/5-1ba89c4774.chunk.js +0 -1
- package/dist/scripts/5-515b264fbc.chunk.js +0 -1
- package/dist/scripts/5-d6a7d71167.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -15
- package/dist/scripts/5.chunk.js.map +0 -1
- package/dist/scripts/50-0d5aed7730.chunk.js +0 -1
- package/dist/scripts/50-3924907655.chunk.js +0 -1
- package/dist/scripts/50-4de0b758d5.chunk.js +0 -1
- package/dist/scripts/50.chunk.js +0 -530
- package/dist/scripts/50.chunk.js.map +0 -1
- package/dist/scripts/51-cd37c8efa2.chunk.js +0 -1
- package/dist/scripts/51-dca2a9cc86.chunk.js +0 -1
- package/dist/scripts/51-ea33746146.chunk.js +0 -1
- package/dist/scripts/51.chunk.js +0 -932
- package/dist/scripts/51.chunk.js.map +0 -1
- package/dist/scripts/52-50230b48c8.chunk.js +0 -1
- package/dist/scripts/52-8b53a5c0b1.chunk.js +0 -1
- package/dist/scripts/52-a3c8ed29ca.chunk.js +0 -1
- package/dist/scripts/52.chunk.js +0 -408
- package/dist/scripts/52.chunk.js.map +0 -1
- package/dist/scripts/53-0e253f9f3e.chunk.js +0 -1
- package/dist/scripts/53-54b0df474f.chunk.js +0 -1
- package/dist/scripts/53-d8f0dea552.chunk.js +0 -1
- package/dist/scripts/53.chunk.js +0 -756
- package/dist/scripts/53.chunk.js.map +0 -1
- package/dist/scripts/54-d1bc70c7b5.chunk.js +0 -1
- package/dist/scripts/54-dd4d101665.chunk.js +0 -1
- package/dist/scripts/54-ead54d0b34.chunk.js +0 -1
- package/dist/scripts/54.chunk.js +0 -681
- package/dist/scripts/54.chunk.js.map +0 -1
- package/dist/scripts/55-3c60601030.chunk.js +0 -1
- package/dist/scripts/55-a5fa20b497.chunk.js +0 -1
- package/dist/scripts/55-e29d6a6ba9.chunk.js +0 -1
- package/dist/scripts/55.chunk.js +0 -645
- package/dist/scripts/55.chunk.js.map +0 -1
- package/dist/scripts/56-370078d597.chunk.js +0 -1
- package/dist/scripts/56-7a6c662f14.chunk.js +0 -1
- package/dist/scripts/56-df0a32000b.chunk.js +0 -1
- package/dist/scripts/56.chunk.js +0 -346
- package/dist/scripts/56.chunk.js.map +0 -1
- package/dist/scripts/57-0e126120b9.chunk.js +0 -1
- package/dist/scripts/57-6e622c6480.chunk.js +0 -1
- package/dist/scripts/57-a4f4d6fe41.chunk.js +0 -1
- package/dist/scripts/57.chunk.js +0 -422
- package/dist/scripts/57.chunk.js.map +0 -1
- package/dist/scripts/58-17706ccb46.chunk.js +0 -1
- package/dist/scripts/58-5729cbaa5c.chunk.js +0 -1
- package/dist/scripts/58-a0fe201826.chunk.js +0 -1
- package/dist/scripts/58.chunk.js +0 -437
- package/dist/scripts/58.chunk.js.map +0 -1
- package/dist/scripts/59-333f38ee3b.chunk.js +0 -1
- package/dist/scripts/59-381a49ed7f.chunk.js +0 -1
- package/dist/scripts/59-4f2fcb6412.chunk.js +0 -1
- package/dist/scripts/59.chunk.js +0 -342
- package/dist/scripts/59.chunk.js.map +0 -1
- package/dist/scripts/6-40c8ba5007.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/6.chunk.js +0 -484
- package/dist/scripts/6.chunk.js.map +0 -1
- package/dist/scripts/60-b17c6609cd.chunk.js +0 -1
- package/dist/scripts/60-b4a91c86fa.chunk.js +0 -1
- package/dist/scripts/60-c57f161f18.chunk.js +0 -1
- package/dist/scripts/60.chunk.js +0 -254
- package/dist/scripts/60.chunk.js.map +0 -1
- package/dist/scripts/61-5d6e59d408.chunk.js +0 -1
- package/dist/scripts/61-7d81d27c31.chunk.js +0 -1
- package/dist/scripts/61-a342a0d501.chunk.js +0 -1
- package/dist/scripts/61.chunk.js +0 -408
- package/dist/scripts/61.chunk.js.map +0 -1
- package/dist/scripts/62-758f5e505b.chunk.js +0 -1
- package/dist/scripts/62-b572d8b80d.chunk.js +0 -1
- package/dist/scripts/62-f5fd35fdc0.chunk.js +0 -1
- package/dist/scripts/62.chunk.js +0 -142
- package/dist/scripts/62.chunk.js.map +0 -1
- package/dist/scripts/63-568008965e.chunk.js +0 -1
- package/dist/scripts/63-6700b4d00a.chunk.js +0 -1
- package/dist/scripts/63-c88b9860e9.chunk.js +0 -1
- package/dist/scripts/63.chunk.js +0 -147
- package/dist/scripts/63.chunk.js.map +0 -1
- package/dist/scripts/64-9c88ee6161.chunk.js +0 -1
- package/dist/scripts/64-e177d4c971.chunk.js +0 -1
- package/dist/scripts/64-fa2facacbb.chunk.js +0 -1
- package/dist/scripts/64.chunk.js +0 -439
- package/dist/scripts/64.chunk.js.map +0 -1
- package/dist/scripts/65-a7e499ceee.chunk.js +0 -1
- package/dist/scripts/65-e4568d1f06.chunk.js +0 -1
- package/dist/scripts/65-f750573f69.chunk.js +0 -1
- package/dist/scripts/65.chunk.js +0 -582
- package/dist/scripts/65.chunk.js.map +0 -1
- package/dist/scripts/66-f00f29ccae.chunk.js +0 -1
- package/dist/scripts/66-f325ff3187.chunk.js +0 -1
- package/dist/scripts/66-f6d213b33c.chunk.js +0 -1
- package/dist/scripts/66.chunk.js +0 -442
- package/dist/scripts/66.chunk.js.map +0 -1
- package/dist/scripts/67-1ebaab7a2d.chunk.js +0 -1
- package/dist/scripts/67-3c9628d296.chunk.js +0 -1
- package/dist/scripts/67-97c694c3d5.chunk.js +0 -1
- package/dist/scripts/67-c5af18680c.chunk.js +0 -1
- package/dist/scripts/67.chunk.js +0 -295
- package/dist/scripts/67.chunk.js.map +0 -1
- package/dist/scripts/68-38a6d7fb50.chunk.js +0 -1
- package/dist/scripts/68-488cd1552f.chunk.js +0 -1
- package/dist/scripts/68-eb8700aeb1.chunk.js +0 -1
- package/dist/scripts/68.chunk.js +0 -165
- package/dist/scripts/68.chunk.js.map +0 -1
- package/dist/scripts/69-870856c6fb.chunk.js +0 -1
- package/dist/scripts/69-b0ea71d7c5.chunk.js +0 -1
- package/dist/scripts/69-be2be90b7c.chunk.js +0 -1
- package/dist/scripts/69.chunk.js +0 -248
- package/dist/scripts/69.chunk.js.map +0 -1
- package/dist/scripts/7-aac8c84ccb.chunk.js +0 -1
- package/dist/scripts/7-d41d3bf60c.chunk.js +0 -1
- package/dist/scripts/7-dfddb8ffa8.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -309
- package/dist/scripts/7.chunk.js.map +0 -1
- package/dist/scripts/70-39dc936989.chunk.js +0 -1
- package/dist/scripts/70-6ef72cd9b6.chunk.js +0 -1
- package/dist/scripts/70-e6ebb44667.chunk.js +0 -1
- package/dist/scripts/70.chunk.js +0 -207
- package/dist/scripts/70.chunk.js.map +0 -1
- package/dist/scripts/71-4e4a47d601.chunk.js +0 -1
- package/dist/scripts/71-8e3682a7d7.chunk.js +0 -1
- package/dist/scripts/71-a80858069c.chunk.js +0 -1
- package/dist/scripts/71.chunk.js +0 -237
- package/dist/scripts/71.chunk.js.map +0 -1
- package/dist/scripts/72-245f28bf97.chunk.js +0 -1
- package/dist/scripts/72-550438db4e.chunk.js +0 -1
- package/dist/scripts/72-65364adff1.chunk.js +0 -1
- package/dist/scripts/72.chunk.js +0 -331
- package/dist/scripts/72.chunk.js.map +0 -1
- package/dist/scripts/73.chunk.js +0 -404
- package/dist/scripts/73.chunk.js.map +0 -1
- package/dist/scripts/74.chunk.js +0 -301
- package/dist/scripts/74.chunk.js.map +0 -1
- package/dist/scripts/75.chunk.js +0 -231
- package/dist/scripts/75.chunk.js.map +0 -1
- package/dist/scripts/76.chunk.js +0 -157
- package/dist/scripts/76.chunk.js.map +0 -1
- package/dist/scripts/77.chunk.js +0 -307
- package/dist/scripts/77.chunk.js.map +0 -1
- package/dist/scripts/78.chunk.js +0 -249
- package/dist/scripts/78.chunk.js.map +0 -1
- package/dist/scripts/79.chunk.js +0 -282
- package/dist/scripts/79.chunk.js.map +0 -1
- package/dist/scripts/8-c4955c2009.chunk.js +0 -1
- package/dist/scripts/8-d46f48d03c.chunk.js +0 -1
- package/dist/scripts/8-e5d19252c8.chunk.js +0 -1
- package/dist/scripts/8.chunk.js +0 -307
- package/dist/scripts/8.chunk.js.map +0 -1
- package/dist/scripts/80.chunk.js +0 -308
- package/dist/scripts/80.chunk.js.map +0 -1
- package/dist/scripts/81.chunk.js +0 -366
- package/dist/scripts/81.chunk.js.map +0 -1
- package/dist/scripts/82.chunk.js +0 -314
- package/dist/scripts/82.chunk.js.map +0 -1
- package/dist/scripts/83.chunk.js +0 -328
- package/dist/scripts/83.chunk.js.map +0 -1
- package/dist/scripts/84.chunk.js +0 -313
- package/dist/scripts/84.chunk.js.map +0 -1
- package/dist/scripts/85.chunk.js +0 -291
- package/dist/scripts/85.chunk.js.map +0 -1
- package/dist/scripts/86.chunk.js +0 -119
- package/dist/scripts/86.chunk.js.map +0 -1
- package/dist/scripts/87.chunk.js +0 -219
- package/dist/scripts/87.chunk.js.map +0 -1
- package/dist/scripts/88.chunk.js +0 -194
- package/dist/scripts/88.chunk.js.map +0 -1
- package/dist/scripts/89.chunk.js +0 -522
- package/dist/scripts/89.chunk.js.map +0 -1
- package/dist/scripts/9-4589726554.chunk.js +0 -1
- package/dist/scripts/9-576592d419.chunk.js +0 -1
- package/dist/scripts/9-66021549bd.chunk.js +0 -1
- package/dist/scripts/9-df99ba6ce1.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -222
- package/dist/scripts/9.chunk.js.map +0 -1
- package/dist/scripts/90.chunk.js +0 -337
- package/dist/scripts/90.chunk.js.map +0 -1
- package/dist/scripts/91.chunk.js +0 -131
- package/dist/scripts/91.chunk.js.map +0 -1
- package/dist/scripts/92.chunk.js +0 -266
- package/dist/scripts/92.chunk.js.map +0 -1
- package/dist/scripts/bundle-1b984e2fd9.min.js +0 -8
- package/dist/scripts/bundle-203920eb14.min.js +0 -8
- package/dist/scripts/bundle-7d13ba933b.min.js +0 -8
- package/dist/scripts/bundle-d5b23160b1.min.js +0 -8
- package/dist/scripts/bundle.js +0 -67100
- package/dist/scripts/bundle.js.map +0 -1
- package/dist/scripts/polyfills-5a81b67408.min.js +0 -1
- package/dist/scripts/polyfills-9b0be1bd72.min.js +0 -1
- package/dist/scripts/polyfills-cd3d0a9f6d.min.js +0 -1
- package/dist/scripts/polyfills-d891a77823.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -14866
- package/dist/scripts/polyfills.js.map +0 -1
package/dist/scripts/44.chunk.js
DELETED
|
@@ -1,2245 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[44],{
|
|
2
|
-
|
|
3
|
-
/***/ "./src/apps/library-editor/components/edit-thumbnail/EditThumbnail.hbs":
|
|
4
|
-
/*!*****************************************************************************!*\
|
|
5
|
-
!*** ./src/apps/library-editor/components/edit-thumbnail/EditThumbnail.hbs ***!
|
|
6
|
-
\*****************************************************************************/
|
|
7
|
-
/*! no static exports found */
|
|
8
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9
|
-
|
|
10
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
11
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
12
|
-
var alias1=container.propertyIsEnumerable;
|
|
13
|
-
|
|
14
|
-
return "<h5>"
|
|
15
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"label",{"name":"lang","hash":{},"data":data}))
|
|
16
|
-
+ "</h5>\r\n";
|
|
17
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
18
|
-
return "my-2";
|
|
19
|
-
},"5":function(container,depth0,helpers,partials,data) {
|
|
20
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;
|
|
21
|
-
|
|
22
|
-
return " <div class=\"text-muted mt-3 mb-1\"><em>"
|
|
23
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"recommendedSize",{"name":"lang","hash":{"height":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dimensions : stack1)) != null ? stack1.height : stack1),"width":((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dimensions : stack1)) != null ? stack1.width : stack1)},"data":data}))
|
|
24
|
-
+ "</em></div>\r\n <button class=\"upload-thumbnail btn btn-light mb-3 w-100\">"
|
|
25
|
-
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"upload",{"name":"lang","hash":{},"data":data}))
|
|
26
|
-
+ "</button>\r\n";
|
|
27
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
28
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
29
|
-
|
|
30
|
-
return ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
31
|
-
+ "<div class=\"thumbnail-region\"></div>\r\n<div class=\""
|
|
32
|
-
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
33
|
-
+ "\">\r\n"
|
|
34
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
35
|
-
+ "</div>";
|
|
36
|
-
},"useData":true});
|
|
37
|
-
|
|
38
|
-
/***/ }),
|
|
39
|
-
|
|
40
|
-
/***/ "./src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.ts":
|
|
41
|
-
/*!*************************************************************************************!*\
|
|
42
|
-
!*** ./src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.ts ***!
|
|
43
|
-
\*************************************************************************************/
|
|
44
|
-
/*! exports provided: EditThumbnailComponent */
|
|
45
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
46
|
-
|
|
47
|
-
"use strict";
|
|
48
|
-
__webpack_require__.r(__webpack_exports__);
|
|
49
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditThumbnailComponent", function() { return EditThumbnailComponent; });
|
|
50
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
51
|
-
/* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
|
|
52
|
-
/* harmony import */ var _libs_shared_src_legacy_components_thumbnail_ThumbnailComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/components/thumbnail/ThumbnailComponent */ "../../libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.ts");
|
|
53
|
-
/* harmony import */ var _libs_shared_src_enums_Images__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/enums/Images */ "../../libs/shared/src/enums/Images.ts");
|
|
54
|
-
/* harmony import */ var _shared_behaviors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/behaviors */ "./src/shared/behaviors/index.ts");
|
|
55
|
-
/* harmony import */ var _shared_enums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/enums */ "./src/shared/enums/index.ts");
|
|
56
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
57
|
-
/* harmony import */ var _EditThumbnail_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./EditThumbnail.hbs */ "./src/apps/library-editor/components/edit-thumbnail/EditThumbnail.hbs");
|
|
58
|
-
/* harmony import */ var _EditThumbnail_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_EditThumbnail_hbs__WEBPACK_IMPORTED_MODULE_7__);
|
|
59
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
60
|
-
|
|
61
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
62
|
-
|
|
63
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
64
|
-
|
|
65
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
66
|
-
|
|
67
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
68
|
-
|
|
69
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
70
|
-
|
|
71
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
72
|
-
|
|
73
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
74
|
-
|
|
75
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
76
|
-
|
|
77
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
78
|
-
|
|
79
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var EditThumbnailComponent = /*#__PURE__*/function (_Core$Component) {
|
|
90
|
-
_inherits(EditThumbnailComponent, _Core$Component);
|
|
91
|
-
|
|
92
|
-
var _super = _createSuper(EditThumbnailComponent);
|
|
93
|
-
|
|
94
|
-
function EditThumbnailComponent(options) {
|
|
95
|
-
_classCallCheck(this, EditThumbnailComponent);
|
|
96
|
-
|
|
97
|
-
return _super.call(this, options);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
_createClass(EditThumbnailComponent, [{
|
|
101
|
-
key: "initialize",
|
|
102
|
-
value: function initialize() {
|
|
103
|
-
this.viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_1__["ViewModelService"].get('image:storage');
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
key: "regions",
|
|
107
|
-
value: function regions() {
|
|
108
|
-
return {
|
|
109
|
-
thumbnail: {
|
|
110
|
-
el: '.thumbnail-region',
|
|
111
|
-
replaceElement: true
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
key: "viewOptions",
|
|
117
|
-
value: function viewOptions() {
|
|
118
|
-
return {
|
|
119
|
-
editable: this.options.editable,
|
|
120
|
-
dimensions: _shared_constants__WEBPACK_IMPORTED_MODULE_6__["ImageWarnDimensions"][_shared_enums__WEBPACK_IMPORTED_MODULE_5__["ImageType"].Thumbnails]
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
key: "onRender",
|
|
125
|
-
value: function onRender() {
|
|
126
|
-
this.showChildView('thumbnail', new _libs_shared_src_legacy_components_thumbnail_ThumbnailComponent__WEBPACK_IMPORTED_MODULE_2__["ThumbnailComponent"]({
|
|
127
|
-
model: this.model,
|
|
128
|
-
thumbnailOptions: {
|
|
129
|
-
size: _libs_shared_src_enums_Images__WEBPACK_IMPORTED_MODULE_3__["ImageSize"].Medium
|
|
130
|
-
}
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
}, {
|
|
134
|
-
key: "name",
|
|
135
|
-
get: function get() {
|
|
136
|
-
return 'EditThumbnailComponent';
|
|
137
|
-
}
|
|
138
|
-
}, {
|
|
139
|
-
key: "lang",
|
|
140
|
-
get: function get() {
|
|
141
|
-
return 'libraryEditor.editThumbnail';
|
|
142
|
-
}
|
|
143
|
-
}, {
|
|
144
|
-
key: "template",
|
|
145
|
-
get: function get() {
|
|
146
|
-
return _EditThumbnail_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;
|
|
147
|
-
}
|
|
148
|
-
}, {
|
|
149
|
-
key: "behaviors",
|
|
150
|
-
get: function get() {
|
|
151
|
-
var _this = this;
|
|
152
|
-
|
|
153
|
-
return [{
|
|
154
|
-
behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_4__["ImageSelectBehavior"],
|
|
155
|
-
channelName: this.options.channelName,
|
|
156
|
-
buttonSelector: '.upload-thumbnail',
|
|
157
|
-
imageType: _shared_enums__WEBPACK_IMPORTED_MODULE_5__["ImageType"].Thumbnails,
|
|
158
|
-
appLink: {
|
|
159
|
-
application: _shared_constants__WEBPACK_IMPORTED_MODULE_6__["AppChannels"].LIBRARY_EDITOR,
|
|
160
|
-
action: _shared_constants__WEBPACK_IMPORTED_MODULE_6__["Actions"].LibraryEditor.UPLOAD_THUMBNAIL,
|
|
161
|
-
args: [this.options.model.id]
|
|
162
|
-
},
|
|
163
|
-
saveImage: function saveImage(dataUrl) {
|
|
164
|
-
return _this.viewModel.set({
|
|
165
|
-
dataUrl: dataUrl
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
}];
|
|
169
|
-
}
|
|
170
|
-
}, {
|
|
171
|
-
key: "defaults",
|
|
172
|
-
get: function get() {
|
|
173
|
-
return {
|
|
174
|
-
editable: true
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
}]);
|
|
178
|
-
|
|
179
|
-
return EditThumbnailComponent;
|
|
180
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
181
|
-
|
|
182
|
-
/***/ }),
|
|
183
|
-
|
|
184
|
-
/***/ "./src/apps/library-editor/components/edit-video/EditVideoDetails.hbs":
|
|
185
|
-
/*!****************************************************************************!*\
|
|
186
|
-
!*** ./src/apps/library-editor/components/edit-video/EditVideoDetails.hbs ***!
|
|
187
|
-
\****************************************************************************/
|
|
188
|
-
/*! no static exports found */
|
|
189
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
190
|
-
|
|
191
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
192
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
193
|
-
return "mb-4";
|
|
194
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
195
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
196
|
-
|
|
197
|
-
return " <p class=\"mb-2 py-1 px-2 alert alert-info "
|
|
198
|
-
+ container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
199
|
-
+ "\">\r\n"
|
|
200
|
-
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isExchange : stack1),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.program(6, data, 0),"data":data})) != null ? stack1 : "")
|
|
201
|
-
+ " </p>\r\n";
|
|
202
|
-
},"4":function(container,depth0,helpers,partials,data) {
|
|
203
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
204
|
-
|
|
205
|
-
return " "
|
|
206
|
-
+ ((stack1 = (helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEditExchange",{"name":"lang","hash":{"classNames":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.suggestEditClasses : stack1)},"data":data})) != null ? stack1 : "")
|
|
207
|
-
+ "\r\n";
|
|
208
|
-
},"6":function(container,depth0,helpers,partials,data) {
|
|
209
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
210
|
-
|
|
211
|
-
return " "
|
|
212
|
-
+ ((stack1 = (helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{"classNames":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.suggestEditClasses : stack1)},"data":data})) != null ? stack1 : "")
|
|
213
|
-
+ "\r\n";
|
|
214
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
215
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
216
|
-
|
|
217
|
-
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 "
|
|
218
|
-
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
219
|
-
+ "\"></div>\r\n <div class=\"customer-tags-region\"></div>\r\n </div>\r\n <div class=\"right-pane col-8\">\r\n"
|
|
220
|
-
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
221
|
-
+ " <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>";
|
|
222
|
-
},"useData":true});
|
|
223
|
-
|
|
224
|
-
/***/ }),
|
|
225
|
-
|
|
226
|
-
/***/ "./src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.ts":
|
|
227
|
-
/*!************************************************************************************!*\
|
|
228
|
-
!*** ./src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.ts ***!
|
|
229
|
-
\************************************************************************************/
|
|
230
|
-
/*! exports provided: EditVideoDetailsComponent */
|
|
231
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
232
|
-
|
|
233
|
-
"use strict";
|
|
234
|
-
__webpack_require__.r(__webpack_exports__);
|
|
235
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditVideoDetailsComponent", function() { return EditVideoDetailsComponent; });
|
|
236
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
237
|
-
/* harmony import */ var _shared_components_edit_video_edit_basic_info_EditBasicInfoComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/edit-video/edit-basic-info/EditBasicInfoComponent */ "./src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.ts");
|
|
238
|
-
/* harmony import */ var _shared_components_edit_video_edit_production_info_EditProductionInfoComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/edit-video/edit-production-info/EditProductionInfoComponent */ "./src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.ts");
|
|
239
|
-
/* harmony import */ var _shared_components_edit_video_edit_additional_info_EditAdditionalInfoComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent */ "./src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.ts");
|
|
240
|
-
/* harmony import */ var _shared_components_edit_video_extra_info_ExtraInfoComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/edit-video/extra-info/ExtraInfoComponent */ "./src/shared/components/edit-video/extra-info/ExtraInfoComponent.ts");
|
|
241
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
242
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
243
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
244
|
-
/* harmony import */ var _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/enums/ObjectOwnerType */ "../../libs/shared/src/enums/ObjectOwnerType.ts");
|
|
245
|
-
/* harmony import */ var _tags_TagsComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tags/TagsComponent */ "./src/apps/library-editor/components/tags/TagsComponent.ts");
|
|
246
|
-
/* harmony import */ var _save_SaveComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../save/SaveComponent */ "./src/apps/library-editor/components/save/SaveComponent.ts");
|
|
247
|
-
/* harmony import */ var _edit_thumbnail_EditThumbnailComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../edit-thumbnail/EditThumbnailComponent */ "./src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.ts");
|
|
248
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../enums */ "./src/apps/library-editor/enums/index.ts");
|
|
249
|
-
/* harmony import */ var _EditVideoDetails_hbs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./EditVideoDetails.hbs */ "./src/apps/library-editor/components/edit-video/EditVideoDetails.hbs");
|
|
250
|
-
/* harmony import */ var _EditVideoDetails_hbs__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_EditVideoDetails_hbs__WEBPACK_IMPORTED_MODULE_13__);
|
|
251
|
-
/* harmony import */ var _edit_video_details_scss__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./edit-video-details.scss */ "./src/apps/library-editor/components/edit-video/edit-video-details.scss");
|
|
252
|
-
/* harmony import */ var _edit_video_details_scss__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_edit_video_details_scss__WEBPACK_IMPORTED_MODULE_14__);
|
|
253
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
254
|
-
|
|
255
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
256
|
-
|
|
257
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
258
|
-
|
|
259
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
260
|
-
|
|
261
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
262
|
-
|
|
263
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
264
|
-
|
|
265
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
266
|
-
|
|
267
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
268
|
-
|
|
269
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
270
|
-
|
|
271
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
272
|
-
|
|
273
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* This component exists until we decide on popup/tabbed/own page layout
|
|
293
|
-
*/
|
|
294
|
-
|
|
295
|
-
var EditVideoDetailsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
296
|
-
_inherits(EditVideoDetailsComponent, _Core$Component);
|
|
297
|
-
|
|
298
|
-
var _super = _createSuper(EditVideoDetailsComponent);
|
|
299
|
-
|
|
300
|
-
function EditVideoDetailsComponent(options) {
|
|
301
|
-
_classCallCheck(this, EditVideoDetailsComponent);
|
|
302
|
-
|
|
303
|
-
return _super.call(this, options);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
_createClass(EditVideoDetailsComponent, [{
|
|
307
|
-
key: "initialize",
|
|
308
|
-
value: function initialize() {
|
|
309
|
-
this.listenTo(this.options.channelName, 'update:tags', this.renderCustomerTags);
|
|
310
|
-
}
|
|
311
|
-
}, {
|
|
312
|
-
key: "regions",
|
|
313
|
-
value: function regions() {
|
|
314
|
-
return {
|
|
315
|
-
topSave: {
|
|
316
|
-
el: '.top-save-region',
|
|
317
|
-
replaceElement: true
|
|
318
|
-
},
|
|
319
|
-
bottomSave: {
|
|
320
|
-
el: '.bottom-save-region',
|
|
321
|
-
replaceElement: true
|
|
322
|
-
},
|
|
323
|
-
thumbnail: {
|
|
324
|
-
el: '.thumbnail-region',
|
|
325
|
-
replaceElement: true
|
|
326
|
-
},
|
|
327
|
-
basicInfo: {
|
|
328
|
-
el: '.basic-info-region',
|
|
329
|
-
replaceElement: true
|
|
330
|
-
},
|
|
331
|
-
additionalInfo: {
|
|
332
|
-
el: '.additional-details-region',
|
|
333
|
-
replaceElement: true
|
|
334
|
-
},
|
|
335
|
-
productionInfo: {
|
|
336
|
-
el: '.production-info-region',
|
|
337
|
-
replaceElement: true
|
|
338
|
-
},
|
|
339
|
-
fields: {
|
|
340
|
-
el: '.fields-region',
|
|
341
|
-
replaceElement: true
|
|
342
|
-
},
|
|
343
|
-
clickViewTags: {
|
|
344
|
-
el: '.cv-tags-region',
|
|
345
|
-
replaceElement: false
|
|
346
|
-
},
|
|
347
|
-
customerTags: {
|
|
348
|
-
el: '.customer-tags-region',
|
|
349
|
-
replaceElement: true
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Render methods
|
|
355
|
-
*/
|
|
356
|
-
|
|
357
|
-
}, {
|
|
358
|
-
key: "renderSave",
|
|
359
|
-
value: function renderSave() {
|
|
360
|
-
if (this.options.editable) {
|
|
361
|
-
this.showChildView('topSave', new _save_SaveComponent__WEBPACK_IMPORTED_MODULE_10__["SaveComponent"]({
|
|
362
|
-
channelName: this.options.channelName,
|
|
363
|
-
allowUndo: true,
|
|
364
|
-
isDisabled: this.options.isSaveDisabled,
|
|
365
|
-
hasChanges: this.options.hasChanges,
|
|
366
|
-
extraClasses: 'float-right'
|
|
367
|
-
}));
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
this.showChildView('bottomSave', new _save_SaveComponent__WEBPACK_IMPORTED_MODULE_10__["SaveComponent"]({
|
|
371
|
-
channelName: this.options.channelName,
|
|
372
|
-
allowUndo: true,
|
|
373
|
-
isDisabled: this.options.isSaveDisabled,
|
|
374
|
-
hasChanges: this.options.hasChanges,
|
|
375
|
-
extraClasses: 'float-right'
|
|
376
|
-
}));
|
|
377
|
-
}
|
|
378
|
-
}, {
|
|
379
|
-
key: "renderBasicInfo",
|
|
380
|
-
value: function renderBasicInfo() {
|
|
381
|
-
this.showChildView('basicInfo', new _shared_components_edit_video_edit_basic_info_EditBasicInfoComponent__WEBPACK_IMPORTED_MODULE_1__["EditBasicInfoComponent"]({
|
|
382
|
-
model: this.model,
|
|
383
|
-
ratings: this.options.ratings,
|
|
384
|
-
channelName: this.options.channelName,
|
|
385
|
-
editable: this.options.editable,
|
|
386
|
-
showingSaveButton: this.options.editable,
|
|
387
|
-
showPublisherVideoDetails: this.options.showPublisherVideoDetails
|
|
388
|
-
}));
|
|
389
|
-
}
|
|
390
|
-
}, {
|
|
391
|
-
key: "renderThumbnail",
|
|
392
|
-
value: function renderThumbnail() {
|
|
393
|
-
this.showChildView('thumbnail', new _edit_thumbnail_EditThumbnailComponent__WEBPACK_IMPORTED_MODULE_11__["EditThumbnailComponent"]({
|
|
394
|
-
model: this.model,
|
|
395
|
-
channelName: this.options.channelName,
|
|
396
|
-
editable: this.options.editable
|
|
397
|
-
}));
|
|
398
|
-
}
|
|
399
|
-
}, {
|
|
400
|
-
key: "renderAdditionalInfo",
|
|
401
|
-
value: function renderAdditionalInfo() {
|
|
402
|
-
this.showChildView('additionalInfo', new _shared_components_edit_video_edit_additional_info_EditAdditionalInfoComponent__WEBPACK_IMPORTED_MODULE_3__["EditAdditionalInfoComponent"]({
|
|
403
|
-
model: this.model,
|
|
404
|
-
channelName: this.options.channelName,
|
|
405
|
-
libraries: this.options.libraries,
|
|
406
|
-
hostedLibraries: this.options.hostedLibraries,
|
|
407
|
-
editable: this.options.editable
|
|
408
|
-
}));
|
|
409
|
-
}
|
|
410
|
-
}, {
|
|
411
|
-
key: "renderProductionInfo",
|
|
412
|
-
value: function renderProductionInfo() {
|
|
413
|
-
this.showChildView('productionInfo', new _shared_components_edit_video_edit_production_info_EditProductionInfoComponent__WEBPACK_IMPORTED_MODULE_2__["EditProductionInfoComponent"]({
|
|
414
|
-
model: this.model,
|
|
415
|
-
channelName: this.options.channelName,
|
|
416
|
-
editable: this.options.editable
|
|
417
|
-
}));
|
|
418
|
-
}
|
|
419
|
-
}, {
|
|
420
|
-
key: "renderFields",
|
|
421
|
-
value: function renderFields() {
|
|
422
|
-
this.showChildView('fields', new _shared_components_edit_video_extra_info_ExtraInfoComponent__WEBPACK_IMPORTED_MODULE_4__["ExtraInfoComponent"]({
|
|
423
|
-
model: this.model,
|
|
424
|
-
channelName: this.options.channelName
|
|
425
|
-
}));
|
|
426
|
-
}
|
|
427
|
-
}, {
|
|
428
|
-
key: "renderClickViewTags",
|
|
429
|
-
value: function renderClickViewTags() {
|
|
430
|
-
if (this.options.editable) return;
|
|
431
|
-
var cvTags = _shared_utils__WEBPACK_IMPORTED_MODULE_7__["PermissionsHelper"].filterObjectsByOwnerType(this.model.tags, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_8__["ObjectOwnerType"].ClickView, this.options.currentUser.get('customerId'));
|
|
432
|
-
this.showChildView('clickViewTags', new _tags_TagsComponent__WEBPACK_IMPORTED_MODULE_9__["TagsComponent"]({
|
|
433
|
-
parentId: this.model.get('id'),
|
|
434
|
-
collection: cvTags,
|
|
435
|
-
orientation: _enums__WEBPACK_IMPORTED_MODULE_12__["TagOrientation"].Flex,
|
|
436
|
-
behavior: _enums__WEBPACK_IMPORTED_MODULE_12__["TagBehavior"].Disabled,
|
|
437
|
-
channelName: this.options.channelName,
|
|
438
|
-
headerText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'clickviewTags'),
|
|
439
|
-
emptyStateText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'clickviewTagsEmpty')
|
|
440
|
-
}));
|
|
441
|
-
}
|
|
442
|
-
}, {
|
|
443
|
-
key: "renderCustomerTags",
|
|
444
|
-
value: function renderCustomerTags() {
|
|
445
|
-
var customerTags = _shared_utils__WEBPACK_IMPORTED_MODULE_7__["PermissionsHelper"].filterObjectsByOwnerType(this.model.tags, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_8__["ObjectOwnerType"].Customer, this.options.currentUser.get('customerId'));
|
|
446
|
-
this.showChildView('customerTags', new _tags_TagsComponent__WEBPACK_IMPORTED_MODULE_9__["TagsComponent"]({
|
|
447
|
-
parentId: this.model.get('id'),
|
|
448
|
-
collection: customerTags,
|
|
449
|
-
channelName: this.options.channelName,
|
|
450
|
-
behavior: _enums__WEBPACK_IMPORTED_MODULE_12__["TagBehavior"].Edit,
|
|
451
|
-
headerText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'customerTags'),
|
|
452
|
-
removeEvent: 'remove:tag'
|
|
453
|
-
}));
|
|
454
|
-
}
|
|
455
|
-
}, {
|
|
456
|
-
key: "renderTags",
|
|
457
|
-
value: function renderTags() {
|
|
458
|
-
this.renderClickViewTags();
|
|
459
|
-
this.renderCustomerTags();
|
|
460
|
-
}
|
|
461
|
-
}, {
|
|
462
|
-
key: "viewOptions",
|
|
463
|
-
value: function viewOptions() {
|
|
464
|
-
return {
|
|
465
|
-
styles: _edit_video_details_scss__WEBPACK_IMPORTED_MODULE_14___default.a,
|
|
466
|
-
editable: this.options.editable,
|
|
467
|
-
suggestEditClasses: 'info-link text-underline suggest-edit',
|
|
468
|
-
isExchange: _shared_utils__WEBPACK_IMPORTED_MODULE_7__["VideoHelper"].isExchangeVideo(this.model)
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
}, {
|
|
472
|
-
key: "onRender",
|
|
473
|
-
value: function onRender() {
|
|
474
|
-
this.renderSave();
|
|
475
|
-
this.renderBasicInfo();
|
|
476
|
-
this.renderThumbnail();
|
|
477
|
-
this.renderAdditionalInfo();
|
|
478
|
-
this.renderProductionInfo();
|
|
479
|
-
this.renderFields();
|
|
480
|
-
this.renderTags();
|
|
481
|
-
}
|
|
482
|
-
}, {
|
|
483
|
-
key: "name",
|
|
484
|
-
get: function get() {
|
|
485
|
-
return 'EditVideoDetailsComponent';
|
|
486
|
-
}
|
|
487
|
-
}, {
|
|
488
|
-
key: "className",
|
|
489
|
-
get: function get() {
|
|
490
|
-
return 'edit-video-detail py-3';
|
|
491
|
-
}
|
|
492
|
-
}, {
|
|
493
|
-
key: "lang",
|
|
494
|
-
get: function get() {
|
|
495
|
-
return 'libraryEditor.editVideoDetails';
|
|
496
|
-
}
|
|
497
|
-
}, {
|
|
498
|
-
key: "template",
|
|
499
|
-
get: function get() {
|
|
500
|
-
return _EditVideoDetails_hbs__WEBPACK_IMPORTED_MODULE_13___default.a;
|
|
501
|
-
}
|
|
502
|
-
}, {
|
|
503
|
-
key: "appLinks",
|
|
504
|
-
get: function get() {
|
|
505
|
-
return {
|
|
506
|
-
'.suggest-edit': {
|
|
507
|
-
application: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["AppChannels"].LIBRARY_EDITOR,
|
|
508
|
-
action: _shared_constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
509
|
-
args: [this.model.id]
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
}]);
|
|
514
|
-
|
|
515
|
-
return EditVideoDetailsComponent;
|
|
516
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
517
|
-
|
|
518
|
-
/***/ }),
|
|
519
|
-
|
|
520
|
-
/***/ "./src/apps/library-editor/components/edit-video/edit-video-details.scss":
|
|
521
|
-
/*!*******************************************************************************!*\
|
|
522
|
-
!*** ./src/apps/library-editor/components/edit-video/edit-video-details.scss ***!
|
|
523
|
-
\*******************************************************************************/
|
|
524
|
-
/*! no static exports found */
|
|
525
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
526
|
-
|
|
527
|
-
// extracted by mini-css-extract-plugin
|
|
528
|
-
module.exports = {"suggestEdit":"cv--suggestEdit--1X4l5"};
|
|
529
|
-
|
|
530
|
-
/***/ }),
|
|
531
|
-
|
|
532
|
-
/***/ "./src/apps/library-editor/components/save/Save.hbs":
|
|
533
|
-
/*!**********************************************************!*\
|
|
534
|
-
!*** ./src/apps/library-editor/components/save/Save.hbs ***!
|
|
535
|
-
\**********************************************************/
|
|
536
|
-
/*! no static exports found */
|
|
537
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
538
|
-
|
|
539
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
540
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
541
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
542
|
-
|
|
543
|
-
return "<span class=\"text-muted mx-2 undo "
|
|
544
|
-
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.undo : stack1), depth0))
|
|
545
|
-
+ "\">"
|
|
546
|
-
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"undo",{"name":"lang","hash":{},"data":data}))
|
|
547
|
-
+ "</span>\r\n";
|
|
548
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
549
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
550
|
-
|
|
551
|
-
return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.allowUndo : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
552
|
-
+ "<div class=\"save-region\"></div>";
|
|
553
|
-
},"useData":true});
|
|
554
|
-
|
|
555
|
-
/***/ }),
|
|
556
|
-
|
|
557
|
-
/***/ "./src/apps/library-editor/components/save/SaveComponent.ts":
|
|
558
|
-
/*!******************************************************************!*\
|
|
559
|
-
!*** ./src/apps/library-editor/components/save/SaveComponent.ts ***!
|
|
560
|
-
\******************************************************************/
|
|
561
|
-
/*! exports provided: SaveComponent */
|
|
562
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
563
|
-
|
|
564
|
-
"use strict";
|
|
565
|
-
__webpack_require__.r(__webpack_exports__);
|
|
566
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaveComponent", function() { return SaveComponent; });
|
|
567
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
568
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
569
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
570
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
571
|
-
/* harmony import */ var _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
|
|
572
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
573
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ "./src/apps/library-editor/constants/index.ts");
|
|
574
|
-
/* harmony import */ var _Save_hbs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Save.hbs */ "./src/apps/library-editor/components/save/Save.hbs");
|
|
575
|
-
/* harmony import */ var _Save_hbs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Save_hbs__WEBPACK_IMPORTED_MODULE_6__);
|
|
576
|
-
/* harmony import */ var _save_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./save.scss */ "./src/apps/library-editor/components/save/save.scss");
|
|
577
|
-
/* harmony import */ var _save_scss__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_save_scss__WEBPACK_IMPORTED_MODULE_7__);
|
|
578
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
579
|
-
|
|
580
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
581
|
-
|
|
582
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
583
|
-
|
|
584
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
585
|
-
|
|
586
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
587
|
-
|
|
588
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
589
|
-
|
|
590
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
591
|
-
|
|
592
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
593
|
-
|
|
594
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
595
|
-
|
|
596
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
597
|
-
|
|
598
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
599
|
-
|
|
600
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
var SaveComponent = /*#__PURE__*/function (_Core$Component) {
|
|
611
|
-
_inherits(SaveComponent, _Core$Component);
|
|
612
|
-
|
|
613
|
-
var _super = _createSuper(SaveComponent);
|
|
614
|
-
|
|
615
|
-
function SaveComponent(options) {
|
|
616
|
-
_classCallCheck(this, SaveComponent);
|
|
617
|
-
|
|
618
|
-
return _super.call(this, options);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
_createClass(SaveComponent, [{
|
|
622
|
-
key: "getParentChannel",
|
|
623
|
-
value: function getParentChannel() {
|
|
624
|
-
return backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName);
|
|
625
|
-
}
|
|
626
|
-
}, {
|
|
627
|
-
key: "getSaveChannelName",
|
|
628
|
-
value: function getSaveChannelName() {
|
|
629
|
-
return "".concat(this.name, ":").concat(this.cid);
|
|
630
|
-
}
|
|
631
|
-
}, {
|
|
632
|
-
key: "regions",
|
|
633
|
-
value: function regions() {
|
|
634
|
-
return {
|
|
635
|
-
save: {
|
|
636
|
-
el: '.save-region',
|
|
637
|
-
replaceElement: true
|
|
638
|
-
}
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
}, {
|
|
642
|
-
key: "events",
|
|
643
|
-
value: function events() {
|
|
644
|
-
return {
|
|
645
|
-
'click .undo': 'onUndo'
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
}, {
|
|
649
|
-
key: "initialize",
|
|
650
|
-
value: function initialize() {
|
|
651
|
-
var _Core$Model;
|
|
652
|
-
|
|
653
|
-
if (!this.model) this.model = new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Model((_Core$Model = {}, _defineProperty(_Core$Model, _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].ShowSpinner, this.options.showSpinner), _defineProperty(_Core$Model, _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].Disabled, this.options.isDisabled), _Core$Model));
|
|
654
|
-
var channel = this.options.channelName;
|
|
655
|
-
this.listenTo(channel, _constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].DisableSave, this.onDisableSave);
|
|
656
|
-
this.listenTo(channel, _constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].EnableSave, this.onEnableSave);
|
|
657
|
-
this.listenTo(channel, _constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].CancelSave, this.onCancelSave);
|
|
658
|
-
var saveChannel = backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.getSaveChannelName());
|
|
659
|
-
this.listenTo(saveChannel, _constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].Save, this.onSave);
|
|
660
|
-
|
|
661
|
-
if (this.options.allowUndo) {
|
|
662
|
-
if (this.options.hasChanges) {
|
|
663
|
-
this.model.set('showUndo', true);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
this.listenTo(this.model, 'change:showUndo', this.render);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}, {
|
|
670
|
-
key: "onCancelSave",
|
|
671
|
-
value: function onCancelSave() {
|
|
672
|
-
this.model.set(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].ShowSpinner, false);
|
|
673
|
-
}
|
|
674
|
-
}, {
|
|
675
|
-
key: "onEnableSave",
|
|
676
|
-
value: function onEnableSave() {
|
|
677
|
-
this.model.set(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].Disabled, false);
|
|
678
|
-
if (this.options.allowUndo) this.model.set('showUndo', true);
|
|
679
|
-
}
|
|
680
|
-
}, {
|
|
681
|
-
key: "onDisableSave",
|
|
682
|
-
value: function onDisableSave() {
|
|
683
|
-
if (this.model.get(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].ShowSpinner)) this.model.set(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].ShowSpinner, false, {
|
|
684
|
-
silent: true
|
|
685
|
-
});
|
|
686
|
-
this.model.set(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].Disabled, true);
|
|
687
|
-
if (this.options.allowUndo) this.model.set('showUndo', false);
|
|
688
|
-
}
|
|
689
|
-
}, {
|
|
690
|
-
key: "onUndo",
|
|
691
|
-
value: function onUndo(e) {
|
|
692
|
-
e.stopPropagation();
|
|
693
|
-
var channel = this.getParentChannel();
|
|
694
|
-
channel.trigger(_constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].Undo);
|
|
695
|
-
}
|
|
696
|
-
}, {
|
|
697
|
-
key: "onSave",
|
|
698
|
-
value: function onSave() {
|
|
699
|
-
this.model.set(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonModelAttributes"].ShowSpinner, true);
|
|
700
|
-
var channel = this.getParentChannel();
|
|
701
|
-
channel.trigger(_constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].Save);
|
|
702
|
-
}
|
|
703
|
-
}, {
|
|
704
|
-
key: "viewOptions",
|
|
705
|
-
value: function viewOptions() {
|
|
706
|
-
return {
|
|
707
|
-
allowUndo: this.options.allowUndo && this.model.get('showUndo'),
|
|
708
|
-
styles: _save_scss__WEBPACK_IMPORTED_MODULE_7___default.a
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
}, {
|
|
712
|
-
key: "renderSaveButton",
|
|
713
|
-
value: function renderSaveButton() {
|
|
714
|
-
var view = new _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonComponent"]({
|
|
715
|
-
saveEvent: _constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].Save,
|
|
716
|
-
channelName: this.getSaveChannelName(),
|
|
717
|
-
model: this.model,
|
|
718
|
-
buttonText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'save'),
|
|
719
|
-
extraButtonClass: "btn-primary ".concat(_save_scss__WEBPACK_IMPORTED_MODULE_7___default.a.saveButton),
|
|
720
|
-
spinnerOptions: {
|
|
721
|
-
size: _shared_utils__WEBPACK_IMPORTED_MODULE_2__["SpinnerSize"].Small,
|
|
722
|
-
type: _shared_utils__WEBPACK_IMPORTED_MODULE_2__["SpinnerType"].Light,
|
|
723
|
-
extraClasses: 'mx-auto'
|
|
724
|
-
}
|
|
725
|
-
});
|
|
726
|
-
this.showChildView('save', view);
|
|
727
|
-
}
|
|
728
|
-
}, {
|
|
729
|
-
key: "onRender",
|
|
730
|
-
value: function onRender() {
|
|
731
|
-
this.renderSaveButton();
|
|
732
|
-
}
|
|
733
|
-
}, {
|
|
734
|
-
key: "name",
|
|
735
|
-
get: function get() {
|
|
736
|
-
return 'SaveComponent';
|
|
737
|
-
}
|
|
738
|
-
}, {
|
|
739
|
-
key: "template",
|
|
740
|
-
get: function get() {
|
|
741
|
-
return _Save_hbs__WEBPACK_IMPORTED_MODULE_6___default.a;
|
|
742
|
-
}
|
|
743
|
-
}, {
|
|
744
|
-
key: "className",
|
|
745
|
-
get: function get() {
|
|
746
|
-
return "save-component ".concat(this.options.extraClasses);
|
|
747
|
-
}
|
|
748
|
-
}, {
|
|
749
|
-
key: "lang",
|
|
750
|
-
get: function get() {
|
|
751
|
-
return 'libraryEditor.save';
|
|
752
|
-
}
|
|
753
|
-
}]);
|
|
754
|
-
|
|
755
|
-
return SaveComponent;
|
|
756
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
757
|
-
|
|
758
|
-
/***/ }),
|
|
759
|
-
|
|
760
|
-
/***/ "./src/apps/library-editor/components/save/save.scss":
|
|
761
|
-
/*!***********************************************************!*\
|
|
762
|
-
!*** ./src/apps/library-editor/components/save/save.scss ***!
|
|
763
|
-
\***********************************************************/
|
|
764
|
-
/*! no static exports found */
|
|
765
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
766
|
-
|
|
767
|
-
// extracted by mini-css-extract-plugin
|
|
768
|
-
module.exports = {"saveButton":"cv--saveButton--2FsA6","undo":"cv--undo--v6msX"};
|
|
769
|
-
|
|
770
|
-
/***/ }),
|
|
771
|
-
|
|
772
|
-
/***/ "./src/apps/library-editor/components/tags/Tags.hbs":
|
|
773
|
-
/*!**********************************************************!*\
|
|
774
|
-
!*** ./src/apps/library-editor/components/tags/Tags.hbs ***!
|
|
775
|
-
\**********************************************************/
|
|
776
|
-
/*! no static exports found */
|
|
777
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
778
|
-
|
|
779
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
780
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
781
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
782
|
-
|
|
783
|
-
return "<h5>"
|
|
784
|
-
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.headerText : stack1), depth0))
|
|
785
|
-
+ "</h5>\r\n";
|
|
786
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
787
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
788
|
-
|
|
789
|
-
return "<p>"
|
|
790
|
-
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.emptyStateText : stack1), depth0))
|
|
791
|
-
+ "</p>\r\n";
|
|
792
|
-
},"5":function(container,depth0,helpers,partials,data) {
|
|
793
|
-
return "<div class=\"tag-selector-region\"></div>\r\n";
|
|
794
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
795
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
796
|
-
|
|
797
|
-
return ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.headerText : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
798
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.emptyStateText : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
799
|
-
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
800
|
-
+ "<div class=\"tag-list-region\"></div>";
|
|
801
|
-
},"useData":true});
|
|
802
|
-
|
|
803
|
-
/***/ }),
|
|
804
|
-
|
|
805
|
-
/***/ "./src/apps/library-editor/components/tags/TagsComponent.ts":
|
|
806
|
-
/*!******************************************************************!*\
|
|
807
|
-
!*** ./src/apps/library-editor/components/tags/TagsComponent.ts ***!
|
|
808
|
-
\******************************************************************/
|
|
809
|
-
/*! exports provided: TagsComponent */
|
|
810
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
811
|
-
|
|
812
|
-
"use strict";
|
|
813
|
-
__webpack_require__.r(__webpack_exports__);
|
|
814
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TagsComponent", function() { return TagsComponent; });
|
|
815
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
816
|
-
/* harmony import */ var _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/errors/DevError */ "../../libs/common/src/backbone/errors/DevError.ts");
|
|
817
|
-
/* harmony import */ var _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/apps/search/utils/TypeaheadHelper */ "../../libs/shared/src/apps/search/utils/TypeaheadHelper.ts");
|
|
818
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
819
|
-
/* harmony import */ var _shared_utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/utils/search/RawSearchHelper */ "./src/shared/utils/search/RawSearchHelper.ts");
|
|
820
|
-
/* harmony import */ var _shared_components_typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/typeahead-input/SearchTypeaheadComponent */ "./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts");
|
|
821
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
822
|
-
/* harmony import */ var _tag_list_TagComponentCollection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tag-list/TagComponentCollection */ "./src/apps/library-editor/components/tag-list/TagComponentCollection.ts");
|
|
823
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../enums */ "./src/apps/library-editor/enums/index.ts");
|
|
824
|
-
/* harmony import */ var _Tags_hbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Tags.hbs */ "./src/apps/library-editor/components/tags/Tags.hbs");
|
|
825
|
-
/* harmony import */ var _Tags_hbs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Tags_hbs__WEBPACK_IMPORTED_MODULE_9__);
|
|
826
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
827
|
-
|
|
828
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
829
|
-
|
|
830
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
831
|
-
|
|
832
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
833
|
-
|
|
834
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
835
|
-
|
|
836
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
837
|
-
|
|
838
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
839
|
-
|
|
840
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
841
|
-
|
|
842
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
843
|
-
|
|
844
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
845
|
-
|
|
846
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
var TagsComponent = /*#__PURE__*/function (_Core$Component) {
|
|
859
|
-
_inherits(TagsComponent, _Core$Component);
|
|
860
|
-
|
|
861
|
-
var _super = _createSuper(TagsComponent);
|
|
862
|
-
|
|
863
|
-
function TagsComponent(options) {
|
|
864
|
-
_classCallCheck(this, TagsComponent);
|
|
865
|
-
|
|
866
|
-
return _super.call(this, options);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
_createClass(TagsComponent, [{
|
|
870
|
-
key: "regions",
|
|
871
|
-
value: function regions() {
|
|
872
|
-
return {
|
|
873
|
-
tagList: {
|
|
874
|
-
el: '.tag-list-region',
|
|
875
|
-
replaceElement: true
|
|
876
|
-
},
|
|
877
|
-
tagSelector: {
|
|
878
|
-
el: '.tag-selector-region',
|
|
879
|
-
replaceElement: true
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
}
|
|
883
|
-
}, {
|
|
884
|
-
key: "initialize",
|
|
885
|
-
value: function initialize() {
|
|
886
|
-
if (this.options.behavior === _enums__WEBPACK_IMPORTED_MODULE_8__["TagBehavior"].Edit && !this.options.parentId) _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_1__["DevError"]('parentId is required to edit tags.'));
|
|
887
|
-
}
|
|
888
|
-
}, {
|
|
889
|
-
key: "getTypeaheadConfigs",
|
|
890
|
-
value: function getTypeaheadConfigs() {
|
|
891
|
-
var typeaheadConfig = _shared_utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_4__["RawSearchHelper"].getTypeaheadConfig();
|
|
892
|
-
var bloodhoundConfig = _shared_utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_4__["RawSearchHelper"].getBloodhoundConfig();
|
|
893
|
-
var rawTagOptions = {
|
|
894
|
-
hideEmptyResults: true
|
|
895
|
-
};
|
|
896
|
-
var newTagOptions = {
|
|
897
|
-
newType: _shared_constants__WEBPACK_IMPORTED_MODULE_3__["SearchQueryType"].TagsRaw
|
|
898
|
-
};
|
|
899
|
-
var emptySuggestionOptions = {
|
|
900
|
-
newType: _shared_constants__WEBPACK_IMPORTED_MODULE_3__["SearchQueryType"].TagsRaw,
|
|
901
|
-
footerTemplate: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_2__["TypeaheadHelper"].getConfirmSelectionTemplate()
|
|
902
|
-
}; // The order here is important. It reflects how suggestions will be rendered in the typeahead.
|
|
903
|
-
|
|
904
|
-
return [{
|
|
905
|
-
name: _shared_constants__WEBPACK_IMPORTED_MODULE_3__["SearchQueryType"].TagsRaw,
|
|
906
|
-
typeaheadConfig: typeaheadConfig,
|
|
907
|
-
bloodhoundConfig: bloodhoundConfig,
|
|
908
|
-
options: rawTagOptions
|
|
909
|
-
}, {
|
|
910
|
-
name: 'add-new',
|
|
911
|
-
typeaheadConfig: typeaheadConfig,
|
|
912
|
-
bloodhoundConfig: bloodhoundConfig,
|
|
913
|
-
options: newTagOptions
|
|
914
|
-
}, {
|
|
915
|
-
name: 'empty-suggestion',
|
|
916
|
-
typeaheadConfig: typeaheadConfig,
|
|
917
|
-
bloodhoundConfig: bloodhoundConfig,
|
|
918
|
-
options: emptySuggestionOptions
|
|
919
|
-
}];
|
|
920
|
-
}
|
|
921
|
-
}, {
|
|
922
|
-
key: "viewOptions",
|
|
923
|
-
value: function viewOptions() {
|
|
924
|
-
var emptyStateText;
|
|
925
|
-
if (this.showEmptyStateText()) emptyStateText = this.options.emptyStateText;
|
|
926
|
-
return {
|
|
927
|
-
headerText: this.options.headerText,
|
|
928
|
-
editable: this.options.behavior === _enums__WEBPACK_IMPORTED_MODULE_8__["TagBehavior"].Edit,
|
|
929
|
-
emptyStateText: emptyStateText
|
|
930
|
-
};
|
|
931
|
-
}
|
|
932
|
-
}, {
|
|
933
|
-
key: "showEmptyStateText",
|
|
934
|
-
value: function showEmptyStateText() {
|
|
935
|
-
return this.options.behavior !== _enums__WEBPACK_IMPORTED_MODULE_8__["TagBehavior"].Edit && !this.collection.length && !!this.options.emptyStateText;
|
|
936
|
-
}
|
|
937
|
-
}, {
|
|
938
|
-
key: "renderTagSelector",
|
|
939
|
-
value: function renderTagSelector() {
|
|
940
|
-
if (this.options.behavior !== _enums__WEBPACK_IMPORTED_MODULE_8__["TagBehavior"].Edit) return;
|
|
941
|
-
this.showChildView('tagSelector', new _shared_components_typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_5__["SearchTypeaheadComponent"]({
|
|
942
|
-
model: this.model,
|
|
943
|
-
parentChannelName: this.options.channelName,
|
|
944
|
-
inputId: 'tag-select',
|
|
945
|
-
selectEvent: 'add:tag',
|
|
946
|
-
typeaheadConfigs: this.getTypeaheadConfigs(),
|
|
947
|
-
placeholderText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'placeholder'),
|
|
948
|
-
callbacks: {
|
|
949
|
-
onRender: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_2__["TypeaheadHelper"].selectFirstResult,
|
|
950
|
-
onBlur: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_2__["TypeaheadHelper"].clearInputOnBlur
|
|
951
|
-
},
|
|
952
|
-
typeaheadOptions: {
|
|
953
|
-
hint: false
|
|
954
|
-
},
|
|
955
|
-
actionOptions: {
|
|
956
|
-
clearOnSelect: true
|
|
957
|
-
}
|
|
958
|
-
}));
|
|
959
|
-
}
|
|
960
|
-
}, {
|
|
961
|
-
key: "renderTagList",
|
|
962
|
-
value: function renderTagList() {
|
|
963
|
-
if (this.showEmptyStateText()) return;
|
|
964
|
-
this.showChildView('tagList', new _tag_list_TagComponentCollection__WEBPACK_IMPORTED_MODULE_7__["TagComponentCollection"]({
|
|
965
|
-
collection: this.collection,
|
|
966
|
-
channelName: this.options.channelName,
|
|
967
|
-
behavior: this.options.behavior,
|
|
968
|
-
orientation: this.options.orientation,
|
|
969
|
-
removeEvent: this.options.removeEvent
|
|
970
|
-
}));
|
|
971
|
-
}
|
|
972
|
-
}, {
|
|
973
|
-
key: "onRender",
|
|
974
|
-
value: function onRender() {
|
|
975
|
-
this.renderTagSelector();
|
|
976
|
-
this.renderTagList();
|
|
977
|
-
}
|
|
978
|
-
}, {
|
|
979
|
-
key: "name",
|
|
980
|
-
get: function get() {
|
|
981
|
-
return 'TagsComponent';
|
|
982
|
-
}
|
|
983
|
-
}, {
|
|
984
|
-
key: "template",
|
|
985
|
-
get: function get() {
|
|
986
|
-
return _Tags_hbs__WEBPACK_IMPORTED_MODULE_9___default.a;
|
|
987
|
-
}
|
|
988
|
-
}, {
|
|
989
|
-
key: "lang",
|
|
990
|
-
get: function get() {
|
|
991
|
-
return 'libraryEditor.tags';
|
|
992
|
-
}
|
|
993
|
-
}, {
|
|
994
|
-
key: "defaults",
|
|
995
|
-
get: function get() {
|
|
996
|
-
return {
|
|
997
|
-
headerText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_6__["LanguageService"].getPhrase(this.lang, 'heading'),
|
|
998
|
-
orientation: _enums__WEBPACK_IMPORTED_MODULE_8__["TagOrientation"].Flex
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
}]);
|
|
1002
|
-
|
|
1003
|
-
return TagsComponent;
|
|
1004
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
1005
|
-
|
|
1006
|
-
/***/ }),
|
|
1007
|
-
|
|
1008
|
-
/***/ "./src/apps/library-editor/views/edit-video/EditVideo.hbs":
|
|
1009
|
-
/*!****************************************************************!*\
|
|
1010
|
-
!*** ./src/apps/library-editor/views/edit-video/EditVideo.hbs ***!
|
|
1011
|
-
\****************************************************************/
|
|
1012
|
-
/*! no static exports found */
|
|
1013
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1014
|
-
|
|
1015
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1016
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1017
|
-
return "<div class=\"tab-region\"></div>\r\n<div class=\"edit-content-region\"></div>\r\n<div class=\"dialog-region\"></div>";
|
|
1018
|
-
},"useData":true});
|
|
1019
|
-
|
|
1020
|
-
/***/ }),
|
|
1021
|
-
|
|
1022
|
-
/***/ "./src/apps/library-editor/views/edit-video/EditVideoView.ts":
|
|
1023
|
-
/*!*******************************************************************!*\
|
|
1024
|
-
!*** ./src/apps/library-editor/views/edit-video/EditVideoView.ts ***!
|
|
1025
|
-
\*******************************************************************/
|
|
1026
|
-
/*! exports provided: EditVideoView */
|
|
1027
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1028
|
-
|
|
1029
|
-
"use strict";
|
|
1030
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1031
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditVideoView", function() { return EditVideoView; });
|
|
1032
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
1033
|
-
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
1034
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1035
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
1036
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1037
|
-
/* harmony import */ var _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/errors/DevError */ "../../libs/common/src/backbone/errors/DevError.ts");
|
|
1038
|
-
/* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
|
|
1039
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1040
|
-
/* harmony import */ var _libs_common_src_backbone_constants_CommonChannels__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/constants/CommonChannels */ "../../libs/common/src/backbone/constants/CommonChannels.ts");
|
|
1041
|
-
/* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
|
|
1042
|
-
/* harmony import */ var _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/enums/DataServiceErrorType */ "../../libs/common/src/backbone/enums/DataServiceErrorType.ts");
|
|
1043
|
-
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
1044
|
-
/* harmony import */ var _shared_collections_SeasonCollection__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/collections/SeasonCollection */ "./src/shared/collections/SeasonCollection.ts");
|
|
1045
|
-
/* harmony import */ var _shared_services_UserDataService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/UserDataService */ "./src/shared/services/UserDataService.ts");
|
|
1046
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
1047
|
-
/* harmony import */ var _shared_models_Video__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/models/Video */ "./src/shared/models/Video.ts");
|
|
1048
|
-
/* harmony import */ var _shared_models_Tag__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/models/Tag */ "./src/shared/models/Tag.ts");
|
|
1049
|
-
/* harmony import */ var _shared_alerts__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../shared/alerts */ "./src/shared/alerts/index.ts");
|
|
1050
|
-
/* harmony import */ var _shared_enums__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../shared/enums */ "./src/shared/enums/index.ts");
|
|
1051
|
-
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
1052
|
-
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
1053
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../constants */ "./src/apps/library-editor/constants/index.ts");
|
|
1054
|
-
/* harmony import */ var _services_LibraryDataService__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../services/LibraryDataService */ "./src/apps/library-editor/services/LibraryDataService.ts");
|
|
1055
|
-
/* harmony import */ var _utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../utils/EditVideoHelpers */ "./src/apps/library-editor/utils/EditVideoHelpers.ts");
|
|
1056
|
-
/* harmony import */ var _components_edit_video_EditVideoDetailsComponent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../components/edit-video/EditVideoDetailsComponent */ "./src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.ts");
|
|
1057
|
-
/* harmony import */ var _components_edit_video_tabs_EditVideoTabsComponent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../components/edit-video-tabs/EditVideoTabsComponent */ "./src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.ts");
|
|
1058
|
-
/* harmony import */ var _errors_forbidden_video_ForbiddenVideoError__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../errors/forbidden-video/ForbiddenVideoError */ "./src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.ts");
|
|
1059
|
-
/* harmony import */ var _errors_video_not_found_VideoNotFoundError__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../errors/video-not-found/VideoNotFoundError */ "./src/apps/library-editor/errors/video-not-found/VideoNotFoundError.ts");
|
|
1060
|
-
/* harmony import */ var _EditVideo_hbs__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./EditVideo.hbs */ "./src/apps/library-editor/views/edit-video/EditVideo.hbs");
|
|
1061
|
-
/* harmony import */ var _EditVideo_hbs__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_EditVideo_hbs__WEBPACK_IMPORTED_MODULE_26__);
|
|
1062
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1063
|
-
|
|
1064
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1065
|
-
|
|
1066
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1067
|
-
|
|
1068
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1069
|
-
|
|
1070
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1071
|
-
|
|
1072
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1073
|
-
|
|
1074
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1075
|
-
|
|
1076
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1077
|
-
|
|
1078
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1079
|
-
|
|
1080
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1081
|
-
|
|
1082
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
// Move to common
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
var EditVideoView = /*#__PURE__*/function (_Core$View) {
|
|
1113
|
-
_inherits(EditVideoView, _Core$View);
|
|
1114
|
-
|
|
1115
|
-
var _super = _createSuper(EditVideoView);
|
|
1116
|
-
|
|
1117
|
-
function EditVideoView(options) {
|
|
1118
|
-
var _this;
|
|
1119
|
-
|
|
1120
|
-
_classCallCheck(this, EditVideoView);
|
|
1121
|
-
|
|
1122
|
-
_this = _super.call(this, options);
|
|
1123
|
-
/**
|
|
1124
|
-
* @description
|
|
1125
|
-
* Editable state is determined based on the library origin
|
|
1126
|
-
* of the video. If the video exists in a non-custom library
|
|
1127
|
-
* (ie. Hosted library or the Exchange) it will not be editable.
|
|
1128
|
-
*/
|
|
1129
|
-
|
|
1130
|
-
_this.editable = false;
|
|
1131
|
-
return _this;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
_createClass(EditVideoView, [{
|
|
1135
|
-
key: "regions",
|
|
1136
|
-
value: function regions() {
|
|
1137
|
-
return {
|
|
1138
|
-
tabs: {
|
|
1139
|
-
el: '.tab-region',
|
|
1140
|
-
replaceElement: true,
|
|
1141
|
-
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_16__["PartialLoading"].EditVideoTabs
|
|
1142
|
-
},
|
|
1143
|
-
content: {
|
|
1144
|
-
el: '.edit-content-region',
|
|
1145
|
-
replaceElement: true,
|
|
1146
|
-
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_16__["PartialLoading"].EditVideoDetails
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
|
-
}
|
|
1150
|
-
}, {
|
|
1151
|
-
key: "initialize",
|
|
1152
|
-
value: function initialize() {
|
|
1153
|
-
this.navLock = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["Services"].NavLock, this);
|
|
1154
|
-
this.initDataListeners();
|
|
1155
|
-
_shared_utils__WEBPACK_IMPORTED_MODULE_12__["TabHelper"].initBackButton();
|
|
1156
|
-
this.initServices();
|
|
1157
|
-
}
|
|
1158
|
-
}, {
|
|
1159
|
-
key: "initServices",
|
|
1160
|
-
value: function initServices() {
|
|
1161
|
-
this.videoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Video, this);
|
|
1162
|
-
this.tagDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Tags, this);
|
|
1163
|
-
this.libraryDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Library, this);
|
|
1164
|
-
this.seriesDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Series, this);
|
|
1165
|
-
this.ratingsDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Ratings, this);
|
|
1166
|
-
this.migrationVideoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].MigrationVideo, this);
|
|
1167
|
-
this.fieldsDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Fields, this);
|
|
1168
|
-
this.alertService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["Services"].Alerts, this);
|
|
1169
|
-
this.personDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Person, this);
|
|
1170
|
-
this.companyDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_7__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataServices"].Company, this);
|
|
1171
|
-
}
|
|
1172
|
-
}, {
|
|
1173
|
-
key: "initDataListeners",
|
|
1174
|
-
value: function initDataListeners() {
|
|
1175
|
-
this.listenTo(_libs_common_src_backbone_constants_CommonChannels__WEBPACK_IMPORTED_MODULE_6__["CommonChannels"].SHELL, _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].EventNames.NAV_UNLOCKED_BY_USER, this.onNavigateAway);
|
|
1176
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataChannels"].VIDEO, "videos:".concat(this.options.videoId, ":sync"), this.render);
|
|
1177
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataChannels"].VIDEO, "videos:".concat(this.options.videoId, ":error"), this.onError);
|
|
1178
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataChannels"].RATINGS, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataPrefixes"].RATINGS, ":sync"), this.render);
|
|
1179
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataChannels"].VIDEO, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataPrefixes"].UPDATE_VIDEO_THUMBNAIL, ":").concat(this.options.videoId, ":sync"), this.onThumbnailUpdated);
|
|
1180
|
-
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_9__["DataChannels"].LIBRARY, "hosted:libraries:sync", this.render);
|
|
1181
|
-
/**
|
|
1182
|
-
* Tap into changes occuring within child components
|
|
1183
|
-
*/
|
|
1184
|
-
// Select model events
|
|
1185
|
-
|
|
1186
|
-
this.listenTo(this.channelName, 'select:rating', underscore__WEBPACK_IMPORTED_MODULE_0__["partial"](this.onTypeaheadSelection, underscore__WEBPACK_IMPORTED_MODULE_0__, 'rating'));
|
|
1187
|
-
this.listenTo(this.channelName, 'select:channel', underscore__WEBPACK_IMPORTED_MODULE_0__["partial"](this.onTypeaheadSelection, underscore__WEBPACK_IMPORTED_MODULE_0__, 'channel'));
|
|
1188
|
-
this.listenTo(this.channelName, 'select:series', this.onSelectSeries);
|
|
1189
|
-
this.listenTo(this.channelName, 'add:season', this.onSelectSeason); // Add to collection events
|
|
1190
|
-
|
|
1191
|
-
this.listenTo(this.channelName, 'add:distributors', this.onSelectDistributor);
|
|
1192
|
-
this.listenTo(this.channelName, 'add:productionCompanies', this.onSelectProductionCompany);
|
|
1193
|
-
this.listenTo(this.channelName, 'add:directors', this.onSelectDirector);
|
|
1194
|
-
this.listenTo(this.channelName, 'add:producers', this.onSelectProducer);
|
|
1195
|
-
this.listenTo(this.channelName, 'add:tag', this.onAddTag); // Remove from collection events
|
|
1196
|
-
|
|
1197
|
-
this.listenTo(this.channelName, 'remove:distributors', this.onRemoveDistributor);
|
|
1198
|
-
this.listenTo(this.channelName, 'remove:productionCompanies', this.onRemoveProductionCompany);
|
|
1199
|
-
this.listenTo(this.channelName, 'remove:directors', this.onRemoveDirector);
|
|
1200
|
-
this.listenTo(this.channelName, 'remove:producers', this.onRemoveProducer);
|
|
1201
|
-
this.listenTo(this.channelName, 'remove:tag', this.onRemoveTag);
|
|
1202
|
-
this.listenTo(this.channelName, _constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].Save, this.onSave);
|
|
1203
|
-
this.listenTo(this.channelName, _constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].Undo, this.onUndo);
|
|
1204
|
-
this.listenTo(this.channelName, _constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].DetectInput, this.onTypeaheadInput);
|
|
1205
|
-
this.listenTo(this.channelName, 'image:load', this.onBeforeThumbnailUpload);
|
|
1206
|
-
}
|
|
1207
|
-
}, {
|
|
1208
|
-
key: "onError",
|
|
1209
|
-
value: function onError(error) {
|
|
1210
|
-
switch (error.type) {
|
|
1211
|
-
case _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_8__["DataServiceErrorType"].NotFound:
|
|
1212
|
-
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _errors_video_not_found_VideoNotFoundError__WEBPACK_IMPORTED_MODULE_25__["VideoNotFoundError"]());
|
|
1213
|
-
break;
|
|
1214
|
-
|
|
1215
|
-
case _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_8__["DataServiceErrorType"].Forbidden:
|
|
1216
|
-
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _errors_forbidden_video_ForbiddenVideoError__WEBPACK_IMPORTED_MODULE_24__["ForbiddenVideoError"]());
|
|
1217
|
-
break;
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
/**
|
|
1221
|
-
* Invoked from selecting a typeahead option, which returns the raw JSON of the selected model.
|
|
1222
|
-
* Using the same callback dynamically for different assoc/model type.
|
|
1223
|
-
*/
|
|
1224
|
-
|
|
1225
|
-
}, {
|
|
1226
|
-
key: "onTypeaheadSelection",
|
|
1227
|
-
value: function onTypeaheadSelection(newModelObject, modelType, isCollection) {
|
|
1228
|
-
if (isCollection) {
|
|
1229
|
-
var collection = this.viewModel.get(modelType);
|
|
1230
|
-
var existingModels = collection.filter({
|
|
1231
|
-
name: newModelObject.name
|
|
1232
|
-
});
|
|
1233
|
-
|
|
1234
|
-
underscore__WEBPACK_IMPORTED_MODULE_0__["each"](existingModels, function (existing) {
|
|
1235
|
-
return collection.remove(existing);
|
|
1236
|
-
});
|
|
1237
|
-
|
|
1238
|
-
collection.add(newModelObject);
|
|
1239
|
-
} else {
|
|
1240
|
-
this.viewModel.set(modelType, newModelObject);
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
this.onModelChange(newModelObject, {
|
|
1244
|
-
manualUpdate: true
|
|
1245
|
-
});
|
|
1246
|
-
}
|
|
1247
|
-
/**
|
|
1248
|
-
* Detect when a user has cleared out an existing typeahead option. Where this is the case
|
|
1249
|
-
* we need to clear the existing assoc/model value from our viewModel to ensure we can save.
|
|
1250
|
-
* Using the same callback dynamically for different assoc/model type.
|
|
1251
|
-
*
|
|
1252
|
-
* @param val
|
|
1253
|
-
* @param modelType
|
|
1254
|
-
*/
|
|
1255
|
-
|
|
1256
|
-
}, {
|
|
1257
|
-
key: "onTypeaheadInput",
|
|
1258
|
-
value: function onTypeaheadInput(model, modelType, options) {
|
|
1259
|
-
if (model.get('name')) return;
|
|
1260
|
-
|
|
1261
|
-
if (options && options.isCollection) {
|
|
1262
|
-
this.viewModel.get(modelType).remove(model.get('id'), {
|
|
1263
|
-
silent: true
|
|
1264
|
-
});
|
|
1265
|
-
} else {
|
|
1266
|
-
this.viewModel.get(modelType).clear({
|
|
1267
|
-
silent: true
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
this.onModelChange(null, {
|
|
1272
|
-
manualUpdate: true
|
|
1273
|
-
}); // As a side effect of series being cleared, season and episode number inputs are locked.
|
|
1274
|
-
|
|
1275
|
-
if (modelType === 'series') {
|
|
1276
|
-
this.validateSeries();
|
|
1277
|
-
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.channelName).trigger('clear:series');
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}, {
|
|
1281
|
-
key: "onSelectSeries",
|
|
1282
|
-
value: function onSelectSeries(seriesObject) {
|
|
1283
|
-
var _this2 = this;
|
|
1284
|
-
|
|
1285
|
-
// Handle the assoc against an existing series
|
|
1286
|
-
if (seriesObject.id) {
|
|
1287
|
-
// Fetching series here is required to get its associated seasons
|
|
1288
|
-
this.seriesDataService.getSeries(seriesObject.id, function (series) {
|
|
1289
|
-
_this2.viewModel.unset('season');
|
|
1290
|
-
|
|
1291
|
-
_this2.viewModel.set('episodeNumber', null);
|
|
1292
|
-
|
|
1293
|
-
_this2.onTypeaheadSelection(series.toJSON(), 'series');
|
|
1294
|
-
});
|
|
1295
|
-
return;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
if (!seriesObject.name) return; // Attempt to create a new series
|
|
1299
|
-
|
|
1300
|
-
this.seriesDataService.createSeries(seriesObject.name, function (newSeries) {
|
|
1301
|
-
_this2.viewModel.unset('season');
|
|
1302
|
-
|
|
1303
|
-
_this2.viewModel.set('episodeNumber', null);
|
|
1304
|
-
|
|
1305
|
-
_this2.onTypeaheadSelection({
|
|
1306
|
-
id: newSeries.id
|
|
1307
|
-
}, 'series');
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
}, {
|
|
1311
|
-
key: "onSelectSeason",
|
|
1312
|
-
value: function onSelectSeason(season) {
|
|
1313
|
-
var _this3 = this;
|
|
1314
|
-
|
|
1315
|
-
if (underscore__WEBPACK_IMPORTED_MODULE_0__["isNull"](season)) {
|
|
1316
|
-
this.viewModel.get('season').clear({
|
|
1317
|
-
silent: true
|
|
1318
|
-
});
|
|
1319
|
-
this.viewModel.set('episodeNumber', null);
|
|
1320
|
-
_shared_utils__WEBPACK_IMPORTED_MODULE_12__["CollectionHelpers"].deselectAll(this.viewModel.get('series.seasons'));
|
|
1321
|
-
this.onModelChange(null, {
|
|
1322
|
-
manualUpdate: true
|
|
1323
|
-
});
|
|
1324
|
-
return;
|
|
1325
|
-
} // If user select an option from the season dropdown
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
if (season.id) {
|
|
1329
|
-
this.viewModel.set('season', season);
|
|
1330
|
-
_shared_utils__WEBPACK_IMPORTED_MODULE_12__["CollectionHelpers"].setSelected(season.id, this.viewModel.get('series.seasons'));
|
|
1331
|
-
this.onModelChange(season, {
|
|
1332
|
-
manualUpdate: true
|
|
1333
|
-
});
|
|
1334
|
-
return;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
if (!season.number) return; // Creating a new season
|
|
1338
|
-
|
|
1339
|
-
var seriesId = this.viewModel.get('series.id');
|
|
1340
|
-
this.seriesDataService.createSeason(season, seriesId, function (newSeason) {
|
|
1341
|
-
_this3.viewModel.set('season', newSeason.toJSON());
|
|
1342
|
-
|
|
1343
|
-
!_this3.viewModel.get('series.seasons') && _this3.viewModel.get('series').set('seasons', new _shared_collections_SeasonCollection__WEBPACK_IMPORTED_MODULE_10__["SeasonCollection"]());
|
|
1344
|
-
|
|
1345
|
-
_this3.viewModel.get('series.seasons').add(newSeason.toJSON());
|
|
1346
|
-
|
|
1347
|
-
_shared_utils__WEBPACK_IMPORTED_MODULE_12__["CollectionHelpers"].setSelected(newSeason.id, _this3.viewModel.get('series.seasons'));
|
|
1348
|
-
|
|
1349
|
-
_this3.onModelChange(newSeason.toJSON(), {
|
|
1350
|
-
manualUpdate: true
|
|
1351
|
-
});
|
|
1352
|
-
|
|
1353
|
-
_this3.render();
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
}, {
|
|
1357
|
-
key: "onSelectDistributor",
|
|
1358
|
-
value: function onSelectDistributor(distributorObject) {
|
|
1359
|
-
var _this4 = this;
|
|
1360
|
-
|
|
1361
|
-
if (distributorObject.id) {
|
|
1362
|
-
this.onTypeaheadSelection(distributorObject, 'distributors', true);
|
|
1363
|
-
return;
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
if (!distributorObject.name) return;
|
|
1367
|
-
this.companyDataService.createCompany(distributorObject.name, function (newDistributor) {
|
|
1368
|
-
_this4.onTypeaheadSelection(newDistributor.toJSON(), 'distributors', true);
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
}, {
|
|
1372
|
-
key: "onSelectProductionCompany",
|
|
1373
|
-
value: function onSelectProductionCompany(productionCompanyObject) {
|
|
1374
|
-
var _this5 = this;
|
|
1375
|
-
|
|
1376
|
-
if (productionCompanyObject.id) {
|
|
1377
|
-
this.onTypeaheadSelection(productionCompanyObject, 'productionCompanies', true);
|
|
1378
|
-
return;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
if (!productionCompanyObject.name) return;
|
|
1382
|
-
this.companyDataService.createCompany(productionCompanyObject.name, function (newProductionCompany) {
|
|
1383
|
-
_this5.onTypeaheadSelection(newProductionCompany.toJSON(), 'productionCompanies', true);
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
}, {
|
|
1387
|
-
key: "onSelectDirector",
|
|
1388
|
-
value: function onSelectDirector(director) {
|
|
1389
|
-
var _this6 = this;
|
|
1390
|
-
|
|
1391
|
-
if (director.id) {
|
|
1392
|
-
this.onTypeaheadSelection(director, 'directors', true);
|
|
1393
|
-
return;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
if (!director.name) return;
|
|
1397
|
-
this.personDataService.createPerson(director.name, function (newDirector) {
|
|
1398
|
-
_this6.onTypeaheadSelection(newDirector.toJSON(), 'directors', true);
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
}, {
|
|
1402
|
-
key: "onSelectProducer",
|
|
1403
|
-
value: function onSelectProducer(producer) {
|
|
1404
|
-
var _this7 = this;
|
|
1405
|
-
|
|
1406
|
-
if (producer.id) {
|
|
1407
|
-
this.onTypeaheadSelection(producer, 'producers', true);
|
|
1408
|
-
return;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
if (!producer.name) return;
|
|
1412
|
-
this.personDataService.createPerson(producer.name, function (newProducer) {
|
|
1413
|
-
_this7.onTypeaheadSelection(newProducer.toJSON(), 'producers', true);
|
|
1414
|
-
});
|
|
1415
|
-
}
|
|
1416
|
-
}, {
|
|
1417
|
-
key: "onRemoveDistributor",
|
|
1418
|
-
value: function onRemoveDistributor(distributor) {
|
|
1419
|
-
this.removeFromCollection(distributor, 'distributors');
|
|
1420
|
-
}
|
|
1421
|
-
}, {
|
|
1422
|
-
key: "onRemoveProductionCompany",
|
|
1423
|
-
value: function onRemoveProductionCompany(productionCompany) {
|
|
1424
|
-
this.removeFromCollection(productionCompany, 'productionCompanies');
|
|
1425
|
-
}
|
|
1426
|
-
}, {
|
|
1427
|
-
key: "onRemoveDirector",
|
|
1428
|
-
value: function onRemoveDirector(director) {
|
|
1429
|
-
this.removeFromCollection(director, 'directors');
|
|
1430
|
-
}
|
|
1431
|
-
}, {
|
|
1432
|
-
key: "onRemoveProducer",
|
|
1433
|
-
value: function onRemoveProducer(producer) {
|
|
1434
|
-
this.removeFromCollection(producer, 'producers');
|
|
1435
|
-
}
|
|
1436
|
-
}, {
|
|
1437
|
-
key: "removeFromCollection",
|
|
1438
|
-
value: function removeFromCollection(object, modelType) {
|
|
1439
|
-
if (!object || !object.id || !modelType) return;
|
|
1440
|
-
this.viewModel.get(modelType).remove(object.id);
|
|
1441
|
-
this.onModelChange(null, {
|
|
1442
|
-
manualUpdate: true
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
/**
|
|
1446
|
-
* Tag management logic
|
|
1447
|
-
*/
|
|
1448
|
-
|
|
1449
|
-
}, {
|
|
1450
|
-
key: "onAddTag",
|
|
1451
|
-
value: function onAddTag(tag) {
|
|
1452
|
-
var _this8 = this;
|
|
1453
|
-
|
|
1454
|
-
if (!tag || !tag.name) return;
|
|
1455
|
-
/**
|
|
1456
|
-
* Tags should always be lowercase. This is also enforced by master.
|
|
1457
|
-
*/
|
|
1458
|
-
|
|
1459
|
-
var tagName = tag.name.trim().toLowerCase();
|
|
1460
|
-
/**
|
|
1461
|
-
* Ensure that no whitespace-only tags get
|
|
1462
|
-
*/
|
|
1463
|
-
|
|
1464
|
-
if (!tagName) return;
|
|
1465
|
-
/**
|
|
1466
|
-
* Don't allow a new tag to be created if it already exists on the video, either
|
|
1467
|
-
* as a ClickView tag or a customer tag.
|
|
1468
|
-
*/
|
|
1469
|
-
|
|
1470
|
-
var existingTag = _shared_utils__WEBPACK_IMPORTED_MODULE_12__["CollectionHelpers"].findModelByName(tagName, this.viewModel.tags);
|
|
1471
|
-
if (existingTag) return;
|
|
1472
|
-
/**
|
|
1473
|
-
* @important
|
|
1474
|
-
* We are relying on core functionality within Domain's create object endpoint to ensure that if a
|
|
1475
|
-
* tag is created with the same name as another tag that belongs to that *specific* customer, it will
|
|
1476
|
-
* return the pre-existing tag.
|
|
1477
|
-
*
|
|
1478
|
-
* This is necessary as the tag typeahead will include both ClickView and Customer tag suggestions
|
|
1479
|
-
* and we *cannot* reliably use the permission object that is passed through the typeahead. It will
|
|
1480
|
-
* also ensure that users will not be able to inadvertently created assocations for CV tags.
|
|
1481
|
-
* - Mike
|
|
1482
|
-
*/
|
|
1483
|
-
|
|
1484
|
-
var newTag = new _shared_models_Tag__WEBPACK_IMPORTED_MODULE_14__["Tag"]({
|
|
1485
|
-
name: tagName
|
|
1486
|
-
});
|
|
1487
|
-
this.viewModel.tags.add(newTag);
|
|
1488
|
-
/**
|
|
1489
|
-
* Once the tag has been created, merge the attributes with the existing model.
|
|
1490
|
-
* We do this as we don't initially have an id for the tag, so technically we cannot
|
|
1491
|
-
* dissoc it yet.
|
|
1492
|
-
*/
|
|
1493
|
-
|
|
1494
|
-
this.tagDataService.createTag(tagName, this.model.get('id'), function (data) {
|
|
1495
|
-
// Override the client-side model with the server-created props
|
|
1496
|
-
newTag.set(data.toJSON());
|
|
1497
|
-
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(_this8.channelName).trigger('update:tags');
|
|
1498
|
-
});
|
|
1499
|
-
}
|
|
1500
|
-
}, {
|
|
1501
|
-
key: "onRemoveTag",
|
|
1502
|
-
value: function onRemoveTag(tag) {
|
|
1503
|
-
var _this9 = this;
|
|
1504
|
-
|
|
1505
|
-
if (!(tag instanceof _shared_models_Tag__WEBPACK_IMPORTED_MODULE_14__["Tag"]) || !tag.id) return;
|
|
1506
|
-
this.tagDataService.dissociateTag(tag.id, this.model.get('id'), function () {
|
|
1507
|
-
_this9.viewModel.tags.remove(tag);
|
|
1508
|
-
|
|
1509
|
-
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(_this9.channelName).trigger('update:tags');
|
|
1510
|
-
|
|
1511
|
-
_this9.logDissocAction(_this9.model.get('id'), tag, _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["EntityType"].Tag);
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
}, {
|
|
1515
|
-
key: "saveFields",
|
|
1516
|
-
value: function saveFields(options, next) {
|
|
1517
|
-
var _this10 = this;
|
|
1518
|
-
|
|
1519
|
-
var doneCount = 0;
|
|
1520
|
-
/**
|
|
1521
|
-
* We need updatedVideo to be set so that this.updateChanges is called in this.afterSave
|
|
1522
|
-
*/
|
|
1523
|
-
|
|
1524
|
-
options.updatedVideo = underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, options.updatedVideo || {});
|
|
1525
|
-
|
|
1526
|
-
var done = function done() {
|
|
1527
|
-
doneCount++;
|
|
1528
|
-
if (doneCount === options.dataChanges.fields.length) next(options);
|
|
1529
|
-
};
|
|
1530
|
-
|
|
1531
|
-
underscore__WEBPACK_IMPORTED_MODULE_0__["each"](options.dataChanges.fields, function (f) {
|
|
1532
|
-
if (f.id && !f.value) {
|
|
1533
|
-
_this10.viewModel.fields.remove(_this10.viewModel.fields.findWhere({
|
|
1534
|
-
id: f.id
|
|
1535
|
-
}));
|
|
1536
|
-
|
|
1537
|
-
_this10.fieldsDataService.deleteField(f.id, done);
|
|
1538
|
-
|
|
1539
|
-
return;
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
if (!f.id || f.id > 0) {
|
|
1543
|
-
_this10.fieldsDataService.updateField(f, done);
|
|
1544
|
-
|
|
1545
|
-
return;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
_this10.fieldsDataService.addField(_this10.options.videoId, f, function (updatedField) {
|
|
1549
|
-
var oldField = _this10.viewModel.fields.findWhere({
|
|
1550
|
-
id: f.id
|
|
1551
|
-
});
|
|
1552
|
-
|
|
1553
|
-
oldField.set('id', updatedField.id);
|
|
1554
|
-
done();
|
|
1555
|
-
});
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
}, {
|
|
1559
|
-
key: "bulkDissoc",
|
|
1560
|
-
value: function bulkDissoc(options, next) {
|
|
1561
|
-
this.videoDataService.bulkDissoc(this.model.id, options.pendingDissocs, function () {
|
|
1562
|
-
next(options);
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
}, {
|
|
1566
|
-
key: "saveVideo",
|
|
1567
|
-
value: function saveVideo(options, next) {
|
|
1568
|
-
var _this11 = this;
|
|
1569
|
-
|
|
1570
|
-
var dataChanges = underscore__WEBPACK_IMPORTED_MODULE_0__["omit"](options.dataChanges, 'fields');
|
|
1571
|
-
|
|
1572
|
-
if (underscore__WEBPACK_IMPORTED_MODULE_0__["isEmpty"](dataChanges)) {
|
|
1573
|
-
next(options);
|
|
1574
|
-
return;
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
var data = underscore__WEBPACK_IMPORTED_MODULE_0__["omit"](options.dataChanges, 'fields');
|
|
1578
|
-
|
|
1579
|
-
this.videoDataService.updateVideo(this.model.get('id'), this.folder.get('id'), data, function (updatedVideo) {
|
|
1580
|
-
if (options.dataChanges.series && options.dataChanges.series.id || options.dataChanges.episodeNumber || options.dataChanges.season) _this11.videoDataService.clearVideoCache();
|
|
1581
|
-
options.updatedVideo = underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, options.updatedVideo || {}, updatedVideo);
|
|
1582
|
-
next(options);
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
}, {
|
|
1586
|
-
key: "afterSave",
|
|
1587
|
-
value: function afterSave(options) {
|
|
1588
|
-
if (!this.viewModel) return;
|
|
1589
|
-
if (options.updatedVideo) this.updateState(options.updatedVideo);
|
|
1590
|
-
this.unlockNav();
|
|
1591
|
-
this.updateSaveButton(_constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].DisableSave);
|
|
1592
|
-
this.logEditAction(options.dataChanges, _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["WorkflowPhase"].Save);
|
|
1593
|
-
var successHandler = _shared_alerts__WEBPACK_IMPORTED_MODULE_15__["VideoAlerts"].updatedVideoAlert(this.viewModel.get('name'));
|
|
1594
|
-
this.alertService.success(successHandler || 'Video was successfully updated')();
|
|
1595
|
-
}
|
|
1596
|
-
/**
|
|
1597
|
-
* Save logic
|
|
1598
|
-
*/
|
|
1599
|
-
|
|
1600
|
-
}, {
|
|
1601
|
-
key: "onSave",
|
|
1602
|
-
value: function onSave() {
|
|
1603
|
-
this.viewModel.validate();
|
|
1604
|
-
|
|
1605
|
-
if (this.viewModel.isValid() === false) {
|
|
1606
|
-
this.updateSaveButton(_constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].CancelSave);
|
|
1607
|
-
return false;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
this.validateSeries();
|
|
1611
|
-
var dataChanges = _utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["EditVideoHelpers"].getChanges(this.model, this.viewModel);
|
|
1612
|
-
var pendingDissocs = _utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["EditVideoHelpers"].getRemovedObjectIds(this.model, this.viewModel);
|
|
1613
|
-
|
|
1614
|
-
if (!dataChanges && !underscore__WEBPACK_IMPORTED_MODULE_0__["keys"](pendingDissocs).length) {
|
|
1615
|
-
this.updateSaveButton(_constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].CancelSave);
|
|
1616
|
-
return false;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
var middleware = new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Middleware();
|
|
1620
|
-
if (dataChanges && dataChanges.fields) middleware.use(underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.saveFields, this));
|
|
1621
|
-
if (pendingDissocs && underscore__WEBPACK_IMPORTED_MODULE_0__["keys"](pendingDissocs).length) middleware.use(underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.bulkDissoc, this));
|
|
1622
|
-
if (this.editable) middleware.use(underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.saveVideo, this));
|
|
1623
|
-
middleware.use(underscore__WEBPACK_IMPORTED_MODULE_0__["bind"](this.afterSave, this));
|
|
1624
|
-
middleware.go({
|
|
1625
|
-
dataChanges: dataChanges,
|
|
1626
|
-
pendingDissocs: pendingDissocs
|
|
1627
|
-
}, null);
|
|
1628
|
-
return false;
|
|
1629
|
-
}
|
|
1630
|
-
}, {
|
|
1631
|
-
key: "onUndo",
|
|
1632
|
-
value: function onUndo() {
|
|
1633
|
-
var _this12 = this;
|
|
1634
|
-
|
|
1635
|
-
var dialogHelper = new _shared_utils__WEBPACK_IMPORTED_MODULE_12__["DialogHelper"]({
|
|
1636
|
-
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'undoTitle'),
|
|
1637
|
-
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'undoBody', {
|
|
1638
|
-
videoName: this.model.get('name')
|
|
1639
|
-
}),
|
|
1640
|
-
buttons: [{
|
|
1641
|
-
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'undo'),
|
|
1642
|
-
className: 'btn btn-danger',
|
|
1643
|
-
success: true
|
|
1644
|
-
}, {
|
|
1645
|
-
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'cancel'),
|
|
1646
|
-
className: 'btn btn-secondary',
|
|
1647
|
-
close: true
|
|
1648
|
-
}]
|
|
1649
|
-
});
|
|
1650
|
-
dialogHelper.render().done(function () {
|
|
1651
|
-
_this12.logEditAction({}, _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["WorkflowPhase"].Discard);
|
|
1652
|
-
|
|
1653
|
-
_this12.revertState({
|
|
1654
|
-
undo: true
|
|
1655
|
-
});
|
|
1656
|
-
|
|
1657
|
-
_this12.render();
|
|
1658
|
-
});
|
|
1659
|
-
}
|
|
1660
|
-
/**
|
|
1661
|
-
* After saving the current model, we want to refresh both the
|
|
1662
|
-
* video model and the viewModel.
|
|
1663
|
-
*/
|
|
1664
|
-
|
|
1665
|
-
}, {
|
|
1666
|
-
key: "updateState",
|
|
1667
|
-
value: function updateState(updatedVideo) {
|
|
1668
|
-
// Stop listening to existing view model and clear it
|
|
1669
|
-
this.stopListening(this.viewModel);
|
|
1670
|
-
_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["EditVideoHelpers"].updateModelState(this.model, this.viewModel, updatedVideo);
|
|
1671
|
-
_libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__["ViewModelService"].clear(this.viewModelName); // Revert the view model to its initial state and listen for new changes
|
|
1672
|
-
|
|
1673
|
-
this.getViewModel();
|
|
1674
|
-
this.renderContent();
|
|
1675
|
-
}
|
|
1676
|
-
}, {
|
|
1677
|
-
key: "onNavigateAway",
|
|
1678
|
-
value: function onNavigateAway() {
|
|
1679
|
-
this.revertState();
|
|
1680
|
-
}
|
|
1681
|
-
/**
|
|
1682
|
-
* Revert the current viewModel state back to being a copy of the current
|
|
1683
|
-
* video model.
|
|
1684
|
-
*/
|
|
1685
|
-
|
|
1686
|
-
}, {
|
|
1687
|
-
key: "revertState",
|
|
1688
|
-
value: function revertState() {
|
|
1689
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1690
|
-
var undo = options.undo; // Stop listening to existing view model and clear it
|
|
1691
|
-
|
|
1692
|
-
this.stopListening(this.viewModel);
|
|
1693
|
-
_libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__["ViewModelService"].clear(this.viewModelName);
|
|
1694
|
-
delete this.viewModel;
|
|
1695
|
-
this.unlockNav(); // Only re-init the viewModel if we're undoing changes.
|
|
1696
|
-
|
|
1697
|
-
if (!undo) return; // Revert the view model to its initial state and listen for new changes
|
|
1698
|
-
|
|
1699
|
-
this.getViewModel();
|
|
1700
|
-
}
|
|
1701
|
-
}, {
|
|
1702
|
-
key: "lockNav",
|
|
1703
|
-
value: function lockNav() {
|
|
1704
|
-
this.navLock.lock({
|
|
1705
|
-
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'navLockHeading'),
|
|
1706
|
-
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'navLockBody')
|
|
1707
|
-
});
|
|
1708
|
-
}
|
|
1709
|
-
}, {
|
|
1710
|
-
key: "unlockNav",
|
|
1711
|
-
value: function unlockNav() {
|
|
1712
|
-
this.navLock.unlock();
|
|
1713
|
-
}
|
|
1714
|
-
}, {
|
|
1715
|
-
key: "onBeforeThumbnailUpload",
|
|
1716
|
-
value: function onBeforeThumbnailUpload() {
|
|
1717
|
-
if (!this.navLock.isLocked()) return;
|
|
1718
|
-
this.navLock.unlock();
|
|
1719
|
-
var viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__["ViewModelService"].get('upload:thumbnail:options');
|
|
1720
|
-
viewModel.set('lockNav', true);
|
|
1721
|
-
}
|
|
1722
|
-
/**
|
|
1723
|
-
* We are mapping against the backbone change event triggered by stickit, as the model itself
|
|
1724
|
-
* has already been updated, we're only concerned with the additional options param.
|
|
1725
|
-
*
|
|
1726
|
-
* @param model
|
|
1727
|
-
* @param options
|
|
1728
|
-
*/
|
|
1729
|
-
|
|
1730
|
-
}, {
|
|
1731
|
-
key: "onModelChange",
|
|
1732
|
-
value: function onModelChange(model) {
|
|
1733
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1734
|
-
if (!options.stickitChange && !options.manualUpdate) return;
|
|
1735
|
-
this.viewModel.validate();
|
|
1736
|
-
|
|
1737
|
-
if (this.viewModel.isValid() === false) {
|
|
1738
|
-
this.updateSaveButton(_constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].DisableSave);
|
|
1739
|
-
return;
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
var hasChanges = _utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["EditVideoHelpers"].getChanges(this.model, this.viewModel) || underscore__WEBPACK_IMPORTED_MODULE_0__["keys"](_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["EditVideoHelpers"].getRemovedObjectIds(this.model, this.viewModel)).length;
|
|
1743
|
-
|
|
1744
|
-
if (!hasChanges) {
|
|
1745
|
-
this.unlockNav();
|
|
1746
|
-
this.updateSaveButton(_constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].DisableSave);
|
|
1747
|
-
return;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
this.lockNav();
|
|
1751
|
-
this.updateSaveButton(_constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].EnableSave);
|
|
1752
|
-
}
|
|
1753
|
-
}, {
|
|
1754
|
-
key: "updateSaveButton",
|
|
1755
|
-
value: function updateSaveButton(saveEvent) {
|
|
1756
|
-
var viewEventChannel = backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.channelName);
|
|
1757
|
-
var EnableSave = _constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].EnableSave,
|
|
1758
|
-
DisableSave = _constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].DisableSave,
|
|
1759
|
-
CancelSave = _constants__WEBPACK_IMPORTED_MODULE_19__["LibraryEditorActions"].CancelSave;
|
|
1760
|
-
|
|
1761
|
-
switch (saveEvent) {
|
|
1762
|
-
case EnableSave:
|
|
1763
|
-
viewEventChannel.trigger(EnableSave);
|
|
1764
|
-
return;
|
|
1765
|
-
|
|
1766
|
-
case DisableSave:
|
|
1767
|
-
viewEventChannel.trigger(DisableSave);
|
|
1768
|
-
return;
|
|
1769
|
-
|
|
1770
|
-
case CancelSave:
|
|
1771
|
-
viewEventChannel.trigger(CancelSave);
|
|
1772
|
-
return;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _libs_common_src_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_3__["DevError"]('Save action type is not valid.'));
|
|
1776
|
-
}
|
|
1777
|
-
}, {
|
|
1778
|
-
key: "onThumbnailUpdated",
|
|
1779
|
-
value: function onThumbnailUpdated() {
|
|
1780
|
-
var _this13 = this;
|
|
1781
|
-
|
|
1782
|
-
this.videoDataService.clearCacheAndGetVideo(this.options.videoId, function (data) {
|
|
1783
|
-
_this13.model = data;
|
|
1784
|
-
|
|
1785
|
-
_this13.viewModel.set('thumbnail', _this13.model.thumbnail.toJSON());
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
}, {
|
|
1789
|
-
key: "logEditAction",
|
|
1790
|
-
value: function logEditAction(data, workflowPhase) {
|
|
1791
|
-
var analyticsData = Object.assign({
|
|
1792
|
-
id: this.model.get('id')
|
|
1793
|
-
}, data);
|
|
1794
|
-
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_18__["AnalyticsHelper"].logUserAction(analyticsData, {
|
|
1795
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["UserAction"].Edit,
|
|
1796
|
-
entity: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["EntityType"].Video,
|
|
1797
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["LocationContext"].EditVideoDetails,
|
|
1798
|
-
workflowPhase: workflowPhase
|
|
1799
|
-
});
|
|
1800
|
-
}
|
|
1801
|
-
}, {
|
|
1802
|
-
key: "logDissocAction",
|
|
1803
|
-
value: function logDissocAction(videoId, model, modelType) {
|
|
1804
|
-
var analyticsData = Object.assign({
|
|
1805
|
-
videoId: videoId
|
|
1806
|
-
}, model.pick('id', 'name'));
|
|
1807
|
-
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_18__["AnalyticsHelper"].logUserAction(analyticsData, {
|
|
1808
|
-
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["UserAction"].Dissociate,
|
|
1809
|
-
entity: modelType,
|
|
1810
|
-
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_17__["LocationContext"].EditVideoDetails
|
|
1811
|
-
});
|
|
1812
|
-
}
|
|
1813
|
-
}, {
|
|
1814
|
-
key: "onValidation",
|
|
1815
|
-
value: function onValidation(isValid) {
|
|
1816
|
-
this.viewModel.set('disabled', !isValid);
|
|
1817
|
-
}
|
|
1818
|
-
}, {
|
|
1819
|
-
key: "getViewModel",
|
|
1820
|
-
value: function getViewModel() {
|
|
1821
|
-
if (!this.model.fields || !this.model.fields.length) this.model.set('fields', Object(_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["GetDefaultFields"])());
|
|
1822
|
-
this.viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__["ViewModelService"].get(this.viewModelName, this.model.toJSON(), {
|
|
1823
|
-
ctor: _shared_models_Video__WEBPACK_IMPORTED_MODULE_13__["Video"]
|
|
1824
|
-
}); // Bind our validation
|
|
1825
|
-
|
|
1826
|
-
if (this.editable) {
|
|
1827
|
-
this.viewModel.addValidation(_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["VideoValidation"]);
|
|
1828
|
-
this.viewModel.addValidation(_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["ProductionYearValidation"]);
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
this.viewModel.addValidation(_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["FieldAssocValidation"]);
|
|
1832
|
-
this.listenTo(this.viewModel, 'validated', this.onValidation);
|
|
1833
|
-
this.listenTo(this.viewModel, 'change', this.onModelChange);
|
|
1834
|
-
this.listenTo(this.viewModel, 'change:dateBroadcast', underscore__WEBPACK_IMPORTED_MODULE_0__["partial"](this.onModelChange, underscore__WEBPACK_IMPORTED_MODULE_0__, {
|
|
1835
|
-
manualUpdate: true
|
|
1836
|
-
}));
|
|
1837
|
-
|
|
1838
|
-
if (this.viewModel.fields) {
|
|
1839
|
-
this.viewModel.fields && this.viewModel.fields.each(function (f) {
|
|
1840
|
-
return f.addValidation(_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["FieldValidation"]);
|
|
1841
|
-
});
|
|
1842
|
-
this.listenTo(this.viewModel.fields, 'change', this.onModelChange);
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
/**
|
|
1846
|
-
* If the user has deselected a series, we clear the season and episode number.
|
|
1847
|
-
*/
|
|
1848
|
-
|
|
1849
|
-
}, {
|
|
1850
|
-
key: "validateSeries",
|
|
1851
|
-
value: function validateSeries() {
|
|
1852
|
-
if (this.viewModel.get('series.id')) return;
|
|
1853
|
-
this.viewModel.unset('season');
|
|
1854
|
-
this.viewModel.set('episodeNumber', null);
|
|
1855
|
-
}
|
|
1856
|
-
}, {
|
|
1857
|
-
key: "fetchData",
|
|
1858
|
-
value: function fetchData() {
|
|
1859
|
-
var _this14 = this;
|
|
1860
|
-
|
|
1861
|
-
this.model = this.videoDataService.getVideo(this.options.videoId);
|
|
1862
|
-
this.ratings = this.ratingsDataService.getAllRatings();
|
|
1863
|
-
this.hostedLibraries = this.libraryDataService.getHostedLibraries();
|
|
1864
|
-
this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.videoId, function (video) {
|
|
1865
|
-
var triggerRender = !!_this14.publisherVideo;
|
|
1866
|
-
_this14.publisherVideo = video;
|
|
1867
|
-
triggerRender && _this14.isRendered() && _this14.renderContent();
|
|
1868
|
-
});
|
|
1869
|
-
if (!this.model) return;
|
|
1870
|
-
this.editable = _shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].canEditVideo(this.model);
|
|
1871
|
-
this.folder = this.model.categories.first();
|
|
1872
|
-
if (!this.ratings || !this.hostedLibraries) return; // If we already have a viewModel instance don't try to re-bind it
|
|
1873
|
-
|
|
1874
|
-
if (this.viewModel instanceof _shared_models_Video__WEBPACK_IMPORTED_MODULE_13__["Video"]) return;
|
|
1875
|
-
this.getViewModel();
|
|
1876
|
-
}
|
|
1877
|
-
}, {
|
|
1878
|
-
key: "onBeforeRender",
|
|
1879
|
-
value: function onBeforeRender() {
|
|
1880
|
-
this.fetchData();
|
|
1881
|
-
return !!this.model && !!this.ratings && !!this.viewModel;
|
|
1882
|
-
}
|
|
1883
|
-
}, {
|
|
1884
|
-
key: "renderContent",
|
|
1885
|
-
value: function renderContent() {
|
|
1886
|
-
var hasChanges = _utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["EditVideoHelpers"].getChanges(this.model, this.viewModel) || underscore__WEBPACK_IMPORTED_MODULE_0__["keys"](_utils_EditVideoHelpers__WEBPACK_IMPORTED_MODULE_21__["EditVideoHelpers"].getRemovedObjectIds(this.model, this.viewModel)).length; // Needs to render
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
this.showChildView('content', new _components_edit_video_EditVideoDetailsComponent__WEBPACK_IMPORTED_MODULE_22__["EditVideoDetailsComponent"]({
|
|
1890
|
-
model: this.viewModel,
|
|
1891
|
-
ratings: this.ratings,
|
|
1892
|
-
libraries: this.libraries,
|
|
1893
|
-
hostedLibraries: this.hostedLibraries,
|
|
1894
|
-
channelName: this.channelName,
|
|
1895
|
-
isSaveDisabled: !hasChanges,
|
|
1896
|
-
hasChanges: !!hasChanges,
|
|
1897
|
-
editable: this.editable,
|
|
1898
|
-
currentUser: this.currentUser,
|
|
1899
|
-
showPublisherVideoDetails: !!this.publisherVideo
|
|
1900
|
-
}));
|
|
1901
|
-
}
|
|
1902
|
-
}, {
|
|
1903
|
-
key: "renderTabs",
|
|
1904
|
-
value: function renderTabs() {
|
|
1905
|
-
this.showChildView('tabs', new _components_edit_video_tabs_EditVideoTabsComponent__WEBPACK_IMPORTED_MODULE_23__["EditVideoTabsComponent"]({
|
|
1906
|
-
tabs: _shared_utils__WEBPACK_IMPORTED_MODULE_12__["TabHelper"].getEditVideoTabs(this.options.videoId, {
|
|
1907
|
-
hideChaptersTab: !this.editable
|
|
1908
|
-
}),
|
|
1909
|
-
activeTab: '.edit-video-applink',
|
|
1910
|
-
goBackTab: _shared_utils__WEBPACK_IMPORTED_MODULE_12__["TabHelper"].getBackButton(this.options.videoId)
|
|
1911
|
-
}));
|
|
1912
|
-
}
|
|
1913
|
-
}, {
|
|
1914
|
-
key: "onRender",
|
|
1915
|
-
value: function onRender() {
|
|
1916
|
-
this.renderTabs();
|
|
1917
|
-
this.renderContent();
|
|
1918
|
-
}
|
|
1919
|
-
}, {
|
|
1920
|
-
key: "name",
|
|
1921
|
-
get: function get() {
|
|
1922
|
-
return 'EditVideoView';
|
|
1923
|
-
}
|
|
1924
|
-
}, {
|
|
1925
|
-
key: "title",
|
|
1926
|
-
get: function get() {
|
|
1927
|
-
return this.model && this.model.get('name');
|
|
1928
|
-
}
|
|
1929
|
-
}, {
|
|
1930
|
-
key: "lang",
|
|
1931
|
-
get: function get() {
|
|
1932
|
-
return 'libraryEditor.editVideo';
|
|
1933
|
-
}
|
|
1934
|
-
}, {
|
|
1935
|
-
key: "className",
|
|
1936
|
-
get: function get() {
|
|
1937
|
-
return 'bg-white p-3';
|
|
1938
|
-
}
|
|
1939
|
-
}, {
|
|
1940
|
-
key: "channelName",
|
|
1941
|
-
get: function get() {
|
|
1942
|
-
return "".concat(this.name, ":").concat(this.cid);
|
|
1943
|
-
}
|
|
1944
|
-
}, {
|
|
1945
|
-
key: "viewModelName",
|
|
1946
|
-
get: function get() {
|
|
1947
|
-
return "".concat(this.name, ":").concat(this.options.videoId);
|
|
1948
|
-
}
|
|
1949
|
-
}, {
|
|
1950
|
-
key: "template",
|
|
1951
|
-
get: function get() {
|
|
1952
|
-
return _EditVideo_hbs__WEBPACK_IMPORTED_MODULE_26___default.a;
|
|
1953
|
-
}
|
|
1954
|
-
}, {
|
|
1955
|
-
key: "requiredResources",
|
|
1956
|
-
get: function get() {
|
|
1957
|
-
return {
|
|
1958
|
-
libraries: _services_LibraryDataService__WEBPACK_IMPORTED_MODULE_20__["LibraryDataServiceHelper"].libraries,
|
|
1959
|
-
currentUser: _shared_services_UserDataService__WEBPACK_IMPORTED_MODULE_11__["UserDataServiceHelper"].currentUser
|
|
1960
|
-
};
|
|
1961
|
-
}
|
|
1962
|
-
}]);
|
|
1963
|
-
|
|
1964
|
-
return EditVideoView;
|
|
1965
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].View);
|
|
1966
|
-
|
|
1967
|
-
/***/ }),
|
|
1968
|
-
|
|
1969
|
-
/***/ "./src/shared/components/edit-video/extra-info/ExtraInfo.hbs":
|
|
1970
|
-
/*!*******************************************************************!*\
|
|
1971
|
-
!*** ./src/shared/components/edit-video/extra-info/ExtraInfo.hbs ***!
|
|
1972
|
-
\*******************************************************************/
|
|
1973
|
-
/*! no static exports found */
|
|
1974
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1975
|
-
|
|
1976
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1977
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1978
|
-
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>";
|
|
1979
|
-
},"useData":true});
|
|
1980
|
-
|
|
1981
|
-
/***/ }),
|
|
1982
|
-
|
|
1983
|
-
/***/ "./src/shared/components/edit-video/extra-info/ExtraInfoComponent.ts":
|
|
1984
|
-
/*!***************************************************************************!*\
|
|
1985
|
-
!*** ./src/shared/components/edit-video/extra-info/ExtraInfoComponent.ts ***!
|
|
1986
|
-
\***************************************************************************/
|
|
1987
|
-
/*! exports provided: ExtraInfoComponent */
|
|
1988
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1989
|
-
|
|
1990
|
-
"use strict";
|
|
1991
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1992
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtraInfoComponent", function() { return ExtraInfoComponent; });
|
|
1993
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1994
|
-
/* harmony import */ var _ExtraInfoItemComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExtraInfoItemComponent */ "./src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.ts");
|
|
1995
|
-
/* harmony import */ var _ExtraInfo_hbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ExtraInfo.hbs */ "./src/shared/components/edit-video/extra-info/ExtraInfo.hbs");
|
|
1996
|
-
/* harmony import */ var _ExtraInfo_hbs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ExtraInfo_hbs__WEBPACK_IMPORTED_MODULE_2__);
|
|
1997
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1998
|
-
|
|
1999
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2000
|
-
|
|
2001
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2002
|
-
|
|
2003
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2004
|
-
|
|
2005
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2006
|
-
|
|
2007
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2008
|
-
|
|
2009
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2010
|
-
|
|
2011
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2012
|
-
|
|
2013
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2014
|
-
|
|
2015
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
2016
|
-
|
|
2017
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
var ExtraInfoComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
|
|
2024
|
-
_inherits(ExtraInfoComponentCollection, _Core$ComponentCollec);
|
|
2025
|
-
|
|
2026
|
-
var _super = _createSuper(ExtraInfoComponentCollection);
|
|
2027
|
-
|
|
2028
|
-
function ExtraInfoComponentCollection(options) {
|
|
2029
|
-
_classCallCheck(this, ExtraInfoComponentCollection);
|
|
2030
|
-
|
|
2031
|
-
return _super.call(this, options);
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
_createClass(ExtraInfoComponentCollection, [{
|
|
2035
|
-
key: "name",
|
|
2036
|
-
get: function get() {
|
|
2037
|
-
return 'ExtraInfoComponentCollection';
|
|
2038
|
-
}
|
|
2039
|
-
}, {
|
|
2040
|
-
key: "childView",
|
|
2041
|
-
get: function get() {
|
|
2042
|
-
return _ExtraInfoItemComponent__WEBPACK_IMPORTED_MODULE_1__["ExtraInfoItemComponent"];
|
|
2043
|
-
}
|
|
2044
|
-
}, {
|
|
2045
|
-
key: "childViewOptions",
|
|
2046
|
-
get: function get() {
|
|
2047
|
-
return {
|
|
2048
|
-
viewModel: this.options.viewModel
|
|
2049
|
-
};
|
|
2050
|
-
}
|
|
2051
|
-
}]);
|
|
2052
|
-
|
|
2053
|
-
return ExtraInfoComponentCollection;
|
|
2054
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ComponentCollection);
|
|
2055
|
-
|
|
2056
|
-
var ExtraInfoComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2057
|
-
_inherits(ExtraInfoComponent, _Core$Component);
|
|
2058
|
-
|
|
2059
|
-
var _super2 = _createSuper(ExtraInfoComponent);
|
|
2060
|
-
|
|
2061
|
-
function ExtraInfoComponent(options) {
|
|
2062
|
-
_classCallCheck(this, ExtraInfoComponent);
|
|
2063
|
-
|
|
2064
|
-
return _super2.call(this, options);
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
_createClass(ExtraInfoComponent, [{
|
|
2068
|
-
key: "regions",
|
|
2069
|
-
value: function regions() {
|
|
2070
|
-
return {
|
|
2071
|
-
fields: {
|
|
2072
|
-
el: '.fields-region',
|
|
2073
|
-
replaceElement: true
|
|
2074
|
-
}
|
|
2075
|
-
};
|
|
2076
|
-
}
|
|
2077
|
-
}, {
|
|
2078
|
-
key: "onRender",
|
|
2079
|
-
value: function onRender() {
|
|
2080
|
-
this.showChildView('fields', new ExtraInfoComponentCollection({
|
|
2081
|
-
collection: this.model.fields,
|
|
2082
|
-
viewModel: this.model
|
|
2083
|
-
}));
|
|
2084
|
-
}
|
|
2085
|
-
}, {
|
|
2086
|
-
key: "name",
|
|
2087
|
-
get: function get() {
|
|
2088
|
-
return 'ExtraInfoComponent';
|
|
2089
|
-
}
|
|
2090
|
-
}, {
|
|
2091
|
-
key: "template",
|
|
2092
|
-
get: function get() {
|
|
2093
|
-
return _ExtraInfo_hbs__WEBPACK_IMPORTED_MODULE_2___default.a;
|
|
2094
|
-
}
|
|
2095
|
-
}, {
|
|
2096
|
-
key: "className",
|
|
2097
|
-
get: function get() {
|
|
2098
|
-
return 'border-top pt-3';
|
|
2099
|
-
}
|
|
2100
|
-
}]);
|
|
2101
|
-
|
|
2102
|
-
return ExtraInfoComponent;
|
|
2103
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
2104
|
-
|
|
2105
|
-
/***/ }),
|
|
2106
|
-
|
|
2107
|
-
/***/ "./src/shared/components/edit-video/extra-info/ExtraInfoItem.hbs":
|
|
2108
|
-
/*!***********************************************************************!*\
|
|
2109
|
-
!*** ./src/shared/components/edit-video/extra-info/ExtraInfoItem.hbs ***!
|
|
2110
|
-
\***********************************************************************/
|
|
2111
|
-
/*! no static exports found */
|
|
2112
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2113
|
-
|
|
2114
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2115
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2116
|
-
var helper, alias1=container.propertyIsEnumerable;
|
|
2117
|
-
|
|
2118
|
-
return "<div class=\"form-group\">\r\n <label for=\"edit-description\">"
|
|
2119
|
-
+ container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"name","hash":{},"data":data}) : helper)))
|
|
2120
|
-
+ "</label>\r\n <div class=\"text-area-region\"></div>\r\n <div class=\"form-feedback\"></div>\r\n</div>";
|
|
2121
|
-
},"useData":true});
|
|
2122
|
-
|
|
2123
|
-
/***/ }),
|
|
2124
|
-
|
|
2125
|
-
/***/ "./src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.ts":
|
|
2126
|
-
/*!*******************************************************************************!*\
|
|
2127
|
-
!*** ./src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.ts ***!
|
|
2128
|
-
\*******************************************************************************/
|
|
2129
|
-
/*! exports provided: ExtraInfoItemComponent */
|
|
2130
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2131
|
-
|
|
2132
|
-
"use strict";
|
|
2133
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2134
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtraInfoItemComponent", function() { return ExtraInfoItemComponent; });
|
|
2135
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
2136
|
-
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
2137
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2138
|
-
/* harmony import */ var _resizing_text_area_ResizingTextAreaComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../resizing-text-area/ResizingTextAreaComponent */ "./src/shared/components/resizing-text-area/ResizingTextAreaComponent.ts");
|
|
2139
|
-
/* harmony import */ var _ExtraInfoItem_hbs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ExtraInfoItem.hbs */ "./src/shared/components/edit-video/extra-info/ExtraInfoItem.hbs");
|
|
2140
|
-
/* harmony import */ var _ExtraInfoItem_hbs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ExtraInfoItem_hbs__WEBPACK_IMPORTED_MODULE_3__);
|
|
2141
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2142
|
-
|
|
2143
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2144
|
-
|
|
2145
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2146
|
-
|
|
2147
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2148
|
-
|
|
2149
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2150
|
-
|
|
2151
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2152
|
-
|
|
2153
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2154
|
-
|
|
2155
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2156
|
-
|
|
2157
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2158
|
-
|
|
2159
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
2160
|
-
|
|
2161
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
var ExtraInfoItemComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2168
|
-
_inherits(ExtraInfoItemComponent, _Core$Component);
|
|
2169
|
-
|
|
2170
|
-
var _super = _createSuper(ExtraInfoItemComponent);
|
|
2171
|
-
|
|
2172
|
-
function ExtraInfoItemComponent(options) {
|
|
2173
|
-
_classCallCheck(this, ExtraInfoItemComponent);
|
|
2174
|
-
|
|
2175
|
-
return _super.call(this, options);
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
_createClass(ExtraInfoItemComponent, [{
|
|
2179
|
-
key: "initialize",
|
|
2180
|
-
value: function initialize() {
|
|
2181
|
-
var _this = this;
|
|
2182
|
-
|
|
2183
|
-
this.listenTo(this.model, 'change', function () {
|
|
2184
|
-
return _this.options.viewModel.validate();
|
|
2185
|
-
});
|
|
2186
|
-
}
|
|
2187
|
-
}, {
|
|
2188
|
-
key: "regions",
|
|
2189
|
-
value: function regions() {
|
|
2190
|
-
return {
|
|
2191
|
-
textArea: {
|
|
2192
|
-
el: '.text-area-region',
|
|
2193
|
-
replaceElement: true
|
|
2194
|
-
}
|
|
2195
|
-
};
|
|
2196
|
-
}
|
|
2197
|
-
}, {
|
|
2198
|
-
key: "onRender",
|
|
2199
|
-
value: function onRender() {
|
|
2200
|
-
this.showChildView('textArea', new _resizing_text_area_ResizingTextAreaComponent__WEBPACK_IMPORTED_MODULE_2__["ResizingTextAreaComponent"]({
|
|
2201
|
-
name: 'value',
|
|
2202
|
-
class: 'form-control',
|
|
2203
|
-
placeholder: this.model.get('placeholder'),
|
|
2204
|
-
id: 'admin-notes'
|
|
2205
|
-
}));
|
|
2206
|
-
this.stickit();
|
|
2207
|
-
backbone__WEBPACK_IMPORTED_MODULE_0__["Validation"].bind(this);
|
|
2208
|
-
}
|
|
2209
|
-
}, {
|
|
2210
|
-
key: "onDestroy",
|
|
2211
|
-
value: function onDestroy() {
|
|
2212
|
-
this.unstickit();
|
|
2213
|
-
backbone__WEBPACK_IMPORTED_MODULE_0__["Validation"].unbind(this);
|
|
2214
|
-
}
|
|
2215
|
-
}, {
|
|
2216
|
-
key: "template",
|
|
2217
|
-
get: function get() {
|
|
2218
|
-
return _ExtraInfoItem_hbs__WEBPACK_IMPORTED_MODULE_3___default.a;
|
|
2219
|
-
}
|
|
2220
|
-
}, {
|
|
2221
|
-
key: "name",
|
|
2222
|
-
get: function get() {
|
|
2223
|
-
return 'ExtraInfoItemComponent';
|
|
2224
|
-
}
|
|
2225
|
-
}, {
|
|
2226
|
-
key: "bindings",
|
|
2227
|
-
get: function get() {
|
|
2228
|
-
return {
|
|
2229
|
-
'[name=value]': {
|
|
2230
|
-
observe: 'value',
|
|
2231
|
-
setOptions: {
|
|
2232
|
-
validate: true
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
};
|
|
2236
|
-
}
|
|
2237
|
-
}]);
|
|
2238
|
-
|
|
2239
|
-
return ExtraInfoItemComponent;
|
|
2240
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
2241
|
-
|
|
2242
|
-
/***/ })
|
|
2243
|
-
|
|
2244
|
-
}]);
|
|
2245
|
-
//# sourceMappingURL=44.chunk.js.map
|