import{K as s,c5 as e,n as a,Q as t,e as o}from"./utils-lib.js?v=1761009159";import{c as l,g as r,q as i,v as n,N as m,B as p,e as d,y as u,z as _,C as c,x as j,F as f,b0 as b,A as y,ak as x,al as C,ab as v}from"./base-lib.js?v=1761009159";import{aA as w,aB as D,aC as S}from"./useController13.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./index105.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./useStore12.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./useController6.js?v=1761009159";import"./validator.js?v=1761009159";import"./useController5.js?v=1761009159";import"./useMethod5.js?v=1761009159";import"./useController4.js?v=1761009159";import"./useStore10.js?v=1761009159";const k={class:"el-select-dropdown__empty"},A={class:"flex items-center justify-between"},V={class:"text-[#8492a6]"},B=l({__name:"set-domain-dns",props:{compData:{type:Object,default:()=>{}}},emits:["close"],setup(l,{expose:B,emit:N}){const g=l,{BtForm:h,submit:E,param:F}=s({data:{dns_id:"",ids:[g.compData.row.root_domain_id]},options:s=>r(()=>[{type:"slots",key:"dns",rules:{dns_id:[e({message:"请选择验证类型"})]}}]),submit:async(s,e)=>(await e(),await w(s.value))}),O=()=>{a({isAsync:!0,title:"DNS接口设置",area:70,component:()=>t(()=>import("./index394.js?v=1761009159"),__vite__mapDeps([]),import.meta.url),onCancel:()=>D()})};return B({onConfirm:E}),i(D),(s,e)=>{const a=o,t=x,l=C,r=v;return n(),m(u(h),{class:"p-2rem"},{dns:p(()=>[d(r,{label:"验证类型",prop:"dns_id",class:"!m-0"},{default:p(()=>[d(l,{modelValue:u(F).dns_id,"onUpdate:modelValue":e[0]||(e[0]=s=>u(F).dns_id=s),class:"!w-[33rem]",filterable:"","default-first-option":"",placeholder:"请选择验证类型"},{empty:p(()=>[_("p",k,[e[2]||(e[2]=_("span",null,"暂无数据，请先添加DNS接口",-1)),d(a,{class:"!text-base",onClick:O},{default:p(()=>e[1]||(e[1]=[c(">>添加",-1)])),_:1,__:[1]})])]),default:p(()=>[(n(!0),j(f,null,b(u(S),s=>(n(),m(t,{key:s.id,label:s.dns_name,value:s.id},{default:p(()=>[_("div",A,[_("span",null,y(s.dns_name),1),_("span",V,y(s.ps),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}}});export{B as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
