import createDecorator from "./final-form-scroll/createDecorator.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { FormSpy } from "react-final-form";
//#region src/utilities/form/FormSpy.tsx
createDecorator();
/**
* final-form Form Spy wrapper
*/
const FormSpy$1 = (t0) => {
	const $ = c(9);
	let children;
	let props;
	let renderProp;
	if ($[0] !== t0) {
		({render: renderProp, children, ...props} = t0);
		$[0] = t0;
		$[1] = children;
		$[2] = props;
		$[3] = renderProp;
	} else {
		children = $[1];
		props = $[2];
		renderProp = $[3];
	}
	const render = renderProp || children;
	let t1;
	if ($[4] !== render) {
		t1 = (params) => /* @__PURE__ */ React.createElement(React.Fragment, null, typeof render === "function" ? render(params) : render);
		$[4] = render;
		$[5] = t1;
	} else t1 = $[5];
	let t2;
	if ($[6] !== props || $[7] !== t1) {
		t2 = /* @__PURE__ */ React.createElement(FormSpy, props, t1);
		$[6] = props;
		$[7] = t1;
		$[8] = t2;
	} else t2 = $[8];
	return t2;
};
//#endregion
export { FormSpy$1 as FormSpy };

//# sourceMappingURL=FormSpy.mjs.map