import{jsx as o,jsxs as p}from"react/jsx-runtime";import{C as g}from"./category-card-4-zAq0hcsN.js";import{g as f,S as x}from"./section-DjkqMKZX.js";import{b4 as e}from"./ui-components-B24mpb8o.js";import{usePage as u}from"@inertiajs/react";import"lucide-react/dynamic";import"./use-lang-Cw_jKJYs.js";import"react";import"./chunked-uploader-input-WemAY1Qi.js";import"axios";import"lucide-react";import"sonner";import"./input-error-BbsDx4-P.js";import"./loading-button-B_LaGOAp.js";import"./inertia-FIn3q7f1.js";import"./icon-picker-dialog-C9VejAFv.js";import"./icon-picker-DlQKexqz.js";import"./debounce-CWHP_ANh.js";import"./icon-picker-tooltip-BfucLgKc.js";import"./table-header-DXTJ1r7-.js";import"@tanstack/react-table";import"./table-page-size-B94DPeOD.js";import"./route-D0xh7FtZ.js";import"next-themes";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";const dr=()=>{const{props:l}=u(),{page:s,customize:a,topCategories:c}=l,r=f(s,"top_categories"),i=["rgba(79,57,246,1)","rgba(0,122,85,1)","rgba(255,171,0,1)","rgba(236,0,63,1)","rgba(255,171,0,1)"];return o(x,{customize:a,pageSection:r,containerClass:"mt-20 py-20",contentClass:"relative",children:p("div",{className:"relative z-10 flex flex-col items-center justify-between gap-8 md:flex-row",children:[p("div",{className:"w-full md:max-w-[306px]",children:[o("h2",{className:"mb-2 text-3xl font-bold sm:text-4xl",children:r==null?void 0:r.title}),o("p",{className:"text-muted-foreground",children:r==null?void 0:r.description})]}),o("div",{className:"z-10 grid w-full grid-cols-1 gap-7 md:grid-cols-2 lg:grid-cols-3",children:c.map((m,n)=>{const d=n%i.length,t=i[d];return o(g,{category:m,style:{color:t,borderColor:e(t,.15),backgroundColor:e(t,.04)}},m.id)})})]})})};export{dr as default};
