{"version":3,"file":"shared-lib.0DzBi9T5.mjs","names":["useRef","useState","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/MCMJaDmvuT9iDLkdOS7t/dpcrfUcyMy6hRhUTgR2g/StickyHeader.js","https:/framerusercontent.com/modules/7hlsFNm0HLooedZYEyx5/h8BmiuGCcYCqVeDkJDNT/siteMetadata.js","https:/framerusercontent.com/modules/9mt8UxEgsol9cIDsU09R/b4fa3saADdxyku40PrwE/augiA20Il.js","https:/framerusercontent.com/modules/dmt5gbTJo5wNn9z6zJjp/cGjEh1xNi1fkMpyjA3r9/lR5Yga5oO.js"],"sourcesContent":["// Minimalist sticky section header with scroll-linked progress indicator\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,useRef,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * Sticky Section Header with Scroll Progress\n *\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 80\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function StickyHeader(props){const{title=\"About Us\",titleFont,titleColor=\"#1A1A1A\",backgroundColor=\"#FFFFFF\",trackColor=\"#E5E5E5\",progressColor=\"#1A1A1A\",strokeColor=\"#E5E5E5\",lineWidth=2,leftPadding=32,rightPadding=32}=props;const containerRef=useRef(null);const[scrollProgress,setScrollProgress]=useState(0);const isStatic=useIsStaticRenderer();// Track scroll progress within the section\nuseEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const handleScroll=()=>{if(!containerRef.current)return;const rect=containerRef.current.getBoundingClientRect();const windowHeight=window.innerHeight;// Calculate progress based on the element's position relative to viewport\n// Progress should be 0 when element top is at bottom of viewport\n// Progress should be 1 when element bottom is at top of viewport\nconst elementTop=rect.top;const elementBottom=rect.bottom;const elementHeight=rect.height;let progress=0;if(elementBottom<=0){// Element has completely passed through viewport\nprogress=1;}else if(elementTop>=windowHeight){// Element hasn't entered viewport yet\nprogress=0;}else{// Element is partially or fully in viewport\n// Calculate how much of the total scrollable distance has been covered\nconst totalScrollableDistance=elementHeight+windowHeight;const scrolledDistance=windowHeight-elementTop;progress=Math.max(0,Math.min(1,scrolledDistance/totalScrollableDistance));}startTransition(()=>setScrollProgress(progress));};window.addEventListener(\"scroll\",handleScroll,{passive:true});handleScroll()// Initial calculation\n;return()=>window.removeEventListener(\"scroll\",handleScroll);},[isStatic]);// For static renderer, show 30% progress\nconst displayProgress=isStatic?.3:scrollProgress;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"sticky\",top:0,zIndex:10,width:\"100%\",backgroundColor,borderBottom:`1px solid ${strokeColor}`,...props.style},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",paddingTop:32,paddingBottom:32,paddingLeft:leftPadding,paddingRight:rightPadding,maxWidth:\"100%\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:1,height:`${lineWidth}px`,backgroundColor:trackColor,marginRight:rightPadding,position:\"relative\",overflow:\"hidden\",borderRadius:`${lineWidth/2}px`},children:/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,height:\"100%\",backgroundColor:progressColor,borderRadius:`${lineWidth/2}px`,width:`${displayProgress*100}%`},animate:{width:`${displayProgress*100}%`},transition:{duration:props.speed,ease:\"easeOut\"}})}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:titleColor,whiteSpace:\"nowrap\",...titleFont},children:title})]})});}addPropertyControls(StickyHeader,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"About Us\"},titleFont:{type:ControlType.Font,title:\"Title Font\",defaultValue:{fontSize:\"24px\",variant:\"Semibold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#1A1A1A\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},trackColor:{type:ControlType.Color,title:\"Track Color\",defaultValue:\"#E5E5E5\"},progressColor:{type:ControlType.Color,title:\"Progress Color\",defaultValue:\"#1A1A1A\"},lineWidth:{type:ControlType.Number,title:\"Line Width\",defaultValue:2,min:1,max:8,step:1,unit:\"px\"},leftPadding:{type:ControlType.Number,title:\"Left Padding\",defaultValue:32,min:0,max:100,step:4,unit:\"px\"},rightPadding:{type:ControlType.Number,title:\"Right Padding\",defaultValue:32,min:0,max:100,step:4,unit:\"px\"},speed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:.3,min:.1,max:2,step:.1,unit:\"s\"},strokeColor:{type:ControlType.Color,title:\"Stroke Color\",defaultValue:\"#E5E5E5\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StickyHeader\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"80\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"800\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StickyHeader.map","// Generated by Framer (3ad0d99)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (7affe85)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"b1e17p\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"1p0g07z\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-ECxv0\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (7affe85)\nimport siteMetadata from\"#framer/local/siteMetadata/siteMetadata/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"18mptib\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-SC9sZ\",title:siteMetadata(params,activeLocale).title||\"Dark Theme\",viewport:\"width=1200\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"kQASG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,WAAW,YAAU,aAAW,UAAU,kBAAgB,UAAU,aAAW,UAAU,gBAAc,UAAU,cAAY,UAAU,YAAU,EAAE,cAAY,GAAG,eAAa,IAAI,EAAY,EAAaA,EAAO,KAAK,CAAM,CAAC,EAAe,GAAmBC,EAAS,EAAE,CAAO,EAAS,GAAqB,CAC5W,MAAc,CAAC,GAAG,GAAiB,IAAS,OAAY,OAAO,IAAM,MAAiB,CAAC,GAAG,CAAC,EAAa,QAAQ,OAAO,IAAM,EAAK,EAAa,QAAQ,uBAAuB,CAAO,EAAa,EAAO,YAGnM,EAAW,EAAK,IAAU,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