{"version":3,"file":"WallyReviews.BQax4cTi.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/95hyybhNlM1dppPNNE6S/uU9VjqDFBT618gdIVxBq/Counter.js","https:/framerusercontent.com/modules/dL5Uskh1zcbz4pf2SnP5/Hu2uIMfUajdVOKfJo08e/WallyReviews.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{animate,motion,useInView,useMotionValue,useTransform}from\"framer-motion\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ==================\n// Added formatNumberWithCommas function\n// ==================\nfunction formatNumberWithCommas(number){return number.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\");}// ==================\nfunction AnimatedCounter({from,to,duration,fontFamily,fontSize,color,lineHeight}){const count=useMotionValue(from);// ==================\n// Modified useTransform hook to use formatNumberWithCommas\n// ==================\nconst rounded=useTransform(count,latest=>{return formatNumberWithCommas(Math.round(latest));});// ==================\nconst ref=useRef(null);const inView=useInView(ref);// while in view animate the count\nuseEffect(()=>{if(inView){animate(count,to,{duration});}},[count,inView,to,duration]);return /*#__PURE__*/_jsx(motion.span,{ref:ref,style:{fontFamily,fontSize,color,lineHeight},children:rounded});}AnimatedCounter.defaultProps={from:0,to:15,duration:2.5,fontFamily:\"Arial\",fontSize:24,color:\"#000000\",lineHeight:1.5};addPropertyControls(AnimatedCounter,{from:{type:ControlType.Number,title:\"From\",defaultValue:0,min:0,step:1},to:{type:ControlType.Number,title:\"To\",defaultValue:15,min:0,step:1},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2.5,min:0,step:.1,displayStepper:true},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Arial\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:24,min:12,max:72,step:1},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},lineHeight:{// Added lineHeight property control\ntype:ControlType.Number,title:\"Line Height\",defaultValue:1.5,min:0,step:.1,displayStepper:true}});export default AnimatedCounter;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedCounter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Counter.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 1000\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function WallyReviews({widgetId}){useEffect(()=>{const scriptId=\"wally-embed-script\";if(!document.getElementById(scriptId)){const script=document.createElement(\"script\");script.id=scriptId;script.src=\"https://embed.getwally.net/embed.js\";script.defer=true;document.head.appendChild(script);}return()=>{const script=document.getElementById(scriptId);if(script)document.head.removeChild(script);};},[]);return /*#__PURE__*/_jsx(\"div\",{\"data-wally-widget\":widgetId,style:{width:\"100%\",height:\"100%\"}});}addPropertyControls(WallyReviews,{widgetId:{type:ControlType.String,title:\"Widget ID\",defaultValue:\"65740ce811406c0014250535\",description:\"[Log in to Wally](https://app.getwally.net/?utm_source=framer&utm_medium=component&utm_campaign=wally_reviews) to get your widget ID.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WallyReviews\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 1000\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WallyReviews.map"],"mappings":"8PAGA,SAAS,EAAuB,EAAO,CAAC,OAAO,EAAO,UAAU,CAAC,QAAQ,wBAAwB,IAAI,CACrG,SAAS,EAAgB,CAAC,OAAK,KAAG,WAAS,aAAW,WAAS,QAAM,cAAY,CAAC,IAAM,EAAM,EAAe,EA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