import{u as f}from"./vue-i18n-90d534a9.js";import{u as l}from"./vue-router-7f882520.js";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{v as C}from"./vue3-qr-reader-aa030b73.js";import{v as g,l as x,ba as p,bb as c,I,q as S,_ as h}from"./index-ae60edf9.js";import{d as b,o as D,c as k,$ as m,bj as w,u as Q,aD as y,aA as B,a}from"./@vue-cb50a1c4.js";import"./@intlify-1c0af683.js";import"./index-597402db.js";import"./arrows_left-f963ef62.js";import"./vue-d3f10292.js";import"./@amap-aca98dec.js";import"./open-im-sdk-wasm-f19f04ec.js";import"./dayjs-4460abc8.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 G=e=>(y("data-v-481160c7"),e=e(),B(),e),A={class:"page_container"},N=G(()=>a("div",{class:"box"},[a("div",{class:"line"}),a("div",{class:"angle"})],-1)),T=b({__name:"index",setup(e){const{t:i}=f(),d=l(),n=g(),u=x(),_=async t=>{if(t.includes(p)){n.getUserCardData(t.replace(p,""));return}if(t.includes(c)){const r=t.replace(c,"");try{let o=n.storeGroupList.find(s=>s.groupID===r);if(!o){const{data:s}=await I.getSpecifiedGroupsInfo([r]);o=s[0]}o&&(u.updateCurrentGroupInfo(o),d.push({path:"groupCard"}))}catch{}return}S({error:i("messageTip.unknownContent"),message:i("messageTip.unknownContent")})};return(t,r)=>{const o=v;return D(),k("div",A,[m(o,{title:t.$t("scanQrCode")},null,8,["title"]),m(Q(C.QrStream),{onDecode:_,class:"mb"},{default:w(()=>[N]),_:1})])}}});const po=h(T,[["__scopeId","data-v-481160c7"]]);export{po as default};
