{"version":3,"file":"shared-lib.gHukTmeF.mjs","names":["useState","useCallback"],"sources":["https:/framerusercontent.com/modules/we7GVyAQXrf2VSKVl8Me/Bt00hqBTQMndTQDzfO2A/MobileNav.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useCallback}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function MobileNav(props){const{logoUrl,homeLink,bgColor,textColor,overlayBg,overlayTextColor,links,navHeight,overlayHeight,blurAmount}=props;const[isOpen,setIsOpen]=useState(false);const parsedLinks=links?links.split(\",\").map(item=>{const[label,url]=item.split(\"|\").map(s=>s.trim());return{label,url};}):[];const removeOverlay=useCallback(()=>{const existing=document.getElementById(\"hadron-mobile-nav-overlay\");if(existing)existing.remove();const style=document.getElementById(\"hadron-nav-style\");if(style)style.remove();const bd=document.getElementById(\"hadron-mobile-nav-backdrop\");if(bd)bd.remove();},[]);const openMenu=useCallback(()=>{removeOverlay();const style=document.createElement(\"style\");style.id=\"hadron-nav-style\";style.textContent=`\n            @keyframes hadronSlideDown {\n                from { opacity: 0; transform: translateY(-10px); }\n                to { opacity: 1; transform: translateY(0); }\n            }\n            @keyframes hadronFadeIn {\n                from { opacity: 0; }\n                to { opacity: 1; }\n            }\n        `;document.head.appendChild(style);const overlay=document.createElement(\"div\");overlay.id=\"hadron-mobile-nav-overlay\";overlay.style.cssText=`\n            position: fixed !important;\n            top: 0 !important;\n            left: 0 !important;\n            width: 100vw !important;\n            height: ${overlayHeight}px !important;\n            background: ${overlayBg} !important;\n            backdrop-filter: blur(${blurAmount}px) !important;\n            -webkit-backdrop-filter: blur(${blurAmount}px) !important;\n            z-index: 999999 !important;\n            display: flex !important;\n            flex-direction: column !important;\n            overflow: hidden !important;\n            animation: hadronSlideDown 0.25s ease-out forwards !important;\n            border-bottom: 1px solid rgba(0,0,0,0.08) !important;\n        `;const topBar=document.createElement(\"div\");topBar.style.cssText=`\n            width: 100%;\n            height: ${navHeight}px;\n            min-height: ${navHeight}px;\n            display: flex;\n            flex-direction: row;\n            justify-content: space-between;\n            align-items: center;\n            padding: 0 20px;\n            box-sizing: border-box;\n        `;const logo=document.createElement(\"a\");logo.href=homeLink;logo.style.cssText=`\n            text-decoration: none;\n            display: block;\n        `;const logoImg=document.createElement(\"div\");logoImg.style.cssText=`\n            width: 80px;\n            height: 22px;\n            background-image: url(${logoUrl});\n            background-size: contain;\n            background-repeat: no-repeat;\n            background-position: center;\n            cursor: pointer;\n        `;logo.appendChild(logoImg);const closeBtn=document.createElement(\"button\");closeBtn.style.cssText=`\n            background: none;\n            border: none;\n            cursor: pointer;\n            padding: 4px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n        `;closeBtn.innerHTML=`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n            <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" stroke=\"${overlayTextColor}\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\n            <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" stroke=\"${overlayTextColor}\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>\n        </svg>`;closeBtn.addEventListener(\"click\",()=>{removeOverlay();setIsOpen(false);});topBar.appendChild(logo);topBar.appendChild(closeBtn);const divider=document.createElement(\"div\");divider.style.cssText=`\n            width: calc(100% - 40px);\n            height: 1px;\n            background: rgba(0,0,0,0.1);\n            margin: 0 auto;\n        `;const linksContainer=document.createElement(\"div\");linksContainer.style.cssText=`\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            flex: 1;\n            gap: 8px;\n            padding: 16px 20px;\n        `;parsedLinks.forEach((link,index)=>{const a=document.createElement(\"a\");a.href=link.url;a.textContent=link.label;a.style.cssText=`\n                font-family: 'JetBrains Mono', monospace;\n                font-weight: 500;\n                font-size: 13px;\n                line-height: 1.4em;\n                letter-spacing: 0.08em;\n                text-transform: uppercase;\n                color: ${overlayTextColor};\n                text-decoration: none;\n                padding: 12px 24px;\n                width: 100%;\n                text-align: center;\n                border-radius: 8px;\n                cursor: pointer;\n                transition: background 0.15s ease;\n                animation: hadronFadeIn 0.2s ease-out ${index*.05}s both;\n                box-sizing: border-box;\n                -webkit-tap-highlight-color: transparent;\n                display: block;\n            `;a.addEventListener(\"mouseenter\",()=>{a.style.background=\"rgba(0,0,0,0.05)\";});a.addEventListener(\"mouseleave\",()=>{a.style.background=\"none\";});linksContainer.appendChild(a);});overlay.appendChild(topBar);overlay.appendChild(divider);overlay.appendChild(linksContainer);const backdrop=document.createElement(\"div\");backdrop.id=\"hadron-mobile-nav-backdrop\";backdrop.style.cssText=`\n            position: fixed !important;\n            top: ${overlayHeight}px !important;\n            left: 0 !important;\n            width: 100vw !important;\n            height: calc(100vh - ${overlayHeight}px) !important;\n            z-index: 999998 !important;\n            background: rgba(0,0,0,0.3) !important;\n            animation: hadronFadeIn 0.2s ease-out forwards !important;\n        `;backdrop.addEventListener(\"click\",()=>{removeOverlay();setIsOpen(false);});document.body.appendChild(backdrop);document.body.appendChild(overlay);setIsOpen(true);},[overlayBg,overlayTextColor,logoUrl,homeLink,navHeight,overlayHeight,blurAmount,parsedLinks,removeOverlay]);useEffect(()=>{return()=>removeOverlay();},[removeOverlay]);const wrapperStyle={width:\"100%\",height:navHeight,position:\"relative\",zIndex:9999};const closedNavStyle={width:\"100%\",height:navHeight,backgroundColor:bgColor,display:\"flex\",flexDirection:\"row\",justifyContent:\"space-between\",alignItems:\"center\",padding:\"0 20px\",boxSizing:\"border-box\"};const logoStyle={width:80,height:22,backgroundImage:`url(${logoUrl})`,backgroundSize:\"contain\",backgroundRepeat:\"no-repeat\",backgroundPosition:\"center\",cursor:\"pointer\"};const buttonStyle={background:\"none\",border:\"none\",cursor:\"pointer\",padding:4,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};return /*#__PURE__*/_jsx(\"div\",{style:wrapperStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:closedNavStyle,children:[/*#__PURE__*/_jsx(\"a\",{href:homeLink,style:{textDecoration:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{style:logoStyle})}),/*#__PURE__*/_jsx(\"button\",{style:buttonStyle,onClick:openMenu,\"aria-label\":\"Open menu\",children:/*#__PURE__*/_jsxs(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"4\",y1:\"7\",x2:\"20\",y2:\"7\",stroke:textColor,strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"4\",y1:\"12\",x2:\"20\",y2:\"12\",stroke:textColor,strokeWidth:\"1.5\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"4\",y1:\"17\",x2:\"20\",y2:\"17\",stroke:textColor,strokeWidth:\"1.5\",strokeLinecap:\"round\"})]})})]})});}MobileNav.defaultProps={logoUrl:\"https://framerusercontent.com/images/41GkRr2iuA7EbXeqSG9lxFxSRug.png\",homeLink:\"/#hero\",bgColor:\"rgb(0, 0, 0)\",textColor:\"rgb(255, 255, 255)\",overlayBg:\"rgba(255, 255, 255, 0.85)\",overlayTextColor:\"rgb(0, 0, 0)\",links:\"COMMERCIALS|/commercials,FEATURES|/features,SERVICES|/services,CONTACT|/contact\",navHeight:64,overlayHeight:340,blurAmount:20};addPropertyControls(MobileNav,{logoUrl:{type:ControlType.Image,title:\"Logo\"},homeLink:{type:ControlType.String,title:\"Home Link\",defaultValue:\"/#hero\"},bgColor:{type:ControlType.Color,title:\"Nav Background\",defaultValue:\"rgb(0, 0, 0)\"},textColor:{type:ControlType.Color,title:\"Nav Text\",defaultValue:\"rgb(255, 255, 255)\"},overlayBg:{type:ControlType.Color,title:\"Menu Background\",defaultValue:\"rgba(255, 255, 255, 0.85)\"},overlayTextColor:{type:ControlType.Color,title:\"Menu Text\",defaultValue:\"rgb(0, 0, 0)\"},links:{type:ControlType.String,title:\"Links\",description:\"Format: Label|URL, separated by commas\",defaultValue:\"COMMERCIALS|/commercials,FEATURES|/features,SERVICES|/services,CONTACT|/contact\"},navHeight:{type:ControlType.Number,title:\"Nav Height\",defaultValue:64,min:40,max:120,step:1},overlayHeight:{type:ControlType.Number,title:\"Menu Height\",defaultValue:340,min:200,max:600,step:10},blurAmount:{type:ControlType.Number,title:\"Blur Amount\",defaultValue:20,min:0,max:40,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MobileNav\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MobileNav.map"],"mappings":"0LAGG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,WAAS,UAAQ,YAAU,YAAU,mBAAiB,QAAM,YAAU,gBAAc,cAAY,EAAW,CAAC,EAAO,GAAWA,EAAS,GAAM,CAAO,EAAY,EAAM,EAAM,MAAM,IAAI,CAAC,IAAI,GAAM,CAAC,GAAK,CAAC,EAAM,GAAK,EAAK,MAAM,IAAI,CAAC,IAAI,GAAG,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,QAAM,MAAI,EAAG,CAAC,EAAE,CAAO,EAAcC,MAAgB,CAAC,IAAM,EAAS,SAAS,eAAe,4BAA4B,CAAI,GAAS,EAAS,QAAQ,CAAC,IAAM,EAAM,SAAS,eAAe,mBAAmB,CAAI,GAAM,EAAM,QAAQ,CAAC,IAAM,EAAG,SAAS,eAAe,6BAA6B,CAAI,GAAG,EAAG,QAAQ,EAAG,EAAE,CAAC,CAAO,EAASA,MAAgB,CAAC,GAAe,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,mBAAmB,EAAM,YAAY;;;;;;;;;UASpvB,SAAS,KAAK,YAAY,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