import{aT as u,r as a,j as e,aS as x,aE as h,t as b}from"./react-vendor-xYZnmIII.js";import{b2 as g,b3 as j,b4 as v,a as N,c as y,B as i}from"./ui-components-CQM92IK3.js";import{g as w,S as C}from"./section-BOHF3o7C.js";import{A as S}from"./embla-carousel-autoplay.esm-DjPwQPS4.js";import k 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 U=()=>{const{props:n}=u(),{page:c,customize:d,topInstructors:o}=n,s=w(c,"top_instructors"),[m,f]=a.useState(0),[t,p]=a.useState();return a.useEffect(()=>{if(!t)return;const r=()=>{f(t.selectedScrollSnap())};return t.on("select",r),()=>{t.off("select",r)}},[t]),e.jsxs(C,{customize:d,pageSection:s,containerClass:"py-20",contentClass:"relative",children:[e.jsxs("div",{className:"relative z-10 mx-auto",children:[e.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:s==null?void 0:s.title}),e.jsx("p",{className:"text-muted-foreground",children:s==null?void 0:s.description})]}),e.jsx(g,{setApi:p,className:"relative z-10 my-5",opts:{align:"start",loop:!0},plugins:[S({delay:3e3})],children:e.jsx(j,{children:o.map(r=>e.jsx(v,{className:"basis-full md:basis-1/2 lg:basis-1/4",children:e.jsx("div",{className:"px-1.5 py-5",children:e.jsxs(N,{className:"group !shadow-card-lg relative overflow-hidden rounded-2xl",children:[e.jsx(x,{href:route("instructors.show",r.id),children:e.jsxs("div",{className:"relative h-[300px] overflow-hidden",children:[e.jsx("img",{className:"h-full w-full object-cover object-center",src:r.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 p-4 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:r.user.name}),e.jsx("p",{className:"text-sm text-white",children:r.designation})]})]})}),e.jsx(k,{instructor:r})]})})},r.id))})}),e.jsxs("div",{className:"relative z-10 flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center justify-center gap-2.5",children:t&&o.map(({id:r},l)=>e.jsx("div",{className:y("cursor-pointer rounded-full transition-all duration-200",m===l?"bg-primary h-2 w-4":"h-2 w-2 bg-gray-300"),onClick:()=>t.scrollTo(l)},r))}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(i,{size:"icon",variant:"outline",disabled:!(t!=null&&t.canScrollPrev()),onClick:()=>t==null?void 0:t.scrollPrev(),className:"hover:border-primary hover:bg-background",children:e.jsx(h,{})}),e.jsx(i,{size:"icon",variant:"outline",disabled:!(t!=null&&t.canScrollNext()),onClick:()=>t==null?void 0:t.scrollNext(),className:"hover:border-primary hover:bg-background",children:e.jsx(b,{})})]})]}),e.jsx("div",{className:"after:pointer-events-none after:absolute after:top-10 after:left-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"}),e.jsx("div",{className:"after:pointer-events-none after:absolute after:right-0 after:bottom-9 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"})]})};export{U as default};
