import { c as create$3 } from './form.js';
import { a as postalValidation, s as stateValidation, c as cityValidation, l as lineTwoValidation, b as lineOneValidation, i as identityNameValidation } from './schema-validations.js';

const fullBillingSchema = () => create$3({
    name: identityNameValidation.required('Enter full name'),
    address_line1: lineOneValidation.required('Enter street address'),
    address_line2: lineTwoValidation.nullable(),
    address_city: cityValidation.required('Enter city'),
    address_state: stateValidation.required('Select state or province'),
    address_postal_code: postalValidation.required('Enter postal code'),
});
const postalOnlySchema = () => create$3({
    name: identityNameValidation.nullable(),
    address_line1: lineOneValidation.nullable(),
    address_line2: lineTwoValidation.nullable(),
    address_city: cityValidation.nullable(),
    address_state: stateValidation.nullable(),
    address_postal_code: postalValidation.required('Enter postal code'),
});
const nameOnlySchema = () => create$3({
    name: identityNameValidation.required('Enter full name'),
    address_line1: lineOneValidation.nullable(),
    address_line2: lineTwoValidation.nullable(),
    address_city: cityValidation.nullable(),
    address_state: stateValidation.nullable(),
    address_postal_code: postalValidation.nullable(),
});

export { fullBillingSchema as f, nameOnlySchema as n, postalOnlySchema as p };
