import{u as x,r as o,j as r,c5 as h,a4 as f}from"./vendor-rThclpOQ.js";import{B as j}from"./blog-card-1-DfZqFob2.js";import{B as l}from"./button-ZcsoqUQn.js";import{C as g,A as v,a as N,b}from"./embla-carousel-autoplay.esm-C7ZpmY0q.js";import{g as C,S as y}from"./section-BOqnWLvv.js";import{c as S}from"./utils-8KAaAB9H.js";import"./card-HXna_7vU.js";import"./avatar-BsP_s7dr.js";import"./index-DquVdLUg.js";import"./dialog-CDEDwQhm.js";import"./use-lang-BK6P2WMc.js";import"./chunked-uploader-input-rUbaF7V3.js";import"./input-BeqyurrI.js";import"./index-CWNIUFqh.js";import"./input-error-Br4ngfdE.js";import"./loading-button-DKhpmf6V.js";import"./label-CtY1vfZY.js";import"./textarea-DM_GyfeP.js";import"./inertia-SZXqLvQm.js";import"./icon-picker-dialog-Bko_3r6q.js";import"./icon-picker-B7sCh2g1.js";import"./debounce-CWHP_ANh.js";import"./tooltip-WOIaUmuC.js";import"./scroll-area-BCwyUKIK.js";import"./table-header-Cuecslh2.js";import"./table-DoQbaWlF.js";import"./table-page-size-FBmivxVb.js";import"./dropdown-menu-Cm0H42C1.js";import"./route-B4ZMN77y.js";const ee=()=>{const{props:m}=x(),{page:c,customize:n,blogs:a}=m,s=C(c,"blogs"),[e,p]=o.useState(),[d,u]=o.useState(0);return o.useEffect(()=>{if(!e)return;const t=()=>{u(e.selectedScrollSnap())};return e.on("select",t),()=>{e.off("select",t)}},[e]),r.jsxs(y,{customize:n,pageSection:s,containerClass:"z-10 py-20",children:[r.jsxs("div",{className:"mx-auto text-center md:max-w-2xl",children:[r.jsx("p",{className:"text-secondary-foreground mb-1 font-medium",children:s==null?void 0:s.title}),r.jsx("h2",{className:"mb-4 text-3xl font-bold sm:text-4xl",children:s==null?void 0:s.sub_title}),r.jsx("p",{className:"text-muted-foreground",children:s==null?void 0:s.description})]}),r.jsx(g,{setApi:p,className:"py-10",opts:{align:"start",loop:!0},plugins:[v({delay:3e3})],children:r.jsx(N,{children:a.map(t=>r.jsx(b,{className:"basis-full md:basis-1/2 lg:basis-1/4",children:r.jsx("div",{className:"h-full px-1.5 py-0.5",children:r.jsx(j,{blog:t,className:"h-full"})})},t.id))})}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("div",{className:"flex items-center justify-center gap-2.5",children:e&&a.map(({id:t},i)=>r.jsx("div",{className:S("cursor-pointer rounded-full transition-all duration-200",d===i?"bg-primary h-2 w-4":"h-2 w-2 bg-gray-300"),onClick:()=>e.scrollTo(i)},t))}),r.jsxs("div",{className:"space-x-4",children:[r.jsx(l,{size:"icon",variant:"outline",disabled:!(e!=null&&e.canScrollPrev()),onClick:()=>e==null?void 0:e.scrollPrev(),className:"hover:border-primary hover:bg-background",children:r.jsx(h,{})}),r.jsx(l,{size:"icon",variant:"outline",disabled:!(e!=null&&e.canScrollNext()),onClick:()=>e==null?void 0:e.scrollNext(),className:"hover:border-primary hover:bg-background",children:r.jsx(f,{})})]})]})]})};export{ee as default};
