import{Ae as y,Be as M,Ca as l,Ga as p,Ra as u,aa as s,cg as P,db as c,dd as g,fa as m,lf as T,mb as f,nb as v,nc as n,ob as h,oc as b,sa as t,ta as d}from"./chunk-XBTZE2EC.js";import{i as a}from"./chunk-WHYNGVB3.js";var S=(()=>{let e=class e{sanitizer=s(g);el=s(d);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=P({embedUrl:M({url:y(this.video(),T.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",u({type:e,selectors:[["my-embed"]],inputs:{video:[1,"video"],enableAPI:[1,"enableAPI"],mute:[1,"mute"],autoplay:[1,"autoplay"],version:[1,"version"]},features:[m],decls:2,vars:1,consts:[[1,"screenratio"],[3,"innerHTML"]],template:function(i,C){i&1&&(f(0,"div",0),h(1,"div",1),v()),i&2&&(p(),c("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-N622GTNA.css.map */`]}));let o=e;return o})();export{S as a};
/**i18n:56bde403ffba090cdb11aaac0f86ffb9ae7c2bab95df4b44d5dba510264fcf4f*/
//# sourceMappingURL=chunk-RN3LTKP7.js.map
