import { __assign } from "tslib";
export var AddressSources;
(function (AddressSources) {
    AddressSources["LOQATE"] = "loqate";
    AddressSources["GOOGLE_PLACES"] = "google_places";
})(AddressSources || (AddressSources = {}));
export var AddressField;
(function (AddressField) {
    AddressField["BUILDING_NUMBER"] = "buildingNumber";
    AddressField["STREET"] = "street";
    AddressField["CITY"] = "city";
    AddressField["POSTAL_CODE"] = "postalCode";
    AddressField["SUB_BUILDING"] = "subBuilding";
    AddressField["COUNTRY"] = "country";
    AddressField["PROVINCE"] = "province";
    AddressField["name"] = "name";
    AddressField["isEstablishment"] = "isEstablishment";
})(AddressField || (AddressField = {}));
export var ProvinceKey;
(function (ProvinceKey) {
    ProvinceKey["PROVINCE"] = "province";
    ProvinceKey["PROVINCE_CODE"] = "provinceCode";
})(ProvinceKey || (ProvinceKey = {}));
export var CountryKey;
(function (CountryKey) {
    CountryKey["COUNTRY"] = "country";
    CountryKey["COUNTRY_ISO2"] = "countryIso2";
    CountryKey["COUNTRY_ISO3"] = "countryIso3";
})(CountryKey || (CountryKey = {}));
export function copyAddress(source) {
    var country = __assign({}, source.country);
    if (source.province !== undefined) {
        var province = __assign({}, source.province);
        return __assign(__assign({}, source), { province: province, country: country });
    }
    else {
        return __assign(__assign({}, source), { country: country });
    }
}
//# sourceMappingURL=address.js.map