{"version":3,"file":"featuresPillTrack.B7cCPEX8.mjs","names":["React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/AUxt2EwSGP2PcY0ge0T8/RBJwY5u4KhtUoH9PjzqL/featuresPillTrack.js"],"sourcesContent":["// VitalityLabFeatureMarquee.tsx\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function VitalityLabFeatureMarquee(props){const{row1CSV,row2CSV,row3CSV,row1LinksCSV,row2LinksCSV,row3LinksCSV,speedRow1,speedRow2,speedRow3,gap,pillRadius,pauseOnHover,bg,pillBg,pillText,pillBorder,pillHoverBg,pillHoverText,pillShadow,fontFamily,fontSize,fontWeight,ariaLabel}=props;const row1=splitCSV(row1CSV);const row2=splitCSV(row2CSV);const row3=splitCSV(row3CSV);const links1=splitCSV(row1LinksCSV);const links2=splitCSV(row2LinksCSV);const links3=splitCSV(row3LinksCSV);return /*#__PURE__*/_jsxs(\"div\",{\"aria-label\":ariaLabel,style:{width:\"100%\",height:\"100%\",display:\"grid\",gridTemplateRows:\"1fr 1fr 1fr\",gap,background:bg,borderRadius:0,padding:gap,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(MarqueeRow,{items:row1,links:links1,dir:\"left\",speed:speedRow1,gap:gap,pillStyle:{radius:pillRadius,bg:pillBg,text:pillText,border:pillBorder,hoverBg:pillHoverBg,hoverText:pillHoverText,shadow:pillShadow,fontFamily,fontSize,fontWeight},pauseOnHover:pauseOnHover}),/*#__PURE__*/_jsx(MarqueeRow,{items:row2,links:links2,dir:\"right\",speed:speedRow2,gap:gap,pillStyle:{radius:pillRadius,bg:pillBg,text:pillText,border:pillBorder,hoverBg:pillHoverBg,hoverText:pillHoverText,shadow:pillShadow,fontFamily,fontSize,fontWeight},pauseOnHover:pauseOnHover}),/*#__PURE__*/_jsx(MarqueeRow,{items:row3,links:links3,dir:\"left\",speed:speedRow3,gap:gap,pillStyle:{radius:pillRadius,bg:pillBg,text:pillText,border:pillBorder,hoverBg:pillHoverBg,hoverText:pillHoverText,shadow:pillShadow,fontFamily,fontSize,fontWeight},pauseOnHover:pauseOnHover})]});}function splitCSV(csv){return(csv||\"\").split(\",\").map(s=>s.trim()).filter(Boolean);}function MarqueeRow({items,links,dir,speed,gap,pillStyle,pauseOnHover}){const trackRef=React.useRef(null);const prefersReducedMotion=typeof window!==\"undefined\"&&window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;// Duplicate to create seamless loop\nconst content=[...items,...items];// Duration scales with content width and selected speed\nconst[duration,setDuration]=React.useState(30);React.useEffect(()=>{const el=trackRef.current;if(!el)return;const calc=()=>{const width=el.scrollWidth/2;const d=Math.max(8,width/Math.max(40,speed));setDuration(d);};calc();const ro=new ResizeObserver(calc);ro.observe(el);return()=>ro.disconnect();},[items.join(\"|\"),speed]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",overflow:\"hidden\",maskImage:\"linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%)\",WebkitMaskImage:\"linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%)\"},children:[/*#__PURE__*/_jsx(\"div\",{ref:trackRef,className:`vlab-marquee ${pauseOnHover?\"pause-on-hover\":\"\"}`,style:{display:\"flex\",gap,alignItems:\"center\",whiteSpace:\"nowrap\",animation:prefersReducedMotion?\"none\":dir===\"left\"?`vlab-left ${duration}s linear infinite`:`vlab-right ${duration}s linear infinite`},children:content.map((label,i)=>{const href=links?.[i%(links.length||1)]||\"\";const Pill=/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"10px 18px\",borderRadius:pillStyle.radius,background:pillStyle.bg,color:pillStyle.text,border:`1px solid ${pillStyle.border}`,boxShadow:pillStyle.shadow?`0 4px 16px ${pillStyle.shadow}`:\"none\",fontFamily:pillStyle.fontFamily,fontSize:pillStyle.fontSize,fontWeight:pillStyle.fontWeight,lineHeight:1.1,userSelect:\"none\",transition:\"transform .2s ease, background .2s ease, color .2s ease\",cursor:href?\"pointer\":\"default\"},onMouseEnter:e=>{const el=e.currentTarget;el.style.transform=\"translateY(-2px)\";el.style.background=pillStyle.hoverBg;el.style.color=pillStyle.hoverText;},onMouseLeave:e=>{const el=e.currentTarget;el.style.transform=\"translateY(0)\";el.style.background=pillStyle.bg;el.style.color=pillStyle.text;},children:label},i+label);return href?/*#__PURE__*/_jsx(\"a\",{href:href,style:{textDecoration:\"none\"},target:\"_self\",rel:\"noopener\",children:Pill},i+label+\"a\"):Pill;})}),/*#__PURE__*/_jsx(\"style\",{children:`\n        .vlab-marquee.pause-on-hover:hover { animation-play-state: paused; }\n        @keyframes vlab-left {\n          0% { transform: translateX(0); }\n          100% { transform: translateX(-50%); }\n        }\n        @keyframes vlab-right {\n          0% { transform: translateX(-50%); }\n          100% { transform: translateX(0); }\n        }\n      `})]});}/* -------- Defaults tuned for Vitality Lab -------- */VitalityLabFeatureMarquee.defaultProps={width:1200,height:360,// Row 1: what the bio-tracker covers\nrow1CSV:\"100+ Marker Panels, Metabolic Risk, Cardiovascular Risk, Inflammation, Hormone Balance, Thyroid & Stress, Liver & Kidney Function\",// Row 2: what members receive and how it is delivered\nrow2CSV:\"Clinician-Written Reports, Personalized Roadmap, Nutrition Guidance, Movement Plan, Sleep Strategy, Targeted Supplements\",// Row 3: cadence, tracking, and proactive benefits\nrow3CSV:\"Quarterly Check-ins, Semi-Annual Testing, Secure Dashboard, Trend Tracking, Early Risk Alerts, HSA/FSA Eligible\",row1LinksCSV:\"\",row2LinksCSV:\"\",row3LinksCSV:\"\",// Motion\nspeedRow1:120,speedRow2:100,speedRow3:120,gap:16,pillRadius:24,pauseOnHover:true,// Colors (edit in the panel)\nbg:\"#F7F9F7\",pillBg:\"rgba(99,161,156,0.06)\",pillText:\"#63A19C\",pillBorder:\"rgba(99,161,156,0.20)\",pillHoverBg:\"rgba(99,161,156,0.16)\",pillHoverText:\"#2C6C67\",pillShadow:\"rgba(25, 80, 75, 0.06)\",// Type\nfontFamily:\"Outfit, Inter, system-ui, Arial, sans-serif\",fontSize:22,fontWeight:500,ariaLabel:\"Vitality Lab interactive feature list\"};addPropertyControls(VitalityLabFeatureMarquee,{// Content\nrow1CSV:{type:ControlType.String,title:\"Row 1 items (CSV)\"},row2CSV:{type:ControlType.String,title:\"Row 2 items (CSV)\"},row3CSV:{type:ControlType.String,title:\"Row 3 items (CSV)\"},row1LinksCSV:{type:ControlType.String,title:\"Row 1 links (CSV)\"},row2LinksCSV:{type:ControlType.String,title:\"Row 2 links (CSV)\"},row3LinksCSV:{type:ControlType.String,title:\"Row 3 links (CSV)\"},// Motion\nspeedRow1:{type:ControlType.Number,title:\"Row 1 speed\",min:40,max:300,unit:\"px/s\"},speedRow2:{type:ControlType.Number,title:\"Row 2 speed\",min:40,max:300,unit:\"px/s\"},speedRow3:{type:ControlType.Number,title:\"Row 3 speed\",min:40,max:300,unit:\"px/s\"},gap:{type:ControlType.Number,title:\"Gap\",min:6,max:48,step:1},pillRadius:{type:ControlType.Number,title:\"Pill radius\",min:0,max:48},pauseOnHover:{type:ControlType.Boolean,title:\"Pause on hover\",defaultValue:true},// Colors\nbg:{type:ControlType.Color,title:\"Background\"},pillBg:{type:ControlType.Color,title:\"Pill BG\"},pillText:{type:ControlType.Color,title:\"Pill text\"},pillBorder:{type:ControlType.Color,title:\"Pill border\"},pillHoverBg:{type:ControlType.Color,title:\"Pill hover BG\"},pillHoverText:{type:ControlType.Color,title:\"Pill hover text\"},pillShadow:{type:ControlType.Color,title:\"Pill shadow\"},// Type\nfontFamily:{type:ControlType.String,title:\"Font family\"},fontSize:{type:ControlType.Number,title:\"Font size\",min:12,max:32},fontWeight:{type:ControlType.Number,title:\"Font weight\",min:300,max:800},ariaLabel:{type:ControlType.String,title:\"ARIA label\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VitalityLabFeatureMarquee\",\"sl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