import{$ as a,C as p,Z as l,Zd as f,aa as i,m as c,p as s,r as m}from"./chunk-33PV2Q5J.js";var P=new a("PaymentService");var E=new a("CartService");var O=(()=>{class r{constructor(e,t){this.locale=e,this.cartService=t}getPayments(){return this.cartService.getPayments().pipe(m(e=>c(e).pipe(s(t=>this.convertPayment(t)))),p())}convertPayment(e){let t=e.parameters.reduce((n,o)=>(n[o.name]=o.value,n),{});return{pgLabel:e.pgLabel,name:this.translatedParams("name",t,e.name),description:this.translatedParams("description",t),parameters:t}}translatedParams(e,t,n=""){let o=`${e}_${this.locale}`;return t.hasOwnProperty(o)?t[o]:t.hasOwnProperty(e)?t[e]:n}static{this.\u0275fac=function(t){return new(t||r)(i(f),i(E))}}static{this.\u0275prov=l({token:r,factory:r.\u0275fac})}}return r})();export{P as a,E as b,O as c};