import { jsx as s } from "react/jsx-runtime";
import { c as v } from "./bind-CU-R61T-.mjs";
const g = {
  "purpur-link": "_purpur-link_5pram_1",
  "purpur-link--text": "_purpur-link--text_5pram_18",
  "purpur-link--standalone": "_purpur-link--standalone_5pram_18",
  "purpur-link--navigation": "_purpur-link--navigation_5pram_18",
  "purpur-link--disable-visited": "_purpur-link--disable-visited_5pram_29",
  "purpur-link--text-negative": "_purpur-link--text-negative_5pram_32",
  "purpur-link--standalone-negative": "_purpur-link--standalone-negative_5pram_32",
  "purpur-link--navigation-negative": "_purpur-link--navigation-negative_5pram_32",
  "purpur-link--ensure-target-area": "_purpur-link--ensure-target-area_5pram_71",
  "purpur-link--silent": "_purpur-link--silent_5pram_77"
}, c = v.bind(g), a = "purpur-link", N = {
  TEXT: "text",
  STANDALONE: "standalone",
  NAVIGATION: "navigation"
}, b = Object.values(N), x = ({
  ["data-testid"]: r,
  children: i,
  className: _,
  disableVisited: k = !0,
  ensureTargetArea: o,
  href: n,
  negative: t = !1,
  onClick: p,
  rel: d,
  silent: e,
  target: m,
  variant: u,
  ...l
}) => (
  /* eslint-disable-next-line jsx-a11y/click-events-have-key-events */
  /* @__PURE__ */ s(
    "span",
    {
      className: c(
        _,
        a,
        `${a}--${t ? `${u}-negative` : u}`,
        {
          [`${a}--silent`]: e,
          [`${a}--negative`]: t,
          [`${a}--disable-visited`]: k ?? e,
          [`${a}--ensure-target-area`]: o
        }
      ),
      "data-testid": r,
      onClick: n ? void 0 : p,
      ...n ? {} : l,
      children: n ? /* @__PURE__ */ s(
        "a",
        {
          href: n,
          target: m,
          rel: d,
          onClick: p,
          "data-testid": r ? `${r} a` : void 0,
          ...l,
          children: i
        }
      ) : i
    }
  )
);
x.displayName = "Link";
export {
  N as L,
  x as a,
  b as l
};
//# sourceMappingURL=link-DY5WLpyc.mjs.map
