import{u,r as a,j as e,ba as x,a3 as f}from"./vendor-BKmmeuxg.js";import{R as h}from"./review-card-1-C6gaPYO1.js";import{B as i}from"./button-BpNwv2aE.js";import{C as v,A as g,a as j,b}from"./embla-carousel-autoplay.esm-D5sNokAK.js";import{g as N,S as y,a as n}from"./section-Bz0LxI_C.js";import{c as C}from"./utils-DxSsnXxD.js";import"./card-D9_SJYq6.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"./tooltip-BsX7Z6vz.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 Z=()=>{const{props:l}=u(),{customize:c}=l,[r,m]=a.useState(),[d,p]=a.useState(0),t=N(l.page,"testimonials");return a.useEffect(()=>{if(!r)return;const s=()=>{p(r.selectedScrollSnap())};return r.on("select",s),()=>{r.off("select",s)}},[r]),e.jsx("div",{className:"overflow-y-hidden",children:e.jsxs(y,{customize:c,pageSection:t,containerClass:"py-20 relative",children:[e.jsxs("div",{className:"relative z-10 mx-auto max-w-lg text-center",children:[e.jsx("p",{className:"text-secondary-foreground mb-1 font-medium",children:t==null?void 0:t.title}),e.jsx("h2",{className:"mb-2 text-3xl font-bold sm:text-4xl",children:t==null?void 0:t.sub_title}),e.jsx("p",{className:"text-muted-foreground",children:t==null?void 0:t.description})]}),e.jsx("div",{className:"relative",children:e.jsx(v,{setApi:m,className:"relative z-10 py-10",opts:{loop:!0,align:"start",slidesToScroll:"auto"},plugins:[g({delay:5e3})],children:e.jsx(j,{children:n(t).map((s,o)=>e.jsx(b,{className:"md:basis-1/2 lg:basis-1/3",children:e.jsx("div",{className:"h-full px-1.5 py-0.5",children:e.jsx(h,{review:s})})},`testimonials-${o}`))})})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center justify-center gap-2.5",children:r&&n(t).map(({id:s},o)=>e.jsx("div",{className:C("cursor-pointer rounded-full transition-all duration-200",d===o?"bg-primary h-2 w-4":"h-2 w-2 bg-gray-300"),onClick:()=>r.scrollTo(o)},s))}),e.jsxs("div",{className:"space-x-4",children:[e.jsx(i,{size:"icon",variant:"outline",disabled:!(r!=null&&r.canScrollPrev()),onClick:()=>r==null?void 0:r.scrollPrev(),className:"hover:border-primary hover:bg-background",children:e.jsx(x,{})}),e.jsx(i,{size:"icon",variant:"outline",disabled:!(r!=null&&r.canScrollNext()),onClick:()=>r==null?void 0:r.scrollNext(),className:"hover:border-primary hover:bg-background",children:e.jsx(f,{})})]})]}),e.jsx("div",{className:"rounded-full after:pointer-events-none after:absolute after:right-0 after:bottom-10 after:h-[300px] after:w-[300px] after:bg-[rgba(43,127,255,0.32)] after:blur-[240px] after:content-['']"})]})})};export{Z as default};
