"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { memo, useMemo } from "react";
import { InspectorShell } from "./inspector/InspectorShell.js";
/**
 * Inspector panel for the visual canvas editor.
 *
 * Thin wrapper that bridges the callback-based prop API from
 * `WorkflowCanvasEditor` into the tabbed `InspectorShell` architecture.
 *
 * The shell renders a tabbed inspector with a consistent header, actions
 * menu, and per-tab content (Configure, Data, Runtime, Advanced, Docs).
 *
 * @since T15 Batch 3 (original), T10 (refactored to tabbed shell)
 */
export const WorkflowInspectorPanel = memo(function WorkflowInspectorPanel({ selection, graph, descriptor, onUpdateField, onRenameNode, onUpdateExport, onUpdateFlow, onDeleteEdge, onDeleteNode, onDuplicateNode, onToggleDisabled, onWrapInTryCatch, onUpdateBranchRouting, onMigrateBranchHandle, onRemoveBranchEdges, onRemoveSwitchCase, onReorderSwitchCases, onRemoveForkBranch, onReorderForkBranches, onRenameForkBranch, onSetForkCompete, onUpdateCatchConfig, onRemoveCatchBlock, onUpdateForEachConfig, onViewYaml, validationErrors, emptyState, className, }) {
    const mutations = useMemo(() => ({
        onUpdateField,
        onRenameNode,
        onUpdateExport,
        onUpdateFlow,
        onDeleteEdge,
        onDeleteNode,
        onDuplicateNode,
        onToggleDisabled,
        onWrapInTryCatch,
        onUpdateBranchRouting,
        onMigrateBranchHandle,
        onRemoveBranchEdges,
        onRemoveSwitchCase,
        onReorderSwitchCases,
        onRemoveForkBranch,
        onReorderForkBranches,
        onRenameForkBranch,
        onSetForkCompete,
        onUpdateCatchConfig,
        onRemoveCatchBlock,
        onUpdateForEachConfig,
    }), [
        onUpdateField,
        onRenameNode,
        onUpdateExport,
        onUpdateFlow,
        onDeleteEdge,
        onDeleteNode,
        onDuplicateNode,
        onToggleDisabled,
        onWrapInTryCatch,
        onUpdateBranchRouting,
        onMigrateBranchHandle,
        onRemoveBranchEdges,
        onRemoveSwitchCase,
        onReorderSwitchCases,
        onRemoveForkBranch,
        onReorderForkBranches,
        onRenameForkBranch,
        onSetForkCompete,
        onUpdateCatchConfig,
        onRemoveCatchBlock,
        onUpdateForEachConfig,
    ]);
    return (_jsx(InspectorShell, { selection: selection, graph: graph, descriptor: descriptor, mutations: mutations, validationErrors: validationErrors, emptyState: emptyState, onViewYaml: onViewYaml, className: className }));
});
//# sourceMappingURL=WorkflowInspectorPanel.js.map