{"version":3,"file":"AreaChart.CLaazGPA.mjs","names":["React.forwardRef","useRef","useState","key","startTransition","__esmMin","init_ssg_sandbox_shims","te","window","_e","de","p","c","J","init_jsx_runtime","init_npm_react_18_3_1","ce","init_framer_motion_DhsWWWsN","motion","useInView","cx","useSVGTemplate","addPropertyControls","init_framer_DKgW_P28","withCSS","useIsStaticRenderer","ControlType","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_bcUUvHw1p","props","rest","animated","width1","color","restProps","href","className","P_DcoRcrY","JEeZYcamG","style","AreaChart","isStatic","ref","inView","reduce","drawn","nums","values","v","pts","max","lo","min","xy","i","lineD","x","y","areaD","gl","gridLines","t","duration","len","setLen","measure","r","sx","sy","sum","n","old","ro","ready","setReady","id","dash","offset","grid","line","thickness","dots","init_AreaChart"],"sources":["https:/framerusercontent.com/modules/Xv2qbghyFxiGag6Sd31D/Dk33E1GJFJBnlPuL4hb9/bcUUvHw1p.js","https:/framerusercontent.com/modules/U50knUrHHKfCe1okUBXW/Qa8XiYE60GNvmOMigGE7/AreaChart.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 20 L 0 2 C 0 1.685 0.148 1.389 0.4 1.2 C 1.439 0.421 2.702 0 4 0 C 7 0 9 2 11.333 2 C 12.666 2 13.689 1.733 14.4 1.2 C 14.703 0.973 15.108 0.936 15.447 1.106 C 15.786 1.275 16 1.621 16 2 L 16 12 C 16 12.315 15.852 12.611 15.6 12.8 C 14.561 13.579 13.298 14 12 14 C 9 14 7 12 4 12 C 2.524 12 1.1 12.544 0 13.528\" fill=\"transparent\" height=\"20px\" id=\"GJdEdj5hb\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(4 2)\" width=\"16px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"301189609\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-tKDZp\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-tKDZp { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Flag\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-tKDZp\");Icon.displayName=\"Flag\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerVector\":\"{\\\"name\\\":\\\"Flag\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerIntrinsicWidth\":\"24\",\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";/**\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 150\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function AreaChart(props){const{values=\"3.2, 6.8, 9.5, 11.3, 13.1, 14, 14.5, 14.9, 15.4, 15.6\",min=0,gridLines=3,line=\"#4D6B00\",fill=\"rgba(160, 205, 40, 0.28)\",grid=\"rgba(26, 27, 25, 0.08)\",thickness=2,dots=false,duration=1.4}=props;const isStatic=useIsStaticRenderer();const ref=useRef(null);const inView=useInView(ref,{once:true,margin:\"0px 0px -10% 0px\"});const reduce=typeof window!==\"undefined\"&&window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;const drawn=isStatic||reduce||inView;const nums=values.split(\",\").map(v=>parseFloat(v)).filter(v=>!isNaN(v));const pts=nums.length>1?nums:[0,1];const max=Math.max(...pts);const lo=Math.min(min,...pts);const W=400;const H=150;const pad=6;const xy=pts.map((v,i)=>[i/(pts.length-1)*W,H-pad-(v-lo)/Math.max(1e-4,max-lo)*(H-pad*3)]);const lineD=xy.map(([x,y],i)=>`${i?\"L\":\"M\"}${x.toFixed(1)} ${y.toFixed(1)}`).join(\" \");const areaD=`${lineD} L${W} ${H} L0 ${H}Z`;const gl=Array.from({length:Math.max(0,gridLines)},(_,i)=>(i+1)*H/(gridLines+1));const t=isStatic||reduce?\"none\":`stroke-dashoffset ${duration}s cubic-bezier(.2,.7,.1,1), opacity ${duration}s ease`;// the line's dash is measured in screen pixels: with a non-scaling stroke on a stretched box a\n// pathLength-based dash stops part-way on wide charts (2026-12-03, case study + Home at 810)\nconst[len,setLen]=useState(0);const key=lineD;useEffect(()=>{if(isStatic)return;const svg=ref.current;if(!svg)return;const measure=()=>{const r=svg.getBoundingClientRect();const sx=r.width/W,sy=r.height/H;let sum=0;for(let i=1;i<xy.length;i++)sum+=Math.hypot((xy[i][0]-xy[i-1][0])*sx,(xy[i][1]-xy[i-1][1])*sy);const n=Math.ceil(sum)+4;startTransition(()=>setLen(old=>Math.abs(old-n)>2?n:old));};measure();if(typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(measure);ro.observe(svg);return()=>ro.disconnect();// eslint-disable-next-line react-hooks/exhaustive-deps\n},[isStatic,key]);// one frame at full offset after measuring, so the draw always plays from the start\nconst[ready,setReady]=useState(false);useEffect(()=>{if(!len||ready)return;const id=requestAnimationFrame(()=>requestAnimationFrame(()=>startTransition(()=>setReady(true))));return()=>cancelAnimationFrame(id);},[len,ready]);const dash=isStatic||reduce?\"none\":String(len||1e5);const offset=isStatic||reduce?0:drawn&&ready&&len?0:len||1e5;return /*#__PURE__*/_jsxs(\"svg\",{ref:ref,viewBox:`0 0 ${W} ${H}`,preserveAspectRatio:\"none\",\"aria-hidden\":\"true\",style:{...props.style,width:\"100%\",height:\"100%\",display:\"block\",overflow:\"visible\"},children:[gl.map((y,i)=>/*#__PURE__*/_jsx(\"path\",{d:`M0 ${y}H${W}`,stroke:grid,strokeWidth:1,vectorEffect:\"non-scaling-stroke\"},i)),/*#__PURE__*/_jsx(\"path\",{d:areaD,fill:fill,style:{opacity:drawn?1:0,transition:t}}),/*#__PURE__*/_jsx(\"path\",{d:lineD,fill:\"none\",stroke:line,strokeWidth:thickness,strokeLinejoin:\"round\",strokeLinecap:\"round\",vectorEffect:\"non-scaling-stroke\",style:{strokeDasharray:dash,strokeDashoffset:offset,transition:ready?t:\"none\"}}),dots&&xy.map(([x,y],i)=>/*#__PURE__*/_jsx(\"circle\",{cx:x,cy:y,r:3,fill:line,style:{opacity:drawn?1:0,transition:t}},i))]});}addPropertyControls(AreaChart,{values:{type:ControlType.String,title:\"Values\",displayTextArea:true,description:\"Numbers, comma separated\",defaultValue:\"3.2, 6.8, 9.5, 11.3, 13.1, 14, 14.5, 14.9, 15.4, 15.6\"},min:{type:ControlType.Number,title:\"Axis starts at\",defaultValue:0,displayStepper:false},gridLines:{type:ControlType.Number,title:\"Grid lines\",defaultValue:3,min:0,max:8,step:1,displayStepper:true},line:{type:ControlType.Color,title:\"Line\",defaultValue:\"#4D6B00\"},fill:{type:ControlType.Color,title:\"Area\",defaultValue:\"rgba(160, 205, 40, 0.28)\"},grid:{type:ControlType.Color,title:\"Grid\",defaultValue:\"rgba(26, 27, 25, 0.08)\"},thickness:{type:ControlType.Number,title:\"Thickness\",defaultValue:2,min:1,max:6,step:.5,unit:\"px\"},dots:{type:ControlType.Boolean,title:\"Dots\",defaultValue:false},duration:{type:ControlType.Number,title:\"Draw time\",defaultValue:1.4,min:.2,max:5,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AreaChart\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"400\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"150\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AreaChart.map"],"mappings":"A,8WACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGmC,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUjB,EAAO,OAAOU,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,8oBAAopB,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,SAAO,GAAGD,MAAgB,CAAC,GAAGA,EAAM,UAAUG,GAAQH,EAAM,WAAW,EAAE,UAAUI,GAAOJ,EAAM,WAAW,cAAc,GAS17C,EAAKX,EATs9CxB,kBAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,GAAGwC,GAAWR,EAASG,CAAK,EAAQM,EAAKpB,EAAe,YAAYU,CAAG,EAAE,MAAoB,gBAAKD,EAAI,CAAC,GAAGU,EAAU,UAAUpB,EAAG,eAAesB,CAAS,EAAW,WAAa,MAAI,KAAK,eAAe,MAAM,CAAC,YAAYC,EAAU,WAAWC,EAAU,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