'use strict';
import { convertAndFormatPrice } from '../payments.js';
import { paymentMessages } from '../../../common/payments/payment-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x698cba,_0x2aa886)=>__defProp(_0x698cba,'name',{'value':_0x2aa886,'configurable':!![]});function getCheckoutFormButtonText(_0x2e4632,_0x5e6f9d,_0x124092){if(!_0x124092)return _0x5e6f9d?paymentMessages['updatingPaymentMethodInProgress']:paymentMessages['updatePaymentMethod'];else {const _0x14afdd=convertAndFormatPrice(_0x2e4632,-0xa05*-0x3+0xd41+-0x2aec);return _0x5e6f9d?paymentMessages['paymentIsInProgress']:paymentMessages['payPrice']['replace']('{0}',_0x14afdd);}}__name(getCheckoutFormButtonText,'getCheckoutFormButtonText');

export { getCheckoutFormButtonText };
