{"version":3,"file":"Testimonials.DTrxYFNH.mjs","names":["React.useState","React.useEffect","React.useLayoutEffect","React.useRef"],"sources":["https:/framerusercontent.com/modules/qprGjbAoD0BzkxdDB1k5/sNgkZl2H5360vlmF535l/Testimonials.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useReducedMotion}from\"framer-motion\";/**\n * Testimonials — three columns of client notes drifting at different speeds.\n *\n * Each column is duplicated once and translated a full copy-length, so the loop\n * is seamless without cloning on every frame. The columns keep moving under the\n * cursor; reduced motion stops all three and shows the first cards\n * statically. Written in CSS keyframes rather than JS so it costs nothing while\n * off-screen.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1152\n * @framerIntrinsicHeight 520\n */const INK=\"#2A251D\";const BOND=\"#F8F5EF\";const GREEN=\"#175A46\";const BULLION=\"#C79A4B\";const MANROPE='\"Manrope\", \"Readex Pro\", ui-sans-serif, sans-serif';const PIAZZOLLA='\"Piazzolla\", \"Piazzolla Placeholder\", serif';const DEMO=[{quote:\"The payment plan was on the page before I asked for it. That is not how the other four agencies worked.\",name:\"Marcus Lindqvist\",role:\"Bought off plan \\xb7 Business Bay\"},{quote:\"They talked me out of a unit I liked because the service charge did not stack up. I bought the next one instead.\",name:\"Priya Raghunathan\",role:\"Bought resale \\xb7 Islington\"},{quote:\"Handover slipped by one quarter and I knew about it three months before completion. No surprises.\",name:\"Tobias Reiner\",role:\"Bought off plan \\xb7 Saadiyat\"},{quote:\"I signed a lease in a city I had never lived in and understood every line of it. The deposit terms were in writing from day one.\",name:\"Aur\\xe9lie Bassin\",role:\"Rented \\xb7 Eixample\"},{quote:\"The unit schedule told me what I was actually paying per square metre. I compared three towers in an afternoon.\",name:\"Daniel Okonkwo\",role:\"Bought off plan \\xb7 Brickell\"},{quote:\"Everything came back in Arabic without me having to ask twice.\",name:\"Hessa Al Mansoori\",role:\"Bought resale \\xb7 Salamanca\"},{quote:\"They found the mortgage broker, then chased the bank harder than I would have.\",name:\"Elena Marchetti\",role:\"Bought resale \\xb7 Porta Romana\"},{quote:\"Two viewings, one offer, done in eleven days. The paperwork was ready before I was.\",name:\"Jonas Berg\",role:\"Bought resale \\xb7 Prenzlauer Berg\"},{quote:\"I asked for the escrow details and got the account reference the same afternoon.\",name:\"Camila Duarte\",role:\"Bought off plan \\xb7 Avenidas Novas\"}];const AR_SWAP={\"What clients say when the deal is done\":\"ماذا يقول العملاء بعد إتمام الصفقة\",Testimonials:\"آراء العملاء\"};function Card({note}){return /*#__PURE__*/_jsxs(\"figure\",{style:{margin:0,background:\"rgba(255, 255, 255, 0.66)\",border:\"1.5px solid rgba(42, 37, 29, 0.12)\",borderRadius:12,padding:\"20px 20px 18px\",display:\"grid\",gap:14},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{width:22,height:2,background:BULLION,display:\"block\"}}),/*#__PURE__*/_jsx(\"blockquote\",{style:{margin:0,fontFamily:MANROPE,fontWeight:500,fontSize:15,lineHeight:\"1.6em\",color:\"rgba(42, 37, 29, 0.86)\"},children:note.quote}),/*#__PURE__*/_jsxs(\"figcaption\",{style:{fontFamily:MANROPE},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:700,fontSize:13.5,color:INK},children:note.name}),/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:500,fontSize:12,color:\"rgba(42, 37, 29, 0.55)\",marginTop:2},children:note.role})]})]});}/** framer-motion's useReducedMotion() returns null while the page is being rendered\n *  on the server and the visitor's real preference on the client. A component that\n *  branches its markup on it therefore renders one thing on the server and another on\n *  the client, and React reports a hydration mismatch (#418) — for exactly the people\n *  who asked for less movement, who are the worst possible audience for a page that\n *  flickers as it repairs itself. Answer as the server did on the first render, then\n *  correct in a layout effect, which lands before the browser paints. */function useReducedMotionSafe(){const real=useReducedMotion();const[ready,setReady]=React.useState(false);const afterMount=typeof window===\"undefined\"?React.useEffect:React.useLayoutEffect;afterMount(()=>setReady(true),[]);return ready?!!real:false;}export default function Testimonials(props){const{notes,eyebrow,title,height,speed}=props;const isStatic=RenderTarget.current()===RenderTarget.canvas||RenderTarget.current()===RenderTarget.export;const reduced=useReducedMotionSafe();const still=isStatic||!!reduced;const[arabic,setArabic]=React.useState(false);const[narrow,setNarrow]=React.useState(false);const wrapRef=React.useRef(null);React.useEffect(()=>{if(typeof document===\"undefined\")return;setArabic((document.documentElement.lang||\"\").toLowerCase().startsWith(\"ar\"));const el=wrapRef.current;if(!el)return;const ro=new ResizeObserver(e=>{const w=e[0]?.contentRect?.width||0;setNarrow(w>0&&w<760);});ro.observe(el);return()=>ro.disconnect();},[]);const t=s=>arabic&&AR_SWAP[s]?AR_SWAP[s]:s;// one stylesheet, injected once, so the columns cost no JS per frame\nReact.useEffect(()=>{if(typeof document===\"undefined\")return;const id=\"fh-testimonials-keyframes\";if(document.getElementById(id))return;const style=document.createElement(\"style\");style.id=id;style.textContent=`\n/* Half the column plus half a gap: the two copies are separated by one gap that\n   belongs to neither, so a flat -50% lands 8px short and the loop ticks. */\n@keyframes fh-drift { from { transform: translateY(0) } to { transform: translateY(calc(-50% - 8px)) } }\n@keyframes fh-drift-rev { from { transform: translateY(calc(-50% - 8px)) } to { transform: translateY(0) } }\n[data-fh-drift] { will-change: transform }`;document.head.appendChild(style);},[]);const list=Array.isArray(notes)&&notes.length?notes:DEMO;const cols=narrow?1:3;const columns=Array.from({length:cols},(_,c)=>list.filter((_,i)=>i%cols===c));// Panel values arrive as strings through the API; a unitless CSS height is\n// ignored, which would silently unclip the whole column.\nconst H=narrow?420:Number(height)||520;const base=Number(speed)||46;return /*#__PURE__*/_jsxs(\"div\",{ref:wrapRef,style:{width:\"100%\"},children:[eyebrow?/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:MANROPE,fontWeight:700,fontSize:11,letterSpacing:\"0.14em\",textTransform:\"uppercase\",color:GREEN,marginBottom:10},children:t(eyebrow)}):null,title?/*#__PURE__*/_jsx(\"h2\",{style:{fontFamily:PIAZZOLLA,fontWeight:400,fontSize:\"clamp(26px, 3.1vw, 40px)\",lineHeight:\"1.1em\",color:INK,margin:\"0 0 26px\",maxWidth:\"22ch\"},children:t(title)}):null,/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",height:still?\"auto\":H,overflow:still?\"visible\":\"hidden\",display:\"grid\",gridTemplateColumns:`repeat(${cols}, minmax(0, 1fr))`,gap:16,// the ends fade so cards enter and leave rather than cut\nmaskImage:still?undefined:\"linear-gradient(to bottom, transparent 0%, black 9%, black 91%, transparent 100%)\",WebkitMaskImage:still?undefined:\"linear-gradient(to bottom, transparent 0%, black 9%, black 91%, transparent 100%)\"},children:columns.map((col,ci)=>/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"div\",{\"data-fh-drift\":still?undefined:\"true\",style:still?{display:\"grid\",gap:16}:{display:\"grid\",gap:16,animation:`${ci%2===1?\"fh-drift-rev\":\"fh-drift\"} ${base+ci*9}s linear infinite`},children:[(still?col.slice(0,2):col).map((n,i)=>/*#__PURE__*/_jsx(Card,{note:n},i)),still?null:/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{display:\"grid\",gap:16},children:col.map((n,i)=>/*#__PURE__*/_jsx(Card,{note:n},i))})]})},ci))})]});}Testimonials.displayName=\"Testimonials\";Testimonials.defaultProps={eyebrow:\"Testimonials\",title:\"What clients say when the deal is done\",height:520,speed:46};addPropertyControls(Testimonials,{eyebrow:{type:ControlType.String,title:\"Eyebrow\"},title:{type:ControlType.String,title:\"Title\"},height:{type:ControlType.Number,title:\"Height\",min:320,max:800,unit:\"px\"},speed:{type:ControlType.Number,title:\"Loop\",min:20,max:120,unit:\"s\"},notes:{type:ControlType.Array,title:\"Notes\",control:{type:ControlType.Object,controls:{quote:{type:ControlType.String,displayTextArea:true,defaultValue:\"\"},name:{type:ControlType.String,defaultValue:\"\"},role:{type:ControlType.String,defaultValue:\"\"}}},defaultValue:DEMO}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Testimonials\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Testimonials.map"],"mappings":"4QAa0zD,SAAS,EAAK,CAAC,QAAM,CAAC,OAAoB,EAAM,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,4BAA4B,OAAO,qCAAqC,aAAa,GAAG,QAAQ,iBAAiB,QAAQ,OAAO,IAAI,EAAE,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,cAAc,GAAK,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,WAAW,EAAQ,QAAQ,OAAO,CAAC,CAAC,EAAe,EAAK,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,EAAQ,WAAW,IAAI,SAAS,GAAG,WAAW,QAAQ,MAAM,wBAAwB,EAAE,SAAS,EAAK,KAAK,CAAC,EAAe,EAAM,aAAa,CAAC,MAAM,CAAC,WAAW,CAAO,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,SAAS,KAAK,MAAM,CAAG,EAAE,SAAS,EAAK,IAAI,CAAC,EAAe,EAAK,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,SAAS,GAAG,MAAM,yBAAyB,UAAU,CAAC,EAAE,SAAS,EAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAMhhF,SAAS,GAAsB,CAAC,IAAM,EAAK,EAAiB,EAAO,CAAC,EAAM,GAAUA,EAAe,EAAK,EAAuH,OAA7F,IAAS,OAAYC,EAAgBC,EAAAA,KAAqC,EAAS,EAAI,EAAE,CAAC,CAAC,EAAS,EAAM,CAAC,CAAC,EAAK,EAAM,CAAC,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAA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