import { jsxs, jsx } from "react/jsx-runtime";
import { C as Card } from "./card-B-gBwpxd.js";
import { g as getPageSection, S as Section } from "./section-DPFpz4mP.js";
import { usePage, Link } from "@inertiajs/react";
import "react";
import "./utils-DLCPGU0v.js";
import "clsx";
import "tailwind-merge";
import "./dialog-DGP_3dPQ.js";
import "@radix-ui/react-dialog";
import "lucide-react";
import "./use-lang-44ndmTOc.js";
import "./chunked-uploader-input-CZfv7yqS.js";
import "./button-CdJZJLGw.js";
import "@radix-ui/react-slot";
import "class-variance-authority";
import "./input-BsvJqbcd.js";
import "axios";
import "sonner";
import "./input-error-D1JIzedA.js";
import "./loading-button-CCIxhJrY.js";
import "./label-0rIIfpX0.js";
import "@radix-ui/react-label";
import "./textarea-Z0d4V-ti.js";
import "./inertia-BtwbgBI3.js";
import "./icon-picker-dialog-Bc1iwzL6.js";
import "./icon-picker-C-E-UbjO.js";
import "./debounce-ZFxqVthq.js";
import "./tooltip-BYKuzaoQ.js";
import "@radix-ui/react-tooltip";
import "lucide-react/dynamic";
import "./scroll-area-CDdrLubh.js";
import "@radix-ui/react-scroll-area";
import "./table-header-CdEXSV6s.js";
import "./table-BMWNGY4o.js";
import "@tanstack/react-table";
import "./table-page-size-CF314lUl.js";
import "./dropdown-menu-msun3TP8.js";
import "@radix-ui/react-dropdown-menu";
import "./route-DlE7FdTW.js";
import "./avatar-C8iCpF5R.js";
import "@radix-ui/react-avatar";
const TopInstructors = () => {
  const { props } = usePage();
  const { innerPage, customize, topInstructors } = props;
  const topInstructorsSection = getPageSection(innerPage, "top_instructors");
  return /* @__PURE__ */ jsxs(Section, { customize, pageSection: topInstructorsSection, containerClass: "py-[120px]", children: [
    /* @__PURE__ */ jsxs("div", { className: "relative z-10 mx-auto mb-8 max-w-lg text-center", children: [
      /* @__PURE__ */ jsx("h2", { className: "mb-2 text-2xl font-bold sm:text-[30px]", children: topInstructorsSection == null ? void 0 : topInstructorsSection.title }),
      /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: topInstructorsSection == null ? void 0 : topInstructorsSection.description })
    ] }),
    /* @__PURE__ */ jsxs("div", { className: "relative", children: [
      /* @__PURE__ */ jsx("div", { className: "relative z-10 grid grid-cols-1 gap-7 md:grid-cols-2 lg:grid-cols-4", children: topInstructors.map((instructor) => /* @__PURE__ */ jsxs(Card, { className: "!shadow-card-lg relative overflow-hidden rounded-2xl", children: [
        /* @__PURE__ */ jsx(Link, { href: route("instructors.show", instructor.id), children: /* @__PURE__ */ jsx("div", { className: "relative h-[300px] overflow-hidden", children: /* @__PURE__ */ jsx(
          "img",
          {
            className: "h-full w-full object-cover object-center",
            src: instructor.user.photo || "/assets/images/intro/default/instructors/instructor-1.png",
            alt: ""
          }
        ) }) }),
        /* @__PURE__ */ jsxs("div", { className: "space-y-1 py-4 text-center", children: [
          /* @__PURE__ */ jsx("p", { className: "font-semibold", children: instructor.user.name }),
          /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: instructor.designation })
        ] })
      ] }, instructor.id)) }),
      /* @__PURE__ */ jsx("div", { className: "after:pointer-events-none after:absolute after:top-1/2 after:left-1/2 after:h-[240px] after:w-[240px] after:-translate-x-1/2 after:-translate-y-1/2 after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[250px] after:content-['']" })
    ] })
  ] });
};
export {
  TopInstructors as default
};
