1import{ot as e,rt as t,t as n}from"./jsx-runtime-vlDczagz.js";import{B as r,M as i,Nn as a,S as o,n as s,r as c}from"./layout-1UWg9V41.js";import{t as l}from"./sparkle-dots-GrMZAlNU.js";import{a as u,i as d,n as f,r as p}from"./slider-footer-CPRXMu0F.js";var m=e(t(),1),h={allowTouchMove:!0,grabCursor:!0,loop:!0,autoHeight:!0,speed:400,slidesPerView:1,slidesPerGroup:1},g=n();function _(e){return e.kind===`cta`?{label:e.label,to:e.to,href:e.href,external:e.external}:e.kind===`slider`&&e.cta?e.cta:null}function v(e){let t=e.split(`@`);if(t.length>1)return t.at(-1)?.trim()??e;let n=e.split(`,`);return n.length>1?n.at(-1)?.trim()??e:e.trim()}function y({testimonial:e}){return e.ecosystemLogoId?(0,g.jsx)(r,{ecosystemId:e.ecosystemLogoId,className:`!h-6 w-auto max-w-[120px] object-contain object-center opacity-95`}):e.logoSrc?(0,g.jsx)(`img`,{src:e.logoSrc,alt:`${v(e.roleLine)} logo`,className:`h-6 w-auto max-w-[120px] object-contain object-center opacity-95`}):(0,g.jsx)(`div`,{className:`bg-foreground-muted/15 h-6 w-24 shrink-0 rounded`,"aria-hidden":!0})}function b({testimonial:e}){return(0,g.jsxs)(`div`,{className:`flex flex-col items-center gap-12 text-center`,children:[(0,g.jsx)(y,{testimonial:e}),(0,g.jsx)(`blockquote`,{className:`text-foreground m-0 w-full max-w-full min-w-0 [font-feature-settings:'cv11'_1] text-[28px] leading-[1.2] font-medium tracking-[-1.2px] text-balance break-words not-italic sm:max-w-[810px] sm:text-[36px] lg:text-[40px]`,children:typeof e.quote==`string`?(0,g.jsxs)(g.Fragment,{children:[`â`,e.quote,`â`]}):e.quote}),(0,g.jsxs)(`div`,{className:`flex flex-col items-center gap-6`,children:[(0,g.jsx)(`div`,{className:`border-border bg-fill size-16 shrink-0 overflow-hidden rounded-full border`,children:e.avatarSrc?(0,g.jsx)(`img`,{src:e.avatarSrc,alt:`${e.author} portrait`,className:`size-full object-cover object-bottom`}):(0,g.jsx)(`div`,{className:`bg-background-muted text-foreground-muted flex size-full items-center justify-center text-sm font-semibold`,children:e.author.split(` `).map(e=>e[0]).join(``).slice(0,2)})}),(0,g.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,g.jsxs)(`div`,{className:`flex items-center justify-center gap-4`,children:[(0,g.jsx)(l,{}),(0,g.jsx)(`p`,{className:`text-brand-light m-0 max-w-full text-center [font-feature-settings:'cv11'_1] text-lg leading-[1.5] font-medium break-words sm:whitespace-nowrap`,children:e.author}),(0,g.jsx)(l,{mirrored:!0})]}),(0,g.jsx)(`p`,{className:`text-foreground-muted m-0 max-w-[500px] [font-feature-settings:'cv11'_1] text-xs leading-[1.5] font-medium tracking-[-0.36px]`,children:e.roleLine})]})]})]})}function x({cta:e}){return(0,g.jsx)(a.div,{variants:c,className:`flex justify-center`,children:(0,g.jsx)(o,{variant:`outline`,to:e.to,href:e.href,external:e.external,showArrow:!0,children:e.label})})}var S=`overflow-hidden sm:[mask-image:linear-gradient(to_right,transparent_0,_black_4rem,_black_calc(100%-4rem),transparent_100%)] lg:[mask-image:linear-gradient(to_right,transparent_0,_black_5rem,_black_calc(100%-5rem),transparent_100%)]`;function C({testimonials:e,cta:t}){let n=(0,m.useRef)(null),[r,i]=(0,m.useState)(0),o=p(),s=()=>{n.current?.slidePrev()},l=()=>{n.current?.slideNext()},_=e=>{n.current?.slideToLoop(e)};return(0,g.jsxs)(`div`,{className:`flex w-full flex-col gap-6`,children:[(0,g.jsx)(a.div,{variants:c,className:`ring-brand-light ring-offset-background relative w-full outline-none ${o.showFocusRing?`ring-2 ring-offset-2`:``}`,role:`region`,"aria-label":`Testimonial carousel`,tabIndex:0,onKeyDown:e=>{e.key===`ArrowLeft`&&(e.preventDefault(),s()),e.key===`ArrowRight`&&(e.preventDefault(),l())},onFocus:o.onFocus,onBlur:o.onBlur,onPointerDown:e=>{o.onPointerDown(),e.currentTarget.focus()},children:(0,g.jsx)(`div`,{className:`relative w-full min-w-0 sm:-mx-12 sm:w-[calc(100%+6rem)] lg:-mx-16 lg:w-[calc(100%+8rem)]`,children:(0,g.jsx)(`div`,{className:S,children:(0,g.jsx)(d,{onSwiper:e=>{n.current=e},...h,className:`testimonial-slider !my-0`,onSlideChange:e=>{i(e.realIndex)},children:e.map((e,t)=>(0,g.jsx)(u,{className:`outline-none`,children:(0,g.jsx)(b,{testimonial:e})},`${e.author}-${String(t)}`))})})})}),(0,g.jsx)(a.div,{variants:c,className:`w-full`,children:(0,g.jsx)(f,{count:e.length,index:r,onPrev:s,onNext:l,onSelect:_,itemLabel:`Testimonial`})}),t?(0,g.jsx)(x,{cta:t}):null]})}function w({testimonials:e,action:t,showFade:n=!0}){if(e.length===0)return(0,g.jsx)(g.Fragment,{});let r=e.length>1,o=_(t??(r?{kind:`slider`}:{kind:`none`}));return(0,g.jsx)(`section`,{className:n?`section-fade-top`:void 0,children:(0,g.jsx)(`div`,{className:`${i.sectionContainerDense} flex justify-center`,children:(0,g.jsx)(a.div,{variants:s,initial:`hidden`,whileInView:`visible`,viewport:{once:!0,amount:.15},className:`flex w-full max-w-[810px] min-w-0 flex-col items-center gap-12 overflow-x-clip`,children:r?(0,g.jsx)(C,{testimonials:e,cta:o}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.div,{variants:c,className:`w-full`,children:(0,g.jsx)(b,{testimonial:e[0]})}),o?(0,g.jsx)(x,{cta:o}):null]})})})})}export{w as t};
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.