{"version":3,"file":"LoaderCounter.hGsPR1GL.mjs","names":["React.useState","React.useRef","React.useMemo","__esmMin","init_npm_react_18_3_1","pe","window","_e","de","init_jsx_runtime","p","ce","init_ssg_sandbox_shims","init_framer_BL70qLPA","addPropertyControls","ControlType","generateLoaderPauses","pauses","pauseCount","i","center","width","formatNumber","options","abbreviate","absValue","value","divisor","suffix","precision","fixedValue","decimals","thousands","locale","scaled","factor","rounded","text","getDecimalPlaces","str","num","idx","useCounterAnimation","setValue","config","progress","setProgress","isVisible","setIsVisible","isAnimating","setIsAnimating","containerRef","animationRef","pausesRef","lastPausedRef","observer","entry","startTime","duration","range","animate","elapsed","rawProgress","clamp","easedProgress","loaderEase","LoaderCounter","props","calculatedDuration","to","from","isLoader","seconds","customDuration","resolvedLocale","formatThousands","customLocale","displayValue","currentColor","colorTransition","startColor","endColor","interpolateColor","color","fontStyles","font","prefix","gap","prefixColor","suffixColor","parseColor","init_LoaderCounter","min","max","hex","fullHex","c","bigint","match","start","end","t"],"sources":["https:/framerusercontent.com/modules/aGxbJEkhNrDnpPqnGNiE/1KnRwfjCWO0zsTVvk5Tx/LoaderCounter.js"],"sourcesContent":["/**\n * @framerDisableUnlink\n * @framerDisplayName \"Loader Counter\"\n *//**\n * Loader Counter v1.0.0\n * Professional animated number counter with authentic loader and linear modes.\n *\n * ✨ Features:\n * • Authentic loader animation with realistic pauses and speed variations\n * • Linear counting mode for smooth, consistent animations\n * • Smart number formatting with thousands separators and abbreviations (K/M/B)\n * • Color transitions that interpolate smoothly during animation\n * • Intersection Observer for viewport-triggered animations\n * • Full accessibility support with ARIA labels and announcements\n * • Respects user motion preferences automatically\n * • High-performance RAF-based animation loop\n *\n * 🎨 Customization:\n * • Native Framer font controls with full typography support\n * • Dynamic color transitions between start and end colors\n * • Flexible prefix/suffix system with independent colors\n * • Auto-duration calculation based on number range\n * • Customizable animation delay and replay options\n *\n * 🚀 Perfect for:\n * • Loading screens with realistic progress indicators\n * • Statistics and metrics displays\n * • Achievement counters and milestones\n * • Dynamic data visualizations\n * • Marketing landing pages with animated numbers\n *\n * © 2025 Amr Rashed - All rights reserved\n * Author: Amr Rashed (https://amrrashed.com)\n * Documentation: https://loadercounter.framer.website/demo\n * Support: hello@amrrashed.com\n * License: Commercial use allowed with attribution\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Disable unlinking to protect the component\nexport const framerDisableUnlinking=true;/* ===== UTILITIES ===== */const clamp=(value,min=0,max=1)=>Math.max(min,Math.min(max,value));// Color interpolation with support for hex and rgb\nconst parseColor=color=>{// Handle hex colors\nif(color.startsWith(\"#\")){const hex=color.slice(1);const fullHex=hex.length===3?hex.split(\"\").map(c=>c+c).join(\"\"):hex;const bigint=parseInt(fullHex,16);return{r:bigint>>16&255,g:bigint>>8&255,b:bigint&255};}// Handle rgb/rgba colors\nconst match=color.match(/rgba?\\s*\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)/);if(match){return{r:parseInt(match[1]),g:parseInt(match[2]),b:parseInt(match[3])};}// Default to black\nreturn{r:0,g:0,b:0};};const interpolateColor=(start,end,progress)=>{const from=parseColor(start);const to=parseColor(end);const r=Math.round(from.r+(to.r-from.r)*progress);const g=Math.round(from.g+(to.g-from.g)*progress);const b=Math.round(from.b+(to.b-from.b)*progress);return`rgb(${r}, ${g}, ${b})`;};// Loader-specific easing - more dramatic speed changes\nconst loaderEase=t=>{// Very fast start (0-25%) - shoots up quickly\nif(t<.25){return 3.2*t*t;}// Steady middle (25-65%) - consistent progress\nif(t<.65){const adjusted=(t-.25)/.4;return .2+adjusted*.5;}// Slow section (65-88%) - crawling\nif(t<.88){const adjusted=(t-.65)/.23;return .7+Math.pow(adjusted,1.5)*.18;}// Extremely slow finish (88-100%) - classic loader struggle\nconst final=(t-.88)/.12;return .88+Math.pow(final,4)*.12;};// Generate random micro-pauses for authentic loader feel\nfunction generateLoaderPauses(){const pauses=[];// Add 3-5 noticeable pauses\nconst pauseCount=3+Math.floor(Math.random()*3);for(let i=0;i<pauseCount;i++){// Pauses occur between 15-85% progress\nconst center=.15+Math.random()*.7;// Longer pause duration (100-300ms relative to total duration)\nconst width=.04+Math.random()*.08;pauses.push({start:Math.max(.15,center-width/2),end:Math.min(.85,center+width/2)});}// Add one longer pause around 75-85% (the classic \"almost there\" pause)\npauses.push({start:.75+Math.random()*.05,end:.82+Math.random()*.03});return pauses;}/* ===== NUMBER FORMATTING ===== */function formatNumber(value,options){const{thousands,abbreviate,locale,decimals}=options;if(abbreviate){const absValue=Math.abs(value);let divisor=1;let suffix=\"\";let precision=0;// Determine scale based on current value, not range\nif(absValue>=1e9){divisor=1e9;suffix=\"B\";// For billions, show 2 decimals if under 10B, 1 decimal if under 100B\nif(absValue<1e10)precision=2;else if(absValue<1e11)precision=1;}else if(absValue>=1e6){divisor=1e6;suffix=\"M\";// For millions, show 2 decimals if under 10M, 1 decimal if under 100M\nif(absValue<1e7)precision=2;else if(absValue<1e8)precision=1;}else if(absValue>=1e3){divisor=1e3;suffix=\"K\";// For thousands, show 2 decimals if under 10K, 1 decimal if under 100K\nif(absValue<1e4)precision=2;else if(absValue<1e5)precision=1;}// If no abbreviation needed, show the normal number\nif(divisor===1){const fixedValue=Number(value.toFixed(decimals));if(thousands){try{return new Intl.NumberFormat(locale,{minimumFractionDigits:decimals,maximumFractionDigits:decimals,useGrouping:true}).format(fixedValue);}catch{return fixedValue.toString();}}return fixedValue.toString();}// Apply abbreviation with appropriate precision\nconst scaled=value/divisor;const factor=Math.pow(10,precision);const rounded=Math.round(scaled*factor)/factor;// Format with appropriate decimal places\nlet text;if(precision===0||Number.isInteger(rounded)){text=rounded.toFixed(0);}else{text=rounded.toFixed(precision).replace(/\\.?0+$/,\"\");}return(value<0?\"-\":\"\")+text+suffix;}const fixedValue=Number(value.toFixed(decimals));if(thousands){try{return new Intl.NumberFormat(locale,{minimumFractionDigits:decimals,maximumFractionDigits:decimals,useGrouping:true}).format(fixedValue);}catch{return new Intl.NumberFormat(\"en-US\",{minimumFractionDigits:decimals,maximumFractionDigits:decimals,useGrouping:true}).format(fixedValue);}}return fixedValue.toString();}function getDecimalPlaces(num){const str=String(num);const idx=str.indexOf(\".\");return idx>=0?Math.min(3,str.length-idx-1):0;}/* ===== ANIMATION HOOK ===== */function useCounterAnimation(config){const[value,setValue]=React.useState(config.from);const[progress,setProgress]=React.useState(0);const[isVisible,setIsVisible]=React.useState(!config.startOnView);const[isAnimating,setIsAnimating]=React.useState(false);const containerRef=React.useRef(null);const animationRef=React.useRef();const pausesRef=React.useRef([]);const lastPausedRef=React.useRef(false);// Visibility observer\nReact.useEffect(()=>{if(!config.startOnView){setIsVisible(true);return;}const observer=new IntersectionObserver(([entry])=>{if(entry.isIntersecting){setIsVisible(true);}else if(config.replay){setIsVisible(false);setValue(config.from);setProgress(0);setIsAnimating(false);}},{threshold:.1});if(containerRef.current){observer.observe(containerRef.current);}return()=>observer.disconnect();},[config.startOnView,config.replay,config.from]);// Prefer reduced motion support\nReact.useEffect(()=>{const prefersReducedMotion=window.matchMedia?.(\"(prefers-reduced-motion: reduce)\")?.matches;if(prefersReducedMotion){// Skip animation for users who prefer reduced motion\nsetValue(config.to);setProgress(1);return;}},[config.to]);// Animation loop\nReact.useEffect(()=>{if(!isVisible)return;// Check for reduced motion preference\nconst prefersReducedMotion=window.matchMedia?.(\"(prefers-reduced-motion: reduce)\")?.matches;if(prefersReducedMotion){setValue(config.to);setProgress(1);return;}// Cancel any existing animation\nif(animationRef.current){cancelAnimationFrame(animationRef.current);}// Generate pauses for loader mode\npausesRef.current=config.isLoader?generateLoaderPauses():[];lastPausedRef.current=false;setIsAnimating(true);const startTime=performance.now()+config.delay*1e3;const duration=config.duration*1e3;const range=config.to-config.from;const animate=()=>{const now=performance.now();const elapsed=now-startTime;// Handle delay\nif(elapsed<0){animationRef.current=requestAnimationFrame(animate);return;}let rawProgress=clamp(elapsed/duration);// For loader mode, apply pauses\nif(config.isLoader&&rawProgress<.95){const isPaused=pausesRef.current.some(p=>rawProgress>=p.start&&rawProgress<=p.end);if(isPaused){if(!lastPausedRef.current){// Just entered a pause, hold current value\nlastPausedRef.current=true;}// Don't update during pause\nanimationRef.current=requestAnimationFrame(animate);return;}else{lastPausedRef.current=false;}}// Apply easing\nconst easedProgress=config.isLoader?loaderEase(rawProgress):rawProgress;// Update values\nsetProgress(easedProgress);setValue(config.from+range*easedProgress);if(rawProgress<1){animationRef.current=requestAnimationFrame(animate);}else{// Ensure we end exactly at the target\nsetProgress(1);setValue(config.to);setIsAnimating(false);}};animationRef.current=requestAnimationFrame(animate);return()=>{if(animationRef.current){cancelAnimationFrame(animationRef.current);}setIsAnimating(false);};},[isVisible,config.from,config.to,config.duration,config.delay,config.isLoader]);return{containerRef,value,progress,isAnimating};}/* ===== MAIN COMPONENT ===== */export default function LoaderCounter(props){const{// Animation\nisLoader=true,from=0,to=100,duration=false,customDuration=3.2,delay=0,startOnView=true,replay=true,// Formatting\nformatThousands=false,abbreviate=false,locale=false,customLocale=\"en-US\",// Styling\nfont={fontFamily:\"Inter\",fontWeight:600,fontSize:64,letterSpacing:0,lineHeight:1.1,textAlign:\"left\"},color=\"#000000\",// Color transition\ncolorTransition=false,startColor=\"#3b82f6\",endColor=\"#ef4444\",// Affixes\nprefix=\"\",prefixColor=\"#000000\",suffix=\"\",suffixColor=\"#000000\",gap=8}=props;// Calculate auto duration based on range (longer for loader effect)\nconst calculatedDuration=React.useMemo(()=>{if(!duration){const range=Math.abs(to-from);// Loader mode: 3-4.5s for authentic loading feel\nif(isLoader){const seconds=3+Math.log10(Math.max(1,range))*.5;return clamp(seconds,3,4.5);}else{// Linear mode: faster 1-2.5s\nconst seconds=1+Math.log10(Math.max(1,range))*.4;return clamp(seconds,1,2.5);}}return customDuration;},[duration,customDuration,from,to,isLoader]);// Resolve locale\nconst resolvedLocale=React.useMemo(()=>{if(!formatThousands)return\"en-US\";if(!locale&&typeof window!==\"undefined\"){return window.navigator?.language||\"en-US\";}return customLocale||\"en-US\";},[locale,customLocale,formatThousands]);// Calculate decimal places\nconst decimals=React.useMemo(()=>{return Math.max(getDecimalPlaces(from),getDecimalPlaces(to));},[from,to]);// Use animation hook\nconst{containerRef,value,progress,isAnimating}=useCounterAnimation({from,to,duration:calculatedDuration,delay,isLoader,startOnView,replay});// Format current value\nconst displayValue=React.useMemo(()=>{return formatNumber(value,{thousands:formatThousands,abbreviate,locale:resolvedLocale,decimals,from,to});},[value,formatThousands,abbreviate,resolvedLocale,decimals,from,to]);// Calculate interpolated color\nconst currentColor=React.useMemo(()=>{if(colorTransition&&startColor&&endColor){return interpolateColor(startColor,endColor,progress);}return color;},[colorTransition,startColor,endColor,progress,color]);// Build font styles\nconst fontStyles=React.useMemo(()=>({fontFamily:font?.fontFamily||\"Inter\",fontWeight:font?.fontWeight||600,fontSize:font?.fontSize||64,letterSpacing:font?.letterSpacing||0,lineHeight:font?.lineHeight||1.1,textAlign:font?.textAlign||\"left\"}),[font]);return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,role:\"status\",\"aria-live\":\"polite\",\"aria-label\":`Counter: ${displayValue}`,style:{width:\"100%\",display:\"flex\",justifyContent:fontStyles.textAlign===\"center\"?\"center\":fontStyles.textAlign===\"right\"?\"flex-end\":\"flex-start\",...fontStyles},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"baseline\",gap:prefix||suffix?`${gap}px`:\"0px\",fontVariantNumeric:\"tabular-nums\",// Prevent text selection during animation for cleaner UX\nuserSelect:isAnimating?\"none\":\"auto\",// Smooth color transitions\ntransition:colorTransition?\"color 0.3s ease\":undefined},children:[prefix&&/*#__PURE__*/_jsx(\"span\",{style:{color:prefixColor},\"aria-hidden\":\"true\",children:prefix}),/*#__PURE__*/_jsx(\"span\",{style:{color:currentColor},\"data-value\":value,\"data-progress\":progress,children:displayValue}),suffix&&/*#__PURE__*/_jsx(\"span\",{style:{color:suffixColor},\"aria-hidden\":\"true\",children:suffix})]}),progress===1&&/*#__PURE__*/_jsxs(\"span\",{style:{position:\"absolute\",width:\"1px\",height:\"1px\",padding:\"0\",margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",borderWidth:\"0\"},\"aria-live\":\"assertive\",children:[\"Counter complete: \",prefix,displayValue,suffix]})]});}/* ===== DEFAULT PROPS ===== */LoaderCounter.defaultProps={font:{fontFamily:\"Inter\",fontWeight:600,fontSize:64,letterSpacing:0,lineHeight:1.1,textAlign:\"left\"}};/* ===== PROPERTY CONTROLS ===== */addPropertyControls(LoaderCounter,{isLoader:{type:ControlType.Boolean,title:\"Style\",defaultValue:true,enabledTitle:\"Loader\",disabledTitle:\"Linear\"},from:{type:ControlType.Number,title:\"From\",defaultValue:0,displayStepper:true},to:{type:ControlType.Number,title:\"To\",defaultValue:100,displayStepper:true},duration:{type:ControlType.Boolean,title:\"Duration\",defaultValue:false,enabledTitle:\"Custom\",disabledTitle:\"Auto\"},customDuration:{type:ControlType.Number,title:\"Seconds\",defaultValue:3.2,min:.5,max:10,step:.1,hidden:props=>!props.duration},delay:{type:ControlType.Number,title:\"Delay (s)\",defaultValue:0,min:0,max:5,step:.1,displayStepper:true},abbreviate:{type:ControlType.Boolean,title:\"Shorten\",defaultValue:false,enabledTitle:\"K/M/B\",disabledTitle:\"Full\"},formatThousands:{type:ControlType.Boolean,title:\"Format\",defaultValue:false,enabledTitle:\"1,000\",disabledTitle:\"1000\"},locale:{type:ControlType.Boolean,title:\"Locale\",defaultValue:false,enabledTitle:\"Custom\",disabledTitle:\"Auto\",hidden:props=>!props.formatThousands},customLocale:{type:ControlType.String,title:\"Code\",defaultValue:\"en-US\",placeholder:\"en-US, nl-NL, etc\",hidden:props=>!props.formatThousands||!props.locale},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:true},colorTransition:{type:ControlType.Boolean,title:\"Color fade\",defaultValue:false},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\",hidden:props=>props.colorTransition},startColor:{type:ControlType.Color,title:\"From color\",defaultValue:\"#3b82f6\",hidden:props=>!props.colorTransition},endColor:{type:ControlType.Color,title:\"To color\",defaultValue:\"#ef4444\",hidden:props=>!props.colorTransition},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"\",placeholder:\"$, €, etc\"},prefixColor:{type:ControlType.Color,title:\"Prefix color\",defaultValue:\"#000000\",hidden:props=>!props.prefix},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"\",placeholder:\"%, pts, etc\"},suffixColor:{type:ControlType.Color,title:\"Suffix color\",defaultValue:\"#000000\",hidden:props=>!props.suffix},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:32,step:1,hidden:props=>!props.prefix&&!props.suffix},startOnView:{type:ControlType.Boolean,title:\"On view\",defaultValue:true},replay:{type:ControlType.Boolean,title:\"Replay\",defaultValue:true,hidden:props=>!props.startOnView,description:\"[Built by Amr Rashed](https://amrrashed.com)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"framerDisableUnlinking\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"LoaderCounter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoaderCounter.map"],"mappings":"A,+MA+CA,SAASgB,GAAsB,CAAC,IAAMC,EAAO,CAAC,EACxCC,EAAW,EAAE,KAAK,MAAM,KAAK,OAAO,EAAE,CAAC,EAAE,IAAI,IAAIC,EAAE,EAAEA,EAAED,EAAW,IAAI,CAC5E,IAAME,EAAO,IAAI,KAAK,OAAO,EAAE,GACzBC,EAAM,IAAI,KAAK,OAAO,EAAE,IAAIJ,EAAO,KAAK,CAAC,MAAM,KAAK,IAAI,IAAIG,EAAOC,EAAM,CAAC,EAAE,IAAI,KAAK,IAAI,IAAID,E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