1import{d as c,s as d,o as u,a as p,T as f,w as m}from"./DMtessBZ.js";const y=["src","height","width"],w=c({__name:"Youtube",props:{src:{},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},playsinline:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},modifier:{default:""},vidHeight:{default:"100%"},vidWidth:{default:"100%"}},setup(l){const e=l,s=d(()=>e.src&&e.src.indexOf("watch?v=")>=0?e.src.replace("watch?v=","embed/"):e.src),n=o=>{let t="";return o.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/)[2]!==void 0?t=t[0]:t=o,t},r=()=>{const o=e.autoplay?"autoplay=1&":"",t=e.loop?`loop=1&playlist=${n(e.src)}&`:"",a=e.controls?"controls=1&":"controls=0&",i=e.playsinline?"playsinline=1&":"";return`${e.muted?"mute=1&":""}${o}${t}${a}${i}modestbranding=1?showinfo=0?rel=0`};return(o,t)=>(u(),p("div",{class:f(["o-video",l.modifier])},[m("iframe",{src:`${s.value}?${r()}`,height:l.vidHeight,width:l.vidWidth,frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,y)],2))}});export{w as _};
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.