import{_ as e}from"./index.js?v=1764233927359";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764233927359";import{_ as l,m as o}from"./page_layout.js?v=1764233927359";import{j as t,g as s}from"./index39.js?v=1764233927359";import{R as i}from"./ResourceManagerWindow.js?v=1764233927359";import{dR as n,av as u,au as r,aC as p}from"./naive.js?v=1764233927359";import{k as f,i as m,P as v,r as d,av as c,R as _,V as j,W as w,a3 as h,S as k,ak as x,U as R,F as g}from"./vue.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./public.js?v=1764233927359";import"./soft2.js?v=1764233927359";import"./soft.js?v=1764233927359";import"./site.js?v=1764233927359";import"./file2.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1764233927359";const L={class:"p-20px pt-28px"},b={class:"w-320px"},y={class:"w-320px"},M=f({__name:"SoftLink",setup(f,{expose:M}){const C=m("fileStore"),{currentPath:U}=C,{t:W}=v(),S=d(!1),$=c("resourceWindowRef"),F=d(""),P=d("");async function q(){if(!P.value||!F.value)return o.warning(W("file.softLinkModal.validation.fillRequired")),!1;await t(F.value,U.value+"/"+P.value),s(C)}function z(){var e;null==(e=$.value)||e.open()}function D(e){F.value=e}return M({open:function(){S.value=!0},close:function(){S.value=!1}}),(o,t)=>{const s=r,f=l,m=p,v=u,d=n,c=a,M=e;return j(),_(g,null,[w(M,{show:R(S),"onUpdate:show":t[2]||(t[2]=e=>x(S)?S.value=e:null),title:o.$t("file.softLinkModal.title"),width:520,footer:!0,onConfirm:q},{default:h(()=>[k("div",L,[w(c,null,{default:h(()=>[w(d,{label:o.$t("file.softLinkModal.sourceFile")},{default:h(()=>[k("div",b,[w(v,null,{default:h(()=>[w(s,{value:R(F),"onUpdate:value":t[0]||(t[0]=e=>x(F)?F.value=e:null),placeholder:""},null,8,["value"]),w(m,{onClick:z},{icon:h(()=>[w(f,{name:"file-dir",size:"24"})]),_:1})]),_:1})])]),_:1},8,["label"]),w(d,{label:o.$t("file.softLinkModal.softLinkName")},{default:h(()=>[k("div",y,[w(s,{value:R(P),"onUpdate:value":t[1]||(t[1]=e=>x(P)?P.value=e:null),placeholder:""},null,8,["value"])])]),_:1},8,["label"])]),_:1})])]),_:1},8,["show","title"]),w(i,{ref_key:"resourceWindowRef",ref:$,"current-path":R(U),onChooseDir:D},null,8,["current-path"])],64)}}});export{M as default};
