System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./utils-legacy-QJQOPO7z.js?v=1773287522785","./ssl-legacy-BRxc0DyI.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785"],(function(e,l){"use strict";var t,a,r,s,n,u,i,o,c,d,p,_,g,y,m;return{setters:[e=>{t=e._},e=>{a=e.t},e=>{r=e.T},e=>{s=e.k,n=e.R,u=e.r,i=e.e,o=e.$,c=e.Z,d=e.a0,p=e.a9,_=e.S},e=>{g=e.a1,y=e._,m=e.a6},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:v}=n(),f=e,{rows:x,refresh:b}=f,h=u(null),j=i({ttl:null,record_type:"A"}),S={record_value:{required:!0,trigger:["blur","change"],message:v("SSL.Domain.index_14")},ttl:{required:!0,trigger:"blur",type:"number",message:v("SSL.Domain.index_15")}};return s({onConfirm:async()=>{await(h.value?.validate()),await r({domains:JSON.stringify(x.map((e=>e.name))),...j}),b?.()}}),(e,r)=>{const s=y,n=g,u=m,i=t;return o(),c("div",l,[d(i,{ref_key:"formRef",ref:h,model:_(j),rules:S,"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"])])}}}))}}}));
