import{j as e}from"./jsx-runtime.D_zvdyIk.js";import{m as t}from"./textConverter.D1LjrjZ_.js";import{r as a}from"./index.2yJIXLcc.js";import{N as x,H as h,a as u}from"./navigation.DjKHjJDo.js";/* empty css                       */import{P as p}from"./pagination.CSD-W6zp.js";import{S as f,a as g}from"./swiper-react.BpyM6VYm.js";import"./iconBase.Blz05Vck.js";const S=({title:o,testimonials:n})=>{const[j,d]=a.useState(!1),[c,r]=a.useState(!1),i=a.useRef(null),l=a.useRef(null);return e.jsx("section",{className:"section",children:e.jsx("div",{className:"container",children:e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"mx-auto mb-12 text-center md:col-10 lg:col-8 xl:col-6",children:e.jsx("h2",{dangerouslySetInnerHTML:{__html:t(o)},className:"mb-4"})}),e.jsx("div",{className:"relative",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:e.jsxs(f,{modules:[p,x],spaceBetween:24,navigation:{prevEl:i.current,nextEl:l.current},onInit:()=>d(!0),children:[n.map((s,m)=>e.jsx(g,{children:e.jsxs("div",{className:"rounded-lg relative flex flex-col items-center bg-theme-light px-7 py-10 dark:bg-darkmode-theme-light",children:[e.jsx("div",{className:"text-dark dark:text-white absolute opacity-25",children:e.jsxs("svg",{width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M160 110V80H140.156H120.312V78C120.312 71.9375 122.938 64 127.031 57.7812C128.969 54.8125 134.812 48.9688 137.781 47.0312C144 42.9375 151.938 40.3125 158 40.3125H160V30.1562V20H157.25C154.281 20 148.75 20.8125 144.844 21.8438C130.25 25.5937 117 35.3125 109.062 48.0937C104.656 55.2187 102 62.3437 100.594 70.9375C100.062 74.2812 100 76.7188 100 107.281V140H130H160L160 110Z",fill:"#D9D9D9"}),e.jsx("path",{d:"M60 110L60 80H40.1562H20.3125V78C20.3125 71.9375 22.9375 64 27.0312 57.7812C28.9687 54.8125 34.8125 48.9688 37.7812 47.0312C44 42.9375 51.9375 40.3125 58 40.3125H60V30.1562V20H57.25C54.2812 20 48.75 20.8125 44.8438 21.8438C30.25 25.5937 17 35.3125 9.0625 48.0937C4.65625 55.2187 2 62.3437 0.59375 70.9375C0.0625 74.2812 0 76.7188 0 107.281V140H30H60V110Z",fill:"#D9D9D9"})]})}),e.jsx("blockquote",{className:"mt-14 text-center mx-auto md:col-10 lg:col-8 z-10",dangerouslySetInnerHTML:{__html:t(s.content)}}),e.jsxs("div",{className:"mt-11 flex flex-col items-center",children:[e.jsx("div",{className:"text-dark dark:text-white mb-4",children:e.jsx("img",{height:50,width:50,className:"rounded-full",src:s.avatar,alt:s.name})}),e.jsx("h3",{dangerouslySetInnerHTML:{__html:t(s.name)},className:"h5 font-primary font-semibold"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:t(s.designation)},className:"text-dark dark:text-white"})]})]})},m)),e.jsxs("div",{className:`hidden lg:flex justify-between w-full absolute top-1/2 z-10 px-6 text-dark ${c?"opacity-100 transition-opacity duration-300 ease-in-out":"opacity-0 transition-opacity duration-300 ease-in-out"}`,children:[e.jsx("div",{ref:i,className:"p-2 lg:p-4 rounded-md bg-body cursor-pointer shadow-sm",children:e.jsx(h,{size:24})}),e.jsx("div",{ref:l,className:"p-2 lg:p-4 rounded-md bg-body cursor-pointer shadow-sm",children:e.jsx(u,{size:24})})]})]})})]})})})};export{S as default};
