{"version":3,"file":"Progress.RVO6d0iq.mjs","names":["suffix","className","css","Component"],"sources":["https:/framerusercontent.com/modules/1VpZky6pToWZsg9MjMkM/uSAAxtAOlIkF9Vcz4TU1/RZheGmE_a.js","https:/framerusercontent.com/modules/ffKEdoPD8GR02dSZl6Vw/DTOdxmPoUgHsT8xiL46y/Progress.js"],"sourcesContent":["// Generated by Framer (401b244)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import*as sharedStyle from\"https://framerusercontent.com/modules/pM7H8RXmm5H3dP5Hgpx1/S6em9msHUY0OSi5jx5kv/l18Fo0cuF.js\";const cycleOrder=[\"ZzVwCOiPZ\"];const serializationHash=\"framer-zkmsJ\";const variantClassNames={ZzVwCOiPZ:\"framer-v-1xk0oqv\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};const suffix=(value,suffix)=>{if(typeof value===\"string\"&&typeof suffix===\"string\"){return value+suffix;}else if(typeof value===\"string\"){return value;}else if(typeof suffix===\"string\"){return suffix;}return\"\";};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value!==null&&value!==void 0?value:config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion(React.Fragment);const getProps=({height,id,progress,width,...props})=>{var _ref;return{...props,oihHTLkc4:(_ref=progress!==null&&progress!==void 0?progress:props.oihHTLkc4)!==null&&_ref!==void 0?_ref:\"100\"};};const createLayoutDependency=(props,variants)=>variants.join(\"-\")+props.layoutDependency;const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,oihHTLkc4,...restProps}=getProps(props);const{baseVariant,classNames,gestureVariant,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"ZzVwCOiPZ\",variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const ref1=React.useRef(null);const textContent=suffix(oihHTLkc4,\"%\");const defaultLayoutId=React.useId();const sharedStyleClassNames=[sharedStyle.className];const componentViewport=useComponentViewport();return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId!==null&&layoutId!==void 0?layoutId:defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,className:cx(serializationHash,...sharedStyleClassNames,\"framer-1xk0oqv\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"ZzVwCOiPZ\",onHoverEnd:()=>setGestureState({isHovered:false}),onHoverStart:()=>setGestureState({isHovered:true}),onTap:()=>setGestureState({isPressed:false}),onTapCancel:()=>setGestureState({isPressed:false}),onTapStart:()=>setGestureState({isPressed:true}),ref:ref!==null&&ref!==void 0?ref:ref1,style:{...style},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-yo33vq\",\"data-styles-preset\":\"l18Fo0cuF\",children:\"100%\"})}),className:\"framer-eptl9l\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"KhGCHw06K\",style:{\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:textContent,verticalAlignment:\"top\",withExternalLayout:true})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-zkmsJ.framer-zem2a8, .framer-zkmsJ .framer-zem2a8 { display: block; }\",\".framer-zkmsJ.framer-1xk0oqv { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 0px 0px 0px 0px; position: relative; width: min-content; }\",\".framer-zkmsJ .framer-eptl9l { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-zkmsJ.framer-1xk0oqv { gap: 0px; } .framer-zkmsJ.framer-1xk0oqv > * { margin: 0px; margin-left: calc(10px / 2); margin-right: calc(10px / 2); } .framer-zkmsJ.framer-1xk0oqv > :first-child { margin-left: 0px; } .framer-zkmsJ.framer-1xk0oqv > :last-child { margin-right: 0px; } }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 16\n * @framerIntrinsicWidth 31\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"oihHTLkc4\":\"progress\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramerRZheGmE_a=withCSS(Component,css,\"framer-zkmsJ\");export default FramerRZheGmE_a;FramerRZheGmE_a.displayName=\"Progress\";FramerRZheGmE_a.defaultProps={height:16,width:31};addPropertyControls(FramerRZheGmE_a,{oihHTLkc4:{defaultValue:\"100\",displayTextArea:false,title:\"Progress\",type:ControlType.String}});addFonts(FramerRZheGmE_a,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://app.framerstatic.com/Inter-Regular.cyrillic-ext-CFTLRB35.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://app.framerstatic.com/Inter-Regular.cyrillic-KKLZBALH.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://app.framerstatic.com/Inter-Regular.greek-ext-ULEBLIFV.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://app.framerstatic.com/Inter-Regular.greek-IRHSNFQB.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://app.framerstatic.com/Inter-Regular.latin-ext-VZDUGU3Q.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://app.framerstatic.com/Inter-Regular.latin-JLQMKCHE.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://app.framerstatic.com/Inter-Regular.vietnamese-QK7VSWXK.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerRZheGmE_a\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"oihHTLkc4\\\":\\\"progress\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerIntrinsicWidth\":\"31\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"16\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RZheGmE_a.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{useScroll,useSpring,useTransform}from\"framer-motion\";export function withScrollProgress(Component){return props=>{const[scrollProgress,setScrollProgress]=useState(\"0\");const{scrollYProgress}=useScroll();const scaleY=useSpring(scrollYProgress,{stiffness:600,damping:30});const scaleYTransform=useTransform(scaleY,[0,1],[0,100]);useEffect(()=>scaleYTransform.onChange(latest=>{setScrollProgress(latest.toFixed(0));}),[scaleYTransform]);return /*#__PURE__*/_jsx(Component,{...props,progress:scrollProgress});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollProgress\":{\"type\":\"reactHoc\",\"name\":\"withScrollProgress\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Progress.map"],"mappings":"o0BAWa,AAVb,GAA2C,IAA4J,IAAkE,IAA4B,IAAyH,CAAM,EAAW,CAAC,WAAY,EAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAmB,EAAuO,EAAY,CAAC,QAAQ,GAAG,MAAM,EAAE,KAAK,EAAE,UAAU,IAAI,KAAK,QAAS,EAAO,EAAO,CAAC,EAAMA,WAAoB,GAAQ,iBAAiBA,GAAS,SAAiB,EAAMA,SAAuB,GAAQ,SAAiB,SAAsBA,GAAS,SAAiBA,EAAc,GAAW,EAAW,CAAC,CAAC,QAAM,WAAS,GAAG,CAAC,IAAM,EAAO,EAAiB,EAAoB,CAAO,EAAW,GAAmC,EAAO,WAAiB,EAAa,EAAc,KAAK,CAAC,GAAG,EAA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