import{d as a,c as e,R as m,a as r,p as d,X as g,W as f}from"./vendor.bd44ab8f.js";import{_ as p,a as b,b as h,c as x,d as v,e as I,f as V,g as k,h as E,i as w,j as y,k as P,l as R,m as S,n as B,o as j,p as F}from"./music_default.7a8bea63.js";import{_ as C,a as M}from"./icon_vip.406f7897.js";import{_ as T}from"./icon_timer.46d00f86.js";import{c as q,f as A}from"./index.e7df140d.js";import{O as $}from"./index.58674e35.js";const O="_menuItem_1a8q1_1",L="_icon1_1a8q1_5",N="_icon2_1a8q1_9",U="_icon3_1a8q1_13",D="_icon4_1a8q1_17",z="_icon5_1a8q1_21",H="_active_1a8q1_25";var u={menuItem:O,icon1:L,icon2:N,icon3:U,icon4:D,icon5:z,active:H};const l="studentInfo";var W=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(o=>o.name===l),i=[];return t==null||t.children.forEach(o=>{o.meta.hidden||i.push(o)}),i}},render(){return e("div",{class:"bg-white rounded-[6px] text-center pt-6 flex items-center flex-col"},[this.menuList.map(s=>e(m,{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 X="_users_9pz0x_1";var Y={users:X};const _=s=>{const n=`../../../user-info/images/${s}`;return{"../../../user-info/images/course_bg.png":p,"../../../user-info/images/entry_active.png":b,"../../../user-info/images/entry_default.png":h,"../../../user-info/images/icon_cert.png":x,"../../../user-info/images/icon_cert_default.png":v,"../../../user-info/images/icon_king.png":I,"../../../user-info/images/icon_live.png":V,"../../../user-info/images/icon_live_default.png":k,"../../../user-info/images/icon_member.png":E,"../../../user-info/images/icon_member_default.png":w,"../../../user-info/images/icon_music.png":y,"../../../user-info/images/icon_music_default.png":P,"../../../user-info/images/icon_svip.png":C,"../../../user-info/images/icon_timer.png":T,"../../../user-info/images/icon_video.png":R,"../../../user-info/images/icon_video_default.png":S,"../../../user-info/images/icon_vip.png":M,"../../../user-info/images/icon_vip_default.png":B,"../../../user-info/images/music_active.png":j,"../../../user-info/images/music_default.png":F}[n].default};var G=a({name:"users",computed:{userInfo(){return q.user.data}},data(){return{memberStatus:!1}},methods:{checkBadge(s){var i,o,c;let n=!1;const{userInfo:t}=this;switch(console.log(t,"userInfo"),s){case"STYLE":case"VIDEO":case"LIVE":case"MUSIC":t.tag&&(n=t.tag.indexOf(s)>-1);break;case"VIP":n=((i=t.userVip)==null?void 0:i.vipType)==="VIP";break;case"SVIP":n=((o=t.userVip)==null?void 0:o.vipType)==="SVIP"||((c=t.userVip)==null?void 0:c.vipType)==="PERMANENT_SVIP";break;default:n=!1;break}return n}},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")?_("icon_svip.png"):this.checkBadge("VIP")?_("icon_vip.png"):"",class:"w-[42px] ml-1"},null)]),e("div",{class:this.checkBadge("SVIP")||!this.checkBadge("VIP")?"":"mt-5"},[!(this.checkBadge("SVIP")||this.checkBadge("VIP"))&&e(d,{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(g,{modelValue:this.memberStatus,"onUpdate:modelValue":s=>this.memberStatus=s,closeOnClickModal:!1,closeOnPressEscape:!1},{default:()=>[e($,null,null)]})])}}),te=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(W,null,null)]),e("div",{class:"w-[737px] border-l border-l-[#E7E6E6]"},[e(f,null,null)])])])}});export{te as default};
