PageSourceSearch

https://betterathome.be/assets/ReviewCard-DezMGrYF.js

js betterathome.be collected 2026-10-04 17:41:29 UTC 2,779 bytes, 1 lines download raw bytes

1import{r as c,j as a}from"./index-DqjIPLmB.js";import{S as x}from"./star-DHN_Lw3G.js";import{P as u}from"./play-CL-84UVe.js";import{A as f}from"./arrow-up-right-Myfmv8pa.js";function g({review:e,excerpt:i,context:n,english:t=!1}){const[r,o]=c.useState(!1),s=i||(e.text.length>360?`${e.text.slice(0,360).replace(/\s+\S*$/,"")}…`:e.text),d=s!==e.text;return a.jsxs("figure",{"data-testimonial-id":e.id,className:"mb-5 break-inside-avoid rounded-3xl border border-gold/35 bg-[#FFFCF7] p-6 text-brown",children:[n&&a.jsx("p",{className:"mb-4 text-xs font-medium leading-relaxed text-brown/75",children:n}),e.rating!==null&&e.rating>0&&a.jsx("div",{className:"flex gap-1 text-[#A77D19] mb-5",role:"img","aria-label":`${e.rating} ${t?"out of":"sur"} 5`,children:Array.from({length:e.rating},(l,m)=>a.jsx(x,{size:16,fill:"currentColor","aria-hidden":"true"},m))}),e.text&&a.jsx("blockquote",{lang:"fr",cite:e.url,className:"text-base leading-relaxed whitespace-pre-line break-words",children:a.jsxs("p",{children:["« ",r?e.text:s," »"]})}),d&&a.jsx("button",{type:"button",onClick:()=>o(!r),"aria-expanded":r,"aria-label":`${r?t?"Collapse":"Réduire":t?"Read full review by":"Lire le témoignage complet de"} ${e.name}`,className:"min-h-11 mt-2 text-sm underline underline-offset-4 hover:text-[#806016]",children:r?t?"Show less":"Réduire":t?"Read more":"Lire la suite"}),a.jsxs("figcaption",{className:"mt-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsxs("div",{className:"relative h-11 w-11 shrink-0 overflow-hidden rounded-full bg-beige","aria-hidden":"true",children:[a.jsx("span",{className:"absolute inset-0 flex items-center justify-center font-serif text-xl",children:e.name.slice(0,1)}),e.avatar&&a.jsx("img",{src:e.avatar,alt:"",width:44,height:44,loading:"lazy",decoding:"async",className:"relative h-full w-full object-cover",onError:l=>{l.currentTarget.style.display="none"}})]}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"font-semibold break-words",children:e.name}),a.jsx("time",{dateTime:e.date,className:"text-sm text-brown/70",children:new Intl.DateTimeFormat(t?"en-GB":"fr-BE",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e.date}T12:00:00Z`))})]})]}),a.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":`${t?"View review by":"Voir le témoignage de"} ${e.name} ${t?"on Senja (new tab)":"sur Senja (nouvel onglet)"}`,className:"inline-flex items-center gap-1 min-h-11 mt-2 text-sm underline underline-offset-4 hover:text-[#806016]",children:[e.video&&a.jsx(u,{size:16,"aria-hidden":"true"}),e.video?t?"Watch testimonial":"Voir le témoignage vidéo":t?"Source: Senja":"Source : Senja",a.jsx(f,{size:15,"aria-hidden":"true"})]})]})]})}export{g as R};

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.