import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_client__ from "@tachybase/client";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components__ from "@tachybase/components";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
const schema = {
    type: 'object',
    properties: {
        a1: {
            type: 'void',
            'x-component': 'Action',
            'x-component-props': {
                type: 'primary'
            },
            title: 'Open',
            properties: {
                d1: {
                    type: 'void',
                    'x-component': 'Action.Drawer',
                    'x-decorator': 'Form',
                    'x-decorator-props': {
                        initialValue: {
                            field1: 'aaa'
                        }
                    },
                    title: 'Drawer Title',
                    properties: {
                        field1: {
                            title: 'T1',
                            'x-component': 'Input',
                            'x-decorator': 'FormItem'
                        },
                        out: {
                            'x-component': 'Output'
                        },
                        f1: {
                            type: 'void',
                            'x-component': 'Action.Drawer.Footer',
                            properties: {
                                a1: {
                                    'x-component': 'Action',
                                    title: 'Close',
                                    'x-component-props': {
                                        useAction: '{{ useCloseAction }}'
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};
const demo4_rslib_entry_ = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)(()=>{
    const Output = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)(()=>{
        const form = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
        return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("pre", {
            children: JSON.stringify(form.values, null, 2)
        });
    }, {
        displayName: 'Output'
    });
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_client__.SchemaComponentProvider, {
        scope: {
            useCloseAction: __WEBPACK_EXTERNAL_MODULE__tachybase_client__.useCloseAction
        },
        components: {
            Output,
            Form: __WEBPACK_EXTERNAL_MODULE__tachybase_client__.Form,
            Action: __WEBPACK_EXTERNAL_MODULE__tachybase_client__.Action,
            Input: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.Input,
            FormItem: __WEBPACK_EXTERNAL_MODULE__tachybase_components__.FormItem
        },
        children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_client__.SchemaComponent, {
            schema: schema
        })
    });
});
export { demo4_rslib_entry_ as default };
