import{$a as c,Ba as m,Fa as l,Ga as a,La as d,Mf as M,Ra as p,Xc as b,Ye as g,fc as n,ib as u,jb as f,kb as h,oe as v,pe as y,sa as s}from"./chunk-4JM6MIZ5.js";import{i as r}from"./chunk-QJQRWPYR.js";var z=(()=>{let e=class e{sanitizer;el;video;enableAPI;mute;autoplay;embedHTML;constructor(i,t){this.sanitizer=i,this.el=t}ngOnInit(){let i=M({embedUrl:y({url:v(this.video,g.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(i)}getIframe(){return this.el.nativeElement.querySelector("iframe")}};r(e,"\u0275fac",function(t){return new(t||e)(a(b),a(s))}),r(e,"\u0275cmp",d({type:e,selectors:[["my-embed"]],inputs:{video:"video",enableAPI:[2,"enableAPI","enableAPI",n],mute:[2,"mute","mute",n],autoplay:[2,"autoplay","autoplay",n]},features:[p],decls:2,vars:1,consts:[[1,"screenratio"],[3,"innerHTML"]],template:function(t,I){t&1&&(u(0,"div",0),h(1,"div",1),f()),t&2&&(l(),c("innerHTML",I.embedHTML,m))},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{z as a};
/**i18n:68865f44f2a527c44cf5136a17c76a0ff8308c2bae5c7c8d50070a5fb9847c44*/
//# sourceMappingURL=chunk-DA5QW2FW.js.map
