import{j as e,aS as l,aT as m}from"./react-vendor-xYZnmIII.js";import{a as n}from"./ui-components-CQM92IK3.js";import{g as p,S as d}from"./section-BOHF3o7C.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 c=({category:r})=>e.jsx(l,{href:route("category.courses",{category:r.slug}),children:e.jsxs(n,{className:"border-muted hover:!shadow-card h-[110px] gap-4 rounded-2xl px-12 py-6 !shadow-none",children:[e.jsx("p",{className:"text-lg font-medium",children:r.title}),e.jsxs("p",{className:"text-muted-foreground",children:[r.courses_count," Courses"]})]})}),E=()=>{const{props:r}=m(),{page:a,customize:o,topCategories:i}=r,t=p(a,"top_categories");return e.jsxs(d,{customize:o,pageSection:t,containerClass:"py-20",children:[e.jsxs("div",{className:"relative z-10 mx-auto mb-10",children:[e.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:t==null?void 0:t.title}),e.jsx("p",{className:"text-muted-foreground",children:t==null?void 0:t.description})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"relative z-10 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:i.map(s=>e.jsx(c,{category:s},s.id))}),e.jsx("div",{className:"after:pointer-events-none after:absolute after:top-0 after:left-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']"}),e.jsx("div",{className:"after:pointer-events-none after:absolute after:right-0 after:bottom-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']"})]})]})};export{E as default};
