1import{Ea as t,nt as e,oa as a,ya as o}from"./cEYMgSOO.js";import{t as i}from"./DI2uc9Zh.js";var l={name:"VideoPlayerTwentyThree",props:{data:Object,allow:{type:String,default:""},showDescriptions:{type:Boolean,default:void 0},showLogo:{type:Boolean,default:void 0},hideBigPlay:{type:Boolean,default:void 0},socialSharing:{type:Boolean,default:void 0},showBrowse:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},showTray:{type:Boolean,default:void 0},autoPlay:{type:Boolean,default:void 0},mutedAutoPlay:{type:Boolean,default:void 0},autoMute:{type:Boolean,default:void 0},start:{type:Number,default:void 0},defaultQuality:{type:String,validator:t=>["standard","hd","fullhd"].includes(t)},ambient:{type:Boolean,default:void 0},subtitlesOnByDefault:{type:Boolean,default:void 0},defaultLocale:{type:String,default:void 0}},emits:["emits"],computed:{baseAllow(){const t=new Set((this.allow?.split?.(";")??[]).map(t=>t.trim()));return this.autoPlay&&t.add("autoplay"),Array.from(t).join("; ")},attrs(){const t=["width","height","frameborder"];return[...this.data.embed.html.replace(/^.*<iframe|>|style=".*?"|<\/iframe>.*$/gm,"").matchAll(/(.*?)="(.*?)"/gm)].reduce((e,[a,o,l])=>{if(o=o.trim(),l=l.trim(),!o||t.includes(o.toLowerCase()))return e;if("src"===o&&l){const t=this.data?.embed??{},a={showDescriptions:this.showDescriptions,showLogo:this.showLogo,hideBigPlay:this.hideBigPlay,socialSharing:this.socialSharing,showBrowse:this.showBrowse,loop:this.loop,showTray:this.showTray,autoPlay:this.autoPlay,mutedAutoPlay:this.mutedAutoPlay,autoMute:this.autoMute,start:this.start,defaultQuality:this.defaultQuality,ambient:this.ambient,subtitlesOnByDefault:this.subtitlesOnByDefault,defaultLocale:this.defaultLocale};for(const e in a)void 0===a[e]&&delete a[e];for(const e in t)["url","html"].includes(e)||void 0===a[e]&&void 0!==t[e]&&(a[e]=t[e]);return e[o]=i(l,a),0===l.indexOf("//")&&(e[o]=`https:${e[o]}`),e}if(e[o]=l,"allow"===o){const t=new Set((l??"").split(";").map(t=>t.trim()));this.baseAllow&&this.baseAllow.split(";").forEach(e=>t.add(e.trim())),e[o]=Array.from(t).join("; ")}return e},{title:this.data?.details?.title,allow:this.baseAllow})}},beforeUnmount(){if(this.$refs.video)try{this.$refs.video.src="about:blank"}catch(t){console.warn("Error during TwentyThree iframe cleanup:",t)}},methods:{emit(...t){this.$emit("emits",t)}}};var s=Object.assign(e(l,[["render",function(e,i,l,s,r,d){return t(),a("iframe",o({ref:"video",class:"c-video-player-twenty-three"},{...d.attrs},{onLoad:i[0]||(i[0]=t=>d.emit(t,"load"))}),null,16)}]]),{__name:"VideoPlayerTwentyThree"});export{s 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.