import{Ab as g,Bf as P,Da as u,Ec as t,Mc as n,Na as p,Nc as b,ba as m,bf as M,bh as T,cf as y,qb as c,ra as d,rb as v,sb as f,ua as s,za as l,zd as h}from"./chunk-EKZJWO2J.js";import{i as a}from"./chunk-BODC7FZN.js";var N=(()=>{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});version=t(void 0,{transform:b});embedHTML;ngOnChanges(){let r=T({embedUrl:y({url:M(this.video(),P.originServerUrl),title:!1,warningTitle:!1,api:this.enableAPI(),muted:this.mute(),autoplay:this.autoplay(),version:this.version()}),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"],version:[1,"version"]},features:[d],decls:2,vars:1,consts:[[1,"screenratio"],[3,"innerHTML"]],template:function(i,C){i&1&&(c(0,"div",0),f(1,"div",1),v()),i&2&&(u(),g("innerHTML",C.embedHTML,l))},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-2O7R53YU.css.map */`]}));let o=e;return o})();export{N as a};
/**i18n:e079feaac094a2c754af8c2d9f82a9400e546e6b8cdd8ff7d538e47a33fc4649*/
//# sourceMappingURL=chunk-2FQYLVJI.js.map
