UNPKG

@uploadcare/file-uploader

Version:

Building blocks for Uploadcare products integration

1,569 lines (1,568 loc) 41.1 kB
export const ActivityBlock = class { static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static finalized = {}; static elementProperties = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const ActivityHeader = class { static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static finalized = {}; static elementProperties = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const BaseComponent = class { static reg = () => {}; static elementProperties = {}; static finalized = {}; static elementStyles = []; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Block = class { static styleAttrs = []; static finalized = {}; static elementProperties = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const BtnUi = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const CameraSource = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const CloudImageEditor = class { static styleAttrs = []; static elementProperties = {}; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const CloudImageEditorActivity = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const CloudImageEditorBlock = class { static styleAttrs = []; static elementProperties = {}; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Config = class { static observedAttributes = [ "ctx-name", "debug", "pubkey", "multiple", "multiple-min", "multiple-max", "confirm-upload", "img-only", "accept", "external-sources-preferred-types", "external-sources-embed-css", "store", "camera-mirror", "camera-capture", "source-list", "top-level-origin", "cloud-image-editor-tabs", "max-local-file-size-bytes", "thumb-size", "show-empty-list", "use-local-image-editor", "use-cloud-image-editor", "remove-copyright", "crop-preset", "image-shrink", "modal-scroll-lock", "modal-backdrop-strokes", "source-list-wrap", "remote-tab-session-key", "cdn-cname", "cdn-cname-prefixed", "base-url", "social-base-url", "secure-signature", "secure-expire", "secure-delivery-proxy", "retry-throttled-request-max-times", "retry-network-error-max-times", "multipart-min-file-size", "multipart-chunk-size", "max-concurrent-requests", "multipart-max-concurrent-requests", "multipart-max-attempts", "check-for-url-duplicates", "save-url-for-recurrent-uploads", "group-output", "user-agent-integration", "locale-name", "secure-uploads-expire-threshold", "validation-timeout", "validation-concurrency", "camera-modes", "default-camera-mode", "enable-audio-recording", "enable-video-recording", "max-video-recording-duration", "files-view-mode", "grid-show-file-names", "cloud-image-editor-auto-open", "cloud-image-editor-mask-href", "test-mode", "quality-insights", "paste-scope", "multiplemin", "multiplemax", "confirmupload", "imgonly", "externalsourcespreferredtypes", "externalsourcesembedcss", "cameramirror", "cameracapture", "sourcelist", "toplevelorigin", "cloudimageeditortabs", "maxlocalfilesizebytes", "thumbsize", "showemptylist", "uselocalimageeditor", "usecloudimageeditor", "removecopyright", "croppreset", "imageshrink", "modalscrolllock", "modalbackdropstrokes", "sourcelistwrap", "remotetabsessionkey", "cdncname", "cdncnameprefixed", "baseurl", "socialbaseurl", "securesignature", "secureexpire", "securedeliveryproxy", "retrythrottledrequestmaxtimes", "retrynetworkerrormaxtimes", "multipartminfilesize", "multipartchunksize", "maxconcurrentrequests", "multipartmaxconcurrentrequests", "multipartmaxattempts", "checkforurlduplicates", "saveurlforrecurrentuploads", "groupoutput", "useragentintegration", "localename", "secureuploadsexpirethreshold", "validationtimeout", "validationconcurrency", "cameramodes", "defaultcameramode", "enableaudiorecording", "enablevideorecording", "maxvideorecordingduration", "filesviewmode", "gridshowfilenames", "cloudimageeditorautoopen", "cloudimageeditormaskhref", "testmode", "qualityinsights", "pastescope", ]; static styleAttrs = []; static finalized = {}; static elementProperties = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Copyright = class { static styleAttrs = []; static finalized = {}; static elementProperties = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const CropFrame = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Data = class { static registerCtx = () => {}; static deleteCtx = () => {}; static getCtx = () => {}; static hasCtx = () => {}; static apply = () => {}; static bind = () => {}; static call = () => {}; static toString = () => {}; static hasOwnProperty = () => {}; static isPrototypeOf = () => {}; static propertyIsEnumerable = () => {}; static valueOf = () => {}; static toLocaleString = () => {}; }; export const DropArea = class { static styleAttrs = []; static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorAspectRatioButtonControl = class { static elementProperties = {}; static finalized = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorCropButtonControl = class { static elementProperties = {}; static finalized = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorFilterControl = class { static elementProperties = {}; static finalized = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorFreeformButtonControl = class { static elementProperties = {}; static finalized = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorImageCropper = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorImageFader = class { static styleAttrs = []; static finalized = {}; static elementProperties = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorOperationControl = class { static elementProperties = {}; static finalized = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorScroller = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorSlider = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const EditorToolbar = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const ExternalSource = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const ExternalUploadSource = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; export const FileItem = class { static activeInstances = {}; static elementProperties = {}; static finalized = {}; static elementStyles = []; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const FileUploaderInline = class { static styleAttrs = []; static elementProperties = {}; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const FileUploaderMinimal = class { static styleAttrs = []; static elementProperties = {}; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const FileUploaderRegular = class { static styleAttrs = []; static elementProperties = {}; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const FormInput = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Icon = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Img = class { static observedAttributes = [ "dev-mode", "pubkey", "uuid", "src", "lazy", "intersection", "breakpoints", "cdn-cname", "proxy-cname", "secure-delivery-proxy", "hi-res-support", "ultra-res-support", "format", "cdn-operations", "progressive", "quality", "is-background-for", "is-preview-blur", ]; static reg = () => {}; static finalized = {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static elementStyles = []; static shadowRootOptions = { mode: "open" }; static elementProperties = {}; }; export const LineLoaderUi = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Modal = class { static styleAttrs = []; static elementProperties = {}; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const ModalEvents = { ADD: "modal:add", DELETE: "modal:delete", OPEN: "modal:open", CLOSE: "modal:close", CLOSE_ALL: "modal:closeAll", DESTROY: "modal:destroy", }; export const PACKAGE_NAME = `blocks`; export const PACKAGE_VERSION = `1.28.0`; export const PresenceToggle = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const ProgressBar = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const ProgressBarCommon = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Select = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const SimpleBtn = class { static styleAttrs = []; static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const SliderUi = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const SolutionBlock = class { static styleAttrs = []; static finalized = {}; static elementProperties = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const SourceBtn = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const SourceList = class { static elementProperties = {}; static styleAttrs = []; static finalized = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Spinner = class { static styleAttrs = []; static finalized = {}; static elementProperties = {}; static elementStyles = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const StartFrom = class { static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static finalized = {}; static elementProperties = {}; static elementStyles = []; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const Thumb = class { static elementProperties = {}; static finalized = {}; static elementStyles = []; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const UID = class { static generateFastUid = () => {}; static generateRandomUUID = () => {}; static apply = () => {}; static bind = () => {}; static call = () => {}; static toString = () => {}; static hasOwnProperty = () => {}; static isPrototypeOf = () => {}; static propertyIsEnumerable = () => {}; static valueOf = () => {}; static toLocaleString = () => {}; }; export const UploadCtxProvider = class { static styleAttrs = []; static EventType = { FILE_ADDED: "file-added", FILE_REMOVED: "file-removed", FILE_UPLOAD_START: "file-upload-start", FILE_UPLOAD_PROGRESS: "file-upload-progress", FILE_UPLOAD_SUCCESS: "file-upload-success", FILE_UPLOAD_FAILED: "file-upload-failed", FILE_URL_CHANGED: "file-url-changed", MODAL_OPEN: "modal-open", MODAL_CLOSE: "modal-close", DONE_CLICK: "done-click", UPLOAD_CLICK: "upload-click", ACTIVITY_CHANGE: "activity-change", COMMON_UPLOAD_START: "common-upload-start", COMMON_UPLOAD_PROGRESS: "common-upload-progress", COMMON_UPLOAD_SUCCESS: "common-upload-success", COMMON_UPLOAD_FAILED: "common-upload-failed", CHANGE: "change", GROUP_CREATED: "group-created", }; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementProperties = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const UploadList = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const UploadSource = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; export const UploaderBlock = class { static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementProperties = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const UrlSource = class { static elementProperties = {}; static extSrcList = { FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static sourceTypes = { LOCAL: "local", DROP_AREA: "drop-area", CAMERA: "camera", EXTERNAL: "external", API: "js-api", URL: "url", DRAW: "draw", MOBILE_VIDEO_CAMERA: "mobile-video-camera", MOBILE_PHOTO_CAMERA: "mobile-photo-camera", FACEBOOK: "facebook", DROPBOX: "dropbox", DROPBOX_CHOOSER: "dropboxchooser", GDRIVE: "gdrive", GPHOTOS: "gphotos", FLICKR: "flickr", VK: "vk", EVERNOTE: "evernote", BOX: "box", ONEDRIVE: "onedrive", HUDDLE: "huddle", }; static finalized = {}; static elementStyles = []; static activities = { START_FROM: "start-from", CAMERA: "camera", DRAW: "draw", UPLOAD_LIST: "upload-list", URL: "url", CLOUD_IMG_EDIT: "cloud-image-edit", EXTERNAL: "external", }; static styleAttrs = []; static reg = () => {}; static addInitializer = () => {}; static createProperty = () => {}; static getPropertyDescriptor = () => {}; static getPropertyOptions = () => {}; static finalize = () => {}; static finalizeStyles = () => {}; static shadowRootOptions = { mode: "open" }; }; export const defineComponents = () => {}; export const defineLocale = () => {}; export const loadFileUploaderFrom = () => {}; export const toKebabCase = () => {}; export const IS_SSR_STUBS = true;