import { d as deconstructDate } from './Business-BcNb9bVO.js';

const updateFormValues = (formController, newValues) => {
    formController.setValues(Object.assign(Object.assign({}, formController.values.getValue()), newValues));
};
const updateAddressFormValues = (formController, newValues) => {
    updateFormValues(formController, {
        address: Object.assign(Object.assign({}, formController.values.getValue().address), newValues),
    });
};
const updateDateOfBirthFormValues = (event, formController) => {
    const dob_values = deconstructDate(event.detail);
    updateFormValues(formController, Object.assign(Object.assign({}, formController.values.getValue()), { dob_day: dob_values.dob_day, dob_month: dob_values.dob_month, dob_year: dob_values.dob_year }));
};

export { updateAddressFormValues as a, updateDateOfBirthFormValues as b, updateFormValues as u };
