import{$f as M,Ae as g,Da as d,Ha as l,Sa as p,ba as m,fd as h,gb as u,jf as y,pb as c,pc as n,qb as f,rb as b,ta as t,ua as s,ze as v}from"./chunk-OX24XL2F.js";import{i as a}from"./chunk-FQ4ILEWG.js";var A=(()=>{let e=class e{sanitizer=m(h);el=m(s);video=t.required();enableAPI=t(void 0,{transform:n});mute=t(void 0,{transform:n});autoplay=t(void 0,{transform:n});embedHTML;ngOnInit(){let r=M({embedUrl:g({url:v(this.video(),y.originServerUrl),title:!1,warningTitle:!1,api:this.enableAPI(),muted:this.mute(),autoplay:this.autoplay()}),embedTitle:this.video().name,aspectRatio:this.video().aspectRatio});this.embedHTML=this.sanitizer.bypassSecurityTrustHtml(r)}getIframe(){return this.el.nativeElement.querySelector("iframe")}};a(e,"\u0275fac",function(i){return new(i||e)}),a(e,"\u0275cmp",p({type:e,selectors:[["my-embed"]],inputs:{video:[1,"video"],enableAPI:[1,"enableAPI"],mute:[1,"mute"],autoplay:[1,"autoplay"]},decls:2,vars:1,consts:[[1,"screenratio"],[3,"innerHTML"]],template:function(i,L){i&1&&(c(0,"div",0),b(1,"div",1),f()),i&2&&(l(),u("innerHTML",L.embedHTML,d))},styles:[`.screenratio[_ngcontent-%COMP%]{position:relative;height:0;width:100%;padding-top:56.25%}.screenratio[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .screenratio[_ngcontent-%COMP%]     iframe{position:absolute;width:100%;height:100%;top:0;width:100%!important;height:100%!important;left:0}
/*# sourceMappingURL=embed.component-KMCMLBF5.css.map */`]}));let o=e;return o})();export{A as a};
/**i18n:93ef1b86561141301263c1f349fa8abb749523958c3a6dfaf46ed36d22b0a506*/
//# sourceMappingURL=chunk-5HQDFGLY.js.map
