System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./mail-legacy-BX4bHMTA.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"],(function(e,a){"use strict";var l,r,d,t,s,u,i,o,n,c,v,_,p,f,w,x,m,b,h;return{setters:[e=>{l=e._},e=>{r=e._},e=>{d=e.Z,t=e.at},e=>{s=e.k,u=e.r,i=e.e,o=e.$,n=e.Z,c=e.a0,v=e.a9,_=e.S,p=e._,f=e.a8,w=e.ak,x=e.N},e=>{m=e.a1,b=e.a8,h=e.b},null,null],execute:function(){const a={class:"p-20px pb-32px"},y={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=u(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 t(x(E)),F("refresh")}}),(e,d)=>{const t=b,s=m,u=h,i=r,x=l;return o(),n("div",a,[c(x,{ref_key:"formRef",ref:U,model:_(E),rules:S},{default:v((()=>[c(s,{label:e.$t("Public.Table.Status")},{default:v((()=>[c(t,{value:_(E).active,"onUpdate:value":d[0]||(d[0]=e=>_(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:v((()=>[p("div",y,[c(u,{value:_(E).user,"onUpdate:value":d[1]||(d[1]=e=>_(E).user=e),disabled:_(M),placeholder:e.$t("Mail.Forward.index_11")},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),_(M)?w("",!0):(o(),f(s,{key:0,label:e.$t("Mail.Forward.index_4"),path:"domain"},{default:v((()=>[p("div",g,[c(u,{value:_(E).domain,"onUpdate:value":d[2]||(d[2]=e=>_(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:v((()=>[p("div",j,[c(i,{value:_(E).forward_user,"onUpdate:value":d[3]||(d[3]=e=>_(E).forward_user=e),rows:3,placeholder:e.$t("Mail.Forward.index_14")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
