'use strict';
import { isEmptyNullOrUndefined } from '../../../../fd-toolbox/functions/value-checking-functions.js';
import { apiGet } from '../../../../fd-toolbox/api/api-client.js';
import { apiPathNames } from '../../../../fd-toolbox/api/api-path-names.js';

var __defProp=Object['defineProperty'],__name=(_0xa39ac0,_0x428fff)=>__defProp(_0xa39ac0,'name',{'value':_0x428fff,'configurable':!![]});function getCardNumberInputValue(_0x48928a){return isEmptyNullOrUndefined(_0x48928a)?'':'****\x20****\x20****\x20'+_0x48928a;}__name(getCardNumberInputValue,'getCardNumberInputValue');async function setPaymentMethod(_0x2416e3,_0x5ee51d){const _0x781a21=await fetchPaymentMethod();_0x2416e3(_0x781a21['data']['safeCardNumber']),_0x5ee51d(![]);}__name(setPaymentMethod,'setPaymentMethod');async function onInitCurrentPaymentMethod(_0x391497){const _0x1fe681=await fetchPaymentMethod();if(_0x1fe681['data'])_0x391497(_0x1fe681['data']['safeCardNumber']);}__name(onInitCurrentPaymentMethod,'onInitCurrentPaymentMethod');async function fetchPaymentMethod(){return apiGet(apiPathNames['paymentMethod']);}__name(fetchPaymentMethod,'fetchPaymentMethod');

export { getCardNumberInputValue, onInitCurrentPaymentMethod, setPaymentMethod };
