import{Ca as d,Da as r,Kb as b,Ma as p,Rf as I,Va as c,Vc as v,af as M,ba as s,cb as u,db as f,dc as o,eb as h,pe as y,qe as g,ua as m,ya as l}from"./chunk-X3RCWQ3R.js";import{i as e}from"./chunk-SR6RTMQI.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:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*/
//# sourceMappingURL=chunk-7CONCRVI.js.map
