{"version":3,"file":"Button.B3MfBfCy.mjs","names":["c"],"sources":["https:/framerusercontent.com/modules/P0BiQJPqdApHQSpFGqCH/ApSU1JOZIQmIrpyFcFjR/Button.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/*\n * ─────────────────────────────────────────────────────────────────────\n *  BUTTON  (no coding needed)\n * ─────────────────────────────────────────────────────────────────────\n *  One button for the whole site, also used inside the Order Panel.\n *\n *  Pick Primary or Secondary, type the label and choose where it goes.\n *  Colours: click a colour and pick one of your colour styles. Do that\n *  once and every button follows when you change the style later.\n *\n *  Width: set it to Fit for a normal button, Fill to stretch it.\n * ─────────────────────────────────────────────────────────────────────\n */const F_SANS=`\"Funnel Sans\", \"Helvetica Neue\", Arial, sans-serif`;const EASE=\"cubic-bezier(.2,.7,.1,1)\";export const BUTTON_COLORS={primary:{background:\"#1C1C1A\",text:\"#FFFFFF\",border:\"rgba(0, 0, 0, 0)\"},secondary:{background:\"rgba(255, 255, 255, 0.66)\",text:\"#121212\",border:\"rgba(18, 18, 18, 0.12)\"}};const CSS=`\n.ob{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;margin:0;padding:0 24px;border:0;border-radius:999px;background:var(--ob-bg);color:var(--ob-text);box-shadow:inset 0 0 0 1.5px var(--ob-line);font-family:${F_SANS};font-weight:500;font-size:15px;line-height:1;letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:opacity .2s ${EASE},transform .25s cubic-bezier(.34,1.5,.64,1),box-shadow .3s ${EASE}}\n.ob.fill{display:flex;width:100%}\n.ob.sec{-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4)}\n@media (hover:hover){.ob.pri:hover{opacity:.86}.ob.sec:hover{box-shadow:inset 0 0 0 1.5px var(--ob-text)}}\n.ob:active{transform:scale(.97)}\n.ob:focus-visible{outline:2px solid var(--ob-focus);outline-offset:3px}\n@media (prefers-reduced-motion: reduce){.ob{transition:none}.ob:active{transform:none}}\n`;/**\n * @framerSupportedLayoutWidth any-prefer-auto\n * @framerSupportedLayoutHeight auto\n */export default function Button(props){const{label=\"Reserve\",link,newTab=false,variant=\"primary\",primary,secondary,fill,ariaLabel,onClick,style}=props;const sec=variant===\"secondary\";const c={...sec?BUTTON_COLORS.secondary:BUTTON_COLORS.primary,...(sec?secondary:primary)||{}};const canvas=RenderTarget.current()===RenderTarget.canvas;const wide=!!fill||!!(style&&style.width===\"100%\");const href=canvas?undefined:link||undefined;const vars={\"--ob-bg\":c.background,\"--ob-text\":c.text,\"--ob-line\":c.border,\"--ob-focus\":sec?c.text:c.background};return /*#__PURE__*/_jsxs(\"a\",{className:`ob ${sec?\"sec\":\"pri\"}${wide?\" fill\":\"\"}`,href:href,target:href&&newTab?\"_blank\":undefined,rel:href&&newTab?\"noopener noreferrer\":undefined,role:href?undefined:\"button\",tabIndex:href?undefined:0,\"aria-label\":ariaLabel,onClick:onClick,onKeyDown:e=>{if(!href&&onClick&&(e.key===\"Enter\"||e.key===\" \")){e.preventDefault();onClick(e);}},style:{...style,...vars},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),label]});}const colorSet=(title,key,show)=>({type:ControlType.Object,title,description:\"Pick your colour styles here so every button changes together.\",hidden:p=>(p.variant||\"primary\")!==show,controls:{background:{type:ControlType.Color,title:\"Background\",defaultValue:BUTTON_COLORS[key].background},text:{type:ControlType.Color,title:\"Text\",defaultValue:BUTTON_COLORS[key].text},border:{type:ControlType.Color,title:\"Border\",defaultValue:BUTTON_COLORS[key].border}}});addPropertyControls(Button,{variant:{type:ControlType.Enum,title:\"Style\",options:[\"primary\",\"secondary\"],optionTitles:[\"Primary\",\"Secondary\"],defaultValue:\"primary\",displaySegmentedControl:true},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Reserve\"},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false},primary:colorSet(\"Colours\",\"primary\",\"primary\"),secondary:colorSet(\"Colours\",\"secondary\",\"secondary\")});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-auto\"}},\"BUTTON_COLORS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map"],"mappings":"0KAuBG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,QAAM,UAAU,OAAK,SAAO,GAAM,UAAQ,UAAU,UAAQ,YAAU,OAAK,YAAU,UAAQ,SAAO,EAAY,EAAI,IAAU,YAAkBA,EAAE,CAAC,GAAG,EAAI,EAAc,UAAU,EAAc,QAAQ,IAAI,EAAI,EAAU,IAAU,CAAC,CAAC,EAAQ,EAAO,EAAa,QAAQ,IAAI,EAAa,OAAa,EAAK,CAAC,CAAC,GAAM,CAAC,EAAE,GAAO,EAAM,QAAQ,QAAc,EAAK,EAAO,IAAA,GAAU,GAAM,IAAA,GAAgB,EAAK,CAAC,UAAUA,EAAE,WAAW,YAAYA,EAAE,KAAK,YAAYA,EAAE,OAAO,aAAa,EAAIA,EAAE,KAAKA,EAAE,UAAU,EAAE,OAAoB,EAAM,IAAI,CAAC,UAAU,MAAM,EAAI,MAAM,QAAQ,EAAK,QAAQ,KAAU,OAAK,OAAO,GAAM,EAAO,SAAS,IAAA,GAAU,IAAI,GAAM,EAAO,sBAAsB,IAAA,GAAU,KAAK,EAAK,IAAA,GAAU,SAAS,SAAS,EAAK,IAAA,GAAU,EAAE,aAAa,EAAkB,UAAQ,UAAU,GAAG,CAAI,CAAC,GAAM,IAAU,EAAE,MAAM,SAAS,EAAE,MAAM,OAAM,EAAE,eAAe,EAAE,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