import{_ as e}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764233927359";import{t as a}from"./utils3.js?v=1764233927359";import{h1 as t}from"./page_layout.js?v=1764233927359";import{k as r,P as l,r as s,e as o,R as p,V as n,W as i,a3 as u,U as m}from"./vue.js?v=1764233927359";import{dR as d,df as _,dV as c}from"./naive.js?v=1764233927359";import"./public.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";const f={class:"p-20px"},v=r({__name:"set-ttl",props:{rows:{},refresh:{}},setup(r,{expose:v}){const{t:b}=l(),g=r,{rows:h,refresh:x}=g,y=s(null),j=o({ttl:null,record_type:"A"}),w={record_value:{required:!0,trigger:["blur","change"],message:b("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:b("SSL.Domain.index_15")}};return v({onConfirm:async()=>{var e;await(null==(e=y.value)?void 0:e.validate()),await t({domains:JSON.stringify(h.map(e=>e.name)),...j}),null==x||x()}}),(t,r)=>{const l=_,s=d,o=c,v=e;return n(),p("div",f,[i(v,{ref_key:"formRef",ref:y,model:m(j),rules:w,"label-width":"100"},{default:u(()=>[i(s,{label:"TTL",path:"ttl"},{default:u(()=>[i(l,{"show-button":!1,class:"w-300px!",value:m(j).ttl,"onUpdate:value":r[0]||(r[0]=e=>m(j).ttl=e),placeholder:t.$t("SSL.Domain.index_15")},null,8,["value","placeholder"])]),_:1}),i(s,{label:t.$t("Ftp.Table.index_3"),path:"record_type"},{default:u(()=>[i(o,{class:"w-300px",value:m(j).record_type,"onUpdate:value":r[1]||(r[1]=e=>m(j).record_type=e),options:m(a)},null,8,["value","options"])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{v as default};
