import{_ as s}from"./vendor-DppN28kL.js";import{ag as o,a4 as r,a5 as e,bM as t,K as a,b1 as l,v as i,a3 as n,ad as d,aW as v}from"./vendor-BXdGExd0.js";import{f as p}from"./souav-BTAG2baT.js";import{u as c}from"./vendor-CFI2yzR1.js";import{s as m}from"./vendor-CB_mu4eO.js";import"./vendor-CDxkAdJH.js";import"./vendor-Cv8m7sE6.js";import"./vendor-BJZ6tUoe.js";import"./vendor-Dm4oB1Pn.js";import"./vendor-DN37M9Hi.js";import"./vendor-DBhUxCDU.js";import"./vendor-BCo6x5W8.js";import"./vendor-bo_0oRCG.js";import"./vendor-Dos3PyFQ.js";import"./vendor-Dwl46Tfs.js";import"./vendor-BHR_E30J.js";import"./vendor-DzK633Zd.js";import"./vendor-CfyHAoLP.js";const u={class:"min-h-dvh"},f={class:"fixed inset-0 z-50 flex flex-col justify-end bg-black/0"},j={class:"flex justify-between items-center mb-4"},g={class:"grid grid-cols-4 gap-4"},x=["onClick"],h={class:"absolute left-0 top-0 w-full h-full p-0.5"},w=["src"],k=o({__name:"AvatarsCheck",emits:["ppw-close"],setup(o){const k=p(),b=c(),{userInfo:y}=m(k);return(o,p)=>{const c=s;return v(),r("div",u,[e("div",f,[e("div",{class:"bg-[#1D1E22] rounded-t-2xl p-4 max-h-[70vh] overflow-y-auto",onClick:p[2]||(p[2]=t(()=>{},["stop"]))},[e("div",j,[p[4]||(p[4]=e("h3",{class:"text-lg font-medium text-white"},"选择头像",-1)),e("button",{onClick:p[0]||(p[0]=s=>o.$emit("ppw-close")),class:"text-gray-400 p-2"},[...p[3]||(p[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])]),e("div",g,[(v(!0),r(a,null,l(i(b).avatarList,(s,o)=>{var t;return v(),r("div",{key:o,onClick:s=>(s=>{b.modifyUserInfo({avatar:`${s+1}`})})(o),class:"aspect-square rounded-full relative"},[e("div",h,[d(c,{src:o+1},null,8,["src"])]),(null==(t=i(y))?void 0:t.avatar)===`${o+1}`?(v(),r("img",{key:0,src:i("https://ggjs.bdrcp.cn/pwa/1.0.1/assets/verdor-CIghZVZj.png"),class:"absolute left-0 top-0 w-full h-full z-2"},null,8,w)):n("",!0)],8,x)}),128))]),e("div",{class:"pt-3 text-gray-400 text-center",onClick:p[1]||(p[1]=s=>o.$emit("ppw-close"))},"取消")])])])}}});export{k as default};
