"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../constant.js"),t=require("../utils/index.js"),i={setRemark:{key:"setRemark",label:"备注名",data:"",labelPosition:o.CONTACT_INFO_LABEL_POSITION.LEFT,editable:!0,editType:o.CONTACT_INFO_MORE_EDIT_TYPE.INPUT,editing:!1,editSubmitHandler:e=>{var o,i,n,l,a,d;if(null==e?void 0:e.isBothFriend){const d=null==(o=null==e?void 0:e.item)?void 0:o.data;t.updateFriendRemark(null==(i=null==e?void 0:e.contactInfoData)?void 0:i.userID,d),(null==(n=null==e?void 0:e.item)?void 0:n.editing)&&(e.item.editing=!1),(null==(l=null==e?void 0:e.item)?void 0:l.data)&&(e.item.data=null==(a=null==e?void 0:e.contactInfoData)?void 0:a.remark)}else(null==(d=null==e?void 0:e.item)?void 0:d.editing)&&(e.item.editing=!1)}},blackList:{key:"blackList",label:"加入黑名单",data:!1,labelPosition:o.CONTACT_INFO_LABEL_POSITION.LEFT,editable:!0,editType:o.CONTACT_INFO_MORE_EDIT_TYPE.SWITCH,editing:!0,editSubmitHandler:o=>{var i,n;(null==o?void 0:o.isInBlackList)?t.removeFromBlacklist(null==(i=null==o?void 0:o.contactInfoData)?void 0:i.userID):(t.addToBlacklist(null==(n=null==o?void 0:o.contactInfoData)?void 0:n.userID),e.Jt.update(e.o.CUSTOM,"currentContactListKey","blackList"))}},setWords:{key:"setWords",label:"请填写验证信息",data:"",labelPosition:o.CONTACT_INFO_LABEL_POSITION.TOP,editable:!0,editType:o.CONTACT_INFO_MORE_EDIT_TYPE.TEXTAREA,editing:!0},displayWords:{key:"displayWords",label:"验证信息",data:"",labelPosition:o.CONTACT_INFO_LABEL_POSITION.LEFT,editable:!1}},n={dismissGroup:{key:"dismissGroup",label:"解散群聊",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.dismissGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID)}},quitGroup:{key:"quitGroup",label:"退出群聊",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.quitGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID)}},joinGroup:{key:"joinGroup",label:"发送申请",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{var o,i;t.joinGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID,null==(i=null==e?void 0:e.contactInfoMoreList[0])?void 0:i.data)}},joinAVChatGroup:{key:"joinAVChatGroup",label:"加入直播群",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{var o;t.joinGroup(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.groupID)}},enterGroupConversation:{key:"enterGroupConversation",label:"进入群聊",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{t.enterConversation(null==e?void 0:e.contactInfoData)}},addFriend:{key:"addFriend",label:"发送申请",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{var o,i,n;t.addFriend({to:null==(o=null==e?void 0:e.contactInfoData)?void 0:o.userID,source:"AddSource_Type_Web",remark:null==(i=null==e?void 0:e.contactInfoMoreList[1])?void 0:i.data,wording:null==(n=null==e?void 0:e.contactInfoMoreList[0])?void 0:n.data})}},deleteFriend:{key:"deleteFriend",label:"删除好友",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.deleteFriend(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.userID)}},enterC2CConversation:{key:"enterC2CConversation",label:"发送消息",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:e=>{t.enterConversation(null==e?void 0:e.contactInfoData)}},acceptFriendApplication:{key:"acceptFriendApplication",label:"同意",type:o.CONTACT_INFO_BUTTON_TYPE.SUBMIT,onClick:o=>{var i;t.acceptFriendApplication(null==(i=null==o?void 0:o.contactInfoData)?void 0:i.userID),e.Jt.update(e.o.CUSTOM,"currentContactListKey","friendList")}},refuseFriendApplication:{key:"refuseFriendApplication",label:"拒绝",type:o.CONTACT_INFO_BUTTON_TYPE.CANCEL,onClick:e=>{var o;t.refuseFriendApplication(null==(o=null==e?void 0:e.contactInfoData)?void 0:o.userID)}}};exports.contactButtonConfig=n,exports.contactMoreInfoConfig=i;
