import{$o as mn,Co as jb,Ea as dR,Ic as zG,Ja as g,Kr as Tu,Kt as Hw,N as Bn,Qt as IM,_s as ph,ac as ui,bc as wx,ea as ae,fa as bx,fo as iRe,lo as i3,n as $B,s as $a,si as Vwe,ti as Vb,ya as ci}from"./chunk-b0nJCs5_.js";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?dR(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})};var C=class a{sanitizer=g(zG);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:i3});embedHTML;ngOnChanges(){let i=iRe({embedUrl:IM({url:Vwe(this.video(),ae.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=$a({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&&(jb(0,`div`,0),bx(1,`div`,1),Vb()),t&2&&($B(),wx(`innerHTML`,P.embedHTML,Hw))},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})};export{p as n,C as t};
//# debugId=02784bf8-259b-5497-a203-72442206f0f2
//# sourceMappingURL=chunk-Hufy2o-o.js.map