{"version":3,"file":"NavigationDropdown.DJ7Gc4jd.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/MjwXcatKJJIW2WAxGUKt/zW37KwlOBke7Mo1dU9JJ/oXmoVsw_I.js","https:/framerusercontent.com/modules/6hwIsxUzyEhjXk4rc6ov/5hBu9z15LYAekOCeXkXG/NavigationDropdown.js"],"sourcesContent":["// Generated by Framer (bc931d3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-sePGa\";const variantClassNames={BzYk8xY7x:\"framer-v-hxq11j\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const oFWEn7d2j=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({click,height,id,width,...props})=>{return{...props,oFWEn7d2j:click??props.oFWEn7d2j};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,oFWEn7d2j,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"BzYk8xY7x\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapfurzxo=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(oFWEn7d2j){const res=await oFWEn7d2j(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-hxq11j\",className,classNames),\"data-framer-name\":\"Variant 1\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"BzYk8xY7x\",onTap:onTapfurzxo,ref:refBinding,style:{backgroundColor:\"var(--token-12662aec-857c-4e13-8061-874c8a7c16ce, rgba(0, 0, 0, 0))\",...style}})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-sePGa.framer-1ofz7vq, .framer-sePGa .framer-1ofz7vq { display: block; }\",\".framer-sePGa.framer-hxq11j { cursor: pointer; height: 843px; overflow: var(--overflow-clip-fallback, clip); position: relative; width: 390px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 843\n * @framerIntrinsicWidth 390\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"oFWEn7d2j\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FrameroXmoVsw_I=withCSS(Component,css,\"framer-sePGa\");export default FrameroXmoVsw_I;FrameroXmoVsw_I.displayName=\"Transparent Nav Frame\";FrameroXmoVsw_I.defaultProps={height:843,width:390};addPropertyControls(FrameroXmoVsw_I,{oFWEn7d2j:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FrameroXmoVsw_I,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameroXmoVsw_I\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"843\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"oFWEn7d2j\\\":\\\"click\\\"}\",\"framerContractVersion\":\"1\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"390\",\"framerAutoSizeImages\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./oXmoVsw_I.map","// Mobile navigation dropdown menu with clickable links that close on click\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 195\n * @framerIntrinsicHeight 300\n */function NavigationDropdown(props){const{backgroundColor,textColor,font,comingSoonFont,links,onLinkClick,menuOpen}=props;const handleLinkClick=(label,url)=>{startTransition(()=>{if(onLinkClick){onLinkClick(label);}});if(url){if(typeof window!==\"undefined\"){window.location.href=url;}}};const comingSoonLabels=[];const smallerFontLabels=[];return /*#__PURE__*/_jsx(\"nav\",{style:{width:\"100%\",height:menuOpen?\"auto\":0,backgroundColor:menuOpen?backgroundColor:\"transparent\",borderRadius:8,overflow:\"hidden\",boxShadow:menuOpen?\"0 4px 12px rgba(0, 0, 0, 0.15)\":\"none\",paddingBottom:menuOpen?10:0,display:\"block\"},children:menuOpen&&/*#__PURE__*/_jsx(\"ul\",{style:{margin:0,padding:0,listStyle:\"none\",display:\"flex\",flexDirection:\"column\",gap:0},children:links.map((link,index)=>{const isComingSoon=comingSoonLabels.includes(link.label);const isSmallerFont=smallerFontLabels.includes(link.label);const appliedFont=isComingSoon||isSmallerFont?comingSoonFont:font;return /*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(\"button\",{onClick:()=>handleLinkClick(link.label,link.url),style:{width:\"100%\",padding:isComingSoon?\"8px 10px 8px 20px\":\"8px 10px 8px 20px\",backgroundColor:\"transparent\",border:\"none\",textAlign:\"right\",cursor:\"pointer\",color:textColor,transition:\"background-color 0.2s ease\",whiteSpace:\"nowrap\",...appliedFont},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=\"rgba(255, 255, 255, 0.05)\";},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=\"transparent\";},children:link.label})},index);})})});}export default NavigationDropdown;addPropertyControls(NavigationDropdown,{menuOpen:{type:ControlType.Boolean,title:\"Menu Open\",defaultValue:true,enabledTitle:\"Open\",disabledTitle:\"Closed\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#1A1A1A\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FAFAFA\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Bold\"}},comingSoonFont:{type:ControlType.Font,title:\"Coming Soon Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Regular\"}},links:{type:ControlType.Array,title:\"Links\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Link\"},url:{type:ControlType.String,title:\"URL\",defaultValue:\"#\"}}},defaultValue:[{label:\"The Party Line\",url:\"#\"},{label:\"Artist Hub\",url:\"#\"},{label:\"Newsstand\",url:\"#\"},{label:\"The Front Porch\",url:\"#\"},{label:\"The Schoolhouse\",url:\"#\"},{label:\"The Workshop\",url:\"#\"},{label:\"The Back Porch\",url:\"#\"},{label:\"Merchandise\",url:\"#\"},{label:\"Sponsor Spotlight\",url:\"#\"}]},onLinkClick:{type:ControlType.EventHandler}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NavigationDropdown\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"195\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"300\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NavigationDropdown.map"],"mappings":"uXAC0C,IAAoJ,IAAkE,IAA4B,EAAiC,EAAkB,eAAqB,EAAkB,CAAC,UAAU,iBAAiB,EAAyN,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,QAAQ,EAAQ,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,CAAmB,EAAQ,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,YAAU,GAAG,CAAC,KAAK,UAAU,CAAU,CAAC,CAAC,EAAE,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,UAAQ,CAAC,CAAE,EAAQ,EAAS,EAAO,OAAOC,CAAc,EAAQ,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAO,EAAM,SAAS,GAAU,GAAwB,EAAM,IAAe,EAAM,iBAAwB,EAAS,KAAK,GAAG,EAAE,EAAM,iBAAwB,EAAS,KAAK,GAAG,EAWnwC,EAAgB,EAXoxCC,EAAiB,SAAS,EAAM,EAAI,CAAC,IAAM,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