const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-B6Y_2X_r.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/files-BUbkyTRl.js?v=1773287522785","css/index-FEE1lr_F.css?v=1773287522785"])))=>i.map(i=>d[i]);
import{l as M,x as P,m as R,p as $,P as y}from"./index-BTglIPU2.js?v=1773287522785";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{_ as U,w as V}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{a1 as A,au as E,b as F,B as I}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as T,i as j,R as q,r as _,$ as z,a8 as D,a9 as t,_ as u,a0 as e,X as p,S as r,a3 as O}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const W={class:"p-20px pt-28px"},X={class:"w-320px"},G={class:"w-320px"},te=T({__name:"SoftLink",setup(H,{expose:v}){const f=j("fileStore"),{currentPath:h}=f,{t:c}=q(),a=_(!1),o=_(""),l=_("");async function k(){if(!l.value||!o.value)return R.warning(c("file.softLinkModal.validation.fillRequired")),!1;await U(o.value,h.value+"/"+l.value),V(f)}function w(){a.value=!0}function b(){a.value=!1}function g(){$({title:c("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:o.value,checkedType:["dir","file"],callback:s=>{o.value=s}},component:O(()=>y(()=>import("./index-B6Y_2X_r.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))})}return v({open:w,close:b}),(s,n)=>{const m=F,C=M,L=I,x=E,d=A,S=N,B=P;return z(),D(B,{show:r(a),"onUpdate:show":n[2]||(n[2]=i=>p(a)?a.value=i:null),title:s.$t("file.softLinkModal.title"),width:520,footer:!0,onConfirm:k},{default:t(()=>[u("div",W,[e(S,null,{default:t(()=>[e(d,{label:s.$t("file.softLinkModal.sourceFile")},{default:t(()=>[u("div",X,[e(x,null,{default:t(()=>[e(m,{value:r(o),"onUpdate:value":n[0]||(n[0]=i=>p(o)?o.value=i:null),placeholder:""},null,8,["value"]),e(L,{onClick:g},{icon:t(()=>[e(C,{name:"file-dir",size:"24"})]),_:1})]),_:1})])]),_:1},8,["label"]),e(d,{label:s.$t("file.softLinkModal.softLinkName")},{default:t(()=>[u("div",G,[e(m,{value:r(l),"onUpdate:value":n[1]||(n[1]=i=>p(l)?l.value=i:null),placeholder:""},null,8,["value"])])]),_:1},8,["label"])]),_:1})])]),_:1},8,["show","title"])}}});export{te as default};
