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ACF,EAAG,CAACZ,CAAM,CAAC,EACY,gBAAoB,iBAAgB,CAAE,GAAGG,EAAa,aAAAD,CAAa,EAAmB,gBAC3G,MACA,CACE,GAAGN,EAAU,aAAc,CACzB,MAAO,CAAE,QAASY,EAAU,EAAI,EAAG,cAAeA,EAAU,MAAQ,OAAQ,OAAAP,CAAO,CACrF,CAAC,EACD,IAAAxI,CACF,EACgB,gBACd,EACA,CACE,GAAGkG,EACH,WAAYyC,EACZ,OAAQC,EACR,SAAAtB,EACA,UAAWd,GAAQ,SACnB,OAASjM,GAAU,CACjBwG,GAAA,MAAAA,EAASxG,GACTyO,EAAM,EACNF,EAAW,CAAC,CACd,EACA,SAAWvO,GAAU,CACnBmN,GAAA,MAAAA,EAAWnN,GACXyO,EAAM,EACNF,EAAW,CAAC,CACd,CACF,CACF,CACF,CAAC,CACH,CAAC,EACDR,GAAmB,QAAU9B,GAC7B8B,GAAmB,YAAc,uCCrGjC,EAAW,WAAaA,GACxB,MAAM,GAAW,C","sources":["webpack://graylog-web-interface/./node_modules/react-dropzone-esm/dist/esm/file.mjs","webpack://graylog-web-interface/./node_modules/react-dropzone-esm/dist/esm/file-selector.mjs","webpack://graylog-web-interface/./node_modules/react-dropzone-esm/dist/esm/attr-accept.mjs","webpack://graylog-web-interface/./node_modules/react-dropzone-esm/dist/esm/utils.mjs","webpack://graylog-web-interface/./node_modules/react-dropzone-esm/dist/esm/index.mjs","webpack://graylog-web-interface/./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.mjs","webpack://graylog-web-interface/./node_modules/@mantine/dropzone/esm/Dropzone.context.mjs","webpack://graylog-web-interface/./node_modules/@mantine/hooks/esm/utils/upper-first/upper-first.mjs","webpack://graylog-web-interface/./node_modules/@mantine/dropzone/esm/DropzoneStatus.mjs","webpack://graylog-web-interface/./node_modules/@mantine/dropzone/esm/Dropzone.module.css.mjs","webpack://graylog-web-interface/./node_modules/@mantine/dropzone/esm/Dropzone.mjs","webpack://graylog-web-interface/./node_modules/@mantine/dropzone/esm/DropzoneFullScreen.mjs","webpack://graylog-web-interface/./node_modules/@mantine/dropzone/esm/index.mjs"],"sourcesContent":["const COMMON_MIME_TYPES = /* @__PURE__ */ new Map([\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types\n [\"aac\", \"audio/aac\"],\n [\"abw\", \"application/x-abiword\"],\n [\"arc\", \"application/x-freearc\"],\n [\"avif\", \"image/avif\"],\n [\"avi\", \"video/x-msvideo\"],\n [\"azw\", \"application/vnd.amazon.ebook\"],\n [\"bin\", \"application/octet-stream\"],\n [\"bmp\", \"image/bmp\"],\n [\"bz\", \"application/x-bzip\"],\n [\"bz2\", \"application/x-bzip2\"],\n [\"cda\", \"application/x-cdf\"],\n [\"csh\", \"application/x-csh\"],\n [\"css\", \"text/css\"],\n [\"csv\", \"text/csv\"],\n [\"doc\", \"application/msword\"],\n [\n \"docx\",\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n ],\n [\"eot\", \"application/vnd.ms-fontobject\"],\n [\"epub\", \"application/epub+zip\"],\n [\"gz\", \"application/gzip\"],\n [\"gif\", \"image/gif\"],\n [\"heic\", \"image/heic\"],\n [\"heif\", \"image/heif\"],\n [\"htm\", \"text/html\"],\n [\"html\", \"text/html\"],\n [\"ico\", \"image/vnd.microsoft.icon\"],\n [\"ics\", \"text/calendar\"],\n [\"jar\", \"application/java-archive\"],\n [\"jpeg\", \"image/jpeg\"],\n [\"jpg\", \"image/jpeg\"],\n [\"js\", \"text/javascript\"],\n [\"json\", \"application/json\"],\n [\"jsonld\", \"application/ld+json\"],\n [\"mid\", \"audio/midi\"],\n [\"midi\", \"audio/midi\"],\n [\"mjs\", \"text/javascript\"],\n [\"mp3\", \"audio/mpeg\"],\n [\"mp4\", \"video/mp4\"],\n [\"mpeg\", \"video/mpeg\"],\n [\"mpkg\", \"application/vnd.apple.installer+xml\"],\n [\"odp\", \"application/vnd.oasis.opendocument.presentation\"],\n [\"ods\", \"application/vnd.oasis.opendocument.spreadsheet\"],\n [\"odt\", \"application/vnd.oasis.opendocument.text\"],\n [\"oga\", \"audio/ogg\"],\n [\"ogv\", \"video/ogg\"],\n [\"ogx\", \"application/ogg\"],\n [\"opus\", \"audio/opus\"],\n [\"otf\", \"font/otf\"],\n [\"png\", \"image/png\"],\n [\"pdf\", \"application/pdf\"],\n [\"php\", \"application/x-httpd-php\"],\n [\"ppt\", \"application/vnd.ms-powerpoint\"],\n [\n \"pptx\",\n \"application/vnd.openxmlformats-officedocument.presentationml.presentation\"\n ],\n [\"rar\", \"application/vnd.rar\"],\n [\"rtf\", \"application/rtf\"],\n [\"sh\", \"application/x-sh\"],\n [\"svg\", \"image/svg+xml\"],\n [\"swf\", \"application/x-shockwave-flash\"],\n [\"tar\", \"application/x-tar\"],\n [\"tif\", \"image/tiff\"],\n [\"tiff\", \"image/tiff\"],\n [\"ts\", \"video/mp2t\"],\n [\"ttf\", \"font/ttf\"],\n [\"txt\", \"text/plain\"],\n [\"vsd\", \"application/vnd.visio\"],\n [\"wav\", \"audio/wav\"],\n [\"weba\", \"audio/webm\"],\n [\"webm\", \"video/webm\"],\n [\"webp\", \"image/webp\"],\n [\"woff\", \"font/woff\"],\n [\"woff2\", \"font/woff2\"],\n [\"xhtml\", \"application/xhtml+xml\"],\n [\"xls\", \"application/vnd.ms-excel\"],\n [\"xlsx\", \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"],\n [\"xml\", \"application/xml\"],\n [\"xul\", \"application/vnd.mozilla.xul+xml\"],\n [\"zip\", \"application/zip\"],\n [\"7z\", \"application/x-7z-compressed\"],\n // Others\n [\"mkv\", \"video/x-matroska\"],\n [\"mov\", \"video/quicktime\"],\n [\"msg\", \"application/vnd.ms-outlook\"]\n]);\nfunction toFileWithPath(file, path) {\n const f = withMimeType(file);\n if (typeof f.path !== \"string\") {\n const { webkitRelativePath } = file;\n Object.defineProperty(f, \"path\", {\n value: typeof path === \"string\" ? path : (\n // If is set,\n // the File will have a {webkitRelativePath} property\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory\n typeof webkitRelativePath === \"string\" && webkitRelativePath.length > 0 ? webkitRelativePath : file.name\n ),\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n return f;\n}\nfunction withMimeType(file) {\n const { name } = file;\n const hasExtension = name && name.lastIndexOf(\".\") !== -1;\n if (hasExtension && !file.type) {\n const ext = name.split(\".\").pop().toLowerCase();\n const type = COMMON_MIME_TYPES.get(ext);\n if (type) {\n Object.defineProperty(file, \"type\", {\n value: type,\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n }\n return file;\n}\n\nexport { COMMON_MIME_TYPES, toFileWithPath };\n","import { toFileWithPath } from './file.mjs';\n\nvar __async = (__this, __arguments, generator) => {\n return new Promise((resolve, reject) => {\n var fulfilled = (value) => {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n };\n var rejected = (value) => {\n try {\n step(generator.throw(value));\n } catch (e) {\n reject(e);\n }\n };\n var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n step((generator = generator.apply(__this, __arguments)).next());\n });\n};\nconst FILES_TO_IGNORE = [\n // Thumbnail cache files for macOS and Windows\n \".DS_Store\",\n // macOs\n \"Thumbs.db\"\n // Windows\n];\nfunction fromEvent(evt) {\n return __async(this, null, function* () {\n if (isObject(evt) && isDataTransfer(evt.dataTransfer)) {\n return getDataTransferFiles(evt.dataTransfer, evt.type);\n } else if (isChangeEvt(evt)) {\n return getInputFiles(evt);\n } else if (Array.isArray(evt) && evt.every((item) => \"getFile\" in item && typeof item.getFile === \"function\")) {\n return getFsHandleFiles(evt);\n }\n return [];\n });\n}\nfunction isDataTransfer(value) {\n return isObject(value);\n}\nfunction isChangeEvt(value) {\n return isObject(value) && isObject(value.target);\n}\nfunction isObject(v) {\n return typeof v === \"object\" && v !== null;\n}\nfunction getInputFiles(evt) {\n return fromList(evt.target.files).map((file) => toFileWithPath(file));\n}\nfunction getFsHandleFiles(handles) {\n return __async(this, null, function* () {\n const files = yield Promise.all(handles.map((h) => h.getFile()));\n return files.map((file) => toFileWithPath(file));\n });\n}\nfunction getDataTransferFiles(dt, type) {\n return __async(this, null, function* () {\n if (dt.items) {\n const items = fromList(dt.items).filter((item) => item.kind === \"file\");\n if (type !== \"drop\") {\n return items;\n }\n const files = yield Promise.all(items.map(toFilePromises));\n return noIgnoredFiles(flatten(files));\n }\n return noIgnoredFiles(fromList(dt.files).map((file) => toFileWithPath(file)));\n });\n}\nfunction noIgnoredFiles(files) {\n return files.filter((file) => FILES_TO_IGNORE.indexOf(file.name) === -1);\n}\nfunction fromList(items) {\n if (items === null) {\n return [];\n }\n const files = [];\n for (let i = 0; i < items.length; i++) {\n const file = items[i];\n files.push(file);\n }\n return files;\n}\nfunction toFilePromises(item) {\n if (typeof item.webkitGetAsEntry !== \"function\") {\n return fromDataTransferItem(item);\n }\n const entry = item.webkitGetAsEntry();\n if (entry && entry.isDirectory) {\n return fromDirEntry(entry);\n }\n return fromDataTransferItem(item);\n}\nfunction flatten(items) {\n return items.reduce(\n (acc, files) => [\n ...acc,\n ...Array.isArray(files) ? flatten(files) : [files]\n ],\n []\n );\n}\nfunction fromDataTransferItem(item) {\n const file = item.getAsFile();\n if (!file) {\n return Promise.reject(`${item} is not a File`);\n }\n const fwp = toFileWithPath(file);\n return Promise.resolve(fwp);\n}\nfunction fromEntry(entry) {\n return __async(this, null, function* () {\n return entry.isDirectory ? fromDirEntry(entry) : fromFileEntry(entry);\n });\n}\nfunction fromDirEntry(entry) {\n const reader = entry.createReader();\n return new Promise((resolve, reject) => {\n const entries = [];\n function readEntries() {\n reader.readEntries(\n (batch) => __async(this, null, function* () {\n if (!batch.length) {\n try {\n const files = yield Promise.all(entries);\n resolve(files);\n } catch (err) {\n reject(err);\n }\n } else {\n const items = Promise.all(batch.map(fromEntry));\n entries.push(items);\n readEntries();\n }\n }),\n (err) => {\n reject(err);\n }\n );\n }\n readEntries();\n });\n}\nfunction fromFileEntry(entry) {\n return __async(this, null, function* () {\n return new Promise((resolve, reject) => {\n entry.file(\n (file) => {\n const fwp = toFileWithPath(file, entry.fullPath);\n resolve(fwp);\n },\n (err) => {\n reject(err);\n }\n );\n });\n });\n}\n\nexport { fromEvent };\n","function accepts(file, acceptedFiles) {\n if (file && acceptedFiles) {\n const acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(\",\");\n const fileName = file.name || \"\";\n const mimeType = (file.type || \"\").toLowerCase();\n const baseMimeType = mimeType.replace(/\\/.*$/, \"\");\n return acceptedFilesArray.some((type) => {\n const validType = type.trim().toLowerCase();\n if (validType.charAt(0) === \".\") {\n return fileName.toLowerCase().endsWith(validType);\n } else if (validType.endsWith(\"/*\")) {\n return baseMimeType === validType.replace(/\\/.*$/, \"\");\n }\n return mimeType === validType;\n });\n }\n return true;\n}\n\nexport { accepts as default };\n","import accepts from './attr-accept.mjs';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nconst FILE_INVALID_TYPE = \"file-invalid-type\";\nconst FILE_TOO_LARGE = \"file-too-large\";\nconst FILE_TOO_SMALL = \"file-too-small\";\nconst TOO_MANY_FILES = \"too-many-files\";\nconst ErrorCode = {\n FileInvalidType: FILE_INVALID_TYPE,\n FileTooLarge: FILE_TOO_LARGE,\n FileTooSmall: FILE_TOO_SMALL,\n TooManyFiles: TOO_MANY_FILES\n};\nconst getInvalidTypeRejectionErr = (accept) => {\n accept = Array.isArray(accept) && accept.length === 1 ? accept[0] : accept;\n const messageSuffix = Array.isArray(accept) ? `one of ${accept.join(\", \")}` : accept;\n return {\n code: FILE_INVALID_TYPE,\n message: `File type must be ${messageSuffix}`\n };\n};\nconst getTooLargeRejectionErr = (maxSize) => {\n return {\n code: FILE_TOO_LARGE,\n message: `File is larger than ${maxSize} ${maxSize === 1 ? \"byte\" : \"bytes\"}`\n };\n};\nconst getTooSmallRejectionErr = (minSize) => {\n return {\n code: FILE_TOO_SMALL,\n message: `File is smaller than ${minSize} ${minSize === 1 ? \"byte\" : \"bytes\"}`\n };\n};\nconst TOO_MANY_FILES_REJECTION = {\n code: TOO_MANY_FILES,\n message: \"Too many files\"\n};\nfunction fileAccepted(file, accept) {\n const isAcceptable = file.type === \"application/x-moz-file\" || accepts(file, accept);\n return [\n isAcceptable,\n isAcceptable ? null : getInvalidTypeRejectionErr(accept)\n ];\n}\nfunction fileMatchSize(file, minSize, maxSize) {\n if (isDefined(file.size)) {\n if (isDefined(minSize) && isDefined(maxSize)) {\n if (file.size > maxSize)\n return [false, getTooLargeRejectionErr(maxSize)];\n if (file.size < minSize)\n return [false, getTooSmallRejectionErr(minSize)];\n } else if (isDefined(minSize) && file.size < minSize)\n return [false, getTooSmallRejectionErr(minSize)];\n else if (isDefined(maxSize) && file.size > maxSize)\n return [false, getTooLargeRejectionErr(maxSize)];\n }\n return [true, null];\n}\nfunction isDefined(value) {\n return value !== void 0 && value !== null;\n}\nfunction allFilesAccepted({\n files,\n accept,\n minSize,\n maxSize,\n multiple,\n maxFiles,\n validator\n}) {\n if (!multiple && files.length > 1 || multiple && maxFiles >= 1 && files.length > maxFiles) {\n return false;\n }\n return files.every((file) => {\n const [accepted] = fileAccepted(file, accept);\n const [sizeMatch] = fileMatchSize(file, minSize, maxSize);\n const customErrors = validator ? validator(file) : null;\n return accepted && sizeMatch && !customErrors;\n });\n}\nfunction isPropagationStopped(event) {\n if (typeof event.isPropagationStopped === \"function\") {\n return event.isPropagationStopped();\n } else if (typeof event.cancelBubble !== \"undefined\") {\n return event.cancelBubble;\n }\n return false;\n}\nfunction isEvtWithFiles(event) {\n if (!event.dataTransfer) {\n return !!event.target && !!event.target.files;\n }\n return Array.prototype.some.call(\n event.dataTransfer.types,\n (type) => type === \"Files\" || type === \"application/x-moz-file\"\n );\n}\nfunction onDocumentDragOver(event) {\n event.preventDefault();\n}\nfunction isIe(userAgent) {\n return userAgent.indexOf(\"MSIE\") !== -1 || userAgent.indexOf(\"Trident/\") !== -1;\n}\nfunction isEdge(userAgent) {\n return userAgent.indexOf(\"Edge/\") !== -1;\n}\nfunction isIeOrEdge(userAgent = window.navigator.userAgent) {\n return isIe(userAgent) || isEdge(userAgent);\n}\nfunction composeEventHandlers(...fns) {\n return (event, ...args) => fns.some((fn) => {\n if (!isPropagationStopped(event) && fn) {\n fn(event, ...args);\n }\n return isPropagationStopped(event);\n });\n}\nfunction canUseFileSystemAccessAPI() {\n return \"showOpenFilePicker\" in window;\n}\nfunction pickerOptionsFromAccept(accept) {\n if (isDefined(accept)) {\n const acceptForPicker = Object.entries(accept).filter(([mimeType, ext]) => {\n let ok = true;\n if (!isMIMEType(mimeType)) {\n console.warn(\n `Skipped \"${mimeType}\" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`\n );\n ok = false;\n }\n if (!Array.isArray(ext) || !ext.every(isExt)) {\n console.warn(\n `Skipped \"${mimeType}\" because an invalid file extension was provided.`\n );\n ok = false;\n }\n return ok;\n }).reduce(\n (agg, [mimeType, ext]) => __spreadProps(__spreadValues({}, agg), {\n [mimeType]: ext\n }),\n {}\n );\n return [\n {\n // description is required due to https://crbug.com/1264708\n description: \"Files\",\n accept: acceptForPicker\n }\n ];\n }\n return accept;\n}\nfunction acceptPropAsAcceptAttr(accept) {\n if (isDefined(accept)) {\n return Object.entries(accept).reduce((a, [mimeType, ext]) => [...a, mimeType, ...ext], []).filter((v) => isMIMEType(v) || isExt(v)).join(\",\");\n }\n return void 0;\n}\nfunction isAbort(v) {\n return v instanceof DOMException && (v.name === \"AbortError\" || v.code === v.ABORT_ERR);\n}\nfunction isSecurityError(v) {\n return v instanceof DOMException && (v.name === \"SecurityError\" || v.code === v.SECURITY_ERR);\n}\nfunction isMIMEType(v) {\n return v === \"audio/*\" || v === \"video/*\" || v === \"image/*\" || v === \"text/*\" || /\\w+\\/[-+.\\w]+/g.test(v);\n}\nfunction isExt(v) {\n return /^.*\\.[\\w]+$/.test(v);\n}\n\nexport { ErrorCode, FILE_INVALID_TYPE, FILE_TOO_LARGE, FILE_TOO_SMALL, TOO_MANY_FILES, TOO_MANY_FILES_REJECTION, acceptPropAsAcceptAttr, allFilesAccepted, canUseFileSystemAccessAPI, composeEventHandlers, fileAccepted, fileMatchSize, getInvalidTypeRejectionErr, getTooLargeRejectionErr, getTooSmallRejectionErr, isAbort, isEvtWithFiles, isExt, isIeOrEdge, isMIMEType, isPropagationStopped, isSecurityError, onDocumentDragOver, pickerOptionsFromAccept };\n","'use client';\nimport React, { forwardRef, useImperativeHandle, Fragment, useMemo, useRef, useReducer, useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport { fromEvent } from './file-selector.mjs';\nimport { acceptPropAsAcceptAttr, pickerOptionsFromAccept, canUseFileSystemAccessAPI, onDocumentDragOver, isEvtWithFiles, isPropagationStopped, allFilesAccepted, fileAccepted, fileMatchSize, TOO_MANY_FILES_REJECTION, isAbort, isSecurityError, isIeOrEdge, composeEventHandlers } from './utils.mjs';\nexport { ErrorCode } from './utils.mjs';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst Dropzone = forwardRef((_a, ref) => {\n var _b = _a, { children } = _b, params = __objRest(_b, [\"children\"]);\n const _a2 = useDropzone(params), { open } = _a2, props = __objRest(_a2, [\"open\"]);\n useImperativeHandle(ref, () => ({ open }), [open]);\n return /* @__PURE__ */ React.createElement(Fragment, null, children(__spreadProps(__spreadValues({}, props), { open })));\n});\nDropzone.displayName = \"Dropzone\";\nconst defaultProps = {\n disabled: false,\n getFilesFromEvent: fromEvent,\n maxSize: Infinity,\n minSize: 0,\n multiple: true,\n maxFiles: 0,\n preventDropOnDocument: true,\n noClick: false,\n noKeyboard: false,\n noDrag: false,\n noDragEventsBubbling: false,\n validator: null,\n useFsAccessApi: true,\n autoFocus: false\n};\nDropzone.defaultProps = defaultProps;\nDropzone.propTypes = {\n /**\n * Render function that exposes the dropzone state and prop getter fns\n *\n * @param {object} params\n * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render\n * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render\n * @param {Function} params.open Open the native file selection dialog\n * @param {boolean} params.isFocused Dropzone area is in focus\n * @param {boolean} params.isFileDialogActive File dialog is opened\n * @param {boolean} params.isDragActive Active drag is in progress\n * @param {boolean} params.isDragAccept Dragged files are accepted\n * @param {boolean} params.isDragReject Some dragged files are rejected\n * @param {File[]} params.acceptedFiles Accepted files\n * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected\n */\n children: PropTypes.func,\n /**\n * Set accepted file types.\n * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.\n * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).\n */\n accept: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n */\n multiple: PropTypes.bool,\n /**\n * If false, allow dropped items to take over the current browser window\n */\n preventDropOnDocument: PropTypes.bool,\n /**\n * If true, disables click to open the native file selection dialog\n */\n noClick: PropTypes.bool,\n /**\n * If true, disables SPACE/ENTER to open the native file selection dialog.\n * Note that it also stops tracking the focus state.\n */\n noKeyboard: PropTypes.bool,\n /**\n * If true, disables drag 'n' drop\n */\n noDrag: PropTypes.bool,\n /**\n * If true, stops drag event propagation to parents\n */\n noDragEventsBubbling: PropTypes.bool,\n /**\n * Minimum file size (in bytes)\n */\n minSize: PropTypes.number,\n /**\n * Maximum file size (in bytes)\n */\n maxSize: PropTypes.number,\n /**\n * Maximum accepted number of files\n * The default value is 0 which means there is no limitation to how many files are accepted.\n */\n maxFiles: PropTypes.number,\n /**\n * Enable/disable the dropzone\n */\n disabled: PropTypes.bool,\n /**\n * Use this to provide a custom file aggregator\n *\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n getFilesFromEvent: PropTypes.func,\n /**\n * Cb for when closing the file dialog with no selection\n */\n onFileDialogCancel: PropTypes.func,\n /**\n * Cb for when opening the file dialog\n */\n onFileDialogOpen: PropTypes.func,\n /**\n * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API\n * to open the file picker instead of using an `` click event.\n */\n useFsAccessApi: PropTypes.bool,\n /**\n * Set to true to focus the root element on render\n */\n autoFocus: PropTypes.bool,\n /**\n * Cb for when the `dragenter` event occurs.\n *\n * @param {DragEvent} event\n */\n onDragEnter: PropTypes.func,\n /**\n * Cb for when the `dragleave` event occurs\n *\n * @param {DragEvent} event\n */\n onDragLeave: PropTypes.func,\n /**\n * Cb for when the `dragover` event occurs\n *\n * @param {DragEvent} event\n */\n onDragOver: PropTypes.func,\n /**\n * Cb for when the `drop` event occurs.\n * Note that this callback is invoked after the `getFilesFromEvent` callback is done.\n *\n * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.\n * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.\n * If `multiple` is set to false and additional files are dropped,\n * all files besides the first will be rejected.\n * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.\n *\n * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.\n * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.\n *\n * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:\n *\n * ```js\n * function onDrop(acceptedFiles) {\n * const req = request.post('/upload')\n * acceptedFiles.forEach(file => {\n * req.attach(file.name, file)\n * })\n * req.end(callback)\n * }\n * ```\n *\n * @param {File[]} acceptedFiles\n * @param {FileRejection[]} fileRejections\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n onDrop: PropTypes.func,\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are accepted, this callback is not invoked.\n *\n * @param {File[]} files\n * @param {(DragEvent|Event)} event\n */\n onDropAccepted: PropTypes.func,\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are rejected, this callback is not invoked.\n *\n * @param {FileRejection[]} fileRejections\n * @param {(DragEvent|Event)} event\n */\n onDropRejected: PropTypes.func,\n /**\n * Cb for when there's some error from any of the promises.\n *\n * @param {Error} error\n */\n onError: PropTypes.func,\n /**\n * Custom validation function. It must return null if there's no errors.\n * @param {File} file\n * @returns {FileError|FileError[]|null}\n */\n validator: PropTypes.func\n};\nconst initialState = {\n isFocused: false,\n isFileDialogActive: false,\n isDragActive: false,\n isDragAccept: false,\n isDragReject: false,\n acceptedFiles: [],\n fileRejections: []\n};\nfunction useDropzone(props = {}) {\n const {\n accept,\n disabled,\n getFilesFromEvent,\n maxSize,\n minSize,\n multiple,\n maxFiles,\n onDragEnter,\n onDragLeave,\n onDragOver,\n onDrop,\n onDropAccepted,\n onDropRejected,\n onFileDialogCancel,\n onFileDialogOpen,\n useFsAccessApi,\n autoFocus,\n preventDropOnDocument,\n noClick,\n noKeyboard,\n noDrag,\n noDragEventsBubbling,\n onError,\n validator\n } = __spreadValues(__spreadValues({}, defaultProps), props);\n const acceptAttr = useMemo(() => acceptPropAsAcceptAttr(accept), [accept]);\n const pickerTypes = useMemo(() => pickerOptionsFromAccept(accept), [accept]);\n const onFileDialogOpenCb = useMemo(\n () => typeof onFileDialogOpen === \"function\" ? onFileDialogOpen : noop,\n [onFileDialogOpen]\n );\n const onFileDialogCancelCb = useMemo(\n () => typeof onFileDialogCancel === \"function\" ? onFileDialogCancel : noop,\n [onFileDialogCancel]\n );\n const rootRef = useRef(null);\n const inputRef = useRef(null);\n const [state, dispatch] = useReducer(reducer, initialState);\n const { isFocused, isFileDialogActive } = state;\n const fsAccessApiWorksRef = useRef(\n typeof window !== \"undefined\" && window.isSecureContext && useFsAccessApi && canUseFileSystemAccessAPI()\n );\n const onWindowFocus = () => {\n if (!fsAccessApiWorksRef.current && isFileDialogActive) {\n setTimeout(() => {\n if (inputRef.current) {\n const { files } = inputRef.current;\n if (!files.length) {\n dispatch({ type: \"closeDialog\" });\n onFileDialogCancelCb();\n }\n }\n }, 300);\n }\n };\n useEffect(() => {\n window.addEventListener(\"focus\", onWindowFocus, false);\n return () => {\n window.removeEventListener(\"focus\", onWindowFocus, false);\n };\n }, [inputRef, isFileDialogActive, onFileDialogCancelCb, fsAccessApiWorksRef]);\n const dragTargetsRef = useRef([]);\n const onDocumentDrop = (event) => {\n if (rootRef.current && rootRef.current.contains(event.target)) {\n return;\n }\n event.preventDefault();\n dragTargetsRef.current = [];\n };\n useEffect(() => {\n if (preventDropOnDocument) {\n document.addEventListener(\"dragover\", onDocumentDragOver, false);\n document.addEventListener(\"drop\", onDocumentDrop, false);\n }\n return () => {\n if (preventDropOnDocument) {\n document.removeEventListener(\"dragover\", onDocumentDragOver);\n document.removeEventListener(\"drop\", onDocumentDrop);\n }\n };\n }, [rootRef, preventDropOnDocument]);\n useEffect(() => {\n if (!disabled && autoFocus && rootRef.current) {\n rootRef.current.focus();\n }\n return () => {\n };\n }, [rootRef, autoFocus, disabled]);\n const onErrCb = useCallback(\n (e) => {\n if (onError) {\n onError(e);\n } else {\n console.error(e);\n }\n },\n [onError]\n );\n const onDragEnterCb = useCallback(\n (event) => {\n event.preventDefault();\n event.persist();\n stopPropagation(event);\n dragTargetsRef.current = [...dragTargetsRef.current, event.target];\n if (isEvtWithFiles(event)) {\n Promise.resolve(getFilesFromEvent(event)).then((files) => {\n if (isPropagationStopped(event) && !noDragEventsBubbling) {\n return;\n }\n const fileCount = files.length;\n const isDragAccept = fileCount > 0 && allFilesAccepted({\n files,\n accept: acceptAttr,\n minSize,\n maxSize,\n multiple,\n maxFiles,\n validator\n });\n const isDragReject = fileCount > 0 && !isDragAccept;\n dispatch({\n isDragAccept,\n isDragReject,\n isDragActive: true,\n type: \"setDraggedFiles\"\n });\n if (onDragEnter) {\n onDragEnter(event);\n }\n }).catch((e) => onErrCb(e));\n }\n },\n [\n getFilesFromEvent,\n onDragEnter,\n onErrCb,\n noDragEventsBubbling,\n acceptAttr,\n minSize,\n maxSize,\n multiple,\n maxFiles,\n validator\n ]\n );\n const onDragOverCb = useCallback(\n (event) => {\n event.preventDefault();\n event.persist();\n stopPropagation(event);\n const hasFiles = isEvtWithFiles(event);\n if (hasFiles && event.dataTransfer) {\n try {\n event.dataTransfer.dropEffect = \"copy\";\n } catch (e) {\n }\n }\n if (hasFiles && onDragOver) {\n onDragOver(event);\n }\n return false;\n },\n [onDragOver, noDragEventsBubbling]\n );\n const onDragLeaveCb = useCallback(\n (event) => {\n event.preventDefault();\n event.persist();\n stopPropagation(event);\n const targets = dragTargetsRef.current.filter(\n (target) => rootRef.current && rootRef.current.contains(target)\n );\n const targetIdx = targets.indexOf(event.target);\n if (targetIdx !== -1) {\n targets.splice(targetIdx, 1);\n }\n dragTargetsRef.current = targets;\n if (targets.length > 0) {\n return;\n }\n dispatch({\n type: \"setDraggedFiles\",\n isDragActive: false,\n isDragAccept: false,\n isDragReject: false\n });\n if (isEvtWithFiles(event) && onDragLeave) {\n onDragLeave(event);\n }\n },\n [rootRef, onDragLeave, noDragEventsBubbling]\n );\n const setFiles = useCallback(\n (files, event) => {\n const acceptedFiles = [];\n const fileRejections = [];\n files.forEach((file) => {\n const [accepted, acceptError] = fileAccepted(file, acceptAttr);\n const [sizeMatch, sizeError] = fileMatchSize(file, minSize, maxSize);\n const customErrors = validator ? validator(file) : null;\n if (accepted && sizeMatch && !customErrors) {\n acceptedFiles.push(file);\n } else {\n let errors = [acceptError, sizeError];\n if (customErrors) {\n errors = errors.concat(customErrors);\n }\n fileRejections.push({ file, errors: errors.filter((e) => e) });\n }\n });\n if (!multiple && acceptedFiles.length > 1 || multiple && maxFiles >= 1 && acceptedFiles.length > maxFiles) {\n acceptedFiles.forEach((file) => {\n fileRejections.push({ file, errors: [TOO_MANY_FILES_REJECTION] });\n });\n acceptedFiles.splice(0);\n }\n dispatch({\n acceptedFiles,\n fileRejections,\n type: \"setFiles\"\n });\n if (onDrop) {\n onDrop(acceptedFiles, fileRejections, event);\n }\n if (fileRejections.length > 0 && onDropRejected) {\n onDropRejected(fileRejections, event);\n }\n if (acceptedFiles.length > 0 && onDropAccepted) {\n onDropAccepted(acceptedFiles, event);\n }\n },\n [\n dispatch,\n multiple,\n acceptAttr,\n minSize,\n maxSize,\n maxFiles,\n onDrop,\n onDropAccepted,\n onDropRejected,\n validator\n ]\n );\n const onDropCb = useCallback(\n (event) => {\n event.preventDefault();\n event.persist();\n stopPropagation(event);\n dragTargetsRef.current = [];\n if (isEvtWithFiles(event)) {\n Promise.resolve(getFilesFromEvent(event)).then((files) => {\n if (isPropagationStopped(event) && !noDragEventsBubbling) {\n return;\n }\n setFiles(files, event);\n }).catch((e) => onErrCb(e));\n }\n dispatch({ type: \"reset\" });\n },\n [getFilesFromEvent, setFiles, onErrCb, noDragEventsBubbling]\n );\n const openFileDialog = useCallback(() => {\n if (fsAccessApiWorksRef.current) {\n dispatch({ type: \"openDialog\" });\n onFileDialogOpenCb();\n const opts = {\n multiple,\n types: pickerTypes\n };\n window.showOpenFilePicker(opts).then((handles) => getFilesFromEvent(handles)).then((files) => {\n setFiles(files, null);\n dispatch({ type: \"closeDialog\" });\n }).catch((e) => {\n if (isAbort(e)) {\n onFileDialogCancelCb(e);\n dispatch({ type: \"closeDialog\" });\n } else if (isSecurityError(e)) {\n fsAccessApiWorksRef.current = false;\n if (inputRef.current) {\n inputRef.current.value = null;\n inputRef.current.click();\n } else {\n onErrCb(\n new Error(\n \"Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided.\"\n )\n );\n }\n } else {\n onErrCb(e);\n }\n });\n return;\n }\n if (inputRef.current) {\n dispatch({ type: \"openDialog\" });\n onFileDialogOpenCb();\n inputRef.current.value = null;\n inputRef.current.click();\n }\n }, [\n dispatch,\n onFileDialogOpenCb,\n onFileDialogCancelCb,\n useFsAccessApi,\n setFiles,\n onErrCb,\n pickerTypes,\n multiple\n ]);\n const onKeyDownCb = useCallback(\n (event) => {\n if (!rootRef.current || !rootRef.current.isEqualNode(event.target)) {\n return;\n }\n if (event.key === \" \" || event.key === \"Enter\" || event.keyCode === 32 || event.keyCode === 13) {\n event.preventDefault();\n openFileDialog();\n }\n },\n [rootRef, openFileDialog]\n );\n const onFocusCb = useCallback(() => {\n dispatch({ type: \"focus\" });\n }, []);\n const onBlurCb = useCallback(() => {\n dispatch({ type: \"blur\" });\n }, []);\n const onClickCb = useCallback(() => {\n if (noClick) {\n return;\n }\n if (isIeOrEdge()) {\n setTimeout(openFileDialog, 0);\n } else {\n openFileDialog();\n }\n }, [noClick, openFileDialog]);\n const composeHandler = (fn) => {\n return disabled ? null : fn;\n };\n const composeKeyboardHandler = (fn) => {\n return noKeyboard ? null : composeHandler(fn);\n };\n const composeDragHandler = (fn) => {\n return noDrag ? null : composeHandler(fn);\n };\n const stopPropagation = (event) => {\n if (noDragEventsBubbling) {\n event.stopPropagation();\n }\n };\n const getRootProps = useMemo(\n () => (_a = {}) => {\n var _b = _a, {\n refKey = \"ref\",\n role,\n onKeyDown,\n onFocus,\n onBlur,\n onClick,\n onDragEnter: onDragEnter2,\n onDragOver: onDragOver2,\n onDragLeave: onDragLeave2,\n onDrop: onDrop2\n } = _b, rest = __objRest(_b, [\n \"refKey\",\n \"role\",\n \"onKeyDown\",\n \"onFocus\",\n \"onBlur\",\n \"onClick\",\n \"onDragEnter\",\n \"onDragOver\",\n \"onDragLeave\",\n \"onDrop\"\n ]);\n return __spreadValues(__spreadValues({\n onKeyDown: composeKeyboardHandler(\n composeEventHandlers(onKeyDown, onKeyDownCb)\n ),\n onFocus: composeKeyboardHandler(\n composeEventHandlers(onFocus, onFocusCb)\n ),\n onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),\n onClick: composeHandler(composeEventHandlers(onClick, onClickCb)),\n onDragEnter: composeDragHandler(\n composeEventHandlers(onDragEnter2, onDragEnterCb)\n ),\n onDragOver: composeDragHandler(\n composeEventHandlers(onDragOver2, onDragOverCb)\n ),\n onDragLeave: composeDragHandler(\n composeEventHandlers(onDragLeave2, onDragLeaveCb)\n ),\n onDrop: composeDragHandler(composeEventHandlers(onDrop2, onDropCb)),\n role: typeof role === \"string\" && role !== \"\" ? role : \"presentation\",\n [refKey]: rootRef\n }, !disabled && !noKeyboard ? { tabIndex: 0 } : {}), rest);\n },\n [\n rootRef,\n onKeyDownCb,\n onFocusCb,\n onBlurCb,\n onClickCb,\n onDragEnterCb,\n onDragOverCb,\n onDragLeaveCb,\n onDropCb,\n noKeyboard,\n noDrag,\n disabled\n ]\n );\n const onInputElementClick = useCallback((event) => {\n event.stopPropagation();\n }, []);\n const getInputProps = useMemo(\n () => (_a = {}) => {\n var _b = _a, { refKey = \"ref\", onChange, onClick } = _b, rest = __objRest(_b, [\"refKey\", \"onChange\", \"onClick\"]);\n const inputProps = {\n accept: acceptAttr,\n multiple,\n type: \"file\",\n style: { display: \"none\" },\n onChange: composeHandler(composeEventHandlers(onChange, onDropCb)),\n onClick: composeHandler(\n composeEventHandlers(onClick, onInputElementClick)\n ),\n tabIndex: -1,\n [refKey]: inputRef\n };\n return __spreadValues(__spreadValues({}, inputProps), rest);\n },\n [inputRef, accept, multiple, onDropCb, disabled]\n );\n return __spreadProps(__spreadValues({}, state), {\n isFocused: isFocused && !disabled,\n getRootProps,\n getInputProps,\n rootRef,\n inputRef,\n open: composeHandler(openFileDialog)\n });\n}\nfunction reducer(state, action) {\n switch (action.type) {\n case \"focus\":\n return __spreadProps(__spreadValues({}, state), {\n isFocused: true\n });\n case \"blur\":\n return __spreadProps(__spreadValues({}, state), {\n isFocused: false\n });\n case \"openDialog\":\n return __spreadProps(__spreadValues({}, initialState), {\n isFileDialogActive: true\n });\n case \"closeDialog\":\n return __spreadProps(__spreadValues({}, state), {\n isFileDialogActive: false\n });\n case \"setDraggedFiles\":\n return __spreadProps(__spreadValues({}, state), {\n isDragActive: action.isDragActive,\n isDragAccept: action.isDragAccept,\n isDragReject: action.isDragReject\n });\n case \"setFiles\":\n return __spreadProps(__spreadValues({}, state), {\n acceptedFiles: action.acceptedFiles,\n fileRejections: action.fileRejections\n });\n case \"reset\":\n return __spreadValues({}, initialState);\n default:\n return state;\n }\n}\nfunction noop() {\n}\n\nexport { Dropzone as default, useDropzone };\n","'use client';\nimport { useCallback } from 'react';\n\nfunction assignRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (typeof ref === \"object\" && ref !== null && \"current\" in ref) {\n ref.current = value;\n }\n}\nfunction mergeRefs(...refs) {\n return (node) => {\n refs.forEach((ref) => assignRef(ref, node));\n };\n}\nfunction useMergedRef(...refs) {\n return useCallback(mergeRefs(...refs), refs);\n}\n\nexport { assignRef, mergeRefs, useMergedRef };\n//# sourceMappingURL=use-merged-ref.mjs.map\n","'use client';\nimport { createSafeContext } from '@mantine/core';\n\nconst [DropzoneProvider, useDropzoneContext] = createSafeContext(\n \"Dropzone component was not found in tree\"\n);\n\nexport { DropzoneProvider, useDropzoneContext };\n//# sourceMappingURL=Dropzone.context.mjs.map\n","'use client';\nfunction upperFirst(value) {\n return typeof value !== \"string\" ? \"\" : value.charAt(0).toUpperCase() + value.slice(1);\n}\n\nexport { upperFirst };\n//# sourceMappingURL=upper-first.mjs.map\n","'use client';\nimport React, { cloneElement } from 'react';\nimport { useProps, isElement } from '@mantine/core';\nimport { upperFirst } from '@mantine/hooks';\nimport { useDropzoneContext } from './Dropzone.context.mjs';\n\nfunction createDropzoneStatus(status) {\n const Component = (props) => {\n const { children, ...others } = useProps(`Dropzone${upperFirst(status)}`, {}, props);\n const ctx = useDropzoneContext();\n const _children = isElement(children) ? children : /* @__PURE__ */ React.createElement(\"span\", null, children);\n if (ctx[status]) {\n return cloneElement(_children, others);\n }\n return null;\n };\n Component.displayName = `@mantine/dropzone/${upperFirst(status)}`;\n return Component;\n}\nconst DropzoneAccept = createDropzoneStatus(\"accept\");\nconst DropzoneReject = createDropzoneStatus(\"reject\");\nconst DropzoneIdle = createDropzoneStatus(\"idle\");\n\nexport { DropzoneAccept, DropzoneIdle, DropzoneReject };\n//# sourceMappingURL=DropzoneStatus.mjs.map\n","'use client';\nvar classes = {\"root\":\"m-d46a4834\",\"inner\":\"m-b85f7144\",\"fullScreen\":\"m-96f6e9ad\",\"dropzone\":\"m-7946116d\"};\n\nexport { classes as default };\n//# sourceMappingURL=Dropzone.module.css.mjs.map\n","'use client';\nimport React from 'react';\nimport { useDropzone } from 'react-dropzone-esm';\nimport { createVarsResolver, getRadius, factory, useProps, useStyles, Box, LoadingOverlay } from '@mantine/core';\nimport { assignRef } from '@mantine/hooks';\nimport { DropzoneProvider } from './Dropzone.context.mjs';\nimport { DropzoneAccept, DropzoneIdle, DropzoneReject } from './DropzoneStatus.mjs';\nimport classes from './Dropzone.module.css.mjs';\n\nconst defaultProps = {\n loading: false,\n multiple: true,\n maxSize: Infinity,\n autoFocus: false,\n activateOnClick: true,\n activateOnDrag: true,\n dragEventsBubbling: true,\n activateOnKeyboard: true,\n useFsAccessApi: true,\n variant: \"light\",\n rejectColor: \"red\"\n};\nconst varsResolver = createVarsResolver(\n (theme, { radius, variant, acceptColor, rejectColor }) => {\n const acceptColors = theme.variantColorResolver({\n color: acceptColor || theme.primaryColor,\n theme,\n variant\n });\n const rejectColors = theme.variantColorResolver({\n color: rejectColor || \"red\",\n theme,\n variant\n });\n return {\n root: {\n \"--dropzone-radius\": getRadius(radius),\n \"--dropzone-accept-color\": acceptColors.color,\n \"--dropzone-accept-bg\": acceptColors.background,\n \"--dropzone-reject-color\": rejectColors.color,\n \"--dropzone-reject-bg\": rejectColors.background\n }\n };\n }\n);\nconst Dropzone = factory((_props, ref) => {\n const props = useProps(\"Dropzone\", defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n radius,\n disabled,\n loading,\n multiple,\n maxSize,\n accept,\n children,\n onDropAny,\n onDrop,\n onReject,\n openRef,\n name,\n maxFiles,\n autoFocus,\n activateOnClick,\n activateOnDrag,\n dragEventsBubbling,\n activateOnKeyboard,\n onDragEnter,\n onDragLeave,\n onDragOver,\n onFileDialogCancel,\n onFileDialogOpen,\n preventDropOnDocument,\n useFsAccessApi,\n getFilesFromEvent,\n validator,\n rejectColor,\n acceptColor,\n enablePointerEvents,\n loaderProps,\n mod,\n ...others\n } = props;\n const getStyles = useStyles({\n name: \"Dropzone\",\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n varsResolver\n });\n const { getRootProps, getInputProps, isDragAccept, isDragReject, open } = useDropzone({\n onDrop: onDropAny,\n onDropAccepted: onDrop,\n onDropRejected: onReject,\n disabled: disabled || loading,\n accept: Array.isArray(accept) ? accept.reduce((r, key) => ({ ...r, [key]: [] }), {}) : accept,\n multiple,\n maxSize,\n maxFiles,\n autoFocus,\n noClick: !activateOnClick,\n noDrag: !activateOnDrag,\n noDragEventsBubbling: !dragEventsBubbling,\n noKeyboard: !activateOnKeyboard,\n onDragEnter,\n onDragLeave,\n onDragOver,\n onFileDialogCancel,\n onFileDialogOpen,\n preventDropOnDocument,\n useFsAccessApi,\n validator,\n ...getFilesFromEvent ? { getFilesFromEvent } : null\n });\n assignRef(openRef, open);\n const isIdle = !isDragAccept && !isDragReject;\n return /* @__PURE__ */ React.createElement(DropzoneProvider, { value: { accept: isDragAccept, reject: isDragReject, idle: isIdle } }, /* @__PURE__ */ React.createElement(\n Box,\n {\n ...getRootProps({ ref }),\n ...getStyles(\"root\", { focusable: true }),\n ...others,\n mod: [\n {\n accept: isDragAccept,\n reject: isDragReject,\n idle: isIdle,\n loading,\n \"activate-on-click\": activateOnClick\n },\n mod\n ]\n },\n /* @__PURE__ */ React.createElement(\n LoadingOverlay,\n {\n visible: loading,\n overlayProps: { radius },\n unstyled,\n loaderProps\n }\n ),\n /* @__PURE__ */ React.createElement(\"input\", { ...getInputProps(), name }),\n /* @__PURE__ */ React.createElement(\"div\", { ...getStyles(\"inner\"), \"data-enable-pointer-events\": enablePointerEvents || void 0 }, children)\n ));\n});\nDropzone.classes = classes;\nDropzone.displayName = \"@mantine/dropzone/Dropzone\";\nDropzone.Accept = DropzoneAccept;\nDropzone.Idle = DropzoneIdle;\nDropzone.Reject = DropzoneReject;\n\nexport { Dropzone };\n//# sourceMappingURL=Dropzone.mjs.map\n","'use client';\nimport React, { useState, useEffect } from 'react';\nimport { getDefaultZIndex, factory, useProps, useStyles, useResolvedStylesApi, OptionalPortal, Box } from '@mantine/core';\nimport { useDisclosure } from '@mantine/hooks';\nimport { Dropzone } from './Dropzone.mjs';\nimport classes from './Dropzone.module.css.mjs';\n\nconst defaultProps = {\n loading: false,\n maxSize: Infinity,\n activateOnClick: false,\n activateOnDrag: true,\n dragEventsBubbling: true,\n activateOnKeyboard: true,\n active: true,\n zIndex: getDefaultZIndex(\"max\"),\n withinPortal: true\n};\nconst DropzoneFullScreen = factory((_props, ref) => {\n const props = useProps(\"DropzoneFullScreen\", defaultProps, _props);\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n active,\n onDrop,\n onReject,\n zIndex,\n withinPortal,\n portalProps,\n ...others\n } = props;\n const getStyles = useStyles({\n name: \"DropzoneFullScreen\",\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n rootSelector: \"fullScreen\"\n });\n const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi({\n classNames,\n styles,\n props\n });\n const [counter, setCounter] = useState(0);\n const [visible, { open, close }] = useDisclosure(false);\n const handleDragEnter = (event) => {\n if (event.dataTransfer?.types.includes(\"Files\")) {\n setCounter((prev) => prev + 1);\n open();\n }\n };\n const handleDragLeave = () => {\n setCounter((prev) => prev - 1);\n };\n useEffect(() => {\n counter === 0 && close();\n }, [counter]);\n useEffect(() => {\n if (!active)\n return void 0;\n document.addEventListener(\"dragenter\", handleDragEnter, false);\n document.addEventListener(\"dragleave\", handleDragLeave, false);\n return () => {\n document.removeEventListener(\"dragenter\", handleDragEnter, false);\n document.removeEventListener(\"dragleave\", handleDragLeave, false);\n };\n }, [active]);\n return /* @__PURE__ */ React.createElement(OptionalPortal, { ...portalProps, withinPortal }, /* @__PURE__ */ React.createElement(\n Box,\n {\n ...getStyles(\"fullScreen\", {\n style: { opacity: visible ? 1 : 0, pointerEvents: visible ? \"all\" : \"none\", zIndex }\n }),\n ref\n },\n /* @__PURE__ */ React.createElement(\n Dropzone,\n {\n ...others,\n classNames: resolvedClassNames,\n styles: resolvedStyles,\n unstyled,\n className: classes.dropzone,\n onDrop: (files) => {\n onDrop?.(files);\n close();\n setCounter(0);\n },\n onReject: (files) => {\n onReject?.(files);\n close();\n setCounter(0);\n }\n }\n )\n ));\n});\nDropzoneFullScreen.classes = classes;\nDropzoneFullScreen.displayName = \"@mantine/dropzone/DropzoneFullScreen\";\n\nexport { DropzoneFullScreen };\n//# sourceMappingURL=DropzoneFullScreen.mjs.map\n","import { Dropzone as Dropzone$1 } from './Dropzone.mjs';\nimport { DropzoneFullScreen } from './DropzoneFullScreen.mjs';\nexport { DropzoneAccept, DropzoneIdle, DropzoneReject } from './DropzoneStatus.mjs';\nexport { EXE_MIME_TYPE, IMAGE_MIME_TYPE, MIME_TYPES, MS_EXCEL_MIME_TYPE, MS_POWERPOINT_MIME_TYPE, MS_WORD_MIME_TYPE, PDF_MIME_TYPE } from './mime-types.mjs';\n\nDropzone$1.FullScreen = DropzoneFullScreen;\nconst Dropzone = Dropzone$1;\n\nexport { Dropzone, DropzoneFullScreen };\n//# sourceMappingURL=index.mjs.map\n"],"names":["COMMON_MIME_TYPES","toFileWithPath","file","path","f","withMimeType","webkitRelativePath","name","ext","type","__async","__this","__arguments","generator","resolve","reject","fulfilled","value","step","e","rejected","x","FILES_TO_IGNORE","fromEvent","evt","isObject","isDataTransfer","getDataTransferFiles","isChangeEvt","getInputFiles","item","getFsHandleFiles","v","fromList","handles","h","dt","items","files","toFilePromises","noIgnoredFiles","flatten","i","fromDataTransferItem","entry","fromDirEntry","acc","fwp","fromEntry","fromFileEntry","reader","entries","readEntries","batch","err","accepts","acceptedFiles","acceptedFilesArray","fileName","mimeType","baseMimeType","validType","__defProp","__defProps","__getOwnPropDescs","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","__defNormalProp","obj","key","__spreadValues","a","b","prop","__spreadProps","FILE_INVALID_TYPE","FILE_TOO_LARGE","FILE_TOO_SMALL","TOO_MANY_FILES","ErrorCode","getInvalidTypeRejectionErr","accept","messageSuffix","getTooLargeRejectionErr","maxSize","getTooSmallRejectionErr","minSize","TOO_MANY_FILES_REJECTION","fileAccepted","isAcceptable","fileMatchSize","isDefined","allFilesAccepted","multiple","maxFiles","validator","accepted","sizeMatch","customErrors","isPropagationStopped","event","isEvtWithFiles","onDocumentDragOver","isIe","userAgent","isEdge","isIeOrEdge","composeEventHandlers","fns","args","fn","canUseFileSystemAccessAPI","pickerOptionsFromAccept","ok","isMIMEType","isExt","agg","acceptPropAsAcceptAttr","isAbort","isSecurityError","__objRest","source","exclude","target","Dropzone","_a","ref","_b","children","params","_a2","useDropzone","open","props","defaultProps","initialState","disabled","getFilesFromEvent","onDragEnter","onDragLeave","onDragOver","onDrop","onDropAccepted","onDropRejected","onFileDialogCancel","onFileDialogOpen","useFsAccessApi","autoFocus","preventDropOnDocument","noClick","noKeyboard","noDrag","noDragEventsBubbling","onError","acceptAttr","pickerTypes","onFileDialogOpenCb","noop","onFileDialogCancelCb","rootRef","inputRef","state","dispatch","reducer","isFocused","isFileDialogActive","fsAccessApiWorksRef","onWindowFocus","dragTargetsRef","onDocumentDrop","onErrCb","onDragEnterCb","stopPropagation","fileCount","isDragAccept","isDragReject","onDragOverCb","hasFiles","onDragLeaveCb","targets","targetIdx","setFiles","fileRejections","acceptError","sizeError","errors","onDropCb","openFileDialog","opts","onKeyDownCb","onFocusCb","onBlurCb","onClickCb","composeHandler","composeKeyboardHandler","composeDragHandler","getRootProps","refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter2","onDragOver2","onDragLeave2","onDrop2","rest","onInputElementClick","getInputProps","onChange","inputProps","action","assignRef","mergeRefs","refs","node","useMergedRef","DropzoneProvider","useDropzoneContext","upperFirst","createDropzoneStatus","status","Component","others","ctx","_children","DropzoneAccept","DropzoneReject","DropzoneIdle","classes","varsResolver","theme","radius","variant","acceptColor","rejectColor","acceptColors","rejectColors","_props","classNames","className","style","styles","unstyled","vars","loading","onDropAny","onReject","openRef","activateOnClick","activateOnDrag","dragEventsBubbling","activateOnKeyboard","enablePointerEvents","loaderProps","mod","getStyles","r","isIdle","DropzoneFullScreen","active","zIndex","withinPortal","portalProps","resolvedClassNames","resolvedStyles","counter","setCounter","visible","close","handleDragEnter","prev","handleDragLeave"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy