import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__application_index_mjs__ from "../../../application/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__schema_initializer_items_index_mjs__ from "../../../schema-initializer/items/index.mjs";
const PopupActionInitializer = (props)=>{
    const schema = {
        type: 'void',
        title: '{{ t("Popup") }}',
        'x-action': 'customize:popup',
        'x-toolbar': 'ActionSchemaToolbar',
        'x-settings': 'actionSettings:popup',
        'x-component': (null == props ? void 0 : props['x-component']) || 'Action.Link',
        'x-component-props': {
            openMode: 'drawer'
        },
        properties: {
            drawer: {
                type: 'void',
                title: '{{ t("Popup") }}',
                'x-component': 'Action.Container',
                'x-component-props': {
                    className: 'tb-action-popup'
                },
                properties: {
                    tabs: {
                        type: 'void',
                        'x-component': 'Tabs',
                        'x-component-props': {},
                        'x-initializer': 'popup:addTab',
                        properties: {
                            tab1: {
                                type: 'void',
                                title: '{{t("Details")}}',
                                'x-component': 'Tabs.TabPane',
                                'x-designer': 'Tabs.Designer',
                                'x-component-props': {},
                                properties: {
                                    grid: {
                                        type: 'void',
                                        'x-component': 'Grid',
                                        'x-initializer': 'popup:common:addBlock',
                                        properties: {}
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    };
    const itemConfig = (0, __WEBPACK_EXTERNAL_MODULE__application_index_mjs__.useSchemaInitializerItem)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_initializer_items_index_mjs__.BlockInitializer, {
        ...itemConfig,
        schema: schema,
        item: itemConfig
    });
};
export { PopupActionInitializer };
