import{_ as a}from"./index105.js?v=1761009159";import{P as s,l as t}from"./utils-lib.js?v=1761009159";import{bI as e}from"./firewall.js?v=1761009159";import{a as o}from"./column.js?v=1761009159";import{c as r,r as i,V as l,o as n,q as m,H as p,v as d,x as c,e as u,B as f,I as b,y as h}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";const j={class:"px-[1.6rem] py-[0.6rem]"},x=r({__name:"add-website-dir",props:{compData:{default:()=>{}}},setup(r,{expose:x}){const _=r,y=i(!1),v=l(),g=n({list:[],num:0}),w=[o({key:"path"}),{label:"目录",prop:"path"}],q=a=>{g.num=a.length,g.list=a};return m(()=>{(async()=>{var a;await s({request:e(),loading:y,data:[Array,v]}),v.value=null==(a=v.value)?void 0:a.map(a=>({path:a}))})()}),x({onConfirm:async a=>{try{_.compData.dirs=g.list.map(a=>a.path).join("\n"),a()}catch(s){}}}),(s,e)=>{const o=t,r=a,i=p("bt-loading");return d(),c("div",j,[u(r,null,{content:f(()=>[b(u(o,{ref:"addWebsiteTable","max-height":"260px",column:w,onSelectionChange:q,data:h(v),description:"端口列表为空"},null,8,["data"]),[[i,h(y)],[i,"正在加载端口列表，请稍后...","title"]])]),_:1})])}}});export{x as default};
