{"version":3,"file":"PingAnimation.CrcjXZIf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qQbMx0bJimp5IWfVfUIP/qBBlpF6DheiJBBwS7art/PingAnimation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function PingAnimation({dotColor,ringColor,dotSize,ringSize,speed,ringCount}){// ringSize is the final diameter of the ring in px\n// scale factor = ringSize / dotSize\nconst scaleFactor=ringSize/dotSize;return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:ringSize,height:ringSize,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes ping-ring {\n                    0% {\n                        transform: scale(1);\n                        opacity: 0.7;\n                    }\n                    100% {\n                        transform: scale(${scaleFactor});\n                        opacity: 0;\n                    }\n                }\n            `}),Array.from({length:ringCount}).map((_,i)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:dotSize,height:dotSize,borderRadius:\"50%\",backgroundColor:ringColor,opacity:0,animation:`ping-ring ${speed}s ease-out ${i*speed/ringCount}s infinite`,willChange:\"transform, opacity\",transformOrigin:\"center center\"}},i)),/*#__PURE__*/_jsx(\"div\",{style:{width:dotSize,height:dotSize,borderRadius:\"50%\",backgroundColor:dotColor,position:\"relative\",zIndex:1,flexShrink:0}})]});}PingAnimation.defaultProps={dotColor:\"#11C27E\",ringColor:\"#11C27E\",dotSize:10,ringSize:40,speed:5,ringCount:3};addPropertyControls(PingAnimation,{dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"#11C27E\"},ringColor:{type:ControlType.Color,title:\"Ring Color\",defaultValue:\"#11C27E\"},dotSize:{type:ControlType.Number,title:\"Dot Size\",defaultValue:10,min:4,max:40,unit:\"px\"},ringSize:{type:ControlType.Number,title:\"Ring Size\",defaultValue:40,min:10,max:200,unit:\"px\",description:\"Final diameter of rings in px\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:5,min:1,max:10,unit:\"s\"},ringCount:{type:ControlType.Number,title:\"Ring Count\",defaultValue:3,min:1,max:5,step:1,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PingAnimation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PingAnimation.map"],"mappings":"8JAA6G,SAAwB,EAAc,CAAC,WAAS,YAAU,UAAQ,WAAS,QAAM,aAAW,CAEzM,IAAM,EAAY,EAAS,EAAQ,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,MAAM,EAAS,OAAO,EAAS,SAAS,UAAU,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;2CAO7L,EAAY;;;;aAI1C,CAAC,EAAE,MAAM,KAAK,CAAC,OAAO,CAAS,CAAC,CAAC,CAAC,KAAK,EAAE,IAAiB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAQ,OAAO,EAAQ,aAAa,MAAM,gBAAgB,EAAU,QAAQ,EAAE,UAAU,aAAa,EAAM,aAAa,EAAE,EAAM,EAAU,YAAY,WAAW,qBAAqB,gBAAgB,eAAe,CAAC,EAAE,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAQ,OAAO,EAAQ,aAAa,MAAM,gBAAgB,EAAS,SAAS,WAAW,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,iBAbjb,IAAoD,EAa8X,EAAc,aAAa,CAAC,SAAS,UAAU,UAAU,UAAU,QAAQ,GAAG,SAAS,GAAG,MAAM,EAAE,UAAU,CAAC,EAAE,EAAoB,EAAc,CAAC,SAAS,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,aAAa,SAAS,EAAE,UA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