"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
(()=>{
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    default: ()=>demo2_rslib_entry_
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
require("react");
const client_namespaceObject = require("@tachybase/client");
const components_namespaceObject = require("@tachybase/components");
const external_apiClient_js_namespaceObject = require("./apiClient.js");
var external_apiClient_js_default = /*#__PURE__*/ __webpack_require__.n(external_apiClient_js_namespaceObject);
const schema = {
    type: 'object',
    properties: {
        input: {
            type: 'object',
            title: "编辑模式",
            default: [
                {
                    id: 45,
                    title: 's33766399',
                    name: 's33766399',
                    filename: 'cd48dc833ab01aa3959ac39309fc39de.jpg',
                    extname: '.jpg',
                    size: null,
                    mimetype: 'image/jpeg',
                    path: '',
                    meta: {},
                    status: 'uploading',
                    percent: 60,
                    url: 'https://tachybase.oss-cn-beijing.aliyuncs.com/cd48dc833ab01aa3959ac39309fc39de.jpg',
                    created_at: '2021-08-13T15:00:17.423Z',
                    updated_at: '2021-08-13T15:00:17.423Z',
                    created_by_id: null,
                    updated_by_id: null,
                    storage_id: 2
                },
                {
                    id: 7,
                    title: '简历',
                    filename: 'd9f6ad6669902a9a8a1229d9f362235a.docx',
                    extname: '.docx',
                    size: null,
                    mimetype: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
                    path: '',
                    meta: {},
                    url: 'https://tachybase.oss-cn-beijing.aliyuncs.com/d9f6ad6669902a9a8a1229d9f362235a.docx',
                    created_at: '2021-09-12T01:22:06.229Z',
                    updated_at: '2021-09-12T01:22:06.229Z',
                    created_by_id: null,
                    updated_by_id: 1,
                    storage_id: 2,
                    t_jh7a28dsfzi: {
                        createdAt: '2021-09-12T01:22:07.886Z',
                        updatedAt: '2021-09-12T01:22:07.886Z',
                        f_xg3mysbjfra: 1,
                        f_gc7ppj0b7n1: 7
                    }
                }
            ],
            'x-decorator': 'FormItem',
            'x-component': 'Upload.Attachment',
            'x-component-props': {
                action: 'attachments:create',
                multiple: true
            },
            'x-reactions': [
                {
                    target: 'read',
                    fulfill: {
                        state: {
                            value: '{{$self.value}}'
                        }
                    }
                },
                {
                    target: 'read2',
                    fulfill: {
                        state: {
                            value: '{{$self.value}}'
                        }
                    }
                }
            ]
        },
        read: {
            type: 'object',
            title: "阅读模式",
            'x-read-pretty': true,
            'x-decorator': 'FormItem',
            'x-component': 'Upload.Attachment',
            'x-component-props': {
                multiple: true
            }
        },
        read2: {
            type: 'object',
            title: "小图预览",
            'x-read-pretty': true,
            'x-decorator': 'FormItem',
            'x-component': 'Upload.Attachment',
            'x-component-props': {
                multiple: true,
                size: 'small'
            }
        }
    }
};
const demo2_rslib_entry_ = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.APIClientProvider, {
        apiClient: external_apiClient_js_default(),
        children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.SchemaComponentProvider, {
            components: {
                Upload: client_namespaceObject.Upload,
                FormItem: components_namespaceObject.FormItem
            },
            children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.SchemaComponent, {
                schema: schema
            })
        })
    });
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
