"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > 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__, {
    modeToolbarConfigSchema: ()=>modeToolbarConfigSchema,
    toolbarActionSchema: ()=>toolbarActionSchema,
    toolbarConfigurationSchema: ()=>toolbarConfigurationSchema
});
const external_zod_namespaceObject = require("zod");
const toolbarActionSchema = external_zod_namespaceObject.z.object({
    id: external_zod_namespaceObject.z.string(),
    icon: external_zod_namespaceObject.z.string(),
    label: external_zod_namespaceObject.z.string(),
    shortcut: external_zod_namespaceObject.z.string().optional(),
    condition: external_zod_namespaceObject.z.object({
        requiresPermissions: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
        hideOnExecution: external_zod_namespaceObject.z.boolean().optional(),
        nodeTypes: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
        handles: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.object({
            handleType: external_zod_namespaceObject.z["enum"]([
                'output',
                'input',
                'artifact'
            ]),
            type: external_zod_namespaceObject.z["enum"]([
                'source',
                'target'
            ]).optional()
        })).optional()
    }).optional()
});
const modeToolbarConfigSchema = external_zod_namespaceObject.z.object({
    actions: external_zod_namespaceObject.z.array(toolbarActionSchema),
    overflowActions: external_zod_namespaceObject.z.array(toolbarActionSchema).optional()
});
const toolbarConfigurationSchema = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), modeToolbarConfigSchema);
exports.modeToolbarConfigSchema = __webpack_exports__.modeToolbarConfigSchema;
exports.toolbarActionSchema = __webpack_exports__.toolbarActionSchema;
exports.toolbarConfigurationSchema = __webpack_exports__.toolbarConfigurationSchema;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "modeToolbarConfigSchema",
    "toolbarActionSchema",
    "toolbarConfigurationSchema"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
