{"version":3,"file":"BouncingLoader.D_rfV_CF.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/fvMrSXaMv8QO4hC54WHW/cK0GAjGqPiPp8NW7YXNU/BouncingLoader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState,startTransition}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 80\n * @framerIntrinsicHeight 40\n */export default function BouncingLoader(props){const{dotColor=\"#000000\",dotSize=12,animationSpeed=.6,spacing=8,backgroundColor=\"#FFFFFF\",autoHide=false,hideAfter=3,visible=true}=props;const[isVisible,setIsVisible]=useState(true);useEffect(()=>{if(autoHide&&hideAfter>0){const timer=setTimeout(()=>{startTransition(()=>setIsVisible(false));},hideAfter*1e3);return()=>clearTimeout(timer);}},[autoHide,hideAfter]);if(RenderTarget.current()===RenderTarget.canvas||RenderTarget.current()===RenderTarget.thumbnail||!isVisible||visible===false// ← ESCONDE pelo prop passado pelo override!\n){return null;}const bounceVariants={initial:{y:0},animate:{y:-dotSize*1.5}};return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:spacing,width:\"100%\",height:\"100%\",backgroundColor:backgroundColor,minWidth:80,minHeight:40,...props.style},children:[0,1,2].map(index=>/*#__PURE__*/_jsx(motion.div,{style:{width:dotSize,height:dotSize,backgroundColor:dotColor,borderRadius:\"50%\"},variants:bounceVariants,initial:\"initial\",animate:\"animate\",transition:{duration:animationSpeed,repeat:Infinity,repeatType:\"reverse\",ease:\"easeInOut\",delay:index*(animationSpeed/3)}},index))});}addPropertyControls(BouncingLoader,{dotColor:{type:ControlType.Color,title:\"Cor das Bolinhas\",defaultValue:\"#000000\"},dotSize:{type:ControlType.Number,title:\"Tamanho\",defaultValue:12,min:4,max:32,step:1,unit:\"px\"},animationSpeed:{type:ControlType.Number,title:\"Velocidade\",defaultValue:.6,min:.2,max:2,step:.1,unit:\"s\"},spacing:{type:ControlType.Number,title:\"Espa\\xe7amento\",defaultValue:8,min:2,max:24,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Cor de Fundo\",defaultValue:\"#FFFFFF\"},autoHide:{type:ControlType.Boolean,title:\"Esconder Automaticamente\",defaultValue:false},hideAfter:{type:ControlType.Number,title:\"Esconder Depois de\",defaultValue:3,min:0,max:10,step:1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BouncingLoader\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"40\",\"framerIntrinsicWidth\":\"80\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BouncingLoader.map"],"mappings":"iPAKG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,WAAS,UAAU,UAAQ,GAAG,iBAAe,GAAG,UAAQ,EAAE,kBAAgB,UAAU,WAAS,GAAM,YAAU,EAAE,UAAQ,IAAM,EAAW,CAAC,EAAU,GAAcA,EAAS,GAAK,CAAuL,GAAtL,MAAc,CAAC,GAAG,GAAU,EAAU,EAAE,CAAC,IAAM,EAAM,eAAe,CAAC,MAAoB,EAAa,GAAM,CAAC,EAAG,EAAU,IAAI,CAAC,UAAU,aAAa,EAAM,GAAI,CAAC,EAAS,EAAU,CAAC,CAAI,EAAa,SAAS,GAAG,EAAa,QAAQ,EAAa,SAAS,GAAG,EAAa,WAAW,CAAC,GAAW,IAAU,GACnhB,OAAO,KAAM,IAAM,EAAe,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAQ,IAAI,CAAC,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,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