System.register(["./index-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index-legacy39.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./soft-legacy2.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./site-legacy.js?v=1763625242172","./file-legacy2.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172"],(function(e,l){"use strict";var a,t,o,u,n,r,i,d,s,v,p,f,c,m,_,g,w,y,h,j;return{setters:[e=>{a=e._},e=>{t=e._},e=>{o=e.gu,u=e.bf},e=>{n=e.b,r=e.g},e=>{i=e.k,d=e.P,s=e.i,v=e.r,p=e.av,f=e.R,c=e.a2,m=e.a3,_=e.U,g=e.X,w=e.V,y=e.aj},e=>{h=e.au,j=e.dP},null,null,null,null,null,null,null,null],execute:function(){const l={class:"p-20px pt-28px"},b={class:"w-320px"},x={class:"w-320px"},D={class:"w-320px"};e("default",i({__name:"RemoteDownload",setup(e,{expose:i}){const{t:M}=d(),R=s("fileStore"),{downloadFileFormData:U,currentPath:E}=R,q=v(!1),F=p("formRef"),P={url:{trigger:["input","blur"],validator:()=>U.value.url?!!o(U.value.url)||new Error(M("file.remoteDownloadModal.validation.urlInvalid")):new Error(M("file.remoteDownloadModal.validation.urlRequired"))},path:{trigger:["input","blur"],validator:()=>!!U.value.path||new Error(M("file.remoteDownloadModal.validation.pathRequired"))},filename:{trigger:["input","blur"],validator:()=>!!U.value.filename||new Error(M("file.remoteDownloadModal.validation.filenameRequired"))}},k=e=>{const l=e.split("/").pop();U.value.filename=l||""};i({open(){U.value.url="http://",U.value.path=E.value,U.value.filename="",q.value=!0},close(){q.value=!1}});const S=async()=>{await(F.value?.validate()),await u.post("/files?action=DownloadFile",{...U.value}),n(R),r(R)};return(e,o)=>{const u=h,n=j,r=t,i=a;return f(),c(i,{show:w(q),"onUpdate:show":o[3]||(o[3]=e=>y(q)?q.value=e:null),title:w(M)("file.remoteDownloadModal.title"),width:500,footer:!0,onConfirm:S},{default:m((()=>[_("div",l,[g(r,{ref_key:"formRef",ref:F,model:w(U),rules:P},{default:m((()=>[g(n,{label:w(M)("file.remoteDownloadModal.urlAddress"),path:"url"},{default:m((()=>[_("div",b,[g(u,{value:w(U).url,"onUpdate:value":[o[0]||(o[0]=e=>w(U).url=e),k]},null,8,["value"])])])),_:1},8,["label"]),g(n,{label:w(M)("file.remoteDownloadModal.downloadTo"),path:"path"},{default:m((()=>[_("div",x,[g(u,{value:w(U).path,"onUpdate:value":o[1]||(o[1]=e=>w(U).path=e)},null,8,["value"])])])),_:1},8,["label"]),g(n,{label:w(M)("file.remoteDownloadModal.fileName"),path:"filename"},{default:m((()=>[_("div",D,[g(u,{value:w(U).filename,"onUpdate:value":o[2]||(o[2]=e=>w(U).filename=e)},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])])),_:1},8,["show","title"])}}}))}}}));
