"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const o=require("../../../../../common/assets.js"),r=require("../../utils/wordsList.js"),n=require("../../utils/utils.js"),i=require("../../../../utils/env.js"),s=require("../../config.js");Math||t();const t=()=>"../toolbar-item-container/index.js",l=e.defineComponent({__name:"index",emits:["onDialogPopupShowOrHide"],setup(t,{emit:l}){const u="dark"===s.ChatConfig.getTheme()?o.wordsIconDark:o.wordsIconLight,a=l,d=e.ref(),c=e.ref();e.Jt.watch(e.o.CONV,{currentConversation:e=>{d.value=e}});const p=()=>{var e;null==(e=null==c?void 0:c.value)||e.toggleDialogDisplay(!1)},f=()=>{a("onDialogPopupShowOrHide",!0)},v=()=>{a("onDialogPopupShowOrHide",!1)};return(o,s)=>e.e({a:e.t(e.unref(e.Wt).t("Words.常用语-快捷回复工具")),b:e.n(!e.unref(i.isPC)&&"words-h5-header-title"),c:!e.unref(i.isPC)},e.unref(i.isPC)?{}:{d:e.n(!e.unref(i.isPC)&&"words-h5-header-close"),e:e.o$1(p)},{f:e.n(!e.unref(i.isPC)&&"words-h5-header"),g:e.f(e.unref(r.wordsList),((o,r,i)=>({a:e.t(e.unref(e.Wt).t(`Words.${o.value}`)),b:r,c:e.o$1((r=>(o=>{var r,i,s,t,l,u;const a={to:(null==(i=null==(r=null==d?void 0:d.value)?void 0:r.groupProfile)?void 0:i.groupID)||(null==(t=null==(s=null==d?void 0:d.value)?void 0:s.userProfile)?void 0:t.userID),conversationType:null==(l=null==d?void 0:d.value)?void 0:l.type,payload:{text:e.Wt.t(`Words.${o.value}`)},needReadReceipt:n.isEnabledMessageReadReceiptGlobal()};e.Qt.sendTextMessage(a),null==(u=null==c?void 0:c.value)||u.toggleDialogDisplay(!1)})(o)),r)}))),h:e.n(!e.unref(i.isPC)&&"words-h5-list-item"),i:e.n(!e.unref(i.isPC)&&"words-h5-list"),j:e.n(!e.unref(i.isPC)&&"words-h5"),k:e.sr(c,"1cf1abee-0",{k:"container"}),l:e.o$1(f),m:e.o$1(v),n:e.p({iconFile:e.unref(u),title:"常用语",needBottomPopup:!0,iconWidth:e.unref(i.isUniFrameWork)?"26px":"20px",iconHeight:e.unref(i.isUniFrameWork)?"26px":"20px"})})}}),u=e._export_sfc(l,[["__scopeId","data-v-1cf1abee"]]);wx.createComponent(u);
