import{d as a,c as e,R as _,a as r,l as m,W as d,V as f}from"./vendor.63aa8b19.js";import{_ as p,a as g,b,c as h,d as x,e as v,f as I,g as V,h as E,i as k,j as w,k as y,l as R,m as j,n as F,o as S,p as P}from"./music_default.7a8bea63.js";import{_ as B,a as C}from"./icon_vip.4d96cbf6.js";import{_ as M}from"./icon_timer.46d00f86.js";import{c as q,f as A}from"./index.0c351080.js";import{O as T}from"./index.2c6b302c.js";const $="_menuItem_1a8q1_1",O="_icon1_1a8q1_5",L="_icon2_1a8q1_9",N="_icon3_1a8q1_13",U="_icon4_1a8q1_17",D="_icon5_1a8q1_21",z="_active_1a8q1_25";var u={menuItem:$,icon1:O,icon2:L,icon3:N,icon4:U,icon5:D,active:z};const l="studentInfo";var H=a({name:"user-menu",data(){return{}},computed:{activeRoute(){return this.$route.name},acitveMenuRoute(){return this.$route.meta.activeMenu},menuList(){if(!this.$router.hasRoute(l))return;const t=this.$router.getRoutes().find(n=>n.name===l),o=[];return t==null||t.children.forEach(n=>{n.meta.hidden||o.push(n)}),o}},render(){return e("div",{class:"bg-white rounded-[6px] text-center pt-6 flex items-center flex-col"},[this.menuList.map(s=>e(_,{to:s.path,class:["py-4 px-6 flex items-center text-lg font-semibold text-[#666] w-full last:mb-0 cursor-pointer",u.menuItem,(s.name===this.activeRoute||s.name===this.acitveMenuRoute)&&u.active]},{default:()=>[e("i",{class:["w-6 h-6 mr-[22px]",u["icon"+s.meta.index]]},null),s.meta.title]}))])}});const W="_users_9pz0x_1";var Y={users:W};const c=s=>{const i=`../../../user-info/images/${s}`;return{"../../../user-info/images/course_bg.png":p,"../../../user-info/images/entry_active.png":g,"../../../user-info/images/entry_default.png":b,"../../../user-info/images/icon_cert.png":h,"../../../user-info/images/icon_cert_default.png":x,"../../../user-info/images/icon_king.png":v,"../../../user-info/images/icon_live.png":I,"../../../user-info/images/icon_live_default.png":V,"../../../user-info/images/icon_member.png":E,"../../../user-info/images/icon_member_default.png":k,"../../../user-info/images/icon_music.png":w,"../../../user-info/images/icon_music_default.png":y,"../../../user-info/images/icon_svip.png":B,"../../../user-info/images/icon_timer.png":M,"../../../user-info/images/icon_video.png":R,"../../../user-info/images/icon_video_default.png":j,"../../../user-info/images/icon_vip.png":C,"../../../user-info/images/icon_vip_default.png":F,"../../../user-info/images/music_active.png":S,"../../../user-info/images/music_default.png":P}[i].default};var G=a({name:"users",computed:{userInfo(){return q.user.data}},data(){return{memberStatus:!1}},methods:{checkBadge(s){var o,n;let i=!1;const{userInfo:t}=this;switch(s){case"STYLE":case"VIDEO":case"LIVE":case"MUSIC":t.tag&&(i=t.tag.indexOf(s)>-1);break;case"VIP":i=t.isVip>0;break;case"SVIP":i=((o=t.userVip)==null?void 0:o.vipType)==="SVIP"||((n=t.userVip)==null?void 0:n.vipType)==="PERMANENT_SVIP";break;default:i=!1;break}return i}},render(){return e("div",{class:["text-center pb-8 relative overflow-hidden",Y.users]},[e("div",{class:"bg-[#FFE7CF] absolute left-6 top-0 text-[#AB5400] text-xs py-0.5 px-2 rounded-[10px]"},[r("\u5B66\u751F")]),e("img",{src:this.userInfo.heardUrl||A,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")?c("icon_svip.png"):this.checkBadge("VIP")?c("icon_vip.png"):"",class:"w-[42px] ml-1"},null)]),e("div",{class:this.userInfo.isVip!==1?"mt-5":""},[this.userInfo.isVip!==1&&e(m,{round:!0,type:"primary",size:"large",class:"!px-4",onClick:()=>{this.memberStatus=!0}},{default:()=>[r("\u5F00\u901A\u4F1A\u5458")]})]),e("div",{class:"text-base text-[#999] mx-[25px] mt-9 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",onClick:()=>{this.$router.push("/studentInfo/myFollow")}},[e("b",{class:"text-[#333333] text-[28px] pl-1 pb-1"},[this.userInfo.starTeacherNum||0]),r("\u5173\u6CE8")])]),e(d,{modelValue:this.memberStatus,"onUpdate:modelValue":s=>this.memberStatus=s,closeOnClickModal:!1,closeOnPressEscape:!1},{default:()=>[e(T,null,null)]})])}}),se=a({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-14 min-h-full m-auto text-[#333] flex"},[e("div",{class:"w-[264px] "},[e(G,null,null),e(H,null,null)]),e("div",{class:"w-[737px] border-l border-l-[#E7E6E6]"},[e(f,null,null)])])])}});export{se as default};
