{"version":3,"file":"Header.MotX5eUD.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/x7M15kcWEjxigxbobm4v/K9MGyTDeVkQHbQ1TwEdq/Header.js"],"sourcesContent":["// Responsive header with logo and customizable links, includes hamburger menu for mobile\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Header(props){const{logo={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Logo\"},link1Text,link1Url,link2Text,link2Url,showLink1,showLink2,backgroundColor,textColor,logoHeight,logoWidth,logoBorderRadius,font,mobileBreakpoint,headerPaddingTop,headerPaddingBottom,headerPaddingLeft,headerPaddingRight,headerMarginTop,headerMarginBottom,linkGap,buttonText,buttonUrl,buttonColor,buttonTextColor,logoText,logoLinkUrl,logoColor,logoFontSize}=props;const[isMenuOpen,setIsMenuOpen]=useState(false);const[isMobile,setIsMobile]=useState(false);const[isButtonHovered,setIsButtonHovered]=useState(false);const[isMounted,setIsMounted]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const checkMobile=()=>{const mobile=window.innerWidth<=mobileBreakpoint;startTransition(()=>{setIsMobile(mobile);setIsMounted(true);});};// Initial check\ncheckMobile();window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);},[mobileBreakpoint]);// Don't render until we know if it's mobile or desktop\nif(!isMounted){return /*#__PURE__*/_jsx(\"header\",{style:{position:\"relative\",width:\"100%\",backgroundColor,paddingTop:`${headerPaddingTop}px`,paddingBottom:`${headerPaddingBottom}px`,paddingLeft:`${headerPaddingLeft}px`,paddingRight:`${headerPaddingRight}px`,marginTop:`${headerMarginTop}px`,marginBottom:`${headerMarginBottom}px`,boxShadow:\"0 2px 8px rgba(0,0,0,0.08)\",minHeight:\"60px\"}});}const toggleMenu=()=>{startTransition(()=>{setIsMenuOpen(!isMenuOpen);});};const linkStyle={color:textColor,textDecoration:\"none\",cursor:\"pointer\",transition:\"opacity 0.2s ease\",...font};const buttonStyle={backgroundColor:buttonColor,color:buttonTextColor,border:\"none\",padding:\"12px 24px\",borderRadius:\"8px\",cursor:\"pointer\",textDecoration:\"none\",display:\"inline-block\",transition:\"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)\",transform:isButtonHovered?\"scale(1.05)\":\"scale(1)\",boxShadow:isButtonHovered?`0 8px 24px ${buttonColor}66, 0 0 20px ${buttonColor}44`:`0 2px 8px ${buttonColor}33`,...font};return /*#__PURE__*/_jsxs(\"header\",{style:{position:\"relative\",width:\"100%\",backgroundColor,paddingTop:`${headerPaddingTop}px`,paddingBottom:`${headerPaddingBottom}px`,paddingLeft:`${headerPaddingLeft}px`,paddingRight:`${headerPaddingRight}px`,marginTop:`${headerMarginTop}px`,marginBottom:`${headerMarginBottom}px`,boxShadow:\"0 2px 8px rgba(0,0,0,0.08)\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",maxWidth:\"1200px\",margin:\"0 auto\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"a\",{href:logoLinkUrl,style:{position:\"absolute\",left:0,color:logoColor,textDecoration:\"none\",fontSize:`${logoFontSize}px`,fontWeight:\"bold\",cursor:\"pointer\",transition:\"opacity 0.2s ease\"},onMouseEnter:e=>e.currentTarget.style.opacity=\"0.7\",onMouseLeave:e=>e.currentTarget.style.opacity=\"1\",children:logoText}),!isMobile&&/*#__PURE__*/_jsxs(\"nav\",{style:{display:\"flex\",gap:`${linkGap}px`,alignItems:\"center\"},children:[showLink1&&/*#__PURE__*/_jsx(\"a\",{href:link1Url,style:linkStyle,onMouseEnter:e=>e.currentTarget.style.opacity=\"0.7\",onMouseLeave:e=>e.currentTarget.style.opacity=\"1\",children:link1Text}),showLink2&&/*#__PURE__*/_jsx(\"a\",{href:link2Url,style:linkStyle,onMouseEnter:e=>e.currentTarget.style.opacity=\"0.7\",onMouseLeave:e=>e.currentTarget.style.opacity=\"1\",children:link2Text}),/*#__PURE__*/_jsx(\"a\",{href:buttonUrl,style:buttonStyle,onMouseEnter:()=>startTransition(()=>setIsButtonHovered(true)),onMouseLeave:()=>startTransition(()=>setIsButtonHovered(false)),children:buttonText})]}),/*#__PURE__*/_jsxs(\"button\",{onClick:toggleMenu,style:{background:\"transparent\",border:\"none\",cursor:\"pointer\",padding:\"8px\",display:isMobile?\"flex\":\"none\",flexDirection:\"column\",gap:\"4px\",zIndex:1001},\"aria-label\":\"Toggle menu\",children:[/*#__PURE__*/_jsx(\"span\",{style:{width:\"24px\",height:\"2px\",backgroundColor:textColor,transition:\"all 0.3s ease\",transform:isMenuOpen?\"rotate(45deg) translateY(6px)\":\"none\"}}),/*#__PURE__*/_jsx(\"span\",{style:{width:\"24px\",height:\"2px\",backgroundColor:textColor,transition:\"all 0.3s ease\",opacity:isMenuOpen?0:1}}),/*#__PURE__*/_jsx(\"span\",{style:{width:\"24px\",height:\"2px\",backgroundColor:textColor,transition:\"all 0.3s ease\",transform:isMenuOpen?\"rotate(-45deg) translateY(-6px)\":\"none\"}})]})]}),/*#__PURE__*/_jsx(\"nav\",{style:{position:\"absolute\",top:\"100%\",left:0,right:0,backgroundColor,display:isMobile?\"flex\":\"none\",flexDirection:\"column\",alignItems:\"center\",gap:\"16px\",padding:isMenuOpen?\"24px\":\"0 24px\",maxHeight:isMenuOpen?\"300px\":\"0\",overflow:\"hidden\",transition:\"all 0.3s ease\",boxShadow:isMenuOpen?\"0 4px 8px rgba(0,0,0,0.08)\":\"none\",zIndex:1e3},children:/*#__PURE__*/_jsx(\"a\",{href:buttonUrl,style:{...buttonStyle,width:\"100%\",textAlign:\"center\"},onClick:()=>startTransition(()=>setIsMenuOpen(false)),children:buttonText})})]});}addPropertyControls(Header,{logoText:{type:ControlType.String,title:\"Logo Text\",defaultValue:\"TV\"},logoLinkUrl:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"/\"},logoColor:{type:ControlType.Color,title:\"Logo Color\",defaultValue:\"#FFFFFF\"},logoFontSize:{type:ControlType.Number,title:\"Logo Font Size\",defaultValue:24,min:12,max:48,step:1,unit:\"px\"},logo:{type:ControlType.ResponsiveImage,title:\"Logo\"},logoHeight:{type:ControlType.Number,title:\"Logo Height\",defaultValue:40,min:20,max:100,step:1,unit:\"px\"},logoWidth:{type:ControlType.Number,title:\"Logo Width\",defaultValue:0,min:0,max:300,step:1,unit:\"px\"},logoBorderRadius:{type:ControlType.Number,title:\"Logo Radius\",defaultValue:0,min:0,max:50,step:1,unit:\"px\"},showLink1:{type:ControlType.Boolean,title:\"Show Link 1\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},link1Text:{type:ControlType.String,title:\"Link 1 Text\",defaultValue:\"About\",hidden:({showLink1})=>!showLink1},link1Url:{type:ControlType.String,title:\"Link 1 URL\",defaultValue:\"#about\",hidden:({showLink1})=>!showLink1},showLink2:{type:ControlType.Boolean,title:\"Show Link 2\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},link2Text:{type:ControlType.String,title:\"Link 2 Text\",defaultValue:\"Contact\",hidden:({showLink2})=>!showLink2},link2Url:{type:ControlType.String,title:\"Link 2 URL\",defaultValue:\"#contact\",hidden:({showLink2})=>!showLink2},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},headerPaddingTop:{type:ControlType.Number,title:\"Padding Top\",defaultValue:16,min:0,max:100,step:1,unit:\"px\"},headerPaddingBottom:{type:ControlType.Number,title:\"Padding Bottom\",defaultValue:16,min:0,max:100,step:1,unit:\"px\"},headerPaddingLeft:{type:ControlType.Number,title:\"Padding Left\",defaultValue:24,min:0,max:100,step:1,unit:\"px\"},headerPaddingRight:{type:ControlType.Number,title:\"Padding Right\",defaultValue:24,min:0,max:100,step:1,unit:\"px\"},headerMarginTop:{type:ControlType.Number,title:\"Margin Top\",defaultValue:0,min:0,max:100,step:1,unit:\"px\"},headerMarginBottom:{type:ControlType.Number,title:\"Margin Bottom\",defaultValue:0,min:0,max:100,step:1,unit:\"px\"},linkGap:{type:ControlType.Number,title:\"Link Gap\",defaultValue:32,min:0,max:100,step:1,unit:\"px\"},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"How we work\"},buttonUrl:{type:ControlType.String,title:\"Button URL\",defaultValue:\"#how-we-work\"},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#D4AF37\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\",defaultValue:\"#000000\"},mobileBreakpoint:{type:ControlType.Number,title:\"Mobile Breakpoint\",defaultValue:768,min:320,max:1024,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Header\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Header.map"],"mappings":"6MAIG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,OAAK,CAAC,IAAI,sEAAsE,IAAI,OAAO,CAAC,YAAU,WAAS,YAAU,WAAS,YAAU,YAAU,kBAAgB,YAAU,aAAW,YAAU,mBAAiB,OAAK,mBAAiB,mBAAiB,sBAAoB,oBAAkB,qBAAmB,kBAAgB,qBAAmB,UAAQ,aAAW,YAAU,cAAY,kBAAgB,WAAS,cAAY,YAAU,gBAAc,EAAW,CAAC,EAAW,GAAeA,EAAS,GAAM,CAAM,CAAC,EAAS,GAAa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