{"version":3,"file":"Menu.C5L_vszv.mjs","names":["React.useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/si8RqYo4tNxnFQTkxWgE/EFyYsMSnmqx23bY1IClM/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":"gPAAiN,SAAgB,EAAK,EAAM,CAAC,GAAK,CAAC,aAAW,QAAM,SAAO,aAAW,aAAW,EAAW,CAAC,EAAO,GAAWA,EAAe,GAAM,CAAO,GAAW,GAAY,IAAI,aAAa,CAAO,GAAY,GAAW,IAAI,aAAa,CAAqC,OAAoB,EAAMC,EAAU,CAAC,SAAS,CAAc,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,QAAQ,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,MAAM,gBAAgB,OAAO,QAAQ,OAAO,WAAW,SA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