{"version":3,"file":"PriceChart.giNitbRy.mjs","names":["React.useId","React.useRef","React.useState","React.useMemo","React.useCallback","_Fragment","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","ie","window","te","pe","navigator","ce","init_jsx_runtime","ne","le","c","p","_e","de","addPropertyControls","init_framer_BEr93sCn","ControlType","useMarketData","init_MarketStore","buildHistoryUrl","normalizeCurrencyCode","isStockAssetClassValue","buildStocksHistoryUrl","buildZaruHistoryUrl","normalizeStockSymbol","normalizeAssetSymbol","formatCurrency","locale","value","formatHoverDate","date","iso","timeframe","formatAxisDate","formatAxisNumber","abs","maximumFractionDigits","formatTooltipDateTime","buildLinePath","points","t","smoothing","d","i","p0","p1","p2","p3","c1x","c1y","c2x","c2y","PriceChart","props","gradientId","previousGradientId","containerRef","chartAreaRef","linePathRef","tabButtonRefs","previousVisualRef","isNarrow","setIsNarrow","chartWidthPx","setChartWidthPx","hoverIndex","setHoverIndex","pathLength","setPathLength","isDrawn","setIsDrawn","hasDrawnOnce","setHasDrawnOnce","fadingOutVisual","setFadingOutVisual","isFadingOutVisible","setIsFadingOutVisible","indicatorRect","setIndicatorRect","isStockAsset","assetClass","cryptoCurrency","currency","isZaruAsset","symbol","cryptoUrl","stocksUrl","cryptoResult","stockResult","zaruResult","normalizedSymbol","normalizedCurrency","enabledTimeframes","TIMEFRAMES","tf","show1D","show7D","show1M","show3M","show1Y","showYTD","showALL","enabledTimeframeSet","firstEnabledTimeframe","setTimeframe","defaultTimeframe","nextTimeframe","element","updateSizeState","nextIsNarrow","width","prev","observer","entry","entries","onResize","updateWidth","safeWidth","nextWidth","data","containerStyle","fontFamily","showBorder","cardRadius","cardPadding","style","rawSeries","series","point","clampedGraphVerticalPadding","graphVerticalPadding","clampedGraphHorizontalPadding","graphHorizontalPadding","plotLeft","plotRight","plotWidth","plotTop","plotBottom","plotHeight","prices","hasUsableSeries","min","max","range","latest","first","hoverPoint","displayedPrice","delta","deltaPct","isPositive","effectiveLineColor","autoColorByPerformance","upLineColor","downLineColor","lineColor","effectiveFillColor","upFillColor","downFillColor","fillColor","changeColor","effectiveCurrentPriceLabelColor","currentPriceLabelColor","timeframePhrase","plotPoints","linePath","lineSmoothing","areaPath","el","length","prefersReducedMotion","currentVisual","previousVisual","raf","timeout","hoverX","hoverY","latestPointY","responsiveGraphHeight","resolvedWidth","baseHeight","scaledHeight","graphHeight","hoverLeftPercent","hoverTopPercent","hoverXPx","hoverYPx","currentPriceLabelTopPx","latestYPx","tooltipPosition","containerWidth","containerHeight","rawLeft","left","rawTop","top","yTicks","step","y","yAxisReserveLabel","labels","tick","showCurrentPriceLine","next","longest","xTickItems","targetCount","maxIndex","indexSet","ratio","index","a","b","xTickGuides","item","handleTimeframeClick","showTimeframeSelector","activeButton","fontSize","updateHoverFromClientX","rect","leftInsetPx","rightInsetPx","interactiveWidth","fraction","clientX","handlePointerMove","clearHover","summaryLabelStyle","axisColor","isLoading","status","hasDataError","shouldShowChart","topLabelText","shouldShowTimeframeSelector","showHeadlinePrice","mainPriceColor","mainPriceSize","mainPriceWeight","active","activeTimeframeTextColor","graphBackgroundColor","graphRadius","fillOpacity","showHorizontalGrid","showVerticalGrid","showAxisBaselines","l","showTickMarks","currentPriceLineColor","currentPriceLineWeight","lineStrokeWidth","showHoverTooltip","isFirst","isLast","transform","init_PriceChart"],"sources":["https:/framerusercontent.com/modules/EhINQ3ahV3yUUf1NJ942/ffjsL6eEAWyvyTlMpGdD/PriceChart.js"],"sourcesContent":["// Timeframe price chart. Interim data source per explicit decision: wired to CMC\n// historical quotes (data/<ccy>-history.json, produced by scripts/fetch.mjs)\n// rather than a stub, because authenticated Luno candles aren't available before\n// TDD sign-off. The series shape ({ t, price }[] per timeframe) is intentionally\n// the only thing this component depends on — swapping the pipeline's source to\n// Luno candles later needs no change here as long as that shape is preserved.\n// User request: update this existing PriceChart to a restrained financial chart UI:\n// outlined card shell, top-left asset/price/change summary, compact top-right\n// timeframe selector with pale track + white active pill, subtle horizontal grid\n// lines, muted axis labels, minimal vertical chrome, responsive stacking on narrow\n// widths, and keep existing line/fill color configurability and controls intact.\n// User request: remove horizontal SVG grid lines and all shadows, tighten selector\n// spacing/padding, and add an \"Active timeframe label\" string control that only\n// overrides the active button text while keeping underlying timeframe behavior.\n// User request: hovering (or touching, on mobile) over the chart should scrub the\n// header's price/date to match that point, with a crosshair + dot on the line for\n// a clear visual link. Reuses existing lineColor/axisColor — no new controls, to\n// keep the property list restrained.\n// User request: auto-color the line/fill green or red based on period performance,\n// toggleable, with the manual Line/Fill color controls hidden while it's on (and\n// the four new Up/Down controls hidden while it's off) so the panel never shows\n// unused options either way.\n// User request: draw the line in on mount and on every timeframe/asset/currency\n// switch, via the standard stroke-dasharray/dashoffset technique, respecting\n// prefers-reduced-motion.\n// User request: add a user-adjustable line smoothing control so 0 keeps the\n// existing straight polyline and higher values progressively round peaks/valleys,\n// while preserving scrub accuracy, transitions, fill tracking, and responsiveness.\n// User request: add an optional floating hover tooltip (toggleable) that shows\n// hovered price + full timestamp, styled to match the restrained chart look and\n// intelligently clamped/flipped to remain inside the graph surface.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useMarketData,buildHistoryUrl,buildStocksHistoryUrl,buildZaruHistoryUrl,normalizeAssetSymbol,normalizeStockSymbol,normalizeCurrencyCode,isStockAssetClassValue}from\"https://framerusercontent.com/modules/ewRo4DKr8qbqxuiBBK2d/CUsNeXZqms3xZG0TJeya/MarketStore.js\";function formatCurrency(value,currency){const locale=typeof document!==\"undefined\"&&document.documentElement?.lang?document.documentElement.lang:typeof navigator!==\"undefined\"?navigator.languages?.[0]||navigator.language||\"en-US\":\"en-US\";return new Intl.NumberFormat(locale,{style:\"currency\",currency,maximumFractionDigits:Math.abs(value)>=1e3?0:2}).format(value);}const TIMEFRAMES=[\"1D\",\"7D\",\"1M\",\"3M\",\"1Y\",\"YTD\",\"ALL\"];function formatHoverDate(iso,timeframe){const date=new Date(iso);if(Number.isNaN(date.getTime()))return iso;if(timeframe===\"1D\"){return new Intl.DateTimeFormat(undefined,{hour:\"2-digit\",minute:\"2-digit\"}).format(date);}if(timeframe===\"1Y\"||timeframe===\"YTD\"||timeframe===\"3M\"||timeframe===\"ALL\"){return new Intl.DateTimeFormat(undefined,{day:\"2-digit\",month:\"short\",year:\"2-digit\"}).format(date);}return new Intl.DateTimeFormat(undefined,{day:\"2-digit\",month:\"short\"}).format(date);}function formatAxisDate(iso,timeframe){const date=new Date(iso);if(Number.isNaN(date.getTime()))return iso;if(timeframe===\"1D\"){return new Intl.DateTimeFormat(undefined,{hour:\"2-digit\",minute:\"2-digit\"}).format(date);}if(timeframe===\"1Y\"||timeframe===\"YTD\"||timeframe===\"ALL\"){return new Intl.DateTimeFormat(undefined,{month:\"short\",year:\"2-digit\"}).format(date);}return new Intl.DateTimeFormat(undefined,{day:\"2-digit\",month:\"short\"}).format(date);}function formatAxisNumber(value){if(!Number.isFinite(value))return\"—\";const abs=Math.abs(value);let maximumFractionDigits=2;if(abs>=1e3)maximumFractionDigits=0;else if(abs>=100)maximumFractionDigits=1;return new Intl.NumberFormat(undefined,{minimumFractionDigits:0,maximumFractionDigits}).format(value);}function formatTooltipDateTime(iso){const date=new Date(iso);if(Number.isNaN(date.getTime()))return iso;return new Intl.DateTimeFormat(undefined,{weekday:\"short\",day:\"2-digit\",month:\"short\",year:\"numeric\",hour:\"2-digit\",minute:\"2-digit\"}).format(date);}function buildLinePath(points,smoothing){if(points.length===0)return\"\";if(points.length===1)return`M ${points[0].x.toFixed(2)},${points[0].y.toFixed(2)}`;const t=Math.max(0,Math.min(1,smoothing));if(t<=0){return`M ${points.map(p=>`${p.x.toFixed(2)},${p.y.toFixed(2)}`).join(\" L \")}`;}let d=`M ${points[0].x.toFixed(2)},${points[0].y.toFixed(2)}`;for(let i=0;i<points.length-1;i++){const p0=points[Math.max(0,i-1)];const p1=points[i];const p2=points[i+1];const p3=points[Math.min(points.length-1,i+2)];const c1x=p1.x+(p2.x-p0.x)/6*t;const c1y=p1.y+(p2.y-p0.y)/6*t;const c2x=p2.x-(p3.x-p1.x)/6*t;const c2y=p2.y-(p3.y-p1.y)/6*t;d+=` C ${c1x.toFixed(2)},${c1y.toFixed(2)} ${c2x.toFixed(2)},${c2y.toFixed(2)} ${p2.x.toFixed(2)},${p2.y.toFixed(2)}`;}return d;}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function PriceChart(props){const{currency,symbol,assetClass,defaultTimeframe,showHeadlinePrice,showTimeframeSelector,show1D,show7D,show1M,show3M,show1Y,showYTD,showALL,lineColor,lineStrokeWidth,fillColor,autoColorByPerformance,upLineColor,upFillColor,downLineColor,downFillColor,axisColor,activeTimeframeTextColor,showBorder,cardRadius,cardPadding,graphBackgroundColor,graphRadius,graphHeight,graphVerticalPadding,graphHorizontalPadding,showHorizontalGrid,showVerticalGrid,showAxisBaselines,showTickMarks,fillOpacity,lineSmoothing,showHoverTooltip,showCurrentPriceLine,currentPriceLineWeight,currentPriceLineColor,currentPriceLabelColor,mainPriceColor,mainPriceSize,mainPriceWeight,fontFamily,fontSize,style}=props;const gradientId=React.useId();const previousGradientId=React.useId();const containerRef=React.useRef(null);const chartAreaRef=React.useRef(null);const linePathRef=React.useRef(null);const tabButtonRefs=React.useRef({});// Snapshot of whatever was actually on screen a moment ago, kept purely so\n// the next data change can crossfade away from it -- see the layout effect\n// below for how this gets captured/consumed.\nconst previousVisualRef=React.useRef(null);const[isNarrow,setIsNarrow]=React.useState(false);const[chartWidthPx,setChartWidthPx]=React.useState(0);const[hoverIndex,setHoverIndex]=React.useState(null);const[pathLength,setPathLength]=React.useState(0);const[isDrawn,setIsDrawn]=React.useState(false);const[hasDrawnOnce,setHasDrawnOnce]=React.useState(false);const[fadingOutVisual,setFadingOutVisual]=React.useState(null);const[isFadingOutVisible,setIsFadingOutVisible]=React.useState(false);const[indicatorRect,setIndicatorRect]=React.useState(null);// Both hooks are always called (rules of hooks) -- only the relevant one's\n// result is actually used below, same pattern as CMCMarketData.tsx's\n// crypto/stock split.\nconst isStockAsset=isStockAssetClassValue(assetClass);const cryptoCurrency=normalizeCurrencyCode(currency);const isZaruAsset=normalizeAssetSymbol(symbol).toUpperCase()===\"ZARU\";const cryptoUrl=buildHistoryUrl(cryptoCurrency);const stocksUrl=buildStocksHistoryUrl(cryptoCurrency);// data/stocks-history.json is ~6MB (vs. crypto's own history file at a\n// couple hundred KB) -- gate each fetch off so a crypto-only instance never\n// downloads the stock file and vice versa, rather than relying on both\n// being cheap the way the snapshot-only dual-hook pattern elsewhere does.\nconst cryptoResult=useMarketData(cryptoUrl,cryptoCurrency,!isStockAsset&&!isZaruAsset);const stockResult=useMarketData(stocksUrl,cryptoCurrency,isStockAsset);const zaruResult=useMarketData(buildZaruHistoryUrl(),\"ZAR\",isZaruAsset);const{status,data}=isStockAsset?stockResult:isZaruAsset?zaruResult:cryptoResult;const normalizedSymbol=isStockAsset?normalizeStockSymbol(symbol):normalizeAssetSymbol(symbol);// Deliberately NOT one shared variable with cryptoCurrency: normalizeCurrencyCode\n// silently coerces any unrecognized code (including \"USD\") to \"ZAR\" -- collapsing\n// these two would risk a future edit feeding \"USD\" through it and silently\n// fetching/displaying ZAR crypto data instead of erroring. Stocks are always\n// USD (no other source exists), regardless of the `currency` prop.\nconst normalizedCurrency=cryptoCurrency;const enabledTimeframes=React.useMemo(()=>{return TIMEFRAMES.filter(tf=>{if(tf===\"1D\")return show1D;if(tf===\"7D\")return show7D;if(tf===\"1M\")return show1M;if(tf===\"3M\")return show3M;if(tf===\"1Y\")return show1Y;if(tf===\"YTD\")return showYTD;return showALL;});},[show1D,show7D,show1M,show3M,show1Y,showYTD,showALL]);const enabledTimeframeSet=React.useMemo(()=>new Set(enabledTimeframes),[enabledTimeframes]);const firstEnabledTimeframe=enabledTimeframes[0];const[timeframe,setTimeframe]=React.useState(defaultTimeframe);React.useEffect(()=>{if(enabledTimeframes.length===0)return;const nextTimeframe=enabledTimeframeSet.has(defaultTimeframe)?defaultTimeframe:firstEnabledTimeframe;if(!nextTimeframe)return;React.startTransition(()=>setTimeframe(nextTimeframe));// eslint-disable-next-line react-hooks/exhaustive-deps\n},[defaultTimeframe]);React.useEffect(()=>{if(enabledTimeframes.length===0)return;if(enabledTimeframeSet.has(timeframe))return;if(!firstEnabledTimeframe)return;React.startTransition(()=>setTimeframe(firstEnabledTimeframe));},[enabledTimeframes.length,enabledTimeframeSet,firstEnabledTimeframe,timeframe]);// A hovered point only makes sense for the series it was computed against —\n// drop it whenever the underlying series identity changes so a stale dot/\n// crosshair position can't linger after switching timeframe/asset/currency.\nReact.useEffect(()=>{setHoverIndex(null);},[timeframe,normalizedSymbol,normalizedCurrency]);React.useEffect(()=>{if(typeof window===\"undefined\")return;const element=containerRef.current;if(!element)return;const updateSizeState=width=>{const nextIsNarrow=width<520;setIsNarrow(prev=>{if(prev===nextIsNarrow)return prev;React.startTransition(()=>setIsNarrow(nextIsNarrow));return prev;});};updateSizeState(element.clientWidth);if(typeof ResizeObserver!==\"undefined\"){const observer=new ResizeObserver(entries=>{const entry=entries[0];if(!entry)return;updateSizeState(entry.contentRect.width);});observer.observe(element);return()=>observer.disconnect();}const onResize=()=>updateSizeState(element.clientWidth);window.addEventListener(\"resize\",onResize);return()=>window.removeEventListener(\"resize\",onResize);},[]);React.useEffect(()=>{if(typeof window===\"undefined\")return;const element=chartAreaRef.current;if(!element)return;const updateWidth=nextWidth=>{const safeWidth=Math.max(0,Math.round(nextWidth));if(safeWidth===chartWidthPx)return;React.startTransition(()=>setChartWidthPx(safeWidth));};updateWidth(element.clientWidth);if(typeof ResizeObserver!==\"undefined\"){const observer=new ResizeObserver(entries=>{const entry=entries[0];if(!entry)return;updateWidth(entry.contentRect.width);});observer.observe(element);return()=>observer.disconnect();}const onResize=()=>updateWidth(element.clientWidth);window.addEventListener(\"resize\",onResize);return()=>window.removeEventListener(\"resize\",onResize);},[chartWidthPx,data,timeframe,normalizedSymbol,normalizedCurrency]);const containerStyle={fontFamily:fontFamily||undefined,fontSize,display:\"flex\",flexDirection:\"column\",gap:14,width:\"100%\",height:\"100%\",position:\"relative\",boxSizing:\"border-box\",border:showBorder?\"1px solid rgba(199, 209, 224, 0.75)\":\"none\",borderRadius:Math.max(0,cardRadius),background:\"rgba(255, 255, 255, 0.9)\",padding:Math.max(0,cardPadding),overflow:\"hidden\",...style};const rawSeries=isZaruAsset?zaruResult.data?.[timeframe]:data?.[normalizedSymbol]?.[timeframe];const series=React.useMemo(()=>{if(!Array.isArray(rawSeries))return[];return rawSeries.filter(point=>point&&Number.isFinite(point.price)).map(point=>({t:String(point.t??\"\"),price:Number(point.price)}));},[rawSeries]);const width=400;const height=180;const clampedGraphVerticalPadding=Math.max(0,Math.min(graphVerticalPadding,height/2-1));const clampedGraphHorizontalPadding=Math.max(0,Math.min(graphHorizontalPadding,width/2-1));const plotLeft=clampedGraphHorizontalPadding;const plotRight=width-clampedGraphHorizontalPadding;const plotWidth=Math.max(1,plotRight-plotLeft);const plotTop=clampedGraphVerticalPadding;const plotBottom=height-clampedGraphVerticalPadding;const plotHeight=Math.max(1,plotBottom-plotTop);const prices=series.map(p=>p.price);const hasUsableSeries=series.length>=2;const min=hasUsableSeries?Math.min(...prices):0;const max=hasUsableSeries?Math.max(...prices):0;const range=max-min||1;const latest=series[series.length-1]?.price??0;const first=series[0]?.price??latest;const hoverPoint=hoverIndex!==null?series[hoverIndex]??null:null;const displayedPrice=hoverPoint?hoverPoint.price:latest;const delta=displayedPrice-first;const deltaPct=first!==0?delta/first*100:0;const isPositive=delta>=0;// Auto-color reflects the period's actual performance (delta vs. the first\n// point), not whatever's currently scrubbed — flipping color mid-drag as you\n// hover back and forth across the zero line would be more distracting than\n// useful, so this is deliberately based on `isPositive` above, not a\n// hover-specific comparison.\nconst effectiveLineColor=autoColorByPerformance?isPositive?upLineColor:downLineColor:lineColor;const effectiveFillColor=autoColorByPerformance?isPositive?upFillColor:downFillColor:fillColor;const changeColor=autoColorByPerformance?effectiveLineColor:isPositive?lineColor:\"#B54747\";const effectiveCurrentPriceLabelColor=currentPriceLabelColor||effectiveLineColor;const timeframePhrase=React.useMemo(()=>{switch(timeframe){case\"1D\":return\"over 1 day\";case\"7D\":return\"over 7 days\";case\"1M\":return\"over 1 month\";case\"3M\":return\"over 3 months\";case\"1Y\":return\"over 1 year\";case\"YTD\":return\"year to date\";case\"ALL\":return\"all time\";default:return\"\";}},[timeframe]);const plotPoints=React.useMemo(()=>series.map((p,i)=>{const x=plotLeft+i/Math.max(1,series.length-1)*plotWidth;const y=plotBottom-(p.price-min)/range*plotHeight;return{x,y};}),[series,plotLeft,plotWidth,min,range,plotBottom,plotHeight]);const linePath=React.useMemo(()=>buildLinePath(plotPoints,lineSmoothing),[plotPoints,lineSmoothing]);const areaPath=React.useMemo(()=>`${linePath} L ${plotRight},${plotBottom} L ${plotLeft},${plotBottom} Z`,[linePath,plotRight,plotLeft,plotBottom]);// First time real data appears: wipe the line in via stroke-dashoffset (measure\n// the path's real length, start fully hidden, flip to 0 a frame later so the\n// CSS transition actually animates instead of the two states collapsing into\n// one paint). Every *subsequent* change (timeframe/asset/currency switch, or\n// any other reason the series changes) crossfades instead -- the previous\n// shape fades out while the new one fades in via plain opacity, both at once,\n// which reads as the chart morphing between ranges rather than redrawing from\n// scratch every time. True point-by-point morphing isn't practical here:\n// different timeframes have different point counts (1D ~24 hourly points vs.\n// 1Y ~52 weekly), so there's no 1:1 mapping to animate between.\nReact.useLayoutEffect(()=>{if(typeof window===\"undefined\")return;const el=linePathRef.current;if(!el)return;const length=el.getTotalLength();setPathLength(length);const prefersReducedMotion=typeof window.matchMedia===\"function\"&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const currentVisual={linePath,areaPath,lineColor:effectiveLineColor,fillColor:effectiveFillColor};const previousVisual=previousVisualRef.current;previousVisualRef.current=currentVisual;if(!previousVisual){if(prefersReducedMotion){setIsDrawn(true);setHasDrawnOnce(true);return;}setIsDrawn(false);const raf=requestAnimationFrame(()=>{setIsDrawn(true);setHasDrawnOnce(true);});return()=>cancelAnimationFrame(raf);}if(prefersReducedMotion){setIsDrawn(true);return;}setIsDrawn(false);setFadingOutVisual(previousVisual);setIsFadingOutVisible(true);const raf=requestAnimationFrame(()=>{setIsDrawn(true);setIsFadingOutVisible(false);});const timeout=setTimeout(()=>setFadingOutVisual(null),260);return()=>{cancelAnimationFrame(raf);clearTimeout(timeout);};},[linePath]);const hoverX=hoverIndex!==null?plotLeft+hoverIndex/Math.max(1,series.length-1)*plotWidth:null;const hoverY=hoverPoint?plotBottom-(hoverPoint.price-min)/range*plotHeight:null;const latestPointY=series.length>0?plotBottom-(latest-min)/range*plotHeight:null;const responsiveGraphHeight=React.useMemo(()=>{const resolvedWidth=chartWidthPx||0;const baseHeight=resolvedWidth>=900?250:resolvedWidth>=520?225:200;const scaledHeight=Math.round(Math.max(120,graphHeight)/250*baseHeight);return Math.max(120,scaledHeight);},[chartWidthPx,graphHeight]);const hoverLeftPercent=hoverX!==null?hoverX/Math.max(1,width)*100:null;const hoverTopPercent=hoverY!==null?hoverY/Math.max(1,height)*100:null;const hoverXPx=hoverLeftPercent!==null?hoverLeftPercent/100*Math.max(1,chartWidthPx):null;const hoverYPx=hoverTopPercent!==null?hoverTopPercent/100*Math.max(1,responsiveGraphHeight):null;const currentPriceLabelTopPx=React.useMemo(()=>{if(latestPointY===null||!Number.isFinite(latestPointY))return null;const latestYPx=latestPointY/Math.max(1,height)*responsiveGraphHeight;const edgeInset=10;return Math.max(edgeInset,Math.min(responsiveGraphHeight-edgeInset,latestYPx));},[latestPointY,responsiveGraphHeight,height]);const tooltipPosition=React.useMemo(()=>{if(hoverXPx===null||hoverYPx===null)return null;const paneWidth=176;const paneHeight=56;const margin=8;const offsetX=12;const offsetY=10;const containerWidth=Math.max(1,chartWidthPx);const containerHeight=Math.max(1,responsiveGraphHeight);const preferRight=hoverXPx<=containerWidth*.58;const rawLeft=preferRight?hoverXPx+offsetX:hoverXPx-paneWidth-offsetX;const left=Math.max(margin,Math.min(containerWidth-paneWidth-margin,rawLeft));const rawTop=hoverYPx-paneHeight-offsetY;const top=rawTop<margin?hoverYPx+offsetY:rawTop;const clampedTop=Math.max(margin,Math.min(containerHeight-paneHeight-margin,top));return{left,top};},[hoverXPx,hoverYPx,chartWidthPx,responsiveGraphHeight]);const yTicks=React.useMemo(()=>{return[0,.5,1].map(step=>{const value=max-range*step;const y=plotBottom-(value-min)/range*plotHeight;return{value,y,topPercent:y/Math.max(1,height)*100};});},[max,min,range,plotBottom,plotHeight,height]);const yAxisReserveLabel=React.useMemo(()=>{const labels=yTicks.map(tick=>formatAxisNumber(tick.value));if(showCurrentPriceLine)labels.push(formatAxisNumber(latest));return labels.reduce((longest,next)=>next.length>longest.length?next:longest,\"\");},[yTicks,showCurrentPriceLine,latest]);const xTickItems=React.useMemo(()=>{if(series.length<2)return[];const resolvedWidth=chartWidthPx||0;const targetCount=resolvedWidth>=680?5:resolvedWidth>=480?4:resolvedWidth>=320?3:2;const maxIndex=series.length-1;const indexSet=new Set;for(let i=0;i<targetCount;i++){const ratio=targetCount<=1?0:i/Math.max(1,targetCount-1);const index=Math.round(ratio*maxIndex);indexSet.add(index);}indexSet.add(0);indexSet.add(maxIndex);return Array.from(indexSet).sort((a,b)=>a-b).map(index=>({index,leftPercent:(plotLeft+index/Math.max(1,maxIndex)*plotWidth)/Math.max(1,width)*100,label:formatAxisDate(series[index].t,timeframe)}));},[series,timeframe,chartWidthPx,plotLeft,plotWidth,width]);const xTickGuides=React.useMemo(()=>xTickItems.map(item=>({...item,x:plotLeft+item.index/Math.max(1,series.length-1)*plotWidth})),[xTickItems,series.length,plotLeft,plotWidth]);const handleTimeframeClick=React.useCallback(tf=>{React.startTransition(()=>setTimeframe(tf));},[]);// Measures the active tab's actual position/width (labels aren't fixed-width\n// — \"YTD\" vs \"1D\" — so this can't be computed from index alone) and slides\n// the indicator there via the CSS transition on its own style, rather than\n// snapping instantly. Re-measures on layout changes that can move/resize the\n// track (narrow-layout stacking, font size), not just on timeframe switch.\nReact.useLayoutEffect(()=>{const canShowSelector=showTimeframeSelector&&enabledTimeframes.length>0;if(!canShowSelector)return;const activeButton=tabButtonRefs.current[timeframe];if(!activeButton)return;setIndicatorRect({left:activeButton.offsetLeft,width:activeButton.offsetWidth});},[timeframe,showTimeframeSelector,enabledTimeframes.length,isNarrow,fontSize,enabledTimeframes]);const updateHoverFromClientX=React.useCallback(clientX=>{const el=chartAreaRef.current;if(!el||series.length===0)return;const rect=el.getBoundingClientRect();if(rect.width<=0)return;const leftInsetPx=plotLeft/Math.max(1,width)*rect.width;const rightInsetPx=clampedGraphHorizontalPadding/Math.max(1,width)*rect.width;const interactiveWidth=Math.max(1,rect.width-leftInsetPx-rightInsetPx);const fraction=Math.min(1,Math.max(0,(clientX-rect.left-leftInsetPx)/interactiveWidth));const index=Math.round(fraction*(series.length-1));setHoverIndex(index);},[series,plotLeft,clampedGraphHorizontalPadding,width]);const handlePointerMove=React.useCallback(e=>{updateHoverFromClientX(e.clientX);},[updateHoverFromClientX]);const clearHover=React.useCallback(()=>setHoverIndex(null),[]);const summaryLabelStyle={color:axisColor,opacity:.7,fontSize:Math.max(fontSize-1,10),lineHeight:1.1,margin:0};const isLoading=status===\"idle\"||status===\"loading\";const hasDataError=status===\"error\";const shouldShowChart=status===\"success\"&&hasUsableSeries;const topLabelText=hoverPoint?formatHoverDate(hoverPoint.t,timeframe):`${normalizedSymbol}/${normalizedCurrency}`;const shouldShowTimeframeSelector=showTimeframeSelector&&enabledTimeframes.length>0;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:containerStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:isNarrow?\"column\":\"row\",alignItems:isNarrow?\"flex-start\":\"center\",justifyContent:\"space-between\",gap:10,minWidth:0},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:5},children:[/*#__PURE__*/_jsx(\"p\",{style:summaryLabelStyle,children:topLabelText}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",gap:4,minWidth:0},children:[showHeadlinePrice&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:mainPriceColor,fontSize:Math.max(0,mainPriceSize),lineHeight:1,letterSpacing:\"-0.015em\",fontWeight:Math.max(100,Math.min(900,mainPriceWeight))},children:formatCurrency(displayedPrice,normalizedCurrency)}),/*#__PURE__*/_jsxs(\"p\",{title:`${isPositive?\"+\":\"\"}${formatCurrency(delta,normalizedCurrency)} (${isPositive?\"+\":\"\"}${deltaPct.toFixed(2)}%) ${timeframePhrase}`,style:{margin:0,display:\"inline-flex\",alignItems:\"center\",gap:4,flexWrap:\"wrap\",color:changeColor,fontSize:Math.max(0,mainPriceSize)*.6,fontWeight:600,lineHeight:1},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{fontSize:\"0.7em\",lineHeight:1},children:isPositive?\"▲\":\"▼\"}),Math.abs(deltaPct).toFixed(2),\"\\xa0%\",/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:2},children:timeframePhrase})]})]})]}),shouldShowTimeframeSelector&&/*#__PURE__*/_jsxs(\"div\",{role:\"tablist\",\"aria-label\":\"Select chart timeframe\",style:{position:\"relative\",display:\"inline-flex\",gap:2,padding:2,borderRadius:999,border:\"1px solid #DEE3EA\",background:\"#F6F8FB\",alignSelf:\"flex-start\",width:\"auto\",maxWidth:\"100%\",overflowX:\"auto\"},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",top:2,bottom:2,left:indicatorRect?.left??0,width:indicatorRect?.width??0,borderRadius:999,border:\"1px solid #D8DEE8\",background:\"#FFFFFF\",opacity:indicatorRect?1:0,transition:\"left 220ms ease, width 220ms ease, opacity 150ms ease\",pointerEvents:\"none\"}}),enabledTimeframes.map(tf=>{const active=tf===timeframe;return /*#__PURE__*/_jsx(\"button\",{ref:el=>{tabButtonRefs.current[tf]=el;},role:\"tab\",\"aria-selected\":active,onClick:()=>handleTimeframeClick(tf),style:{position:\"relative\",zIndex:1,fontFamily:\"inherit\",fontSize,lineHeight:1,borderRadius:999,border:\"none\",background:\"transparent\",color:active?activeTimeframeTextColor:axisColor,opacity:active?1:.9,cursor:\"pointer\",padding:\"6px 8px\",whiteSpace:\"nowrap\",transition:\"color 150ms ease\"},children:tf},tf);})]})]}),isLoading?/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minHeight:150,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:axisColor,opacity:.85},children:\"Loading chart…\"}):shouldShowChart?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:8,minWidth:0},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsxs(\"div\",{ref:chartAreaRef,onPointerMove:handlePointerMove,onPointerDown:handlePointerMove,onPointerUp:clearHover,onPointerLeave:clearHover,onPointerCancel:clearHover,style:{position:\"relative\",minWidth:0,height:responsiveGraphHeight,cursor:\"crosshair\",touchAction:\"none\",background:graphBackgroundColor,borderRadius:Math.max(0,graphRadius),overflow:\"hidden\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"svg\",{viewBox:`0 0 ${width} ${height}`,width:\"100%\",height:\"100%\",preserveAspectRatio:\"none\",\"aria-label\":`${normalizedSymbol} price chart`,children:[/*#__PURE__*/_jsxs(\"defs\",{children:[/*#__PURE__*/_jsxs(\"linearGradient\",{id:gradientId,x1:\"0\",y1:\"0\",x2:\"0\",y2:height,gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0%\",stopColor:effectiveFillColor,stopOpacity:Math.max(0,Math.min(1,fillOpacity))}),/*#__PURE__*/_jsx(\"stop\",{offset:\"55%\",stopColor:effectiveFillColor,stopOpacity:Math.max(0,Math.min(1,fillOpacity*.42))}),/*#__PURE__*/_jsx(\"stop\",{offset:\"100%\",stopColor:effectiveFillColor,stopOpacity:0})]}),fadingOutVisual&&/*#__PURE__*/_jsxs(\"linearGradient\",{id:previousGradientId,x1:\"0\",y1:\"0\",x2:\"0\",y2:height,gradientUnits:\"userSpaceOnUse\",children:[/*#__PURE__*/_jsx(\"stop\",{offset:\"0%\",stopColor:fadingOutVisual.fillColor,stopOpacity:Math.max(0,Math.min(1,fillOpacity))}),/*#__PURE__*/_jsx(\"stop\",{offset:\"55%\",stopColor:fadingOutVisual.fillColor,stopOpacity:Math.max(0,Math.min(1,fillOpacity*.42))}),/*#__PURE__*/_jsx(\"stop\",{offset:\"100%\",stopColor:fadingOutVisual.fillColor,stopOpacity:0})]})]}),showHorizontalGrid&&yTicks.map((tick,index)=>{return /*#__PURE__*/_jsx(\"line\",{x1:plotLeft,y1:tick.y,x2:plotRight,y2:tick.y,stroke:axisColor,strokeWidth:.8,opacity:.14,vectorEffect:\"non-scaling-stroke\"},`h-grid-${index}`);}),showVerticalGrid&&xTickGuides.map(tick=>/*#__PURE__*/_jsx(\"line\",{x1:tick.x,y1:plotTop,x2:tick.x,y2:plotBottom,stroke:axisColor,strokeWidth:.8,opacity:.1,vectorEffect:\"non-scaling-stroke\"},`v-grid-${tick.index}`)),showAxisBaselines&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"line\",{x1:plotLeft,y1:plotBottom,x2:plotRight,y2:plotBottom,stroke:axisColor,strokeWidth:.9,opacity:.26,vectorEffect:\"non-scaling-stroke\"}),/*#__PURE__*/_jsx(\"line\",{x1:plotRight,y1:plotTop,x2:plotRight,y2:plotBottom,stroke:axisColor,strokeWidth:.9,opacity:.2,vectorEffect:\"non-scaling-stroke\"})]}),showTickMarks&&xTickGuides.map(tick=>/*#__PURE__*/_jsx(\"line\",{x1:tick.x,y1:plotBottom,x2:tick.x,y2:Math.min(height,plotBottom+3),stroke:axisColor,strokeWidth:.9,opacity:.4,vectorEffect:\"non-scaling-stroke\"},`x-tick-${tick.index}`)),showTickMarks&&yTicks.map((tick,index)=>{return /*#__PURE__*/_jsx(\"line\",{x1:plotRight,y1:tick.y,x2:plotRight-4,y2:tick.y,stroke:axisColor,strokeWidth:.9,opacity:.34,vectorEffect:\"non-scaling-stroke\"},`y-tick-${index}`);}),showCurrentPriceLine&&latestPointY!==null&&Number.isFinite(latestPointY)&&/*#__PURE__*/_jsx(\"line\",{x1:plotLeft,y1:latestPointY,x2:plotRight,y2:latestPointY,stroke:currentPriceLineColor,strokeWidth:Math.max(.5,currentPriceLineWeight),strokeDasharray:\"4,3\",vectorEffect:\"non-scaling-stroke\"}),fadingOutVisual&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:fadingOutVisual.areaPath,fill:`url(#${previousGradientId})`,stroke:\"none\",style:{opacity:isFadingOutVisible?1:0,transition:\"opacity 160ms ease\"}}),/*#__PURE__*/_jsx(\"path\",{d:fadingOutVisual.linePath,fill:\"none\",stroke:fadingOutVisual.lineColor,strokeWidth:Math.max(.75,lineStrokeWidth),style:{opacity:isFadingOutVisible?1:0,transition:\"opacity 200ms ease\"}})]}),/*#__PURE__*/_jsx(\"path\",{d:areaPath,fill:`url(#${gradientId})`,stroke:\"none\",style:{opacity:isDrawn?1:0,transition:hasDrawnOnce?\"opacity 240ms ease-out, fill 200ms ease\":\"opacity 700ms ease-out, fill 200ms ease\"}}),/*#__PURE__*/_jsx(\"path\",{ref:linePathRef,d:linePath,fill:\"none\",stroke:effectiveLineColor,strokeWidth:Math.max(.75,lineStrokeWidth),strokeDasharray:!hasDrawnOnce&&pathLength?pathLength:undefined,strokeDashoffset:!hasDrawnOnce&&pathLength?isDrawn?0:pathLength:undefined,style:{opacity:hasDrawnOnce?isDrawn?1:0:1,transition:hasDrawnOnce?\"opacity 240ms ease-out, stroke 200ms ease\":\"stroke-dashoffset 700ms ease-out, stroke 200ms ease\"}}),hoverX!==null&&hoverY!==null&&/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"line\",{x1:hoverX,y1:plotTop,x2:hoverX,y2:plotBottom,stroke:axisColor,strokeWidth:.9,strokeDasharray:\"2,3\",opacity:.55,vectorEffect:\"non-scaling-stroke\"})})]}),hoverLeftPercent!==null&&hoverTopPercent!==null&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:`${hoverLeftPercent}%`,top:`${hoverTopPercent}%`,width:8,height:8,borderRadius:\"50%\",background:effectiveLineColor,border:\"1.5px solid #FFFFFF\",transform:\"translate(-50%, -50%)\",pointerEvents:\"none\",boxSizing:\"border-box\"}}),showHoverTooltip&&hoverPoint&&tooltipPosition&&hoverIndex!==null&&/*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:tooltipPosition.left,top:tooltipPosition.top,width:176,borderRadius:10,border:\"1px solid rgba(201, 211, 225, 0.92)\",background:\"rgba(255,255,255,0.96)\",padding:\"8px 10px\",boxSizing:\"border-box\",pointerEvents:\"none\",zIndex:3},children:[/*#__PURE__*/_jsx(\"div\",{style:{margin:0,color:\"#0F1728\",fontSize:Math.max(fontSize+1,12),lineHeight:1.1,fontWeight:600,letterSpacing:\"-0.01em\"},children:formatCurrency(hoverPoint.price,normalizedCurrency)}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:5,color:axisColor,opacity:.86,fontSize:Math.max(fontSize-1,10),lineHeight:1.2,whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\"},children:formatTooltipDateTime(hoverPoint.t)})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",minHeight:14,color:axisColor,opacity:isDrawn?.86:0,transition:\"opacity 200ms ease-out\",fontSize:Math.max(fontSize-1,10),lineHeight:1.1,pointerEvents:\"none\",overflow:\"hidden\"},children:[xTickItems.map((tick,index)=>{const isFirst=index===0;const isLast=index===xTickItems.length-1;const transform=isFirst?\"translateX(0%)\":isLast?\"translateX(-100%)\":\"translateX(-50%)\";return /*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:`${tick.leftPercent}%`,top:0,transform,whiteSpace:\"nowrap\"},children:tick.label},`x-label-${tick.index}`);}),xTickItems.length===0&&/*#__PURE__*/_jsx(\"span\",{style:{visibility:\"hidden\"},children:\"—\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:\"0 0 auto\",flexShrink:0,width:\"max-content\",minWidth:\"max-content\",height:responsiveGraphHeight,position:\"relative\",color:axisColor,opacity:isDrawn?.86:0,transition:\"opacity 200ms ease-out\",fontSize:Math.max(fontSize-1,10),textAlign:\"right\"},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{visibility:\"hidden\",whiteSpace:\"nowrap\",display:\"block\"},children:yAxisReserveLabel||\"—\"}),yTicks.map((tick,index)=>/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",right:0,top:`${tick.topPercent}%`,transform:\"translateY(-50%)\",whiteSpace:\"nowrap\"},children:formatAxisNumber(tick.value)},`label-${index}`)),showCurrentPriceLine&&currentPriceLabelTopPx!==null&&/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",top:currentPriceLabelTopPx,right:0,transform:\"translateY(-50%)\",color:effectiveCurrentPriceLabelColor,fontSize:Math.max(fontSize-1,10),lineHeight:1.1,fontWeight:600,textAlign:\"right\",pointerEvents:\"none\",whiteSpace:\"nowrap\"},children:formatAxisNumber(latest)})]})]}):/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minHeight:150,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:axisColor,opacity:.9,textAlign:\"center\",padding:\"0 8px\"},children:hasDataError?`Unable to load chart data for ${normalizedSymbol}/${normalizedCurrency} (${timeframe}).`:`No chart data available for ${normalizedSymbol}/${normalizedCurrency} (${timeframe}).`})]});}addPropertyControls(PriceChart,{currency:{type:ControlType.String,title:\"Currency\",defaultValue:\"ZAR\",placeholder:\"ZAR\",description:\"Accepts ISO code (e.g. ZAR) or legacy label (e.g. ZAR - South Africa).\"},symbol:{type:ControlType.String,title:\"Asset\",defaultValue:\"BTC\",placeholder:\"BTC\"},assetClass:{type:ControlType.String,title:\"Asset Class\",defaultValue:\"\",placeholder:\"e.g. Cryptocurrency / Tokenised Stock\"},defaultTimeframe:{type:ControlType.Enum,title:\"Default timeframe\",options:TIMEFRAMES,defaultValue:\"7D\"},showHeadlinePrice:{type:ControlType.Boolean,title:\"Show headline price\",defaultValue:true},showTimeframeSelector:{type:ControlType.Boolean,title:\"Show timeframe selector\",defaultValue:true},show1D:{type:ControlType.Boolean,title:\"Show 1D\",defaultValue:true},show7D:{type:ControlType.Boolean,title:\"Show 1W (7D)\",defaultValue:true},show1M:{type:ControlType.Boolean,title:\"Show 1M\",defaultValue:true},show3M:{type:ControlType.Boolean,title:\"Show 3M\",defaultValue:true},show1Y:{type:ControlType.Boolean,title:\"Show 1Y\",defaultValue:true},showYTD:{type:ControlType.Boolean,title:\"Show YTD\",defaultValue:true},showALL:{type:ControlType.Boolean,title:\"Show ALL\",defaultValue:true},lineColor:{type:ControlType.Color,title:\"Line color\",defaultValue:\"#0055FF\",hidden:props=>props.autoColorByPerformance},lineStrokeWidth:{type:ControlType.Number,title:\"Line weight\",min:.75,max:8,step:.25,defaultValue:1.25},fillColor:{type:ControlType.Color,title:\"Fill color\",defaultValue:\"rgba(0,85,255,0.12)\",hidden:props=>props.autoColorByPerformance},autoColorByPerformance:{type:ControlType.Boolean,title:\"Auto color by performance\",defaultValue:true,description:\"Line/fill switch between the Up/Down colors below based on the selected period's change, instead of a fixed color.\"},upLineColor:{type:ControlType.Color,title:\"Up line color\",defaultValue:\"#2F9E64\",hidden:props=>!props.autoColorByPerformance},upFillColor:{type:ControlType.Color,title:\"Up fill color\",defaultValue:\"rgba(47,158,100,0.12)\",hidden:props=>!props.autoColorByPerformance},downLineColor:{type:ControlType.Color,title:\"Down line color\",defaultValue:\"#B54747\",hidden:props=>!props.autoColorByPerformance},downFillColor:{type:ControlType.Color,title:\"Down fill color\",defaultValue:\"rgba(181,71,71,0.12)\",hidden:props=>!props.autoColorByPerformance},axisColor:{type:ControlType.Color,title:\"Axis/label color\",defaultValue:\"#888888\"},activeTimeframeTextColor:{type:ControlType.Color,title:\"Active timeframe text color\",defaultValue:\"#131A26\"},showBorder:{type:ControlType.Boolean,title:\"Show border\",defaultValue:true},cardRadius:{type:ControlType.Number,title:\"Card radius\",defaultValue:16,min:0,max:64,step:1},cardPadding:{type:ControlType.Number,title:\"Card padding\",defaultValue:14,min:0,max:48,step:1},graphBackgroundColor:{type:ControlType.Color,title:\"Graph background\",defaultValue:\"#F8FAFD\"},graphRadius:{type:ControlType.Number,title:\"Graph radius\",defaultValue:12,min:0,max:64,step:1},graphHeight:{type:ControlType.Number,title:\"Graph height\",defaultValue:250,min:120,max:420,step:2},graphVerticalPadding:{type:ControlType.Number,title:\"Graph vertical padding\",defaultValue:10,min:0,max:60,step:1},graphHorizontalPadding:{type:ControlType.Number,title:\"Graph horizontal padding\",defaultValue:10,min:0,max:80,step:1},showHorizontalGrid:{type:ControlType.Boolean,title:\"Horizontal grid\",defaultValue:true},showVerticalGrid:{type:ControlType.Boolean,title:\"Vertical grid\",defaultValue:true},showAxisBaselines:{type:ControlType.Boolean,title:\"Axis baselines\",defaultValue:true},showTickMarks:{type:ControlType.Boolean,title:\"Tick marks\",defaultValue:true},fillOpacity:{type:ControlType.Number,title:\"Fill opacity\",min:0,max:1,step:.01,defaultValue:.22},lineSmoothing:{type:ControlType.Number,title:\"Line smoothing\",min:0,max:1,step:.05,defaultValue:.25},showHoverTooltip:{type:ControlType.Boolean,title:\"Show hover tooltip\",defaultValue:true},showCurrentPriceLine:{type:ControlType.Boolean,title:\"Show current price line\",defaultValue:true},currentPriceLineWeight:{type:ControlType.Number,title:\"Current price line weight\",min:.5,max:3,step:.25,defaultValue:1},currentPriceLineColor:{type:ControlType.Color,title:\"Current price line color\",defaultValue:\"#2F9E64\"},currentPriceLabelColor:{type:ControlType.Color,title:\"Current price label color\",defaultValue:\"#2F9E64\"},mainPriceColor:{type:ControlType.Color,title:\"Main price color\",defaultValue:\"#0B1320\"},mainPriceSize:{type:ControlType.Number,title:\"Main price size\",defaultValue:20,min:12,max:64,step:1},mainPriceWeight:{type:ControlType.Number,title:\"Main price weight\",defaultValue:600,min:100,max:900,step:100},fontFamily:{type:ControlType.String,title:\"Font family\",defaultValue:\"\",placeholder:\"(inherit)\"},fontSize:{type:ControlType.Number,title:\"Font size\",min:8,max:24,step:1,defaultValue:12}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PriceChart\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PriceChart.map"],"mappings":"A,oXA+B0a,SAASkC,GAAe,EAAM,EAAS,CAAC,IAAMC,EAAO,OAAO,SAAW,KAAa,SAAS,iBAAiB,KAAK,SAAS,gBAAgB,KAAYtB,IAAY,OAAkE,QAAtDA,EAAU,YAAY,IAAIA,EAAU,UAAU,QAAgB,OAAO,IAAI,KAAK,aAAasB,EAAO,CAAC,MAAM,WAAW,WAAS,sBAAsB,KAAK,IAAIC,CAAK,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,OAAOA,CAAK,CAAE,CAAyD,SAASC,GAAgB,EAAI,EAAU,CAAC,IAAMC,EAAK,IAAI,KAAKC,CAAG,EAA8U,OAAzU,OAAO,MAAMD,EAAK,QAAQ,CAAC,EAASC,EAAOC,IAAY,KAAa,IAAI,KAAK,eAAe,IAAA,GAAU,CAAC,KAAK,UAAU,OAAO,SAAS,CAAC,CAAC,CAAC,OAAOF,CAAI,EA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