import { jsx as s } from "react/jsx-runtime";
function m(n) {
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
}
var l = { exports: {} }, a;
function _() {
  return a || (a = 1, (function(n) {
    (function() {
      var u = {}.hasOwnProperty;
      function t() {
        for (var r = "", e = 0; e < arguments.length; e++) {
          var o = arguments[e];
          o && (r = p(r, i.call(this, o)));
        }
        return r;
      }
      function i(r) {
        if (typeof r == "string" || typeof r == "number")
          return this && this[r] || r;
        if (typeof r != "object")
          return "";
        if (Array.isArray(r))
          return t.apply(this, r);
        if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
          return r.toString();
        var e = "";
        for (var o in r)
          u.call(r, o) && r[o] && (e = p(e, this && this[o] || o));
        return e;
      }
      function p(r, e) {
        return e ? r ? r + " " + e : r + e : r;
      }
      n.exports ? (t.default = t, n.exports = t) : window.classNames = t;
    })();
  })(l)), l.exports;
}
var f = _();
const g = /* @__PURE__ */ m(f), v = {
  "purpur-icon": "_purpur-icon_8u1lq_1",
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
  "purpur-icon--sm": "_purpur-icon--sm_8u1lq_12",
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, x = g.bind(v), c = "purpur-icon", d = "md", y = (n) => n.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), h = ({ content: n = "", title: u } = {}) => {
  const t = [
    { name: "xmlns", value: "http://www.w3.org/2000/svg" },
    { name: "fill", value: "currentColor" },
    { name: "viewBox", value: "0 0 24 24" },
    u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
  ], i = u ? `<title>${u}</title>` : "";
  return `<svg ${y(t)}>${i}${n}</svg>`;
}, w = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim(), $ = ({ svg: n, allyTitle: u, className: t, size: i = d, ...p }) => {
  const r = h({
    content: w(n.svg),
    title: u
  }), e = x(c, `${c}--${i}`, t);
  return /* @__PURE__ */ s("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...p });
};
$.displayName = "Icon";
export {
  $ as b
};
//# sourceMappingURL=icon-DNHpBTHs-JfI8WyiR.mjs.map
