import{u as x,r as a,j as e,ba as u,a3 as b}from"./vendor-BKmmeuxg.js";import{C as h}from"./course-card-1-CTs0r98c.js";import{B as i}from"./button-BpNwv2aE.js";import{C as g,A as j,a as v,b as N}from"./embla-carousel-autoplay.esm-D5sNokAK.js";import{g as C,S as y}from"./section-Bz0LxI_C.js";import{c as S}from"./utils-DxSsnXxD.js";import"./card-D9_SJYq6.js";import"./tooltip-BsX7Z6vz.js";import"./index-WW_1X1qx.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"./icon-picker-dialog-AqyWbPod.js";import"./icon-picker-iXyBXP6r.js";import"./debounce-CWHP_ANh.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 ee=()=>{const{props:n}=x(),{page:m,newCourses:o,customize:c}=n,[t,p]=a.useState(),[d,f]=a.useState(0),r=C(m,"new_courses");return a.useEffect(()=>{if(!t)return;const s=()=>{f(t.selectedScrollSnap())};return t.on("select",s),()=>{t.off("select",s)}},[t]),e.jsxs(y,{customize:c,pageSection:r,containerClass:"py-20",contentClass:"relative z-10",children:[e.jsxs("div",{className:"mx-auto text-center md:max-w-2xl",children:[e.jsx("p",{className:"text-secondary-foreground mb-1 font-medium",children:r==null?void 0:r.title}),e.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:r==null?void 0:r.sub_title}),e.jsx("p",{className:"text-muted-foreground",children:r==null?void 0:r.description})]}),e.jsx(g,{setApi:p,className:"z-10 py-10",opts:{align:"start",loop:!0},plugins:[j({delay:3e3})],children:e.jsx(v,{children:o.map(s=>e.jsx(N,{className:"basis-full md:basis-1/2 lg:basis-1/4",children:e.jsx("div",{className:"px-1.5 py-0.5",children:e.jsx(h,{course:s},s.id)})},s.id))})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center justify-center gap-2.5",children:t&&o.map(({id:s},l)=>e.jsx("div",{className:S("cursor-pointer rounded-full transition-all duration-200",d===l?"bg-primary h-2 w-4":"h-2 w-2 bg-gray-300"),onClick:()=>t.scrollTo(l)},s))}),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(u,{})}),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-20 after:-left-10 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-10 after:bottom-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"})]})};export{ee as default};
