import{d as D,M as H,z as _,o as r,x as a,w as o,a as t,a0 as n,f as s,c as p,t as S,g as U,y as q,I as z,G,J as B,K as J,_ as Y,__tla as j}from"./index-8dc1e40a.js";import{_ as I,__tla as L}from"./DictTag-85aade2b.js";import N,{__tla as O}from"./main-e0b1ced1.js";import Q,{__tla as X}from"./main-e9c0874d.js";import F,{__tla as V}from"./main-3b32d1ab.js";import W,{__tla as Z}from"./main-a65bb27b.js";import{d as $,__tla as ee}from"./formatTime-8a155b2e.js";import{D as P,__tla as re}from"./dict-f13a3c8f.js";import{M as u}from"./types-5e186e8c.js";import"./color-6e929987.js";import{__tla as te}from"./el-link-a41356f3.js";import{__tla as ae}from"./el-image-6a48e9f1.js";import{__tla as se}from"./el-image-viewer-3b8905e6.js";let x,le=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return se}catch{}})()]).then(async()=>{let c,m,y,d,w,g,f,M;c={key:0},m={key:1},y={key:2},d=["href"],w=["src"],g={key:3},f={key:4},M={key:5},x=Y(D({__name:"ReplyTable",props:{loading:{type:Boolean,required:!0},list:{type:Array,required:!0},msgType:{type:Number,required:!0}},emits:["on-update","on-delete"],setup(C,{emit:E}){const h=C,T=E;return(i,oe)=>{const l=z,k=I,v=G,R=B,b=H("hasPermi"),A=J;return _((r(),a(R,{data:h.list},{default:o(()=>[i.msgType===t(u).Message?(r(),a(l,{key:0,label:"\u8BF7\u6C42\u6D88\u606F\u7C7B\u578B",align:"center",prop:"requestMessageType"})):n("",!0),i.msgType===t(u).Keyword?(r(),a(l,{key:1,label:"\u5173\u952E\u8BCD",align:"center",prop:"requestKeyword"})):n("",!0),i.msgType===t(u).Keyword?(r(),a(l,{key:2,label:"\u5339\u914D\u7C7B\u578B",align:"center",prop:"requestMatch"},{default:o(e=>[s(k,{type:t(P).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:t(P).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,S(e.row.responseContent),1)):e.row.responseMessageType==="voice"?(r(),p("div",m,[e.row.responseMediaUrl?(r(),a(t(Q),{key:0,url:e.row.responseMediaUrl},null,8,["url"])):n("",!0)])):e.row.responseMessageType==="image"?(r(),p("div",y,[U("a",{target:"_blank",href:e.row.responseMediaUrl},[U("img",{src:e.row.responseMediaUrl,style:{width:"100px"}},null,8,w)],8,d)])):e.row.responseMessageType==="video"||e.row.responseMessageType==="shortvideo"?(r(),p("div",g,[e.row.responseMediaUrl?(r(),a(t(N),{key:0,url:e.row.responseMediaUrl,style:{"margin-top":"10px"}},null,8,["url"])):n("",!0)])):e.row.responseMessageType==="news"?(r(),p("div",f,[s(t(W),{articles:e.row.responseArticles},null,8,["articles"])])):e.row.responseMessageType==="music"?(r(),p("div",M,[s(t(F),{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:t($),width:"180"},null,8,["formatter"]),s(l,{label:"\u64CD\u4F5C",align:"center"},{default:o(e=>[_((r(),a(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(),a(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"])),[[A,h.loading]])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/autoReply/components/ReplyTable.vue"]])});export{le as __tla,x as default};
