import { jsx as s, jsxs as t } from "react/jsx-runtime";
import { $ as f } from "./chunk-RXIM6GTA.C-ABNABt.js";
import "@sinclair/typebox";
import { _ as o } from "./twind.D_WBdNpx.js";
import { b as x } from "./use-section-style.CgktT_qE.js";
import { u as h } from "./use-color-preset.CYlEPd2C.js";
import { a as u } from "./iconify.Bxbp05s7.js";
import { B as v } from "./BrickRoot.LoA8SzjD.js";
function C({ brick: a, editable: l }) {
  const { props: r } = a, { gradientDirection: c, ...i } = x(a), m = h(a), n = Object.values(i), d = r.testimonials && Array.isArray(r.testimonials) ? r.testimonials : [];
  return /* @__PURE__ */ s(
    v,
    {
      editable: l,
      manifest: f,
      className: o("flex gap-6 @mobile:flex-col @desktop:flex-row", n),
      children: d.map((e, p) => /* @__PURE__ */ t(
        "div",
        {
          className: o(
            "testimonial-item flex flex-1 flex-col gap-4 p-6 rounded-lg border shadow-sm @desktop:(min-w-[250px])",
            m.card,
            c
          ),
          children: [
            /* @__PURE__ */ s("div", { className: "testimonial-text flex-1", children: /* @__PURE__ */ s("div", { className: "whitespace-pre-wrap text-pretty font-medium italic text-[110%]", children: e.text }) }),
            /* @__PURE__ */ t("div", { className: "testimonial-author flex items-center gap-3", children: [
              e.avatar && /* @__PURE__ */ s(
                "img",
                {
                  src: e.avatar.src,
                  alt: e.avatar.alt || e.author,
                  className: "w-12 h-12 rounded-full object-cover"
                }
              ),
              /* @__PURE__ */ t("div", { className: "flex-1 flex-nowrap", children: [
                /* @__PURE__ */ s("div", { className: "font-semibold text-[90%] text-nowrap", children: e.author }),
                e.company && /* @__PURE__ */ s("div", { className: "text-[85%]", children: e.company })
              ] }),
              e.socialIcon && /* @__PURE__ */ s(u, { icon: e.socialIcon, className: "w-5 h-5" })
            ] })
          ]
        },
        p
      ))
    }
  );
}
export {
  C as default
};
//# sourceMappingURL=testimonials.DbC8Kzjd.js.map
