{"version":3,"file":"FocusTestimonials.DS7WN19U.mjs","names":["React.useMemo","React.useState","React.useRef","x","React.Fragment"],"sources":["https:/framerusercontent.com/modules/3Oj8Hpxg56TWsvA50iIK/7lnZow1SskTdOgK63Kp4/FocusTestimonials.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useVisitor,pick}from\"https://framer.com/m/VisitorMemory-6b0PNN.js@SUUVvc9rsZjbdcEMwiur\";import{motion,AnimatePresence,useMotionValue,useSpring}from\"framer-motion\";// the quotes as they ran on the homepage; used until real quotes are set in the properties panel\nconst DEFAULT_TESTIMONIALS=[{name:\"Eric Scruggs\",firm:\"Hark Financial Planning\",quote:\"The feedback from clients has been overwhelmingly positive.\"},{name:\"Devin Watts\",firm:\"Fallbrook Fi\",quote:\"Josh not only has a creative eye for brand design and brand positioning, but he was very thoughtful in the redesign process he took Fallbrook Fi through. Fallbrook Fi’s brand and website are now strong and cohesive.\"},{name:\"Ashley Quamme\",firm:\"Beyond The Plan\",quote:\"Josh was very patient explaining how everything works and ultimately provided beyond what I expected. The most difficult part of the whole process was having to choose between so many great ideas and designs. The results felt like he truly understood me, my business, and vision. His talents and expertise are a gift to anyone who works with him!\"},{name:\"Michael H. Baker\",firm:\"Vertex Capital Advisors\",quote:\"Josh was a pleasure to work with from start to finish. We felt that our branding and message had grown stale, so we decided to use a pro that could marry the artistic side with the financial side of our business.\"},{name:\"Maddy Roche\",firm:\"Childfree Trust\",quote:\"Building Childfree Trust’s brand and visual identity from the ground up required a teammate who could deliver. Josh was our MVP. Now, I feel like our brand speaks for itself, which is what any good brand should do.\"}];const initials=name=>name.split(/\\s+/).filter(w=>/^[A-Za-z]/.test(w)&&!/\\.$/.test(w)).map(w=>w[0]).slice(0,2).join(\"\");function Avatar({t,size}){return t.photo?.src?/*#__PURE__*/_jsx(\"img\",{src:t.photo.src,alt:\"\",width:size,height:size,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}):/*#__PURE__*/_jsx(\"span\",{className:\"ft-ini mono\",\"aria-hidden\":\"true\",children:initials(t.name)});}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1160\n */export default function FocusTestimonials(props){const{color,initialCount=3,style}=props;const base=props.testimonials?.some(t=>t.quote&&t.quote!==\"What they said.\")?props.testimonials:DEFAULT_TESTIMONIALS;// \"Testimonial first\" in the Personalization collection: Words = the person's name to lead with\nconst firstWords=pick(\"Testimonial first\",useVisitor())?.words||\"\";const items=React.useMemo(()=>{const want=firstWords.trim().toLowerCase();const i=want?base.findIndex(t=>t.name.toLowerCase()===want):-1;return i>0?[base[i],...base.filter((_,k)=>k!==i)]:base;},[base,firstWords]);const isStatic=useIsStaticRenderer();const[active,setActive]=React.useState(null);const[showAll,setShowAll]=React.useState(false);const ref=React.useRef(null);const mx=useMotionValue(0);const my=useMotionValue(0);const spring={damping:30,stiffness:320,mass:.45};const x=useSpring(mx,spring);const y=useSpring(my,spring);// the name pill sits 18px right of the pointer; keep it inside the block so a tap near the right edge on a\n// phone can't push the page wider (it used to, Josh 2026-10-04)\nconst tipRef=React.useRef(null);// x/y hold the pill's own top-left (pointer + 18px right, 56px up); a translateX/Y offset in style would\n// override the x/y motion values, which is why the pill used to stay pinned at the top-left\nconst rawX=React.useRef(0);const clampX=x=>{const w=ref.current?ref.current.clientWidth:0;const tipW=tipRef.current?tipRef.current.offsetWidth:180;return Math.max(0,Math.min(x+18,w-tipW));};const place=e=>{if(!ref.current)return;const r=ref.current.getBoundingClientRect();rawX.current=e.clientX-r.left;const nx=clampX(rawX.current),ny=e.clientY-r.top-56;mx.set(nx);my.set(ny);// no pill on screen yet: start it where it belongs instead of springing in from the corner\nif(!tipRef.current){x.jump(nx);y.jump(ny);}};const shown=showAll?items.length:Math.min(initialCount,items.length);const current=active!==null&&active<shown?items[active]:null;// once the pill has its real width (names differ), re-check it still fits\nReact.useEffect(()=>{if(!current)return;const id=requestAnimationFrame(()=>mx.set(clampX(rawX.current)));return()=>cancelAnimationFrame(id);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[current]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"ft\"+(current?\" has\":\"\"),style:{position:\"relative\",width:\"100%\",color,overflowX:\"clip\",...style},onPointerMove:isStatic?undefined:place,onPointerLeave:isStatic?undefined:e=>{if(e.pointerType===\"mouse\")setActive(null);},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .ft{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(28px,3vw,40px);font-family:\"Aeonik\",\"Helvetica Neue\",Arial,sans-serif}\n                .ft .mono{font-family:\"Geist Mono\",ui-monospace,monospace}\n                .ft-p{margin:0;font-size:clamp(22px,2.9vw,38px);line-height:1.42;letter-spacing:-.022em;text-wrap:pretty}\n                .ft-q{cursor:default;opacity:.78;transition:opacity .5s cubic-bezier(.16,1,.3,1),filter .5s cubic-bezier(.16,1,.3,1)}\n                .ft.has .ft-q{opacity:.22;filter:blur(2.4px)}\n                .ft.has .ft-q.on{opacity:1;filter:none}\n                .ft-av{display:inline-block;vertical-align:middle;position:relative;top:-.08em;width:1.1em;height:1.1em;margin-right:.3em;border-radius:50%;overflow:hidden;\n                    background:color-mix(in srgb,currentColor 10%,transparent);filter:grayscale(.25);transition:transform .5s cubic-bezier(.16,1,.3,1),filter .5s cubic-bezier(.16,1,.3,1)}\n                .ft.has .ft-q:not(.on) .ft-av{transform:scale(.94);filter:grayscale(.7)}\n                .ft.has .ft-q.on .ft-av{transform:scale(1.1);filter:none}\n                .ft-ini{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:.36em;letter-spacing:0;opacity:.7}\n                .ft-more{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;font-size:12.5px;opacity:.62;transition:opacity .3s}\n                .ft-more:hover{opacity:1}\n                .ft-more:focus-visible{outline:1px solid color-mix(in srgb,currentColor 50%,transparent);outline-offset:4px}\n                .ft-more i{display:block;width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .45s cubic-bezier(.22,1,.36,1)}\n                .ft-more[aria-expanded=\"true\"] i{transform:translateY(2px) rotate(225deg)}\n                .ft-tip{pointer-events:none;position:absolute;left:0;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:6px 16px 6px 6px;border-radius:999px;\n                    background:rgba(28,27,25,.92);color:#FFFDF5;box-shadow:0 12px 32px rgba(0,0,0,.18);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);white-space:nowrap}\n                .ft-tip .ft-av{width:28px;height:28px;margin:0;top:0;filter:none;font-size:28px}\n                .ft-tip b{display:block;font-weight:400;font-size:14px;line-height:1.25}\n                .ft-tip small{display:block;font-size:11px;line-height:1.3;opacity:.62}\n                @media (prefers-reduced-motion:reduce){.ft-q,.ft-av{transition:none}}\n            `}),/*#__PURE__*/_jsx(\"p\",{className:\"ft-p\",children:items.slice(0,shown).map((t,i)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[/*#__PURE__*/_jsxs(\"span\",{className:\"ft-q\"+(active===i?\" on\":\"\"),onPointerEnter:isStatic?undefined:e=>{if(e.pointerType===\"mouse\")setActive(i);},onClick:isStatic?undefined:e=>{place(e);setActive(active===i?null:i);},children:[/*#__PURE__*/_jsx(\"span\",{className:\"ft-av\",children:/*#__PURE__*/_jsx(Avatar,{t:t,size:44})}),t.quote.replace(/^[“\"]|[”\"]$/g,\"\"),/*#__PURE__*/_jsxs(\"span\",{className:\"ft-sr\",style:{position:\"absolute\",width:1,height:1,overflow:\"hidden\",clip:\"rect(0 0 0 0)\"},children:[\" \",t.name,\", \",t.firm,\".\"]})]}),\" \"]},i))}),items.length>initialCount&&/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"ft-more mono\",\"aria-expanded\":showAll,onClick:()=>{setShowAll(!showAll);setActive(null);},children:[showAll?\"Show less\":`Read all testimonials (${items.length})`,/*#__PURE__*/_jsx(\"i\",{\"aria-hidden\":\"true\"})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:current&&!isStatic&&/*#__PURE__*/_jsxs(motion.div,{ref:tipRef,className:\"ft-tip\",\"aria-hidden\":\"true\",initial:{opacity:0,scale:.85},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.85,transition:{duration:.15,ease:\"easeOut\"}},transition:{duration:.2,ease:[.16,1,.3,1]},style:{x,y},children:[/*#__PURE__*/_jsx(\"span\",{className:\"ft-av\",children:/*#__PURE__*/_jsx(Avatar,{t:current,size:28})}),/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsx(\"b\",{children:current.name}),/*#__PURE__*/_jsx(\"small\",{className:\"mono\",children:current.firm})]})]},\"tip\")})]});}addPropertyControls(FocusTestimonials,{testimonials:{type:ControlType.Array,title:\"Testimonials\",control:{type:ControlType.Object,controls:{quote:{type:ControlType.String,title:\"Quote\",displayTextArea:true,defaultValue:\"What they said.\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Name\"},firm:{type:ControlType.String,title:\"Firm\",defaultValue:\"Firm\"},photo:{type:ControlType.ResponsiveImage,title:\"Photo\"}}},defaultValue:[{quote:\"What they said.\",name:\"Name\",firm:\"Firm\"}]},initialCount:{type:ControlType.Number,title:\"Show first\",defaultValue:3,min:1,max:12,step:1,displayStepper:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#2B2725\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FocusTestimonials\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1160\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FocusTestimonials.map"],"mappings":"iWACw8C,SAAS,EAAO,CAAC,IAAE,QAAM,CA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