import {g,eb as an,i9 as AA,eY as oi,dN as k5,at as Mn,L as qp,R as tl,O as J$,aG as Mxe,aH as kN,aI as B_e,aV as oe,b as Pa,ad as ti,ci as lb,c6 as H0,cj as db,z as zB,ck as W0,au as ow}from'./main-BiUBeaMj.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?AA(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:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/var I=(()=>{class t{sanitizer=g(k5);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:J$});embedHTML;ngOnChanges(){let o=Mxe({embedUrl:kN({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&&(lb(0,"div",0),H0(1,"div",1),db()),i&2&&(zB(),W0("innerHTML",C.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})}return t})();/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{I,d};//# sourceMappingURL=chunk-sjVbQlUC.js.map
