'use strict';
import { getDefaultMaximumFractionDigits } from '../../../fd-toolbox/numbers/numbers.js';
import { paymentProps } from '../../common/payments/props/payment-props.js';
import { currencyCodes } from '../../../fd-toolbox/constants/currency-constants.js';
import { englishLanguageCode } from '../../../fd-toolbox/constants/constants.js';

var __defProp=Object['defineProperty'],__name=(_0x3245b8,_0x4de20d)=>__defProp(_0x3245b8,'name',{'value':_0x4de20d,'configurable':!![]});function convertAndFormatPrice(_0x1ea4a8,_0x1bbd62,_0x49e5e2,_0x3fe4eb,_0x3feba1){const _0x37610d=convertPrice(_0x1ea4a8,_0x1bbd62);return formatPrice(_0x37610d,_0x49e5e2,_0x3fe4eb,_0x3feba1);}__name(convertAndFormatPrice,'convertAndFormatPrice');function convertPrice(_0x250629,_0x4a5353){return _0x250629/_0x4a5353;}__name(convertPrice,'convertPrice');function formatPrice(_0x440616,_0x10aeda,_0x31380b,_0x4d09fe=englishLanguageCode){return _0x440616['toLocaleString'](_0x4d09fe,{'style':paymentProps['currency'],'currency':_0x31380b??currencyCodes['usd'],'maximumFractionDigits':_0x10aeda??getDefaultMaximumFractionDigits(_0x440616)});}__name(formatPrice,'formatPrice');

export { convertAndFormatPrice, convertPrice, formatPrice };
