import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__ActionInitializer_mjs__ from "./ActionInitializer.mjs";
const SelectActionInitializer = (props)=>{
    const schema = {
        type: 'void',
        title: '{{ t("Select") }}',
        'x-action': 'update',
        'x-designer': 'Action.Designer',
        'x-component': 'Action',
        'x-component-props': {
            openMode: 'drawer'
        },
        properties: {
            drawer: {
                type: 'void',
                'x-component': 'AssociationField.Selector',
                title: '{{ t("Select record") }}',
                'x-component-props': {
                    className: 'tb-record-picker-selector'
                },
                properties: {
                    grid: {
                        type: 'void',
                        'x-component': 'Grid',
                        'x-initializer': 'popup:tableSelector:addBlock',
                        properties: {}
                    },
                    footer: {
                        'x-component': 'Action.Container.Footer',
                        'x-component-props': {},
                        properties: {
                            actions: {
                                type: 'void',
                                'x-component': 'ActionBar',
                                'x-component-props': {},
                                properties: {
                                    submit: {
                                        title: '{{ t("Submit") }}',
                                        'x-action': 'submit',
                                        'x-component': 'Action',
                                        'x-use-component-props': 'usePickActionProps',
                                        'x-toolbar': 'ActionSchemaToolbar',
                                        'x-settings': 'actionSettings:submit',
                                        'x-component-props': {
                                            type: 'primary',
                                            htmlType: 'submit'
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    };
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ActionInitializer_mjs__.ActionInitializer, {
        ...props,
        schema: schema
    });
};
export { SelectActionInitializer };
