{"version":3,"file":"Progress.CqIiAEFk.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","React.useRef","React.useId","sharedStyle.className","className","RichText","sharedStyle.css","sharedStyle.fonts","useState"],"sources":["https:/framerusercontent.com/modules/3l1rWAkMKhPHRwXo3qjL/AXBSASDDdclufSOfH5II/RZheGmE_a.js","https:/framerusercontent.com/modules/jLnqqYyXVeZ5aqRMoBib/Y6NagowIR3Vg78QOQzzH/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/xcQAfH0b1A2BmJ1l90ca/hoid78oLeeXse7SBQrVx/l18Fo0cuF.js\";const cycleOrder=[\"ZzVwCOiPZ\"];const serializationHash=\"framer-d9V32\";const variantClassNames={ZzVwCOiPZ:\"framer-v-1xk0oqv\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};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??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})=>{return{...props,oihHTLkc4:progress??props.oihHTLkc4??\"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??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??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-d9V32.framer-zem2a8, .framer-d9V32 .framer-zem2a8 { display: block; }\",\".framer-d9V32.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-d9V32 .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-d9V32.framer-1xk0oqv { gap: 0px; } .framer-d9V32.framer-1xk0oqv > * { margin: 0px; margin-left: calc(10px / 2); margin-right: calc(10px / 2); } .framer-d9V32.framer-1xk0oqv > :first-child { margin-left: 0px; } .framer-d9V32.framer-1xk0oqv > :last-child { margin-right: 0px; } }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 16\n * @framerIntrinsicWidth 29\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-d9V32\");export default FramerRZheGmE_a;FramerRZheGmE_a.displayName=\"Progress\";FramerRZheGmE_a.defaultProps={height:16,width:29};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\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerRZheGmE_a\",\"slots\":[],\"annotations\":{\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"16\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"29\",\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"oihHTLkc4\\\":\\\"progress\\\"}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","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":"yfAC0C,IAA4J,IAAkE,IAA4B,IAAyH,EAAO,EAAW,CAAC,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,EAA+L,EAAY,CAAC,QAAQ,GAAG,MAAM,EAAE,KAAK,EAAE,UAAU,IAAI,KAAK,QAAQ,EAAQ,GAAQ,EAAM,IAAa,OAAO,GAAQ,UAAU,OAAO,GAAS,SAAiB,EAAM,EAAgB,OAAO,GAAQ,SAAiB,EAAe,OAAO,GAAS,SAAiB,EAAc,GAAW,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,CAAmB,EAAQ,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,YAAU,GAAG,CAAC,KAAK,UAAU,CAAU,CAAC,CAAC,EAAE,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,UAAQ,CAAC,CAA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