import{d as R,a3 as S,k as _,o as r,A as t,B as o,a,D as n,f as s,c as p,G as Y,C as U,E as q,X as B,K as G,Y as H,Z as X,__tla as j}from"./index-92ad187a.js";import{_ as L,__tla as O}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import{_ as Q,__tla as Z}from"./main.vue_vue_type_script_setup_true_lang-a8330ef1.js";import z,{__tla as F}from"./main-fb68aec4.js";import I,{__tla as J}from"./main-833dc8f6.js";import N,{__tla as V}from"./main-24b996ca.js";import{d as W,__tla as $}from"./formatTime-c7f253d6.js";import{D as C,__tla as ee}from"./dict-221f3e01.js";import{M as u}from"./types-5e186e8c.js";let E,re=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ee}catch{}})()]).then(async()=>{let c,y,d,m,w,g,M,h;c={key:0},y={key:1},d={key:2},m=["href"],w=["src"],g={key:3},M={key:4},h={key:5},E=R({__name:"ReplyTable",props:{loading:{type:Boolean},list:{},msgType:{}},emits:["on-update","on-delete"],setup(P,{emit:A}){const f=P,T=A;return(i,ae)=>{const l=B,k=L,v=G,x=H,b=S("hasPermi"),D=X;return _((r(),t(x,{data:f.list},{default:o(()=>[i.msgType===a(u).Message?(r(),t(l,{key:0,label:"\u8BF7\u6C42\u6D88\u606F\u7C7B\u578B",align:"center",prop:"requestMessageType"})):n("",!0),i.msgType===a(u).Keyword?(r(),t(l,{key:1,label:"\u5173\u952E\u8BCD",align:"center",prop:"requestKeyword"})):n("",!0),i.msgType===a(u).Keyword?(r(),t(l,{key:2,label:"\u5339\u914D\u7C7B\u578B",align:"center",prop:"requestMatch"},{default:o(e=>[s(k,{type:a(C).MP_AUTO_REPLY_REQUEST_MATCH,value:e.row.requestMatch},null,8,["type","value"])]),_:1})):n("",!0),s(l,{label:"\u56DE\u590D\u6D88\u606F\u7C7B\u578B",align:"center"},{default:o(e=>[s(k,{type:a(C).MP_MESSAGE_TYPE,value:e.row.responseMessageType},null,8,["type","value"])]),_:1}),s(l,{label:"\u56DE\u590D\u5185\u5BB9",align:"center"},{default:o(e=>[e.row.responseMessageType==="text"?(r(),p("div",c,Y(e.row.responseContent),1)):e.row.responseMessageType==="voice"?(r(),p("div",y,[e.row.responseMediaUrl?(r(),t(a(z),{key:0,url:e.row.responseMediaUrl},null,8,["url"])):n("",!0)])):e.row.responseMessageType==="image"?(r(),p("div",d,[U("a",{target:"_blank",href:e.row.responseMediaUrl},[U("img",{src:e.row.responseMediaUrl,style:{width:"100px"}},null,8,w)],8,m)])):e.row.responseMessageType==="video"||e.row.responseMessageType==="shortvideo"?(r(),p("div",g,[e.row.responseMediaUrl?(r(),t(a(Q),{key:0,url:e.row.responseMediaUrl,style:{"margin-top":"10px"}},null,8,["url"])):n("",!0)])):e.row.responseMessageType==="news"?(r(),p("div",M,[s(a(N),{articles:e.row.responseArticles},null,8,["articles"])])):e.row.responseMessageType==="music"?(r(),p("div",h,[s(a(I),{title:e.row.responseTitle,description:e.row.responseDescription,"thumb-media-url":e.row.responseThumbMediaUrl,"music-url":e.row.responseMusicUrl,"hq-music-url":e.row.responseHqMusicUrl},null,8,["title","description","thumb-media-url","music-url","hq-music-url"])])):n("",!0)]),_:1}),s(l,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(W),width:"180"},null,8,["formatter"]),s(l,{label:"\u64CD\u4F5C",align:"center"},{default:o(e=>[_((r(),t(v,{type:"primary",link:"",onClick:K=>T("on-update",e.row.id)},{default:o(()=>[q(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[b,["mp:auto-reply:update"]]]),_((r(),t(v,{type:"danger",link:"",onClick:K=>T("on-delete",e.row.id)},{default:o(()=>[q(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["mp:auto-reply:delete"]]])]),_:1})]),_:1},8,["data"])),[[D,f.loading]])}}})});export{E as _,re as __tla};
