import{an as a,i_ as e,V as t,n as s,Q as l,_ as o}from"./utils-lib.js?v=1761009159";import{c as r,v as d,N as i,B as n,e as p,y as c,at as u,g as m,aO as _,x as b,C as f,A as w,F as h,b0 as j,z as B,bO as g,bL as v,bN as x,be as y}from"./base-lib.js?v=1761009159";import{a as D}from"./useMethod7.js?v=1761009159";import{_ as O}from"./index105.js?v=1761009159";const k=r({__name:"index",props:{compData:{}},setup(s){const l=s,{id:o}=l.compData,{BtTable:r,BtPage:u,BtRefresh:m,BtTableCategory:_,BtRecommendSearch:b,BtColumn:f,BtBatch:w,BtErrorMask:h,refresh:j}=a({request:async a=>{let t={task_id:o,p:a.p,size:a.limit};const{data:s}=await e(t);return{data:s.data,total:s.total}},columns:[{prop:"recipient",label:"邮箱"},{prop:"created",label:"退订时间",align:"right",render:a=>t(a.created)}]});return(a,e)=>{const t=O;return d(),i(t,{class:"p-16px"},{content:n(()=>[p(c(r))]),"footer-right":n(()=>[p(c(u))]),_:1})}}}),C={class:"p-20px"},z=o(r({__name:"index",props:{compData:{}},emits:["add"],setup(a,{expose:e,emit:t}){const o=t,r=u(a,"compData"),O=D(""),z=()=>{s({title:"退订【".concat(r.value.row.subject,"】"),area:55,compData:{id:r.value.row.id},component:()=>l(()=>import("./index471.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)})},T=m(()=>r.value.row.mail_type.map(a=>Object.values(a)[0]));return e({onConfirm:()=>{o("add",r.value.row)}}),(a,e)=>{const t=g,s=y,l=v,o=x,u=_("bt-modal");return d(),b("div",C,[p(o,{column:1,border:"",class:"table-descriptions"},{default:n(()=>[p(t,{label:"显示名称"},{default:n(()=>[f(w(c(r).row.full_name),1)]),_:1}),p(t,{label:"发件人"},{default:n(()=>[f(w(c(r).row.addresser),1)]),_:1}),p(t,{label:"邮件主题"},{default:n(()=>[f(w(c(r).row.subject),1)]),_:1}),p(t,{label:"保存在发件箱"},{default:n(()=>[f(w(1===c(r).row.is_record?"是":"否"),1)]),_:1}),p(t,{label:"分组"},{default:n(()=>[p(l,{wrap:""},{default:n(()=>[(d(!0),b(h,null,j(c(T),a=>(d(),i(s,{type:"info",key:a,size:"small"},{default:n(()=>[f(w(a),1)]),_:2},1024))),128))]),_:1})]),_:1}),p(t,{label:"退订者"},{default:n(()=>[B("span",{class:"bt-link",onClick:z},"点击查看")]),_:1}),p(t,{label:"退订链接"},{default:n(()=>[f(w(1===c(r).row.unsubscribe?"是":"否"),1)]),_:1}),p(t,{label:"线程数"},{default:n(()=>[f(w(0===c(r).row.threads?"自动":c(r).row.threads),1)]),_:1})]),_:1}),p(u,{show:c(O).show,"onUpdate:show":e[0]||(e[0]=a=>c(O).show=a),title:c(O).title,data:c(O).data,width:550,"min-height":280,component:k},null,8,["show","title","data"])])}}}),[["__scopeId","data-v-941ac94f"]]),T=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));export{k as _,T as i};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
