{"version":3,"file":"Back_to_top_button.eDb9qu01.mjs","names":[],"sources":["https:/framerusercontent.com/modules/PdPLENu1Gu5cMBSjgU3i/J5YT5wqFhcfLf2Tf09kX/Back_to_top_button.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Back_to_top_button(props){const{tint,iconColor,iconSize}=props;const scrollToTop=()=>{window.scrollTo({top:0,behavior:\"smooth\"});};return /*#__PURE__*/_jsx(motion.div,{onClick:scrollToTop,style:{position:\"fixed\",bottom:30,right:30,width:iconSize,height:iconSize,borderRadius:\"50%\",backgroundColor:tint,color:iconColor,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",cursor:\"pointer\",zIndex:999,boxShadow:\"0 4px 12px rgba(0,0,0,0.2)\"},whileTap:{scale:.95},children:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:iconSize*.6,height:iconSize*.6,viewBox:\"0 0 24 24\",fill:\"none\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"18 15 12 9 6 15\"})})});}addPropertyControls(Back_to_top_button,{tint:{title:\"Background\",type:ControlType.Color,defaultValue:\"#09F\"},iconColor:{title:\"Icon Color\",type:ControlType.Color,defaultValue:\"#FFF\"},iconSize:{title:\"Size\",type:ControlType.Number,defaultValue:48,min:24,max:128,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Back_to_top_button\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Back_to_top_button.map"],"mappings":"yVAGG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,WAAS,CAAC,EAAY,MAAgB,CAAC,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,SAAS,CAAG,EAAC,OAAoB,EAAK,EAAO,IAAI,CAAC,QAAQ,EAAY,MAAM,CAAC,SAAS,QAAQ,OAAO,GAAG,MAAM,GAAG,MAAM,EAAS,OAAO,EAAS,aAAa,MAAM,gBAAgB,EAAK,MAAM,EAAU,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,OAAO,UAAU,OAAO,IAAI,UAAU,6BAA6B,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,6BAA6B,MAAM,EAAS,GAAG,OAAO,EAAS,GAAG,QAAQ,YAAY,KAAK,OAAO,OAAO,EAAU,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,SAAsB,EAAK,WAAW,CAAC,OAAO,kBAAkB,EAAE,EAAE,CAAG,iCAAoB,EAAmB,CAAC,KAAK,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,MAAM,aAAa,OAAO,CAAC,SAAS,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,KAAK,CAAC"}