try {
	let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
	n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "24b2cbe4-7781-4733-9480-2ef86972addc", e._sentryDebugIdIdentifier = "sentry-dbid-24b2cbe4-7781-4733-9480-2ef86972addc");
} catch (e) {}
var getNestedTrustedFields = (field, data, trustedFields) => {
	if (trustedFields && data?.[field] && typeof data[field] === "object") return trustedFields.reduce((fields, trustedField) => {
		const splitField = trustedField.split(".");
		if (splitField[0] === field) return [...fields, splitField[1]];
		return fields;
	}, []);
	return [];
};
var mapAddressData = (verifiedBusiness) => ({
	address: verifiedBusiness.street ?? "",
	otherAddressInformation: verifiedBusiness.street2 ?? "",
	city: verifiedBusiness.city ?? "",
	postalCode: verifiedBusiness.postalCode ?? "",
	stateOrProvince: verifiedBusiness.state ?? ""
});
var isDateOlderThanAYear = (dateString) => {
	if (!dateString) return false;
	const inputDate = new Date(dateString);
	if (isNaN(inputDate.getTime())) {
		console.error(`Error: Invalid date format or value for: ${dateString}`);
		return false;
	}
	const oneYearAgo = /* @__PURE__ */ new Date();
	oneYearAgo.setFullYear(oneYearAgo.getFullYear() - 1);
	return inputDate.getTime() < oneYearAgo.getTime();
};
//#endregion
export { isDateOlderThanAYear as n, mapAddressData as r, getNestedTrustedFields as t };
