System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index-legacy100.js?v=1753954525509","./mail-legacy2.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,r,d,s,u,t,i,o,n,c,_,v,p,f,w,m,x,y,b;return{setters:[e=>{l=e._},e=>{r=e._},e=>{d=e.X,s=e.ar},e=>{u=e.k,t=e.r,i=e.e,o=e.U,n=e.V,c=e.Q,_=e.a2,v=e.X,p=e.W,f=e.a1,w=e.al,m=e.N},e=>{x=e.c5,y=e.cA,b=e.aq},null,null,null,null],execute:function(){const a={class:"p-20px pb-32px"},h={class:"w-300px"},g={class:"w-300px"},j={class:"w-300px"};e("default",u({__name:"index",props:{row:{},isEdit:{type:Boolean}},emits:["refresh"],setup(e,{expose:u,emit:$}){const k=e,F=$,{isEdit:M}=k,U=t(null),E=i({user:"",domain:"",forward_user:"",active:1}),S={};return(()=>{const{row:e,isEdit:a}=k;a&&e&&(E.active=e.active,E.user=e.address,E.domain=e.domain,E.forward_user=e.goto)})(),u({onConfirm:async()=>{await(U.value?.validate()),M?await d({user:E.user,forward_user:E.forward_user,active:E.active}):await s(m(E)),F("refresh")}}),(e,d)=>{const s=x,u=y,t=b,i=r,m=l;return o(),n("div",a,[c(m,{ref_key:"formRef",ref:U,model:v(E),rules:S},{default:_((()=>[c(u,{label:e.$t("Public.Table.Status")},{default:_((()=>[c(s,{value:v(E).active,"onUpdate:value":d[0]||(d[0]=e=>v(E).active=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"]),c(u,{label:e.$t("Mail.Forward.index_10"),path:"user"},{default:_((()=>[p("div",h,[c(t,{value:v(E).user,"onUpdate:value":d[1]||(d[1]=e=>v(E).user=e),disabled:v(M),placeholder:e.$t("Mail.Forward.index_11")},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),v(M)?w("",!0):(o(),f(u,{key:0,label:e.$t("Mail.Forward.index_4"),path:"domain"},{default:_((()=>[p("div",g,[c(t,{value:v(E).domain,"onUpdate:value":d[2]||(d[2]=e=>v(E).domain=e),placeholder:e.$t("Mail.Forward.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"])),c(u,{label:e.$t("Mail.Forward.index_13"),path:"forward_user","show-feedback":!1},{default:_((()=>[p("div",j,[c(i,{value:v(E).forward_user,"onUpdate:value":d[3]||(d[3]=e=>v(E).forward_user=e),rows:3,placeholder:e.$t("Mail.Forward.index_14")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
