import{d as r,c as e,R as p,a as o,l as _,W as d,V as g}from"./vendor.63aa8b19.js";import{_ as h,a as f,b,c as x,d as v,e as I,f as V,g as k,h as E,i as y,j as B,k as P,l as S,m as C,n as w,o as F,p as R}from"./music_default.7a8bea63.js";import{_ as j,a as A}from"./icon_vip.406f7897.js";import{_ as $}from"./icon_timer.46d00f86.js";import{c as M,f as q}from"./index.6fc5f983.js";import{O as D}from"./index.1a71d4d0.js";const T="_menuItem_1a7q3_1",L="_icon1_1a7q3_5",O="_icon2_1a7q3_9",N="_icon3_1a7q3_13",U="_icon4_1a7q3_17",z="_icon5_1a7q3_21",Y="_icon6_1a7q3_25",H="_active_1a7q3_29";var l={menuItem:T,icon1:L,icon2:O,icon3:N,icon4:U,icon5:z,icon6:Y,active:H};const m="userInfo";var W=r({name:"user-menu",data(){return{}},computed:{activeRoute(){return this.$route.name},acitveMenuRoute(){return this.$route.meta.activeMenu},menuList(){if(!this.$router.hasRoute(m))return;const i=this.$router.getRoutes().find(n=>n.name===m),c=[];return i==null||i.children.forEach(n=>{n.meta.hidden||c.push(n)}),c}},render(){return e("div",{class:"bg-white rounded-[6px] text-center pt-6 flex items-center flex-col"},[this.menuList.map(s=>e(p,{to:s.path,class:["py-4 px-6 flex items-center text-lg font-semibold text-[#666] w-full last:mb-0 cursor-pointer",l.menuItem,(s.name===this.activeRoute||s.name===this.acitveMenuRoute)&&l.active]},{default:()=>[e("i",{class:["w-6 h-6 mr-[22px]",l["icon"+s.meta.index]]},null),s.meta.title]}))])}});const G="_users_42v9b_1";var J={users:G};const t=s=>{const a=`../../images/${s}`;return{"../../images/course_bg.png":h,"../../images/entry_active.png":f,"../../images/entry_default.png":b,"../../images/icon_cert.png":x,"../../images/icon_cert_default.png":v,"../../images/icon_king.png":I,"../../images/icon_live.png":V,"../../images/icon_live_default.png":k,"../../images/icon_member.png":E,"../../images/icon_member_default.png":y,"../../images/icon_music.png":B,"../../images/icon_music_default.png":P,"../../images/icon_svip.png":j,"../../images/icon_timer.png":$,"../../images/icon_video.png":S,"../../images/icon_video_default.png":C,"../../images/icon_vip.png":A,"../../images/icon_vip_default.png":w,"../../images/music_active.png":F,"../../images/music_default.png":R}[a].default};var K=r({name:"users",computed:{userInfo(){return M.user.data}},data(){return{memberStatus:!1}},methods:{onDetail(s){s==="entry"?this.$router.push({path:"/teacherAuth"}):s==="music"&&this.$router.push({path:"/musicAuth"})},checkBadge(s){var c,n,u;let a=!1;const{userInfo:i}=this;switch(s){case"STYLE":case"VIDEO":case"LIVE":case"MUSIC":i.tag&&(a=i.tag.indexOf(s)>-1);break;case"VIP":a=((c=i.userVip)==null?void 0:c.vipType)==="VIP";break;case"SVIP":a=((n=i.userVip)==null?void 0:n.vipType)==="SVIP"||((u=i.userVip)==null?void 0:u.vipType)==="PERMANENT_SVIP";break;default:a=!1;break}return a}},render(){return e("div",{class:["text-center pb-8 relative overflow-hidden",J.users]},[e("div",{class:"bg-[#CFF2FF] absolute left-6 top-0 text-[#0089B9] text-xs py-0.5 px-2 rounded-[10px]"},[o("\u8001\u5E08")]),e("img",{src:this.userInfo.heardUrl||q,class:"w-[68px] h-[68px] rounded-full border-2 border-[#2DC7AA] border-solid mt-6 mx-auto object-cover"},null),e("p",{class:"text-[#333] text-lg font-semibold pt-4 flex items-center justify-center"},[this.userInfo.username,(this.checkBadge("SVIP")||this.checkBadge("VIP"))&&e("img",{src:this.checkBadge("SVIP")?t("icon_svip.png"):this.checkBadge("VIP")?t("icon_vip.png"):"",class:"w-[42px] ml-1"},null)]),e("div",{class:"flex items-center justify-center pt-2 pb-10"},[e("span",{class:"text-base text-[#999]"},[o("\u52CB\u7AE0")]),e("img",{src:this.checkBadge("SVIP")||this.checkBadge("VIP")?t("icon_member.png"):t("icon_member_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("STYLE")?t("icon_cert.png"):t("icon_cert_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("VIDEO")?t("icon_video.png"):t("icon_video_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("LIVE")?t("icon_live.png"):t("icon_live_default.png"),class:"h-[26px] px-1"},null),e("img",{src:this.checkBadge("MUSIC")?t("icon_music.png"):t("icon_music_default.png"),class:"h-[26px] px-1"},null)]),e("div",{class:this.userInfo.entryFlag!==1||!(this.checkBadge("SVIP")||this.checkBadge("VIP"))?"mb-9":""},[this.userInfo.entryFlag!==1&&e(_,{round:!0,type:"primary",size:"large",plain:!0,class:"!px-4 !bg-white hover:!bg-[#2DC7AA]",onClick:()=>{this.onDetail("entry")}},{default:()=>[o("\u8FBE\u4EBA\u8BA4\u8BC1")]}),!(this.checkBadge("SVIP")||this.checkBadge("VIP"))&&e(_,{round:!0,type:"primary",size:"large",class:"!px-4",onClick:()=>this.memberStatus=!0},{default:()=>[o("\u5F00\u901A\u4F1A\u5458")]})]),e("div",{class:"text-base text-[#999] mx-[25px] flex items-center justify-center pt-10 border-t border-solid border-[#E7E6E6]"},[e("span",{class:"flex items-center justify-center flex-col leading-6 cursor-pointer flex-1 border-r border-solid border-[#E7E6E6]",onClick:()=>{this.$router.push("/userInfo/myFans")}},[e("b",{class:"text-[#333333] text-[28px] pl-1 pb-1"},[this.userInfo.fansNum||0]),o("\u7C89\u4E1D")]),e("span",{class:"pl-3 flex items-center flex-col justify-center leading-6 cursor-pointer flex-1",onClick:()=>{this.$router.push("/userInfo/musicClass")}},[e("b",{class:"text-[#333333] text-[28px] pl-1 pb-1"},[this.userInfo.musicSheetNum||0]),o("\u4E50\u8C31")])]),e(d,{modelValue:this.memberStatus,"onUpdate:modelValue":s=>this.memberStatus=s,closeOnClickModal:!1,closeOnPressEscape:!1},{default:()=>[e(D,null,null)]})])}}),ie=r({name:"user-info",render(){return e("div",{class:"bg-[#F6F7F8] overflow-hidden"},[e("div",{class:"w-[1002px] mt-[86px] rounded-[10px] bg-white py-5 overflow-hidden mb-10 min-h-full m-auto text-[#333] flex"},[e("div",{class:"w-[264px] "},[e(K,null,null),e(W,null,null)]),e("div",{class:"w-[737px] border-l border-l-[#E7E6E6]"},[e(g,null,null)])])])}});export{ie as default};