System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BBkGleHZ.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./campaign-legacy-DoNavHj-.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785"],(function(e,a){"use strict";var l,t,s,i,n,d,u,_,c,r,o,p,g,b,x,y,m,M,f,v,j,h,$,w,k,z,U,C,R;return{setters:[e=>{l=e.w,t=e.i,s=e.v,i=e.x},e=>{n=e._},e=>{d=e._},e=>{u=e._},e=>{_=e.V},e=>{c=e.u},e=>{r=e.k,o=e.R,p=e.e,g=e.$,b=e.a8,x=e.a9,y=e.a0,m=e.S,M=e.t,f=e.c,v=e.Z,j=e.j,h=e.aa,$=e.F,w=e.P,k=e._},e=>{z=e.aj,U=e.k,C=e.o,R=e.ak},null,null,null],execute:function(){const a=r({__name:"index",props:{data:{}},setup(e){const a=e,{t:s}=o(),{id:i}=a.data,r=p({p:1,size:10}),{table:M,columns:f}=c([{key:"recipient",title:s("Config.Alarm.index_3")},{key:"created",title:s("Mail.Unsubscribe.index_24"),align:"right",render:e=>l(e.created)}]),v=async()=>{try{M.loading=!0;const{message:e}=await _({task_id:i,...r});t(e)&&(M.data=e.data,M.total=e.total)}finally{M.loading=!1}};return v(),(e,a)=>{const l=u,t=d,s=n;return g(),b(s,{class:"p-16px"},{table:x((()=>[y(l,{loading:m(M).loading,"loading-num":3,data:m(M).data,columns:m(f)},null,8,["loading","data","columns"])])),pageRight:x((()=>[y(t,{page:m(r).p,"onUpdate:page":a[0]||(a[0]=e=>m(r).p=e),"page-size":m(r).size,"onUpdate:pageSize":a[1]||(a[1]=e=>m(r).size=e),"item-count":m(M).total,onRefresh:v},null,8,["page","page-size","item-count"])])),_:1})}}}),S={class:"p-20px"};e("default",r({__name:"index",props:{row:{}},emits:["add"],setup(e,{expose:l,emit:t}){const n=e,{t:d}=o(),u=t,_=M(n,"row"),c=s(""),r=()=>{c.data.id=_.value.id,c.title=`${d("Mail.Unsubscribe.index_25")} [${_.value.subject}]`,c.show=!0},p=f((()=>_.value.mail_type.map((e=>Object.values(e)[0]))));return l({onConfirm:()=>{u("add",_.value)}}),(e,l)=>{const t=z,s=C,n=U,d=R,u=i;return g(),v("div",S,[y(d,{"label-placement":"left",bordered:!0,column:1,"label-style":{width:"180px"}},{default:x((()=>[y(t,{label:"Display Name"},{default:x((()=>[j(h(m(_).full_name),1)])),_:1}),y(t,{label:e.$t("Mail.Mass.index_4")},{default:x((()=>[j(h(m(_).addresser),1)])),_:1},8,["label"]),y(t,{label:e.$t("Mail.Mass.index_23")},{default:x((()=>[j(h(m(_).subject),1)])),_:1},8,["label"]),y(t,{label:e.$t("Mail.Mass.index_30")},{default:x((()=>[j(h(1===m(_).is_record?e.$t("Mail.Mass.index_64"):e.$t("Mail.Mass.index_65")),1)])),_:1},8,["label"]),y(t,{label:"Groups"},{default:x((()=>[y(n,null,{default:x((()=>[(g(!0),v($,null,w(m(p),(e=>(g(),b(s,{key:e,size:"small"},{default:x((()=>[j(h(e),1)])),_:2},1024)))),128))])),_:1})])),_:1}),y(t,{label:e.$t("Mail.Unsubscribe.index_25")},{default:x((()=>[k("span",{class:"bt-link",onClick:r},h(e.$t("Public.Btn.Click")),1)])),_:1},8,["label"]),y(t,{label:e.$t("Mail.Mass.index_31")},{default:x((()=>[j(h(1===m(_).unsubscribe?e.$t("Mail.Mass.index_64"):e.$t("Mail.Mass.index_65")),1)])),_:1},8,["label"]),y(t,{label:e.$t("Mail.Mass.index_33")},{default:x((()=>[j(h(0===m(_).threads?e.$t("Mail.Mass.index_34"):m(_).threads),1)])),_:1},8,["label"])])),_:1}),y(u,{show:m(c).show,"onUpdate:show":l[0]||(l[0]=e=>m(c).show=e),title:m(c).title,data:m(c).data,width:550,"min-height":280,component:a},null,8,["show","title","data"])])}}}))}}}));
