{"version":3,"file":"Circular_loader.QuYLTMoA.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/bdhHa1bTNGWwDLYqRQWc/lX7sGad4jcz2zVGEmEqm/Circular_loader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useScroll}from\"framer-motion\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function BackToTop({size,strokeWidth,strokeColor,fillColor}){const{scrollYProgress}=useScroll();const[visible,setVisible]=useState(false);useEffect(()=>{return scrollYProgress.on(\"change\",v=>setVisible(v>.05));},[scrollYProgress]);return visible&&/*#__PURE__*/_jsxs(\"button\",{onClick:()=>window.scrollTo({top:0,behavior:\"smooth\"}),style:{position:\"fixed\",bottom:30,right:30,width:size,height:size,border:\"none\",background:\"none\",cursor:\"pointer\",padding:0},children:[/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 100 100\",style:{transform:\"rotate(-90deg)\"},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"50\",cy:\"50\",r:\"45\",stroke:strokeColor,strokeWidth:strokeWidth,fill:fillColor,opacity:.15}),/*#__PURE__*/_jsx(motion.circle,{cx:\"50\",cy:\"50\",r:\"45\",stroke:strokeColor,strokeWidth:strokeWidth,fill:\"transparent\",strokeLinecap:\"round\",style:{pathLength:scrollYProgress}})]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:size/3,height:size/3,viewBox:\"0 0 24 24\",fill:\"none\",stroke:strokeColor,strokeWidth:strokeWidth,strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"19\",x2:\"12\",y2:\"5\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"5 12 12 5 19 12\"})]})})]});}addPropertyControls(BackToTop,{size:{type:ControlType.Number,defaultValue:80,min:40,max:200},strokeWidth:{type:ControlType.Number,defaultValue:2,min:1,max:6},strokeColor:{type:ControlType.Color,defaultValue:\"#5B0A2D\"},fillColor:{type:ControlType.Color,defaultValue:\"transparent\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackToTop\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Circular_loader.map"],"mappings":"wZAA+L,SAAwB,EAAU,CAAC,OAAK,cAAY,cAAY,aAAW,CAAC,GAAK,CAAC,mBAAiB,GAAW,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAA8F,OAA7F,MAAsB,EAAgB,GAAG,SAAS,GAAG,EAAW,EAAE,IAAI,CAAC,CAAG,CAAC,EAAgB,CAAC,CAAQ,GAAsB,EAAM,SAAS,CAAC,YAAY,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,SAAS,CAAC,CAAC,MAAM,CAAC,SAAS,QAAQ,OAAO,GAAG,MAAM,GAAG,MAAM,EAAK,OAAO,EAAK,OAAO,OAAO,WAAW,OAAO,OAAO,UAAU,QAAQ,EAAE,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,EAAK,OAAO,EAAK,QAAQ,cAAc,MAAM,CAAC,UAAU,iBAAiB,CAAC,SAAS,CAAc,EAAK,SAAS,CAAC,GAAG,KAAK,GAAG,KAAK,EAAE,KAAK,OAAO,EAAwB,cAAY,KAAK,EAAU,QAAQ,IAAI,CAAC,CAAc,EAAK,EAAO,OAAO,CAAC,GAAG,KAAK,GAAG,KAAK,EAAE,KAAK,OAAO,EAAwB,cAAY,KAAK,cAAc,cAAc,QAAQ,MAAM,CAAC,WAAW,EAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW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