"use client";
'use strict';

var clsx = require('clsx');
var tailwindMerge = require('tailwind-merge');
var jsxRuntime = require('react/jsx-runtime');
var SeparatorPrimitive = require('@radix-ui/react-separator');

function _interopNamespace(e) {
  if (e && e.__esModule) return e;
  var n = Object.create(null);
  if (e) {
    Object.keys(e).forEach(function (k) {
      if (k !== 'default') {
        var d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(n, k, d.get ? d : {
          enumerable: true,
          get: function () { return e[k]; }
        });
      }
    });
  }
  n.default = e;
  return Object.freeze(n);
}

var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);

// lib/utils.ts
function cn(...inputs) {
  return tailwindMerge.twMerge(clsx.clsx(inputs));
}
function Card({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "card",
      className: cn(
        "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
        className
      ),
      ...props
    }
  );
}
function CardContent({ className, ...props }) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    "div",
    {
      "data-slot": "card-content",
      className: cn("px-6", className),
      ...props
    }
  );
}
function Separator({
  className,
  orientation = "horizontal",
  decorative = true,
  ...props
}) {
  return /* @__PURE__ */ jsxRuntime.jsx(
    SeparatorPrimitive__namespace.Root,
    {
      "data-slot": "separator",
      decorative,
      orientation,
      className: cn(
        "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
        className
      ),
      ...props
    }
  );
}
var defaultEntries = [
  {
    date: "1956",
    title: "The Birth of AI",
    content: "The term 'Artificial Intelligence' was coined at the Dartmouth Conference, marking the official beginning of AI as a field. John McCarthy, Marvin Minsky, Nathaniel Rochester, and Claude Shannon organized this seminal event, setting the stage for decades of research and development."
  },
  {
    date: "1966-1973",
    title: "Early Optimism and First AI Winter",
    content: "The early years saw significant optimism with programs like ELIZA (the first chatbot) and SHRDLU (a natural language understanding system). However, by the early 1970s, funding dried up as researchers faced the limitations of early computing power and the complexity of human intelligence."
  },
  {
    date: "1980-1987",
    title: "Expert Systems and Revival",
    content: "AI experienced a revival with the development of expert systems like MYCIN (for medical diagnosis) and DENDRAL (for chemical analysis). These systems used rule-based approaches to mimic human decision-making in specific domains, leading to renewed interest and funding in AI research."
  },
  {
    date: "1997",
    title: "Deep Blue Defeats Chess Champion",
    content: "IBM's Deep Blue became the first computer system to defeat a reigning world chess champion, Garry Kasparov, in a six-game match. This milestone demonstrated AI's potential to outperform humans in complex strategic games and captured the public's imagination."
  }
];
function TimelineHistoryProse({
  className,
  heading = "The History of Artificial Intelligence",
  entries = defaultEntries
}) {
  return /* @__PURE__ */ jsxRuntime.jsx("section", { className: cn("bg-background py-32", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container", children: [
    /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "mb-10 text-center text-3xl font-bold tracking-tighter text-foreground sm:text-6xl", children: heading }),
    /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative mx-auto max-w-4xl", children: [
      /* @__PURE__ */ jsxRuntime.jsx(
        Separator,
        {
          orientation: "vertical",
          className: "absolute top-4 left-2 bg-muted"
        }
      ),
      entries.map((entry, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative mb-10 pl-8", children: [
        /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-3.5 left-0 flex size-4 items-center justify-center rounded-full bg-foreground" }),
        /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "rounded-xl py-2 text-xl font-bold tracking-tight xl:mb-4 xl:px-3", children: entry.title }),
        /* @__PURE__ */ jsxRuntime.jsx("h5", { className: "text-md top-3 -left-34 rounded-xl tracking-tight text-muted-foreground xl:absolute", children: entry.date }),
        /* @__PURE__ */ jsxRuntime.jsx(Card, { className: "my-5 border-none shadow-none", children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { className: "px-0 xl:px-2", children: /* @__PURE__ */ jsxRuntime.jsx(
          "div",
          {
            className: "prose text-foreground dark:prose-invert",
            dangerouslySetInnerHTML: { __html: entry.content }
          }
        ) }) })
      ] }, index))
    ] })
  ] }) });
}

exports.TimelineHistoryProse = TimelineHistoryProse;
//# sourceMappingURL=timeline-history-prose.cjs.map
//# sourceMappingURL=timeline-history-prose.cjs.map