import {g,eb as an,i9 as RA,eY as oi,dN as F5,at as Mn,K as qp,N as tl,L as e3,aG as Lxe,aH as FN,aI as B_e,aV as oe,b as Pa,ad as ti,ci as db,c6 as j0,cj as fb,W as WB,ck as q0,au as iw}from'./main-DEZ5cZzu.js';var d=(()=>{class e{localeId=g(an);static getDecimalForNumber(i,t=1){let r=i.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(i){let t=this.dictionary.find(p=>i<p.max)||this.dictionary[this.dictionary.length-1],a=i/(t.max/1e3),r=Math.floor(a),o=e.getDecimalForNumber(a);return r<10&&o>0?RA(parseFloat(`${r}.${o}`),this.localeId)+t.type:`${r}${t.type}`}static \u0275fac=function(t){return new(t||e)};static \u0275pipe=oi({name:"myNumberFormatter",type:e,pure:true})}return e})();/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/var I=(()=>{class t{sanitizer=g(F5);el=g(Mn);video=qp.required();enableAPI=qp(void 0,{transform:tl});mute=qp(void 0,{transform:tl});autoplay=qp(void 0,{transform:tl});version=qp(void 0,{transform:e3});embedHTML;ngOnChanges(){let o=Lxe({embedUrl:FN({url:B_e(this.video(),oe.originServerUrl),title:false,warningTitle:false,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(o);}getIframe(){return this.el.nativeElement.querySelector("iframe")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Pa({type:t,selectors:[["my-embed"]],inputs:{video:[1,"video"],enableAPI:[1,"enableAPI"],mute:[1,"mute"],autoplay:[1,"autoplay"],version:[1,"version"]},features:[ti],decls:2,vars:1,consts:[[1,"screenratio"],[3,"innerHTML"]],template:function(i,C){i&1&&(db(0,"div",0),j0(1,"div",1),fb()),i&2&&(WB(),q0("innerHTML",C.embedHTML,iw));},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})}return t})();/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{I,d};//# sourceMappingURL=chunk-DHVyyAtU.js.map
