iking-web-ui-pro 0.2.4 → 0.2.6
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/IKDetailPreviewFiles/ik.index.es.js +586 -571
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +491 -476
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +756 -741
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +530 -515
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +314 -308
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +963 -944
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +265 -253
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +1611 -0
- package/dist/Provider/ik.index.umd.js +17 -0
- package/dist/index.es.js +38689 -37072
- package/dist/index.umd.js +95 -79
- package/dist/src/components/IKDetailPreviewFiles/index.d.ts +1 -1
- package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +1 -1
- package/dist/src/components/IKPreviewFile/index.d.ts +3 -3
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
- package/dist/src/components/IkDescription/index.d.ts +3 -3
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +1 -1
- package/dist/src/components/IkTinymce/index.d.ts +1 -1
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +66 -0
- package/dist/src/components/Provider/index.d.ts +139 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/utils/use-provider.d.ts +8 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(B,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro"],e):(B=typeof globalThis<"u"?globalThis:B||self,e(B.index={},B.vue,B["element-plus"],B["iking-utils-pro"]))})(this,function(B,e,_,v){"use strict";const b=(t,o)=>{if(t.install=n=>{for(const a of[t,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))t[n]=a;return t},Z="data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";/*! Element Plus Icons Vue v2.3.1 */var Q=e.defineComponent({name:"Delete",__name:"delete",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),J=Q,K=e.defineComponent({name:"Download",__name:"download",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.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"})]))}}),G=K,X=e.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.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.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 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.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),T=X,Y=e.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),ee=Y,te=e.defineComponent({name:"View",__name:"view",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.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-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),oe=te,ne=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 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"})]))}}),le=ne;const A=(t,o)=>{var c,s,u,m;const n=(c=t==null?void 0:t.response)!=null&&c.data?U((u=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:u.suffix):((m=t.raw)==null?void 0:m.type)||U(t[o.suffix]),a=n==null?void 0:n.toLowerCase(),l={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let r in l)if(typeof a=="string"&&(a.includes(r)||a===r))return l[r];return"unknown"},ie={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},U=t=>{const o=t==null?void 0:t.toLocaleLowerCase(),n=o!=null&&o.startsWith(".")?o:`.${o}`;return n&&ie[n]||"unknow"},se=t=>{let o="",n=["doc","docx"],a=["xls","xlsx"],l=["ppt","pptx"],c=["pdf"];return n.includes(t)&&(o="word"),a.includes(t)&&(o="cell"),l.includes(t)&&(o="slide"),c.includes(t)&&(o="text-pdf"),o},ae={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},ce=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],re={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},de=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],pe={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},fe=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],me={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},he=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],ue={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},ge=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],Ae={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},_e=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],ye={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},we=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],ke={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},Be=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],Ve={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Ce=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],Ee={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},ze=[e.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),e.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),e.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),e.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],be={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},xe=[e.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),e.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),e.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Fe={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Se=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],q=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(t){const o=t,n=e.computed(()=>o.file?A(o.file,o.fields):o.type);return(a,l)=>n.value==="image"?(e.openBlock(),e.createElementBlock("svg",ae,ce)):n.value==="zip"?(e.openBlock(),e.createElementBlock("svg",re,de)):n.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",pe,fe)):n.value==="word"?(e.openBlock(),e.createElementBlock("svg",me,he)):n.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",ue,ge)):n.value==="txt"?(e.openBlock(),e.createElementBlock("svg",Ae,_e)):n.value==="audio"?(e.openBlock(),e.createElementBlock("svg",ye,we)):n.value==="video"?(e.openBlock(),e.createElementBlock("svg",ke,Be)):n.value==="excel"?(e.openBlock(),e.createElementBlock("svg",Ve,Ce)):n.value==="exe"?(e.openBlock(),e.createElementBlock("svg",Ee,ze)):n.value==="json"?(e.openBlock(),e.createElementBlock("svg",be,xe)):(e.openBlock(),e.createElementBlock("svg",Fe,Se))}}),S=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},$=t=>t%1===0?t.toString():t.toFixed(2),M=(t,o)=>o?o.startsWith("http")?o:`${t||location.origin}${o}`:"",Ne=e.defineComponent({__name:"IkPreviewFileDialog",props:e.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(t){const o=t,n=e.useModel(t,"show"),a=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...o.field})),l=e.ref(null),c=e.ref(null),s=e.reactive({image:!1,office:!1,video:!1}),u=r=>{var h,w,V,C,E,N,x;try{const g=((h=r==null?void 0:r.response)==null?void 0:h.data)||r,F=g[a.value.url]||(g==null?void 0:g.id)||g.attachmentId,z=(w=g[a.value.suffix]||g.attachmentSuffix)==null?void 0:w.toLowerCase(),H=g[a.value.name]||(g==null?void 0:g.attachmentName)||(g==null?void 0:g.originName);if(c.value={...r,name:r[a.value.name],url:M(o.loadUrl,F)},r&&A(r,a.value)==="image"){s.image=!0;return}else if((((V=o.onlyOfficeConfig)==null?void 0:V.accept)||o.onlyOfficeAccept).includes(z)){s.office=!0,l.value={...o.onlyOfficeConfig,editorConfig:{...((C=o.onlyOfficeConfig)==null?void 0:C.editorConfig)||{},customization:{...((N=(E=o.onlyOfficeConfig)==null?void 0:E.editorConfig)==null?void 0:N.customization)||{},review:{reviewDisplay:"final"}}},document:{key:v.buildUUID(),title:H,url:M(o.loadUrl,F),fileType:z,...((x=o.onlyOfficeConfig)==null?void 0:x.document)||{}},documentType:se(z)};return}}catch(g){console.info("预览错误: ",g)}};e.watch([n,o.file],([r,h])=>{r&&e.nextTick(()=>{u(o.file)})});const m=()=>{n.value=!1,s.office=!1,s.image=!1,s.video=!1};return(r,h)=>{var V,C;const w=e.resolveComponent("el-image-viewer");return n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(V=c.value)!=null&&V.url&&s.image?(e.openBlock(),e.createBlock(w,{key:0,onClose:h[0]||(h[0]=E=>{c.value=null,s.image=!1}),ref:"previewImgRef","url-list":[(C=c.value)==null?void 0:C.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(Pe),{modelValue:s.office,"onUpdate:modelValue":h[1]||(h[1]=E=>s.office=E),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:m,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ye),{"config-options":l.value,"document-server-url":t.onlyOfficeConfig.serverUrl||t.onlyofficeServer},null,8,["config-options","document-server-url"])]),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),a6="",Ie=b(Ne),De={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},ve={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$e=["xlink:href"],Me=["src"],Re={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},He=["xlink:href"],Oe=["src"],Te=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(t){const o=t,n=e.computed(()=>{var l,c,s;return/^http?:\/\//.test(o.name)?"img":/i-[^:]+:[^:]+/.test(o.name)?"unocss":(l=o.name)!=null&&l.startsWith("iksig")?"iksig":(c=o.name)!=null&&c.includes(":")?"iconify":(s=o.name)!=null&&s.startsWith("iksvg")?"svg":"i"}),a=e.computed(()=>{const l=[];if(o.flip)switch(o.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}o.rotate&&l.push(`rotate(${o.rotate%360}deg)`);const c={...o.color&&{color:o.color},...o.size&&{fontSize:typeof o.size=="number"?`${o.size}px`:o.size},...l.length&&{transform:l.join(" ")},padding:o.showBg||o.bg?o.padding:0,...o.color&&n.value!=="iksig"?{"--ik-color-icon-dark":o.color,"--ik-color-icon-light":o.colorLight||v.ikColor.setOpacity(o.color,o.opacity)}:{}};return o.width&&(c.width=c.height=typeof o.width=="number"?`${o.width}px`:o.width),c});return(l,c)=>{const s=e.resolveComponent("el-tooltip"),u=e.resolveComponent("el-button");return l.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",De,[l.notip||!l.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:n.value==="unocss","show-bg":l.showBg||l.bg,default:l.size==="default",small:l.size==="small",big:l.size==="big",warning:l.warning||o.type==="warning",primary:l.primary||o.type==="primary",success:l.success||o.type==="success",error:l.error||o.type==="error",active:l.active,disabled:l.disabled}]),style:e.normalizeStyle(a.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.name}`),style:e.normalizeStyle(a.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",ve,[e.createElementVNode("use",{"xlink:href":`#${l.name}`},null,8,$e)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.name,class:"h-[1em] w-[1em]"},null,8,Me)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.name),style:e.normalizeStyle(a.value)},null,6))],6)):(e.openBlock(),e.createBlock(s,{key:1,content:l.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:n.value==="unocss","show-bg":l.showBg||l.bg,default:l.size==="default",small:l.size==="small",big:l.size==="big",warning:l.warning||o.type==="warning",primary:l.primary||o.type==="primary",success:l.success||o.type==="success",error:l.error||o.type==="error",active:l.active}]),style:e.normalizeStyle(a.value)},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.name}`),style:e.normalizeStyle(a.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",Re,[e.createElementVNode("use",{"xlink:href":`#${l.name}`},null,8,He)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.name,class:"h-[1em] w-[1em]"},null,8,Oe)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.name),style:e.normalizeStyle(a.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(u,{key:1,type:["warning","error"].includes(l.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),_:1},8,["type"]))}}}),c6="",y=b(S(Te,[["__scopeId","data-v-7d95dbf5"]])),Ue={key:0,class:"exit-main-page-maximize"},qe=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",null,[t.showBg&&t.fullscreen?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(e.unref(y),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(y),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),d6="",Le=S(qe,[["__scopeId","data-v-79f49df8"]]),je={class:"base-header"},We=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,n=e.useModel(t,"modelValue"),a=e.ref(o.fullscreen),l=()=>{a.value=!a.value},c=e.defineComponent({setup(){return()=>e.h(Le,{showBg:o.showCloseBg,fullscreen:o.fullscreen})}});return(s,u)=>{const m=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(m,e.mergeProps({modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r)},s.$attrs,{"close-icon":e.unref(c),class:`ik-base-dialog ${s.noHeader?"no-header":""} ${s.noFooter?"no-footer":""}`,fullscreen:a.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(s.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(s.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",je,[e.renderSlot(s.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(s.title),1)])]),s.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(y),{key:0,onClick:l,name:a.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:a.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:2},[s.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),p6="",Pe=b(We);function Ze(t,o,n,a){function l(c){return c instanceof n?c:new n(function(s){s(c)})}return new(n||(n=Promise))(function(c,s){function u(h){try{r(a.next(h))}catch(w){s(w)}}function m(h){try{r(a.throw(h))}catch(w){s(w)}}function r(h){h.done?c(h.value):l(h.value).then(u,m)}r((a=a.apply(t,o||[])).next())})}function Qe(t,o){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},a,l,c,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(r){return function(h){return m([r,h])}}function m(r){if(a)throw new TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(n=0)),n;)try{if(a=1,l&&(c=r[0]&2?l.return:r[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,r[1])).done)return c;switch(l=0,c&&(r=[r[0]&2,c.value]),r[0]){case 0:case 1:c=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,l=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(c=n.trys,!(c=c.length>0&&c[c.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!c||r[1]>c[0]&&r[1]<c[3])){n.label=r[1];break}if(r[0]===6&&n.label<c[1]){n.label=c[1],c=r;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(r);break}c[2]&&n.ops.pop(),n.trys.pop();continue}r=o.call(t,n)}catch(h){r=[6,h],l=0}finally{a=c=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var Je=function(t,o){return Ze(void 0,void 0,void 0,function(){return Qe(this,function(n){return[2,new Promise(function(a,l){try{if(window.DocsAPI)return a(null);var c=document.getElementById(o);if(c)var s=setInterval(function(){var m=c.getAttribute("loading");if(!m){if(clearInterval(s),window.DocsAPI)return a(null);var r=L(o,t,a,l);c.remove(),document.body.appendChild(r)}},500);else{var u=L(o,t,a,l);document.body.appendChild(u)}}catch(m){console.error(m)}})]})})},L=function(t,o,n,a){var l=document.createElement("script");return l.id=t,l.type="text/javascript",l.src=o,l.async=!0,l.onload=function(){l.removeAttribute("loading"),n(null)},l.onerror=function(c){l.removeAttribute("loading"),a(c)},l.setAttribute("loading",""),l},R=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var t=this,o=this.documentServerUrl;o.endsWith("/")||(o+="/");var n="".concat(o,"web-apps/apps/api/documents/api.js");Je(n,"onlyoffice-api-script").then(function(){return t.onLoad()}).catch(function(){t.onError(-2)})},unmounted:function(){var t,o=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[o]&&(window.DocEditor.instances[o].destroyEditor(),window.DocEditor.instances[o]=void 0)},watch:{config:{handler:function(t,o){this.onChangeProps()},deep:!0},document_fileType:function(t,o){this.onChangeProps()},document_title:function(t,o){this.onChangeProps()},documentType:function(t,o){this.onChangeProps()},editorConfig_lang:function(t,o){this.onChangeProps()},height:function(t,o){this.onChangeProps()},type:function(t,o){this.onChangeProps()},width:function(t,o){this.onChangeProps()}},methods:{onLoad:function(){var t,o;try{var n=this.id||"";if(window.DocsAPI||this.onError(-3),!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]){console.log("Skip loading. Instance already exists",n);return}!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances||(window.DocEditor={instances:{}});var a=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),l=window.DocsAPI.DocEditor(n,a);window.DocEditor.instances[n]=l}catch(c){console.error(c),this.onError(-1)}},onError:function(t){var o;switch(t){case-2:o="Error load DocsAPI from "+this.documentServerUrl;break;case-3:o="DocsAPI is not defined";break;default:o="Unknown error loading component",t=-1}typeof this.onLoadComponentError>"u"?console.error(o):this.onLoadComponentError(t,o)},onAppReady:function(){var t=this.id||"";this.events_onAppReady(window.DocEditor.instances[t])},onChangeProps:function(){var t,o=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[o]&&(window.DocEditor.instances[o].destroyEditor(),window.DocEditor.instances[o]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ke=["id"];function Ge(t,o,n,a,l,c){return e.openBlock(),e.createElementBlock("div",{id:t.id},null,8,Ke)}R.render=Ge,R.__file="src/components/DocumentEditor.vue";const Xe=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(t){const o=t,n=e.ref({width:"100%",height:"100%",...o.configOptions||{},...o.configOptions}),a=()=>{console.info("文档加载完成",o.configOptions)};return(l,c)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:o.officeHeight})},[e.createVNode(e.unref(R),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":t.documentServerUrl,config:n.value,events_onDocumentReady:a},null,8,["id","document-server-url","config"])],4))}}),f6="",Ye=b(S(Xe,[["__scopeId","data-v-98d51ef9"]])),e3=t=>(e.pushScopeId("data-v-10a62ee9"),t=t(),e.popScopeId(),t),t3={class:"ik-flie-list"},o3={class:"name"},n3={key:1},l3=["src"],i3={class:"file-icon"},s3={class:"file-name-loading"},a3={class:"file-name"},c3={key:0},r3={key:0,class:"file-size"},d3={class:"name"},p3={class:"file-name-loading"},f3={class:"file-name"},m3={class:"file-size"},h3={class:"operate-btn"},u3={class:"card"},g3={class:"title"},A3=e3(()=>e.createElementVNode("img",{src:Z,class:"w-[48px] h-[48px]"},null,-1)),_3={class:"ik-flie-list"},y3={class:"name"},w3={key:1},k3=["src"],B3={class:"file-icon"},V3={class:"file-name-loading"},C3={class:"file-name"},E3={key:0},z3={key:0,class:"file-size"},b3={key:0},x3=e.defineComponent({__name:"index",props:e.mergeModels({showIcon:{type:Boolean,default:!0},title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},imageMode:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["delete","exceed","success","error","outSize"],["update:modelValue"]),setup(t,{emit:o}){const n=t,a=o,l=e.useModel(t,"modelValue"),s={...{name:"name",url:"url",suffix:"suffix",size:"size"},...n.defaultFileds},u=e.computed(()=>n.size),m=e.ref(null),r=e.ref([]),h=e.ref({}),w=e.ref(!1),V=d=>{const p=d.size/1024/1024;return p<u.value?!0:(a("outSize"),_.ElMessage({message:`上传文件大小(${p.toFixed(4)}MB)超出允许最大值(${n.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3}),!1)},C=(d,p)=>{var k;d.size/1024/1024<u.value||e.nextTick(()=>{l.value.pop()}),n.accept!=="*"&&!n.accept.split(",").includes((k=d==null?void 0:d.raw)==null?void 0:k.type)&&!n.accept.split(",").includes(`.${d.name.split(".").pop()}`)&&(_.ElMessage({message:`不允许的上传文件格式(${d.name}),请重新选择`,type:"warning",showClose:!0,duration:5e3}),e.nextTick(()=>{l.value.pop()}))},E=()=>!1,N=(d,p)=>{var i,f;d.status="ready",p!==void 0&&r.value.splice(p,1),(i=m.value)==null||i.handleStart(d.raw),(f=m.value)==null||f.submit()},x=(d,p)=>{var D,P;const i=l.value.length,f=n.limit-i;let k=0;for(;k<f&&k<d.length;)(D=m.value)==null||D.handleStart(d[k]),(P=m.value)==null||P.submit(),k++;_.ElMessage({message:(n==null?void 0:n.limitText)||`最大可上传${n.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),a("exceed",d)},g=(d,p,i)=>{a("success",d,p,i)},F=(d,p,i)=>{r.value.push(p),a("error",d,p,i)},z=d=>{var p,i;h.value={...d,name:d[s.name],url:M(n.loadUrl,d[s.url]||((i=(p=d==null?void 0:d.response)==null?void 0:p.data)==null?void 0:i.id))},w.value=!0},H=d=>{v.ikFile.downloadByOnlineUrl(d[s.url],d[s.name])},W=(d,p=!1)=>{var i;(i=m.value)==null||i.abort(d)},I=d=>{var p,i;try{d.status!=="success"&&W(d),(p=m.value)==null||p.handleRemove(d),l.value=l.value.filter(f=>f.uid!==d.uid),a("delete",d)}catch(f){(i=m.value)==null||i.handleRemove(d),l.value=l.value.filter(k=>k.uid!==d.uid),a("delete",d),console.error(f)}},F3=(d,p)=>{r.value.splice(p,1)},O=e.computed(()=>l.value.length>=n.limit||n.disabled);return(d,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.preview?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="button"?(e.openBlock(),e.createBlock(e.unref(_.ElUpload),e.mergeProps({key:0,class:"ik-file-upload"},d.$attrs,{accept:t.accept,action:t.action,"file-list":l.value,"onUpdate:fileList":p[0]||(p[0]=i=>l.value=i),ref_key:"refUpload",ref:m,"before-upload":V,"before-remove":E,"on-exceed":x,"on-change":C,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":g,"on-error":F}),{trigger:e.withCtx(()=>[d.$slots.trigger?e.renderSlot(d.$slots,"trigger",{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.unref(_.ElButton),{key:1,disabled:O.value},e.createSlots({default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(t.title),1)]),_:2},[t.showIcon?{name:"icon",fn:e.withCtx(()=>[e.createVNode(e.unref(y),{name:"iksvg_daoru",disabled:O.value},null,8,["disabled"])]),key:"0"}:void 0]),1032,["disabled"]))]),file:e.withCtx(({file:i})=>[e.createElementVNode("div",t3,[e.createElementVNode("div",o3,[!d.$slots.fileIcon&&(!t.customIconData[e.unref(A)(i,s)]||!t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(q,{key:0,type:e.unref(A)(i,s)},null,8,["type"])):!d.$slots.fileIcon&&t.customIconData[e.unref(A)(i,s)]&&t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",n3,[t.customIconData[e.unref(A)(i,s)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,l3)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",i3,[e.renderSlot(d.$slots,"fileIcon",{file:i},void 0,!0)]),e.createElementVNode("div",s3,[e.createElementVNode("p",a3,[e.createTextVNode(e.toDisplayString(i[s.name]||i.name)+" ",1),i.percentage&&i.status==="uploading"?(e.openBlock(),e.createElementBlock("span",c3,"("+e.toDisplayString(i.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),i.status==="success"?(e.openBlock(),e.createElementBlock("p",r3,e.toDisplayString(e.unref($)(i.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),i.percentage&&i.status==="uploading"?(e.openBlock(),e.createBlock(e.unref(_.ElProgress),{key:1,"text-inside":"",percentage:i.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),e.createElementVNode("div",null,[i.status==="success"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(y),{onClick:f=>z(i),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),e.createVNode(e.unref(y),{onClick:f=>I(i),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(e.openBlock(),e.createBlock(e.unref(y),{key:1,onClick:f=>I(i),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:e.withCtx(()=>{var i;return[!t.preview&&t.tip?(e.openBlock(),e.createBlock(e.unref(_.ElTooltip),{key:0,effect:"dark",content:n.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(T))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("v-if",!0),(i=r.value)!=null&&i.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.value,(f,k)=>(e.openBlock(),e.createElementBlock("div",{class:"ik-error-flie-list",key:f.uid},[e.createElementVNode("div",d3,[e.createVNode(e.unref(_.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(e.unref(le))]),_:1}),e.createElementVNode("div",p3,[e.createElementVNode("p",f3,e.toDisplayString(f[s.name]||f.name),1),e.createElementVNode("p",m3,e.toDisplayString(e.unref($)(f.size/1024/1024))+"MB ",1)])]),e.withDirectives(e.createElementVNode("div",h3,[e.createVNode(e.unref(_.ElIcon),{style:{"vertical-align":"middle"},onClick:D=>N(f,k),title:"重新上传",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee))]),_:2},1032,["onClick"]),e.createVNode(e.unref(_.ElIcon),{class:"error",onClick:D=>F3(f,k),title:"删除"},{default:e.withCtx(()=>[e.createVNode(e.unref(J))]),_:2},1032,["onClick"])],512),[[e.vShow,(f==null?void 0:f.status)==="fail"]])]))),128)):e.createCommentVNode("v-if",!0)]}),_:3},16,["accept","action","file-list","multiple","headers","limit"])):(e.openBlock(),e.createBlock(e.unref(_.ElUpload),e.mergeProps({key:1,"file-list":l.value,"onUpdate:fileList":p[1]||(p[1]=i=>l.value=i),class:["ik-file-pload-card",{plain:t.plain}]},d.$attrs,{accept:t.accept,action:t.action,disabled:O.value,ref_key:"refUpload",ref:m,"before-upload":V,"before-remove":E,"on-exceed":x,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":g,"on-error":F,"on-change":C}),{file:e.withCtx(({file:i})=>[e.createElementVNode("div",_3,[e.createElementVNode("div",y3,[!d.$slots.fileIcon&&(!t.customIconData[e.unref(A)(i,s)]||!t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(q,{key:0,type:e.unref(A)(i,s)},null,8,["type"])):!d.$slots.fileIcon&&t.customIconData[e.unref(A)(i,s)]&&t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",w3,[t.customIconData[e.unref(A)(i,s)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,k3)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(A)(i,s)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",B3,[e.renderSlot(d.$slots,"fileIcon",{file:i},void 0,!0)]),e.createElementVNode("div",V3,[e.createElementVNode("p",C3,[e.createTextVNode(e.toDisplayString(i[s.name]||i.name)+" ",1),i.percentage&&i.status==="uploading"?(e.openBlock(),e.createElementBlock("span",E3,"("+e.toDisplayString(i.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),i.status==="success"?(e.openBlock(),e.createElementBlock("p",z3,e.toDisplayString(e.unref($)(i.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),i.percentage&&i.status==="uploading"?(e.openBlock(),e.createBlock(e.unref(_.ElProgress),{key:1,"text-inside":"",percentage:i.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),t.preview?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preview||i.percentage===100?(e.openBlock(),e.createBlock(e.unref(_.ElIcon),{key:0,title:"预览",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(oe),{onClick:f=>z(i)},null,8,["onClick"])]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(_.ElIcon),{title:"下载",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{onClick:f=>H(i)},null,8,["onClick"])]),_:2},1024)],64)):(e.openBlock(),e.createElementBlock("div",b3,[i.status==="success"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(y),{onClick:f=>z(i),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),e.createVNode(e.unref(y),{onClick:f=>I(i),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(e.openBlock(),e.createBlock(e.unref(y),{key:1,onClick:f=>I(i),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:e.withCtx(()=>[e.createElementVNode("div",u3,[e.createElementVNode("div",g3,[t.imageMode?e.renderSlot(d.$slots,"image",{key:0},()=>[A3],!0):t.showIcon?(e.openBlock(),e.createBlock(e.unref(y),{key:1,name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40})):e.createCommentVNode("v-if",!0),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),!t.preview&&t.tip?(e.openBlock(),e.createBlock(e.unref(_.ElTooltip),{key:0,effect:"dark",content:n.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(T))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("v-if",!0)])]),e.createVNode(e.unref(y),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","class","accept","action","disabled","multiple","headers","limit"]))],64)),e.createVNode(e.unref(Ie),{show:w.value,"onUpdate:show":p[2]||(p[2]=i=>w.value=i),loadUrl:t.loadUrl,file:h.value,onlyofficeServer:t.onlyofficeServer,onlyOfficeConfig:t.onlyOfficeConfig},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig"])],64))}}),h6="",u6="",j=b(S(x3,[["__scopeId","data-v-10a62ee9"]]));B.IkUploadFile=j,B.default=j,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(C,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro"],e):(C=typeof globalThis<"u"?globalThis:C||self,e(C.index={},C.vue,C["element-plus"],C["iking-utils-pro"]))})(this,function(C,e,w,M){"use strict";const z=(t,n)=>{if(t.install=l=>{for(const o of[t,...Object.values(n??{})])l.component(o.name,o)},n)for(const[l,o]of Object.entries(n))t[l]=o;return t},Q="data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";/*! Element Plus Icons Vue v2.3.1 */var J=e.defineComponent({name:"Delete",__name:"delete",setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),K=J,G=e.defineComponent({name:"Download",__name:"download",setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.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"})]))}}),X=G,Y=e.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.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.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 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.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),j=Y,ee=e.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),te=ee,oe=e.defineComponent({name:"View",__name:"view",setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.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-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ne=oe,le=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 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"})]))}}),ie=le;const _=(t,n)=>{var s,i,f,g;const l=(s=t==null?void 0:t.response)!=null&&s.data?L((f=(i=t==null?void 0:t.response)==null?void 0:i.data)==null?void 0:f.suffix):((g=t.raw)==null?void 0:g.type)||L(t[n.suffix]),o=l==null?void 0:l.toLowerCase(),c={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let r in c)if(typeof o=="string"&&(o.includes(r)||o===r))return c[r];return"unknown"},ae={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},L=t=>{const n=t==null?void 0:t.toLocaleLowerCase(),l=n!=null&&n.startsWith(".")?n:`.${n}`;return l&&ae[l]||"unknow"},ce=t=>{let n="",l=["doc","docx"],o=["xls","xlsx"],c=["ppt","pptx"],s=["pdf"];return l.includes(t)&&(n="word"),o.includes(t)&&(n="cell"),c.includes(t)&&(n="slide"),s.includes(t)&&(n="text-pdf"),n},se={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},re=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],de={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},pe=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],fe={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},he=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],me={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},ue=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],ge={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},Ae=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],_e={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},ye=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],we={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},ke=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],Be={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},Ve=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],Ce={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Ee=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],xe={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},ze=[e.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),e.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),e.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),e.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],ve={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},be=[e.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),e.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),e.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Fe={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Se=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],W=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(t){const n=t,l=e.computed(()=>n.file?_(n.file,n.fields):n.type);return(o,c)=>l.value==="image"?(e.openBlock(),e.createElementBlock("svg",se,re)):l.value==="zip"?(e.openBlock(),e.createElementBlock("svg",de,pe)):l.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",fe,he)):l.value==="word"?(e.openBlock(),e.createElementBlock("svg",me,ue)):l.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",ge,Ae)):l.value==="txt"?(e.openBlock(),e.createElementBlock("svg",_e,ye)):l.value==="audio"?(e.openBlock(),e.createElementBlock("svg",we,ke)):l.value==="video"?(e.openBlock(),e.createElementBlock("svg",Be,Ve)):l.value==="excel"?(e.openBlock(),e.createElementBlock("svg",Ce,Ee)):l.value==="exe"?(e.openBlock(),e.createElementBlock("svg",xe,ze)):l.value==="json"?(e.openBlock(),e.createElementBlock("svg",ve,be)):(e.openBlock(),e.createElementBlock("svg",Fe,Se))}}),S=(t,n)=>{const l=t.__vccOpts||t;for(const[o,c]of n)l[o]=c;return l},R=t=>t%1===0?t.toString():t.toFixed(2),H=(t,n)=>n?n.startsWith("http")?n:`${t||location.origin}${n}`:"",Ne=t=>{const n=e.inject("loadUrl"),l=e.computed(()=>t.loadUrl||(n==null?void 0:n.value)),o=e.inject("uploadUrl"),c=e.computed(()=>t.action||t.uploadUrl||(o==null?void 0:o.value)),s=e.inject("token"),i=e.computed(()=>t.token||(s==null?void 0:s.value)),f=e.inject("onlyofficeConfig"),g=e.computed(()=>t.onlyofficeConfig||(f==null?void 0:f.value)),r=e.inject("userInfo"),m=e.computed(()=>t.userInfo||(r==null?void 0:r.value));return{cLoadUrl:l,cUploadUrl:c,cToken:i,cOnlyofficeConfig:g,cUserInfo:m}},Ie=e.defineComponent({__name:"IkPreviewFileDialog",props:e.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(t){const n=t,l=e.useModel(t,"show"),o=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...n.field})),c=e.ref(null),s=e.ref(null),i=e.reactive({image:!1,office:!1,video:!1}),f=r=>{var m,y,V,E,B,v,b;try{const A=((m=r==null?void 0:r.response)==null?void 0:m.data)||r,N=A[o.value.url]||(A==null?void 0:A.id)||A.attachmentId,x=(y=A[o.value.suffix]||A.attachmentSuffix)==null?void 0:y.toLowerCase(),I=A[o.value.name]||(A==null?void 0:A.attachmentName)||(A==null?void 0:A.originName);if(s.value={...r,name:r[o.value.name],url:H(n.loadUrl,N)},r&&_(r,o.value)==="image"){i.image=!0;return}else if((((V=n.onlyOfficeConfig)==null?void 0:V.accept)||n.onlyOfficeAccept).includes(x)){i.office=!0,c.value={...n.onlyOfficeConfig,editorConfig:{...((E=n.onlyOfficeConfig)==null?void 0:E.editorConfig)||{},customization:{...((v=(B=n.onlyOfficeConfig)==null?void 0:B.editorConfig)==null?void 0:v.customization)||{},review:{reviewDisplay:"final"}}},document:{key:M.buildUUID(),title:I,url:H(n.loadUrl,N),fileType:x,...((b=n.onlyOfficeConfig)==null?void 0:b.document)||{}},documentType:ce(x)};return}}catch(A){console.info("预览错误: ",A)}};e.watch([l,n.file],([r,m])=>{r&&e.nextTick(()=>{f(n.file)})});const g=()=>{l.value=!1,i.office=!1,i.image=!1,i.video=!1};return(r,m)=>{var V,E;const y=e.resolveComponent("el-image-viewer");return l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(V=s.value)!=null&&V.url&&i.image?(e.openBlock(),e.createBlock(y,{key:0,onClose:m[0]||(m[0]=B=>{s.value=null,i.image=!1}),ref:"previewImgRef","url-list":[(E=s.value)==null?void 0:E.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(Qe),{modelValue:i.office,"onUpdate:modelValue":m[1]||(m[1]=B=>i.office=B),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:g,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>{var B;return[e.createVNode(e.unref(t3),{"config-options":c.value,"document-server-url":((B=t.onlyOfficeConfig)==null?void 0:B.serverUrl)||t.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),f6="",De=z(Ie),$e={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},Me={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Re=["xlink:href"],He=["src"],Oe={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Ue=["xlink:href"],Te=["src"],qe=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(t){const n=t,l=e.inject("iconConfig"),o=e.computed(()=>({...(l==null?void 0:l.value)||{},...n})),c=e.computed(()=>{const{name:i}=o.value;return/^http?:\/\//.test(i)?"img":/i-[^:]+:[^:]+/.test(i)?"unocss":i!=null&&i.startsWith("iksig")?"iksig":i!=null&&i.includes(":")?"iconify":i!=null&&i.startsWith("iksvg")?"svg":"i"}),s=e.computed(()=>{const i=[];if(o.value.flip)switch(o.value.flip){case"horizontal":i.push("rotateY(180deg)");break;case"vertical":i.push("rotateX(180deg)");break;case"both":i.push("rotateX(180deg)"),i.push("rotateY(180deg)");break}o.value.rotate&&i.push(`rotate(${o.value.rotate%360}deg)`);const f={...o.value.color&&{color:o.value.color},...o.value.size&&{fontSize:typeof o.value.size=="number"?`${o.value.size}px`:o.value.size},...i.length&&{transform:i.join(" ")},padding:o.value.showBg||o.value.bg?o.value.padding:0,...o.value.color&&c.value!=="iksig"?{"--ik-color-icon-dark":o.value.color,"--ik-color-icon-light":o.value.colorLight||M.ikColor.setOpacity(o.value.color,o.value.opacity)}:{}};return o.value.width&&(f.width=f.height=typeof o.value.width=="number"?`${o.value.width}px`:o.value.width),f});return(i,f)=>{const g=e.resolveComponent("el-tooltip"),r=e.resolveComponent("el-button");return o.value.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",$e,[o.value.notip||!o.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[i.name]:c.value==="unocss","show-bg":o.value.showBg||o.value.bg,default:o.value.size==="default",small:o.value.size==="small",big:o.value.size==="big",warning:o.value.warning||o.value.type==="warning",primary:o.value.primary||o.value.type==="primary",success:i.success||o.value.type==="success",error:o.value.error||o.value.type==="error",active:o.value.active,disabled:o.value.disabled}]),style:e.normalizeStyle(s.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.value.name}`),style:e.normalizeStyle(s.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",Me,[e.createElementVNode("use",{"xlink:href":`#${o.value.name}`},null,8,Re)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.value.name,class:"h-[1em] w-[1em]"},null,8,He)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.value.name),style:e.normalizeStyle(s.value)},null,6))],6)):(e.openBlock(),e.createBlock(g,{key:1,content:o.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[i.name]:c.value==="unocss","show-bg":o.value.showBg||o.value.bg,default:o.value.size==="default",small:o.value.size==="small",big:o.value.size==="big",warning:o.value.warning||o.value.type==="warning",primary:i.primary||o.value.type==="primary",success:i.success||o.value.type==="success",error:o.value.error||o.value.type==="error",active:o.value.active}]),style:e.normalizeStyle(s.value)},[c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.value.name}`),style:e.normalizeStyle(s.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",Oe,[e.createElementVNode("use",{"xlink:href":`#${o.value.name}`},null,8,Ue)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.value.name,class:"h-[1em] w-[1em]"},null,8,Te)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.value.name),style:e.normalizeStyle(s.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(r,{key:1,type:["warning","error"].includes(o.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.title),1)]),_:1},8,["type"]))}}}),h6="",k=z(S(qe,[["__scopeId","data-v-1be337e4"]])),je={key:0,class:"exit-main-page-maximize"},Le=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",null,[t.showBg&&t.fullscreen?(e.openBlock(),e.createElementBlock("div",je,[e.createVNode(e.unref(k),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(k),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),u6="",We=S(Le,[["__scopeId","data-v-79f49df8"]]),Pe={class:"base-header"},Ze=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=t,l=e.useModel(t,"modelValue"),o=e.ref(n.fullscreen),c=()=>{o.value=!o.value},s=e.defineComponent({setup(){return()=>e.h(We,{showBg:n.showCloseBg,fullscreen:n.fullscreen})}});return(i,f)=>{const g=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(g,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=r=>l.value=r)},i.$attrs,{"close-icon":e.unref(s),class:`ik-base-dialog ${i.noHeader?"no-header":""} ${i.noFooter?"no-footer":""}`,fullscreen:o.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(i.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(i.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",Pe,[e.renderSlot(i.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(i.title),1)])]),i.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(k),{key:0,onClick:c,name:o.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:o.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:2},[i.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),g6="",Qe=z(Ze);function Je(t,n,l,o){function c(s){return s instanceof l?s:new l(function(i){i(s)})}return new(l||(l=Promise))(function(s,i){function f(m){try{r(o.next(m))}catch(y){i(y)}}function g(m){try{r(o.throw(m))}catch(y){i(y)}}function r(m){m.done?s(m.value):c(m.value).then(f,g)}r((o=o.apply(t,n||[])).next())})}function Ke(t,n){var l={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,c,s,i;return i={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function f(r){return function(m){return g([r,m])}}function g(r){if(o)throw new TypeError("Generator is already executing.");for(;i&&(i=0,r[0]&&(l=0)),l;)try{if(o=1,c&&(s=r[0]&2?c.return:r[0]?c.throw||((s=c.return)&&s.call(c),0):c.next)&&!(s=s.call(c,r[1])).done)return s;switch(c=0,s&&(r=[r[0]&2,s.value]),r[0]){case 0:case 1:s=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,c=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(s=l.trys,!(s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){l=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){l.label=r[1];break}if(r[0]===6&&l.label<s[1]){l.label=s[1],s=r;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(r);break}s[2]&&l.ops.pop(),l.trys.pop();continue}r=n.call(t,l)}catch(m){r=[6,m],c=0}finally{o=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var Ge=function(t,n){return Je(void 0,void 0,void 0,function(){return Ke(this,function(l){return[2,new Promise(function(o,c){try{if(window.DocsAPI)return o(null);var s=document.getElementById(n);if(s)var i=setInterval(function(){var g=s.getAttribute("loading");if(!g){if(clearInterval(i),window.DocsAPI)return o(null);var r=P(n,t,o,c);s.remove(),document.body.appendChild(r)}},500);else{var f=P(n,t,o,c);document.body.appendChild(f)}}catch(g){console.error(g)}})]})})},P=function(t,n,l,o){var c=document.createElement("script");return c.id=t,c.type="text/javascript",c.src=n,c.async=!0,c.onload=function(){c.removeAttribute("loading"),l(null)},c.onerror=function(s){c.removeAttribute("loading"),o(s)},c.setAttribute("loading",""),c},O=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var t=this,n=this.documentServerUrl;n.endsWith("/")||(n+="/");var l="".concat(n,"web-apps/apps/api/documents/api.js");Ge(l,"onlyoffice-api-script").then(function(){return t.onLoad()}).catch(function(){t.onError(-2)})},unmounted:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0)},watch:{config:{handler:function(t,n){this.onChangeProps()},deep:!0},document_fileType:function(t,n){this.onChangeProps()},document_title:function(t,n){this.onChangeProps()},documentType:function(t,n){this.onChangeProps()},editorConfig_lang:function(t,n){this.onChangeProps()},height:function(t,n){this.onChangeProps()},type:function(t,n){this.onChangeProps()},width:function(t,n){this.onChangeProps()}},methods:{onLoad:function(){var t,n;try{var l=this.id||"";if(window.DocsAPI||this.onError(-3),!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[l]){console.log("Skip loading. Instance already exists",l);return}!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances||(window.DocEditor={instances:{}});var o=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),c=window.DocsAPI.DocEditor(l,o);window.DocEditor.instances[l]=c}catch(s){console.error(s),this.onError(-1)}},onError:function(t){var n;switch(t){case-2:n="Error load DocsAPI from "+this.documentServerUrl;break;case-3:n="DocsAPI is not defined";break;default:n="Unknown error loading component",t=-1}typeof this.onLoadComponentError>"u"?console.error(n):this.onLoadComponentError(t,n)},onAppReady:function(){var t=this.id||"";this.events_onAppReady(window.DocEditor.instances[t])},onChangeProps:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Xe=["id"];function Ye(t,n,l,o,c,s){return e.openBlock(),e.createElementBlock("div",{id:t.id},null,8,Xe)}O.render=Ye,O.__file="src/components/DocumentEditor.vue";const e3=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(t){const n=t,l=e.ref({width:"100%",height:"100%",...n.configOptions||{},...n.configOptions}),o=()=>{console.info("文档加载完成",n.configOptions)};return(c,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:n.officeHeight})},[e.createVNode(e.unref(O),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":t.documentServerUrl,config:l.value,events_onDocumentReady:o},null,8,["id","document-server-url","config"])],4))}}),A6="",t3=z(S(e3,[["__scopeId","data-v-98d51ef9"]])),o3=t=>(e.pushScopeId("data-v-cbfa5eb9"),t=t(),e.popScopeId(),t),n3={class:"ik-flie-list"},l3={class:"name"},i3={key:1},a3=["src"],c3={class:"file-icon"},s3={class:"file-name-loading"},r3={class:"file-name"},d3={key:0},p3={key:0,class:"file-size"},f3={class:"name"},h3={class:"file-name-loading"},m3={class:"file-name"},u3={class:"file-size"},g3={class:"operate-btn"},A3={class:"card"},_3={class:"title"},y3=o3(()=>e.createElementVNode("img",{src:Q,class:"w-[48px] h-[48px]"},null,-1)),w3={class:"ik-flie-list"},k3={class:"name"},B3={key:1},V3=["src"],C3={class:"file-icon"},E3={class:"file-name-loading"},x3={class:"file-name"},z3={key:0},v3={key:0,class:"file-size"},b3={key:0},F3=e.defineComponent({__name:"index",props:e.mergeModels({showIcon:{type:Boolean,default:!0},title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},imageMode:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["delete","exceed","success","error","outSize"],["update:modelValue"]),setup(t,{emit:n}){const l=t,o=n,c=e.useModel(t,"modelValue"),i={...{name:"name",url:"url",suffix:"suffix",size:"size"},...l.defaultFileds},{cLoadUrl:f,cUploadUrl:g,cOnlyofficeConfig:r}=Ne(l),m=e.computed(()=>l.size),y=e.ref(null),V=e.ref([]),E=e.ref({}),B=e.ref(!1),v=d=>{const p=d.size/1024/1024;return p<m.value?!0:(o("outSize"),w.ElMessage({message:`上传文件大小(${p.toFixed(4)}MB)超出允许最大值(${l.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3}),!1)},b=(d,p)=>{var h;d.size/1024/1024<m.value||e.nextTick(()=>{c.value.pop()}),l.accept!=="*"&&!l.accept.split(",").includes((h=d==null?void 0:d.raw)==null?void 0:h.type)&&!l.accept.split(",").includes(`.${d.name.split(".").pop()}`)&&(w.ElMessage({message:`不允许的上传文件格式(${d.name}),请重新选择`,type:"warning",showClose:!0,duration:5e3}),e.nextTick(()=>{c.value.pop()}))},A=()=>!1,N=(d,p)=>{var u,a;d.status="ready",p!==void 0&&V.value.splice(p,1),(u=y.value)==null||u.handleStart(d.raw),(a=y.value)==null||a.submit()},x=(d,p)=>{var F,$;const u=c.value.length,a=l.limit-u;let h=0;for(;h<a&&h<d.length;)(F=y.value)==null||F.handleStart(d[h]),($=y.value)==null||$.submit(),h++;w.ElMessage({message:(l==null?void 0:l.limitText)||`最大可上传${l.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),o("exceed",d)},I=(d,p,u)=>{o("success",d,p,u)},U=(d,p,u)=>{V.value.push(p),o("error",d,p,u)},T=d=>{var p,u;E.value={...d,name:d[i.name],url:H(f.value,d[i.url]||((u=(p=d==null?void 0:d.response)==null?void 0:p.data)==null?void 0:u.id))},B.value=!0},S3=d=>{M.ikFile.downloadByOnlineUrl(d[i.url],d[i.name])},N3=(d,p=!1)=>{var u;(u=y.value)==null||u.abort(d)},D=d=>{var p,u;try{d.status!=="success"&&N3(d),(p=y.value)==null||p.handleRemove(d),c.value=c.value.filter(a=>a.uid!==d.uid),o("delete",d)}catch(a){(u=y.value)==null||u.handleRemove(d),c.value=c.value.filter(h=>h.uid!==d.uid),o("delete",d),console.error(a)}},I3=(d,p)=>{V.value.splice(p,1)},q=e.computed(()=>c.value.length>=l.limit||l.disabled);return(d,p)=>{var u;return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.preview?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="button"?(e.openBlock(),e.createBlock(e.unref(w.ElUpload),e.mergeProps({key:0,class:"ik-file-upload"},d.$attrs,{accept:t.accept,action:e.unref(g),"file-list":c.value,"onUpdate:fileList":p[0]||(p[0]=a=>c.value=a),ref_key:"refUpload",ref:y,"before-upload":v,"before-remove":A,"on-exceed":x,"on-change":b,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":I,"on-error":U}),{trigger:e.withCtx(()=>[d.$slots.trigger?e.renderSlot(d.$slots,"trigger",{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.unref(w.ElButton),{key:1,disabled:q.value},e.createSlots({default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(t.title),1)]),_:2},[t.showIcon?{name:"icon",fn:e.withCtx(()=>[e.createVNode(e.unref(k),{name:"iksvg_daoru",disabled:q.value},null,8,["disabled"])]),key:"0"}:void 0]),1032,["disabled"]))]),file:e.withCtx(({file:a})=>[e.createElementVNode("div",n3,[e.createElementVNode("div",l3,[!d.$slots.fileIcon&&(!t.customIconData[e.unref(_)(a,i)]||!t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(W,{key:0,type:e.unref(_)(a,i)},null,8,["type"])):!d.$slots.fileIcon&&t.customIconData[e.unref(_)(a,i)]&&t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",i3,[t.customIconData[e.unref(_)(a,i)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,a3)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",c3,[e.renderSlot(d.$slots,"fileIcon",{file:a},void 0,!0)]),e.createElementVNode("div",s3,[e.createElementVNode("p",r3,[e.createTextVNode(e.toDisplayString(a[i.name]||a.name)+" ",1),a.percentage&&a.status==="uploading"?(e.openBlock(),e.createElementBlock("span",d3,"("+e.toDisplayString(a.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),a.status==="success"?(e.openBlock(),e.createElementBlock("p",p3,e.toDisplayString(e.unref(R)(a.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),a.percentage&&a.status==="uploading"?(e.openBlock(),e.createBlock(e.unref(w.ElProgress),{key:1,"text-inside":"",percentage:a.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),e.createElementVNode("div",null,[a.status==="success"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(k),{onClick:h=>T(a),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),e.createVNode(e.unref(k),{onClick:h=>D(a),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(e.openBlock(),e.createBlock(e.unref(k),{key:1,onClick:h=>D(a),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:e.withCtx(()=>{var a;return[!t.preview&&t.tip?(e.openBlock(),e.createBlock(e.unref(w.ElTooltip),{key:0,effect:"dark",content:l.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:e.withCtx(()=>[e.createVNode(e.unref(w.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(j))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("v-if",!0),(a=V.value)!=null&&a.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(V.value,(h,F)=>(e.openBlock(),e.createElementBlock("div",{class:"ik-error-flie-list",key:h.uid},[e.createElementVNode("div",f3,[e.createVNode(e.unref(w.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(e.unref(ie))]),_:1}),e.createElementVNode("div",h3,[e.createElementVNode("p",m3,e.toDisplayString(h[i.name]||h.name),1),e.createElementVNode("p",u3,e.toDisplayString(e.unref(R)(h.size/1024/1024))+"MB ",1)])]),e.withDirectives(e.createElementVNode("div",g3,[e.createVNode(e.unref(w.ElIcon),{style:{"vertical-align":"middle"},onClick:$=>N(h,F),title:"重新上传",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(te))]),_:2},1032,["onClick"]),e.createVNode(e.unref(w.ElIcon),{class:"error",onClick:$=>I3(h,F),title:"删除"},{default:e.withCtx(()=>[e.createVNode(e.unref(K))]),_:2},1032,["onClick"])],512),[[e.vShow,(h==null?void 0:h.status)==="fail"]])]))),128)):e.createCommentVNode("v-if",!0)]}),_:3},16,["accept","action","file-list","multiple","headers","limit"])):(e.openBlock(),e.createBlock(e.unref(w.ElUpload),e.mergeProps({key:1,"file-list":c.value,"onUpdate:fileList":p[1]||(p[1]=a=>c.value=a),class:["ik-file-pload-card",{plain:t.plain}]},d.$attrs,{accept:t.accept,action:e.unref(g),disabled:q.value,ref_key:"refUpload",ref:y,"before-upload":v,"before-remove":A,"on-exceed":x,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":I,"on-error":U,"on-change":b}),{file:e.withCtx(({file:a})=>[e.createElementVNode("div",w3,[e.createElementVNode("div",k3,[!d.$slots.fileIcon&&(!t.customIconData[e.unref(_)(a,i)]||!t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(W,{key:0,type:e.unref(_)(a,i)},null,8,["type"])):!d.$slots.fileIcon&&t.customIconData[e.unref(_)(a,i)]&&t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",B3,[t.customIconData[e.unref(_)(a,i)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,V3)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(_)(a,i)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",C3,[e.renderSlot(d.$slots,"fileIcon",{file:a},void 0,!0)]),e.createElementVNode("div",E3,[e.createElementVNode("p",x3,[e.createTextVNode(e.toDisplayString(a[i.name]||a.name)+" ",1),a.percentage&&a.status==="uploading"?(e.openBlock(),e.createElementBlock("span",z3,"("+e.toDisplayString(a.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),a.status==="success"?(e.openBlock(),e.createElementBlock("p",v3,e.toDisplayString(e.unref(R)(a.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),a.percentage&&a.status==="uploading"?(e.openBlock(),e.createBlock(e.unref(w.ElProgress),{key:1,"text-inside":"",percentage:a.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),t.preview?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preview||a.percentage===100?(e.openBlock(),e.createBlock(e.unref(w.ElIcon),{key:0,title:"预览",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(ne),{onClick:h=>T(a)},null,8,["onClick"])]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(w.ElIcon),{title:"下载",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(X),{onClick:h=>S3(a)},null,8,["onClick"])]),_:2},1024)],64)):(e.openBlock(),e.createElementBlock("div",b3,[a.status==="success"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(k),{onClick:h=>T(a),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),e.createVNode(e.unref(k),{onClick:h=>D(a),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(e.openBlock(),e.createBlock(e.unref(k),{key:1,onClick:h=>D(a),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:e.withCtx(()=>[e.createElementVNode("div",A3,[e.createElementVNode("div",_3,[t.imageMode?e.renderSlot(d.$slots,"image",{key:0},()=>[y3],!0):t.showIcon?(e.openBlock(),e.createBlock(e.unref(k),{key:1,name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40})):e.createCommentVNode("v-if",!0),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),!t.preview&&t.tip?(e.openBlock(),e.createBlock(e.unref(w.ElTooltip),{key:0,effect:"dark",content:l.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:e.withCtx(()=>[e.createVNode(e.unref(w.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(j))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("v-if",!0)])]),e.createVNode(e.unref(k),{name:"iksvg_daoru",bg:"",size:24,width:40,padding:"0"})])]),_:3},16,["file-list","class","accept","action","disabled","multiple","headers","limit"]))],64)),e.createVNode(e.unref(De),{show:B.value,"onUpdate:show":p[2]||(p[2]=a=>B.value=a),loadUrl:e.unref(f),file:E.value,onlyofficeServer:((u=e.unref(r))==null?void 0:u.serverUrl)||t.onlyofficeServer,onlyOfficeConfig:e.unref(r)},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig"])],64)}}}),y6="",w6="",Z=z(S(F3,[["__scopeId","data-v-cbfa5eb9"]]));C.IkUploadFile=Z,C.default=Z,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-1be337e4]{display:flex}.exit-main-page-maximize[data-v-79f49df8]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-color-bg-icon);border-radius:50%}.exit-main-page-maximize span[data-v-79f49df8]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-79f49df8]{--ik-color-icon-dark: var(--ik-color-bgicon-dark);--ik-color-icon-light: var(--ik-color-bgicon-light)}.el-dialog.ik-base-dialog.no-header .el-dialog__header{height:0}.el-dialog.ik-base-dialog.no-header .el-dialog__header .base-header{overflow:hidden;display:none}.el-dialog.ik-base-dialog.no-header .el-dialog__header:after{display:none}.el-dialog.ik-base-dialog.no-footer .el-dialog__footer{height:0;overflow:hidden}._ik_web_ui_file-help-tooltip{z-index:9999!important}.ik-only-preview-dialog .el-dialog.is-fullscreen{padding:0}.ik-only-preview-dialog .el-dialog.is-fullscreen .el-dialog__body{max-height:100vh!important;padding:0}.el-button:not(.is-disabled):hover{--ik-color-icon-dark: var(--ik-color-tag-primary);--ik-color-icon-light: var(--ik-color-icon-light-hover)}.tip[data-v-cbfa5eb9]{margin-left:15px}.ik-flie-list[data-v-cbfa5eb9]{display:flex;align-items:center;font-size:14px;background-color:var(--ik-color-bg-page, #f5f8fa);padding:8px 20px;justify-content:space-between;border-radius:6px;cursor:pointer}.ik-flie-list[data-v-cbfa5eb9]:hover{background-color:var(--ik-menu-active-bg, #eaeef2)}.ik-flie-list i[data-v-cbfa5eb9]{font-size:18px}.ik-flie-list .file-name[data-v-cbfa5eb9]{font-size:12px}.ik-flie-list .file-size[data-v-cbfa5eb9]{color:var(--ik-color-icon-dark);font-size:12px}.ik-flie-list .file-img-icon[data-v-cbfa5eb9]{width:28px;height:32px;border-radius:4px;margin-right:4px;position:relative;top:2px}.ik-flie-list .file-icon-size[data-v-cbfa5eb9]{font-size:28px}.ik-flie-list .file-icon[data-v-cbfa5eb9]{display:inline}.ik-flie-list .file-icon[data-v-cbfa5eb9]:empty{display:none}.ik-flie-list .name[data-v-cbfa5eb9]{display:flex;align-items:center;flex:1;overflow:hidden}.ik-flie-list .name .file-name-loading[data-v-cbfa5eb9]{margin-left:10px;position:relative;flex:1;margin-right:6px;overflow:hidden}.ik-flie-list .name .file-name-loading p[data-v-cbfa5eb9]:first-child{margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 20px)}.ik-flie-list .name .file-name-loading[data-v-cbfa5eb9] .el-progress .el-progress-bar{padding-top:5px}.ik-flie-list svg[data-v-cbfa5eb9]{width:40px;height:40px}.error[data-v-cbfa5eb9]{margin-left:10px;vertical-align:middle}.error[data-v-cbfa5eb9]:hover{color:var(--el-color-error)}.primary[data-v-cbfa5eb9]:hover{color:var(--el-color-primary)!important;cursor:pointer}.error[data-v-cbfa5eb9]:hover{color:var(--ik-error, #f1416c);cursor:pointer}.ik-error-flie-list[data-v-cbfa5eb9]{display:flex;align-items:center;font-size:12px;padding:8px 20px;justify-content:space-between;border-radius:6px;background:var(--el-color-error-light-8)!important;margin:5px 0}.ik-error-flie-list .name[data-v-cbfa5eb9]{display:flex;align-items:center}.ik-error-flie-list .name .file-name-loading[data-v-cbfa5eb9]{margin-left:10px;position:relative;flex:1;margin-right:20px}.ik-error-flie-list .name .file-name-loading p[data-v-cbfa5eb9]{line-height:24px}.ik-error-flie-list .name .file-name-loading p[data-v-cbfa5eb9]:first-child{margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 20px)}.ik-error-flie-list i[data-v-cbfa5eb9]{font-size:18px}.ik-error-flie-list .info[data-v-cbfa5eb9]{color:var(--ik-error, #f1416c)}.ik-file-upload[data-v-cbfa5eb9]{width:100%}.ik-file-upload .el-icon[data-v-cbfa5eb9]{margin-left:8px;color:var(--el-color-info)}.ik-file-upload .el-icon[data-v-cbfa5eb9]:hover{color:var(--el-color-primary, #409eff)}.ik-file-upload .el-icon._ik_web_ui_file_help_icon[data-v-cbfa5eb9]{top:5px}.ik-file-upload.preview[data-v-cbfa5eb9] .el-upload{display:none}.ik-file-upload p[data-v-cbfa5eb9]{margin:0;padding:0}.ik-file-pload-card[data-v-cbfa5eb9]{width:100%;background-color:var(--ik-color-bg-page);display:flex;border-radius:var(--ik-border-radius-l);flex-direction:column;border:1px solid transparent;transition:all .25s}.ik-file-pload-card[data-v-cbfa5eb9] .el-upload{padding:var(--ik-margin-m-24) var(--ik-margin-s-20)}.ik-file-pload-card.plain[data-v-cbfa5eb9]{background-color:var(--ik-color-bg-page-content);box-shadow:0 0 18px 0 var(--ik-color-divider);border:1px solid var(--ik-color-divider)}.ik-file-pload-card.plain[data-v-cbfa5eb9]:hover{--ik-color-bgicon-dark: var(--ik-color-tag-primary);--ik-color-bgicon-light: var(--ik-color-icon-light-hover);--ik-color-bg-icon: var(--ik-color-bg-button-secondary-hover)}.ik-file-pload-card .el-icon[data-v-cbfa5eb9]{margin-left:8px;color:var(--el-color-info)}.ik-file-pload-card .el-icon[data-v-cbfa5eb9]:hover{color:var(--el-color-primary, #409eff)}.ik-file-pload-card .el-icon._ik_web_ui_file_help_icon[data-v-cbfa5eb9]{top:5px}.ik-file-pload-card[data-v-cbfa5eb9]:hover{--ik-color-icon-dark: var(--ik-color-tag-primary);--ik-color-icon-light: var(--ik-color-icon-light-hover);background-color:var(--ik-color-bg-page-content);border:1px solid var(--ik-theme-color)}.ik-file-pload-card:hover .ik-flie-list[data-v-cbfa5eb9]{background-color:var(--ik-color-bg-page)}.ik-file-pload-card[data-v-cbfa5eb9] .el-upload{width:100%}.ik-file-pload-card[data-v-cbfa5eb9] .el-upload .card{width:100%;display:flex;justify-content:space-between;align-items:center}.ik-file-pload-card[data-v-cbfa5eb9] .el-upload .card .title{display:flex;align-items:center;font-size:var(--ik-font-size-t5)}.ik-file-pload-card[data-v-cbfa5eb9] .el-upload .card .title span{color:var(--ik-color-font-normal);padding-left:8px}.ik-file-pload-card[data-v-cbfa5eb9] .el-upload .card .title span .tip{color:var(--ik-color-warning);padding:0;font-size:12px}.ik-file-pload-card[data-v-cbfa5eb9] .el-upload-list{margin:0}.ik-file-pload-card .ik-flie-list[data-v-cbfa5eb9]{margin:0 8px;background-color:var(--ik-color-bg-page-content);margin-top:var(--ik-margin-s-16);transition:background-color .25s;will-change:background-color}.ik-file-pload-card .ik-flie-list[data-v-cbfa5eb9]:hover{background-color:var(--ik-color-bg-button-secondary-hover)}
|