System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1741416570306","./vue-legacy.js?v=1741416570306","./index-legacy65.js?v=1741416570306","./naive-legacy.js?v=1741416570306","./__commonjsHelpers__-legacy.js?v=1741416570306","./index-legacy104.js?v=1741416570306","./page_layout-legacy.js?v=1741416570306","./common-legacy.js?v=1741416570306","./public-legacy.js?v=1741416570306","./index-legacy.js?v=1741416570306","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1741416570306","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1741416570306","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1741416570306","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1741416570306"],(function(e,l){"use strict";var r,a,t,u,d,o,s,c,p,n,_,v,i,y,g,x,m,f,b,h,j,w,T,U;return{setters:[e=>{r=e._},e=>{a=e.d,t=e.e,u=e.M,d=e.r,o=e.j,s=e.P,c=e._,p=e.$,n=e.N,_=e.R,v=e.S,i=e.k,y=e.v},e=>{g=e.h,x=e.t,m=e.b,f=e.c,b=e.d},e=>{h=e._,j=e.cb,w=e.ch,T=e.bS,U=e.bV},null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"w-300px"},k={class:"w-300px"};e("default",a({__name:"manage-form",props:{row:{},id:{},isEdit:{type:Boolean},onRefresh:{}},setup(e,{expose:a}){const q=e,{isEdit:R,row:E,onRefresh:L}=q,S=t((()=>"CloudFlareDns"===g.value));u();const C=d(null),A=o({record_type:"A",record_value:"",ttl:1,ps:"",proxy:0,record:""}),B={record:{required:!0,trigger:"change",message:"请输入记录"},record_type:{required:!0,trigger:"blur",message:"请输入类型"},record_value:{required:!0,trigger:"blur",message:"请输入记录值"},ttl:{required:!0,trigger:"blur",type:"number",message:"请输入TTL"}},D=()=>({pid:q.id,domain:b.value,record:A.record,record_type:A.record_type,record_value:A.record_value,ttl:A.ttl,proxy:S.value?A.proxy:-1});return(()=>{const{row:e,isEdit:l}=q;l&&e&&(A.record=e.record,A.record_type=e.record_type,A.record_value=e.record_value,A.ttl=e.ttl,A.ps=e.ps,A.proxy=e.proxy)})(),a({onConfirm:async()=>{await(C.value?.validate()),R&&E?await m(D()):await f(D()),L()}}),(e,a)=>{const t=h,u=j,d=w,o=T,g=U,m=r;return s(),c(m,{class:"p-20px",ref_key:"formRef",ref:C,model:v(A),rules:B},{default:p((()=>[n(u,{label:"记录",path:"record"},{default:p((()=>[_("div",l,[n(t,{value:v(A).record,"onUpdate:value":a[0]||(a[0]=e=>v(A).record=e),placeholder:"请输入记录"},null,8,["value"])])])),_:1}),n(u,{label:"类型",path:"record_type"},{default:p((()=>[n(d,{class:"w-300px",value:v(A).record_type,"onUpdate:value":a[1]||(a[1]=e=>v(A).record_type=e),options:v(x),disabled:v(R)},null,8,["value","options","disabled"])])),_:1}),n(u,{label:"记录值",path:"record_value"},{default:p((()=>[_("div",k,[n(t,{value:v(A).record_value,"onUpdate:value":a[2]||(a[2]=e=>v(A).record_value=e),placeholder:"请输入记录值"},null,8,["value"])])])),_:1}),n(u,{label:"TTL",path:"ttl"},{default:p((()=>[n(o,{min:1,max:1800,class:"w-300px!",value:v(A).ttl,"onUpdate:value":a[3]||(a[3]=e=>v(A).ttl=e),placeholder:"请输入TTL"},null,8,["value"])])),_:1}),n(u,{label:"备注",path:"ps"},{default:p((()=>[n(t,{class:"w-300px!",value:v(A).ps,"onUpdate:value":a[4]||(a[4]=e=>v(A).ps=e),placeholder:"请输入备注"},null,8,["value"])])),_:1}),i(n(u,{label:"代理",path:"proxy"},{default:p((()=>[n(g,{value:v(A).proxy,"onUpdate:value":a[5]||(a[5]=e=>v(A).proxy=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},512),[[y,v(S)]])])),_:1},8,["model"])}}}))}}}));
