import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import * as __WEBPACK_EXTERNAL_MODULE__items_index_mjs__ from "./items/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__utils_index_mjs__ from "./utils/index.mjs";
const CollectionFieldsToInitializerItems = (props)=>{
    const { selfField, parentField, associationField, block } = props;
    const context = (0, __WEBPACK_EXTERNAL_MODULE__utils_index_mjs__.useCollectionFieldContext)();
    if (!context.collection) return null;
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
        children: [
            /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__items_index_mjs__.SelfFields, {
                block: block,
                ...selfField,
                context: {
                    ...context,
                    collection: context.collection
                }
            }),
            parentField && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__items_index_mjs__.ParentCollectionFields, {
                block: block,
                ...parentField,
                context: {
                    ...context,
                    collection: context.collection
                }
            }),
            associationField && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__items_index_mjs__.AssociationCollectionFields, {
                block: block,
                ...associationField,
                context: {
                    ...context,
                    collection: context.collection
                }
            })
        ]
    });
};
export { CollectionFieldsToInitializerItems };
