{"version":3,"file":"Menu.BNVfbQXR.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/BOhFmj1eQBZghbtu3G7j/57zpgUUp2HFXMG4iYGev/Menu.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export function Menu(props){const{buttonText,items,images,background,closeIcon}=props;const[isOpen,setIsOpen]=React.useState(false);const openLabel=(buttonText||\"\").toUpperCase();const closeLabel=(closeIcon||\"\").toUpperCase();const toggle=()=>setIsOpen(!isOpen);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(motion.div,{style:{position:\"fixed\",bottom:28,right:28,width:62,height:62,borderRadius:\"50%\",backgroundColor:\"#eee\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0px 2px 10px rgba(0,0,0,0.1)\",cursor:\"pointer\",zIndex:1e3,fontFamily:\"inherit\",textTransform:\"uppercase\",fontWeight:600,letterSpacing:.5},whileTap:{scale:.95},onClick:toggle,children:isOpen?closeLabel:openLabel}),/*#__PURE__*/_jsx(AnimatePresence,{children:isOpen&&/*#__PURE__*/_jsxs(motion.div,{initial:{y:\"100%\"},animate:{y:0},exit:{y:\"100%\"},transition:{type:\"spring\",damping:25,stiffness:120},style:{position:\"fixed\",top:\"75%\",left:0,width:\"100%\",height:\"25vh\",backgroundColor:background,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",padding:20,boxSizing:\"border-box\",zIndex:900,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:12},children:items.map((item,index)=>/*#__PURE__*/_jsx(motion.div,{style:{marginBottom:12,fontWeight:500,fontSize:24,textAlign:\"center\"},children:/*#__PURE__*/_jsx(\"a\",{href:item.link,style:{color:\"inherit\",textDecoration:\"none\"},children:item.text})},index))}),images.length>0&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:8,maxWidth:\"90%\",overflow:\"hidden\"},children:images.slice(0,4).map((src,i)=>/*#__PURE__*/_jsx(motion.img,{src:src,alt:\"\",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:i*.05},style:{width:60,height:60,objectFit:\"cover\",borderRadius:6}},i))})]})})]});}Menu.defaultProps={buttonText:\"MENU\",items:[{text:\"Home\",link:\"/\"},{text:\"Portfolio\",link:\"/projects\"},{text:\"About\",link:\"/about\"},{text:\"Contact\",link:\"/about\"}],images:[],background:\"white\",closeIcon:\"CLOSE\"};addPropertyControls(Menu,{buttonText:{type:ControlType.String,title:\"Open Icon\",defaultValue:\"MENU\"},closeIcon:{type:ControlType.String,title:\"Close Icon\",defaultValue:\"CLOSE\"},items:{type:ControlType.Array,title:\"Items\",propertyControl:{type:ControlType.Object,controls:{text:{type:ControlType.String,title:\"Text\"},link:{type:ControlType.String,title:\"Link\"}}}},images:{type:ControlType.Array,title:\"Images\",propertyControl:{type:ControlType.Image}},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"white\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"Menu\":{\"type\":\"reactComponent\",\"name\":\"Menu\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Menu.map"],"mappings":"qXAAiN,SAAgB,EAAK,EAAM,CAAC,GAAK,CAAC,aAAW,QAAM,SAAO,aAAW,YAAU,CAAC,EAAW,CAAC,EAAO,EAAU,CAAC,GAAe,EAAM,CAAO,EAAU,CAAC,GAAY,IAAI,aAAa,CAAO,EAAW,CAAC,GAAW,IAAI,aAAa,CAAO,EAAO,IAAI,GAAW,EAAO,CAAC,MAAoB,GAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,QAAQ,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,a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