import{Da as d,Ea as r,Lb as b,Na as p,Sf as I,Wa as c,Wc as v,ba as s,bf as M,db as u,eb as f,ec as o,fb as h,qe as y,re as g,va as m,za as l}from"./chunk-QXV2GR6R.js";import{i as e}from"./chunk-JJ4RDTEF.js";var z=(()=>{let t=class t{constructor(n,i){e(this,"sanitizer");e(this,"el");e(this,"video");e(this,"enableAPI");e(this,"mute");e(this,"autoplay");e(this,"embedHTML");this.sanitizer=n,this.el=i}ngOnInit(){let n=I({embedUrl:g({url:y(this.video,M.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(n)}getIframe(){return this.el.nativeElement.querySelector("iframe")}};e(t,"\u0275fac",function(i){return new(i||t)(r(v),r(m))}),e(t,"\u0275cmp",s({type:t,selectors:[["my-embed"]],inputs:{video:"video",enableAPI:[2,"enableAPI","enableAPI",o],mute:[2,"mute","mute",o],autoplay:[2,"autoplay","autoplay",o]},standalone:!0,features:[p,b],decls:2,vars:1,consts:[[1,"screenratio"],[3,"innerHTML"]],template:function(i,P){i&1&&(u(0,"div",0),h(1,"div",1),f()),i&2&&(d(),c("innerHTML",P.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-KMCMLBF5.css.map */`]}));let a=t;return a})();export{z as a};
/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*/
//# sourceMappingURL=chunk-BJH42HFS.js.map
