kouxiangtang 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { _ as M, b as $, p as j, h as L, i as S, a as q, E as O, j as W, f as G, k as H, m as J, n as K, o as Q } from "./index-BElmvwla.js";
1
+ import { _ as M, b as $, p as j, h as L, i as S, a as q, E as O, j as W, f as G, k as H, m as J, n as K, o as Q } from "./index-C0Dtld0k.js";
2
2
  import { computed as X, ref as x, openBlock as u, createElementBlock as U, Fragment as C, createVNode as s, unref as d, normalizeClass as Y, withModifiers as Z, withCtx as r, createBlock as g, createTextVNode as ee, isRef as te, createElementVNode as V, renderList as ae, toDisplayString as ne, createCommentVNode as oe } from "vue";
3
3
  import { ElMessage as m, ElLoading as b } from "element-plus";
4
4
  const le = ["src"], se = { class: "file-type" }, re = {
@@ -206,4 +206,4 @@ const le = ["src"], se = { class: "file-type" }, re = {
206
206
  export {
207
207
  ue as default
208
208
  };
209
- //# sourceMappingURL=AttachmentUploader-DI0lsUHH.js.map
209
+ //# sourceMappingURL=AttachmentUploader-uUJ4Qk11.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentUploader-DI0lsUHH.js","sources":["../src/framework/field/attachment/AttachmentUploader.vue"],"sourcesContent":["<script setup>\nimport axios from \"axios\";\nimport { getConfig } from \"../../config-loader\";\nimport { computed } from \"vue\";\nimport { ElLoading, ElMessage } from \"element-plus\";\nimport { Plus, Document, Close } from \"@element-plus/icons-vue\";\n\nconst emit = defineEmits([\"on-success\", \"on-remove\", \"on-change\"]);\nconst props = defineProps({\n pics: {\n type: Array,\n default() {\n return [];\n },\n },\n limit: { type: Number },\n props: {\n type: Object,\n default() {\n return {\n listType: \"picture-card\", //'text' | 'picture' | 'picture-card'\n limit: 5, //最多上传几个文件\n accept: \"image/*\",\n };\n },\n },\n});\n\nconst files = computed(() => {\n return props.pics.map((item) => {\n const fileType = item.url.substring(item.url.lastIndexOf(\".\") + 1);\n if (typeof item.name !== undefined) {\n item.fileType = fileType;\n return item;\n }\n\n if (item.url) {\n const parts = item.url.split(\"/\");\n const namedItem = {\n ...item,\n name: parts[parts.length - 1],\n fileType: fileType,\n };\n return namedItem;\n }\n\n return { ...item, name: item.id, fileType: fileType };\n });\n});\nconst dialogImageUrl = ref(\"\");\nconst dialogVisible = ref(false);\nconst imageUrl = ref(props);\nconst uploadUrl = getConfig().fileUploadUrl;\nconst header = {\n Authorization: `Bearer ${localStorage.getItem(\"token\")}`,\n};\nconst compressImg = (file) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n\n return new Promise(function (resolve, reject) {\n if (!file.type.startsWith(\"image/\")) {\n resolve(file);\n return false;\n }\n reader.onload = async (e) => {\n const img = new Image();\n img.src = e.target.result;\n img.onload = () => {\n const canvas = document.createElement(\"canvas\");\n const ctx = canvas.getContext(\"2d\");\n canvas.width = img.width;\n canvas.height = img.height;\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n canvas.toBlob(\n (blob) => {\n const newFile = new File([blob], file.name, {\n type: file.type,\n lastModified: Date.now(),\n });\n resolve(newFile);\n },\n file.type,\n 0.5,\n );\n };\n };\n return false;\n });\n};\nconst handleRemoveSuccess = (uploadFile) => {\n emit(\"on-remove\", uploadFile);\n};\nconst handleExceed = () => {\n ElMessage({\n message: `最多只能上传 ${props.props.limit} 个文件!`,\n type: \"warning\",\n });\n};\nconst handlePictureCardPreview = (uploadFile) => {\n dialogImageUrl.value = uploadFile.url;\n dialogVisible.value = true;\n};\nconst handleBeforeUpload = (file) => {\n compressImg(file).then((newFile) => {\n if (newFile.size / 1024 / 1024 < 5) {\n uploadRequest(newFile);\n return false;\n } else {\n ElMessage({\n message: \"上传大小不能超过 5MB!\",\n type: \"warning\",\n });\n return false;\n }\n });\n};\n\nfunction handleFileNameChange(file, index) {\n if (!file.name) {\n ElMessage({\n message: \"附件名称不能为空!\",\n type: \"warning\",\n });\n return;\n }\n emit(\"on-change\", file);\n}\n\nfunction uploadRequest(file) {\n ElLoading.service({ text: \"上传中,请稍后\", background: \"rgba(0,0,0,0.3)\" });\n return new Promise((resolve, reject) => {\n const formData = new FormData();\n formData.append(\"file\", file);\n axios\n .post(uploadUrl, formData, {})\n .then((res) => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传成功\",\n type: \"success\",\n });\n emit(\"on-success\", res.data.data);\n resolve(res.data);\n return false;\n })\n .catch(() => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传失败\",\n type: \"warning\",\n });\n reject(\"Upload failed\");\n });\n });\n}\n</script>\n\n<template>\n <!-- 删除请求头加权限后请添加到组建中 :headers=\"header\"-->\n <el-upload\n :file-list=\"files\"\n :action=\"uploadUrl\"\n :limit=\"props.props.limit\"\n :accept=\"props.props.accept\"\n :list-type=\"props.props.listType\"\n :on-remove=\"handleRemoveSuccess\"\n :before-upload=\"handleBeforeUpload\"\n :on-exceed=\"handleExceed\"\n :on-preview=\"handlePictureCardPreview\"\n :multiple=\"true\"\n :http-request=\"\n () => {\n return false;\n }\n \"\n :show-file-list=\"props.props.listType !== 'text'\"\n :class=\"[\n 'upload-main',\n { 'disable-upload': files.length >= props.props.limit },\n ]\"\n @click.prevent\n >\n <template v-if=\"props.props.listType !== 'text'\">\n <el-icon :disabled=\"true\">\n <Plus />\n </el-icon>\n </template>\n <template v-else>\n <el-button class=\"upload-button\" type=\"primary\">上传附件</el-button>\n </template>\n </el-upload>\n <el-dialog v-model=\"dialogVisible\">\n <img w-full :src=\"dialogImageUrl\" alt=\"Preview Image\" />\n </el-dialog>\n <el-form v-if=\"props.props.listType == 'text'\">\n <el-form-item v-for=\"(file, index) in files\" :key=\"index\" class=\"file-list\">\n <el-icon color=\"#73767a\" :size=\"14\">\n <Document />\n </el-icon>\n <el-input\n v-model=\"file.name\"\n @change=\"handleFileNameChange(file, index)\"\n />\n <span class=\"file-type\">.{{ file.fileType }}</span>\n <el-icon color=\"#73767a\" :size=\"12\" @click=\"handleRemoveSuccess(file)\">\n <Close />\n </el-icon>\n </el-form-item>\n </el-form>\n</template>\n<style scoped lang=\"scss\">\n:deep(.el-upload-list) {\n .el-upload-list__item-actions span {\n margin-left: 20px;\n }\n}\n\n.disable-upload {\n :deep(.el-upload--picture-card) {\n display: none !important;\n }\n\n :deep(.el-upload--text) {\n display: none !important;\n }\n\n :deep(.el-upload--picture) {\n display: none !important;\n }\n}\n.upload-main {\n flex-basis: 100%;\n}\n.file-list {\n display: flex;\n align-items: center;\n margin-top: 10px;\n .file-type {\n height: 22px;\n line-height: 22px;\n margin-right: 5px;\n background: #eeeeee;\n border-radius: 4px;\n font-size: 12px;\n padding: 0 4px;\n }\n :deep(.el-form-item__content) {\n display: contents;\n }\n :deep(.el-input__wrapper) {\n margin: 0 5px;\n }\n :deep(.el-input__inner) {\n height: 20px;\n line-height: 20px;\n }\n}\n</style>\n"],"names":["emit","__emit","props","__props","files","computed","item","fileType","parts","dialogImageUrl","ref","dialogVisible","uploadUrl","getConfig","compressImg","file","reader","resolve","reject","e","img","canvas","ctx","blob","newFile","handleRemoveSuccess","uploadFile","handleExceed","ElMessage","handlePictureCardPreview","handleBeforeUpload","uploadRequest","handleFileNameChange","index","ElLoading","formData","axios","res"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,UAAMA,IAAOC,GACPC,IAAQC,GAoBRC,IAAQC,EAAS,MACdH,EAAM,KAAK,IAAI,CAACI,MAAS;AAC9B,YAAMC,IAAWD,EAAK,IAAI,UAAUA,EAAK,IAAI,YAAY,GAAG,IAAI,CAAC;AACjE,UAAI,OAAOA,EAAK,SAAS;AACvB,eAAAA,EAAK,WAAWC,GACTD;AAGT,UAAIA,EAAK,KAAK;AACZ,cAAME,IAAQF,EAAK,IAAI,MAAM,GAAG;AAMhC,eALkB;AAAA,UAChB,GAAGA;AAAA,UACH,MAAME,EAAMA,EAAM,SAAS,CAAC;AAAA,UAC5B,UAAUD;AAAA,QAClB;AAAA,MAEK;AAED,aAAO,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 {"version":3,"file":"AttachmentUploader-uUJ4Qk11.js","sources":["../src/framework/field/attachment/AttachmentUploader.vue"],"sourcesContent":["<script setup>\nimport axios from \"axios\";\nimport { getConfig } from \"../../config-loader\";\nimport { computed } from \"vue\";\nimport { ElLoading, ElMessage } from \"element-plus\";\nimport { Plus, Document, Close } from \"@element-plus/icons-vue\";\n\nconst emit = defineEmits([\"on-success\", \"on-remove\", \"on-change\"]);\nconst props = defineProps({\n pics: {\n type: Array,\n default() {\n return [];\n },\n },\n limit: { type: Number },\n props: {\n type: Object,\n default() {\n return {\n listType: \"picture-card\", //'text' | 'picture' | 'picture-card'\n limit: 5, //最多上传几个文件\n accept: \"image/*\",\n };\n },\n },\n});\n\nconst files = computed(() => {\n return props.pics.map((item) => {\n const fileType = item.url.substring(item.url.lastIndexOf(\".\") + 1);\n if (typeof item.name !== undefined) {\n item.fileType = fileType;\n return item;\n }\n\n if (item.url) {\n const parts = item.url.split(\"/\");\n const namedItem = {\n ...item,\n name: parts[parts.length - 1],\n fileType: fileType,\n };\n return namedItem;\n }\n\n return { ...item, name: item.id, fileType: fileType };\n });\n});\nconst dialogImageUrl = ref(\"\");\nconst dialogVisible = ref(false);\nconst imageUrl = ref(props);\nconst uploadUrl = getConfig().fileUploadUrl;\nconst header = {\n Authorization: `Bearer ${localStorage.getItem(\"token\")}`,\n};\nconst compressImg = (file) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n\n return new Promise(function (resolve, reject) {\n if (!file.type.startsWith(\"image/\")) {\n resolve(file);\n return false;\n }\n reader.onload = async (e) => {\n const img = new Image();\n img.src = e.target.result;\n img.onload = () => {\n const canvas = document.createElement(\"canvas\");\n const ctx = canvas.getContext(\"2d\");\n canvas.width = img.width;\n canvas.height = img.height;\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n canvas.toBlob(\n (blob) => {\n const newFile = new File([blob], file.name, {\n type: file.type,\n lastModified: Date.now(),\n });\n resolve(newFile);\n },\n file.type,\n 0.5,\n );\n };\n };\n return false;\n });\n};\nconst handleRemoveSuccess = (uploadFile) => {\n emit(\"on-remove\", uploadFile);\n};\nconst handleExceed = () => {\n ElMessage({\n message: `最多只能上传 ${props.props.limit} 个文件!`,\n type: \"warning\",\n });\n};\nconst handlePictureCardPreview = (uploadFile) => {\n dialogImageUrl.value = uploadFile.url;\n dialogVisible.value = true;\n};\nconst handleBeforeUpload = (file) => {\n compressImg(file).then((newFile) => {\n if (newFile.size / 1024 / 1024 < 5) {\n uploadRequest(newFile);\n return false;\n } else {\n ElMessage({\n message: \"上传大小不能超过 5MB!\",\n type: \"warning\",\n });\n return false;\n }\n });\n};\n\nfunction handleFileNameChange(file, index) {\n if (!file.name) {\n ElMessage({\n message: \"附件名称不能为空!\",\n type: \"warning\",\n });\n return;\n }\n emit(\"on-change\", file);\n}\n\nfunction uploadRequest(file) {\n ElLoading.service({ text: \"上传中,请稍后\", background: \"rgba(0,0,0,0.3)\" });\n return new Promise((resolve, reject) => {\n const formData = new FormData();\n formData.append(\"file\", file);\n axios\n .post(uploadUrl, formData, {})\n .then((res) => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传成功\",\n type: \"success\",\n });\n emit(\"on-success\", res.data.data);\n resolve(res.data);\n return false;\n })\n .catch(() => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传失败\",\n type: \"warning\",\n });\n reject(\"Upload failed\");\n });\n });\n}\n</script>\n\n<template>\n <!-- 删除请求头加权限后请添加到组建中 :headers=\"header\"-->\n <el-upload\n :file-list=\"files\"\n :action=\"uploadUrl\"\n :limit=\"props.props.limit\"\n :accept=\"props.props.accept\"\n :list-type=\"props.props.listType\"\n :on-remove=\"handleRemoveSuccess\"\n :before-upload=\"handleBeforeUpload\"\n :on-exceed=\"handleExceed\"\n :on-preview=\"handlePictureCardPreview\"\n :multiple=\"true\"\n :http-request=\"\n () => {\n return false;\n }\n \"\n :show-file-list=\"props.props.listType !== 'text'\"\n :class=\"[\n 'upload-main',\n { 'disable-upload': files.length >= props.props.limit },\n ]\"\n @click.prevent\n >\n <template v-if=\"props.props.listType !== 'text'\">\n <el-icon :disabled=\"true\">\n <Plus />\n </el-icon>\n </template>\n <template v-else>\n <el-button class=\"upload-button\" type=\"primary\">上传附件</el-button>\n </template>\n </el-upload>\n <el-dialog v-model=\"dialogVisible\">\n <img w-full :src=\"dialogImageUrl\" alt=\"Preview Image\" />\n </el-dialog>\n <el-form v-if=\"props.props.listType == 'text'\">\n <el-form-item v-for=\"(file, index) in files\" :key=\"index\" class=\"file-list\">\n <el-icon color=\"#73767a\" :size=\"14\">\n <Document />\n </el-icon>\n <el-input\n v-model=\"file.name\"\n @change=\"handleFileNameChange(file, index)\"\n />\n <span class=\"file-type\">.{{ file.fileType }}</span>\n <el-icon color=\"#73767a\" :size=\"12\" @click=\"handleRemoveSuccess(file)\">\n <Close />\n </el-icon>\n </el-form-item>\n </el-form>\n</template>\n<style scoped lang=\"scss\">\n:deep(.el-upload-list) {\n .el-upload-list__item-actions span {\n margin-left: 20px;\n }\n}\n\n.disable-upload {\n :deep(.el-upload--picture-card) {\n display: none !important;\n }\n\n :deep(.el-upload--text) {\n display: none !important;\n }\n\n :deep(.el-upload--picture) {\n display: none !important;\n }\n}\n.upload-main {\n flex-basis: 100%;\n}\n.file-list {\n display: flex;\n align-items: center;\n margin-top: 10px;\n .file-type {\n height: 22px;\n line-height: 22px;\n margin-right: 5px;\n background: #eeeeee;\n border-radius: 4px;\n font-size: 12px;\n padding: 0 4px;\n }\n :deep(.el-form-item__content) {\n display: contents;\n }\n :deep(.el-input__wrapper) {\n margin: 0 5px;\n }\n :deep(.el-input__inner) {\n height: 20px;\n line-height: 20px;\n }\n}\n</style>\n"],"names":["emit","__emit","props","__props","files","computed","item","fileType","parts","dialogImageUrl","ref","dialogVisible","uploadUrl","getConfig","compressImg","file","reader","resolve","reject","e","img","canvas","ctx","blob","newFile","handleRemoveSuccess","uploadFile","handleExceed","ElMessage","handlePictureCardPreview","handleBeforeUpload","uploadRequest","handleFileNameCh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B,GAAU,EAAE,EAC5B,KAAK,CAACE,OACLH,EAAU,UAAU,SACpBN,EAAU;AAAA,UACR,SAAS;AAAA,UACT,MAAM;AAAA,QAChB,CAAS,GACD5B,EAAK,cAAcqC,EAAI,KAAK,IAAI,GAChCpB,EAAQoB,EAAI,IAAI,GACT,GACR,EACA,MAAM,MAAM;AACX,UAAAH,EAAU,UAAU,SACpBN,EAAU;AAAA,YACR,SAAS;AAAA,YACT,MAAM;AAAA,UAChB,CAAS,GACDV,EAAO,eAAe;AAAA,QAC9B,CAAO;AAAA,MACP,CAAG;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { _ as y, b as E, l as I, p as v, d as b, a as x, E as B, e as M, f as C } from "./index-BElmvwla.js";
1
+ import { _ as y, b as E, l as I, p as v, d as b, a as x, E as B, e as M, f as C } from "./index-C0Dtld0k.js";
2
2
  import { openBlock as o, createBlock as l, unref as c, withCtx as s, renderSlot as S, createElementVNode as L, createVNode as n, withModifiers as N, createCommentVNode as V } from "vue";
3
3
  import { ElMessage as m, ElLoading as p } from "element-plus";
4
4
  const q = { class: "image-slot" }, z = {
@@ -96,4 +96,4 @@ const q = { class: "image-slot" }, z = {
96
96
  export {
97
97
  F as default
98
98
  };
99
- //# sourceMappingURL=ImageUploader-CY0dG8_h.js.map
99
+ //# sourceMappingURL=ImageUploader-C3OKOyHr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageUploader-CY0dG8_h.js","sources":["../src/framework/field/image/ImageUploader.vue"],"sourcesContent":["<script setup>\nimport axios from \"axios\";\nimport { getConfig } from \"../../config-loader\";\nimport { ElLoading, ElMessage } from \"element-plus\";\nimport { Plus, Delete, Loading } from \"@element-plus/icons-vue\";\n\nconst emit = defineEmits([\"on-success\"]);\nconst props = defineProps({\n imageUrl: { type: String },\n});\nconst uploadUrl = getConfig().imageUploadUrl;\nconst header = {\n Authorization: `Bearer ${localStorage.getItem(\"token\")}`,\n};\nconst handleBeforeUpload = (uploadFile) => {\n const isLt2M = uploadFile.size / 1024 / 1024 < 5;\n if (!isLt2M) {\n ElMessage({\n message: \"上传大小不能超过 5MB!\",\n type: \"warning\",\n });\n return false;\n }\n};\nconst handleSuccess = (response) => {\n emit(\"on-success\", response.data.imageUrl);\n};\n\nfunction deleteImageUrl() {\n emit(\"on-success\", \"\");\n}\n\nfunction uploadRequest(file) {\n ElLoading.service({ text: \"上传中,请稍后\", background: \"rgba(0,0,0,0.3)\" });\n return new Promise((resolve, reject) => {\n const formData = new FormData();\n formData.append(\"image\", file.file);\n axios\n .post(uploadUrl, formData, {})\n .then((res) => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传成功\",\n type: \"success\",\n });\n resolve(res.data);\n })\n .catch(() => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传失败\",\n type: \"warning\",\n });\n reject(\"Upload failed\");\n });\n });\n}\n</script>\n\n<template>\n <!-- 删除请求头加权限后请添加到组建中 :headers=\"header\"-->\n <el-upload\n class=\"image-uploader\"\n :action=\"uploadUrl\"\n name=\"image\"\n :show-file-list=\"false\"\n :on-success=\"handleSuccess\"\n :before-upload=\"handleBeforeUpload\"\n :http-request=\"uploadRequest\"\n >\n <slot />\n <el-image\n v-if=\"props.imageUrl\"\n class=\"image\"\n :src=\"props.imageUrl\"\n fit=\"scale-down\"\n >\n <template #placeholder>\n <div class=\"image-slot\">\n <el-icon class=\"placeholder-icon\">\n <Loading />\n </el-icon>\n </div>\n </template>\n </el-image>\n <el-icon v-else class=\"uploader-icon\">\n <Plus />\n </el-icon>\n <el-icon\n v-if=\"props.imageUrl\"\n class=\"delete-icon\"\n @click.stop.prevent=\"deleteImageUrl\"\n >\n <Delete />\n </el-icon>\n </el-upload>\n</template>\n\n<style scoped lang=\"scss\">\n.image-uploader {\n :deep(.el-upload) {\n border: 1px dashed var(--el-border-color);\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n transition: var(--el-transition-duration-fast);\n\n &:hover {\n border-color: var(--el-color-primary);\n }\n }\n\n .image {\n width: 146px;\n height: 146px;\n\n .placeholder-icon {\n width: 146px;\n height: 146px;\n font-size: 30px;\n color: #a7a7a7;\n }\n }\n\n .uploader-icon {\n font-size: 28px;\n color: #8c939d;\n width: 146px;\n height: 146px;\n text-align: center;\n }\n\n .delete-icon {\n font-size: 20px;\n color: #b7b4b4;\n position: absolute;\n top: 10px;\n right: 10px;\n }\n}\n</style>\n"],"names":["emit","__emit","props","__props","uploadUrl","getConfig","handleBeforeUpload","uploadFile","ElMessage","handleSuccess","response","deleteImageUrl","uploadRequest","file","ElLoading","resolve","reject","formData","axios","res"],"mappings":";;;;;;;;;;AAMA,UAAMA,IAAOC,GACPC,IAAQC,GAGRC,IAAYC,EAAW,EAAC;AACf,IACY,gBAAa,QAAQ,OAAO;AAEvD,UAAMC,IAAqB,CAACC,MAAe;AAEzC,UAAI,EADWA,EAAW,OAAO,OAAO,OAAO;AAE7C,eAAAC,EAAU;AAAA,UACR,SAAS;AAAA,UACT,MAAM;AAAA,QACZ,CAAK,GACM;AAAA,IAEX,GACMC,IAAgB,CAACC,MAAa;AAClC,MAAAV,EAAK,cAAcU,EAAS,KAAK,QAAQ;AAAA,IAC3C;AAEA,aAASC,IAAiB;AACxB,MAAAX,EAAK,cAAc,EAAE;AAAA,IACvB;AAEA,aAASY,EAAcC,GAAM;AAC3B,aAAAC,EAAU,QAAQ,EAAE,MAAM,WAAW,YAAY,kBAAiB,CAAE,GAC7D,IAAI,QAAQ,CAACC,GAASC,MAAW;AACtC,cAAMC,IAAW,IAAI;AACrB,QAAAA,EAAS,OAAO,SAASJ,EAAK,IAAI,GAClCK,EACG,KAAKd,GAAWa,GAAU,EAAE,EAC5B,KAAK,CAACE,MAAQ;AACb,UAAAL,EAAU,UAAU,SACpBN,EAAU;AAAA,YACR,SAAS;AAAA,YACT,MAAM;AAAA,UAChB,CAAS,GACDO,EAAQI,EAAI,IAAI;AAAA,QACxB,CAAO,EACA,MAAM,MAAM;AACX,UAAAL,EAAU,UAAU,SACpBN,EAAU;AAAA,YACR,SAAS;AAAA,YACT,MAAM;AAAA,UAChB,CAAS,GACDQ,EAAO,eAAe;AAAA,QAC9B,CAAO;AAAA,MACP,CAAG;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ImageUploader-C3OKOyHr.js","sources":["../src/framework/field/image/ImageUploader.vue"],"sourcesContent":["<script setup>\nimport axios from \"axios\";\nimport { getConfig } from \"../../config-loader\";\nimport { ElLoading, ElMessage } from \"element-plus\";\nimport { Plus, Delete, Loading } from \"@element-plus/icons-vue\";\n\nconst emit = defineEmits([\"on-success\"]);\nconst props = defineProps({\n imageUrl: { type: String },\n});\nconst uploadUrl = getConfig().imageUploadUrl;\nconst header = {\n Authorization: `Bearer ${localStorage.getItem(\"token\")}`,\n};\nconst handleBeforeUpload = (uploadFile) => {\n const isLt2M = uploadFile.size / 1024 / 1024 < 5;\n if (!isLt2M) {\n ElMessage({\n message: \"上传大小不能超过 5MB!\",\n type: \"warning\",\n });\n return false;\n }\n};\nconst handleSuccess = (response) => {\n emit(\"on-success\", response.data.imageUrl);\n};\n\nfunction deleteImageUrl() {\n emit(\"on-success\", \"\");\n}\n\nfunction uploadRequest(file) {\n ElLoading.service({ text: \"上传中,请稍后\", background: \"rgba(0,0,0,0.3)\" });\n return new Promise((resolve, reject) => {\n const formData = new FormData();\n formData.append(\"image\", file.file);\n axios\n .post(uploadUrl, formData, {})\n .then((res) => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传成功\",\n type: \"success\",\n });\n resolve(res.data);\n })\n .catch(() => {\n ElLoading.service().close();\n ElMessage({\n message: \"上传失败\",\n type: \"warning\",\n });\n reject(\"Upload failed\");\n });\n });\n}\n</script>\n\n<template>\n <!-- 删除请求头加权限后请添加到组建中 :headers=\"header\"-->\n <el-upload\n class=\"image-uploader\"\n :action=\"uploadUrl\"\n name=\"image\"\n :show-file-list=\"false\"\n :on-success=\"handleSuccess\"\n :before-upload=\"handleBeforeUpload\"\n :http-request=\"uploadRequest\"\n >\n <slot />\n <el-image\n v-if=\"props.imageUrl\"\n class=\"image\"\n :src=\"props.imageUrl\"\n fit=\"scale-down\"\n >\n <template #placeholder>\n <div class=\"image-slot\">\n <el-icon class=\"placeholder-icon\">\n <Loading />\n </el-icon>\n </div>\n </template>\n </el-image>\n <el-icon v-else class=\"uploader-icon\">\n <Plus />\n </el-icon>\n <el-icon\n v-if=\"props.imageUrl\"\n class=\"delete-icon\"\n @click.stop.prevent=\"deleteImageUrl\"\n >\n <Delete />\n </el-icon>\n </el-upload>\n</template>\n\n<style scoped lang=\"scss\">\n.image-uploader {\n :deep(.el-upload) {\n border: 1px dashed var(--el-border-color);\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n transition: var(--el-transition-duration-fast);\n\n &:hover {\n border-color: var(--el-color-primary);\n }\n }\n\n .image {\n width: 146px;\n height: 146px;\n\n .placeholder-icon {\n width: 146px;\n height: 146px;\n font-size: 30px;\n color: #a7a7a7;\n }\n }\n\n .uploader-icon {\n font-size: 28px;\n color: #8c939d;\n width: 146px;\n height: 146px;\n text-align: center;\n }\n\n .delete-icon {\n font-size: 20px;\n color: #b7b4b4;\n position: absolute;\n top: 10px;\n right: 10px;\n }\n}\n</style>\n"],"names":["emit","__emit","props","__props","uploadUrl","getConfig","handleBeforeUpload","uploadFile","ElMessage","handleSuccess","response","deleteImageUrl","uploadRequest","file","ElLoading","resolve","reject","formData","axios","res"],"mappings":";;;;;;;;;;AAMA,UAAMA,IAAOC,GACPC,IAAQC,GAGRC,IAAYC,EAAW,EAAC;AACf,IACY,gBAAa,QAAQ,OAAO;AAEvD,UAAMC,IAAqB,CAACC,MAAe;AAEzC,UAAI,EADWA,EAAW,OAAO,OAAO,OAAO;AAE7C,eAAAC,EAAU;AAAA,UACR,SAAS;AAAA,UACT,MAAM;AAAA,QACZ,CAAK,GACM;AAAA,IAEX,GACMC,IAAgB,CAACC,MAAa;AAClC,MAAAV,EAAK,cAAcU,EAAS,KAAK,QAAQ;AAAA,IAC3C;AAEA,aAASC,IAAiB;AACxB,MAAAX,EAAK,cAAc,EAAE;AAAA,IACvB;AAEA,aAASY,EAAcC,GAAM;AAC3B,aAAAC,EAAU,QAAQ,EAAE,MAAM,WAAW,YAAY,kBAAiB,CAAE,GAC7D,IAAI,QAAQ,CAACC,GAASC,MAAW;AACtC,cAAMC,IAAW,IAAI;AACrB,QAAAA,EAAS,OAAO,SAASJ,EAAK,IAAI,GAClCK,EACG,KAAKd,GAAWa,GAAU,EAAE,EAC5B,KAAK,CAACE,MAAQ;AACb,UAAAL,EAAU,UAAU,SACpBN,EAAU;AAAA,YACR,SAAS;AAAA,YACT,MAAM;AAAA,UAChB,CAAS,GACDO,EAAQI,EAAI,IAAI;AAAA,QACxB,CAAO,EACA,MAAM,MAAM;AACX,UAAAL,EAAU,UAAU,SACpBN,EAAU;AAAA,YACR,SAAS;AAAA,YACT,MAAM;AAAA,UAChB,CAAS,GACDQ,EAAO,eAAe;AAAA,QAC9B,CAAO;AAAA,MACP,CAAG;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as tn, onMounted as rn, onBeforeUnmount as nn, ref as $r, watch as Ir, nextTick as Gr, h as an, openBlock as on, createBlock as sn, unref as un } from "vue";
2
2
  import * as Dr from "quill";
3
3
  import Pr from "quill";
4
- import { c as W, g as ln, _ as fn, a as cn, b as hn } from "./index-BElmvwla.js";
5
- import dn from "quill-image-uploader";
4
+ import { c as W, g as ln, a as fn, b as cn } from "./index-C0Dtld0k.js";
5
+ import hn from "quill-image-uploader";
6
6
  var ue = -1, ne = 1, Z = 0;
7
7
  function it(r, a, n, u) {
8
8
  if (r === a)
9
9
  return r ? [[Z, r]] : [];
10
10
  if (n != null) {
11
- var l = bn(r, a, n);
11
+ var l = _n(r, a, n);
12
12
  if (l)
13
13
  return l;
14
14
  }
15
- var o = Fr(r, a), s = r.substring(0, o);
15
+ var o = xr(r, a), s = r.substring(0, o);
16
16
  r = r.substring(o), a = a.substring(o), o = Ur(r, a);
17
17
  var c = r.substring(r.length - o);
18
18
  r = r.substring(0, r.length - o), a = a.substring(0, a.length - o);
19
- var h = pn(r, a);
19
+ var h = dn(r, a);
20
20
  return s && h.unshift([Z, s]), c && h.push([Z, c]), Qr(h, u), h;
21
21
  }
22
- function pn(r, a) {
22
+ function dn(r, a) {
23
23
  var n;
24
24
  if (!r)
25
25
  return [[ne, a]];
@@ -34,21 +34,21 @@ function pn(r, a) {
34
34
  ], r.length > a.length && (n[0][0] = n[2][0] = ue), n;
35
35
  if (l.length === 1)
36
36
  return [[ue, r], [ne, a]];
37
- var s = vn(r, a);
37
+ var s = gn(r, a);
38
38
  if (s) {
39
39
  var c = s[0], h = s[1], d = s[2], g = s[3], _ = s[4], T = it(c, d), O = it(h, g);
40
40
  return T.concat([[Z, _]], O);
41
41
  }
42
- return gn(r, a);
42
+ return pn(r, a);
43
43
  }
44
- function gn(r, a) {
44
+ function pn(r, a) {
45
45
  for (var n = r.length, u = a.length, l = Math.ceil((n + u) / 2), o = l, s = 2 * l, c = new Array(s), h = new Array(s), d = 0; d < s; d++)
46
46
  c[d] = -1, h[d] = -1;
47
47
  c[o + 1] = 0, h[o + 1] = 0;
48
- for (var g = n - u, _ = g % 2 !== 0, T = 0, O = 0, D = 0, L = 0, x = 0; x < l; x++) {
49
- for (var A = -x + T; A <= x - O; A += 2) {
48
+ for (var g = n - u, _ = g % 2 !== 0, T = 0, O = 0, D = 0, L = 0, F = 0; F < l; F++) {
49
+ for (var A = -F + T; A <= F - O; A += 2) {
50
50
  var m = o + A, j;
51
- A === -x || A !== x && c[m - 1] < c[m + 1] ? j = c[m + 1] : j = c[m - 1] + 1;
51
+ A === -F || A !== F && c[m - 1] < c[m + 1] ? j = c[m + 1] : j = c[m - 1] + 1;
52
52
  for (var M = j - A; j < n && M < u && r.charAt(j) === a.charAt(M); )
53
53
  j++, M++;
54
54
  if (c[m] = j, j > n)
@@ -64,9 +64,9 @@ function gn(r, a) {
64
64
  }
65
65
  }
66
66
  }
67
- for (var U = -x + D; U <= x - L; U += 2) {
67
+ for (var U = -F + D; U <= F - L; U += 2) {
68
68
  var I = o + U, w;
69
- U === -x || U !== x && h[I - 1] < h[I + 1] ? w = h[I + 1] : w = h[I - 1] + 1;
69
+ U === -F || U !== F && h[I - 1] < h[I + 1] ? w = h[I + 1] : w = h[I - 1] + 1;
70
70
  for (var z = w - U; w < n && z < u && r.charAt(n - w - 1) === a.charAt(u - z - 1); )
71
71
  w++, z++;
72
72
  if (h[I] = w, w > n)
@@ -89,7 +89,7 @@ function Br(r, a, n, u) {
89
89
  var l = r.substring(0, n), o = a.substring(0, u), s = r.substring(n), c = a.substring(u), h = it(l, o), d = it(s, c);
90
90
  return h.concat(d);
91
91
  }
92
- function Fr(r, a) {
92
+ function xr(r, a) {
93
93
  if (!r || !a || r.charAt(0) !== a.charAt(0))
94
94
  return 0;
95
95
  for (var n = 0, u = Math.min(r.length, a.length), l = u, o = 0; n < l; )
@@ -103,13 +103,13 @@ function Ur(r, a) {
103
103
  r.substring(r.length - l, r.length - o) == a.substring(a.length - l, a.length - o) ? (n = l, o = n) : u = l, l = Math.floor((u - n) / 2 + n);
104
104
  return Yr(r.charCodeAt(r.length - l)) && l--, l;
105
105
  }
106
- function vn(r, a) {
106
+ function gn(r, a) {
107
107
  var n = r.length > a.length ? r : a, u = r.length > a.length ? a : r;
108
108
  if (n.length < 4 || u.length * 2 < n.length)
109
109
  return null;
110
110
  function l(O, D, L) {
111
- for (var x = O.substring(L, L + Math.floor(O.length / 4)), A = -1, m = "", j, M, I, w; (A = D.indexOf(x, A + 1)) !== -1; ) {
112
- var U = Fr(
111
+ for (var F = O.substring(L, L + Math.floor(O.length / 4)), A = -1, m = "", j, M, I, w; (A = D.indexOf(F, A + 1)) !== -1; ) {
112
+ var U = xr(
113
113
  O.substring(L),
114
114
  D.substring(A)
115
115
  ), z = Ur(
@@ -173,7 +173,7 @@ function Qr(r, a) {
173
173
  break;
174
174
  }
175
175
  if (o.length > 0 || s.length > 0) {
176
- o.length > 0 && s.length > 0 && (c = Fr(s, o), c !== 0 && (h >= 0 ? r[h][1] += s.substring(0, c) : (r.splice(0, 0, [Z, s.substring(0, c)]), n++), s = s.substring(c), o = o.substring(c)), c = Ur(s, o), c !== 0 && (r[n][1] = s.substring(s.length - c) + r[n][1], s = s.substring(0, s.length - c), o = o.substring(0, o.length - c)));
176
+ o.length > 0 && s.length > 0 && (c = xr(s, o), c !== 0 && (h >= 0 ? r[h][1] += s.substring(0, c) : (r.splice(0, 0, [Z, s.substring(0, c)]), n++), s = s.substring(c), o = o.substring(c)), c = Ur(s, o), c !== 0 && (r[n][1] = s.substring(s.length - c) + r[n][1], s = s.substring(0, s.length - c), o = o.substring(0, o.length - c)));
177
177
  var _ = l + u;
178
178
  o.length === 0 && s.length === 0 ? (r.splice(n - _, _), n = n - _) : o.length === 0 ? (r.splice(n - _, _, [ne, s]), n = n - _ + 1) : s.length === 0 ? (r.splice(n - _, _, [ue, o]), n = n - _ + 1) : (r.splice(n - _, _, [ue, o], [ne, s]), n = n - _ + 2);
179
179
  }
@@ -199,20 +199,20 @@ function Jr(r) {
199
199
  function Xr(r) {
200
200
  return Wr(r.charCodeAt(r.length - 1));
201
201
  }
202
- function _n(r) {
202
+ function vn(r) {
203
203
  for (var a = [], n = 0; n < r.length; n++)
204
204
  r[n][1].length > 0 && a.push(r[n]);
205
205
  return a;
206
206
  }
207
207
  function Rr(r, a, n, u) {
208
- return Xr(r) || Jr(u) ? null : _n([
208
+ return Xr(r) || Jr(u) ? null : vn([
209
209
  [Z, r],
210
210
  [ue, a],
211
211
  [ne, n],
212
212
  [Z, u]
213
213
  ]);
214
214
  }
215
- function bn(r, a, n) {
215
+ function _n(r, a, n) {
216
216
  var u = typeof n == "number" ? { index: n, length: 0 } : n.oldRange, l = typeof n == "number" ? null : n.newRange, o = r.length, s = a.length;
217
217
  if (u.length === 0 && (l === null || l.length === 0)) {
218
218
  var c = u.index, h = r.slice(0, c), d = r.slice(c), g = l ? l.index : null;
@@ -223,8 +223,8 @@ function bn(r, a, n) {
223
223
  var T = a.slice(0, _), O = a.slice(_);
224
224
  if (O !== d)
225
225
  break e;
226
- var D = Math.min(c, _), L = h.slice(0, D), x = T.slice(0, D);
227
- if (L !== x)
226
+ var D = Math.min(c, _), L = h.slice(0, D), F = T.slice(0, D);
227
+ if (L !== F)
228
228
  break e;
229
229
  var A = h.slice(D), m = T.slice(D);
230
230
  return Rr(L, A, m, d);
@@ -247,25 +247,25 @@ function bn(r, a, n) {
247
247
  var L = r.slice(0, u.index), I = r.slice(u.index + u.length), D = L.length, M = I.length;
248
248
  if (s < D + M)
249
249
  break e;
250
- var x = a.slice(0, D), w = a.slice(s - M);
251
- if (L !== x || I !== w)
250
+ var F = a.slice(0, D), w = a.slice(s - M);
251
+ if (L !== F || I !== w)
252
252
  break e;
253
253
  var A = r.slice(D, o - M), m = a.slice(D, s - M);
254
254
  return Rr(L, A, m, I);
255
255
  }
256
256
  return null;
257
257
  }
258
- function Ft(r, a, n) {
258
+ function xt(r, a, n) {
259
259
  return it(r, a, n, !0);
260
260
  }
261
- Ft.INSERT = ne;
262
- Ft.DELETE = ue;
263
- Ft.EQUAL = Z;
264
- var yn = Ft, Lt = { exports: {} };
261
+ xt.INSERT = ne;
262
+ xt.DELETE = ue;
263
+ xt.EQUAL = Z;
264
+ var bn = xt, Lt = { exports: {} };
265
265
  Lt.exports;
266
266
  (function(r, a) {
267
- var n = 200, u = "__lodash_hash_undefined__", l = 9007199254740991, o = "[object Arguments]", s = "[object Array]", c = "[object Boolean]", h = "[object Date]", d = "[object Error]", g = "[object Function]", _ = "[object GeneratorFunction]", T = "[object Map]", O = "[object Number]", D = "[object Object]", L = "[object Promise]", x = "[object RegExp]", A = "[object Set]", m = "[object String]", j = "[object Symbol]", M = "[object WeakMap]", I = "[object ArrayBuffer]", w = "[object DataView]", U = "[object Float32Array]", z = "[object Float64Array]", je = "[object Int8Array]", de = "[object Int16Array]", p = "[object Int32Array]", y = "[object Uint8Array]", F = "[object Uint8ClampedArray]", pe = "[object Uint16Array]", ge = "[object Uint32Array]", Ee = /[\\^$.*+?()[\]{}|]/g, Ut = /\w*$/, Ht = /^\[object .+?Constructor\]$/, Nt = /^(?:0|[1-9]\d*)$/, P = {};
268
- P[o] = P[s] = P[I] = P[w] = P[c] = P[h] = P[U] = P[z] = P[je] = P[de] = P[p] = P[T] = P[O] = P[D] = P[x] = P[A] = P[m] = P[j] = P[y] = P[F] = P[pe] = P[ge] = !0, P[d] = P[g] = P[M] = !1;
267
+ var n = 200, u = "__lodash_hash_undefined__", l = 9007199254740991, o = "[object Arguments]", s = "[object Array]", c = "[object Boolean]", h = "[object Date]", d = "[object Error]", g = "[object Function]", _ = "[object GeneratorFunction]", T = "[object Map]", O = "[object Number]", D = "[object Object]", L = "[object Promise]", F = "[object RegExp]", A = "[object Set]", m = "[object String]", j = "[object Symbol]", M = "[object WeakMap]", I = "[object ArrayBuffer]", w = "[object DataView]", U = "[object Float32Array]", z = "[object Float64Array]", je = "[object Int8Array]", de = "[object Int16Array]", p = "[object Int32Array]", y = "[object Uint8Array]", x = "[object Uint8ClampedArray]", pe = "[object Uint16Array]", ge = "[object Uint32Array]", Ee = /[\\^$.*+?()[\]{}|]/g, Ut = /\w*$/, Ht = /^\[object .+?Constructor\]$/, Nt = /^(?:0|[1-9]\d*)$/, P = {};
268
+ P[o] = P[s] = P[I] = P[w] = P[c] = P[h] = P[U] = P[z] = P[je] = P[de] = P[p] = P[T] = P[O] = P[D] = P[F] = P[A] = P[m] = P[j] = P[y] = P[x] = P[pe] = P[ge] = !0, P[d] = P[g] = P[M] = !1;
269
269
  var $t = typeof W == "object" && W && W.Object === Object && W, Gt = typeof self == "object" && self && self.Object === Object && self, k = $t || Gt || Function("return this")(), ot = a && !a.nodeType && a, R = ot && !0 && r && !r.nodeType && r, st = R && R.exports === ot;
270
270
  function Bt(e, t) {
271
271
  return e.set(t[0], t[1]), e;
@@ -441,7 +441,7 @@ Lt.exports;
441
441
  }
442
442
  J.prototype.clear = or, J.prototype.delete = sr, J.prototype.get = ur, J.prototype.has = lr, J.prototype.set = fr;
443
443
  function Re(e, t) {
444
- var i = et(e) || Fe(e) ? Ne(e.length, String) : [], f = i.length, b = !!f;
444
+ var i = et(e) || xe(e) ? Ne(e.length, String) : [], f = i.length, b = !!f;
445
445
  for (var v in e)
446
446
  ie.call(e, v) && !(b && (v == "length" || Sr(v, f))) && i.push(v);
447
447
  return i;
@@ -472,7 +472,7 @@ Lt.exports;
472
472
  } else {
473
473
  var C = ce(e), q = C == g || C == _;
474
474
  if (Et(e))
475
- return xe(e, t);
475
+ return Fe(e, t);
476
476
  if (C == D || C == o || q && !v) {
477
477
  if ($e(e))
478
478
  return v ? e : {};
@@ -518,7 +518,7 @@ Lt.exports;
518
518
  ie.call(e, i) && i != "constructor" && t.push(i);
519
519
  return t;
520
520
  }
521
- function xe(e, t) {
521
+ function Fe(e, t) {
522
522
  if (t)
523
523
  return e.slice();
524
524
  var i = new e.constructor(e.length);
@@ -620,7 +620,7 @@ Lt.exports;
620
620
  case de:
621
621
  case p:
622
622
  case y:
623
- case F:
623
+ case x:
624
624
  case pe:
625
625
  case ge:
626
626
  return br(e, f);
@@ -629,7 +629,7 @@ Lt.exports;
629
629
  case O:
630
630
  case m:
631
631
  return new b(e);
632
- case x:
632
+ case F:
633
633
  return At(e);
634
634
  case A:
635
635
  return vr(e, f, i);
@@ -670,7 +670,7 @@ Lt.exports;
670
670
  function jt(e, t) {
671
671
  return e === t || e !== e && t !== t;
672
672
  }
673
- function Fe(e) {
673
+ function xe(e) {
674
674
  return Cr(e) && ie.call(e, "callee") && (!vt.call(e, "callee") || Oe.call(e) == o);
675
675
  }
676
676
  var et = Array.isArray;
@@ -706,11 +706,11 @@ Lt.exports;
706
706
  }
707
707
  r.exports = St;
708
708
  })(Lt, Lt.exports);
709
- var Zr = Lt.exports, xt = { exports: {} };
710
- xt.exports;
709
+ var Zr = Lt.exports, Ft = { exports: {} };
710
+ Ft.exports;
711
711
  (function(r, a) {
712
- var n = 200, u = "__lodash_hash_undefined__", l = 1, o = 2, s = 9007199254740991, c = "[object Arguments]", h = "[object Array]", d = "[object AsyncFunction]", g = "[object Boolean]", _ = "[object Date]", T = "[object Error]", O = "[object Function]", D = "[object GeneratorFunction]", L = "[object Map]", x = "[object Number]", A = "[object Null]", m = "[object Object]", j = "[object Promise]", M = "[object Proxy]", I = "[object RegExp]", w = "[object Set]", U = "[object String]", z = "[object Symbol]", je = "[object Undefined]", de = "[object WeakMap]", p = "[object ArrayBuffer]", y = "[object DataView]", F = "[object Float32Array]", pe = "[object Float64Array]", ge = "[object Int8Array]", Ee = "[object Int16Array]", Ut = "[object Int32Array]", Ht = "[object Uint8Array]", Nt = "[object Uint8ClampedArray]", P = "[object Uint16Array]", $t = "[object Uint32Array]", Gt = /[\\^$.*+?()[\]{}|]/g, k = /^\[object .+?Constructor\]$/, ot = /^(?:0|[1-9]\d*)$/, R = {};
713
- R[F] = R[pe] = R[ge] = R[Ee] = R[Ut] = R[Ht] = R[Nt] = R[P] = R[$t] = !0, R[c] = R[h] = R[p] = R[g] = R[y] = R[_] = R[T] = R[O] = R[L] = R[x] = R[m] = R[I] = R[w] = R[U] = R[de] = !1;
712
+ var n = 200, u = "__lodash_hash_undefined__", l = 1, o = 2, s = 9007199254740991, c = "[object Arguments]", h = "[object Array]", d = "[object AsyncFunction]", g = "[object Boolean]", _ = "[object Date]", T = "[object Error]", O = "[object Function]", D = "[object GeneratorFunction]", L = "[object Map]", F = "[object Number]", A = "[object Null]", m = "[object Object]", j = "[object Promise]", M = "[object Proxy]", I = "[object RegExp]", w = "[object Set]", U = "[object String]", z = "[object Symbol]", je = "[object Undefined]", de = "[object WeakMap]", p = "[object ArrayBuffer]", y = "[object DataView]", x = "[object Float32Array]", pe = "[object Float64Array]", ge = "[object Int8Array]", Ee = "[object Int16Array]", Ut = "[object Int32Array]", Ht = "[object Uint8Array]", Nt = "[object Uint8ClampedArray]", P = "[object Uint16Array]", $t = "[object Uint32Array]", Gt = /[\\^$.*+?()[\]{}|]/g, k = /^\[object .+?Constructor\]$/, ot = /^(?:0|[1-9]\d*)$/, R = {};
713
+ R[x] = R[pe] = R[ge] = R[Ee] = R[Ut] = R[Ht] = R[Nt] = R[P] = R[$t] = !0, R[c] = R[h] = R[p] = R[g] = R[y] = R[_] = R[T] = R[O] = R[L] = R[F] = R[m] = R[I] = R[w] = R[U] = R[de] = !1;
714
714
  var st = typeof W == "object" && W && W.Object === Object && W, Bt = typeof self == "object" && self && self.Object === Object && self, ee = st || Bt || Function("return this")(), ut = a && !a.nodeType && a, lt = ut && !0 && r && !r.nodeType && r, He = lt && lt.exports === ut, Ne = He && st.process, ft = function() {
715
715
  try {
716
716
  return Ne && Ne.binding && Ne.binding("util");
@@ -816,21 +816,21 @@ xt.exports;
816
816
  this.__data__ = [], this.size = 0;
817
817
  }
818
818
  function rr(e) {
819
- var t = this.__data__, i = xe(t, e);
819
+ var t = this.__data__, i = Fe(t, e);
820
820
  if (i < 0)
821
821
  return !1;
822
822
  var f = t.length - 1;
823
823
  return i == f ? t.pop() : ye.call(t, i, 1), --this.size, !0;
824
824
  }
825
825
  function nr(e) {
826
- var t = this.__data__, i = xe(t, e);
826
+ var t = this.__data__, i = Fe(t, e);
827
827
  return i < 0 ? void 0 : t[i][1];
828
828
  }
829
829
  function ir(e) {
830
- return xe(this.__data__, e) > -1;
830
+ return Fe(this.__data__, e) > -1;
831
831
  }
832
832
  function ar(e, t) {
833
- var i = this.__data__, f = xe(i, e);
833
+ var i = this.__data__, f = Fe(i, e);
834
834
  return f < 0 ? (++this.size, i.push([e, t])) : i[f][1] = t, this;
835
835
  }
836
836
  K.prototype.clear = tr, K.prototype.delete = rr, K.prototype.get = nr, K.prototype.has = ir, K.prototype.set = ar;
@@ -904,7 +904,7 @@ xt.exports;
904
904
  }
905
905
  ae.prototype.clear = Ze, ae.prototype.delete = cr, ae.prototype.get = hr, ae.prototype.has = dr, ae.prototype.set = pr;
906
906
  function gr(e, t) {
907
- var i = Fe(e), f = !i && jt(e), b = !i && !f && Ue(e), v = !i && !f && !b && Ot(e), E = i || f || b || v, S = E ? zt(e.length, String) : [], H = S.length;
907
+ var i = xe(e), f = !i && jt(e), b = !i && !f && Ue(e), v = !i && !f && !b && Ot(e), E = i || f || b || v, S = E ? zt(e.length, String) : [], H = S.length;
908
908
  for (var C in e)
909
909
  V.call(e, C) && !(E && // Safari 9 has enumerable `arguments.length` in strict mode.
910
910
  (C == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -913,7 +913,7 @@ xt.exports;
913
913
  wr(C, H))) && S.push(C);
914
914
  return S;
915
915
  }
916
- function xe(e, t) {
916
+ function Fe(e, t) {
917
917
  for (var i = e.length; i--; )
918
918
  if (St(e[i][0], t))
919
919
  return i;
@@ -921,7 +921,7 @@ xt.exports;
921
921
  }
922
922
  function Ve(e, t, i) {
923
923
  var f = t(e);
924
- return Fe(e) ? f : Ge(f, i(e));
924
+ return xe(e) ? f : Ge(f, i(e));
925
925
  }
926
926
  function Ae(e) {
927
927
  return e == null ? e === void 0 ? je : A : te && te in Object(e) ? ce(e) : wt(e);
@@ -933,7 +933,7 @@ xt.exports;
933
933
  return e === t ? !0 : e == null || t == null || !se(e) && !se(t) ? e !== e && t !== t : vr(e, t, i, f, At, b);
934
934
  }
935
935
  function vr(e, t, i, f, b, v) {
936
- var E = Fe(e), S = Fe(t), H = E ? h : oe(e), C = S ? h : oe(t);
936
+ var E = xe(e), S = xe(t), H = E ? h : oe(e), C = S ? h : oe(t);
937
937
  H = H == c ? m : H, C = C == c ? m : C;
938
938
  var q = H == m, X = C == m, N = H == C;
939
939
  if (N && Ue(e)) {
@@ -1012,7 +1012,7 @@ xt.exports;
1012
1012
  return !(e.byteLength != t.byteLength || !v(new _t(e), new _t(t)));
1013
1013
  case g:
1014
1014
  case _:
1015
- case x:
1015
+ case F:
1016
1016
  return St(+e, +t);
1017
1017
  case T:
1018
1018
  return e.name == t.name && e.message == t.message;
@@ -1148,7 +1148,7 @@ xt.exports;
1148
1148
  return arguments;
1149
1149
  }()) ? Tt : function(e) {
1150
1150
  return se(e) && V.call(e, "callee") && !De.call(e, "callee");
1151
- }, Fe = Array.isArray;
1151
+ }, xe = Array.isArray;
1152
1152
  function et(e) {
1153
1153
  return e != null && tt(e.length) && !Et(e);
1154
1154
  }
@@ -1183,16 +1183,16 @@ xt.exports;
1183
1183
  return !1;
1184
1184
  }
1185
1185
  r.exports = Cr;
1186
- })(xt, xt.exports);
1187
- var Vr = xt.exports, Hr = {}, kr = W && W.__importDefault || function(r) {
1186
+ })(Ft, Ft.exports);
1187
+ var Vr = Ft.exports, Hr = {}, kr = W && W.__importDefault || function(r) {
1188
1188
  return r && r.__esModule ? r : { default: r };
1189
1189
  };
1190
1190
  Object.defineProperty(Hr, "__esModule", { value: !0 });
1191
- var mn = kr(Zr), Tn = kr(Vr), xr;
1191
+ var yn = kr(Zr), mn = kr(Vr), Fr;
1192
1192
  (function(r) {
1193
1193
  function a(o, s, c) {
1194
1194
  o === void 0 && (o = {}), s === void 0 && (s = {}), typeof o != "object" && (o = {}), typeof s != "object" && (s = {});
1195
- var h = mn.default(s);
1195
+ var h = yn.default(s);
1196
1196
  c || (h = Object.keys(h).reduce(function(g, _) {
1197
1197
  return h[_] != null && (g[_] = h[_]), g;
1198
1198
  }, {}));
@@ -1204,7 +1204,7 @@ var mn = kr(Zr), Tn = kr(Vr), xr;
1204
1204
  function n(o, s) {
1205
1205
  o === void 0 && (o = {}), s === void 0 && (s = {}), typeof o != "object" && (o = {}), typeof s != "object" && (s = {});
1206
1206
  var c = Object.keys(o).concat(Object.keys(s)).reduce(function(h, d) {
1207
- return Tn.default(o[d], s[d]) || (h[d] = s[d] === void 0 ? null : s[d]), h;
1207
+ return mn.default(o[d], s[d]) || (h[d] = s[d] === void 0 ? null : s[d]), h;
1208
1208
  }, {});
1209
1209
  return Object.keys(c).length > 0 ? c : void 0;
1210
1210
  }
@@ -1232,10 +1232,10 @@ var mn = kr(Zr), Tn = kr(Vr), xr;
1232
1232
  }
1233
1233
  }
1234
1234
  r.transform = l;
1235
- })(xr || (xr = {}));
1236
- Hr.default = xr;
1235
+ })(Fr || (Fr = {}));
1236
+ Hr.default = Fr;
1237
1237
  var Dt = {}, Pt = {}, zr;
1238
- function An() {
1238
+ function Tn() {
1239
1239
  if (zr)
1240
1240
  return Pt;
1241
1241
  zr = 1;
@@ -1290,7 +1290,7 @@ function en() {
1290
1290
  return u && u.__esModule ? u : { default: u };
1291
1291
  };
1292
1292
  Object.defineProperty(Dt, "__esModule", { value: !0 });
1293
- var a = r(An()), n;
1293
+ var a = r(Tn()), n;
1294
1294
  return function(u) {
1295
1295
  function l(s) {
1296
1296
  return new a.default(s);
@@ -1304,7 +1304,7 @@ function en() {
1304
1304
  }
1305
1305
  var at = W && W.__importDefault || function(r) {
1306
1306
  return r && r.__esModule ? r : { default: r };
1307
- }, Rt = at(yn), wn = at(Zr), Lr = at(Vr), nt = at(Hr), B = at(en()), Sn = "\0", jn = (
1307
+ }, Rt = at(bn), An = at(Zr), Lr = at(Vr), nt = at(Hr), B = at(en()), wn = "\0", Sn = (
1308
1308
  /** @class */
1309
1309
  function() {
1310
1310
  function r(a) {
@@ -1322,7 +1322,7 @@ var at = W && W.__importDefault || function(r) {
1322
1322
  return n != null && typeof n == "object" && Object.keys(n).length > 0 && (u.attributes = n), this.push(u);
1323
1323
  }, r.prototype.push = function(a) {
1324
1324
  var n = this.ops.length, u = this.ops[n - 1];
1325
- if (a = wn.default(a), typeof u == "object") {
1325
+ if (a = An.default(a), typeof u == "object") {
1326
1326
  if (typeof a.delete == "number" && typeof u.delete == "number")
1327
1327
  return this.ops[n - 1] = { delete: u.delete + a.delete }, this;
1328
1328
  if (typeof u.delete == "number" && a.insert != null && (n -= 1, u = this.ops[n - 1], typeof u != "object"))
@@ -1402,7 +1402,7 @@ var at = W && W.__importDefault || function(r) {
1402
1402
  var u = [this, a].map(function(h) {
1403
1403
  return h.map(function(d) {
1404
1404
  if (d.insert != null)
1405
- return typeof d.insert == "string" ? d.insert : Sn;
1405
+ return typeof d.insert == "string" ? d.insert : wn;
1406
1406
  var g = h === a ? "on" : "with";
1407
1407
  throw new Error("diff() called " + g + " non-document");
1408
1408
  }).join("");
@@ -1490,8 +1490,8 @@ var at = W && W.__importDefault || function(r) {
1490
1490
  return a;
1491
1491
  }, r.Op = B.default, r.AttributeMap = nt.default, r;
1492
1492
  }()
1493
- ), En = jn;
1494
- const Cn = /* @__PURE__ */ ln(En);
1493
+ ), jn = Sn;
1494
+ const En = /* @__PURE__ */ ln(jn);
1495
1495
  /*!
1496
1496
  * VueQuill @vueup/vue-quill v1.2.0
1497
1497
  * https://vueup.github.io/vue-quill/
@@ -1533,7 +1533,7 @@ const qr = {
1533
1533
  ["clean"]
1534
1534
  // remove formatting button
1535
1535
  ]
1536
- }, On = tn({
1536
+ }, Cn = tn({
1537
1537
  name: "QuillEditor",
1538
1538
  inheritAttrs: !1,
1539
1539
  props: {
@@ -1620,11 +1620,11 @@ const qr = {
1620
1620
  })()
1621
1621
  }), r.modules) {
1622
1622
  const y = (() => {
1623
- var F, pe;
1623
+ var x, pe;
1624
1624
  const ge = {};
1625
1625
  if (Array.isArray(r.modules))
1626
1626
  for (const Ee of r.modules)
1627
- ge[Ee.name] = (F = Ee.options) !== null && F !== void 0 ? F : {};
1627
+ ge[Ee.name] = (x = Ee.options) !== null && x !== void 0 ? x : {};
1628
1628
  else
1629
1629
  ge[r.modules.name] = (pe = r.modules.options) !== null && pe !== void 0 ? pe : {};
1630
1630
  return ge;
@@ -1642,10 +1642,10 @@ const qr = {
1642
1642
  return !h(d.diff(p));
1643
1643
  }
1644
1644
  return !1;
1645
- }, _ = (p, y, F) => {
1646
- d = c(m()), g(r.content) || a.emit("update:content", d), a.emit("textChange", { delta: p, oldContents: y, source: F });
1647
- }, T = $r(), O = (p, y, F) => {
1648
- T.value = !!(n != null && n.hasFocus()), a.emit("selectionChange", { range: p, oldRange: y, source: F });
1645
+ }, _ = (p, y, x) => {
1646
+ d = c(m()), g(r.content) || a.emit("update:content", d), a.emit("textChange", { delta: p, oldContents: y, source: x });
1647
+ }, T = $r(), O = (p, y, x) => {
1648
+ T.value = !!(n != null && n.hasFocus()), a.emit("selectionChange", { range: p, oldRange: y, source: x });
1649
1649
  };
1650
1650
  Ir(T, (p) => {
1651
1651
  p ? a.emit("focus", l) : a.emit("blur", l);
@@ -1662,7 +1662,7 @@ const qr = {
1662
1662
  oldRange: p[2],
1663
1663
  source: p[3]
1664
1664
  });
1665
- }, L = () => l.value, x = () => {
1665
+ }, L = () => l.value, F = () => {
1666
1666
  var p;
1667
1667
  return (p = n == null ? void 0 : n.getModule("toolbar")) === null || p === void 0 ? void 0 : p.container;
1668
1668
  }, A = () => {
@@ -1672,11 +1672,11 @@ const qr = {
1672
1672
  make sure to call this method when the editor ready
1673
1673
  or use v-on:ready="onReady(quill)" event instead.`;
1674
1674
  }, m = (p, y) => r.contentType === "html" ? w() : r.contentType === "text" ? M(p, y) : n == null ? void 0 : n.getContents(p, y), j = (p, y = "api") => {
1675
- const F = p || (r.contentType === "delta" ? new Cn() : "");
1676
- r.contentType === "html" ? U(F) : r.contentType === "text" ? I(F, y) : n == null || n.setContents(F, y), d = c(F);
1675
+ const x = p || (r.contentType === "delta" ? new En() : "");
1676
+ r.contentType === "html" ? U(x) : r.contentType === "text" ? I(x, y) : n == null || n.setContents(x, y), d = c(x);
1677
1677
  }, M = (p, y) => {
1678
- var F;
1679
- return (F = n == null ? void 0 : n.getText(p, y)) !== null && F !== void 0 ? F : "";
1678
+ var x;
1679
+ return (x = n == null ? void 0 : n.getText(p, y)) !== null && x !== void 0 ? x : "";
1680
1680
  }, I = (p, y = "api") => {
1681
1681
  n == null || n.setText(p, y);
1682
1682
  }, w = () => {
@@ -1685,8 +1685,8 @@ const qr = {
1685
1685
  }, U = (p) => {
1686
1686
  n && (n.root.innerHTML = p);
1687
1687
  }, z = (p, y = "api") => {
1688
- const F = n == null ? void 0 : n.clipboard.convert(p);
1689
- F && (n == null || n.setContents(F, y));
1688
+ const x = n == null ? void 0 : n.clipboard.convert(p);
1689
+ x && (n == null || n.setContents(x, y));
1690
1690
  }, je = () => {
1691
1691
  n == null || n.focus();
1692
1692
  }, de = () => {
@@ -1705,7 +1705,7 @@ const qr = {
1705
1705
  }), {
1706
1706
  editor: l,
1707
1707
  getEditor: L,
1708
- getToolbar: x,
1708
+ getToolbar: F,
1709
1709
  getQuill: A,
1710
1710
  getContents: m,
1711
1711
  setContents: j,
@@ -1725,7 +1725,7 @@ const qr = {
1725
1725
  an("div", { ref: "editor", ...this.$attrs })
1726
1726
  ];
1727
1727
  }
1728
- }), Mn = {
1728
+ }), Pn = {
1729
1729
  __name: "RichTextEditor",
1730
1730
  setup(r) {
1731
1731
  var a = [
@@ -1752,11 +1752,11 @@ const qr = {
1752
1752
  ["link", "image"]
1753
1753
  ], s = {
1754
1754
  name: "imageUploader",
1755
- module: dn,
1755
+ module: hn,
1756
1756
  options: {
1757
1757
  upload: (c) => new Promise((h, d) => {
1758
1758
  const g = new FormData();
1759
- g.append("image", c), cn.post(hn().imageUploadUrl, g, {}).then((_) => {
1759
+ g.append("image", c), fn.post(cn().imageUploadUrl, g, {}).then((_) => {
1760
1760
  h(_.data.data.imageUrl);
1761
1761
  }).catch(() => {
1762
1762
  d("Upload failed");
@@ -1764,14 +1764,14 @@ const qr = {
1764
1764
  })
1765
1765
  }
1766
1766
  };
1767
- return (c, h) => (on(), sn(un(On), {
1767
+ return (c, h) => (on(), sn(un(Cn), {
1768
1768
  modules: s,
1769
1769
  toolbar: o,
1770
1770
  "content-type": "html"
1771
1771
  }));
1772
1772
  }
1773
- }, Ln = /* @__PURE__ */ fn(Mn, [["__scopeId", "data-v-5cde9ea3"]]);
1773
+ };
1774
1774
  export {
1775
- Ln as default
1775
+ Pn as default
1776
1776
  };
1777
- //# sourceMappingURL=RichTextEditor-Dh8cGcyh.js.map
1777
+ //# sourceMappingURL=RichTextEditor-D9N7Cft4.js.map