import { createChangeEvent } from "./utils/formEvents.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { UdpDateRangeSelector } from "udp-react-stencil-component-library";
//#region src/UI/fluent-web-components/UdpDatePicker.tsx
const UdpDatePicker = (t0) => {
	const $ = c(10);
	let name;
	let onChange;
	let props;
	if ($[0] !== t0) {
		({onChange, name, ...props} = t0);
		$[0] = t0;
		$[1] = name;
		$[2] = onChange;
		$[3] = props;
	} else {
		name = $[1];
		onChange = $[2];
		props = $[3];
	}
	let t1;
	if ($[4] !== name || $[5] !== onChange) {
		t1 = (e) => {
			onChange?.(createChangeEvent(e.detail, name, "date"));
		};
		$[4] = name;
		$[5] = onChange;
		$[6] = t1;
	} else t1 = $[6];
	const handleChange = t1;
	let t2;
	if ($[7] !== handleChange || $[8] !== props) {
		t2 = /* @__PURE__ */ React.createElement(UdpDateRangeSelector, {
			...props,
			onChange: handleChange
		});
		$[7] = handleChange;
		$[8] = props;
		$[9] = t2;
	} else t2 = $[9];
	return t2;
};
//#endregion
export { UdpDatePicker };

//# sourceMappingURL=UdpDatePicker.mjs.map