import {J,a6 as pi,a5 as fh,c as tS,H as ul,bP as he,bE as ff,w as wo,N as Sr,fX as XT}from'./main-WUGO6e7n.js';var b,f=J(()=>{pi();fh();tS();ul();b=(()=>{class r{constructor(t){this.translatorService=t,this.destroy$=new he,this.translatorService.updatedLang$.pipe(ff(this.destroy$)).subscribe(()=>{this.translate();});}ngOnDestroy(){this.destroy$.next();}transform(t){return this.defaultOptions=JSON.parse(JSON.stringify(t)),this.options=t,this.translate()}translate(){return this.options?this.options.map(t=>(Object.prototype.hasOwnProperty.call(t,"label")&&(t.label=this.translatorService.translate(this.defaultOptions.find(e=>e.value===t.value).label)),t)):[]}static{this.\u0275fac=function(e){return new(e||r)(wo(Sr,16))};}static{this.\u0275pipe=XT({name:"translateOptions",type:r,pure:!0});}}return r})();});export{b,f};