System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.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,t,u,s,c,d,i,n,o,p,_,v,f,y,w,x,b;return{setters:[e=>{l=e._},e=>{r=e.ap,t=e.aq},e=>{u=e.k,s=e.P,c=e.r,d=e.e,i=e.R,n=e.S,o=e.X,p=e.a3,_=e.U,v=e.V,f=e.N},e=>{y=e.au,w=e.dP,x=e.dV,b=e.dj},null,null,null,null],execute:function(){const a={class:"p-20px"},m={class:"w-300px"},h={class:"w-300px"},g={class:"w-300px"};e("default",u({__name:"index",props:{row:{},isEdit:{type:Boolean}},emits:["refresh"],setup(e,{expose:u,emit:j}){const B=e,M=j,{isEdit:k,row:U}=B,{t:$}=s(),E=c(null),P=d({user:"",forward_user:"",type:"sender",active:1}),R=[{label:$("Mail.Bcc.index_2"),value:"sender"},{label:$("Mail.Bcc.index_3"),value:"recipient"}],S={};return(()=>{const{row:e,isEdit:a}=B;a&&e&&(P.user=e.user,P.forward_user=e.forward_user,P.type=e.type,P.active=e.active)})(),u({onConfirm:async()=>{await(E.value?.validate()),k&&U?await r({user:U.user,type:U.type,forward_user:U.forward_user,type_new:P.type,forward_user_new:P.forward_user,active_new:P.active}):await t(f(P)),M("refresh")}}),(e,r)=>{const t=y,u=w,s=x,c=b,d=l;return i(),n("div",a,[o(d,{ref_key:"formRef",ref:E,model:v(P),rules:S},{default:p((()=>[o(u,{label:e.$t("Mail.Bcc.index_4"),path:"user"},{default:p((()=>[_("div",m,[o(t,{value:v(P).user,"onUpdate:value":r[0]||(r[0]=e=>v(P).user=e),disabled:v(k),placeholder:e.$t("Mail.Bcc.index_11")},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),o(u,{label:e.$t("Mail.Bcc.index_5"),path:"forward_user"},{default:p((()=>[_("div",h,[o(t,{value:v(P).forward_user,"onUpdate:value":r[1]||(r[1]=e=>v(P).forward_user=e),placeholder:e.$t("Mail.Bcc.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),o(u,{label:e.$t("Mail.Bcc.index_7"),path:"type"},{default:p((()=>[_("div",g,[o(s,{value:v(P).type,"onUpdate:value":r[2]||(r[2]=e=>v(P).type=e),options:R},null,8,["value"])])])),_:1},8,["label"]),o(u,{label:"Active","show-feedback":!1},{default:p((()=>[o(c,{value:v(P).active,"onUpdate:value":r[3]||(r[3]=e=>v(P).active=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1})])),_:1},8,["model"])])}}}))}}}));
