import{u as n,j as t,L as x}from"./vendor-BKmmeuxg.js";import{C as u}from"./course-card-2-BRytYEg8.js";import{T as c}from"./tabs-D0Mbb5M5.js";import{B as h}from"./button-BpNwv2aE.js";import{T as f,a as j,b as N}from"./tabs-Ifouhv9A.js";import{g as b,S as v}from"./section-Bz0LxI_C.js";import"./avatar-j28afJTV.js";import"./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";const $=()=>{var e,m,p;const{props:l}=n(),{page:a,customize:d,categoryTopCourses:i}=l,s=b(a,"category_courses");return t.jsxs(v,{customize:d,pageSection:s,containerClass:"py-20",children:[t.jsxs("div",{className:"mx-auto",children:[t.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:s==null?void 0:s.title}),t.jsx("p",{className:"text-muted-foreground",children:s==null?void 0:s.description})]}),i[0]&&t.jsxs(c,{defaultValue:i[0].slug,children:[t.jsx("div",{className:"mt-6 flex w-full max-w-[1000px] overflow-x-auto overflow-y-hidden",children:t.jsx(f,{className:"h-[60px] justify-center px-2",children:i.map(r=>t.jsx(j,{value:r.slug,className:"h-11 cursor-pointer text-base",children:r.title},r.id))})}),i.map(r=>t.jsx(N,{value:r.slug,className:"mt-10",children:r.courses&&r.courses.length>0?t.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:r.courses.map(o=>t.jsx(u,{course:o},o.id))}):t.jsx("p",{className:"text-muted-foreground text-center",children:"No courses found"})},r.id))]}),t.jsx("div",{className:"mt-10 flex items-center justify-center",children:((e=s==null?void 0:s.properties)==null?void 0:e.button_text)&&t.jsx(h,{asChild:!0,variant:"outline",className:"h-[42px] px-5",children:t.jsx(x,{href:((m=s==null?void 0:s.properties)==null?void 0:m.button_link)||"",children:(p=s==null?void 0:s.properties)==null?void 0:p.button_text})})})]})};export{$ as default};
