import{An as OG,Ar as Tu,Bn as Ow,Cs as q5,F as Cx,Gr as Va,Hs as se,Nc as yx,Pr as Ub,S as Bn,Wa as g,_s as ph,fa as cR,ga as ci,gn as Mwe,hr as SM,it as FB,lt as Fb,qo as mn,qt as KAe,sc as ui}from"./chunk-B_pj7Jpm.js";var C=class a{sanitizer=g(OG);el=g(Bn);video=ph.required();enableAPI=ph(void 0,{transform:Tu});mute=ph(void 0,{transform:Tu});autoplay=ph(void 0,{transform:Tu});version=ph(void 0,{transform:q5});embedHTML;ngOnChanges(){let i=KAe({embedUrl:SM({url:Mwe(this.video(),se.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(i)}getIframe(){return this.el.nativeElement.querySelector(`iframe`)}static ɵfac=function(t){return new(t||a)};static ɵcmp=Va({type:a,selectors:[[`my-embed`]],inputs:{video:[1,`video`],enableAPI:[1,`enableAPI`],mute:[1,`mute`],autoplay:[1,`autoplay`],version:[1,`version`]},features:[ci],decls:2,vars:1,consts:[[1,`screenratio`],[3,`innerHTML`]],template:function(t,P){t&1&&(Fb(0,`div`,0),yx(1,`div`,1),Ub()),t&2&&(FB(),Cx(`innerHTML`,P.embedHTML,Ow))},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}`],changeDetection:1})};var p=class i{localeId=g(mn);static getDecimalForNumber(e,t=1){let r=e.toString().split(`.`)[1]||``;return r.length>t?+r.substring(0,t):+r}dictionary=[{max:1e3,type:``},{max:1e6,type:`K`},{max:1e9,type:`M`}];transform(e){let t=this.dictionary.find(f=>e<f.max)||this.dictionary[this.dictionary.length-1],a=e/(t.max/1e3),r=Math.floor(a),n=i.getDecimalForNumber(a);return r<10&&n>0?cR(parseFloat(`${r}.${n}`),this.localeId)+t.type:`${r}${t.type}`}static ɵfac=function(t){return new(t||i)};static ɵpipe=ui({name:`myNumberFormatter`,type:i,pure:!0})};export{C as n,p as t};
//# debugId=c2c2f09b-68ce-5847-bae5-84c9f6da3178
//# sourceMappingURL=chunk-Dw_PgttJ2.js.map