"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { Handle, Position } from "@xyflow/react";
import { WorkflowNodeCard } from "../WorkflowNodeCard.js";
function StartNode({ data, isConnectable, selected }) {
  const nodeData = data;
  const mapStatus = (status) => {
    if (!status || status === "pending") return "not_started";
    if (status === "running" || status === "in_progress") return "in_progress";
    if (status === "completed") return "completed";
    if (status === "error") return "not_started";
    return "not_started";
  };
  const workflowStatus = mapStatus(nodeData.status);
  return /* @__PURE__ */ jsxs("div", { className: "start-node", title: nodeData.tooltip, children: [
    /* @__PURE__ */ jsx(
      WorkflowNodeCard,
      {
        title: nodeData.label || "Start",
        description: nodeData.description,
        status: workflowStatus,
        nodeType: "start",
        selected
      }
    ),
    /* @__PURE__ */ jsx(
      Handle,
      {
        type: "source",
        position: Position.Bottom,
        id: "source",
        isConnectable,
        className: "!w-3 !h-3 !bg-[#0080FE] !border-2 !border-white"
      }
    )
  ] });
}
export {
  StartNode
};
//# sourceMappingURL=StartNode.js.map
