{"version":3,"file":"DynamicViewportHeight.BnTffuWI.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/208PJDXhkcDBTbooiAiK/rufWQRLug91phsTo52xH/Scroll_Progress.js","https:/framerusercontent.com/modules/lt1r09CkQ6OAUJzfTnTx/vGavVV0Rjb2qeyorZTxh/DynamicViewportHeight.js"],"sourcesContent":["/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 60\n * @framerIntrinsicHeight 60\n * @framerComponentName Scroll Progress Button\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useScroll,useTransform}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function scrollprogress({size=60,strokeColor=\"#00ffff\",strokeWidth=4,backgroundColor=\"#1a1a1a\",iconColor=\"#ffffff\",scrollSpeed=.5}){// ✅ Prevent rendering during SSR\nif(typeof window===\"undefined\")return null;const{scrollYProgress}=useScroll();const radius=(size-strokeWidth)/2;const circumference=2*Math.PI*radius;const strokeDashoffset=useTransform(scrollYProgress,[0,1],[circumference,0]);const scrollToTop=()=>{window.scrollTo({top:0,behavior:\"smooth\"});};return /*#__PURE__*/_jsxs(motion.div,{onClick:scrollToTop,style:{position:\"fixed\",bottom:\"80px\",right:\"20px\",width:size,height:size,borderRadius:\"50%\",backgroundColor,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",cursor:\"pointer\",zIndex:1e3,pointerEvents:\"auto\"},whileHover:{scale:1.1},whileTap:{scale:.95},children:[/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,style:{position:\"absolute\",top:0,left:0,transform:\"rotate(-90deg)\"},children:/*#__PURE__*/_jsx(motion.circle,{cx:size/2,cy:size/2,r:radius,fill:\"none\",stroke:strokeColor,strokeWidth:strokeWidth,strokeDasharray:circumference,style:{strokeDashoffset}})}),/*#__PURE__*/_jsx(motion.svg,{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",initial:{y:4},animate:{y:-2},transition:{repeat:Infinity,repeatType:\"mirror\",duration:scrollSpeed},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12l7-7 7 7\"})})]});}// ✅ Property Controls (visible in Framer panel)\naddPropertyControls(scrollprogress,{size:{type:ControlType.Number,title:\"Button Size\",defaultValue:60,min:40,max:100},strokeColor:{type:ControlType.Color,title:\"Progress Stroke\",defaultValue:\"#00ffff\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:4,min:1,max:10},backgroundColor:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#1a1a1a\"},iconColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#ffffff\"},scrollSpeed:{type:ControlType.Number,title:\"Arrow Bounce Speed (s)\",defaultValue:.5,min:.1,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"scrollprogress\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll_Progress.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";/**\n * @framerDisableUnlink\n */export function withDynamicViewportHeight(Component){return props=>{const[dvh,setDvh]=useState(\"100vh\");useEffect(()=>{const updateDvh=()=>{const vh=window.innerHeight*.01;document.documentElement.style.setProperty(\"--dvh\",`${vh}px`);setDvh(`${window.innerHeight}px`);};updateDvh();window.addEventListener(\"resize\",updateDvh);return()=>window.removeEventListener(\"resize\",updateDvh);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,height:dvh}});};}export function withSmallViewportHeight(Component){return props=>{const[svh,setSvh]=useState(\"100vh\");useEffect(()=>{const setInitialSvh=()=>{const vh=window.innerHeight*.01;document.documentElement.style.setProperty(\"--svh\",`${vh}px`);setSvh(`${window.innerHeight}px`);};setInitialSvh();// We're not adding any resize listeners to keep it static\n},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,height:svh}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSmallViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withSmallViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDynamicViewportHeight\":{\"type\":\"reactHoc\",\"name\":\"withDynamicViewportHeight\",\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicViewportHeight.map"],"mappings":"qQAKyK,SAAwB,EAAe,CAAC,OAAK,GAAG,cAAY,UAAU,cAAY,EAAE,kBAAgB,UAAU,YAAU,UAAU,cAAY,IAAI,CAC3T,GAAU,IAAS,OAAY,OAAO,KAAK,GAAK,CAAC,mBAAiB,EAAU,EAAQ,GAAQ,EAAK,GAAa,EAAQ,EAAc,EAAE,KAAK,GAAG,EAAa,EAAiB,EAAa,EAAgB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAc,CAAC,CAAC,EAAsE,OAAoB,EAAM,EAAO,IAAI,CAAC,YAApF,CAAC,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,QAAQ,CAAC,CAAE,EAA4D,MAAM,CAAC,SAAS,QAAQ,OAAO,OAAO,MAAM,OAAO,MAAM,EAAK,OAAO,EAAK,aAAa,MAAM,kBAAgB,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,OAAO,UAAU,OAAO,IAAI,cAAc,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,EAAE,SAAS,CAAC,MAAM,GAAG,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,EAAK,OAAO,EAAK,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,UAAU,gBAAgB,EAAE,SAAsB,EAAK,EAAO,OAAO,CAAC,GAAG,EAAK,EAAE,GAAG,EAAK,EAAE,EAAE,EAAO,KAAK,OAAO,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