"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__, {
    handleConfigurationSpecificPositionSchema: ()=>handleConfigurationSpecificPositionSchema,
    handleGroupOverrideSchema: ()=>handleGroupOverrideSchema,
    handlePositionSchema: ()=>handlePositionSchema,
    handleTypeSchema: ()=>handleTypeSchema,
    handleTypeDisplaySchema: ()=>handleTypeDisplaySchema,
    handleBoundarySchema: ()=>handleBoundarySchema,
    handleGroupManifestSchema: ()=>handleGroupManifestSchema,
    handleManifestSchema: ()=>handleManifestSchema
});
const external_zod_namespaceObject = require("zod");
const external_constraints_cjs_namespaceObject = require("./constraints.cjs");
const handlePositionSchema = external_zod_namespaceObject.z["enum"]([
    'left',
    'top',
    'right',
    'bottom'
]);
const handleBoundarySchema = external_zod_namespaceObject.z["enum"]([
    'outer',
    'inner'
]);
const handleTypeSchema = external_zod_namespaceObject.z["enum"]([
    'source',
    'target'
]);
const handleTypeDisplaySchema = external_zod_namespaceObject.z["enum"]([
    'artifact',
    'input',
    'output'
]);
const handleConfigurationSpecificPositionSchema = external_zod_namespaceObject.z.object({
    height: external_zod_namespaceObject.z.number().optional(),
    width: external_zod_namespaceObject.z.number().optional(),
    top: external_zod_namespaceObject.z.number().optional(),
    bottom: external_zod_namespaceObject.z.number().optional(),
    left: external_zod_namespaceObject.z.number().optional(),
    right: external_zod_namespaceObject.z.number().optional()
});
const handleManifestSchema = external_zod_namespaceObject.z.object({
    id: external_zod_namespaceObject.z.string().min(1),
    type: handleTypeSchema,
    handleType: handleTypeDisplaySchema,
    label: external_zod_namespaceObject.z.string().optional(),
    visible: external_zod_namespaceObject.z.union([
        external_zod_namespaceObject.z.boolean(),
        external_zod_namespaceObject.z.string()
    ]).optional(),
    repeat: external_zod_namespaceObject.z.string().optional(),
    itemVar: external_zod_namespaceObject.z.string().optional(),
    indexVar: external_zod_namespaceObject.z.string().optional(),
    showButton: external_zod_namespaceObject.z.boolean().optional(),
    constraints: external_constraints_cjs_namespaceObject.connectionConstraintSchema.optional(),
    isDefaultForType: external_zod_namespaceObject.z.boolean().optional()
});
const handleGroupManifestSchema = external_zod_namespaceObject.z.object({
    position: handlePositionSchema,
    boundary: handleBoundarySchema.optional(),
    customPositionAndOffsets: handleConfigurationSpecificPositionSchema.optional(),
    handles: external_zod_namespaceObject.z.array(handleManifestSchema),
    visible: external_zod_namespaceObject.z.boolean().optional()
});
const handleGroupOverrideSchema = external_zod_namespaceObject.z.object({
    position: handlePositionSchema,
    handles: external_zod_namespaceObject.z.array(handleManifestSchema),
    visible: external_zod_namespaceObject.z.boolean().optional()
});
exports.handleBoundarySchema = __webpack_exports__.handleBoundarySchema;
exports.handleConfigurationSpecificPositionSchema = __webpack_exports__.handleConfigurationSpecificPositionSchema;
exports.handleGroupManifestSchema = __webpack_exports__.handleGroupManifestSchema;
exports.handleGroupOverrideSchema = __webpack_exports__.handleGroupOverrideSchema;
exports.handleManifestSchema = __webpack_exports__.handleManifestSchema;
exports.handlePositionSchema = __webpack_exports__.handlePositionSchema;
exports.handleTypeDisplaySchema = __webpack_exports__.handleTypeDisplaySchema;
exports.handleTypeSchema = __webpack_exports__.handleTypeSchema;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "handleBoundarySchema",
    "handleConfigurationSpecificPositionSchema",
    "handleGroupManifestSchema",
    "handleGroupOverrideSchema",
    "handleManifestSchema",
    "handlePositionSchema",
    "handleTypeDisplaySchema",
    "handleTypeSchema"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
