System.register(["./useSetting-legacy-4e7a90fb.js","./request-legacy-6e7b4fe0.js","./index-legacy-b5b2d9a0.js","./path-legacy-458dd74b.js","./_plugin-vue_export-helper-legacy-c6aa7c23.js","./file-legacy-de7cc2c2.js","./loading-legacy-2688a411.js","./dialog-legacy-11ce4a25.js","./index-legacy-6928618c.js","./vnode-legacy-e7b1a051.js","./index-legacy-8e2f9955.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,n){"use strict";var l,t,a,c,i,o,s,u,r,d,g,y,f;return{setters:[function(e){l=e.a,t=e.q},function(e){a=e.e,c=e.E},function(e){i=e.D,o=e.e,s=e.o,u=e.c,r=e.p,d=e.q,g=e.a},function(e){y=e.c},function(e){f=e._},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 n=document.createElement("style");n.textContent=".zfile-office-viewer[data-v-745b7c5e],#office-body[data-v-745b7c5e]{height:100%;width:100%}\n",document.head.appendChild(n);var j={class:"zfile-office-viewer"},p=[function(e){return r("data-v-745b7c5e"),e=e(),d(),e}((function(){return g("div",{id:"office-body"},null,-1)}))];e("default",f({__name:"OfficeViewer",props:{fileName:String},setup:function(e){var n=e,r=t().getPathPwd,d=l(),g=i(),f=g.storageKey,v=g.currentPath;return o((function(){var e,l,t,i;e="".concat(d.globalConfig.onlyOfficeUrl,"/web-apps/apps/api/documents/api.js"),l=function(){var e,l=y(v.value,n.fileName),t={storageKey:f.value,path:l,password:r()};(e=t,a({url:"/onlyOffice/config/token",method:"post",data:e})).then((function(e){var n=e.data;new DocsAPI.DocEditor("office-body",n)}))},t=document.createElement("script"),i=document.getElementsByTagName("head")[0],t.type="text/javascript",t.charset="UTF-8",t.src=e,t.addEventListener?(t.addEventListener("load",(function(){l()}),!1),t.addEventListener("error",(function(){c.warning("调用在线文档服务失败，请检查在线文档服务是否正常")}),!1)):t.attachEvent&&t.attachEvent("onreadystatechange",(function(){"loaded"===window.event.srcElement.readyState&&l()})),i.appendChild(t)})),function(e,n){return s(),u("div",j,p)}}},[["__scopeId","data-v-745b7c5e"]]))}}}));
