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