System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.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,t,u,s,c,i,d,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,i=e.e,d=e.U,n=e.V,o=e.Q,p=e.a2,_=e.W,v=e.X,f=e.N},e=>{y=e.aq,w=e.cA,x=e.cG,b=e.c5},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),q=i({user:"",forward_user:"",type:"sender",active:1}),A=[{label:$("Mail.Bcc.index_2"),value:"sender"},{label:$("Mail.Bcc.index_3"),value:"recipient"}],C={};return(()=>{const{row:e,isEdit:a}=B;a&&e&&(q.user=e.user,q.forward_user=e.forward_user,q.type=e.type,q.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:q.type,forward_user_new:q.forward_user,active_new:q.active}):await t(f(q)),M("refresh")}}),(e,r)=>{const t=y,u=w,s=x,c=b,i=l;return d(),n("div",a,[o(i,{ref_key:"formRef",ref:E,model:v(q),rules:C},{default:p((()=>[o(u,{label:e.$t("Mail.Bcc.index_4"),path:"user"},{default:p((()=>[_("div",m,[o(t,{value:v(q).user,"onUpdate:value":r[0]||(r[0]=e=>v(q).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(q).forward_user,"onUpdate:value":r[1]||(r[1]=e=>v(q).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(q).type,"onUpdate:value":r[2]||(r[2]=e=>v(q).type=e),options:A},null,8,["value"])])])),_:1},8,["label"]),o(u,{label:"Active","show-feedback":!1},{default:p((()=>[o(c,{value:v(q).active,"onUpdate:value":r[3]||(r[3]=e=>v(q).active=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1})])),_:1},8,["model"])])}}}))}}}));
