{"version":3,"file":"Nav.B__Id5re.mjs","names":["useState","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/ugWya90zQE02GIRTpJyW/N1n8qFhoDlG1a5mIDhu8/Nav.js"],"sourcesContent":["// Nav component with logo, menu items, and call-to-action button\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo,useCallback,useState,useEffect,startTransition}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Nav(props){const{logo=\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",logoAlt=\"Logo\",navItems,ctaLabel,ctaHref,backgroundColor,textColor,ctaBackgroundColor,ctaTextColor,logoFont,navFont,ctaFont,mobileBreakpoint=768,borderRadius=0,padding=\"16px 24px\",shadow=false}=props;const[isMobileMenuOpen,setIsMobileMenuOpen]=useState(false);const[isMobile,setIsMobile]=useState(false);// Check screen size and update mobile state\nuseEffect(()=>{if(typeof window===\"undefined\")return;const checkScreenSize=()=>{startTransition(()=>{setIsMobile(window.innerWidth<mobileBreakpoint);});};checkScreenSize();window.addEventListener(\"resize\",checkScreenSize);return()=>window.removeEventListener(\"resize\",checkScreenSize);},[mobileBreakpoint]);const toggleMobileMenu=useCallback(()=>{startTransition(()=>{setIsMobileMenuOpen(prev=>!prev);});},[]);const closeMobileMenu=useCallback(()=>{startTransition(()=>{setIsMobileMenuOpen(false);});},[]);const isFixedWidth=props?.style&&props.style.width===\"100%\";const memoizedNavItems=useMemo(()=>navItems.map((item,index)=>/*#__PURE__*/_jsx(\"a\",{href:item.href,style:{color:textColor,textDecoration:\"none\",transition:\"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)\",cursor:\"pointer\",display:\"block\",padding:isMobile?\"12px 0\":\"0\",borderBottom:isMobile?`1px solid ${textColor}20`:\"none\",transform:\"translateY(0)\",...navFont},onMouseEnter:e=>{e.currentTarget.style.opacity=\"0.7\";if(!isMobile){e.currentTarget.style.transform=\"translateY(-2px)\";}},onMouseLeave:e=>{e.currentTarget.style.opacity=\"1\";e.currentTarget.style.transform=\"translateY(0)\";},onClick:isMobile?closeMobileMenu:undefined,children:item.label},index)),[navItems,textColor,navFont,isMobile,closeMobileMenu]);return /*#__PURE__*/_jsxs(\"nav\",{style:{...props.style,position:\"relative\",...isFixedWidth?{...props?.style}:{minWidth:\"max-content\"},backgroundColor,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:isMobile?\"12px 16px\":padding,gap:isMobile?\"16px\":\"32px\",flexWrap:\"nowrap\",borderRadius:`${borderRadius}px`,boxShadow:shadow?\"0 2px 8px rgba(0, 0, 0, 0.1)\":\"none\"},role:\"navigation\",\"aria-label\":\"Main navigation\",children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",zIndex:1001},children:/*#__PURE__*/_jsx(\"img\",{src:logo,alt:logoAlt,style:{height:isMobile?\"28px\":\"32px\",width:\"auto\",objectFit:\"contain\"}})}),!isMobile&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"32px\",flex:1,justifyContent:\"center\"},children:memoizedNavItems}),!isMobile&&/*#__PURE__*/_jsx(\"a\",{href:ctaHref,style:{backgroundColor:ctaBackgroundColor,color:ctaTextColor,padding:\"12px 24px\",borderRadius:\"8px\",textDecoration:\"none\",transition:\"transform 0.2s ease, box-shadow 0.2s ease\",cursor:\"pointer\",border:\"none\",whiteSpace:\"nowrap\",...ctaFont},onMouseEnter:e=>{e.currentTarget.style.transform=\"translateY(-1px)\";e.currentTarget.style.boxShadow=\"0 4px 12px rgba(0, 0, 0, 0.15)\";},onMouseLeave:e=>{e.currentTarget.style.transform=\"translateY(0)\";e.currentTarget.style.boxShadow=\"none\";},children:ctaLabel}),isMobile&&/*#__PURE__*/_jsxs(\"button\",{onClick:toggleMobileMenu,style:{background:\"none\",border:\"none\",cursor:\"pointer\",padding:\"8px\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",width:\"32px\",height:\"32px\",zIndex:1001},\"aria-label\":\"Toggle mobile menu\",\"aria-expanded\":isMobileMenuOpen,children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",width:\"20px\",height:\"2px\",backgroundColor:textColor,transition:\"all 0.3s ease\",transform:isMobileMenuOpen?\"rotate(45deg) translate(5px, 5px)\":\"none\"}}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",width:\"20px\",height:\"2px\",backgroundColor:textColor,margin:\"4px 0\",transition:\"all 0.3s ease\",opacity:isMobileMenuOpen?0:1}}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",width:\"20px\",height:\"2px\",backgroundColor:textColor,transition:\"all 0.3s ease\",transform:isMobileMenuOpen?\"rotate(-45deg) translate(7px, -6px)\":\"none\"}})]}),isMobile&&isMobileMenuOpen&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,width:\"100vw\",height:\"100vh\",backgroundColor:\"rgba(0, 0, 0, 0.5)\",zIndex:999,animation:\"fadeIn 0.3s ease\"},onClick:closeMobileMenu,children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                            @keyframes fadeIn {\n                                from { opacity: 0; }\n                                to { opacity: 1; }\n                            }\n                            @keyframes slideIn {\n                                from { transform: translateX(100%); }\n                                to { transform: translateX(0); }\n                            }\n                        `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,right:0,bottom:0,width:\"80%\",maxWidth:\"320px\",backgroundColor:backgroundColor,boxShadow:\"-2px 0 8px rgba(0, 0, 0, 0.1)\",display:\"flex\",flexDirection:\"column\",padding:\"80px 24px 24px 24px\",gap:\"8px\",animation:\"slideIn 0.3s ease\",overflowY:\"auto\",zIndex:1e3},onClick:e=>e.stopPropagation(),children:[memoizedNavItems,/*#__PURE__*/_jsx(\"a\",{href:ctaHref,style:{backgroundColor:ctaBackgroundColor,color:ctaTextColor,padding:\"16px 32px\",borderRadius:\"8px\",textDecoration:\"none\",cursor:\"pointer\",border:\"none\",marginTop:\"24px\",textAlign:\"center\",transition:\"transform 0.2s ease\",...ctaFont},onClick:closeMobileMenu,onMouseEnter:e=>{e.currentTarget.style.transform=\"scale(0.98)\";},onMouseLeave:e=>{e.currentTarget.style.transform=\"scale(1)\";},children:ctaLabel})]})]})]});}addPropertyControls(Nav,{logo:{type:ControlType.File,title:\"Logo\",allowedFileTypes:[\"png\",\"jpg\",\"jpeg\",\"svg\",\"webp\"]},logoAlt:{type:ControlType.String,title:\"Logo Alt Text\",defaultValue:\"Logo\"},navItems:{type:ControlType.Array,title:\"Nav Items\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Home\"},href:{type:ControlType.String,title:\"Link\",defaultValue:\"/\"}}},defaultValue:[{label:\"Home\",href:\"/\"},{label:\"About\",href:\"/about\"},{label:\"Services\",href:\"/services\"},{label:\"Contact\",href:\"/contact\"}]},ctaLabel:{type:ControlType.String,title:\"CTA Label\",defaultValue:\"Get Started\"},ctaHref:{type:ControlType.String,title:\"CTA Link\",defaultValue:\"/get-started\"},mobileBreakpoint:{type:ControlType.Number,title:\"Mobile Breakpoint\",defaultValue:768,min:320,max:1200,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},ctaBackgroundColor:{type:ControlType.Color,title:\"CTA Background\",defaultValue:\"#000000\"},ctaTextColor:{type:ControlType.Color,title:\"CTA Text Color\",defaultValue:\"#FFFFFF\"},logoFont:{type:ControlType.Font,title:\"Logo Font\",defaultValue:{fontSize:\"18px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},navFont:{type:ControlType.Font,title:\"Nav Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},ctaFont:{type:ControlType.Font,title:\"CTA Font\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:32,step:1,unit:\"px\"},padding:{type:ControlType.String,title:\"Padding\",defaultValue:\"16px 24px\"},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Nav\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Nav.map"],"mappings":"gVAIG,SAAwB,EAAI,EAAM,CAAC,GAAK,CAAC,OAAK,sEAAsE,UAAQ,OAAO,WAAS,WAAS,UAAQ,kBAAgB,YAAU,qBAAmB,eAAa,WAAS,UAAQ,UAAQ,mBAAiB,IAAI,eAAa,EAAE,UAAQ,YAAY,SAAO,IAAO,EAAW,CAAC,EAAiB,GAAqBA,EAAS,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAM,CACta,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAoB,CAAC,MAAoB,CAAC,EAAY,EAAO,WAAW,EAAiB,EAAG,EAAuE,OAApE,GAAiB,CAAC,EAAO,iBAAiB,SAAS,EAAgB,KAAW,EAAO,oBAAoB,SAAS,EAAgB,EAAG,CAAC,EAAiB,CAAC,CAAC,IAAM,EAAiBC,MAAgB,CAAC,MAAoB,CAAC,EAAoB,GAAM,CAAC,EAAK,EAAG,EAAG,EAAE,CAAC,CAAO,EAAgBA,MAAgB,CAAC,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