import{d as Z,a4 as j,o as e,c as l,k as D,C as u,A as n,f as a,a as r,D as o,E as d,B as c,X as G,aw as O,J as Q,Y as R,Z as S,_ as $,__tla as tt}from"./index-286756b9.js";import et,{__tla as rt}from"./main-53b5a2f2.js";import at,{__tla as lt}from"./main-12ab9f27.js";import ot,{__tla as nt}from"./main-16e86c63.js";import it,{__tla as st}from"./main-4caf94c8.js";import _t,{__tla as dt}from"./main-2691e73f.js";import{d as ut,__tla as ct}from"./formatTime-83e416ef.js";import{M as i}from"./types-5fca7b13.js";import{__tla as yt}from"./el-link-c30faa98.js";import{__tla as pt}from"./el-image-73c105b7.js";import{__tla as wt}from"./el-image-viewer-e0e5d3be.js";let F,mt=Promise.all([(()=>{try{return tt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return wt}catch{}})()]).then(async()=>{let y,p,w,m,v,f,h,k,g,b,E,x,U,M,q,C,K,I,T,L,V,z,A;y={key:0},p={key:1},w={key:2},m={key:3},v={key:4},f={key:5},h={key:6},k={key:7},g={key:8},b={key:9},E={key:10},x={key:11},U={key:12},M={key:13},q=["href"],C=["src"],K={key:14},I={key:15},T=["href"],L={key:16},V={key:17},z={key:18},A={key:19},F=$(Z({__name:"MessageTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["send"],setup(P,{emit:X}){const B=P,Y=X;return(vt,ft)=>{const _=G,s=O,H=Q,J=R,N=j("hasPermi"),W=S;return e(),l("div",null,[D((e(),u(J,{data:B.list},{default:n(()=>[a(_,{label:"\u53D1\u9001\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:r(ut)},null,8,["formatter"]),a(_,{label:"\u6D88\u606F\u7C7B\u578B",align:"center",prop:"type",width:"80"}),a(_,{label:"\u53D1\u9001\u65B9",align:"center",prop:"sendFrom",width:"80"},{default:n(t=>[t.row.sendFrom===1?(e(),u(s,{key:0,type:"success"},{default:n(()=>[o("\u7C89\u4E1D")]),_:1})):(e(),u(s,{key:1,type:"info"},{default:n(()=>[o("\u516C\u4F17\u53F7")]),_:1}))]),_:1}),a(_,{label:"\u7528\u6237\u6807\u8BC6",align:"center",prop:"openid",width:"300"}),a(_,{label:"\u5185\u5BB9",prop:"content"},{default:n(t=>[t.row.type===r(i).Event&&t.row.event==="subscribe"?(e(),l("div",y,[a(s,{type:"success"},{default:n(()=>[o("\u5173\u6CE8")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="unsubscribe"?(e(),l("div",p,[a(s,{type:"danger"},{default:n(()=>[o("\u53D6\u6D88\u5173\u6CE8")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="CLICK"?(e(),l("div",w,[a(s,null,{default:n(()=>[o("\u70B9\u51FB\u83DC\u5355")]),_:1}),o(" \u3010"+d(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="VIEW"?(e(),l("div",m,[a(s,null,{default:n(()=>[o("\u70B9\u51FB\u83DC\u5355\u94FE\u63A5")]),_:1}),o(" \u3010"+d(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="scancode_waitmsg"?(e(),l("div",v,[a(s,null,{default:n(()=>[o("\u626B\u7801\u7ED3\u679C")]),_:1}),o(" \u3010"+d(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="scancode_push"?(e(),l("div",f,[a(s,null,{default:n(()=>[o("\u626B\u7801\u7ED3\u679C")]),_:1}),o(" \u3010"+d(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="pic_sysphoto"?(e(),l("div",h,[a(s,null,{default:n(()=>[o("\u7CFB\u7EDF\u62CD\u7167\u53D1\u56FE")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="pic_photo_or_album"?(e(),l("div",k,[a(s,null,{default:n(()=>[o("\u62CD\u7167\u6216\u8005\u76F8\u518C")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="pic_weixin"?(e(),l("div",g,[a(s,null,{default:n(()=>[o("\u5FAE\u4FE1\u76F8\u518C")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="location_select"?(e(),l("div",b,[a(s,null,{default:n(()=>[o("\u9009\u62E9\u5730\u7406\u4F4D\u7F6E")]),_:1})])):t.row.type===r(i).Event?(e(),l("div",E,[a(s,{type:"danger"},{default:n(()=>[o("\u672A\u77E5\u4E8B\u4EF6\u7C7B\u578B")]),_:1})])):t.row.type===r(i).Text?(e(),l("div",x,d(t.row.content),1)):t.row.type===r(i).Voice?(e(),l("div",U,[a(r(at),{url:t.row.mediaUrl,content:t.row.recognition},null,8,["url","content"])])):t.row.type===r(i).Image?(e(),l("div",M,[c("a",{target:"_blank",href:t.row.mediaUrl},[c("img",{src:t.row.mediaUrl,style:{width:"100px"}},null,8,C)],8,q)])):t.row.type===r(i).Video||t.row.type==="shortvideo"?(e(),l("div",K,[a(r(et),{url:t.row.mediaUrl,style:{"margin-top":"10px"}},null,8,["url"])])):t.row.type===r(i).Link?(e(),l("div",I,[a(s,null,{default:n(()=>[o("\u94FE\u63A5")]),_:1}),o(" \uFF1A "),c("a",{href:t.row.url,target:"_blank"},d(t.row.title),9,T)])):t.row.type===r(i).Location?(e(),l("div",L,[a(r(ot),{label:t.row.label,"location-y":t.row.locationY,"location-x":t.row.locationX},null,8,["label","location-y","location-x"])])):t.row.type===r(i).Music?(e(),l("div",V,[a(r(it),{title:t.row.title,description:t.row.description,"thumb-media-url":t.row.thumbMediaUrl,"music-url":t.row.musicUrl,"hq-music-url":t.row.hqMusicUrl},null,8,["title","description","thumb-media-url","music-url","hq-music-url"])])):t.row.type===r(i).News?(e(),l("div",z,[a(r(_t),{articles:t.row.articles},null,8,["articles"])])):(e(),l("div",A,[a(s,{type:"danger"},{default:n(()=>[o("\u672A\u77E5\u6D88\u606F\u7C7B\u578B")]),_:1})]))]),_:1}),a(_,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:n(t=>[D((e(),u(H,{link:"",type:"primary",onClick:ht=>Y("send",t.row.userId)},{default:n(()=>[o(" \u6D88\u606F ")]),_:2},1032,["onClick"])),[[N,["mp:message:send"]]])]),_:1})]),_:1},8,["data"])),[[W,B.loading]])])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mp/message/MessageTable.vue"]])});export{mt as __tla,F as default};