1import{a8 as x,$ as e,a3 as b,A as j,o as g,ah as v,an as N,al as w,y,j as k}from"./index-ftxs6c-6.js";import{a as C}from"./useReviews-BGKV0aWl.js";import{C as S}from"./chevron-left-C_8F6sQu.js";import{C as T}from"./chevron-right-CHNcnkp3.js";function u({count:t}){return e.jsx("div",{className:"flex gap-0.5",children:Array.from({length:5}).map((a,i)=>e.jsx(g,{size:13,className:i<t?"text-brand-gold fill-brand-gold":"text-brand-border"},i))})}function E({content:t,locale:a}){const{reviews:i,loading:p}=C(),[n,c]=x.useState(0),[o,m]=x.useState(1),s=p||i.length===0?[]:i;x.useEffect(()=>{c(0)},[s.length]);const h=()=>{m(1),c(r=>(r+1)%s.length)},f=()=>{m(-1),c(r=>(r-1+s.length)%s.length)};x.useEffect(()=>{if(s.length===0)return;const r=setTimeout(h,6e3);return()=>clearTimeout(r)},[n,s.length]);const l=s[n];return e.jsxs("section",{id:"testimonials",className:"relative py-28 lg:py-36 bg-brand-black overflow-hidden",children:[e.jsx("div",{className:"absolute left-0 top-0 w-full h-px bg-gradient-to-r from-transparent via-brand-border to-transparent"}),e.jsxs("div",{className:"max-w-4xl mx-auto px-5 lg:px-10",children:[e.jsxs(b.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[e.jsx("span",{className:"h-px w-10 bg-brand-border"}),e.jsx("span",{className:"text-brand-soft text-xs tracking-[0.3em] uppercase",children:t.eyebrow}),e.jsx("span",{className:"h-px w-10 bg-brand-border"})]}),e.jsx("h2",{className:"section-heading",children:t.title}),e.jsx("div",{className:"gold-divider"})]}),e.jsx("div",{className:"relative min-h-[260px] flex items-center justify-center",children:s.length===0?e.jsx("p",{className:"text-brand-muted text-sm",children:t.loading}):e.jsx(j,{mode:"wait",custom:o,children:e.jsxs(b.div,{custom:o,initial:{opacity:0,x:o*36},animate:{opacity:1,x:0},exit:{opacity:0,x:o*-36},transition:{duration:.38},className:"text-center px-4",children:[e.jsx("div",{className:"font-serif text-8xl text-brand-surface leading-none mb-2 select-none",children:'"'}),e.jsx("p",{className:`font-serif text-xl sm:text-2xl text-brand-cream/80 italic leading-relaxed max-w-2xl mx-auto ${/[\u3400-\u9fff]/.test(l.text)?"font-senty-quote":""}`,children:l.text}),e.jsxs("div",{className:"mt-8 flex flex-col items-center gap-2",children:[e.jsx(u,{count:l.rating}),e.jsxs("div",{className:"mt-1",children:[e.jsx("div",{className:"font-medium text-brand-cream text-sm",children:l.name}),e.jsx("div",{className:"text-brand-muted text-xs mt-0.5",children:l.date})]})]})]},n)})}),e.jsxs("div",{className:"flex items-center justify-center gap-6 mt-10",children:[e.jsx("button",{onClick:f,disabled:s.length===0,className:"w-9 h-9 border border-brand-border text-brand-muted hover:border-brand-surface hover:text-brand-cream flex items-center justify-center transition-all disabled:opacity-30","aria-label":t.previous,children:e.jsx(S,{size:16})}),e.jsx("div",{className:"flex gap-2",children:s.map((r,d)=>e.jsx("button",{onClick:()=>{m(d>n?1:-1),c(d)},className:`transition-all duration-300 rounded-full ${d===n?"w-5 h-1.5 bg-brand-gold":"w-1.5 h-1.5 bg-brand-border hover:bg-brand-surface"}`,"aria-label":`${t.goTo} ${d+1}`},d))}),e.jsx("button",{onClick:h,disabled:s.length===0,className:"w-9 h-9 border border-brand-border text-brand-muted hover:border-brand-surface hover:text-brand-cream flex items-center justify-center transition-all disabled:opacity-30","aria-label":t.next,children:e.jsx(T,{size:16})})]}),e.jsx(b.div,{initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.3},className:"mt-12 flex justify-center",children:e.jsxs("div",{className:"card-dark px-6 py-4 flex items-center gap-5",children:[e.jsxs("div",{children:[e.jsx(u,{count:5}),e.jsx("div",{className:"text-brand-muted text-xs mt-1",children:t.live})]}),e.jsx("div",{className:"w-px h-10 bg-brand-border"}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"font-serif text-2xl font-bold text-brand-gold italic",children:s.length}),e.jsx("div",{className:"text-brand-muted text-[10px] tracking-widest uppercase",children:t.count})]})]})})]})]})}function I(){const{locale:t}=v(),a=N("testimonials-careers").testimonials;return w({title:a.seoTitle,description:a.seoDesc,locale:t,canonical:"/testimonials",schemas:[y([{name:a.home,url:"/"},{name:a.reviews,url:"/testimonials"}])]}),e.jsxs("div",{className:"min-h-screen bg-brand-dark pt-24",children:[e.jsx("div",{className:"page-container pt-6",children:e.jsx(k,{to:"/",className:"inline-flex items-center gap-2 text-brand-muted hover:text-brand-cream text-xs tracking-widest uppercase transition-colors",children:a.home})}),e.jsx(E,{content:a,locale:t})]})}export{I as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.