import { FluentTextField } from "../../UI/inputs/textField/FluentTextField.mjs";
import { c } from "react-compiler-runtime";
import React, { useState } from "react";
import { InputAdornment } from "@material-ui/core";
import { SearchIcon } from "@fluentui/react-icons";
//#region src/map-library/geoLocation/FreeFormField.jsx
const FreeFormField = (props) => {
	const $ = c(6);
	const [text, setText] = useState("");
	let t0;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = { startAdornment: /* @__PURE__ */ React.createElement(InputAdornment, { position: "start" }, /* @__PURE__ */ React.createElement(SearchIcon, null)) };
		$[0] = t0;
	} else t0 = $[0];
	let t1;
	if ($[1] !== props) {
		t1 = (event) => {
			setText(event.target.value);
			props.didUpdateText(event.target.value);
		};
		$[1] = props;
		$[2] = t1;
	} else t1 = $[2];
	let t2;
	if ($[3] !== t1 || $[4] !== text) {
		t2 = /* @__PURE__ */ React.createElement(FluentTextField, {
			variant: "outlined",
			size: "small",
			name: "map search",
			"aria-describedby": "search-by-address",
			value: text,
			fullWidth: true,
			InputProps: t0,
			onChange: t1
		});
		$[3] = t1;
		$[4] = text;
		$[5] = t2;
	} else t2 = $[5];
	return t2;
};
//#endregion
export { FreeFormField };

//# sourceMappingURL=FreeFormField.mjs.map