import{u as d,r as c,j as e,L as p,c5 as x,a4 as u}from"./vendor-rThclpOQ.js";import{B as o}from"./button-ZcsoqUQn.js";import{C as h,A as g,a as b,b as f}from"./embla-carousel-autoplay.esm-C7ZpmY0q.js";import{g as j,S as v}from"./section-BOqnWLvv.js";import y from"./instructor-socials-ByOJVLmZ.js";import"./index-DquVdLUg.js";import"./utils-8KAaAB9H.js";import"./dialog-CDEDwQhm.js";import"./use-lang-BK6P2WMc.js";import"./chunked-uploader-input-rUbaF7V3.js";import"./input-BeqyurrI.js";import"./index-CWNIUFqh.js";import"./input-error-Br4ngfdE.js";import"./loading-button-DKhpmf6V.js";import"./label-CtY1vfZY.js";import"./textarea-DM_GyfeP.js";import"./inertia-SZXqLvQm.js";import"./card-HXna_7vU.js";import"./icon-picker-dialog-Bko_3r6q.js";import"./icon-picker-B7sCh2g1.js";import"./debounce-CWHP_ANh.js";import"./tooltip-WOIaUmuC.js";import"./scroll-area-BCwyUKIK.js";import"./table-header-Cuecslh2.js";import"./table-DoQbaWlF.js";import"./table-page-size-FBmivxVb.js";import"./dropdown-menu-Cm0H42C1.js";import"./route-B4ZMN77y.js";import"./avatar-BsP_s7dr.js";const Z=()=>{const{props:a}=d(),{page:i,customize:l,topInstructors:m}=a,t=j(i,"top_instructors"),[r,n]=c.useState();return e.jsxs(v,{customize:l,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:[g({delay:3e3})],children:[e.jsx(b,{children:m.map(s=>e.jsx(f,{className:"basis-full md:basis-1/2 lg:basis-1/4",children:e.jsx(p,{href:route("instructors.show",s.id),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.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 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:s.user.name}),e.jsx("p",{className:"text-sm text-white",children:s.designation}),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"})]})]})})})},s.id))}),e.jsx(o,{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(o,{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{Z as default};
