1import{saveMedia,submitNewMediaForm,submitSearchMediaForm}from"./media/mediaApi.js";import{addMediaToCollectionList,addModalEventListeners,addOnSaveModalClick,appendMediaToModalCollection,isErrorInModal,loadCropData,loadFormData,onClickCopyBtn,onFileUpload,onMediaSave,removeOnSaveModalClick,updateModel,}from"./media/mediaModalBindings.js";import{addEdiPlayerSearchClickListener,addEmbedListener,ediGetSearchFromCkedit,ediPlayerSearchClear,normalizeEdicloudId,registerProviderEdicloudEnterListener,registerProviderEdicloudListener,registerProviderListenerByName,}from"./media/mediaProviders.js";import{clearMediaAlerts,showMediaAlert}from"./media/mediaAlerts.js";import{addImageListener}from"./media/mediaGalleryValidation.js";export class Media{constructor(){this.configuration={createPath:"/api/media/providers/__provider__/media",thumbnailPathPattern:"/media/cache/resolve/default_small/__path__",updatePath:"/api/media/__id__"}}setConfiguration(e){this.configuration=e}getConfiguration(){return this.configuration}appendMediaToModalCollection(e,t,n){return appendMediaToModalCollection(this,e,t,n)}onFileUpload(e){return onFileUpload(this,e)}onClickCopyBtn(e){return onClickCopyBtn(e)}onMediaSave(e,t,n,s,o){return onMediaSave(this,e,t,n,s,o)}isErrorInModal(e){return isErrorInModal(e)}getFormField(){return["name","description","copyright"]}updateModel(e,t){return updateModel(this,e,t)}saveMedia(e,t,n,s,o,i,a,r=!0){return saveMedia(this,e,t,n,s,o,i,a,r)}alert(e,t){return showMediaAlert(e,t)}clearAlerts(e){return clearMediaAlerts(e)}getThumbnailUrl(e,t){let n;return this.configuration&&this.configuration.thumbnailPathPattern?n=this.configuration.thumbnailPathPattern:n=t.thumbnailPathPattern,n.replace("__path__",e)}addOnSaveModalClick(e,t,n,s,o){return addOnSaveModalClick(this,e,t,n,s,o)}removeOnSaveModalClick(e,t){return removeOnSaveModalClick(e,t)}loadFormData(e,t){return loadFormData(this,e,t)}loadCropData(e,t){return loadCropData(e,t)}addModalEventListeners(e,t,n){return addModalEventListeners(this,e,t,n)}addMediaToCollectionList(e,t){return addMediaToCollectionList(this,e,t)}submitNewMediaForm(e,t,n,s){return submitNewMediaForm(this,e,t,n,s)}submitSearchMediaForm(e,t,n,s,o){return submitSearchMediaForm(this,e,t,n,s,o)}ediPlayerSearchClear(e){return ediPlayerSearchClear(e)}normalizeEdicloudId(e){return normalizeEdicloudId(e)}addEdiPlayerSearchClickListener(e){return addEdiPlayerSearchClickListener(this,e)}registerProviderListenerByName(e,t){return registerProviderListenerByName(this,e,t)}ediGetSearchFromCkedit(e){return ediGetSearchFromCkedit(this,e)}registerProviderEdicloudListener(e,t){return registerProviderEdicloudListener(this,e,t)}registerProviderEdicloudEnterListener(e,t){return registerProviderEdicloudEnterListener(this,e,t)}addYoutubeListener(e,t){this.registerProviderListenerByName(e,t)}addInstagramListener(e,t){this.registerProviderListenerByName(e,t)}addEdiPlayerListener(e,t){this.registerProviderEdicloudListener(e,t)}addEmbedListener(e,t){return addEmbedListener(this,e,t)}addImageListener(e){return addImageListener(e)}}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.