//#region src/forms/utils/layout.ts
var e = {
	vertical: 300,
	verticalInline: 400,
	horizontal: 500,
	horizontalInline: 600
};
function t(e) {
	let t = e.layout, r = new ResizeObserver((r) => {
		e.fitContent || (e.layout = n(r[0].contentRect.width, t));
	});
	return r.observe(e), r;
}
function n(t, n) {
	let r = n;
	t < e.vertical ? r = "vertical" : t < e.verticalInline ? r = "vertical-inline" : t < e.horizontal ? r = "horizontal" : t < e.horizontalInline && (r = "horizontal-inline");
	let i = [
		"vertical",
		"vertical-inline",
		"horizontal",
		"horizontal-inline"
	];
	return i.indexOf(n) < i.indexOf(r) && (r = n), r;
}
//#endregion
export { t as setupControlLayoutStates };

//# sourceMappingURL=layout.js.map