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 SaveRecordActionInitializer = ()=>{
    const schema = {
        title: '{{ t("Save record") }}',
        'x-action': 'customize:save',
        'x-component': 'Action',
        'x-use-component-props': 'useCreateActionProps',
        'x-toolbar': 'ActionSchemaToolbar',
        'x-settings': 'actionSettings:saveRecord',
        'x-designer-props': {
            modalTip: '{{ t("When the button is clicked, the following fields will be assigned and saved together with the fields in the form. If there are overlapping fields, the value here will overwrite the value in the form.") }}'
        },
        'x-action-settings': {
            assignedValues: {},
            skipValidator: false,
            onSuccess: {
                manualClose: true,
                redirecting: false,
                successMessage: '{{t("Submitted successfully")}}'
            },
            triggerWorkflows: []
        }
    };
    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 { SaveRecordActionInitializer };
