"use strict";var g=Object.defineProperty,h=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var c=(e,s,a)=>s in e?g(e,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[s]=a,p=(e,s)=>{for(var a in s||(s={}))T.call(s,a)&&c(e,a,s[a]);if(r)for(var a of r(s))f.call(s,a)&&c(e,a,s[a]);return e},l=(e,s)=>h(e,y(s));var t=require("../../../../../../common/vendor.js"),_=require("../../../../utils/untis.js"),D=require("../../../../utils/date.js");require("../../../../utils/decodeText.js");require("../../../../utils/emojiMap.js");const A=t.defineComponent({props:{data:{type:Array,default:()=>[]},types:{type:Object,default:()=>({})}},setup(e,s){const a=t.reactive({messageList:[],types:{}});t.watchEffect(()=>{a.messageList=e.data,a.types=e.types});const o=()=>{t.index.showActionSheet({itemList:["\u540C\u610F","\u62D2\u7EDD"],success:i=>{const n={handleAction:"Agree",handleMessage:"\u6B22\u8FCE\u8FDB\u7FA4",message:this.message};i.tapIndex===1&&(n.handleAction="Reject",n.handleMessage="\u62D2\u7EDD\u7533\u8BF7"),t.index.$TUIKit.handleGroupApplication(n).then(()=>{t.index.showToast({title:n.handleAction==="Agree"?"\u5DF2\u540C\u610F\u7533\u8BF7":"\u5DF2\u62D2\u7EDD\u7533\u8BF7"})}).catch(u=>{t.index.showToast({title:u.message||"\u5904\u7406\u5931\u8D25",icon:"none"})})}})};return l(p({},t.toRefs(a)),{translateGroupSystemNotice:_.translateGroupSystemNotice,handleApplication:o,caculateTimeago:D.caculateTimeago})}}),F=A;function C(e,s,a,o,i,n){return{a:t.f(e.messageList,(u,d,v)=>t.e({a:u.payload.operationType===1},u.payload.operationType===1?{b:t.t(e.caculateTimeago(u.time*1e3)),c:t.t(e.translateGroupSystemNotice(u)),d:t.o((...m)=>e.handleClick&&e.handleClick(...m))}:{e:t.t(e.caculateTimeago(u.time*1e3)),f:t.t(e.translateGroupSystemNotice(u))},{g:d}))}}var j=t._export_sfc(F,[["render",C],["__scopeId","data-v-aa946b70"],["__file","E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages/TUIKit/TUIPages/TUIChat/components/message-elements/message-system.vue"]]);wx.createComponent(j);
