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