{"version":3,"file":"Chart.DQlDfkY4.mjs","names":["useRef","useState","p","useMemo"],"sources":["https:/framerusercontent.com/modules/lnO1D6Z84rzK2HCGFxa9/l4NdxrACnRVDt360BsYu/Chart.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState,useMemo}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Code by @omatusaelhorch\n * Code by UncodeStack and @omatusaelhorch\n *\n * @framerIntrinsicWidth 750\n * @framerIntrinsicHeight 420\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function OscillatingChart(props){const{lines,chartStyle,gridStyle,tooltipStyle,animation,codeBy}=props;const canvasRef=useRef(null);const containerRef=useRef(null);const rafRef=useRef(null);const timeRef=useRef(0);const lastTickRef=useRef(0);const sizeRef=useRef({w:0,h:0});// Hover state\nconst[hoverX,setHoverX]=useState(null);const[isHovering,setIsHovering]=useState(false);// Visibility state (pausa quando fora da viewport / aba inativa)\nconst isVisibleRef=useRef(true);const isTabActiveRef=useRef(true);// Live props ref (avoids restarting effects when props change)\nconst propsRef=useRef({lines,chartStyle,gridStyle,animation});propsRef.current={lines,chartStyle,gridStyle,animation};// History buffers per line (stored as Float32Array for performance)\nconst historiesRef=useRef([]);const POINTS=220// number of points kept per line\n;// Initialize histories whenever lines change (count or seed)\nuseEffect(()=>{const lineCount=lines?.length||0;const histories=[];for(let i=0;i<lineCount;i++){const arr=new Float32Array(POINTS);const target=lines[i]?.value??50;// Build a believable history: small drift towards the target value\nlet v=Math.max(5,target-Math.random()*25);for(let p=0;p<POINTS;p++){// tend to target with noise\nconst noise=(Math.random()-.5)*4;v+=(target-v)*.02+noise*.3;v=Math.max(2,Math.min(98,v));arr[p]=v;}// Ensure last point matches the line's current value exactly\narr[POINTS-1]=target;histories.push(arr);}historiesRef.current=histories;},[lines?.length,JSON.stringify(lines?.map(l=>l.value))]);// Resize handling\nuseEffect(()=>{if(!containerRef.current||!canvasRef.current)return;const ro=new ResizeObserver(entries=>{for(const entry of entries){const{width,height}=entry.contentRect;const dpr=Math.min(window.devicePixelRatio||1,2);const canvas=canvasRef.current;canvas.width=Math.floor(width*dpr);canvas.height=Math.floor(height*dpr);canvas.style.width=`${width}px`;canvas.style.height=`${height}px`;const ctx=canvas.getContext(\"2d\");if(ctx)ctx.setTransform(dpr,0,0,dpr,0,0);sizeRef.current={w:width,h:height};}});ro.observe(containerRef.current);return()=>ro.disconnect();},[]);// IntersectionObserver — pausa quando fora da viewport\nuseEffect(()=>{if(!containerRef.current)return;// No canvas do Framer (editor) deixa sempre visível pra não confundir\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;if(isCanvas){isVisibleRef.current=true;return;}const io=new IntersectionObserver(entries=>{for(const entry of entries){isVisibleRef.current=entry.isIntersecting;}},{root:null,// pequena margem pra começar a animar um pouco antes de entrar\nrootMargin:\"100px\",threshold:0});io.observe(containerRef.current);return()=>io.disconnect();},[]);// Page Visibility API — pausa quando a aba do navegador fica inativa\nuseEffect(()=>{const onVisibilityChange=()=>{isTabActiveRef.current=!document.hidden;};document.addEventListener(\"visibilitychange\",onVisibilityChange);return()=>document.removeEventListener(\"visibilitychange\",onVisibilityChange);},[]);// Main animation loop\nuseEffect(()=>{const isCanvas=RenderTarget.current()===RenderTarget.canvas;const canvas=canvasRef.current;if(!canvas)return;const ctx=canvas.getContext(\"2d\");if(!ctx)return;// ---------- Drawing helpers ----------\nconst draw=()=>{const{lines:lns,chartStyle:cs,gridStyle:gs,animation:an}=propsRef.current;const{w,h}=sizeRef.current;if(w===0||h===0)return;// Layout\nconst paddingRight=cs.tooltipArea??160;const paddingLeft=12;const paddingTop=12;const paddingBottom=24;const plotW=w-paddingLeft-paddingRight;const plotH=h-paddingTop-paddingBottom;if(plotW<=0||plotH<=0)return;ctx.clearRect(0,0,w,h);// ----- Grid lines + Y axis labels -----\nconst yTicks=[0,25,50,75,100];ctx.lineWidth=1;ctx.font=`500 12px ${gs.fontFamily||\"Inter, system-ui, sans-serif\"}`;ctx.textBaseline=\"middle\";for(const t of yTicks){const y=paddingTop+plotH-t/100*plotH;ctx.strokeStyle=gs.gridColor;ctx.globalAlpha=.35;ctx.beginPath();ctx.moveTo(paddingLeft,y);ctx.lineTo(paddingLeft+plotW,y);ctx.stroke();ctx.globalAlpha=1;ctx.fillStyle=gs.labelColor;ctx.textAlign=\"left\";ctx.fillText(`${t}%`,paddingLeft+plotW+8,y);}// ----- Lines -----\nconst histories=historiesRef.current;const hovered=hoverX!==null;const hoverIdxFloat=hovered?(hoverX-paddingLeft)/plotW*(POINTS-1):-1;const hoverIdx=Math.max(0,Math.min(POINTS-1,Math.round(hoverIdxFloat)));for(let i=0;i<lns.length;i++){const line=lns[i];const hist=histories[i];if(!hist)continue;const color=line.color;const lineWidth=cs.lineWidth;// Stroke\nctx.strokeStyle=color;ctx.lineWidth=lineWidth;ctx.lineJoin=\"round\";ctx.lineCap=\"round\";ctx.globalAlpha=1;ctx.beginPath();for(let p=0;p<POINTS;p++){const x=paddingLeft+p/(POINTS-1)*plotW;const y=paddingTop+plotH-hist[p]/100*plotH;if(p===0)ctx.moveTo(x,y);else ctx.lineTo(x,y);}ctx.stroke();// End dot\nconst lastX=paddingLeft+plotW;const lastY=paddingTop+plotH-hist[POINTS-1]/100*plotH;ctx.fillStyle=color;ctx.beginPath();ctx.arc(lastX,lastY,lineWidth*1.8,0,Math.PI*2);ctx.fill();// Hover marker on this line\nif(hovered){const hx=paddingLeft+hoverIdx/(POINTS-1)*plotW;const hy=paddingTop+plotH-hist[hoverIdx]/100*plotH;// dashed connection to right (mimicking print)\nctx.save();ctx.setLineDash([3,4]);ctx.strokeStyle=color;ctx.globalAlpha=.6;ctx.lineWidth=1;ctx.beginPath();ctx.moveTo(hx,hy);ctx.lineTo(paddingLeft+plotW,hy);ctx.stroke();ctx.restore();ctx.globalAlpha=1;ctx.fillStyle=color;ctx.beginPath();ctx.arc(hx,hy,lineWidth*2.2,0,Math.PI*2);ctx.fill();ctx.fillStyle=cs.background||\"#0b1117\";ctx.beginPath();ctx.arc(hx,hy,lineWidth*.9,0,Math.PI*2);ctx.fill();}}// ----- Vertical hover guide -----\nif(hovered){const hx=paddingLeft+hoverIdx/(POINTS-1)*plotW;ctx.save();ctx.strokeStyle=gs.gridColor;ctx.globalAlpha=.55;ctx.setLineDash([4,4]);ctx.lineWidth=1;ctx.beginPath();ctx.moveTo(hx,paddingTop);ctx.lineTo(hx,paddingTop+plotH);ctx.stroke();ctx.restore();}};// ---------- Update step (oscillation) ----------\nconst update=dt=>{const{lines:lns,animation:an}=propsRef.current;const speed=an.speed// points-per-second to shift the curve\n;const volatility=an.volatility// amplitude of oscillation\n;timeRef.current+=dt;lastTickRef.current+=dt;// Shift histories at `speed` points per second\nconst stepInterval=1/speed;while(lastTickRef.current>=stepInterval){lastTickRef.current-=stepInterval;const histories=historiesRef.current;for(let i=0;i<lns.length;i++){const hist=histories[i];if(!hist)continue;const target=lns[i]?.value??50;// shift left\nfor(let p=0;p<POINTS-1;p++){hist[p]=hist[p+1];}// generate new last value: previous + drift back to target + noise\nconst prev=hist[POINTS-1];const noise=(Math.random()-.5)*volatility;let next=prev+(target-prev)*.08+noise;next=Math.max(1,Math.min(99,next));hist[POINTS-1]=next;}}};// ---------- RAF loop ----------\nlet prevTs=performance.now();let didDrawWhilePaused=false;const tick=ts=>{const dt=Math.min(.1,(ts-prevTs)/1e3);prevTs=ts;const visible=isVisibleRef.current&&isTabActiveRef.current;if(visible){// Always run motion if enabled (canvas or preview).\n// On canvas, slow down to avoid editor load.\nif(propsRef.current.animation.enabled){const dtAdjusted=isCanvas?dt*.35:dt;update(dtAdjusted);}draw();didDrawWhilePaused=false;}else{// Fora da viewport / aba inativa:\n// desenha uma vez (estado congelado) e depois pula frames.\n// Isso evita gastar CPU/GPU sem necessidade.\nif(!didDrawWhilePaused){draw();didDrawWhilePaused=true;}// zera o acumulador pra não criar \"burst\" quando voltar\nlastTickRef.current=0;}rafRef.current=requestAnimationFrame(tick);};rafRef.current=requestAnimationFrame(tick);return()=>{if(rafRef.current)cancelAnimationFrame(rafRef.current);};},[hoverX]);// ---------- Mouse handlers ----------\nconst onMove=e=>{const rect=containerRef.current?.getBoundingClientRect();if(!rect)return;const px=e.clientX-rect.left;const paddingRight=chartStyle.tooltipArea??160;const paddingLeft=12;const plotW=rect.width-paddingLeft-paddingRight;if(px<paddingLeft||px>paddingLeft+plotW){setHoverX(null);return;}setHoverX(px);};const onLeave=()=>{setHoverX(null);setIsHovering(false);};const onEnter=()=>setIsHovering(true);// Tooltip data (computed in React-land for crisp text)\nconst tooltipData=useMemo(()=>{if(hoverX===null)return null;const rect=containerRef.current?.getBoundingClientRect();if(!rect)return null;const paddingRight=chartStyle.tooltipArea??160;const paddingLeft=12;const plotW=rect.width-paddingLeft-paddingRight;const idx=Math.max(0,Math.min(POINTS-1,Math.round((hoverX-paddingLeft)/plotW*(POINTS-1))));return(lines||[]).map((l,i)=>{const hist=historiesRef.current[i];const val=hist?hist[idx]:l.value??0;return{name:l.name,color:l.color,value:val};});},[hoverX,lines,chartStyle.tooltipArea]);// ---------- Empty state ----------\nif(!lines||lines.length===0){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",minHeight:200,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\",padding:24,borderRadius:12,background:\"#0b1117\",color:\"#9aa4b2\",fontFamily:\"Inter, system-ui, sans-serif\",fontSize:14,textAlign:\"center\",border:\"1px dashed #2a3340\",gap:8},children:[/*#__PURE__*/_jsx(\"strong\",{style:{color:\"#e6edf3\",fontSize:15},children:\"Oscillating Chart\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Add at least one line in the “Lines” property to display the chart. / Adicione pelo menos uma linha em “Lines” para exibir o gr\\xe1fico.\"})]});}// ---------- Render ----------\nreturn /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,onMouseMove:onMove,onMouseLeave:onLeave,onMouseEnter:onEnter,style:{position:\"relative\",width:\"100%\",height:\"100%\",background:chartStyle.background,borderRadius:chartStyle.borderRadius,overflow:\"hidden\",fontFamily:gridStyle.fontFamily||\"Inter, system-ui, sans-serif\",cursor:\"crosshair\",// Firefox safety: vars for pseudo-element fallbacks\n[\"--chart-bg\"]:chartStyle.background,[\"--tooltip-bg\"]:tooltipStyle.background},children:[/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{display:\"block\",width:\"100%\",height:\"100%\"}}),tooltipData&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:12,right:56,display:\"flex\",flexDirection:\"column\",gap:tooltipStyle.gap,pointerEvents:\"none\",transition:\"opacity 120ms ease\",opacity:isHovering?1:0},children:tooltipData.slice().sort((a,b)=>b.value-a.value).map((t,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,background:tooltipStyle.background,color:tooltipStyle.textColor,padding:`${tooltipStyle.paddingY}px ${tooltipStyle.paddingX}px`,borderRadius:tooltipStyle.borderRadius,fontSize:tooltipStyle.fontSize,fontWeight:600,boxShadow:\"0 4px 14px rgba(0,0,0,0.35)\",backdropFilter:\"blur(8px)\",WebkitBackdropFilter:\"blur(8px)\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:3,height:tooltipStyle.fontSize+6,borderRadius:2,background:t.color,display:\"inline-block\"}}),/*#__PURE__*/_jsx(\"span\",{children:t.name}),/*#__PURE__*/_jsxs(\"span\",{style:{opacity:.95},children:[t.value.toFixed(0),\"%\"]})]},i))})]});}OscillatingChart.displayName=\"Oscillating Chart\";addPropertyControls(OscillatingChart,{// ------------------- LINES -------------------\nlines:{type:ControlType.Array,title:\"Lines\",description:\"Each line shown on the chart with its current % value / Cada linha exibida no gr\\xe1fico com seu valor % atual\",control:{type:ControlType.Object,controls:{name:{type:ControlType.String,title:\"Name\",defaultValue:\"Series\",description:\"Label shown on hover / R\\xf3tulo exibido no hover\"},value:{type:ControlType.Number,title:\"Value\",defaultValue:50,min:0,max:100,step:1,unit:\"%\",description:\"Current target value the line oscillates around / Valor alvo atual em torno do qual a linha oscila\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#3B82F6\",description:\"Stroke color of the line / Cor do tra\\xe7o da linha\"}}},defaultValue:[{name:\"Line A\",value:68,color:\"#60A5FA\"},{name:\"Line B\",value:51,color:\"#FACC15\"},{name:\"Line C\",value:41,color:\"#3B82F6\"},{name:\"Line D\",value:17,color:\"#F97316\"}],maxCount:8},// ------------------- CHART STYLE -------------------\nchartStyle:{type:ControlType.Object,title:\"Chart Style\",description:\"General chart appearance / Apar\\xeancia geral do gr\\xe1fico\",controls:{background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0B1117\",description:\"Chart background color / Cor de fundo do gr\\xe1fico\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:48,step:1,unit:\"px\",description:\"Container corner radius / Raio dos cantos do cont\\xeainer\"},lineWidth:{type:ControlType.Number,title:\"Line Width\",defaultValue:2,min:1,max:6,step:.5,unit:\"px\",description:\"Thickness of each line / Espessura de cada linha\"},tooltipArea:{type:ControlType.Number,title:\"Right Area\",defaultValue:160,min:60,max:320,step:4,unit:\"px\",description:\"Reserved space on the right for tooltips and Y labels / Espa\\xe7o reservado \\xe0 direita para tooltips e r\\xf3tulos Y\"}}},// ------------------- GRID STYLE -------------------\ngridStyle:{type:ControlType.Object,title:\"Grid & Labels\",description:\"Horizontal grid and Y-axis labels / Grade horizontal e r\\xf3tulos do eixo Y\",controls:{gridColor:{type:ControlType.Color,title:\"Grid Color\",defaultValue:\"rgba(255,255,255,0.12)\",description:\"Color of horizontal grid lines / Cor das linhas horizontais da grade\"},labelColor:{type:ControlType.Color,title:\"Label Color\",defaultValue:\"#7C8794\",description:\"Color of Y-axis percentage labels / Cor dos r\\xf3tulos de porcentagem do eixo Y\"},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Inter, system-ui, sans-serif\",description:\"Font family for labels and tooltips / Fam\\xedlia de fonte para r\\xf3tulos e tooltips\"}}},// ------------------- TOOLTIP STYLE -------------------\ntooltipStyle:{type:ControlType.Object,title:\"Tooltip\",description:\"Hover cards displayed on the right / Cards exibidos no hover \\xe0 direita\",controls:{background:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(20,28,38,0.92)\",description:\"Tooltip background color / Cor de fundo do tooltip\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\",description:\"Tooltip text color / Cor do texto do tooltip\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:13,min:10,max:20,step:1,unit:\"px\",description:\"Tooltip font size / Tamanho da fonte do tooltip\"},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:10,min:0,max:24,step:1,unit:\"px\",description:\"Horizontal padding inside tooltip / Padding horizontal interno do tooltip\"},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:6,min:0,max:20,step:1,unit:\"px\",description:\"Vertical padding inside tooltip / Padding vertical interno do tooltip\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:24,step:1,unit:\"px\",description:\"Tooltip corner radius / Raio dos cantos do tooltip\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:6,min:0,max:20,step:1,unit:\"px\",description:\"Vertical gap between tooltip cards / Espa\\xe7amento vertical entre os cards do tooltip\"}}},// ------------------- ANIMATION -------------------\nanimation:{type:ControlType.Object,title:\"Animation\",description:\"Continuous oscillation behavior / Comportamento da oscila\\xe7\\xe3o cont\\xednua\",controls:{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Toggle continuous oscillation / Ativa ou desativa a oscila\\xe7\\xe3o cont\\xednua\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:12,min:1,max:60,step:1,description:\"Points added per second (higher = faster) / Pontos adicionados por segundo (maior = mais r\\xe1pido)\"},volatility:{type:ControlType.Number,title:\"Volatility\",defaultValue:3,min:0,max:15,step:.5,description:\"Amplitude of random noise on each tick / Amplitude do ru\\xeddo aleat\\xf3rio a cada tick\"}}},// ------------------- CREDITS -------------------\ncodeBy:{type:ControlType.String,title:\" \",defaultValue:\"Autor:\",placeholder:\"Code by UncodeStack and @omatusaelhorch.\",readOnly:true,displaySegmentedControl:false,description:\"Code by UncodeStack and @omatusaelhorch.\"}})// Documentação\n// Code by @omatusaelhorch\n// Code by UncodeStack and @omatusaelhorch\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OscillatingChart\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"420\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"750\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Chart.map"],"mappings":"2NAQG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,aAAW,YAAU,eAAa,YAAU,UAAQ,EAAY,EAAUA,EAAO,KAAK,CAAO,EAAaA,EAAO,KAAK,CAAO,EAAOA,EAAO,KAAK,CAAO,EAAQA,EAAO,EAAE,CAAO,EAAYA,EAAO,EAAE,CAAO,EAAQA,EAAO,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAC9R,CAAC,EAAO,GAAWC,EAAS,KAAK,CAAM,CAAC,EAAW,GAAeA,EAAS,GAAM,CAChF,EAAaD,EAAO,GAAK,CAAO,EAAeA,EAAO,GAAK,CAC3D,EAASA,EAAO,CAAC,QAAM,aAAW,YAAU,YAAU,CAAC,CAAC,EAAS,QAAQ,CAAC,QAAM,aAAW,YAAU,YAAU,CACrH,IAAM,EAAaA,EAAO,EAAE,CAAC,CAE7B,MAAc,CAAC,IAAM,EAAU,GAAO,QAAQ,EAAQ,EAAU,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,EAAU,IAAI,CAAC,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