System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index-legacy99.js?v=1763625242172","./mail-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,r,d,u,s,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,u=e.ar},e=>{s=e.k,t=e.r,i=e.e,o=e.R,n=e.S,c=e.X,_=e.a3,v=e.V,p=e.U,f=e.a2,w=e.an,m=e.N},e=>{x=e.dj,y=e.dP,b=e.au},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",s({__name:"index",props:{row:{},isEdit:{type:Boolean}},emits:["refresh"],setup(e,{expose:s,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)})(),s({onConfirm:async()=>{await(U.value?.validate()),M?await d({user:E.user,forward_user:E.forward_user,active:E.active}):await u(m(E)),F("refresh")}}),(e,d)=>{const u=x,s=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(s,{label:e.$t("Public.Table.Status")},{default:_((()=>[c(u,{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(s,{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(s,{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(s,{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"])])}}}))}}}));
