var n=Object.defineProperty;var l=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var i=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,o=(r,e)=>{for(var t in e||(e={}))p.call(e,t)&&i(r,t,e[t]);if(l)for(var t of l(e))d.call(e,t)&&i(r,t,e[t]);return r};import{P as u}from"./plyr.min.0a479001.js";import{d as y,c as s}from"./vendor.bd44ab8f.js";const c="_plyr__poster_17wt7_11",f="_audios_17wt7_24";var a={"video-container":"_video-container_17wt7_4",plyr__poster:c,audios:f};var m=y({name:"colVideo",props:{setting:{type:Object,default:()=>{}},controls:Boolean,preview:{type:Boolean,default:!1},previewControls:{type:Array,default:()=>["play","play-large"]},height:String,src:{type:String,default:""},poster:{type:String,default:""},progress:{type:Boolean,default:!0},volume:{type:Boolean,default:!0},styleValue:{type:Object,default:()=>({})},type:{type:String,default:"video"}},data(){return{player:null}},mounted(){this._init()},methods:{_init(){const r=["play","progress","fullscreen","setting","play-large","current-time","duration","mute","captions","volume"];this.player=new u(this.$refs.video,o({controls:this.preview?this.previewControls:r},this.setting))}},render(){return s("div",{class:a["video-container"]},[this.type=="video"?s("video",{"object-fit":"fill",ref:"video",src:this.src,poster:this.poster,style:o({},this.styleValue)},null):s("div",{class:a.audios},[s("audio",{"object-fit":"fill",ref:"video",src:this.src,controls:!0,style:o({},this.styleValue)},null)])])}});export{m as C};
