{"version":3,"file":"shared-lib.BmO2hKd5.mjs","names":["useState","useRef","fonts","css","className"],"sources":["https:/framerusercontent.com/modules/HSCYqS0pFDLIupM5B6Ab/HpM0aepp4J2Dxoq06nXk/HamburgerMenu.js","https:/framerusercontent.com/modules/KddekAcZzedsE4ZNqy3Z/U7sRM5uC348PFn8zharD/nn7QLnsqX.js","https:/framerusercontent.com/modules/CqYVYdDugFFcmmUblsY0/VLtnylcvBcMFDOzYu65c/vShcxa7jo.js","https:/framerusercontent.com/modules/nWiaGPqGP5zWOEiPutDv/EpxzLgB5V8Z023kvHhyp/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const menuItems=[{href:\"/\",label:\"Home\"},{href:\"/frameworks\",label:\"Frameworks\"},{href:\"/about\",label:\"About\"}];/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function HamburgerMenu(props){const{strokeColor=\"#FFFFFF\",strokeWidth=3,size=48,defaultChecked=false,onToggle,menuBackgroundColor=\"#000000\",menuTextColor=\"#FFFFFF\",menuFont}=props;const[isChecked,setIsChecked]=useState(defaultChecked);const overlayRef=useRef(null);const backdropRef=useRef(null);const setMenuState=checked=>{startTransition(()=>setIsChecked(checked));if(onToggle)onToggle(checked);};const handleChange=()=>setMenuState(!isChecked);useEffect(()=>{const backdrop=document.createElement(\"div\");const overlay=document.createElement(\"div\");document.body.appendChild(backdrop);document.body.appendChild(overlay);backdropRef.current=backdrop;overlayRef.current=overlay;backdrop.addEventListener(\"click\",()=>setMenuState(false));return()=>{document.body.removeChild(backdrop);document.body.removeChild(overlay);};},[]);useEffect(()=>{const overlay=overlayRef.current;const backdrop=backdropRef.current;if(!overlay||!backdrop)return;Object.assign(backdrop.style,{position:\"fixed\",top:\"0\",left:\"0\",width:\"100vw\",height:\"100vh\",backgroundColor:\"rgba(0,0,0,0.4)\",opacity:isChecked?\"1\":\"0\",pointerEvents:isChecked?\"auto\":\"none\",transition:\"opacity 300ms ease\",zIndex:\"9998\"});Object.assign(overlay.style,{position:\"fixed\",top:\"0\",left:\"0\",width:\"100vw\",height:\"50vh\",backgroundColor:menuBackgroundColor,borderRadius:\"0 0 24px 24px\",boxShadow:isChecked?\"0 8px 32px rgba(0,0,0,0.3)\":\"none\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",gap:\"32px\",opacity:isChecked?\"1\":\"0\",transform:isChecked?\"translateY(0)\":\"translateY(-100%)\",pointerEvents:isChecked?\"auto\":\"none\",transition:\"opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms cubic-bezier(0.4, 0, 0.2, 1)\",zIndex:\"9999\"});const fontStyles=menuFont||{};const linkStyle=`\n            color: ${menuTextColor};\n            text-decoration: none;\n            font-size: ${fontStyles.fontSize||\"28px\"};\n            font-weight: ${fontStyles.fontWeight||\"600\"};\n            letter-spacing: ${fontStyles.letterSpacing||\"-0.03em\"};\n            line-height: ${fontStyles.lineHeight||\"1em\"};\n            font-family: 'Manrope', sans-serif;\n        `;overlay.innerHTML=menuItems.map(item=>`<a href=\"${item.href}\" style=\"${linkStyle}\">${item.label}</a>`).join(\"\");overlay.querySelectorAll(\"a\").forEach(a=>{a.addEventListener(\"click\",()=>setMenuState(false));});},[isChecked,menuBackgroundColor,menuTextColor,menuFont]);return /*#__PURE__*/_jsxs(\"label\",{style:{cursor:\"pointer\",display:\"inline-block\",width:size,height:size,position:\"relative\",zIndex:1e4},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",checked:isChecked,onChange:handleChange,style:{display:\"none\"},\"aria-label\":\"Toggle menu\"}),/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 32 32\",style:{width:\"100%\",height:\"100%\",transform:isChecked?\"rotate(-45deg)\":\"rotate(0deg)\",transition:\"transform 600ms cubic-bezier(0.4, 0, 0.2, 1)\"},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M27 10 13 10C10.8 10 9 8.2 9 6 9 3.5 10.8 2 13 2 15.2 2 17 3.8 17 6L17 26C17 28.2 18.8 30 21 30 23.2 30 25 28.2 25 26 25 23.8 23.2 22 21 22L7 22\",fill:\"none\",stroke:strokeColor,strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:strokeWidth,strokeDasharray:isChecked?\"20 300\":\"12 63\",strokeDashoffset:isChecked?-32.42:0,style:{transition:\"stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1)\"}}),/*#__PURE__*/_jsx(\"path\",{d:\"M7 16 27 16\",fill:\"none\",stroke:strokeColor,strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:strokeWidth})]})]});}addPropertyControls(HamburgerMenu,{strokeColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFFFFF\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:3,min:1,max:6,step:.5},size:{type:ControlType.Number,title:\"Size\",defaultValue:48,min:24,max:500,step:4,unit:\"px\"},defaultChecked:{type:ControlType.Boolean,title:\"Default State\",defaultValue:false,enabledTitle:\"Open\",disabledTitle:\"Closed\",description:\"Made with \\\\u2764\\\\uFE0F by [Pixelcot](https://www.pixelcot.com)\"},link1:{type:ControlType.Link,title:\"Link 1\",defaultValue:\"/\"},link1Label:{type:ControlType.String,title:\"Link 1 Label\",defaultValue:\"Home\"},link2:{type:ControlType.Link,title:\"Link 2\",defaultValue:\"/frameworks\"},link2Label:{type:ControlType.String,title:\"Link 2 Label\",defaultValue:\"Frameworks\"},link3:{type:ControlType.Link,title:\"Link 3\",defaultValue:\"/about\"},link3Label:{type:ControlType.String,title:\"Link 3 Label\",defaultValue:\"About\"},menuBackgroundColor:{type:ControlType.Color,title:\"Menu Background\",defaultValue:\"#000000\"},menuTextColor:{type:ControlType.Color,title:\"Menu Text Color\",defaultValue:\"#FFFFFF\"},menuFont:{type:ControlType.Font,title:\"Menu Font\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},onToggle:{type:ControlType.EventHandler}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HamburgerMenu\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HamburgerMenu.map","// Generated by Framer (0ea0c8c)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-70trX .framer-styles-preset-1sq9cpq:not(.rich-text-wrapper), .framer-70trX .framer-styles-preset-1sq9cpq.rich-text-wrapper a {  }\"];export const className=\"framer-70trX\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0ea0c8c)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"FS;Manrope-medium\",\"FS;Manrope-bold\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Manrope\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Manrope\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/BNWG6MUI4RTC6WEND2VPDH4MHMIVU3XZ/R5YXY5FMVG6PXU36GNEEA24MIPMEPGSM/CIM4KQCLZSMMLWPVH25IDDSTY4ENPHEY.woff2\",weight:\"500\"},{cssFamilyName:\"Manrope\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Manrope\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/NGBUP45ES3F7RD5XGKPEDJ6QEPO4TMOK/EXDVWJ2EDDVVV65UENMX33EDDYBX6OF7/6P4FPMFQH7CCC7RZ4UU4NKSGJ2RLF7V5.woff2\",weight:\"700\"}]}];export const css=[\".framer-k5HuL .framer-styles-preset-1pn5pko:not(.rich-text-wrapper), .framer-k5HuL .framer-styles-preset-1pn5pko.rich-text-wrapper p { --framer-font-family: \\\"Manrope\\\", \\\"Manrope Placeholder\\\", sans-serif; --framer-font-family-bold: \\\"Manrope\\\", \\\"Manrope Placeholder\\\", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-variation-axes: normal; --framer-font-weight: 500; --framer-font-weight-bold: 700; --framer-letter-spacing: 0.01em; --framer-line-height: 1.4em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: #ffffff; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }\"];export const className=\"framer-k5HuL\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0ea0c8c)\nexport default function metadata(params,activeLocale){return{description:\"Everything you need to succeed\",favicon:\"https://framerusercontent.com/assets/Oo9ltTMrdOYRw4KN5748RVDpDYI.svg\",robots:\"max-image-preview:large\",title:\"greensquare.ai\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractV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