import{aT as d,r as c,j as e,aS as p,aE as x,t as u}from"./react-vendor-xYZnmIII.js";import{b2 as h,b3 as b,b4 as g,B as a}from"./ui-components-CQM92IK3.js";import{g as f,S as j}from"./section-BOHF3o7C.js";import{A as v}from"./embla-carousel-autoplay.esm-DjPwQPS4.js";import y from"./instructor-socials-BcyB03fk.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./use-lang-Dg6I_Fym.js";import"./chunked-uploader-input-dQEAsxxf.js";import"./input-error-_LAmvivg.js";import"./loading-button-D7aXR3K4.js";import"./inertia-FIn3q7f1.js";import"./icon-picker-dialog-jzY0-ZNJ.js";import"./icon-picker-e9MMAA5U.js";import"./debounce-CWHP_ANh.js";import"./icon-picker-tooltip-CR2ZyXZ1.js";import"./table-header-CjMHr8CW.js";import"./table-page-size-CzF8rJAG.js";import"./route-D0xh7FtZ.js";const J=()=>{const{props:o}=d(),{page:l,customize:i,topInstructors:m}=o,t=f(l,"top_instructors"),[r,n]=c.useState();return e.jsxs(j,{customize:i,pageSection:t,containerClass:"py-20",children:[e.jsxs("div",{className:"mx-auto mb-10 text-center md:max-w-[480px]",children:[e.jsx("p",{className:"text-secondary-foreground mb-1 font-medium",children:t==null?void 0:t.title}),e.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:t==null?void 0:t.sub_title}),e.jsx("p",{className:"text-muted-foreground",children:t==null?void 0:t.description})]}),e.jsxs(h,{setApi:n,className:"relative",opts:{align:"start",loop:!0},plugins:[v({delay:3e3})],children:[e.jsx(b,{children:m.map(s=>e.jsx(g,{className:"basis-full md:basis-1/2 lg:basis-1/4",children:e.jsx("div",{className:"px-1.5 py-0.5",children:e.jsxs("div",{className:"group relative h-[380px] overflow-hidden rounded-2xl",children:[e.jsxs(p,{href:route("instructors.show",s.id),children:[e.jsx("img",{className:"h-full w-full object-cover object-center",src:s.user.photo||"/assets/images/intro/default/instructors/instructor-1.png",alt:""}),e.jsxs("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:[e.jsx("p",{className:"mb-1 text-lg font-semibold text-white",children:s.user.name}),e.jsx("p",{className:"text-sm text-white",children:s.designation})]})]}),e.jsx("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:e.jsx(y,{instructor:s,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"})})]})})},s.id))}),e.jsx(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:e.jsx(x,{})}),e.jsx(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:e.jsx(u,{})})]})]})};export{J as default};
