import{d as l,a as e,j as o,P as c}from"./vendor.a0144ce9.js";import{C as d}from"./index.faff78b9.js";import{C as a,r as n}from"./index.3d95a92c.js";const p="_stepSection_yimhl_43",r="_stepTitle_yimhl_43",_="_stepTitleNum_yimhl_50",u="_active_yimhl_54",v="_stepContent_yimhl_57",m="_videoText_yimhl_63",h="_videoImg_yimhl_68",y="_videoStop_yimhl_80",S="_videoList_yimhl_90",T="_videoTitle_yimhl_93",f="_videoSection_yimhl_109",C="_videoItem_yimhl_116";var t={"col-steps":"_col-steps_yimhl_1","col-step":"_col-step_yimhl_1","col-step__line":"_col-step__line_yimhl_16","col-step_circle":"_col-step_circle_yimhl_19",stepSection:p,stepTitle:r,stepTitleNum:_,active:u,stepContent:v,videoText:m,videoImg:h,videoStop:y,videoList:S,videoTitle:T,videoSection:f,videoItem:C},I="./assets/video_default.c4e3ec21.png",g=l({name:"VideoList",props:{list:{type:Array,default:[]}},render(){return e("div",{class:t.videoList},[e("div",{class:t.videoTitle},[e("i",null,null),o("\u89C6\u9891\u5217\u8868")]),this.list.length>0?e("div",{class:t.videoSection},[this.list.map((s,i)=>e("div",{class:t.videoItem},[e(d,{poster:I,src:s.url,preload:"none",height:"82px",currentTime:!1},null),e("p",null,[s.startTime])]))]):e(a,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u89C6\u9891"},null)])}}),N=l({name:"CoursePlanStep",props:{courseId:{type:Number,default:0},courseInfo:{type:Array,default:[]}},data(){return{videoStatus:!1,list:[]}},mounted(){console.log(this.courseId,"courseId 121212")},methods:{async onLookVideo(s){try{const i=await n.get("/api-student/liveRoomVideo/queryVideo",{params:{roomUid:s.roomUid}});console.log(i),this.list=i.data||[],this.videoStatus=!0}catch{}}},render(){return e("div",{class:t["col-steps"]},[e("div",{class:t["col-steps__items"]},[this.courseInfo.map((s,i)=>e("div",{class:t["col-step"]},[e("div",{class:t["col-step__title"]},[this.$slots.content?this.$slots.content():e("div",{class:t.stepSection},[e("div",{class:t.stepTitle},[e("span",{class:[t.stepTitleNum,(this.courseId===0||this.courseId===s.id)&&t.active]},[o("\u7B2C "),i+1,o(" \u8BFE\u65F6")]),e("span",{class:t.stepTitleText},[s.courseTime])]),e("div",{class:t.stepContent},[e("p",null,[s.coursePlan]),s.liveState===2&&e("div",{class:t.videoText,onClick:()=>{this.onLookVideo(s)}},[o("\u67E5\u770B\u56DE\u653E"),">>"])])])]),e("div",{class:t["col-step_circle"]},[i+1]),e("div",{class:t["col-step__line"]},null)]))]),e(c,{show:this.videoStatus,"onUpdate:show":s=>this.videoStatus=s,closeable:!0,round:!0,style:{width:"90%"}},{default:()=>[this.videoStatus&&e(g,{list:this.list},null)]})])}});export{N as C};
