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