import{V as I,Q as A,a0 as C,r as P,W as a,m as _,$ as n,N as m,p as i,ao as v,o as f,X as B,Y as N,aj as V,af as $,ag as y,u as U}from"./common.modules-adc6b33e.js";import{G as T,a as j,A as z,bc as E,_ as F}from"./page-activity-ActivityDetail-b9249b49.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const G={class:"avatar-container"},L={class:"avatar-container-content"},R=["src"],p=!0,D=I({__name:"index",setup(g){const{t:c}=A(),l=T(),s=l.getUserInfo,u=C(),r=P(s.userPhoto);async function b(e){if(r.value=(e+1).toString(),e<0)return U({message:c("tipSelectPls")}),!1;await z(E({userPhoto:(e+1).toString()}))&&(s.userPhoto=(e+1).toString(),l.setUserInfo({...s}),u.go(-1))}return(e,t)=>{const h=a("NavBar"),w=a("van-checkbox"),k=a("van-grid-item"),S=a("van-grid");return f(),_("div",G,[n(h,{title:e.$t("changeAvatar"),"left-arrow":"",onClickLeft:t[0]||(t[0]=x=>m(u).go(-1))},null,8,["title"]),i("div",L,[n(S,{border:!1,"column-num":3,gutter:10},{default:v(()=>[(f(),_(B,null,N(20,(x,o)=>n(k,{onClick:d=>b(o)},{default:v(()=>[i("img",{class:V(r.value===(o+1).toString()?"active":""),src:m(j)("main/Avatar",`${o+1}`)},null,10,R),$(i("div",null,[n(w,{modelValue:p,"onUpdate:modelValue":t[1]||(t[1]=d=>p=d),"icon-size":"20px"})],512),[[y,r.value===(o+1).toString()]])]),_:2},1032,["onClick"])),64))]),_:1})])])}}});const Y=F(D,[["__scopeId","data-v-0cd6dac4"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/main/Avatar/index.vue"]]);export{Y as default};
//# sourceMappingURL=page-main-Avatar-2e85bddc.js.map
