/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-29d58ba | Cube Dev Team */
//#region src/components/form/FieldWrapper/extract-field-wrapper-props.ts
const createFieldWrapperPropsKeys = (arr) => new Set(arr);
const fieldWrapperPropsKeys = createFieldWrapperPropsKeys([
	"as",
	"validationState",
	"styles",
	"isRequired",
	"isDisabled",
	"fieldProps",
	"isHidden",
	"label",
	"labelPosition",
	"labelSuffix",
	"labelStyles",
	"labelProps",
	"description",
	"requiredMark",
	"tooltip",
	"extra",
	"necessityLabel",
	"necessityIndicator",
	"message",
	"messageStyles",
	"errorMessage",
	"Component"
]);
function extractFieldWrapperProps(props) {
	const fieldWrapperProps = {};
	const rest = {};
	for (const [key, prop] of Object.entries(props)) if (fieldWrapperPropsKeys.has(key)) fieldWrapperProps[key] = prop;
	else rest[key] = prop;
	return {
		fieldWrapperProps,
		rest
	};
}

//#endregion
export { extractFieldWrapperProps };
//# sourceMappingURL=extract-field-wrapper-props.js.map