"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    CreateChildInitializer: ()=>CreateChildInitializer
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const index_js_namespaceObject = require("../../../schema-component/index.js");
const ActionInitializer_js_namespaceObject = require("../../../schema-initializer/items/ActionInitializer.js");
const CreateChildInitializer = (props)=>{
    const schema = {
        type: 'void',
        title: '{{ t("Add child") }}',
        'x-action': 'create',
        'x-toolbar': 'ActionSchemaToolbar',
        'x-settings': 'actionSettings:addChild',
        'x-component': 'Action',
        'x-visible': '{{treeTable}}',
        'x-component-props': {
            openMode: index_js_namespaceObject.OpenMode.DRAWER_MODE,
            type: 'link',
            addChild: true,
            style: {
                padding: '0px',
                marginTop: '-5px'
            },
            component: 'CreateRecordAction'
        },
        properties: {
            drawer: {
                type: 'void',
                title: '{{ t("Add record") }}',
                'x-component': 'Action.Container',
                'x-component-props': {
                    className: 'tb-action-popup'
                },
                properties: {
                    tabs: {
                        type: 'void',
                        'x-component': 'Tabs',
                        'x-component-props': {},
                        'x-initializer': 'TabPaneInitializersForCreateFormBlock',
                        properties: {
                            tab1: {
                                type: 'void',
                                title: '{{t("Add new")}}',
                                'x-component': 'Tabs.TabPane',
                                'x-designer': 'Tabs.Designer',
                                'x-component-props': {},
                                properties: {
                                    grid: {
                                        type: 'void',
                                        'x-component': 'Grid',
                                        'x-initializer': 'popup:addNew:addBlock',
                                        properties: {}
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    };
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ActionInitializer_js_namespaceObject.ActionInitializer, {
        ...props,
        schema: schema
    });
};
exports.CreateChildInitializer = __webpack_exports__.CreateChildInitializer;
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
    "CreateChildInitializer"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
Object.defineProperty(exports, '__esModule', {
    value: true
});
