var O=Object.defineProperty;var I=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var f=(o,i,e)=>i in o?O(o,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[i]=e,m=(o,i)=>{for(var e in i||(i={}))Q.call(i,e)&&f(o,e,i[e]);if(I)for(var e of I(i))G.call(i,e)&&f(o,e,i[e]);return o};import{d as D,v as w}from"./index.2525db3c.js";import{d,Q as S,r as u,c as t,l as N,G as K,F as p,S as C,a as n,K as B,u as X,o as Y,n as q}from"./vendor.9f3c6e4d.js";import{R as k,g as z,d as J,v as j,n as P,r,f as H,h as Z,j as _,o as $,k as ee,l as te,m as se}from"./index.1f84bfe1.js";import{c as V}from"./titleDot.8a565ea2.js";import{p as ae}from"./player.8b5ee2bb.js";import{n as oe}from"./nostyleIcon.258b7a8a.js";import{s}from"./index.module.c6652fd9.js";import{C as v}from"./index.4b2e64e7.js";import{P as L}from"./index.df62445e.js";import"./icon.6e6f91da.js";var ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABMhJREFUeF7tm19IZFUcxz9bbFsPRRjtkBZRlATZ2kMF1ctSEVlPQZoOMxA9uA/OS0xvSg8+69tiIChB7s62tYosTuKYrYgFhpFaS+gKKzjKrs4S40AzXb0uv2Wu3J2dmTsz99z5090D92Xm3u/vdz/n3+/87jnHcL48AjwF1AGPp6+HgYeA42nzGvAfkAT+SV+3gG3gXyddPOaQ+JNAI/B0+sVLtXMICIhNYBXYUe1vqY5l80Nq82XgpfRLq/ZV9ATG38BfgLQa20UFgBPAKeAVQJp2OYp0lRVgGUjZMWgXgNT2m4D080oUGR9+TbeKkuyXCuAx4N304FaSYcUPyWD5ExAvVrcUAC8Ap9OjeLH2nLxfZpGfgfVijBQL4C3g1WIMVODeP4BfCrVbKIAHgHfSU1uh2pW8T6bMGUC3cqIQAPLyLcCzVmJV9v8G8KMVhEIAvFdD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K7k2Recac6y2y+d6ztWHpsxQXHtszgzB1QcnzSBce3Q22zjhysPTuQbMbMfn5TdpMebj83IYWrazl/X4/G3MaR6YebtjkAAAAABJRU5ErkJggg==";const le="_videoWrap_o9swp_1",ne="_videoImgWrapImg_o9swp_13",ce="_videoImgWrap_o9swp_13",re="_player_o9swp_25",de="_courseInfo_o9swp_34",ue="_courseDetial_o9swp_48",pe="_courseDetialTime_o9swp_61",Ae="_gotoSaduntWrap_o9swp_75",ge="_gotoSadunt_o9swp_75",me="_scanTxt_o9swp_97",ve="_registerSuccessBg_o9swp_126",he="_iconClose_o9swp_133";var l={videoWrap:le,videoImgWrapImg:ne,videoImgWrap:ce,player:re,courseInfo:de,courseDetial:ue,courseDetialTime:pe,gotoSaduntWrap:Ae,gotoSadunt:ge,scanTxt:me,registerSuccessBg:ve,iconClose:he},b=d({name:"downModel",emits:["close"],props:{item:{type:Object,default:{}}},components:{QrcodeVue:S},setup(o,i){u({title:o.item,item:o.item});const e=()=>{i.emit("close")};return()=>t(p,null,[t("div",{class:[l.loginSection,"relative bg-white"]},[t("div",{class:["rounded-full flex absolute top-[22px] right-[22px] z-10"],onClick:()=>{e()}},[t(N,{size:16,color:"#999999"},{default:()=>[t(K,null,null)]})]),t("div",{class:[l.loginTabs,"px-14 pt-9 pb-12 bg-white relative",l.registerSuccessBg]},[t(k,{type:"student",onClose:e},null)])])])}}),U=d({name:"videoCourseItem",props:{item:{type:Object,default:{}}},components:{downModel:b},setup(o,i){const e=u({title:o.item,item:o.item,showDown:!1});return C(()=>o.item,c=>{e.item=c}),()=>t(p,null,[t("div",{class:l.videoWrap,onClick:()=>{e.showDown=!0}},[t("div",{class:l.videoImgWrap},[t("img",{class:l.videoImgWrapImg,src:e.item.coverUrl?e.item.coverUrl:D,alt:""},null),t("img",{src:ie,alt:"",class:l.player},null)]),t("div",{class:l.courseInfo},[t("h4",null,[e.item.videoTitle]),t("p",{class:l.courseDetial},[e.item.videoContent]),t("div",{class:l.gotoSaduntWrap},[t("div",{class:l.gotoSadunt},[n("\u53BB\u5B66\u4E60")])])]),t(B,{modelValue:e.showDown,"onUpdate:modelValue":c=>e.showDown=c,closeOnClickModal:!1,closeOnPressEscape:!1},{default:()=>[t(b,{onClose:()=>e.showDown=!1},null)]})])])}}),y={},F=d({name:"downModel",emits:["close"],props:{item:{type:Object,default:{}}},components:{QrcodeVue:S,colVideo:v},setup(o,i){const e=u({item:o.item});return C(()=>o.item,c=>{e.item=c}),()=>t(p,null,[t("div",{class:y.wrap},[t(v,{styleValue:{with:"800px",height:"450px"},controls:!1,src:e.item.videoUrl,class:y.videoItemVideo},null)])])}}),Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtZJREFUWEftmD9oU1EUxn8nqRZtKYpVxEGH6iBOoiIKSi4OFifFKSAVy3tVHBzqPxyKUh0EpaNKXlpEizq4CEodJMnkIiIqCIo4SEUU/Au1WNscefnTJE1e89qUNsO748t33vned869ud8R6nxJnfMjIFhrhcoVTMQ2IXIIYSvQgjLhmUT5R4hhkMdo212MGScZX49oN8o+YC1MUyWR36i+Bm5g7MFKeUoJJmOnQC4D4Rl/ufAK5CZpvYSwdBbxMSL20alxBYKJ2F5CoSFUF64vw+H97O58UEyyQCbpDAHtmR+VNEIS4QsqIW81tBFhO8qaKRhFeASSABn3bhFdhaZPINKSwYgMEbHc1phcBYKp+FdUV+aA54lYvb7K9PJWEz/+PkPZWIQ/h7HdVqm+Uk4PSj7XT4y93IOgM4GSU0uiGOte9bfnECmnF6VnEt8oK9hpffcVn3KiKHcmscYuabHiEqcLO06jmK4ZEIzZqMRySUYxtv9NMj8EnSMoA1mCMoKxmn2p54ICglkVAgUh6dSwSQIFCRT0PHaCYyY4ZvLNUdMxEzuAysXcTWiUiLWtvv7qfLOpAJyXTRIQdBWopQcDBRdUwYEoOpG/8ivGLjFpxVd+131l/XCa4+yxr9dSOd+xSeckcDWH/4axWyubpqTzBn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CJ6Xea+hxBTQ5si9+VQsQi5S8wyiD9bVaUi++dJqpUlvw1wFkh/BvtqDEshc179YQFo1agsG/CUAdewHIUlDDDSJ80gp6VlzvUs/XcPW4KmKWIaURk4cpW8n4g+TYY3MndNz2Ja9h7aT+SFtL52c0QhHMs66V1dJw/1OPAGTXMJnYhuoqNGIVhFZEjksqvbvHLYhw1pJM8m2BYSztBFQ5KPXexpIilmisdfYBhA2Bm2+eY0Ob2t96tJGWppld3/AScxQ01yy3iN/MIb+vDIBTwPKcOW1ExdCmgMuVKz0ViM7qwrxPG1Y8FZ+bQO+ypYoW6BsWM4P/BfYy4OgfBGF46BpxvTMhRQ4qsRWYAwwNBzPaaaJYGZr/BriGxR5JeXeM009eLKYvS+d8wgAAAABJRU5ErkJggg==",De="./assets/styleBG.2d7d7186.jpg",Re=d({name:"videoDetailList",props:{title:{type:String,default:""}},components:{videoDetailItem:w,videoCourseItem:U,pagination:L,colVideo:v,showVideoDetail:F},setup(o,i){const e=u({title:o.title,videoList:[],videoDetail:{auditId:0,auditName:"",auditStatus:"",auditVersion:"",avatar:"",countStudent:0,createTime:"",hotFlag:0,id:0,lessonCount:0,lessonCoverUrl:"",lessonDesc:"",lessonName:"",lessonPrice:0,lessonSubject:"",lessonSubjectName:"",lessonTag:"",realName:"",sortNumber:0,teacherId:0,topFlag:0,updateTime:"",username:""},otherVideoList:[],teacherDetail:{},id:"",pageInfo:{limit:5,page:1,total:0,page_size:[5,20,40,50]},userType:"",showVideoDetail:!1,activeItem:null,styleList:[],iconList:[]}),c=X(),h=async()=>{try{const a=await r.post("/api-website/open/videoLessonGroup/info/page",{data:{auditStatus:"PASS",videoLessonGroupId:e.id,page:e.pageInfo.page,rows:e.pageInfo.limit}});e.videoList=a.data.rows,e.pageInfo.total=a.data.total}catch(a){console.log(a)}},E=async()=>{try{const a=await r.get("/api-website/open/videoLessonGroup/selectVideoLesson",{params:{groupId:e.id}});e.videoDetail=m({},a.data.lessonGroup);const g=await r.get(`/api-website/open/teacher/detail/${a.data.lessonGroup.teacherId}`);e.teacherDetail=m({},g.data),W()}catch{}},R=async()=>{try{const a=await r.post("/api-website/open/videoLessonGroup/otherLesson",{data:{videoLessonGroupId:e.id}});e.otherVideoList=a.data}catch(a){console.log(a)}},T=a=>{e.id=a,q(()=>{A()})},W=()=>{e.iconList=[],e.teacherDetail.tag.indexOf("STYLE")!=-1?e.iconList.push(H):e.iconList.push(oe),e.teacherDetail.tag.indexOf("VIDEO")!=-1?e.iconList.push(Z):e.iconList.push(_),e.teacherDetail.tag.indexOf("LIVE")!=-1?e.iconList.push($):e.iconList.push(ee),e.teacherDetail.tag.indexOf("MUSIC")!=-1?e.iconList.push(te):e.iconList.push(se)},A=()=>{h(),setTimeout(()=>{E()},100),setTimeout(()=>{R()},150)},x=async()=>{try{const a=await r.get("/api-website/student/starOrUnStar",{params:{userId:e.teacherDetail.userId,starStatus:e.teacherDetail.isStar?0:1}});A()}catch(a){console.log(a)}},M=a=>{e.activeItem=a,e.showVideoDetail=!0};return Y(()=>{c.query.id&&(e.id=c.query.id),e.userType=z(),A()}),()=>t(p,null,[t("div",{class:s.allWrap},[t("div",{class:"wall",style:{height:"60px"}},null),t("div",{class:[s.w1200,s.detailWrap]},[t("div",{class:s.detailLeft},[t("img",{src:e.videoDetail.lessonCoverUrl?e.videoDetail.lessonCoverUrl:D,class:s.detailTopImg,alt:""},null),t("div",{class:s.courseDetailWrap},[t("p",{class:s.courseDetailTitle},[t("span",{class:s.courseDetailText},[e.videoDetail.lessonName])," ",t("div",{class:s.courseTitleR},[t("img",{src:Ie,alt:""},null),t("span",null,[e.videoDetail.countStudent,n("\u4EBA\u5728\u5B66")])])])]),t("div",{class:s.tag},[e.videoDetail.lessonSubjectName]),t("div",{class:s.courseWrap},[t("div",{class:s.courseTitle},[t("span",null,[n("\u8BFE\u7A0B\u4ECB\u7ECD")]),t("img",{src:V,alt:""},null)]),t("div",{class:s.courseInfo},[t("p",null,[e.videoDetail.lessonDesc])]),t("div",{class:s.courseListWrap},[t("div",{class:s.courseTitle},[t("div",{class:s.courseTitleLeft},[t("span",null,[n("\u8BFE\u7A0B\u5217\u8868")]),t("img",{src:V,alt:""},null)]),t("p",{class:s.courseTitlTimer},[t("img",{src:fe,alt:""},null),t("span",null,[n(" \u5171"),e.videoDetail.lessonCount,n("\u8BFE\u65F6")])])]),e.videoList.map(a=>t(U,{item:a},null))])]),t(L,{total:e.pageInfo.total,page:e.pageInfo.page,"onUpdate:page":a=>e.pageInfo.page=a,limit:e.pageInfo.limit,"onUpdate:limit":a=>e.pageInfo.limit=a,pageSizes:e.pageInfo.page_size,pagination:h},null)]),t("div",{class:s.detailRight},[t("div",{class:s.teacherInfo},[t("div",{class:s.teacherTopInfo},[t("div",{class:s.teacherHeadWrap},[t("div",{class:s.teacherHeadLeft},[t("img",{src:e.videoDetail.avatar?e.videoDetail.avatar:J,alt:"",class:s.teacherHeader},null),t("div",{class:s.teacherHeadInfo},[t("div",{class:s.teacherHeadName},[t("span",null,[e.videoDetail.username]),e.userType=="STUDENT"?t("div",{class:[s.teacherHeadRight,e.teacherDetail.isStar?s.isStart:""],onClick:()=>x()},[e.teacherDetail.isStar?"\u5DF2\u5173\u6CE8":"+ \u5173\u6CE8"]):t("div",{class:s.iconWrapList},[t("img",{src:e.teacherDetail.isVip?j:P,class:s.vipIcon,alt:""},null),e.iconList.map(a=>t("img",{class:s.teacherDetailIcon,src:a,alt:""},null))])])])])]),t("div",null,[t("p",{class:s.fensNum},[e.teacherDetail.fansNum]),t("p",{class:s.fens},[n("\u7C89\u4E1D\u6570")])])]),e.teacherDetail.introduction?t("div",{class:s.titleWrap},[t("span",null,[n("\u4E2A\u4EBA\u4ECB\u7ECD")])]):null,t("p",{class:s.teacherDetail},[e.teacherDetail.introduction]),e.teacherDetail.styleVideo&&e.teacherDetail.styleVideo.length>0?t("div",{class:s.titleWrap},[t("span",null,[n("\u8001\u5E08\u98CE\u91C7")])]):null,t("div",{class:s.teacherVideoList},[e.teacherDetail.styleVideo&&e.teacherDetail.styleVideo.map(a=>t("div",{class:s.videoItem,onClick:()=>M(a)},[t("img",{class:s.videoItemVideo,src:a.cover?a.cover:De,alt:""},null),t("img",{src:ae,alt:"",class:s.player},null)]))])]),e.otherVideoList.length>0&&t("div",{class:s.otherCourse},[t("h2",null,[n("\u5176\u4ED6\u8BFE\u7A0B")]),t("div",null,[e.otherVideoList.map(a=>t(w,{detail:a,isFull:!0,onGetDetail:g=>{T(g)}},null))])])])]),t(B,{title:"\u4E2A\u4EBA\u98CE\u91C7",modelValue:e.showVideoDetail,"onUpdate:modelValue":a=>e.showVideoDetail=a,closeOnClickModal:!0,closeOnPressEscape:!1},{default:()=>[t(F,{item:e.activeItem,onClose:()=>e.showVideoDetail=!1},null)]})])])}});export{Re as default};