@jt-home/mfe-components 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/JtAttachmentPreview/index.cjs +1 -1
- package/dist/JtAttachmentPreview/index.mjs +1 -1
- package/dist/{index-CJ-FBMPc.js → index-CTj7lrC9.js} +437 -823
- package/dist/index-CgZdzYF1.cjs +1 -0
- package/dist/index.cjs +2 -48
- package/dist/index.mjs +2723 -23528
- package/dist/style.css +1 -1
- package/package.json +24 -23
- package/readme.md +694 -694
- package/dist/index-BDvJpmrM.cjs +0 -1
package/dist/index-BDvJpmrM.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),S=require("element-plus"),se={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"PDF.js 无法读取该文件,已切换为浏览器内置预览",PDF加载中___:"PDF 加载中...",PDF加载失败:"PDF 加载失败",上传:"上 传",下载:"下载",保存:"保存",信息:"信息","信息集不能为空,最后一条数据不可删除":"信息集不能为空,最后一条数据不可删除",共:"共","共{total}条记录":"共 {total} 条记录",关闭:"关闭",删除:"删除",加载中___:"加载中...",取消:"取消",否:"否",复位:"复位",展开:"展 开",序号:"序号",开始日期:"开始日期",接口请求失败:"接口请求失败",操作:"操作",收起:"收 起",放大:"放大",文件信息缺少URL:"文件信息缺少 URL",文件信息获取失败:"文件信息获取失败",新增:"新增",是:"是",暂不支持预览此类型的文件:"暂不支持预览此类型的文件",暂无数据:"暂无数据",暂无附件:"暂无附件",未命名标题:"未命名标题",条记录:"条记录",查询:"查 询",正在获取文件信息:"正在获取文件信息",正在识别文件类型:"正在识别文件类型",目录:"目录",确认:"确认","确认删除吗?":"确认删除吗?",结束日期:"结束日期",编辑:"编辑",缩小:"缩小",请先调用setupJtAttachmentPreview注册请求配置:"请先调用 setupJtAttachmentPreview 注册请求配置",请检查mapResponse是否返回了url字段:"请检查 mapResponse 是否返回了 url 字段","请稍候,获取完成后将自动预览或下载":"请稍候,获取完成后将自动预览或下载","请稍候,识别完成后将自动预览或下载":"请稍候,识别完成后将自动预览或下载",请输入:"请输入",请输入关键词:"请输入关键词",请选择:"请选择",请选择文件:"请选择文件",请选择日期:"请选择日期",重置:"重 置",附件预览:"附件预览",附件预览未初始化:"附件预览未初始化"}},me={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"PDF.js cannot read the file. It has been switched to browser built-in preview",PDF加载中___:"PDF loading...",PDF加载失败:"PDF loading failed",上传:"upload",下载:"download",保存:"save",信息:"information","信息集不能为空,最后一条数据不可删除":"The information set cannot be empty, and the last piece of data cannot be deleted",共:"total of","共{total}条记录":"Total {total} records",关闭:"closed",删除:"delete",加载中___:"Loading...",取消:"cancel",否:"no",复位:"reset",展开:"commence",序号:"serial number",开始日期:"start date",接口请求失败:"Interface request failed",操作:"operation",收起:"put away",放大:"enlarged",文件信息缺少URL:"File information missing URL",文件信息获取失败:"Failed to obtain file information",新增:"new",是:"is",暂不支持预览此类型的文件:"Preview of this type of file is not currently supported",暂无数据:"no data",暂无附件:"No attachments",未命名标题:"Unnamed title",条记录:"records",查询:"enquiries",正在获取文件信息:"Getting file information",正在识别文件类型:"Identifying file type",目录:"directory",确认:"confirmed","确认删除吗?":"Confirm deletion?",结束日期:"end date",编辑:"edit",缩小:"narrow",请先调用setupJtAttachmentPreview注册请求配置:"Please first call setupJtAttachmentPreview to register request configuration",请检查mapResponse是否返回了url字段:"Please check whether the mapResponse returns the url field","请稍候,获取完成后将自动预览或下载":"Please wait, it will be automatically previewed or downloaded after the acquisition is completed","请稍候,识别完成后将自动预览或下载":"Please wait, it will be automatically previewed or downloaded after identification is completed",请输入:"please enter",请输入关键词:"Please enter keywords",请选择:"please select",请选择文件:"please select a file",请选择日期:"please add your dates",重置:"reset",附件预览:"Attachment Preview",附件预览未初始化:"Attachment preview not initialized"}},de={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"PDF.js ไม่สามารถอ่านไฟล์ได้ เปลี่ยนเป็นตัวอย่างในตัวเบราว์เซอร์",PDF加载中___:"กําลังโหลดไฟล์ PDF ...",PDF加载失败:"โหลด PDF ล้มเหลว",上传:"อัปโหลด",下载:"โหลดข้อมูล",保存:"บันทึก",信息:"ข้อมูล","信息集不能为空,最后一条数据不可删除":"ชุดข้อมูลไม่สามารถว่างเปล่าได้ ข้อมูลสุดท้ายไม่สามารถลบได้",共:"รวมทั้งหมด","共{total}条记录":"ทั้งหมด {total} รายการ",关闭:"ปิด",删除:"ลบ",加载中___:"กําลังโหลด ...",取消:"ยกเลิก",否:"ไม่ ไม่",复位:"รีเซ็ต (รีเซ็ต)",展开:"เ ป็ น เ รื่ อ ง",序号:"หมายเลขซีเรียล",开始日期:"วันที่เริ่มต้น",接口请求失败:"การร้องขออินเทอร์เฟซล้มเหลว",操作:"การดําเนินงาน",收起:"รีบเก็บ",放大:"ขยาย",文件信息缺少URL:"ข้อมูลไฟล์หายไป URL",文件信息获取失败:"ล้มเหลวในการรับข้อมูลไฟล์",新增:"เพิ่มใหม่",是:"ใช่ ใช่",暂不支持预览此类型的文件:"การแสดงตัวอย่างของไฟล์ประเภทนี้ไม่ได้รับการสนับสนุน",暂无数据:"ข้อมูลที่ไม่มี",暂无附件:"ไม่มีสิ่งที่แนบมา",未命名标题:"ชื่อที่ไม่มีชื่อ",条记录:"บันทึก",查询:"สอบถามข้อมูล",正在获取文件信息:"กําลังรับข้อมูลไฟล์",正在识别文件类型:"กําลังระบุประเภทของไฟล์",目录:"แคตตาล็อก",确认:"การยืนยัน","确认删除吗?":"ยืนยันการลบหรือไม่?",结束日期:"วันที่สิ้นสุด",编辑:"แก้ไข",缩小:"ลดขนาด",请先调用setupJtAttachmentPreview注册请求配置:"โปรดเรียก setupJtAttachmentPreviewเพื่อขอการตั้งค่าลงทะเบียน",请检查mapResponse是否返回了url字段:"โปรดตรวจสอบว่า mapResponse ได้ส่งกลับฟิลด์ url หรือไม่","请稍候,获取完成后将自动预览或下载":"โปรดรอสักครู่ จะมีการแสดงตัวอย่างหรือดาวน์โหลดโดยอัตโนมัติเมื่อได้รับเสร็จสมบูรณ์","请稍候,识别完成后将自动预览或下载":"โปรดรอสักครู่ การแสดงตัวอย่างหรือดาวน์โหลดจะดําเนินการโดยอัตโนมัติเมื่อการระบุเสร็จสมบูรณ์",请输入:"กรุณาใส่",请输入关键词:"กรุณาใส่คําหลัก",请选择:"กรุณาเลือก",请选择文件:"กรุณาเลือกไฟล์",请选择日期:"กรุณาเลือกวันที่",重置:"รีเซ็ต",附件预览:"เอกสารแนบตัวอย่าง",附件预览未初始化:"การแสดงตัวอย่างของสิ่งที่แนบมาไม่ได้เริ่มต้น"}},ue={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"PDF.js không thể đọc tập tin, đã chuyển sang trình duyệt built-in xem trước",PDF加载中___:"Đang tải PDF...",PDF加载失败:"Nạp PDF thất bại",上传:"tải lên / tải lên",下载:"Tải xuống đây",保存:"Lưu lại (Lưu lại)",信息:"thông tin / thông tin / thông tin","信息集不能为空,最后一条数据不可删除":"Bộ thông tin không thể trống, dữ liệu cuối cùng không thể bị xóa",共:"tổng cộng","共{total}条记录":"Tổng {total} bản ghi",关闭:"Đóng cửa đi",删除:"Xóa bỏ nó đi",加载中___:"Đang tải...",取消:"Hủy bỏ nó đi",否:"Không, không, không, không",复位:"Đặt lại vị trí",展开:"mở ra / mở ra",序号:"số sê-ri / số sê-ri",开始日期:"Ngày bắt đầu",接口请求失败:"Yêu cầu giao diện không thành công",操作:"hoạt động / hoạt động",收起:"thu thập lại / thu thập lại",放大:"Tự phóng to lên",文件信息缺少URL:"Thiếu URL thông tin tệp",文件信息获取失败:"Lấy thông tin tệp không thành công",新增:"Thêm thêm",是:"Phải, phải, phải",暂不支持预览此类型的文件:"Xem trước kiểu tệp này không được hỗ trợ",暂无数据:"tạm thời không có dữ liệu",暂无附件:"tạm thời không có đính kèm",未命名标题:"Tiêu đề không được đặt tên",条记录:"một bản ghi chép / một bản ghi chép",查询:"tra vấn / tra vấn / tra vấn / tra vấn",正在获取文件信息:"Đang lấy thông tin tệp",正在识别文件类型:"Đang nhận dạng loại tệp",目录:"Danh mục hàng đầu",确认:"xác nhận / xác nhận / xác nhận","确认删除吗?":"Bạn có xác nhận xóa không?",结束日期:"Ngày kết thúc",编辑:"Sửa đổi (edit)",缩小:"thu hẹp lại",请先调用setupJtAttachmentPreview注册请求配置:"Vui lòng gọi setupJtAttachmentPreview để đăng ký yêu cầu cấu hình",请检查mapResponse是否返回了url字段:"Hãy kiểm tra xem mapResponse có trả về trường url không","请稍候,获取完成后将自动预览或下载":"Vui lòng chờ đợi, khi lấy xong sẽ tự động xem trước hoặc tải xuống","请稍候,识别完成后将自动预览或下载":"Vui lòng chờ đợi, xem trước hoặc tải xuống sẽ tự động khi nhận dạng hoàn tất",请输入:"Vui lòng nhập vào",请输入关键词:"Vui lòng nhập từ khóa",请选择:"Vui lòng chọn",请选择文件:"Vui lòng chọn tập tin",请选择日期:"Vui lòng chọn ngày",重置:"Đặt lại nó",附件预览:"Xem trước tệp đính kèm",附件预览未初始化:"Bản xem trước đính kèm không được khởi tạo"}},pe={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"PDF.js no puede leer este archivo, cambió a la vista previa integrada del navegador",PDF加载中___:"Carga de PDF...",PDF加载失败:"PDF carga fallida",上传:"Upload",下载:"Download",保存:"Preservación",信息:"Información","信息集不能为空,最后一条数据不可删除":"El conjunto de información no puede estar vacío, el último elemento de datos no se puede eliminar.",共:"Total","共{total}条记录":"Total {total} registros",关闭:"Cierre",删除:"Eliminación",加载中___:"Loading...",取消:"Cancelación",否:"no",复位:"Reset",展开:"Expandir",序号:"Número de serie",开始日期:"Fecha de inicio",接口请求失败:"Solicitud de interfaz fallida",操作:"Operaciones",收起:"Colección",放大:"Ampliar",文件信息缺少URL:"Falta URL para la información del archivo",文件信息获取失败:"Error en la obtención de información del archivo",新增:"Añadir",是:"Sí.",暂不支持预览此类型的文件:"La vista previa de este tipo de archivo no es compatible",暂无数据:"No hay datos",暂无附件:"No hay anexo",未命名标题:"Título sin nombre",条记录:"Strip registro",查询:"Inquesta",正在获取文件信息:"Obtención de información de archivo",正在识别文件类型:"Identificación del tipo de archivo",目录:"Catálogo",确认:"Validación","确认删除吗?":"¿Confirmas la eliminación?",结束日期:"Fecha final",编辑:"Edición",缩小:"Reducción",请先调用setupJtAttachmentPreview注册请求配置:"Llame a setupJtAttachmentPreview para registrar la configuración de la solicitud",请检查mapResponse是否返回了url字段:"Compruebe que mapResponse devuelve el campo url","请稍候,获取完成后将自动预览或下载":"Por favor espere, la vista previa o descarga se realizará automáticamente cuando se complete la adquisición","请稍候,识别完成后将自动预览或下载":"Por favor espere, la vista previa o descarga se realizará automáticamente cuando se complete el reconocimiento.",请输入:"Por favor, ingrese",请输入关键词:"Por favor, introduzca palabras clave",请选择:"Por favor seleccione",请选择文件:"Seleccione un archivo",请选择日期:"Seleccione la fecha",重置:"Reset",附件预览:"Anexo Preview",附件预览未初始化:"Anexo Preview no inicializado"}},he={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"PDF.js tidak dapat membaca file ini, telah beralih ke pratinjau built-in browser",PDF加载中___:"PDF sedang memuat...",PDF加载失败:"Gagal memuat PDF",上传:"Upload",下载:"Download",保存:"Penyimpanan",信息:"Informasi:","信息集不能为空,最后一条数据不可删除":"Set informasi tidak dapat kosong, data terakhir tidak dapat dihapus, dan data terakhir tidak dapat dihapus.",共:"bersama-sama","共{total}条记录":"Total {total} catatan",关闭:"Penutupan",删除:"Penghapusan",加载中___:"sedang dimuat...",取消:"Pembatalan",否:"Tidak",复位:"Reset",展开:"membuka.",序号:"nomor seri",开始日期:"Tanggal Mulai",接口请求失败:"Permintaan antarmuka gagal",操作:"Operasi",收起:"Mengumpulkan.",放大:"Memperbesar",文件信息缺少URL:"Informasi file tidak ada URL",文件信息获取失败:"Gagal mendapatkan informasi file",新增:"Tambahan baru",是:"Ya, ya, ya, ya, ya.",暂不支持预览此类型的文件:"Pratinjau jenis file ini tidak didukung untuk saat ini",暂无数据:"Tidak ada data untuk saat ini",暂无附件:"Tidak ada lampiran untuk saat ini",未命名标题:"Judul yang tidak diberi nama",条记录:"Catatan-catatan",查询:"Penyelidikan",正在获取文件信息:"Mengambil informasi file",正在识别文件类型:"Mengidentifikasi jenis file",目录:"Katalog",确认:"Konfirmasi","确认删除吗?":"Confirm penghapusan?",结束日期:"Tanggal akhir",编辑:"Editorial:",缩小:"Mengurangi",请先调用setupJtAttachmentPreview注册请求配置:"Silakan panggil setupJtAttachmentPreview terlebih dahulu untuk mendaftarkan permintaan konfigurasi",请检查mapResponse是否返回了url字段:"Periksa apakah mapResponse mengembalikan bidang url.","请稍候,获取完成后将自动预览或下载":"Silakan tunggu sebentar, pratinjau atau unduhan akan dilakukan secara otomatis setelah mendapatkan selesai.","请稍候,识别完成后将自动预览或下载":"Silakan tunggu, pratinjau atau unduhan akan dilakukan secara otomatis setelah identifikasi selesai",请输入:"Silakan Masukkan",请输入关键词:"Silakan masukkan kata kunci",请选择:"Silakan pilih",请选择文件:"Silakan pilih file",请选择日期:"Silakan pilih tanggal",重置:"Reset Reset Reset",附件预览:"Lampiran Pratinjau",附件预览未初始化:"Lampiran Pratinjau tidak diinisialisasi Lampiran Pratinjau tidak diinisialisasi Lampiran Pratinjau tidak diinisialisasi Lampiran Pratinjau tidak diinisialisasi"}},fe={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"PDF.js kann die Datei nicht lesen, wurde auf die eingebaute Vorschau des Browsers umgeschaltet",PDF加载中___:"PDF wird geladen...",PDF加载失败:"PDF-Laden fehlgeschlagen",上传:"Übertragen.",下载:"Download",保存:"Bewahrung",信息:"Information","信息集不能为空,最后一条数据不可删除":"Der Datensatz kann nicht leer sein, die letzten Daten können nicht gelöscht werden.",共:"gemeinsam","共{total}条记录":"Insgesamt {total} Einträge",关闭:"Schließen",删除:"Löschen",加载中___:"geladen...",取消:"Absage",否:"Nein Nein",复位:"Wiederherstellung",展开:"Öffnen.",序号:"Seriennummern",开始日期:"Startdatum",接口请求失败:"Schnittstellenanforderung fehlgeschlagen",操作:"Operationen",收起:"Sammeln Sie",放大:"Vergrößern",文件信息缺少URL:"Die URL fehlt",文件信息获取失败:"Erfassung von Dokumentinformationen fehlgeschlagen",新增:"Neu hinzugefügt",是:"Ja, ja.",暂不支持预览此类型的文件:"Die Vorschau dieser Art von Dateien wird derzeit nicht unterstützt",暂无数据:"Vorläufig keine Daten",暂无附件:"Vorläufig kein Anhang",未命名标题:"Unbenannter Titel",条记录:"Artikel Aufzeichnungen",查询:"Nachfrage",正在获取文件信息:"Dokumentinformationen werden erfasst.",正在识别文件类型:"Dokumenttypen werden erkannt",目录:"Katalog",确认:"bestätigt","确认删除吗?":"Bestätigen Sie die Löschung?",结束日期:"Enddatum",编辑:"Herausgeber",缩小:"reduziert.",请先调用setupJtAttachmentPreview注册请求配置:"Bitte rufen Sie setupJtAttachmentPreview auf, um die Konfiguration anzufordern.",请检查mapResponse是否返回了url字段:"Bitte überprüfen Sie, ob mapResponse das URL-Feld zurückgibt.","请稍候,获取完成后将自动预览或下载":"Bitte warten Sie, sobald der Erwerb abgeschlossen ist, wird automatisch eine Vorschau oder Download angezeigt","请稍候,识别完成后将自动预览或下载":"Bitte warten Sie, sobald die Identifizierung abgeschlossen ist, wird automatisch eine Vorschau oder ein Download durchgeführt.",请输入:"Bitte importieren",请输入关键词:"Bitte geben Sie ein Schlüsselwort ein",请选择:"Bitte wählen",请选择文件:"Bitte wählen Sie ein Dokument",请选择日期:"Bitte Datum wählen",重置:"Ersetzen",附件预览:"Anhang Vorschau",附件预览未初始化:"Anlage Vorschau nicht initialisiert"}},ve={common:{"PDF_js无法读取该文件,已切换为浏览器内置预览":"O PDF.js não pode ler o arquivo, mudou para a visualização integrada do navegador",PDF加载中___:"PDF Carregando...",PDF加载失败:"PDF não foi carregado",上传:"upload",下载:"Download",保存:"Preservação",信息:"Informações","信息集不能为空,最后一条数据不可删除":"O conjunto de informações não pode estar vazio, o último item de dados não pode ser excluído",共:"Total","共{total}条记录":"Total de {total} registros",关闭:"Fechamento",删除:"Exclusão",加载中___:"Loading...",取消:"Cancelamento",否:"Não",复位:"Reset",展开:"Desdobramento",序号:"Número de série",开始日期:"Data de início",接口请求失败:"Solicitação de interface falhada",操作:"Operação",收起:"Vá em frente.",放大:"Magnificação",文件信息缺少URL:"URL faltando para informações de arquivo",文件信息获取失败:"Falha na aquisição de informações do arquivo",新增:"Novo",是:"Sim, sim.",暂不支持预览此类型的文件:"A visualização deste tipo de arquivo não é suportada no momento",暂无数据:"Nenhum dado temporário",暂无附件:"Nenhum anexo",未命名标题:"Título sem nome",条记录:"Registros",查询:"Inquérito",正在获取文件信息:"Obtenção de informações de arquivo",正在识别文件类型:"Identificação do tipo de arquivo",目录:"Catálogo",确认:"Confirmação","确认删除吗?":"Confirmo a remoção?",结束日期:"Data do fim",编辑:"Edição",缩小:"Reduzir",请先调用setupJtAttachmentPreview注册请求配置:"Por favor, primeiro chame setupJtAttachmentPreview para registrar a configuração da solicitação",请检查mapResponse是否返回了url字段:"Verifique se o mapaResponse está retornando o campo url","请稍候,获取完成后将自动预览或下载":"Por favor, espere, a pré - visualização ou o download será feito automaticamente quando a aquisição estiver concluída","请稍候,识别完成后将自动预览或下载":"Por favor, espere, a visualização ou o download será feito automaticamente quando o reconhecimento estiver concluído.",请输入:"Por favor, insira",请输入关键词:"Por favor, insira uma palavra chave",请选择:"Por favor, selecione",请选择文件:"Por favor, selecione um arquivo",请选择日期:"Por favor, escolha uma data",重置:"Reset",附件预览:"Anexo Preview",附件预览未初始化:"Anexo Preview não inicializado"}},we={},_e={"zh-cn":se,en:me,th:de,vi:ue,es:pe,id:he,de:fe,pt:ve,km:we},z=[{key:"zh",label:"简体中文",displayLabel:"简体中文",elementPlusLocale:"zh-cn"},{key:"en",label:"英语",displayLabel:"English",elementPlusLocale:"en"},{key:"th",label:"泰语",displayLabel:"ไทย",elementPlusLocale:"th"},{key:"vi",label:"越南语",displayLabel:"Tiếng Việt",elementPlusLocale:"vi"},{key:"pt",label:"葡萄牙语",displayLabel:"Português",elementPlusLocale:"pt"},{key:"id",label:"印尼语",displayLabel:"Bahasa Indonesia",elementPlusLocale:"id"},{key:"de",label:"德语",displayLabel:"Deutsch",elementPlusLocale:"de"},{key:"es",label:"西班牙语",displayLabel:"Español",elementPlusLocale:"es"},{key:"km",label:"柬埔寨语",displayLabel:"ភាសាខ្មែរ",elementPlusLocale:"km"}];Object.freeze(Object.fromEntries(z.map(e=>[e.key,e.elementPlusLocale])));const ge=Object.freeze({zh:"ZHS",en:"ENG",id:"IDN",pt:"POR",th:"THA",vi:"VIE",es:"ESP",de:"GER",km:"CAM"});Object.freeze(Object.fromEntries(Object.entries(ge).map(([e,a])=>[a,e])));function ke(e,a={}){const n=a.fallback??"zh",r=ye(a.languageList),o=e.toLowerCase();return r.find(l=>l.key===o)??r.find(l=>l.key===n)??z[0]}function be(e,a={}){return ke(e,a).elementPlusLocale}function ye(e){return e!=null&&e.length?e.map(a=>{const n=a.key??a.value,r=z.find(o=>o.key===n)??z[0];return{...r,...a,key:r.key,elementPlusLocale:a.elementPlusLocale??r.elementPlusLocale}}):z}const xe={"zh-hans":"zh","zh-cn":"zh",cn:"zh","en-us":"en","th-th":"th","vi-vn":"vi","es-es":"es","id-id":"id","de-de":"de","pt-pt":"pt","pt-br":"pt","km-kh":"km"};function R(e){const a=String(e||"zh-cn").trim().toLowerCase().replace(/_/g,"-");return be(xe[a]||a)||"zh-cn"}const A=t.ref("zh-cn");let U;function H(){U?.(),U=void 0}function X(e){return e?typeof e=="function"?R(e()):t.isRef(e)?R(e.value):R(e):A.value}function Ee(e,a){if(e)return a.split(".").reduce((n,r)=>{if(!(!n||typeof n!="object"))return n[r]},e)}function Z(e,a){const n=Ee(_e[e],a);return typeof n=="string"?n:void 0}function Be(e,a){return a?e.replace(/\{(\w+)\}/g,(n,r)=>{const o=a[r];return o==null?n:String(o)}):e}function Le(e){H(),A.value=R(e)}function Pe(){return A.value}function Ce(){H(),A.value="zh-cn"}function Ae(e,a={}){if(H(),a.locale){if(typeof a.locale=="function"||t.isRef(a.locale)){U=t.watch(()=>X(a.locale),n=>{A.value=n},{immediate:!0,flush:"sync"});return}A.value=X(a.locale)}}function s(e,a=e,n){const r=a||e,o=A.value,l=Z(o,e)||Z("zh-cn",e)||r||e;return Be(l,n)}/*! Element Plus Icons Vue v2.3.2 */var De=t.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),je=De,Me=t.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),Ve=Me,ze=t.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Re=ze,Ne=t.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Se=Ne;var Te=t.defineComponent({name:"Calendar",__name:"calendar",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Fe=Te;var qe=t.defineComponent({name:"Check",__name:"check",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Ie=qe;var Ue=t.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),t.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),Je=Ue,Oe=t.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),He=Oe,Ye=t.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Ge=Ye,Ke=t.defineComponent({name:"Clock",__name:"clock",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),t.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),t.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),We=Ke,Qe=t.defineComponent({name:"Close",__name:"close",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Xe=Qe,Ze=t.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),$e=Ze,et=t.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),tt=et;var at=t.defineComponent({name:"Download",__name:"download",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),nt=at;var ot=t.defineComponent({name:"Hide",__name:"hide",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),t.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),rt=ot,lt=t.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),it=lt,ct=t.defineComponent({name:"Loading",__name:"loading",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),st=ct,mt=t.defineComponent({name:"Minus",__name:"minus",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),dt=mt,ut=t.defineComponent({name:"MoreFilled",__name:"more-filled",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),pt=ut;var ht=t.defineComponent({name:"Plus",__name:"plus",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),ft=ht,vt=t.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),wt=vt,_t=t.defineComponent({name:"RefreshLeft",__name:"refresh-left",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),gt=_t;var kt=t.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),bt=kt,yt=t.defineComponent({name:"View",__name:"view",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),xt=yt,Et=t.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Bt=Et,Lt=t.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Pt=Lt,Ct=t.defineComponent({name:"ZoomOut",__name:"zoom-out",setup(e){return(a,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),At=Ct;const Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAAAAaVBMVEUAAABWapNVapKeqsLJztx3hKnGzN2yu8////9XapWcqMGps8lXapVYa5RWaZWps8lfcJjS1+KjrsVXapWapr////9sfaKrtMrV2uWBj7B4iKqWob1wgaXr7fOBj6/Ax9dhc5yhq8OKl7Wba+6tAAAAE3RSTlMAgGDuDyVLoYDe2XuXRb68cy6e4BCQEAAAAyZJREFUeNrt29tyokAUheGOQjIoeMhuCQ4e0Pd/yCE1STU4mGq7bXqzZ/23ufoqYblTqkIIIYQQQggNlM42Lzctf5nMD22bKQYVOQ30sTPt6dEO74mKXLoiCgDTi1RFbUMUBhZXluQUDKbnWxWtjMLB2pYqUjmFg8WUzSg0TL+rCKVZeJheRJj9DYWHRRnHbBSYnr+qcSsoKCyeLKcfK/emc2UqH4LFGMcVWVftTC4w/TbmhGQjwvR6RBmNAbMYx4nD7k/I1GF3ZZOH3RtHAbDhcZQAG5SJgOn1Vt0mAzYwIUJgvjJ/2OVo2pcmcoQZWehxpBGue5sJEQTryyTBeuMoCtadEFmwjkwYzIyjNJief02IONj3OAqE/ZVJhJnZj3RS1c4nld04ijiC/5EJhbUyobBWJhT2OY5CYa1MKKyVCYXpdSIUphdbobB2HIXCWplQmJGFhZUn07kyNaFgbUsx1/1tb1Jh+i1hDmu0Y+uEN4xqV9ki5Q27atfmKWtYqd1lW84wqj1kr5xhB+3RkjGMrl4yxrCm9pG984V5ytZJINjpY7hmLNki5XjdP0fGFkZ0qL1kfGEt7erzgsYY1lYefrtWsIZ5NAMMMBNg9gEGmD3sejbVnRpyjAvs5rr3DzDAAOsEmH2AAQZYJ8Ds4wJrSlN1NE3+CDYJu+5NgNkHGGCAdQLMPsAAA0zuEQyYbYABBlgnwOwDDDDAOvVhl5NJ1Fu1O6lHMGA/xQl2rPodpcBq6gfYYIABBpgJsAdiBDvX/cTAxF4egNkEWGDY5Q5s8v9onoZdR3KNC4yOg7AzOccFNvi36POJIy4wqgZgF/KIC6yporuCwNrq/nNW7ckzLjCi/bO//MEF9mCAAQYYYDwCDDAmAQYYkwADjEmAAcYkwABjEmCAMQkwwJgEGGBMAgwwJgEGGJMAA4xJgAHGJMD+B1hGE6hwgK1oAqUOsJz4lymHCuJfrpTM9SicYC/EvUw5lRD3Psde4lP29YSJG8bse+ulvZZ5uFTCV5YZl6hpXKXKs5TlL22jnlCaM7uHV7NEPam02LwwaVYkCiGEEEIIITTUH1Fqd5V0WMtQAAAAAElFTkSuQmCC",jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAAAAdVBMVEUAAAD/XgD/XQD/z7f/omz/r4H/h0v/0Lf/omz/XwP/XgD/XgD/XQD/tIv/pnH/zK7/XgD/XAD/rH7/XQD/XgD/nmb/////fjL/ciD/dib/6+D/9e//ml//aBD/18D/r4D/w6D/hkD/uJD/pHD/kE//4c//zbBB3kudAAAAFHRSTlMAgGAP7q8hPNo33pe+mH9Z73BZULJO58YAAAW3SURBVHja7NZJDsJADERREzoTYZa94P4XJQhaZOgoWViYLvnf4C1cMnme53me53mel6gqbjvVCvqD2u7K2j3KPRnXHpn1e0hTkWk3jinDbGX7jmPqMAk1mXXgmD6s70xGdRzTh1nKCh6nD5OSDKoOPEkfJs2m2c9iEEewreOYx3IMYBbj2HIqfZiEO62UyyQOYBbjeOSV9GByWpmQbE5sCpPyhzJOpA9bH8fMYcvjmDtMwoWSZQ9bGkcAWHocEWDJcYSASTOfEAxYYhxBYHMZCmw2+zCw6TgCwcbjiAQbyaBgw9nHgg0mBAz2laHBJHzGEQ4WJwQQ9pYhwqSsiSBh0tSgMAk1KEzCBRTWy0Bhr28fFNbPPijsyY297DYIA1EYlnpJ20WyqA7G8QVi4uT9H7Go0oDDkrHEkf+Vt58ijyfMskZhs6xR2PygNQqbH7RGYbOsUdj8oDUK67pLq7Du3CpsHvvksNjtlnHDEPbKvk/csNzt7eNEDbPdftkXMwxBIfvlgcUcQu5R1HeKLiSwNJj/3N1iKatkDLB4M0suQYpBIzsTwB6mLFSSfb4fDZvMS95Wkn2fjoVZs2nAwTLU6Wa2Jaxdg0p2JMybbSPKrlnzoB0HS8LxTk4PbLLXfm8/h8HuwknrFImo1tthsHHVZDlaKGKByezwxXzMUMQGc8UcCVDEApsKmGsJNhawoSVYkDvWGiwVM35oaXhEgfUrLEERC2yZGHfAL0ZNLDCZ90/EpjaPZafyMckJqlhgdlkWZfIPUMUCgxOPfCKYoIsFNplNd+higaUtLEEXCwx+A4M2Ftj46npAGwvMvsImaGOBYTBlGepYYNmUWahjgcHXvmIssLH2FWOBRV/5FWOBFT+ZR5VYYNFIT1SJBYabwBzqxAKbaq/ALDBnJB9RIxJY3+ZKBUxN/m35o9buclyFYSgAb8ICK78OhO5/ibfS3JkAdksn5OHMeS5Sv0Jty+QZN3q8B4EV9UrzZlBg0lBjFosoMHeCuUj3AgILjTSmMqLAHk00pk2DwHjS8Uz9QYGF5hnzN0OB7cYpdfKoKyCw1sRCGVJAUGCyW+MsI/o0CKyVDiGiNKA0gsDkMG+w38sCdQQF5o7Vok63ZRiwcEbkKxlHehcUmFPLDrFkXEOW5L4/vaWlMtnBgBVdA+N2kOW6yuYnIymQDgosGSt7dtOHcZXOAYHta30L+09luteBwMR+xzJ/KNO9DgTG+wVwh0xt61BgojZTTdb1MILA+NViikO68tiXgsDE6sMcxNsEv4Ra+Jm5rOKsQwYgMJ7OzTmWxb2r7jK3izdc2OmGxTX56871WMsciTg8YGGHG/ZUKcS2BI7y9/5j7SsnrXJLjW0otqIbBQisvG5NEiLRxYSl6w4KzE1m3FLonPCG5ugnCLBoN6qUmXQ0Ta/5MWAx+wuVjv1L+K/xHgNmspxSqbAuMcL0DAaMxRopCn2UWPJj+3/NJutXiYGAWaxUI/0qkbndKQhYXJTK50j9wYDF7Me+LQKBVWc2of5gwNis1kzdAYGt3nIJdQcDFpM9DTF1BgQ2u1fja2dAYMHbLqHOgMDCsW352w8iCKweWDHffhBBYOyba2Nabz+IKDB3eFk+36+IILDQXPlQRnpdKLC0d+W9sjMoMN8kJY04woEC+6kbJY05dIMC86OPSaHA0ugREQWWR7tQYP/atZcUBmEoCsNHA4FEBxHvyKJQ7P7X2EGdlHbiNYNjON8OfvIkZP2Zi9tqV7CE2V77TyxL2PdkXJ52GUuYvZbKL1IsYcfr9GPbq2WxhJ2gMIUpTGEcFKYwEgpTGAmFKYyEwhRGQmEKI+EJy3YDCeeNdgOesMH4ZTgk4zfAoxi9GR6dsctwCfRD1sNnNm7HCmtuY8wRH42dZSXCL/CW5QQcmtoax4iLIuOglQkVpIHrPlzGPqCSNE8diT4FiIiIiIjIP2/v9e/hKQXqEwAAAABJRU5ErkJggg==",Mt=new Set(["jpg","jpeg","png","gif","webp","bmp","svg","avif","ico"]),Vt=new Set(["mp4","webm","ogg","ogv","mov","m4v"]),zt=new Set(["mp3","wav","ogg","oga","m4a","aac","flac"]),Rt=new Set(["html","htm","txt","json","xml","csv","md","log"]),Nt=new Set(["doc","docx","xls","xlsx","ppt","pptx","zip","rar","7z"]),J={component:"JtAttachmentPreview",marker:"2026-06-25-download-error-detail",source:"@jt-home/mfe-components/src/components/JtAttachmentPreview/index.ts",pdfLoadMode:"fetch-bytes-then-pdfjs-data",previewDownloadMode:"openByParams-uses-registered-downloadRequest",downloadResponseMode:"supports-blob-and-axios-response-data-blob"};function h(e,a){console.info(`[JtAttachmentPreview DEBUG ${J.marker}] ${e}`,{...J,...a})}typeof window<"u"&&(window.__JT_ATTACHMENT_PREVIEW_DEBUG__=J,h("module-loaded"));let x=null,q=null,E=null;async function St(){return q||(q=Promise.all([Promise.resolve().then(()=>require("./pdf-Da0bm_Ya.cjs")),Promise.resolve().then(()=>require("./pdf.worker.min-BAJUPwg6.cjs"))]).then(([e,a])=>(e.GlobalWorkerOptions.workerSrc=a.default,e))),q}function Tt(e){return typeof e=="string"?{url:e}:e}function ee(e){const[a]=e.split(/[?#]/);return a??""}function Y(e,a){if(a?.trim())return a.trim();const n=ee(e).split("/").filter(Boolean).pop();if(!n)return s("common.附件预览");try{return decodeURIComponent(n)}catch{return n}}function O(e){return ee(e).match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase()??""}function Ft(e){return e?.trim().replace(/^\./,"").toLowerCase()??""}function qt(e){const a=Ft(e);return Mt.has(a)?"image":a==="pdf"?"pdf":Vt.has(a)?"video":zt.has(a)?"audio":Rt.has(a)?"iframe":Nt.has(a)?"unsupported":"unknown"}function G(e){const a=e.toLowerCase().split(";")[0]?.trim()??"";return a.startsWith("image/")?"image":a==="application/pdf"?"pdf":a.startsWith("video/")?"video":a.startsWith("audio/")?"audio":a.startsWith("text/")?"iframe":"unknown"}function te(e){if(!e.url.trim())return"empty";if(e.mode&&e.mode!=="auto")return e.mode;if(e.mimeType){const n=G(e.mimeType);if(n!=="unknown")return n}const a=qt(e.extension||O(e.name||"")||O(e.url));return a!=="unknown"?a:"unknown"}async function It(e){try{const n=(await fetch(e,{method:"HEAD"})).headers.get("content-type")??"";return G(n)}catch{return"unknown"}}async function ae(e,a){const n=await fetch(e,a);if(!n.ok)throw new Error(`fetch failed: ${n.status}`);return n.blob()}async function Ut(e){h("fetch-pdf-bytes-start",{url:e});const a=await fetch(e);if(!a.ok)throw new Error(`fetch failed: ${a.status}`);const n=new Uint8Array(await a.arrayBuffer());return h("fetch-pdf-bytes-done",{url:e,byteLength:n.byteLength,contentType:a.headers.get("content-type")??""}),n}function Jt(e,a){const n=O(a);return n==="doc"||n==="docx"?"W":n==="xls"||n==="xlsx"?"X":n==="ppt"||n==="pptx"?"P":n==="zip"||n==="rar"||n==="7z"?"ZIP":e==="pdf"?"PDF":"FILE"}function ne(e,a,n,r=!1){return t.h("button",{class:n,type:"button",onClick:()=>{h("download-button-click",{url:e.url,downloadName:a,fallbackToRawUrl:r}),re(e,a,{fallbackToRawUrl:r})}},[t.h(S.ElIcon,{class:"jt-attachment-preview-service__download-icon"},()=>t.h(nt)),t.h("span",{class:"jt-attachment-preview-service__download-text"},s("common.下载"))])}function I(e){return e==="image"||e==="pdf"}function oe(e){return t.h("div",{class:"jt-attachment-preview-service__preview-fallback"},[t.h("img",{class:"jt-attachment-preview-service__preview-fallback-icon",src:e.icon,alt:""}),t.h("div",{class:"jt-attachment-preview-service__unsupported-text"},s("common.暂不支持预览此类型的文件")),t.h("div",{class:"jt-attachment-preview-service__file-name",title:e.name},e.name)])}function K(e,a){const n=document.createElement("a");n.href=e,n.download=a,n.style.display="none",document.body.appendChild(n),n.click(),n.remove()}function W(e,a){const n=URL.createObjectURL(e);K(n,a),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)}function T(e){return e instanceof Blob||Object.prototype.toString.call(e)==="[object Blob]"}function Ot(e,a){if(T(e))return e;if(e&&typeof e=="object"){const n=e;if(T(n.data)){const r=n.data;return{blob:n.data,name:n.fileName||n.name||r.name||a}}}return null}async function Ht(e,a,n={}){h("download-start",{url:e,downloadName:a,fallbackToRawUrl:!!n.fallbackToRawUrl,hasRequestInit:!!n.requestInit});try{const r=await ae(e,n.requestInit);h("download-blob-ready",{url:e,downloadName:a,blobType:r.type,blobSize:r.size}),W(r,a)}catch{h("download-blob-failed",{url:e,downloadName:a,fallbackToRawUrl:!!n.fallbackToRawUrl}),n.fallbackToRawUrl&&K(e,a)}}function $(e,a){return e instanceof Blob?{blob:e,name:a}:e?{url:e.url,blob:e.blob,name:e.name||a,requestInit:e.requestInit,fallbackToRawUrl:e.fallbackToRawUrl}:null}async function re(e,a,n={}){const r={url:e.url,name:a,params:e.requestParams,options:e};try{let o=null;if(h("download-resolve-start",{url:e.url,downloadName:a,hasCustomDownload:!!e.download,hasRegisteredDownload:!!E?.downloadRequest,useRegisteredDownload:!!e.useRegisteredDownload,hasRequestParams:Object.prototype.hasOwnProperty.call(e,"requestParams")}),e.download){h("download-custom-handler-start",{url:e.url,downloadName:a});const i=await e.download(r);if(o=$(i,a),!o){h("download-custom-handler-done",{url:e.url,downloadName:a});return}}else if(e.useRegisteredDownload&&E?.downloadRequest){h("download-setup-request-start",{url:e.url,downloadName:a,params:e.requestParams});const i=await E.downloadRequest(e.requestParams);h("download-request-response",{isBlob:T(i),isDataBlob:!!i&&typeof i=="object"&&T(i.data),responseType:Object.prototype.toString.call(i)});const v=Ot(i,a),p=v||(E.mapDownloadResponse?E.mapDownloadResponse(i,e.requestParams):i);o=$(p,a)}if(o?.blob){h("download-result-blob",{downloadName:o.name,blobType:o.blob.type,blobSize:o.blob.size}),W(o.blob,o.name);return}const l=o?.url||e.downloadUrl||e.url,m=o?.name||a;await Ht(l,m,{requestInit:o?.requestInit||e.downloadRequestInit,fallbackToRawUrl:o?.fallbackToRawUrl??e.downloadFallbackToRawUrl??n.fallbackToRawUrl})}catch(o){h("download-handler-failed",{url:e.url,downloadName:a,errorName:o instanceof Error?o.name:"",errorMessage:o instanceof Error?o.message:String(o),errorStack:o instanceof Error?o.stack:"",errorResponseStatus:o&&typeof o=="object"?o.response?.status:void 0,errorResponseType:o&&typeof o=="object"?Object.prototype.toString.call(o.response?.data):void 0,errorResponseDataType:o&&typeof o=="object"?o.response?.data?.type:void 0}),n.fallbackToRawUrl&&K(e.downloadUrl||e.url,a)}}const Yt=t.defineComponent({name:"JtAttachmentPreviewPdfCanvas",props:{url:{type:String,required:!0},name:{type:String,required:!0},downloadName:{type:String,required:!0},downloadable:{type:Boolean,required:!0}},emits:{previewLoad:e=>e instanceof Event,previewError:e=>e instanceof Event},setup(e,{emit:a}){const n=t.ref("loading"),r=t.ref([]),o=t.ref([]),l=new Map,m=t.ref("");let i=null,v=[],p=0;async function f(c,d){if(!d)return null;const _=typeof d=="string"?await c.getDestination(d):d;return!Array.isArray(_)||!_[0]?null:await c.getPageIndex(_[0])+1}async function b(c,d,_=0){if(!d?.length)return[];const g=[];for(const B of d){const D=await f(c,B.dest);g.push({title:B.title||s("common.未命名标题"),pageNumber:D,level:_});const P=await b(c,B.items,_+1);g.push(...P)}return g}function w(){p+=1;for(const c of v)c.cancel();v=[],i?.destroy(),i=null,l.clear()}async function L(){w();const c=p;n.value="loading",m.value="",r.value=[],o.value=[];try{const d=await St();if(c!==p)return;const _=await Ut(e.url);if(c!==p)return;h("render-pdf-get-document-data",{byteLength:_.byteLength}),i=d.getDocument({data:_});const g=await i.promise;if(c!==p)return;r.value=Array.from({length:g.numPages},(P,C)=>C+1),o.value=await b(g,await g.getOutline()),await t.nextTick();const B=l.values().next().value,D=Math.max((B?.parentElement?.clientWidth??800)-32,320);for(const P of r.value){if(c!==p)return;const C=await g.getPage(P),k=l.get(P),j=k?.getContext("2d");if(!k||!j)continue;const F=C.getViewport({scale:1}),u=Math.min(D/F.width,2),M=C.getViewport({scale:u}),N=window.devicePixelRatio||1;k.width=Math.floor(M.width*N),k.height=Math.floor(M.height*N),k.style.width=`${Math.floor(M.width)}px`,k.style.height=`${Math.floor(M.height)}px`,j.setTransform(N,0,0,N,0,0);const Q=C.render({canvas:k,canvasContext:j,viewport:M});v.push(Q),await Q.promise}if(c!==p)return;n.value="ready",a("previewLoad",new Event("load"))}catch(d){if(c!==p)return;n.value="error",m.value=d instanceof Error?d.message:s("common.PDF加载失败"),a("previewError",new Event("error"))}}t.watch(()=>e.url,L,{immediate:!0}),t.onBeforeUnmount(w);function y(c){if(!c)return;l.get(c)?.scrollIntoView({behavior:"smooth",block:"start"})}return()=>t.h("div",{class:"jt-attachment-preview-service__pdf-viewer"},[n.value==="loading"?t.h("div",{class:"jt-attachment-preview-service__pdf-state"},s("common.PDF加载中___")):null,n.value==="error"?t.h("div",{class:"jt-attachment-preview-service__pdf-state"},[oe({icon:jt,name:e.name})]):null,null,null,t.h("div",{class:["jt-attachment-preview-service__pdf-layout",n.value!=="ready"?"jt-attachment-preview-service__pdf-layout--hidden":""]},[o.value.length?t.h("aside",{class:"jt-attachment-preview-service__pdf-outline"},[t.h("div",{class:"jt-attachment-preview-service__pdf-outline-title"},s("common.目录")),t.h("div",{class:"jt-attachment-preview-service__pdf-outline-list"},o.value.map((c,d)=>t.h("button",{key:`${c.title}-${d}`,class:"jt-attachment-preview-service__pdf-outline-item",style:{paddingLeft:`${12+c.level*14}px`},type:"button",disabled:!c.pageNumber,title:c.title,onClick:()=>y(c.pageNumber)},c.title)))]):null,t.h("div",{class:"jt-attachment-preview-service__pdf-pages"},r.value.map(c=>t.h("canvas",{key:c,ref:d=>{d instanceof HTMLCanvasElement&&l.set(c,d)},class:"jt-attachment-preview-service__pdf-page"})))])])}}),Gt=t.defineComponent({name:"JtAttachmentPreviewImageTransform",props:{url:{type:String,required:!0},name:{type:String,required:!0},downloadName:{type:String,required:!0},downloadable:{type:Boolean,required:!0},fit:{type:String,default:"contain"}},emits:{previewLoad:e=>e instanceof Event,previewError:e=>e instanceof Event},setup(e,{emit:a}){const n=t.ref(null),r=t.ref("ready"),o=t.ref(1),l=t.ref(!1);let m=0,i=0,v=0,p=0,f=0,b=0,w=0;const L=t.computed(()=>({"--jt-attachment-preview-service-image-fit":e.fit,transform:`translate(${m}px, ${i}px) scale(${o.value})`}));function y(){n.value&&(n.value.style.transform=`translate(${m}px, ${i}px) scale(${o.value})`)}function c(){w||(w=window.requestAnimationFrame(()=>{w=0,y()}))}function d(u){o.value=Math.min(Math.max(Number(u.toFixed(2)),.2),5),o.value<=1&&(m=0,i=0),y()}function _(){d(o.value+.2)}function g(){const u=Math.max(Number((o.value-.2).toFixed(2)),.2);o.value=u,u<=1&&(m=0,i=0),y()}function B(){m=0,i=0,d(1)}function D(u){r.value="ready",a("previewLoad",u)}function P(u){r.value="error",a("previewError",u)}function C(u){o.value<=1||(u.preventDefault(),l.value=!0,v=u.clientX,p=u.clientY,f=m,b=i,window.addEventListener("pointermove",k),window.addEventListener("pointerup",j,{once:!0}))}function k(u){l.value&&(m=f+u.clientX-v,i=b+u.clientY-p,c())}function j(){l.value=!1,window.removeEventListener("pointermove",k)}function F(u){u.preventDefault(),d(o.value+(u.deltaY<0?.1:-.1))}return t.onMounted(y),t.watch(()=>e.url,()=>{r.value="ready",B()}),t.onBeforeUnmount(()=>{window.removeEventListener("pointermove",k),w&&window.cancelAnimationFrame(w)}),()=>t.h("div",{class:"jt-attachment-preview-service__image-viewer"},r.value==="error"?oe({icon:Dt,name:e.name}):[t.h("img",{ref:n,class:["jt-attachment-preview-service__media","jt-attachment-preview-service__image",o.value>1?"jt-attachment-preview-service__image--draggable":"",l.value?"jt-attachment-preview-service__image--dragging":""],src:e.url,alt:e.name,style:L.value,onLoad:D,onError:P,onPointerdown:C,onWheel:F,onDragstart:u=>u.preventDefault(),draggable:!1}),t.h("div",{class:"jt-attachment-preview-service__image-toolbar"},[t.h("button",{class:"jt-attachment-preview-service__image-tool",type:"button",title:s("common.缩小"),onClick:g},[t.h(S.ElIcon,()=>t.h(At))]),t.h("span",{class:"jt-attachment-preview-service__image-scale"},`${Math.round(o.value*100)}%`),t.h("button",{class:"jt-attachment-preview-service__image-tool",type:"button",title:s("common.放大"),onClick:_},[t.h(S.ElIcon,()=>t.h(Pt))]),t.h("button",{class:"jt-attachment-preview-service__image-tool",type:"button",title:s("common.复位"),onClick:B},[t.h(S.ElIcon,()=>t.h(gt))])])])}}),Kt=t.defineComponent({name:"JtAttachmentPreviewService",props:{options:{type:Object,required:!0},onDestroy:{type:Function,required:!0}},setup(e){const a=t.computed(()=>Y(e.options.url,e.options.name)),n=t.computed(()=>e.options.downloadName||a.value),r=t.computed(()=>te(e.options)),o=t.computed(()=>Jt(r.value,e.options.url)),l=t.computed(()=>({zIndex:e.options.zIndex??3e3,"--jt-attachment-preview-service-image-fit":e.options.fit??"contain"}));function m(){e.options.onClose?.(),e.onDestroy()}function i(f){f.key==="Escape"&&e.options.closeOnPressEscape!==!1&&m()}function v(f){e.options.onLoad?.(f)}function p(f){e.options.onError?.(f)}return t.onMounted(()=>{document.addEventListener("keydown",i),document.body.classList.add("jt-attachment-preview-service-lock")}),t.onBeforeUnmount(()=>{document.removeEventListener("keydown",i),document.body.classList.remove("jt-attachment-preview-service-lock")}),()=>{const f=e.options.downloadable===!1?[]:[ne(e.options,n.value,"jt-attachment-preview-service__top-download")];return t.h("div",{class:"jt-attachment-preview-service",style:l.value},[t.h("div",{class:"jt-attachment-preview-service__modal"},[t.h("div",{class:"jt-attachment-preview-service__header"},[t.h("div",{class:"jt-attachment-preview-service__filename",title:a.value},a.value),t.h("div",{class:"jt-attachment-preview-service__header-actions"},[...f,t.h("button",{class:"jt-attachment-preview-service__close",type:"button","aria-label":s("common.关闭"),onClick:m},"×")])]),t.h("div",{class:"jt-attachment-preview-service__body"},[Wt({type:r.value,url:e.options.url,name:a.value,downloadName:n.value,sourceOptions:e.options,sandbox:e.options.sandbox,iconText:o.value,downloadable:e.options.downloadable!==!1,onLoad:v,onError:p})])])])}}}),V=t.defineComponent({name:"JtAttachmentPreviewDetectingService",props:{options:{type:Object,required:!0},onDestroy:{type:Function,required:!0},title:{type:String,default:s("common.正在识别文件类型")},desc:{type:String,default:s("common.请稍候,识别完成后将自动预览或下载")},spinning:{type:Boolean,default:!0}},setup(e){const a=t.computed(()=>Y(e.options.url,e.options.name)),n=t.computed(()=>({zIndex:e.options.zIndex??3e3}));function r(){e.options.onClose?.(),e.onDestroy()}function o(l){l.key==="Escape"&&e.options.closeOnPressEscape!==!1&&r()}return t.onMounted(()=>{document.addEventListener("keydown",o),document.body.classList.add("jt-attachment-preview-service-lock")}),t.onBeforeUnmount(()=>{document.removeEventListener("keydown",o),document.body.classList.remove("jt-attachment-preview-service-lock")}),()=>t.h("div",{class:"jt-attachment-preview-service",style:n.value},[t.h("div",{class:"jt-attachment-preview-service__modal"},[t.h("div",{class:"jt-attachment-preview-service__header"},[t.h("div",{class:"jt-attachment-preview-service__filename",title:a.value},a.value),t.h("div",{class:"jt-attachment-preview-service__header-actions"},[t.h("button",{class:"jt-attachment-preview-service__close",type:"button","aria-label":s("common.关闭"),onClick:r},"×")])]),t.h("div",{class:"jt-attachment-preview-service__body"},[t.h("div",{class:"jt-attachment-preview-service__detecting"},[e.spinning?t.h("span",{class:"jt-attachment-preview-service__detecting-spinner"}):null,t.h("span",{class:"jt-attachment-preview-service__detecting-title"},e.title),t.h("span",{class:"jt-attachment-preview-service__detecting-desc"},e.desc)])])])])}});function Wt(e){return e.type==="empty"?t.h("div",{class:"jt-attachment-preview-service__empty"},s("common.暂无附件")):e.type==="image"?t.h(Gt,{url:e.url,name:e.name,downloadName:e.downloadName,downloadable:e.downloadable,onPreviewLoad:e.onLoad,onPreviewError:e.onError}):e.type==="video"?t.h("video",{class:"jt-attachment-preview-service__media",src:e.url,controls:!0,onLoadeddata:e.onLoad,onError:e.onError}):e.type==="audio"?t.h("audio",{class:"jt-attachment-preview-service__audio",src:e.url,controls:!0,onLoadeddata:e.onLoad,onError:e.onError}):e.type==="pdf"?t.h(Yt,{url:e.url,name:e.name,downloadName:e.downloadName,downloadable:e.downloadable,onPreviewLoad:e.onLoad,onPreviewError:e.onError}):e.type==="iframe"?t.h("iframe",{class:"jt-attachment-preview-service__iframe",src:e.url,title:e.name,sandbox:e.sandbox||void 0,onLoad:e.onLoad}):t.h("div",{class:"jt-attachment-preview-service__unsupported"},[t.h("div",{class:"jt-attachment-preview-service__file-card"},[t.h("div",{class:"jt-attachment-preview-service__file-icon"},e.iconText),t.h("div",{class:"jt-attachment-preview-service__unsupported-text"},s("common.暂不支持预览此类型的文件"))]),t.h("div",{class:"jt-attachment-preview-service__file-name",title:e.name},e.name),e.downloadable?ne(e.sourceOptions,e.downloadName,"jt-attachment-preview-service__primary-download"):null])}function le(e){if(typeof document>"u")return{close:()=>{}};h("open-called",{rawOptions:typeof e=="string"?e:{...e}}),x?.close();const a=Tt(e),n=a.downloadName||Y(a.url,a.name);let r=!1,o=null,l=null;const m=()=>{r=!0,o&&(t.render(null,o),o.remove(),o=null),l&&(URL.revokeObjectURL(l),l=null),x?.close===m&&(x=null)};function i(){r||(o||(o=document.createElement("div"),document.body.appendChild(o)),t.render(t.h(Kt,{options:a,onDestroy:m}),o))}function v(){r||(o||(o=document.createElement("div"),document.body.appendChild(o)),t.render(t.h(V,{options:a,onDestroy:m}),o))}function p(){o&&(t.render(null,o),o.remove(),o=null)}function f(){r||re(a,n,{fallbackToRawUrl:!0})}const b=te(a);return h("type-resolved",{resolvedType:b,url:a.url,name:a.name,mode:a.mode,mimeType:a.mimeType,extension:a.extension}),I(b)?i():b==="unknown"?(v(),It(a.url).then(async w=>{if(!r){if(I(w)){a.mode=w,i();return}try{const L=await ae(a.url),y=G(L.type);if(I(y)){l=URL.createObjectURL(L),a.url=l,a.mode=y,i();return}p(),W(L,n)}catch{p(),f()}}})):f(),x={close:m},x}function ie(e){E=e}function ce(e){if(typeof document>"u")return{close:()=>{}};x?.close();let a=!1,n=document.createElement("div");document.body.appendChild(n);const r=()=>{a=!0,n&&(t.render(null,n),n.remove(),n=null),x?.close===r&&(x=null)},o={close:r};return x=o,E?(t.render(t.h(V,{options:{url:"",name:s("common.附件预览")},title:s("common.正在获取文件信息"),desc:s("common.请稍候,获取完成后将自动预览或下载"),spinning:!0,onDestroy:r}),n),E.request(e).then(l=>{if(a)return;const m=E?.mapResponse(l,e);if(!m?.url){t.render(t.h(V,{options:{url:"",name:s("common.附件预览")},title:s("common.文件信息缺少URL"),desc:s("common.请检查mapResponse是否返回了url字段"),spinning:!1,onDestroy:r}),n);return}le({...m,requestParams:e,useRegisteredDownload:!0})}).catch(l=>{if(a)return;const m=l instanceof Error?l.message:s("common.接口请求失败");t.render(t.h(V,{options:{url:"",name:s("common.附件预览")},title:s("common.文件信息获取失败"),desc:m,spinning:!1,onDestroy:r}),n)}),o):(t.render(t.h(V,{options:{url:"",name:s("common.附件预览")},title:s("common.附件预览未初始化"),desc:s("common.请先调用setupJtAttachmentPreview注册请求配置"),spinning:!1,onDestroy:r}),n),o)}const Qt=Object.assign(le,{openByParams:ce,setup:ie});exports.JtAttachmentPreview=Qt;exports.JtAttachmentPreviewByParams=ce;exports.arrow_down_default=je;exports.arrow_left_default=Ve;exports.arrow_right_default=Re;exports.arrow_up_default=Se;exports.calendar_default=Fe;exports.check_default=Ie;exports.circle_check_default=Je;exports.circle_close_default=Ge;exports.circle_close_filled_default=He;exports.clock_default=We;exports.close_default=Xe;exports.d_arrow_left_default=$e;exports.d_arrow_right_default=tt;exports.getLocale=Pe;exports.hide_default=rt;exports.info_filled_default=it;exports.installLocale=Ae;exports.loading_default=st;exports.minus_default=dt;exports.more_filled_default=pt;exports.normalizeLocale=R;exports.plus_default=ft;exports.question_filled_default=wt;exports.resetLocale=Ce;exports.setLocale=Le;exports.setupJtAttachmentPreview=ie;exports.success_filled_default=bt;exports.t=s;exports.view_default=xt;exports.warning_filled_default=Bt;
|