System.register(["./useSetting-legacy-4e7a90fb.js","./path-legacy-458dd74b.js","./_plugin-vue_export-helper-legacy-c6aa7c23.js","./index-legacy-b5b2d9a0.js","./file-legacy-de7cc2c2.js","./request-legacy-6e7b4fe0.js","./index-legacy-8e2f9955.js","./loading-legacy-2688a411.js","./dialog-legacy-11ce4a25.js","./index-legacy-6928618c.js","./vnode-legacy-e7b1a051.js","./scroll-legacy-52796f86.js","./button-legacy-47e2d618.js","./overlay-legacy-29ae26a6.js","./refs-legacy-0077c775.js","./button-group-legacy-2e59a83e.js","./popper-legacy-ef8fd66b.js","./scrollbar-legacy-0817fabf.js","./dropdown-item-legacy-e2f69179.js","./index-legacy-4adff8e9.js","./index-legacy-a136d4a4.js","./dropdown-legacy-f02db83d.js","./index-legacy-2fdb5c0f.js","./_initCloneObject-legacy-bdc2fe5f.js","./directive-legacy-ed38d01c.js","./index-legacy-f83a714c.js","./validator-legacy-cf095dc5.js","./index-legacy-1a560876.js","./base-legacy-173045dc.js"],(function(e,l){"use strict";var a,n,t,u,i,r,c,s,d;return{setters:[function(e){a=e.a},function(e){n=e.a},function(e){t=e._},function(e){u=e.r,i=e.bL,r=e.o,c=e.c,s=e.t,d=e.l},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var l=document.createElement("style");l.textContent=".zfile-kkfile-viewer[data-v-d0d7ac6d]{height:100%;width:100%;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;background-color:#f7f7f7}.viewer-status[data-v-d0d7ac6d]{color:#888;font-size:16px}.viewer-status.error[data-v-d0d7ac6d]{color:#f56c6c}\n",document.head.appendChild(l);var o={class:"zfile-kkfile-viewer"},g={key:0,class:"viewer-status"},v={key:1,class:"viewer-status error"},y=["src"];e("default",t({__name:"KkFileViewer",props:{url:String,name:String},setup:function(e){var l=e,t=a(),j=u(!0),f=u(""),p=u("");return i((function(){j.value=!0,f.value="",p.value="";var e=t.globalConfig.kkFileViewUrl,a=l.url,u=l.name;if(!e)return f.value="预览服务地址未配置。",void(j.value=!1);if(!a)return f.value="文件URL无效，无法预览。",void(j.value=!1);if(!u)return f.value="文件名无效，无法预览。",void(j.value=!1);var i={name:u,url:a};p.value=n(i,e),j.value=!1})),function(e,l){return r(),c("div",o,[j.value?(r(),c("div",g," 正在加载预览, 请稍候... ")):f.value?(r(),c("div",v," 加载预览失败："+s(f.value),1)):p.value?(r(),c("iframe",{key:2,src:p.value,width:"100%",height:"100%",frameborder:"0"},"\n    ",8,y)):d("",!0)])}}},[["__scopeId","data-v-d0d7ac6d"]]))}}}));
