{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/fDOqAFJ5LqvBqqM4KhhZ/7YDbx688D3Z8VgAIizhO/Steps.js", "ssg:https://framerusercontent.com/modules/t7IzsaCt8C3TxhguDdD3/688jrh1HpmDHfFSEWxUn/Animacao_Aquarela.js"],
  "sourcesContent": ["import{clamp}from\"framer-motion\";export function steps(numSteps,direction=\"end\"){return progress=>{progress=direction===\"end\"?Math.min(progress,.999):Math.max(progress,.001);const expanded=progress*numSteps;const rounded=direction===\"end\"?Math.floor(expanded):Math.ceil(expanded);return clamp(0,1,rounded/numSteps);};}\nexport const __FramerMetadata__ = {\"exports\":{\"Direction\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"steps\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Steps.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useAnimate,useInView}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";import{steps}from\"https://framerusercontent.com/modules/fDOqAFJ5LqvBqqM4KhhZ/7YDbx688D3Z8VgAIizhO/Steps.js\";export default function Animacao_Aquarela(props){const[scope,animate]=useAnimate();const isInView=useInView(scope,{once:true});const easing=steps(props.fps);const position=props.pos+\"% 0%\";const frame=props.frame_01.src!==undefined?props.frame_01.src:\"https://framerusercontent.com/images/U2pWKpZF0hDbqcE7oxbBxmEeTKY.png\";//console.log(frame)\nconst anim=props.animation.src!==undefined?props.animation.src:\"https://framerusercontent.com/images/vYFIUvIvLnZe6e2ZkuBbTKhRcM.png\";useEffect(()=>{if(isInView){animate(scope.current,{backgroundPosition:[\"0% 0%\",position]},{duration:props.duracao,ease:easing,repeat:0});}},[isInView]);return /*#__PURE__*/_jsx(motion.div,{ref:scope,style:{...containerStyle,backgroundImage:`url(${anim})`},children:/*#__PURE__*/_jsx(\"img\",{src:frame,style:imgStyle})});}const imgStyle={width:\"100%\",opacity:\"0\"};const containerStyle={width:\"100%\",display:\"flex\",justifyContent:\"end\",alignItems:\"center\",overflow:\"hidden\",backgroundSize:\"cover\",backgroundRepeat:\"no-repeat\",backgroundPosition:\"0% 0%\"};Animacao_Aquarela.defaultProps={frame_01:\"https://framerusercontent.com/images/U2pWKpZF0hDbqcE7oxbBxmEeTKY.png\",animation:\"https://framerusercontent.com/images/vYFIUvIvLnZe6e2ZkuBbTKhRcM.png\",fps:16,pos:106.68,duracao:2};addPropertyControls(Animacao_Aquarela,{frame_01:{title:\"1\\xb0 Frame\",type:ControlType.ResponsiveImage},animation:{title:\"Anima\\xe7\\xe3o\",type:ControlType.ResponsiveImage},pos:{title:\"Posi\\xe7\\xe3o final da Anima\\xe7\\xe3o\",type:ControlType.Number,defaultValue:106.68,min:90,max:200},fps:{title:\"Frames totais\",type:ControlType.Number,defaultValue:16,min:1,max:50},duracao:{title:\"Dura\\xe7\\xe3o\",type:ControlType.Number,defaultValue:2,min:.1,max:100}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Animacao_Aquarela\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Animacao_Aquarela.map"],
  "mappings": "uHAAwC,SAASA,EAAMC,EAASC,EAAU,MAAM,CAAC,OAAOC,GAAU,CAACA,EAASD,IAAY,MAAM,KAAK,IAAIC,EAAS,IAAI,EAAE,KAAK,IAAIA,EAAS,IAAI,EAAE,IAAMC,EAASD,EAASF,EAAeI,EAAQH,IAAY,MAAM,KAAK,MAAME,CAAQ,EAAE,KAAK,KAAKA,CAAQ,EAAE,OAAOE,EAAM,EAAE,EAAED,EAAQJ,CAAQ,CAAE,CAAE,CCAf,SAARM,EAAmCC,EAAM,CAAC,GAAK,CAACC,EAAMC,CAAO,EAAEC,EAAW,EAAQC,EAASC,EAAUJ,EAAM,CAAC,KAAK,E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AAC,CAAC",
  "names": ["steps", "numSteps", "direction", "progress", "expanded", "rounded", "clamp", "Animacao_Aquarela", "props", "scope", "animate", "useAnimate", "isInView", "useInView", "easing", "steps", "position", "frame", "anim", "ue", "p", "motion", "containerStyle", "imgStyle", "addPropertyControls", "ControlType"]
}
