{"version":3,"file":"shared-lib.Ctzn5eaO.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/KTRBbl1BiNNpILLntx0z/LcMX0Db3Vc5BQzcKcyM7/Menu_bar.js","https:/framerusercontent.com/modules/ut55N4dSyrwZZQLLbTUG/E0T4hHpHICqRPMBXEoM7/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import*as React from\"react\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function MenuBar(props){const[isOpen,setIsOpen]=React.useState(false);const[isMobile,setIsMobile]=React.useState(false);React.useEffect(()=>{const checkMobile=()=>setIsMobile(window.innerWidth<768);checkMobile();window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);},[]);const toggleMenu=()=>setIsOpen(v=>!v);// Reuse your existing size props:\nconst size=props.circleSize;const thickness=props.circleBorderWidth;const lineRadius=Math.min(thickness,6);const track=thickness+(size-thickness*3)/4// vertical distance between lines\n;const transition={type:\"spring\",stiffness:500,damping:40};const Line=({which})=>{const baseY=which===\"top\"?-track:which===\"bot\"?track:0;const openVariants=which===\"mid\"?{y:0,rotate:0,opacity:0}:which===\"top\"?{y:0,rotate:45,opacity:1}:{y:0,rotate:-45,opacity:1};const closedVariants=which===\"mid\"?{y:0,rotate:0,opacity:1}:{y:baseY,rotate:0,opacity:1};return /*#__PURE__*/_jsx(motion.span,{initial:false,animate:isOpen?openVariants:closedVariants,transition:transition,style:{position:\"absolute\",left:(size-size*.7)/2,width:size*.7,height:thickness,borderRadius:lineRadius,backgroundColor:\"currentColor\",display:\"block\"}});};const HamburgerButton=()=>/*#__PURE__*/_jsxs(motion.button,{onClick:toggleMenu,\"aria-label\":isOpen?\"Close menu\":\"Open menu\",initial:false,whileHover:{color:props.hoverColor},style:{width:size,height:size,position:\"relative\",background:\"transparent\",border:\"none\",padding:0,cursor:\"pointer\",color:props.fontColor,outline:\"none\"},children:[/*#__PURE__*/_jsx(Line,{which:\"top\"}),/*#__PURE__*/_jsx(Line,{which:\"mid\"}),/*#__PURE__*/_jsx(Line,{which:\"bot\"})]});const textHoverStyle={transition:\"color 0.3s\"};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{...props.style,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:16,backgroundColor:props.backgroundColor},children:[/*#__PURE__*/_jsx(motion.a,{href:props.logoLink,style:{color:props.fontColor,textDecoration:\"none\",...props.logoFont,...textHoverStyle},whileHover:{color:props.hoverColor},children:props.name}),/*#__PURE__*/_jsx(HamburgerButton,{})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:isOpen&&/*#__PURE__*/_jsxs(motion.div,{initial:{x:\"100%\"},animate:{x:0},exit:{x:\"100%\"},transition:{type:\"tween\",duration:.3},style:{position:\"fixed\",top:0,right:0,bottom:0,width:isMobile?\"100%\":320,backgroundColor:props.backgroundColor,boxShadow:\"-2px 0 12px rgba(0,0,0,0.1)\",padding:24,display:\"flex\",flexDirection:\"column\",zIndex:1e3},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"flex-end\"},children:/*#__PURE__*/_jsx(HamburgerButton,{})}),props.navItems.map((item,index)=>/*#__PURE__*/_jsx(motion.a,{href:item.link,style:{textDecoration:\"none\",color:props.fontColor,marginTop:24,...props.navFont,...textHoverStyle},onClick:toggleMenu,whileHover:{color:props.hoverColor},children:item.label},index))]})})]});}MenuBar.displayName=\"Menu Bar\";addPropertyControls(MenuBar,{name:{type:ControlType.String,title:\"Name\",defaultValue:\"Your Name\"},logoLink:{type:ControlType.Link,title:\"Logo Link\",defaultValue:\"/\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#ffffff\"},fontColor:{type:ControlType.Color,title:\"Icon/Text\",defaultValue:\"#000000\"},hoverColor:{type:ControlType.Color,title:\"Hover Color\",defaultValue:\"#999999\"},logoFont:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:20,lineHeight:1.2}},navFont:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:16,lineHeight:1.2}},circleSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:28,min:16,max:120},circleBorderWidth:{type:ControlType.Number,title:\"Line Thickness\",defaultValue:2,min:1,max:12},navItems:{type:ControlType.Array,title:\"Nav Items\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,defaultValue:\"Link\"},link:{type:ControlType.Link,defaultValue:\"/\"}}},defaultValue:[{label:\"Work\",link:\"/work\"},{label:\"About\",link:\"/about\"},{label:\"Contact\",link:\"/contact\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MenuBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Menu_bar.map","// Generated by Framer (81bb052)\nexport default function metadata(params,activeLocale){return{description:\"The Official Website of the Backhanded Condiments Racquet Club.\",robots:\"max-image-preview:large\",title:\"Backhanded Condiments\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qaAGG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,EAAO,EAAU,CAAA,EAAgB,IAAY,CAAC,EAAS,EAAY,CAAA,EAAgB,IAAO,MAAoB,CAAC,IAAM,MAAgB,EAAY,EAAO,WAAW,KAAiE,OAA5D,IAAc,EAAO,iBAAiB,SAA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