import{u as h}from"./vue-i18n-90d534a9.js";import{u as $}from"./vue-router-7f882520.js";import{_ as g}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{s as x}from"./select-4d43c99e.js";import{v as C,l as I,I as k,q as c}from"./index-ae60edf9.js";import{d as w,b as y,w as M,o as n,c as i,$ as S,bj as D,a,aX as u,u as m,F as j,aI as B,P as N}from"./@vue-cb50a1c4.js";import"./@intlify-1c0af683.js";import"./index-597402db.js";import"./arrows_left-f963ef62.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";const V={class:"page_container"},F={class:"m-[10px] overflow-hidden rounded-md"},T=["onClick"],q={class:"flex items-center justify-between"},E={class:"flex items-center justify-between text-[#999]"},G=["src"],_e=w({__name:"index",setup(K){const{t:e,locale:p}=h(),d=$(),v=C(),_=I(),t=[{label:`10${e("date.minute")}`,value:10*60},{label:`1${e("date.hour")}`,value:60*60},{label:`12${e("date.hour")}`,value:12*60*60},{label:`1${e("date.day")}`,value:24*60*60},{label:e("cancelMute"),value:0}],s=y(10*60);M(p,()=>{t[0].label=`10${e("date.minute")}`,t[1].label=`1${e("date.hour")}`,t[2].label=`12${e("date.hour")}`,t[3].label=`1${e("date.day")}`,t[4].label=e("cancelMute")});const b=()=>{var o;k.changeGroupMemberMute({groupID:_.currentConversation.groupID,userID:(o=v.userCardData.groupMemberInfo)==null?void 0:o.userID,mutedSeconds:s.value}).then(()=>{c(),d.back()}).catch(l=>c({error:l.message}))},f=o=>{s.value=o};return(o,l)=>(n(),i("div",V,[S(g,{title:o.$t("setMuteTitle")},{default:D(()=>[a("span",{onClick:b},u(m(e)("buttons.save")),1)]),_:1},8,["title"]),a("div",F,[(n(),i(j,null,B(t,(r,L)=>a("div",{onClick:O=>f(r.value),class:"flex items-center justify-between bg-white px-4 py-3"},[a("div",null,u(r.label),1),a("div",q,[a("div",E,[s.value===r.value?(n(),i("img",{key:0,class:"h-[24px] w-[24px]",src:m(x)},null,8,G)):N("",!0)])])],8,T)),64))])]))}});export{_e as default};
