//#region src/components/schedules/calendar/utils.ts
const formatAvailability = (val) => {
	return val.map((item) => {
		const color = [];
		const schedule_ids = [];
		item.color.forEach((item) => {
			if (item.color) color.push(item.color);
			if (item.schedule_id) schedule_ids.push(item.schedule_id);
		});
		return {
			date: item.date,
			color,
			schedule_ids
		};
	});
};
//#endregion
exports.formatAvailability = formatAvailability;
