"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../config.js"),u=require("../../../utils/enableSampleTaskStatus.js"),a=require("../offlinePushInfoManager/index.js"),t=require("../offlinePushInfoManager/const.js");Math||(o+r+l+s+i)();const o=()=>"./image-upload/index.js",r=()=>"./video-upload/index.js",l=()=>"./words/index.js",i=()=>"./user-selector/index.js",s=()=>"./evaluate/CustomMessage.js",p=e.defineComponent({__name:"index",props:{displayType:{}},setup(o){const r=o,l=e.ref(),i=e.ref(!1),s=e.ref(""),p=e.ref(),f=e.ref(),v=e.ref([]),c=e.ref(!1),d=n.ChatConfig.getFeatureConfig(),I=e.ref(8),m=e.ref(0);e.ref(null);e.onMounted((()=>{e.Jt.watch(e.o.CUSTOM,{activeConversation:C})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CUSTOM,{activeConversation:C})}));const C=n=>{var u;n&&n!==(null==(u=l.value)?void 0:u.conversationID)&&(g(),d.InputImage&&d.InputVideo?I.value-=4:(d.InputImage||d.InputVideo)&&(I.value-=2),m.value=I.value,I.value-=v.value.length,1===I.value?c.value=d.InputEvaluation&&d.InputQuickReplies:I.value<1&&(c.value=d.InputEvaluation||d.InputQuickReplies),l.value=e.Jt.getData(e.o.CONV,"currentConversation"),i.value=n.startsWith(e.qt.TYPES.CONV_GROUP))},g=()=>{const a=n.ChatConfig.getChatType(),t={chatType:a};a===e.E.TUIChat.TYPE.CUSTOMER_SERVICE&&(t.filterVoice=!0,t.filterVideo=!0,u.enableSampleTaskStatus("customerService")),v.value=[...e.R.getExtensionList(e.E.TUIChat.EXTENSION.INPUT_MORE.EXT_ID,t)].filter((e=>{var n;return"search"!==(null==(n=null==e?void 0:e.data)?void 0:n.name)||d.MessageSearch})),v.value.forEach((n=>{var u;const a=null==(u=null==n?void 0:n.data)?void 0:u.name;"voiceCall"===a?e.ss.reportFeature(203,"voice-call"):"videoCall"===a?e.ss.reportFeature(203,"video-call"):"quickRoom"===a&&e.ss.reportFeature(204)}))};const T=e=>{var n,u,o;null==(o=null==(u=null==(n=f.value)?void 0:n.listener)?void 0:u.onClicked)||o.call(u,{...e,callParams:{offlinePushInfo:a.OfflinePushInfoManager.getOfflinePushInfo(t.PUSH_SCENE.CALL)}}),f.value=null},h=()=>{f.value=null},S=e=>{c.value=I.value<=1&&!e};return(n,u)=>e.e({a:"emojiPicker"===r.displayType},"emojiPicker"===r.displayType?{}:e.e({b:e.unref(d).InputImage},e.unref(d).InputImage?{c:e.p({imageSourceType:"camera"})}:{},{d:e.unref(d).InputImage},e.unref(d).InputImage?{e:e.p({imageSourceType:"album"})}:{},{f:e.unref(d).InputVideo},e.unref(d).InputVideo?{g:e.p({videoSourceType:"album"})}:{},{h:e.unref(d).InputVideo},e.unref(d).InputVideo?{i:e.p({videoSourceType:"camera"})}:{},{j:e.unref(d).InputQuickReplies},e.unref(d).InputQuickReplies?{k:e.o$1(S)}:{},{l:e.unref(d).InputCustomMessage},e.unref(d).InputCustomMessage?{m:e.o$1(S)}:{}),{n:e.sr(p,"76f68da4-6",{k:"userSelectorRef"}),o:e.o$1(T),p:e.o$1(h),q:e.p({type:e.unref(s),currentConversation:e.unref(l),isGroup:e.unref(i)})})}});wx.createComponent(p);
