1import{M as c}from"./Modal-CdTST-ss.js";import{r as h,o as l,c as a,f as m,g as d,a as i,t,h as p,b as u}from"./vue-router-Cc0Ijf1R.js";import{_ as v}from"./_plugin-vue_export-helper-DlAUqK2U.js";const _={components:{Modal:c},data(){return{video:null,alertModalMessage:"",alertModalCallback:null}},mounted(){this.addTitleAndDescription(this.$t("videoLessons"),this.$t("descriptionVideos")),axios.get("/video-lesson/"+this.$route.params.id).then(o=>{this.video=o.data,this.video.url==="blocked"&&this.showAlertModal(this.$t("videoAlert"),()=>location.href=this.$path("levels-and-schedule")),setTimeout(()=>{let s=document.querySelector("video");s.onplay=()=>{this.$root.auth_user.profile&&axios.post("/video-watch-records/"+this.video.id)}},500)}).catch()},methods:{showAlertModal(o,s){this.alertModalMessage=o,this.alertModalCallback=s},hideAlertModal(){this.alertModalCallback(),this.alertModalMessage="",this.alertModalCallback=null}}},b={type:"button",class:"btn btn-sm btn-dark","data-bs-dismiss":"modal"},M={key:0,class:"p-4 border-bottom"},g={class:"videoWrapper"},f=["src"],k={key:1,class:"bg-light-gray w-100 h-auto"},w={class:"mt-3 lead"};function y(o,s,C,A,e,r){const n=h("modal");return l(),a("div",null,[m(n,{title:o.$t("alert"),shown:e.alertModalMessage,onClosed:r.hideAlertModal},{body:d(()=>[p(t(e.alertModalMessage),1)]),footer:d(()=>[i("button",b,t(o.$t("close")),1)]),_:1},8,["title","shown","onClosed"]),e.video?(l(),a("div",M,[i("div",g,[e.video.url!=="blocked"?(l(),a("video",{key:0,preload:"metadata",src:e.video.url,width:"640",height:"360",controls:"",playsinline:"",controlsList:"nodownload",class:"nocontext bg-white",poster:"/img/berges_logo_large.jpg"},null,8,f)):(l(),a("div",k))]),i("div",w,t(e.video.level_name)+" | "+t(o.$t("class"))+" "+t(e.video.session_number),1),i("div",null,t(e.video.instructor_name),1)])):u("",!0)])}const $=v(_,[["render",y]]);export{$ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.