{"version":3,"file":"BookButton.DvFHaNnP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/id7sh4rNuRnenvjN7MtE/JugPRlt7mTeQNRyfGxIc/BookButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function BookButton(props){const{label,targetName,offset,background,textColor,fontSize,href}=props;const scrollDown=event=>{if(href){window.location.href=href;return;}const target=document.querySelector(`[data-framer-name=\"${targetName}\"]`)||document.getElementById(targetName);if(!target)return;event.preventDefault();const top=target.getBoundingClientRect().top+window.pageYOffset-offset;const reduce=window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;window.scrollTo({top,behavior:reduce?\"auto\":\"smooth\"});};return /*#__PURE__*/_jsx(\"button\",{onClick:scrollDown,style:{background,color:textColor,border:\"none\",borderRadius:999,padding:\"13px 24px\",fontFamily:\"Inter, sans-serif\",fontWeight:600,fontSize,letterSpacing:\"0.04em\",textTransform:\"uppercase\",cursor:\"pointer\",whiteSpace:\"nowrap\"},children:label});}BookButton.defaultProps={label:\"Take your seat\",targetName:\"Payment\",offset:80,background:\"#C99519\",textColor:\"#2B2B2B\",fontSize:16,href:\"\"};addPropertyControls(BookButton,{label:{type:ControlType.String,title:\"Label\"},targetName:{type:ControlType.String,title:\"Scroll to layer\",description:\"Layer name or element id of the section to scroll to\"},offset:{type:ControlType.Number,title:\"Offset\",min:0,max:300},background:{type:ControlType.Color,title:\"Background\"},textColor:{type:ControlType.Color,title:\"Text\"},fontSize:{type:ControlType.Number,title:\"Font size\",min:10,max:30},href:{type:ControlType.String,title:\"Link instead (optional)\",description:\"Leave empty to scroll; set e.g. /contact to open a page\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BookButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BookButton.map"],"mappings":"0KAA+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