import{jsxs as e,jsx as t}from"react/jsx-runtime";import{b1 as s,b2 as m,b3 as n,B as a}from"./ui-components-B24mpb8o.js";import p from"./instructor-socials-BXNMa78k.js";import{Link as c}from"@inertiajs/react";import d from"embla-carousel-autoplay";import{ChevronLeft as u,ChevronRight as h}from"lucide-react";import{useState as b}from"react";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";const Y=({data:i})=>{const[r,l]=b();return e(s,{setApi:l,className:"relative",opts:{align:"start",loop:!0},plugins:[d({delay:3e3})],children:[t(m,{children:i&&i.collection.map(o=>t(n,{className:"basis-full md:basis-1/2 lg:basis-1/4",children:t("div",{className:"px-1.5 py-0.5",children:e("div",{className:"group relative h-[380px] overflow-hidden rounded-2xl",children:[e(c,{href:route("instructors.show",o.id),children:[t("img",{className:"h-full w-full object-cover object-center",src:o.user.photo||"/assets/images/intro/default/instructors/instructor-1.png",alt:""}),e("div",{className:"from-primary dark:from-primary-foreground absolute bottom-0 left-1/2 flex h-full w-full -translate-x-1/2 flex-col justify-end bg-gradient-to-t px-4 pt-4 pb-2 text-center opacity-0 transition-all duration-200 group-hover:opacity-100",children:[t("p",{className:"mb-1 text-lg font-semibold text-white",children:o.user.name}),t("p",{className:"text-sm text-white",children:o.designation})]})]}),t("div",{className:"from-primary dark:from-primary-foreground absolute bottom-0 left-1/2 w-full -translate-x-1/2 bg-gradient-to-t opacity-0 transition-all duration-200 group-hover:opacity-100",children:t(p,{instructor:o,buttonVariant:"ghost",buttonClass:"bg-muted hover:bg-muted/80 dark:bg-primary/90 dark:hover:bg-primary/80 dark:text-primary-foreground",className:"py-2"})})]})})},o.id))}),t(a,{size:"icon",variant:"outline",disabled:!(r!=null&&r.canScrollPrev()),onClick:()=>r==null?void 0:r.scrollPrev(),className:"hover:border-primary hover:bg-background absolute top-1/2 -left-3 -translate-y-1/2",children:t(u,{})}),t(a,{size:"icon",variant:"outline",disabled:!(r!=null&&r.canScrollNext()),onClick:()=>r==null?void 0:r.scrollNext(),className:"hover:border-primary hover:bg-background absolute top-1/2 -right-3 -translate-y-1/2",children:t(h,{})})]})};export{Y as default};
