import { c } from "react-compiler-runtime";
import React from "react";
import { useTheme } from "@material-ui/core";
import { DateRange } from "react-date-range";
import "react-date-range/dist/styles.css";
import "react-date-range/dist/theme/default.css";
import * as locales from "react-date-range/dist/locale";
//#region src/UI/inputs/calendar/AmbientDateRangeSelector.jsx
/**
* @deprecated Use UdpDateRangeSelector
*/
const AmbientDateRangeSelector = (props) => {
	const $ = c(14);
	let onChange;
	let other;
	let ranges;
	let t0;
	let t1;
	if ($[0] !== props) {
		({ranges, onChange, showMonthAndYearPickers: t0, showDateDisplay: t1, ...other} = props);
		$[0] = props;
		$[1] = onChange;
		$[2] = other;
		$[3] = ranges;
		$[4] = t0;
		$[5] = t1;
	} else {
		onChange = $[1];
		other = $[2];
		ranges = $[3];
		t0 = $[4];
		t1 = $[5];
	}
	const showMonthAndYearPickers = t0 === void 0 ? false : t0;
	const showDateDisplay = t1 === void 0 ? false : t1;
	const theme = useTheme();
	let t2;
	if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
		t2 = { enabled: true };
		$[6] = t2;
	} else t2 = $[6];
	let t3;
	if ($[7] !== onChange || $[8] !== other || $[9] !== ranges || $[10] !== showDateDisplay || $[11] !== showMonthAndYearPickers || $[12] !== theme.palette.primary.main) {
		t3 = /* @__PURE__ */ React.createElement(DateRange, {
			locale: locales.enUS,
			direction: "vertical",
			scroll: t2,
			color: theme.palette.primary.main,
			ranges,
			onChange,
			showMonthAndYearPickers,
			showDateDisplay,
			...other
		});
		$[7] = onChange;
		$[8] = other;
		$[9] = ranges;
		$[10] = showDateDisplay;
		$[11] = showMonthAndYearPickers;
		$[12] = theme.palette.primary.main;
		$[13] = t3;
	} else t3 = $[13];
	return t3;
};
//#endregion
export { AmbientDateRangeSelector };

//# sourceMappingURL=AmbientDateRangeSelector.mjs.map