'use strict';
'use client';
import { jsx } from 'react/jsx-runtime';
import { EditResourcePropertyBlock } from './edit-resource-property-block/EditResourcePropertyBlock.js';

var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
  value,
  configurable: true
});
function EditResourceFormBody({
  resourceMeta,
  uiPropertyMetas,
  isNew,
  form,
  resource,
  formFieldOptions,
  parentContextName,
  config,
  showHiddenProperties,
  loadComplete,
  readOnly,
  onChangeSaveResource,
  customFields
}) {
  return /* @__PURE__ */jsx("div", {
    className: "flex w-full flex-col gap-3 md:flex-row",
    children: /* @__PURE__ */jsx(EditResourcePropertyBlock, {
      resourceMeta,
      uiPropertyMetas,
      isNew,
      form,
      resource,
      formFieldOptions,
      config,
      showHiddenProperties,
      loadComplete,
      readOnlyResource: readOnly,
      onChange: onChangeSaveResource,
      className: "gap-y-4",
      parentContextName,
      customActionFields: customFields
    })
  });
}
__name(EditResourceFormBody, "EditResourceFormBody");

export { EditResourceFormBody };
