import{u as b}from"./vue-i18n-90d534a9.js";import{u as k}from"./vue-router-7f882520.js";import{I as p,q as m,o as x,_ as y}from"./index-ae60edf9.js";import{F as G}from"./index-fc073ec7.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{d as V,b as c,o as $,c as C,$ as s,a as r,aX as l,u}from"./@vue-cb50a1c4.js";import{B as F}from"./index-e4a7d928.js";import"./@intlify-1c0af683.js";import"./open-im-sdk-wasm-f19f04ec.js";import"./dayjs-4460abc8.js";import"./@amap-aca98dec.js";import"./pinia-de4079f2.js";import"./axios-7d5a0a64.js";import"./form-data-497f8b5e.js";import"./uuid-a960c1f4.js";import"./date-fns-f56f60e6.js";import"./@babel-7fd5df1e.js";import"./mitt-f7ef348c.js";import"./@vueuse-19adab01.js";import"./livekit-client-ca552de3.js";import"./@livekit-3058dbe8.js";import"./loglevel-e40a507a.js";import"./rxjs-2154ddb2.js";import"./tslib-8dbab242.js";import"./@vuemap-5ebdc63e.js";import"./lodash-es-91418b19.js";import"./use-id-22cfdfcf.js";import"./index-597402db.js";import"./arrows_left-f963ef62.js";const M={class:"page_container !bg-white dmian"},S={class:"title"},T={class:"tips"},R={class:"info"},U=V({__name:"index",props:{originData:null},setup(d){const e=d,{t:o}=b(),_=k(),t=c(e.originData.nickname||e.originData.groupName),n=c(e.originData),g=e.originData.groupName?o("changeGroupName"):o("changeGroupNickname"),f=e.originData.groupName?o("changeGroupNametip"):o("changeGroupNicknametip"),v=()=>{let a;e.originData.groupName?a=p.setGroupInfo({groupID:e.originData.groupID,groupName:t.value}):a=p.setGroupMemberNickname({groupID:e.originData.groupID,userID:e.originData.userID,groupMemberNickname:t.value}),a.then(()=>m({message:o("messageTip.changeSuccess"),onClose:_.back})).catch(i=>m({message:o("messageTip.changeFailed"),error:i}))};return(a,i)=>{const D=x,h=G,N=F;return $(),C("div",M,[s(B),r("div",S,l(u(g)),1),r("div",T,l(u(f)),1),r("div",R,[s(D,{size:40,src:n.value.faceURL,desc:n.value.nickname},null,8,["src","desc"]),s(h,{class:"!py-1",maxlength:16,modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=I=>t.value=I),label:"",placeholder:a.$t("placeholder.pleaseInput")},null,8,["modelValue","placeholder"])]),s(N,{disabled:!t.value,onClick:v,type:"primary",class:"save",text:a.$t("buttons.save")},null,8,["disabled","text"])])}}});const ue=y(U,[["__scopeId","data-v-2de42a64"]]);export{ue as default};
