"use client";
import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import * as AvatarPrimitive from '@radix-ui/react-avatar';
import { jsx, jsxs } from 'react/jsx-runtime';
import { Slot } from '@radix-ui/react-slot';
import { cva } from 'class-variance-authority';

// lib/utils.ts
function cn(...inputs) {
  return twMerge(clsx(inputs));
}
function Avatar({
  className,
  ...props
}) {
  return /* @__PURE__ */ jsx(
    AvatarPrimitive.Root,
    {
      "data-slot": "avatar",
      className: cn(
        "relative flex size-8 shrink-0 overflow-hidden rounded-full",
        className
      ),
      ...props
    }
  );
}
function AvatarImage({
  className,
  ...props
}) {
  return /* @__PURE__ */ jsx(
    AvatarPrimitive.Image,
    {
      "data-slot": "avatar-image",
      className: cn("aspect-square size-full", className),
      ...props
    }
  );
}
function AvatarFallback({
  className,
  ...props
}) {
  return /* @__PURE__ */ jsx(
    AvatarPrimitive.Fallback,
    {
      "data-slot": "avatar-fallback",
      className: cn(
        "bg-muted flex size-full items-center justify-center rounded-full",
        className
      ),
      ...props
    }
  );
}
var badgeVariants = cva(
  "inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
  {
    variants: {
      variant: {
        default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
        secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
        destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
        outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
      }
    },
    defaultVariants: {
      variant: "default"
    }
  }
);
function Badge({
  className,
  variant,
  asChild = false,
  ...props
}) {
  const Comp = asChild ? Slot : "span";
  return /* @__PURE__ */ jsx(
    Comp,
    {
      "data-slot": "badge",
      className: cn(badgeVariants({ variant }), className),
      ...props
    }
  );
}

// lib/blockBrandedIconsAndPlaceholders.ts
var blockBrandedIconsAndPlaceholders = {
  avatar1: "https://cdn.ing/assets/i/r/286239/ebm7o3j2kx48vw98emnwjaf5qvl6/avatar-1.webp",
  avatar2: "https://cdn.ing/assets/i/r/286240/vgf3rrkwn0769pfdtpal60uo5vpw/avatar-2.webp",
  avatar3: "https://cdn.ing/assets/i/r/286241/05vbqt3lls0q974r8fv4zn0njllq/avatar-3.webp",
  avatar4: "https://cdn.ing/assets/i/r/286242/y0zkazxawxrl3twwkw63twf04pdt/avatar-4.webp",
  avatar5: "https://cdn.ing/assets/i/r/286243/alziyfoo570m3vade3usufzlzj6x/avatar-5.webp",
  avatar6: "https://cdn.ing/assets/i/r/286244/t7u1jpe1phm0fvmh3ybh3flhfg6i/avatar-6.webp",
  avatar7: "https://cdn.ing/assets/i/r/286245/yf2wb1scwmdgntba2on67q0t091d/avatar-7.webp",
  avatar8: "https://cdn.ing/assets/i/r/286246/jsrq5sf9oxi8piujnfrdjqmg5zvx/avatar-8.webp"};
var DEFAULT_TESTIMONIALS = [
  {
    id: "1",
    content: "Game-changer for our team. Productivity up 50%!",
    author: {
      name: "Sarah Chen",
      handle: "@sarahchen",
      avatar: blockBrandedIconsAndPlaceholders.avatar1
    },
    badge: "Featured"
  },
  {
    id: "2",
    content: "Best tool I've used in years. Highly recommend.",
    author: {
      name: "Michael Torres",
      handle: "@mtorres",
      avatar: blockBrandedIconsAndPlaceholders.avatar2
    }
  },
  {
    id: "3",
    content: "Support team is incredible. Always there when needed.",
    author: {
      name: "Emily Watson",
      handle: "@emilyw",
      avatar: blockBrandedIconsAndPlaceholders.avatar3
    }
  },
  {
    id: "4",
    content: "Clean UI, powerful features. Perfect combo.",
    author: {
      name: "David Kim",
      handle: "@davidkim",
      avatar: blockBrandedIconsAndPlaceholders.avatar4
    },
    badge: "Verified"
  },
  {
    id: "5",
    content: "Switched from competitors. Never looking back.",
    author: {
      name: "Lisa Park",
      handle: "@lisapark",
      avatar: blockBrandedIconsAndPlaceholders.avatar5
    }
  },
  {
    id: "6",
    content: "ROI was visible in the first week. Amazing!",
    author: {
      name: "Alex Rivera",
      handle: "@alexr",
      avatar: blockBrandedIconsAndPlaceholders.avatar6
    }
  },
  {
    id: "7",
    content: "Documentation is top-notch. Easy to get started.",
    author: {
      name: "Jordan Lee",
      handle: "@jordanlee",
      avatar: blockBrandedIconsAndPlaceholders.avatar7
    }
  },
  {
    id: "8",
    content: "Our whole team adopted it instantly. Love it!",
    author: {
      name: "Maya Patel",
      handle: "@mayap",
      avatar: blockBrandedIconsAndPlaceholders.avatar8
    },
    badge: "Power User"
  },
  {
    id: "9",
    content: "Finally, a tool that just works. No fuss.",
    author: {
      name: "Chris Wong",
      avatar: blockBrandedIconsAndPlaceholders.avatar1
    }
  },
  {
    id: "10",
    content: "Customer service responded in minutes. Impressed!",
    author: {
      name: "Emma Davis",
      handle: "@emmad",
      avatar: blockBrandedIconsAndPlaceholders.avatar2
    }
  },
  {
    id: "11",
    content: "Worth every penny. Quality is unmatched.",
    author: {
      name: "Ryan Miller",
      avatar: blockBrandedIconsAndPlaceholders.avatar3
    }
  },
  {
    id: "12",
    content: "Integrations work flawlessly. Saved us hours.",
    author: {
      name: "Sophie Brown",
      handle: "@sophieb",
      avatar: blockBrandedIconsAndPlaceholders.avatar4
    }
  }
];
function TestimonialsWallCompact({
  testimonials = DEFAULT_TESTIMONIALS,
  title = "Wall of Love",
  subtitle = "What our community is saying",
  className
}) {
  return /* @__PURE__ */ jsx("section", { className: cn("py-16 md:py-24", className), children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
    /* @__PURE__ */ jsxs("div", { className: "mx-auto mb-12 max-w-2xl text-center", children: [
      /* @__PURE__ */ jsx("h2", { className: "text-3xl font-semibold tracking-tight md:text-4xl", children: title }),
      /* @__PURE__ */ jsx("p", { className: "mt-4 text-lg text-muted-foreground", children: subtitle })
    ] }),
    /* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4", children: testimonials.map((testimonial) => /* @__PURE__ */ jsxs(
      "div",
      {
        className: "rounded-lg border bg-card p-4 transition-shadow hover:shadow-md",
        children: [
          /* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-start justify-between gap-2", children: [
            /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
              /* @__PURE__ */ jsxs(Avatar, { className: "size-8", children: [
                /* @__PURE__ */ jsx(
                  AvatarImage,
                  {
                    src: testimonial.author.avatar,
                    alt: testimonial.author.name
                  }
                ),
                /* @__PURE__ */ jsx(AvatarFallback, { className: "text-xs", children: testimonial.author.name.split(" ").map((n) => n[0]).join("") })
              ] }),
              /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
                /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", children: testimonial.author.name }),
                testimonial.author.handle && /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: testimonial.author.handle })
              ] })
            ] }),
            testimonial.badge && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "shrink-0 text-xs", children: testimonial.badge })
          ] }),
          /* @__PURE__ */ jsx("p", { className: "text-sm leading-relaxed", children: testimonial.content })
        ]
      },
      testimonial.id
    )) })
  ] }) });
}

export { TestimonialsWallCompact };
//# sourceMappingURL=testimonials-wall-compact.js.map
//# sourceMappingURL=testimonials-wall-compact.js.map