<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
/**
 * Manejador de eventos de amelia en relacion a los pasos
 * @version 1.0.0
 */
window.ameliaActions = {
    InitInfoStep: function (success = null, error = null, data) {
        if (data.appointments.length &amp;&amp; data.appointments[0].bookingStart.length) {
            let dateParts = data.appointments[0].bookingStart.split(' ');
            let date = dateParts[0].split('-');
            let day = date[2] + '-' + date[1] + '-' + date[0];
            let hour = dateParts[1];
            dexvcbkg_showDate(day);
            dexvcbkg_showHour(hour + ' hs');
        }
    },
    // field phone max number 15
    data: {
        rules: {
            phoneField: [
                {
                    message: 'El nÃºmero de telÃ©fono debe tener 15 dÃ­gitos como mÃ¡ximo.',
                    validator: function (field, value) {
                        return /^[0-9]{0,15}$/.test(value);
                    }
                }
            ]
        }
    },
}


/**
 * 
 * @param {string} date 
 */

function dexvcbkg_showDate(date) {
    let dateArray = document.getElementsByClassName('dexvcbkng--data-date');
    if (dateArray.length) {
        dateArray[0].textContent = date;
    }
}

/**
 * 
 * @param {string} hour 
 */

function dexvcbkg_showHour(hour) {
    let hourArray = document.getElementsByClassName('dexvcbkng--data-hour');
    if (hourArray.length) {
        hourArray[0].textContent = hour;
    }
}</pre></body></html>