import { jsx } from "react/jsx-runtime";
import { OpenMode } from "../../../schema-component/index.mjs";
import { ActionInitializer } from "../../../schema-initializer/items/ActionInitializer.mjs";
const ViewActionInitializer = (props)=>{
    const schema = {
        type: 'void',
        title: '{{ t("View") }}',
        'x-action': 'view',
        'x-toolbar': 'ActionSchemaToolbar',
        'x-settings': 'actionSettings:view',
        'x-component': 'Action',
        'x-component-props': {
            openMode: OpenMode.DRAWER_MODE
        },
        properties: {
            drawer: {
                type: 'void',
                title: '{{ t("View record") }}',
                '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: {}
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    };
    return /*#__PURE__*/ jsx(ActionInitializer, {
        ...props,
        schema: schema
    });
};
export { ViewActionInitializer };
