1import{b as l}from"./chunk-4YERUHPX.js";import{Ib as a,Ya as s,fa as c,va as o,ya as m}from"./chunk-DQGQ5ICO.js";var d=class r{constructor(i,t){this.elementRef=i;this.document=t}identifier;code;click=new o;img;nativeElement;ngOnInit(){this.nativeElement=this.elementRef.nativeElement,this.setupDirective()}setupDirective(){var i=this.code;this.img=this.document.createElement("img"),this.identifier&&this.img.addEventListener("load",n=>{var e=this.identifier;e&&this.document.getElementById(e).scrollTo(0,1e4)}),this.img.setAttribute("src","//i.ytimg.com/vi/"+i+"/hqdefault.jpg"),this.img.setAttribute("style","cursor:pointer;max-width:100%;"),this.img.setAttribute("alt","Imagen del video"),this.nativeElement.append(this.img);var t=this.document.createElement("span");t.setAttribute("class","icon-film"),this.nativeElement.append(t)}onClick(i){if(console.log(i,this),this.img){this.click&&this.click.emit();var t=this.img,n=t.offsetHeight;this.nativeElement.innerHTML="";var e=this.document.createElement("iframe");e.setAttribute("style","width:100%; border:none; height:"+n+"px;"),e.setAttribute("src","//www.youtube.com/embed/"+this.code+"/?autoplay=1"),this.nativeElement.append(e)}}static \u0275fac=function(t){return new(t||r)(s(m),s(l))};static \u0275dir=c({type:r,selectors:[["","appYoutube",""]],hostBindings:function(t,n){t&1&&a("click",function(u){return n.onClick(u.target)})},inputs:{identifier:"identifier",code:"code"},outputs:{click:"click"},standalone:!0})};export{d as a};
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.