import{U as A,P as I,$ as P,r as B,V as n,m as _,Z as o,M as m,p as i,an as f,o as v,W as C,X as U,ah as V,aj as $,as as y,t as N}from"./common.modules-7ef9f935.js";import{G as E,a as T,A as j,be as z,_ as F}from"./page-activity-ActivityDetail-6651511c.js";import"./native/index-1870b44d.js";import"./en-fc63d25a.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const G={class:"avatar-container"},L={class:"avatar-container-content"},M=["src"],p=!0,R=A({__name:"index",setup(g){const{t:c}=I(),l=E(),s=l.getUserInfo,u=P(),r=B(s.userPhoto);async function h(e){if(r.value=(e+1).toString(),e<0)return N({message:c("tipSelectPls")}),!1;await j(z({userPhoto:(e+1).toString()}))&&(s.userPhoto=(e+1).toString(),l.setUserInfo({...s}),u.go(-1))}return(e,t)=>{const b=n("NavBar"),w=n("van-checkbox"),k=n("van-grid-item"),S=n("van-grid");return v(),_("div",G,[o(b,{title:e.$t("changeAvatar"),"left-arrow":"",onClickLeft:t[0]||(t[0]=x=>m(u).go(-1))},null,8,["title"]),i("div",L,[o(S,{border:!1,"column-num":3,gutter:10},{default:f(()=>[(v(),_(C,null,U(20,(x,a)=>o(k,{onClick:d=>h(a)},{default:f(()=>[i("img",{class:V(r.value===(a+1).toString()?"active":""),src:m(T)("main/Avatar",`${a+1}`)},null,10,M),$(i("div",null,[o(w,{modelValue:p,"onUpdate:modelValue":t[1]||(t[1]=d=>p=d),"icon-size":"20px"})],512),[[y,r.value===(a+1).toString()]])]),_:2},1032,["onClick"])),64))]),_:1})])])}}});const q=F(R,[["__scopeId","data-v-0cd6dac4"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/main/Avatar/index.vue"]]);export{q as default};
//# sourceMappingURL=page-main-Avatar-e6e221d5.js.map
