iking-web-ui-pro 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.index={},u.vue,u["iking-utils-pro"]))})(this,function(u,e,k){"use strict";const y=(o,t)=>{if(o.install=i=>{for(const c of[o,...Object.values(t??{})])i.component(c.name,c)},t)for(const[i,c]of Object.entries(t))o[i]=c;return o},v=(o,t)=>{const i=o.__vccOpts||o;for(const[c,n]of t)i[c]=n;return i},O=(o,t=2)=>{if(o===void 0)return"";if(o===0)return"0 B";const i=["B","KB","MB","GB","TB"],c=Math.floor(Math.log(o)/Math.log(1024));let n=o/Math.pow(1024,c);return(n%1===0?n.toFixed(t||0):n.toFixed(t))+" "+i[c]},B=(o,t)=>t?t.startsWith("http")?t:`${o||location.origin}${t}`:"",x=(o,t)=>{var s,a,d,p;const i=(s=o==null?void 0:o.response)!=null&&s.data?b((d=(a=o==null?void 0:o.response)==null?void 0:a.data)==null?void 0:d.suffix):((p=o.raw)==null?void 0:p.type)||b(o[t.suffix]),c=i==null?void 0:i.toLowerCase(),n={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 l in n)if(typeof c=="string"&&(c.includes(l)||c===l))return n[l];return"unknown"},D={".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"},b=o=>{const t=o==null?void 0:o.toLocaleLowerCase(),i=t!=null&&t.startsWith(".")?t:`.${t}`;return i&&D[i]||"unknow"},I=o=>{let t="",i=["doc","docx"],c=["xls","xlsx"],n=["ppt","pptx"],s=["pdf"];return i.includes(o)&&(t="word"),c.includes(o)&&(t="cell"),n.includes(o)&&(t="slide"),s.includes(o)&&(t="text-pdf"),t},R={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"},M=[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)],$={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"},q=[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)],H={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"},A=[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)],T={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"},j=[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)],P={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"},L=[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)],U={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"},W=[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)],K={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"},G=[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)],X={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"},Y=[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)],Z={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"},J=[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)],Q={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"},e3=[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)],t3={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"},o3=[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)],n3={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"},i3=[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)],l3=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(o){const t=o,i=e.computed(()=>t.file?x(t.file,t.fields):t.type);return(c,n)=>i.value==="image"?(e.openBlock(),e.createElementBlock("svg",R,M)):i.value==="zip"?(e.openBlock(),e.createElementBlock("svg",$,q)):i.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",H,A)):i.value==="word"?(e.openBlock(),e.createElementBlock("svg",T,j)):i.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",P,L)):i.value==="txt"?(e.openBlock(),e.createElementBlock("svg",U,W)):i.value==="audio"?(e.openBlock(),e.createElementBlock("svg",K,G)):i.value==="video"?(e.openBlock(),e.createElementBlock("svg",X,Y)):i.value==="excel"?(e.openBlock(),e.createElementBlock("svg",Z,J)):i.value==="exe"?(e.openBlock(),e.createElementBlock("svg",Q,e3)):i.value==="json"?(e.openBlock(),e.createElementBlock("svg",t3,o3)):(e.openBlock(),e.createElementBlock("svg",n3,i3))}}),s3=["onClick"],c3={class:"text"},a3={class:"fileName"},r3={class:"size"},d3=e.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},setup(o){const t=o,i=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),c=e.ref({}),n=e.ref(!1),s=l=>{var r,f;c.value={...l,name:l.name,url:B(t.loadUrl,l.url||((f=(r=l==null?void 0:l.response)==null?void 0:r.data)==null?void 0:f.id)||(l==null?void 0:l.id))},n.value=!0},a=l=>{k.ikFile.downloadFile(B(t.loadUrl,l[i.value.url]||l.attachmentId||l.id),l[i.value.name]||l.attachmentName)},d=e.computed(()=>k.paramType.isNumber(t.width)?`${t.width}px`:t.width),p=e.computed(()=>t.list.map(l=>({...l,name:l[i.value.name]||l.attachmentName,size:l[i.value.size]||l.fileSize||l.attachmentSize,suffix:l[i.value.suffix]||l.attachmentSuffix})));return(l,r)=>{var f;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(f=o.list)!=null&&f.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.value,(h,g)=>{var _;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["iking-privew-annex",{"is-bg":o.showBg}]),key:g,style:e.normalizeStyle({marginBottom:g==((_=o.list)==null?void 0:_.length)-1?"0":"10px",width:d.value})},[e.createElementVNode("div",{class:"file-card",onClick:z=>s(h)},[e.createVNode(l3,{file:h,style:e.normalizeStyle({height:`${o.iconSize}px`}),class:"ikui-w-auto",fields:i.value},null,8,["file","style","fields"]),e.createElementVNode("div",c3,[e.createElementVNode("div",a3,e.toDisplayString(h.name),1),e.createElementVNode("div",r3,e.toDisplayString(e.unref(O)(h.size)),1)]),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-center",{"hover-show":o.iconHoverShow}])},[e.createVNode(e.unref(w),{name:"iksvg_daochu",onClick:e.withModifiers(z=>a(h),["stop"]),bg:o.showBg,size:o.showBg?"default":20},null,8,["onClick","bg","size"]),e.createVNode(e.unref(w),{name:"iksvg_yulan",bg:o.showBg,size:o.showBg?"default":20},null,8,["bg","size"]),e.renderSlot(l.$slots,"operation",{data:{...h,findex:g}})],2)],8,s3)],6)}),128)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(h3),{show:n.value,"onUpdate:show":r[0]||(r[0]=h=>n.value=h),loadUrl:o.loadUrl,file:c.value,onlyofficeServer:o.onlyofficeServer,onlyOfficeConfig:o.onlyOfficeConfig,onlyOfficeAccept:o.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),m6="",p3=y(d3),f3=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(o){const t=o,i=e.useModel(o,"show"),c=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...t.field})),n=e.ref(null),s=e.ref(null),a=e.reactive({image:!1,office:!1,video:!1}),d=l=>{var r,f,h,g,_,z,E;try{const m=((r=l==null?void 0:l.response)==null?void 0:r.data)||l,N=m[c.value.url]||(m==null?void 0:m.id)||m.attachmentId,C=(f=m[c.value.suffix]||m.attachmentSuffix)==null?void 0:f.toLowerCase(),M3=m[c.value.name]||(m==null?void 0:m.attachmentName);if(s.value={...l,name:l[c.value.name],url:B(t.loadUrl,N)},l&&x(l,c.value)==="image"){a.image=!0;return}else if((((h=t.onlyOfficeConfig)==null?void 0:h.accept)||t.onlyOfficeAccept).includes(C)){a.office=!0,n.value={...t.onlyOfficeConfig,editorConfig:{...((g=t.onlyOfficeConfig)==null?void 0:g.editorConfig)||{},customization:{...((z=(_=t.onlyOfficeConfig)==null?void 0:_.editorConfig)==null?void 0:z.customization)||{},review:{reviewDisplay:"final"}}},document:{key:k.buildUUID(),title:M3,url:B(t.loadUrl,N),fileType:C,...((E=t.onlyOfficeConfig)==null?void 0:E.document)||{}},documentType:I(C)};return}}catch(m){console.info("预览错误: ",m)}};e.watch([i,t.file],([l,r])=>{l&&e.nextTick(()=>{d(t.file)})});const p=()=>{i.value=!1,a.office=!1,a.image=!1,a.video=!1};return(l,r)=>{var h,g;const f=e.resolveComponent("el-image-viewer");return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(h=s.value)!=null&&h.url&&a.image?(e.openBlock(),e.createBlock(f,{key:0,onClose:r[0]||(r[0]=_=>{s.value=null,a.image=!1}),ref:"previewImgRef","url-list":[(g=s.value)==null?void 0:g.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(b3),{modelValue:a.office,"onUpdate:modelValue":r[1]||(r[1]=_=>a.office=_),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:p,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>[e.createVNode(e.unref(I3),{"config-options":n.value,"document-server-url":o.onlyOfficeConfig.serverUrl||o.onlyofficeServer,mode:"view"},null,8,["config-options","document-server-url"])]),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),u6="",h3=y(f3),m3={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},u3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},g3=["xlink:href"],_3=["src"],y3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},w3=["xlink:href"],k3=["src"],v3=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(o){const t=o,i=e.computed(()=>{var n,s,a;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(n=t.name)!=null&&n.startsWith("iksig")?"iksig":(s=t.name)!=null&&s.includes(":")?"iconify":(a=t.name)!=null&&a.startsWith("iksvg")?"svg":"i"}),c=e.computed(()=>{const n=[];if(t.flip)switch(t.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.rotate&&n.push(`rotate(${t.rotate%360}deg)`);const s={...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...n.length&&{transform:n.join(" ")},padding:t.showBg||t.bg?t.padding:0,...t.color&&i.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":t.colorLight||k.ikColor.setOpacity(t.color,t.opacity)}:{}};return t.width&&(s.width=s.height=typeof t.width=="number"?`${t.width}px`:t.width),s});return(n,s)=>{const a=e.resolveComponent("el-tooltip"),d=e.resolveComponent("el-button");return n.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",m3,[n.notip||!n.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",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active,disabled:n.disabled}]),style:e.normalizeStyle(c.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",u3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,g3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,_3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(c.value)},null,6))],6)):(e.openBlock(),e.createBlock(a,{key:1,content:n.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",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active}]),style:e.normalizeStyle(c.value)},[i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",y3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,w3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,k3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(c.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(d,{key:1,type:["warning","error"].includes(n.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["type"]))}}}),g6="",w=y(v(v3,[["__scopeId","data-v-7d95dbf5"]])),B3={key:0,class:"exit-main-page-maximize"},z3=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(o){return(t,i)=>(e.openBlock(),e.createElementBlock("div",null,[o.showBg&&o.fullscreen?(e.openBlock(),e.createElementBlock("div",B3,[e.createVNode(e.unref(w),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(w),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),y6="",V3=v(z3,[["__scopeId","data-v-79f49df8"]]),C3={class:"base-header"},x3=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(o){const t=o,i=e.useModel(o,"modelValue"),c=e.ref(t.fullscreen),n=()=>{c.value=!c.value},s=e.defineComponent({setup(){return()=>e.h(V3,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(a,d)=>{const p=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(p,e.mergeProps({modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=l=>i.value=l)},a.$attrs,{"close-icon":e.unref(s),class:`ik-base-dialog ${a.noHeader?"no-header":""} ${a.noFooter?"no-footer":""}`,fullscreen:c.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",C3,[e.renderSlot(a.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),a.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(w),{key:0,onClick:n,name:c.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:c.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[a.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),w6="",b3=y(x3);function S3(o,t,i,c){function n(s){return s instanceof i?s:new i(function(a){a(s)})}return new(i||(i=Promise))(function(s,a){function d(r){try{l(c.next(r))}catch(f){a(f)}}function p(r){try{l(c.throw(r))}catch(f){a(f)}}function l(r){r.done?s(r.value):n(r.value).then(d,p)}l((c=c.apply(o,t||[])).next())})}function F3(o,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},c,n,s,a;return a={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function d(l){return function(r){return p([l,r])}}function p(l){if(c)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(c=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1],s=l;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(l);break}s[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(o,i)}catch(r){l=[6,r],n=0}finally{c=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var E3=function(o,t){return S3(void 0,void 0,void 0,function(){return F3(this,function(i){return[2,new Promise(function(c,n){try{if(window.DocsAPI)return c(null);var s=document.getElementById(t);if(s)var a=setInterval(function(){var p=s.getAttribute("loading");if(!p){if(clearInterval(a),window.DocsAPI)return c(null);var l=S(t,o,c,n);s.remove(),document.body.appendChild(l)}},500);else{var d=S(t,o,c,n);document.body.appendChild(d)}}catch(p){console.error(p)}})]})})},S=function(o,t,i,c){var n=document.createElement("script");return n.id=o,n.type="text/javascript",n.src=t,n.async=!0,n.onload=function(){n.removeAttribute("loading"),i(null)},n.onerror=function(s){n.removeAttribute("loading"),c(s)},n.setAttribute("loading",""),n},V=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 o=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var i="".concat(t,"web-apps/apps/api/documents/api.js");E3(i,"onlyoffice-api-script").then(function(){return o.onLoad()}).catch(function(){o.onError(-2)})},unmounted:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(o,t){this.onChangeProps()},deep:!0},document_fileType:function(o,t){this.onChangeProps()},document_title:function(o,t){this.onChangeProps()},documentType:function(o,t){this.onChangeProps()},editorConfig_lang:function(o,t){this.onChangeProps()},height:function(o,t){this.onChangeProps()},type:function(o,t){this.onChangeProps()},width:function(o,t){this.onChangeProps()}},methods:{onLoad:function(){var o,t;try{var i=this.id||"";if(window.DocsAPI||this.onError(-3),!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[i]){console.log("Skip loading. Instance already exists",i);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var c=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||{}),n=window.DocsAPI.DocEditor(i,c);window.DocEditor.instances[i]=n}catch(s){console.error(s),this.onError(-1)}},onError:function(o){var t;switch(o){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",o=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(o,t)},onAppReady:function(){var o=this.id||"";this.events_onAppReady(window.DocEditor.instances[o])},onChangeProps:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const N3=["id"];function O3(o,t,i,c,n,s){return e.openBlock(),e.createElementBlock("div",{id:o.id},null,8,N3)}V.render=O3,V.__file="src/components/DocumentEditor.vue";const D3=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(o){const t=o,i=e.ref({width:"100%",height:"100%",...t.configOptions||{}}),c=()=>{console.info("文档加载完成",t.configOptions)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:t.officeHeight})},[e.createVNode(e.unref(V),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":o.documentServerUrl,config:i.value,events_onDocumentReady:c},null,8,["id","document-server-url","config"])],4))}}),k6="",I3=y(v(D3,[["__scopeId","data-v-fe959cd8"]])),R3=e.defineComponent({__name:"IKDescription",props:{showIcon:{type:Boolean,default:!1},listData:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})},titleProps:{type:Object,default:()=>({})},fileField:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},kkUrl:{type:String,default:""},labelWidth:{type:String||Number,default:"150px"},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})}},setup(o){e.useCssVars(n=>({ea8fed82:c.value}));const t=o,i={id:"id",value:"value",props:"props",label:"label",tag:"tag",fileList:"fileList",...t.fileField},c=e.computed(()=>typeof t.labelWidth=="number"?`${t.labelWidth}px`:t.labelWidth);return(n,s)=>{const a=e.resolveComponent("el-tag"),d=e.resolveComponent("el-descriptions-item"),p=e.resolveComponent("el-descriptions");return e.openBlock(),e.createBlock(p,e.mergeProps({class:"margin-top"},{...o.titleProps,...t}),{extra:e.withCtx(()=>[e.renderSlot(n.$slots,"extra",{},void 0,!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.listData,l=>(e.openBlock(),e.createBlock(d,e.mergeProps({key:l[i.id],ref_for:!0},l[i.props]),{label:e.withCtx(()=>[e.renderSlot(n.$slots,l[i.label],{},()=>[e.createTextVNode(e.toDisplayString(l[i.label]),1)],!0)]),default:e.withCtx(()=>[e.renderSlot(n.$slots,`${l[i.label]}_value`,{},()=>[e.createTextVNode(e.toDisplayString(l[i.value])+" ",1),l[i.tag]?(e.openBlock(),e.createBlock(a,{key:0,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l[i.value].value),1)]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(p3),{list:l[i.fileList],field:o.fileField,"load-url":o.loadUrl,"kk-url":o.kkUrl,"show-bg":!1,isOnlyOfficePreview:o.isOnlyOfficePreview,onlyOfficeAccept:o.onlyOfficeAccept,onlyofficeServer:o.onlyofficeServer,onlyOfficeConfig:o.onlyOfficeConfig},null,8,["list","field","load-url","kk-url","isOnlyOfficePreview","onlyOfficeAccept","onlyofficeServer","onlyOfficeConfig"])],!0)]),_:2},1040))),128))]),_:3},16)}}}),B6="",F=y(v(R3,[["__scopeId","data-v-d7f7df0a"]]));u.IkDescriptions=F,u.default=F,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.index={},u.vue,u["iking-utils-pro"]))})(this,function(u,e,k){"use strict";const _=(o,t)=>{if(o.install=i=>{for(const c of[o,...Object.values(t??{})])i.component(c.name,c)},t)for(const[i,c]of Object.entries(t))o[i]=c;return o},v=(o,t)=>{const i=o.__vccOpts||o;for(const[c,n]of t)i[c]=n;return i},O=(o,t=2)=>{if(o===void 0)return"";if(o===0)return"0 B";const i=["B","KB","MB","GB","TB"],c=Math.floor(Math.log(o)/Math.log(1024));let n=o/Math.pow(1024,c);return(n%1===0?n.toFixed(t||0):n.toFixed(t))+" "+i[c]},B=(o,t)=>t?t.startsWith("http")?t:`${o||location.origin}${t}`:"",x=(o,t)=>{var s,a,d,p;const i=(s=o==null?void 0:o.response)!=null&&s.data?b((d=(a=o==null?void 0:o.response)==null?void 0:a.data)==null?void 0:d.suffix):((p=o.raw)==null?void 0:p.type)||b(o[t.suffix]),c=i==null?void 0:i.toLowerCase(),n={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 l in n)if(typeof c=="string"&&(c.includes(l)||c===l))return n[l];return"unknown"},D={".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"},b=o=>{const t=o==null?void 0:o.toLocaleLowerCase(),i=t!=null&&t.startsWith(".")?t:`.${t}`;return i&&D[i]||"unknow"},I=o=>{let t="",i=["doc","docx"],c=["xls","xlsx"],n=["ppt","pptx"],s=["pdf"];return i.includes(o)&&(t="word"),c.includes(o)&&(t="cell"),n.includes(o)&&(t="slide"),s.includes(o)&&(t="text-pdf"),t},R={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"},M=[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)],$={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"},q=[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)],H={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"},A=[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)],T={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"},j=[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)],P={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"},L=[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)],U={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"},W=[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)],K={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"},G=[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)],X={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"},Y=[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)],Z={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"},J=[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)],Q={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"},e3=[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)],t3={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"},o3=[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)],n3={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"},i3=[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)],l3=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(o){const t=o,i=e.computed(()=>t.file?x(t.file,t.fields):t.type);return(c,n)=>i.value==="image"?(e.openBlock(),e.createElementBlock("svg",R,M)):i.value==="zip"?(e.openBlock(),e.createElementBlock("svg",$,q)):i.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",H,A)):i.value==="word"?(e.openBlock(),e.createElementBlock("svg",T,j)):i.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",P,L)):i.value==="txt"?(e.openBlock(),e.createElementBlock("svg",U,W)):i.value==="audio"?(e.openBlock(),e.createElementBlock("svg",K,G)):i.value==="video"?(e.openBlock(),e.createElementBlock("svg",X,Y)):i.value==="excel"?(e.openBlock(),e.createElementBlock("svg",Z,J)):i.value==="exe"?(e.openBlock(),e.createElementBlock("svg",Q,e3)):i.value==="json"?(e.openBlock(),e.createElementBlock("svg",t3,o3)):(e.openBlock(),e.createElementBlock("svg",n3,i3))}}),s3=["onClick"],c3={class:"text"},a3={class:"fileName"},r3={class:"size"},d3=e.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},setup(o){const t=o,i=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),c=e.ref({}),n=e.ref(!1),s=l=>{var r,h;c.value={...l,name:l.name,url:B(t.loadUrl,l.url||((h=(r=l==null?void 0:l.response)==null?void 0:r.data)==null?void 0:h.id)||(l==null?void 0:l.id))},n.value=!0},a=l=>{k.ikFile.downloadFile(B(t.loadUrl,l[i.value.url]||l.attachmentId||l.id),l[i.value.name]||l.attachmentName)},d=e.computed(()=>k.paramType.isNumber(t.width)?`${t.width}px`:t.width),p=e.computed(()=>t.list.map(l=>({...l,name:l[i.value.name]||l.attachmentName,size:l[i.value.size]||l.fileSize||l.attachmentSize,suffix:l[i.value.suffix]||l.attachmentSuffix})));return(l,r)=>{var h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(h=o.list)!=null&&h.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.value,(m,g)=>{var y;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["iking-privew-annex",{"is-bg":o.showBg}]),key:g,style:e.normalizeStyle({marginBottom:g==((y=o.list)==null?void 0:y.length)-1?"0":"10px",width:d.value})},[e.createElementVNode("div",{class:"file-card",onClick:z=>s(m)},[e.createVNode(l3,{file:m,style:e.normalizeStyle({height:`${o.iconSize}px`}),class:"ikui-w-auto",fields:i.value},null,8,["file","style","fields"]),e.createElementVNode("div",c3,[e.createElementVNode("div",a3,e.toDisplayString(m.name),1),e.createElementVNode("div",r3,e.toDisplayString(e.unref(O)(m.size)),1)]),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-center",{"hover-show":o.iconHoverShow}])},[e.createVNode(e.unref(w),{name:"iksvg_daochu",onClick:e.withModifiers(z=>a(m),["stop"]),bg:o.showBg,size:o.showBg?"default":20},null,8,["onClick","bg","size"]),e.createVNode(e.unref(w),{name:"iksvg_yulan",bg:o.showBg,size:o.showBg?"default":20},null,8,["bg","size"]),e.renderSlot(l.$slots,"operation",{data:{...m,findex:g}})],2)],8,s3)],6)}),128)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(h3),{show:n.value,"onUpdate:show":r[0]||(r[0]=m=>n.value=m),loadUrl:o.loadUrl,file:c.value,onlyofficeServer:o.onlyofficeServer,onlyOfficeConfig:o.onlyOfficeConfig,onlyOfficeAccept:o.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),m6="",p3=_(d3),f3=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(o){const t=o,i=e.useModel(o,"show"),c=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...t.field})),n=e.ref(null),s=e.ref(null),a=e.reactive({image:!1,office:!1,video:!1}),d=l=>{var r,h,m,g,y,z,E;try{const f=((r=l==null?void 0:l.response)==null?void 0:r.data)||l,N=f[c.value.url]||(f==null?void 0:f.id)||f.attachmentId,C=(h=f[c.value.suffix]||f.attachmentSuffix)==null?void 0:h.toLowerCase(),M3=f[c.value.name]||(f==null?void 0:f.attachmentName)||(f==null?void 0:f.originName);if(s.value={...l,name:l[c.value.name],url:B(t.loadUrl,N)},l&&x(l,c.value)==="image"){a.image=!0;return}else if((((m=t.onlyOfficeConfig)==null?void 0:m.accept)||t.onlyOfficeAccept).includes(C)){a.office=!0,n.value={...t.onlyOfficeConfig,editorConfig:{...((g=t.onlyOfficeConfig)==null?void 0:g.editorConfig)||{},customization:{...((z=(y=t.onlyOfficeConfig)==null?void 0:y.editorConfig)==null?void 0:z.customization)||{},review:{reviewDisplay:"final"}}},document:{key:k.buildUUID(),title:M3,url:B(t.loadUrl,N),fileType:C,...((E=t.onlyOfficeConfig)==null?void 0:E.document)||{}},documentType:I(C)};return}}catch(f){console.info("预览错误: ",f)}};e.watch([i,t.file],([l,r])=>{l&&e.nextTick(()=>{d(t.file)})});const p=()=>{i.value=!1,a.office=!1,a.image=!1,a.video=!1};return(l,r)=>{var m,g;const h=e.resolveComponent("el-image-viewer");return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(m=s.value)!=null&&m.url&&a.image?(e.openBlock(),e.createBlock(h,{key:0,onClose:r[0]||(r[0]=y=>{s.value=null,a.image=!1}),ref:"previewImgRef","url-list":[(g=s.value)==null?void 0:g.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(b3),{modelValue:a.office,"onUpdate:modelValue":r[1]||(r[1]=y=>a.office=y),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:p,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>[e.createVNode(e.unref(I3),{"config-options":n.value,"document-server-url":o.onlyOfficeConfig.serverUrl||o.onlyofficeServer},null,8,["config-options","document-server-url"])]),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),u6="",h3=_(f3),m3={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},u3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},g3=["xlink:href"],y3=["src"],_3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},w3=["xlink:href"],k3=["src"],v3=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(o){const t=o,i=e.computed(()=>{var n,s,a;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(n=t.name)!=null&&n.startsWith("iksig")?"iksig":(s=t.name)!=null&&s.includes(":")?"iconify":(a=t.name)!=null&&a.startsWith("iksvg")?"svg":"i"}),c=e.computed(()=>{const n=[];if(t.flip)switch(t.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.rotate&&n.push(`rotate(${t.rotate%360}deg)`);const s={...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...n.length&&{transform:n.join(" ")},padding:t.showBg||t.bg?t.padding:0,...t.color&&i.value!=="iksig"?{"--ik-color-icon-dark":t.color,"--ik-color-icon-light":t.colorLight||k.ikColor.setOpacity(t.color,t.opacity)}:{}};return t.width&&(s.width=s.height=typeof t.width=="number"?`${t.width}px`:t.width),s});return(n,s)=>{const a=e.resolveComponent("el-tooltip"),d=e.resolveComponent("el-button");return n.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",m3,[n.notip||!n.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",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active,disabled:n.disabled}]),style:e.normalizeStyle(c.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",u3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,g3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,y3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(c.value)},null,6))],6)):(e.openBlock(),e.createBlock(a,{key:1,content:n.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",{[n.name]:i.value==="unocss","show-bg":n.showBg||n.bg,default:n.size==="default",small:n.size==="small",big:n.size==="big",warning:n.warning||t.type==="warning",primary:n.primary||t.type==="primary",success:n.success||t.type==="success",error:n.error||t.type==="error",active:n.active}]),style:e.normalizeStyle(c.value)},[i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${n.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",_3,[e.createElementVNode("use",{"xlink:href":`#${n.name}`},null,8,w3)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:n.name,class:"h-[1em] w-[1em]"},null,8,k3)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(n.name),style:e.normalizeStyle(c.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(d,{key:1,type:["warning","error"].includes(n.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["type"]))}}}),g6="",w=_(v(v3,[["__scopeId","data-v-7d95dbf5"]])),B3={key:0,class:"exit-main-page-maximize"},z3=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(o){return(t,i)=>(e.openBlock(),e.createElementBlock("div",null,[o.showBg&&o.fullscreen?(e.openBlock(),e.createElementBlock("div",B3,[e.createVNode(e.unref(w),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(w),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),_6="",V3=v(z3,[["__scopeId","data-v-79f49df8"]]),C3={class:"base-header"},x3=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(o){const t=o,i=e.useModel(o,"modelValue"),c=e.ref(t.fullscreen),n=()=>{c.value=!c.value},s=e.defineComponent({setup(){return()=>e.h(V3,{showBg:t.showCloseBg,fullscreen:t.fullscreen})}});return(a,d)=>{const p=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(p,e.mergeProps({modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=l=>i.value=l)},a.$attrs,{"close-icon":e.unref(s),class:`ik-base-dialog ${a.noHeader?"no-header":""} ${a.noFooter?"no-footer":""}`,fullscreen:c.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",C3,[e.renderSlot(a.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),a.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(w),{key:0,onClick:n,name:c.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:c.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[a.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),w6="",b3=_(x3);function S3(o,t,i,c){function n(s){return s instanceof i?s:new i(function(a){a(s)})}return new(i||(i=Promise))(function(s,a){function d(r){try{l(c.next(r))}catch(h){a(h)}}function p(r){try{l(c.throw(r))}catch(h){a(h)}}function l(r){r.done?s(r.value):n(r.value).then(d,p)}l((c=c.apply(o,t||[])).next())})}function F3(o,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},c,n,s,a;return a={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function d(l){return function(r){return p([l,r])}}function p(l){if(c)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(c=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1],s=l;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(l);break}s[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(o,i)}catch(r){l=[6,r],n=0}finally{c=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var E3=function(o,t){return S3(void 0,void 0,void 0,function(){return F3(this,function(i){return[2,new Promise(function(c,n){try{if(window.DocsAPI)return c(null);var s=document.getElementById(t);if(s)var a=setInterval(function(){var p=s.getAttribute("loading");if(!p){if(clearInterval(a),window.DocsAPI)return c(null);var l=S(t,o,c,n);s.remove(),document.body.appendChild(l)}},500);else{var d=S(t,o,c,n);document.body.appendChild(d)}}catch(p){console.error(p)}})]})})},S=function(o,t,i,c){var n=document.createElement("script");return n.id=o,n.type="text/javascript",n.src=t,n.async=!0,n.onload=function(){n.removeAttribute("loading"),i(null)},n.onerror=function(s){n.removeAttribute("loading"),c(s)},n.setAttribute("loading",""),n},V=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 o=this,t=this.documentServerUrl;t.endsWith("/")||(t+="/");var i="".concat(t,"web-apps/apps/api/documents/api.js");E3(i,"onlyoffice-api-script").then(function(){return o.onLoad()}).catch(function(){o.onError(-2)})},unmounted:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0)},watch:{config:{handler:function(o,t){this.onChangeProps()},deep:!0},document_fileType:function(o,t){this.onChangeProps()},document_title:function(o,t){this.onChangeProps()},documentType:function(o,t){this.onChangeProps()},editorConfig_lang:function(o,t){this.onChangeProps()},height:function(o,t){this.onChangeProps()},type:function(o,t){this.onChangeProps()},width:function(o,t){this.onChangeProps()}},methods:{onLoad:function(){var o,t;try{var i=this.id||"";if(window.DocsAPI||this.onError(-3),!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[i]){console.log("Skip loading. Instance already exists",i);return}!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances||(window.DocEditor={instances:{}});var c=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||{}),n=window.DocsAPI.DocEditor(i,c);window.DocEditor.instances[i]=n}catch(s){console.error(s),this.onError(-1)}},onError:function(o){var t;switch(o){case-2:t="Error load DocsAPI from "+this.documentServerUrl;break;case-3:t="DocsAPI is not defined";break;default:t="Unknown error loading component",o=-1}typeof this.onLoadComponentError>"u"?console.error(t):this.onLoadComponentError(o,t)},onAppReady:function(){var o=this.id||"";this.events_onAppReady(window.DocEditor.instances[o])},onChangeProps:function(){var o,t=this.id||"";!((o=window==null?void 0:window.DocEditor)===null||o===void 0)&&o.instances[t]&&(window.DocEditor.instances[t].destroyEditor(),window.DocEditor.instances[t]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const N3=["id"];function O3(o,t,i,c,n,s){return e.openBlock(),e.createElementBlock("div",{id:o.id},null,8,N3)}V.render=O3,V.__file="src/components/DocumentEditor.vue";const D3=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(o){const t=o,i=e.ref({width:"100%",height:"100%",...t.configOptions||{},...t.configOptions}),c=()=>{console.info("文档加载完成",t.configOptions)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:t.officeHeight})},[e.createVNode(e.unref(V),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":o.documentServerUrl,config:i.value,events_onDocumentReady:c},null,8,["id","document-server-url","config"])],4))}}),k6="",I3=_(v(D3,[["__scopeId","data-v-98d51ef9"]])),R3=e.defineComponent({__name:"IKDescription",props:{showIcon:{type:Boolean,default:!1},listData:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})},titleProps:{type:Object,default:()=>({})},fileField:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},kkUrl:{type:String,default:""},labelWidth:{type:String||Number,default:"150px"},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})}},setup(o){e.useCssVars(n=>({"645335a7":c.value}));const t=o,i={id:"id",value:"value",props:"props",label:"label",tag:"tag",fileList:"fileList",...t.fileField},c=e.computed(()=>typeof t.labelWidth=="number"?`${t.labelWidth}px`:t.labelWidth);return(n,s)=>{const a=e.resolveComponent("el-tag"),d=e.resolveComponent("el-descriptions-item"),p=e.resolveComponent("el-descriptions");return e.openBlock(),e.createBlock(p,e.mergeProps({class:"margin-top"},{...o.titleProps,...t}),{extra:e.withCtx(()=>[e.renderSlot(n.$slots,"extra",{},void 0,!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.listData,l=>(e.openBlock(),e.createBlock(d,e.mergeProps({key:l[i.id],ref_for:!0},l[i.props]),{label:e.withCtx(()=>[e.renderSlot(n.$slots,l[i.label],{},()=>[e.createTextVNode(e.toDisplayString(l[i.label]),1)],!0)]),default:e.withCtx(()=>[e.renderSlot(n.$slots,`${l[i.label]}_value`,{},()=>[e.createTextVNode(e.toDisplayString(l[i.value])+" ",1),l[i.tag]?(e.openBlock(),e.createBlock(a,{key:0,size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l[i.value].value),1)]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(p3),{list:l[i.fileList],field:o.fileField,"load-url":o.loadUrl,"kk-url":o.kkUrl,"show-bg":!1,isOnlyOfficePreview:o.isOnlyOfficePreview,onlyOfficeAccept:o.onlyOfficeAccept,onlyofficeServer:o.onlyofficeServer,onlyOfficeConfig:o.onlyOfficeConfig},null,8,["list","field","load-url","kk-url","isOnlyOfficePreview","onlyOfficeAccept","onlyofficeServer","onlyOfficeConfig"])],!0)]),_:2},1040))),128))]),_:3},16)}}}),B6="",F=_(v(R3,[["__scopeId","data-v-38defd72"]]));u.IkDescriptions=F,u.default=F,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .ik-file-preview-modal{z-index:9000!important}.ik-file-preview.el-dialog{width:100vw;height:100vh;margin:0;background:transparent}.ik-file-preview.el-dialog .el-dialog__header{position:absolute;right:-13px;top:-5px;padding:0;background-color:transparent}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn{font-size:30px}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:var(--el-color-primary-light-9);transition:all .25s linear;position:absolute;right:20px;top:20px}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close:hover{color:var(--el-color-danger);transform:rotate(90deg)}.ik-file-preview.el-dialog .el-dialog__body{width:100%!important;height:100%!important;max-height:100%!important;padding:0!important;overflow:hidden;display:flex;justify-content:center}.ik-file-preview.el-dialog .el-dialog__body iframe{border-width:0;width:calc(100% - 100px)!important;height:100%;padding:0;margin:0;box-sizing:border-box}.ik-file-preview.el-dialog .el-dialog__body iframe .viewer-open,.ik-file-preview.el-dialog .el-dialog__body iframe body{background-color:transparent}.ik-file-preview.el-dialog .el-dialog__body iframe body iframe{border-radius:4px}.iking-privew-annex{padding:10px;border-radius:10px;color:var(--el-text-color-secondary);display:flex;cursor:pointer;transition:background .25s}.iking-privew-annex.is-bg{background:var(--el-bg-color-page)}.iking-privew-annex.is-bg:hover{background:var(--el-color-primary-light-9)}.iking-privew-annex.is-bg .file-card .text{flex:1}.iking-privew-annex:hover .hover-show{display:block}.iking-privew-annex .hover-show{display:none}.iking-privew-annex .ikui-w-auto{width:auto}.iking-privew-annex .file-card{display:flex;flex:1;align-items:center}.iking-privew-annex .icon{font-size:50px;margin-right:15px}.iking-privew-annex .text{line-height:25px;margin-right:16px}.iking-privew-annex .text .fileName{cursor:pointer}.iking-privew-annex .text .size{font-size:12px}.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}.row-title[data-v-7d95dbf5]{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}[data-v-d7f7df0a] .el-descriptions__body .el-descriptions__label{font-weight:500!important;width:var(--ea8fed82)!important;background:var(--ik-table-header-bg)!important;color:var(--ik-color-font-secondary)!important}[data-v-d7f7df0a] .el-descriptions__body .el-descriptions__content{color:var(--ik-color-font-title)!important}
1
+ .ik-file-preview-modal{z-index:9000!important}.ik-file-preview.el-dialog{width:100vw;height:100vh;margin:0;background:transparent}.ik-file-preview.el-dialog .el-dialog__header{position:absolute;right:-13px;top:-5px;padding:0;background-color:transparent}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn{font-size:30px}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:var(--el-color-primary-light-9);transition:all .25s linear;position:absolute;right:20px;top:20px}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close:hover{color:var(--el-color-danger);transform:rotate(90deg)}.ik-file-preview.el-dialog .el-dialog__body{width:100%!important;height:100%!important;max-height:100%!important;padding:0!important;overflow:hidden;display:flex;justify-content:center}.ik-file-preview.el-dialog .el-dialog__body iframe{border-width:0;width:calc(100% - 100px)!important;height:100%;padding:0;margin:0;box-sizing:border-box}.ik-file-preview.el-dialog .el-dialog__body iframe .viewer-open,.ik-file-preview.el-dialog .el-dialog__body iframe body{background-color:transparent}.ik-file-preview.el-dialog .el-dialog__body iframe body iframe{border-radius:4px}.iking-privew-annex{padding:10px;border-radius:10px;color:var(--el-text-color-secondary);display:flex;cursor:pointer;transition:background .25s}.iking-privew-annex.is-bg{background:var(--el-bg-color-page)}.iking-privew-annex.is-bg:hover{background:var(--el-color-primary-light-9)}.iking-privew-annex.is-bg .file-card .text{flex:1}.iking-privew-annex:hover .hover-show{display:block}.iking-privew-annex .hover-show{display:none}.iking-privew-annex .ikui-w-auto{width:auto}.iking-privew-annex .file-card{display:flex;flex:1;align-items:center}.iking-privew-annex .icon{font-size:50px;margin-right:15px}.iking-privew-annex .text{line-height:25px;margin-right:16px}.iking-privew-annex .text .fileName{cursor:pointer}.iking-privew-annex .text .size{font-size:12px}.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}.row-title[data-v-7d95dbf5]{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}[data-v-38defd72] .el-descriptions__body .el-descriptions__label{font-weight:500!important;width:var(--645335a7)!important;background:var(--ik-table-header-bg)!important;color:var(--ik-color-font-secondary)!important}[data-v-38defd72] .el-descriptions__body .el-descriptions__content{color:var(--ik-color-font-title)!important}
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as v, openBlock as p, createElementBlock as g, ref as _, normalizeStyle as w, createVNode as m, unref as y } from "vue";
2
- const R = (e, n) => {
3
- if (e.install = (o) => {
4
- for (const s of [e, ...Object.values(n ?? {})])
2
+ const R = (n, e) => {
3
+ if (n.install = (o) => {
4
+ for (const s of [n, ...Object.values(e ?? {})])
5
5
  o.component(s.name, s);
6
- }, n)
7
- for (const [o, s] of Object.entries(n))
8
- e[o] = s;
9
- return e;
6
+ }, e)
7
+ for (const [o, s] of Object.entries(e))
8
+ n[o] = s;
9
+ return n;
10
10
  };
11
- function S(e, n, o, s) {
11
+ function S(n, e, o, s) {
12
12
  function r(t) {
13
13
  return t instanceof o ? t : new o(function(c) {
14
14
  c(t);
@@ -32,10 +32,10 @@ function S(e, n, o, s) {
32
32
  function i(a) {
33
33
  a.done ? t(a.value) : r(a.value).then(u, d);
34
34
  }
35
- i((s = s.apply(e, n || [])).next());
35
+ i((s = s.apply(n, e || [])).next());
36
36
  });
37
37
  }
38
- function q(e, n) {
38
+ function q(n, e) {
39
39
  var o = { label: 0, sent: function() {
40
40
  if (t[0] & 1)
41
41
  throw t[1];
@@ -89,7 +89,7 @@ function q(e, n) {
89
89
  t[2] && o.ops.pop(), o.trys.pop();
90
90
  continue;
91
91
  }
92
- i = n.call(e, o);
92
+ i = e.call(n, o);
93
93
  } catch (a) {
94
94
  i = [6, a], r = 0;
95
95
  } finally {
@@ -100,26 +100,26 @@ function q(e, n) {
100
100
  return { value: i[0] ? i[1] : void 0, done: !0 };
101
101
  }
102
102
  }
103
- var E = function(e, n) {
103
+ var E = function(n, e) {
104
104
  return S(void 0, void 0, void 0, function() {
105
105
  return q(this, function(o) {
106
106
  return [2, new Promise(function(s, r) {
107
107
  try {
108
108
  if (window.DocsAPI)
109
109
  return s(null);
110
- var t = document.getElementById(n);
110
+ var t = document.getElementById(e);
111
111
  if (t)
112
112
  var c = setInterval(function() {
113
113
  var d = t.getAttribute("loading");
114
114
  if (!d) {
115
115
  if (clearInterval(c), window.DocsAPI)
116
116
  return s(null);
117
- var i = h(n, e, s, r);
117
+ var i = h(e, n, s, r);
118
118
  t.remove(), document.body.appendChild(i);
119
119
  }
120
120
  }, 500);
121
121
  else {
122
- var u = h(n, e, s, r);
122
+ var u = h(e, n, s, r);
123
123
  document.body.appendChild(u);
124
124
  }
125
125
  } catch (d) {
@@ -128,9 +128,9 @@ var E = function(e, n) {
128
128
  })];
129
129
  });
130
130
  });
131
- }, h = function(e, n, o, s) {
131
+ }, h = function(n, e, o, s) {
132
132
  var r = document.createElement("script");
133
- return r.id = e, r.type = "text/javascript", r.src = n, r.async = !0, r.onload = function() {
133
+ return r.id = n, r.type = "text/javascript", r.src = e, r.async = !0, r.onload = function() {
134
134
  r.removeAttribute("loading"), o(null);
135
135
  }, r.onerror = function(t) {
136
136
  r.removeAttribute("loading"), s(t);
@@ -187,58 +187,58 @@ var E = function(e, n) {
187
187
  events_onRequestSelectDocument: Function
188
188
  },
189
189
  mounted: function() {
190
- var e = this, n = this.documentServerUrl;
191
- n.endsWith("/") || (n += "/");
192
- var o = "".concat(n, "web-apps/apps/api/documents/api.js");
190
+ var n = this, e = this.documentServerUrl;
191
+ e.endsWith("/") || (e += "/");
192
+ var o = "".concat(e, "web-apps/apps/api/documents/api.js");
193
193
  E(o, "onlyoffice-api-script").then(function() {
194
- return e.onLoad();
194
+ return n.onLoad();
195
195
  }).catch(function() {
196
- e.onError(-2);
196
+ n.onError(-2);
197
197
  });
198
198
  },
199
199
  unmounted: function() {
200
- var e, n = this.id || "";
201
- !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
200
+ var n, e = this.id || "";
201
+ !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances[e] && (window.DocEditor.instances[e].destroyEditor(), window.DocEditor.instances[e] = void 0);
202
202
  },
203
203
  watch: {
204
204
  config: {
205
- handler: function(e, n) {
205
+ handler: function(n, e) {
206
206
  this.onChangeProps();
207
207
  },
208
208
  deep: !0
209
209
  },
210
- document_fileType: function(e, n) {
210
+ document_fileType: function(n, e) {
211
211
  this.onChangeProps();
212
212
  },
213
- document_title: function(e, n) {
213
+ document_title: function(n, e) {
214
214
  this.onChangeProps();
215
215
  },
216
- documentType: function(e, n) {
216
+ documentType: function(n, e) {
217
217
  this.onChangeProps();
218
218
  },
219
- editorConfig_lang: function(e, n) {
219
+ editorConfig_lang: function(n, e) {
220
220
  this.onChangeProps();
221
221
  },
222
- height: function(e, n) {
222
+ height: function(n, e) {
223
223
  this.onChangeProps();
224
224
  },
225
- type: function(e, n) {
225
+ type: function(n, e) {
226
226
  this.onChangeProps();
227
227
  },
228
- width: function(e, n) {
228
+ width: function(n, e) {
229
229
  this.onChangeProps();
230
230
  }
231
231
  },
232
232
  methods: {
233
233
  onLoad: function() {
234
- var e, n;
234
+ var n, e;
235
235
  try {
236
236
  var o = this.id || "";
237
- if (window.DocsAPI || this.onError(-3), !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[o]) {
237
+ if (window.DocsAPI || this.onError(-3), !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances[o]) {
238
238
  console.log("Skip loading. Instance already exists", o);
239
239
  return;
240
240
  }
241
- !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
241
+ !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances || (window.DocEditor = { instances: {} });
242
242
  var s = Object.assign({
243
243
  document: {
244
244
  fileType: this.document_fileType,
@@ -280,33 +280,33 @@ var E = function(e, n) {
280
280
  console.error(t), this.onError(-1);
281
281
  }
282
282
  },
283
- onError: function(e) {
284
- var n;
285
- switch (e) {
283
+ onError: function(n) {
284
+ var e;
285
+ switch (n) {
286
286
  case -2:
287
- n = "Error load DocsAPI from " + this.documentServerUrl;
287
+ e = "Error load DocsAPI from " + this.documentServerUrl;
288
288
  break;
289
289
  case -3:
290
- n = "DocsAPI is not defined";
290
+ e = "DocsAPI is not defined";
291
291
  break;
292
292
  default:
293
- n = "Unknown error loading component", e = -1;
293
+ e = "Unknown error loading component", n = -1;
294
294
  }
295
- typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(e, n);
295
+ typeof this.onLoadComponentError > "u" ? console.error(e) : this.onLoadComponentError(n, e);
296
296
  },
297
297
  onAppReady: function() {
298
- var e = this.id || "";
299
- this.events_onAppReady(window.DocEditor.instances[e]);
298
+ var n = this.id || "";
299
+ this.events_onAppReady(window.DocEditor.instances[n]);
300
300
  },
301
301
  onChangeProps: function() {
302
- var e, n = this.id || "";
303
- !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.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());
302
+ var n, e = this.id || "";
303
+ !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances[e] && (window.DocEditor.instances[e].destroyEditor(), window.DocEditor.instances[e] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
304
304
  }
305
305
  }
306
306
  });
307
307
  const D = ["id"];
308
- function b(e, n, o, s, r, t) {
309
- return p(), g("div", { id: e.id }, null, 8, D);
308
+ function b(n, e, o, s, r, t) {
309
+ return p(), g("div", { id: n.id }, null, 8, D);
310
310
  }
311
311
  f.render = b;
312
312
  f.__file = "src/components/DocumentEditor.vue";
@@ -330,24 +330,25 @@ const C = /* @__PURE__ */ v({
330
330
  default: "100%"
331
331
  }
332
332
  },
333
- setup(e) {
334
- const n = e, o = _({
333
+ setup(n) {
334
+ const e = n, o = _({
335
335
  width: "100%",
336
336
  height: "100%",
337
- ...n.configOptions || {}
337
+ ...e.configOptions || {},
338
+ ...e.configOptions
338
339
  }), s = () => {
339
- console.info("文档加载完成", n.configOptions);
340
+ console.info("文档加载完成", e.configOptions);
340
341
  };
341
342
  return (r, t) => (p(), g(
342
343
  "div",
343
344
  {
344
- style: w({ height: n.officeHeight })
345
+ style: w({ height: e.officeHeight })
345
346
  },
346
347
  [
347
348
  m(y(f), {
348
349
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
349
350
  ref: "editorRef",
350
- "document-server-url": e.documentServerUrl,
351
+ "document-server-url": n.documentServerUrl,
351
352
  config: o.value,
352
353
  events_onDocumentReady: s
353
354
  }, null, 8, ["id", "document-server-url", "config"])
@@ -357,12 +358,12 @@ const C = /* @__PURE__ */ v({
357
358
  ));
358
359
  }
359
360
  });
360
- const I = (e, n) => {
361
- const o = e.__vccOpts || e;
362
- for (const [s, r] of n)
361
+ const I = (n, e) => {
362
+ const o = n.__vccOpts || n;
363
+ for (const [s, r] of e)
363
364
  o[s] = r;
364
365
  return o;
365
- }, F = /* @__PURE__ */ I(C, [["__scopeId", "data-v-fe959cd8"]]), k = R(F);
366
+ }, F = /* @__PURE__ */ I(C, [["__scopeId", "data-v-98d51ef9"]]), k = R(F);
366
367
  export {
367
368
  k as IkOnlyOffice,
368
369
  k as default
@@ -1 +1 @@
1
- (function(d,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(d=typeof globalThis<"u"?globalThis:d||self,c(d.index={},d.vue))})(this,function(d,c){"use strict";const g=(e,n)=>{if(e.install=t=>{for(const r of[e,...Object.values(n??{})])t.component(r.name,r)},n)for(const[t,r]of Object.entries(n))e[t]=r;return e};function m(e,n,t,r){function s(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function l(u){try{i(r.next(u))}catch(v){a(v)}}function f(u){try{i(r.throw(u))}catch(v){a(v)}}function i(u){u.done?o(u.value):s(u.value).then(l,f)}i((r=r.apply(e,n||[])).next())})}function w(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(i){return function(u){return f([i,u])}}function f(i){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(t=0)),t;)try{if(r=1,s&&(o=i[0]&2?s.return:i[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,i[1])).done)return o;switch(s=0,o&&(i=[i[0]&2,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return t.label++,{value:i[1],done:!1};case 5:t.label++,s=i[1],i=[0];continue;case 7:i=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){t=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){t.label=i[1];break}if(i[0]===6&&t.label<o[1]){t.label=o[1],o=i;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(i);break}o[2]&&t.ops.pop(),t.trys.pop();continue}i=n.call(e,t)}catch(u){i=[6,u],s=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var y=function(e,n){return m(void 0,void 0,void 0,function(){return w(this,function(t){return[2,new Promise(function(r,s){try{if(window.DocsAPI)return r(null);var o=document.getElementById(n);if(o)var a=setInterval(function(){var f=o.getAttribute("loading");if(!f){if(clearInterval(a),window.DocsAPI)return r(null);var i=p(n,e,r,s);o.remove(),document.body.appendChild(i)}},500);else{var l=p(n,e,r,s);document.body.appendChild(l)}}catch(f){console.error(f)}})]})})},p=function(e,n,t,r){var s=document.createElement("script");return s.id=e,s.type="text/javascript",s.src=n,s.async=!0,s.onload=function(){s.removeAttribute("loading"),t(null)},s.onerror=function(o){s.removeAttribute("loading"),r(o)},s.setAttribute("loading",""),s},h=c.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 e=this,n=this.documentServerUrl;n.endsWith("/")||(n+="/");var t="".concat(n,"web-apps/apps/api/documents/api.js");y(t,"onlyoffice-api-script").then(function(){return e.onLoad()}).catch(function(){e.onError(-2)})},unmounted:function(){var e,n=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0)},watch:{config:{handler:function(e,n){this.onChangeProps()},deep:!0},document_fileType:function(e,n){this.onChangeProps()},document_title:function(e,n){this.onChangeProps()},documentType:function(e,n){this.onChangeProps()},editorConfig_lang:function(e,n){this.onChangeProps()},height:function(e,n){this.onChangeProps()},type:function(e,n){this.onChangeProps()},width:function(e,n){this.onChangeProps()}},methods:{onLoad:function(){var e,n;try{var t=this.id||"";if(window.DocsAPI||this.onError(-3),!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances[t]){console.log("Skip loading. Instance already exists",t);return}!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances||(window.DocEditor={instances:{}});var r=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||{}),s=window.DocsAPI.DocEditor(t,r);window.DocEditor.instances[t]=s}catch(o){console.error(o),this.onError(-1)}},onError:function(e){var n;switch(e){case-2:n="Error load DocsAPI from "+this.documentServerUrl;break;case-3:n="DocsAPI is not defined";break;default:n="Unknown error loading component",e=-1}typeof this.onLoadComponentError>"u"?console.error(n):this.onLoadComponentError(e,n)},onAppReady:function(){var e=this.id||"";this.events_onAppReady(window.DocEditor.instances[e])},onChangeProps:function(){var e,n=this.id||"";!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.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 R=["id"];function S(e,n,t,r,s,o){return c.openBlock(),c.createElementBlock("div",{id:e.id},null,8,R)}h.render=S,h.__file="src/components/DocumentEditor.vue";const q=c.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(e){const n=e,t=c.ref({width:"100%",height:"100%",...n.configOptions||{}}),r=()=>{console.info("文档加载完成",n.configOptions)};return(s,o)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle({height:n.officeHeight})},[c.createVNode(c.unref(h),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":e.documentServerUrl,config:t.value,events_onDocumentReady:r},null,8,["id","document-server-url","config"])],4))}}),E="",_=g(((e,n)=>{const t=e.__vccOpts||e;for(const[r,s]of n)t[r]=s;return t})(q,[["__scopeId","data-v-fe959cd8"]]));d.IkOnlyOffice=_,d.default=_,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(d,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(d=typeof globalThis<"u"?globalThis:d||self,c(d.index={},d.vue))})(this,function(d,c){"use strict";const _=(n,e)=>{if(n.install=t=>{for(const r of[n,...Object.values(e??{})])t.component(r.name,r)},e)for(const[t,r]of Object.entries(e))n[t]=r;return n};function m(n,e,t,r){function s(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function l(u){try{i(r.next(u))}catch(v){a(v)}}function f(u){try{i(r.throw(u))}catch(v){a(v)}}function i(u){u.done?o(u.value):s(u.value).then(l,f)}i((r=r.apply(n,e||[])).next())})}function w(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(i){return function(u){return f([i,u])}}function f(i){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(t=0)),t;)try{if(r=1,s&&(o=i[0]&2?s.return:i[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,i[1])).done)return o;switch(s=0,o&&(i=[i[0]&2,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return t.label++,{value:i[1],done:!1};case 5:t.label++,s=i[1],i=[0];continue;case 7:i=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){t=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){t.label=i[1];break}if(i[0]===6&&t.label<o[1]){t.label=o[1],o=i;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(i);break}o[2]&&t.ops.pop(),t.trys.pop();continue}i=e.call(n,t)}catch(u){i=[6,u],s=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var y=function(n,e){return m(void 0,void 0,void 0,function(){return w(this,function(t){return[2,new Promise(function(r,s){try{if(window.DocsAPI)return r(null);var o=document.getElementById(e);if(o)var a=setInterval(function(){var f=o.getAttribute("loading");if(!f){if(clearInterval(a),window.DocsAPI)return r(null);var i=p(e,n,r,s);o.remove(),document.body.appendChild(i)}},500);else{var l=p(e,n,r,s);document.body.appendChild(l)}}catch(f){console.error(f)}})]})})},p=function(n,e,t,r){var s=document.createElement("script");return s.id=n,s.type="text/javascript",s.src=e,s.async=!0,s.onload=function(){s.removeAttribute("loading"),t(null)},s.onerror=function(o){s.removeAttribute("loading"),r(o)},s.setAttribute("loading",""),s},h=c.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 n=this,e=this.documentServerUrl;e.endsWith("/")||(e+="/");var t="".concat(e,"web-apps/apps/api/documents/api.js");y(t,"onlyoffice-api-script").then(function(){return n.onLoad()}).catch(function(){n.onError(-2)})},unmounted:function(){var n,e=this.id||"";!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[e]&&(window.DocEditor.instances[e].destroyEditor(),window.DocEditor.instances[e]=void 0)},watch:{config:{handler:function(n,e){this.onChangeProps()},deep:!0},document_fileType:function(n,e){this.onChangeProps()},document_title:function(n,e){this.onChangeProps()},documentType:function(n,e){this.onChangeProps()},editorConfig_lang:function(n,e){this.onChangeProps()},height:function(n,e){this.onChangeProps()},type:function(n,e){this.onChangeProps()},width:function(n,e){this.onChangeProps()}},methods:{onLoad:function(){var n,e;try{var t=this.id||"";if(window.DocsAPI||this.onError(-3),!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[t]){console.log("Skip loading. Instance already exists",t);return}!((e=window==null?void 0:window.DocEditor)===null||e===void 0)&&e.instances||(window.DocEditor={instances:{}});var r=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||{}),s=window.DocsAPI.DocEditor(t,r);window.DocEditor.instances[t]=s}catch(o){console.error(o),this.onError(-1)}},onError:function(n){var e;switch(n){case-2:e="Error load DocsAPI from "+this.documentServerUrl;break;case-3:e="DocsAPI is not defined";break;default:e="Unknown error loading component",n=-1}typeof this.onLoadComponentError>"u"?console.error(e):this.onLoadComponentError(n,e)},onAppReady:function(){var n=this.id||"";this.events_onAppReady(window.DocEditor.instances[n])},onChangeProps:function(){var n,e=this.id||"";!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[e]&&(window.DocEditor.instances[e].destroyEditor(),window.DocEditor.instances[e]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const R=["id"];function S(n,e,t,r,s,o){return c.openBlock(),c.createElementBlock("div",{id:n.id},null,8,R)}h.render=S,h.__file="src/components/DocumentEditor.vue";const q=c.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(n){const e=n,t=c.ref({width:"100%",height:"100%",...e.configOptions||{},...e.configOptions}),r=()=>{console.info("文档加载完成",e.configOptions)};return(s,o)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle({height:e.officeHeight})},[c.createVNode(c.unref(h),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":n.documentServerUrl,config:t.value,events_onDocumentReady:r},null,8,["id","document-server-url","config"])],4))}}),E="",g=_(((n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t})(q,[["__scopeId","data-v-98d51ef9"]]));d.IkOnlyOffice=g,d.default=g,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});