import { jsx as e, jsxs as d } from "react/jsx-runtime";
import { a as C } from "./index.CfQlFjZU.js";
import { c as l } from "./index.CfM2L_w0.js";
import { S as h } from "./SocialIconsPreview.D__IN9Jb.js";
const w = "creator_preview_db1pV", v = "creator_outline_bb5iX", p = "creator_withImage_LQZGv", u = "creator_socialIcons_Vf1tp", f = "creator_title_1CYKo", _ = "creator_hidden_zb2BC", s = { preview: w, outline: v, withImage: p, socialIcons: u, title: f, hidden: _ };
function N({
  displayName: o,
  imageSrc: t,
  icons: a
}) {
  const i = !!t;
  return {
    displayName: o,
    icons: a,
    previewClassName: s.preview,
    outlineClassName: l(s.outline, {
      [s.withImage]: i
    }),
    outlineStyle: {
      backgroundImage: `url("${t}")`
    },
    titleClassName: s.title,
    socialIconsClassName: s.socialIcons,
    defaultAvatarClassName: l({
      [s.hidden]: i
    })
  };
}
function I({
  displayName: o,
  icons: t,
  previewClassName: a,
  outlineClassName: i,
  outlineStyle: r,
  titleClassName: c,
  socialIconsClassName: n,
  defaultAvatarClassName: m
}) {
  return /* @__PURE__ */ e("div", { className: a, children: /* @__PURE__ */ d("div", { className: i, style: r, children: [
    /* @__PURE__ */ e(
      "svg",
      {
        xmlns: "http://www.w3.org/2000/svg",
        width: "160",
        height: "160",
        viewBox: "0 0 160 160",
        fill: "none",
        className: m,
        children: /* @__PURE__ */ e(
          "path",
          {
            d: "M80 40C87.3334 40 93.3334 46 93.3334 53.3333C93.3334 60.6666 87.3334 66.6666 80 66.6666C72.6667 66.6666 66.6667 60.6666 66.6667 53.3333C66.6667 46 72.6667 40 80 40ZM80 100C98 100 118.667 108.6 120 113.333V120H40V113.4C41.3334 108.6 62 100 80 100ZM80 26.6666C65.2667 26.6666 53.3334 38.6 53.3334 53.3333C53.3334 68.0666 65.2667 80 80 80C94.7334 80 106.667 68.0666 106.667 53.3333C106.667 38.6 94.7334 26.6666 80 26.6666ZM80 86.6666C62.2 86.6666 26.6667 95.6 26.6667 113.333V133.333H133.333V113.333C133.333 95.6 97.8 86.6666 80 86.6666Z",
            fill: "#5F35E6"
          }
        )
      }
    ),
    /* @__PURE__ */ e("h1", { className: c, children: o }),
    /* @__PURE__ */ e("div", { className: n, children: /* @__PURE__ */ e(h, { icons: t }) })
  ] }) });
}
const x = C(I, N);
export {
  x as P
};
