import{u as d,r as p,j as e,L as c,ba as x,a3 as u}from"./vendor-BKmmeuxg.js";import{B as o}from"./button-BpNwv2aE.js";import{C as h,A as b,a as g,b as f}from"./embla-carousel-autoplay.esm-D5sNokAK.js";import{g as j,S as v}from"./section-Bz0LxI_C.js";import y from"./instructor-socials-B3AJqF_m.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";import"./dialog-B2gN9MvT.js";import"./use-lang-YfV87_zl.js";import"./chunked-uploader-input-D0XPVOTS.js";import"./input-DM0goJrn.js";import"./index-D9-QKOod.js";import"./input-error-LaPr_4wd.js";import"./loading-button-BnTVAMJ7.js";import"./label-HmIcv5Yx.js";import"./textarea-CyndvowL.js";import"./inertia-SZXqLvQm.js";import"./card-D9_SJYq6.js";import"./icon-picker-dialog-AqyWbPod.js";import"./icon-picker-iXyBXP6r.js";import"./debounce-CWHP_ANh.js";import"./tooltip-BsX7Z6vz.js";import"./scroll-area-C8HGru-R.js";import"./table-header-DVkEnG6Y.js";import"./table-DWOXv4Pu.js";import"./table-page-size-OCfjNXER.js";import"./dropdown-menu-DO-po5c1.js";import"./route-B4ZMN77y.js";import"./avatar-j28afJTV.js";const Z=()=>{const{props:a}=d(),{page:i,customize:l,topInstructors:m}=a,t=j(i,"top_instructors"),[r,n]=p.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:[b({delay:3e3})],children:[e.jsx(g,{children:m.map(s=>e.jsx(f,{className:"basis-full md:basis-1/2 lg:basis-1/4",children:e.jsx(c,{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};
