import{u}from"./vue-i18n-90d534a9.js";import{u as d}from"./vue-router-7f882520.js";import{k as _,q as r,be as f,_ as g}from"./index-ae60edf9.js";import{F as v}from"./index-fc073ec7.js";import{_ as b}from"./index.vue_vue_type_script_setup_true_lang-1170722e.js";import{d as h,b as x,o as I,c as S,$ as m,bj as k,a as i,aX as C,u as T}from"./@vue-cb50a1c4.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 V={class:"page_container !bg-white"},$={class:"mx-2"},B={class:"rounded-lg"},F=h({__name:"index",setup(R){const{t:o}=u(),a=_(),l=d(),e=x(a.storeSelfInfo.email),n=()=>{const t=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;if(!e.value||!t.test(e.value)){r({message:o("messageTip.emailTip"),error:"emailRegex"});return}f({userID:a.storeSelfInfo.userID,email:e.value}).then(()=>{a.getSelfInfoFromReq(),r({message:o("messageTip.nomalSuccess"),onClose:l.back})}).catch(s=>r({message:o("messageTip.nomalFailed"),error:s}))};return(t,s)=>{const p=v;return I(),S("div",V,[m(b,{title:t.$t("email")},{default:k(()=>[i("div",{class:"btn",onClick:n},C(T(o)("buttons.save")),1)]),_:1},8,["title"]),i("div",$,[i("div",B,[m(p,{class:"boderb1",modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=c=>e.value=c),maxlength:160,label:"",placeholder:t.$t("placeholder.pleaseInput")},null,8,["modelValue","placeholder"])])])])}}});const re=g(F,[["__scopeId","data-v-3bc50840"]]);export{re as default};
