{"version":3,"file":"ButtonLink.decbjE_0.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/514Vfhb8ADYKHMhLg9FV/zxBAFzR2n6ehiPy9tFFS/ButtonLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * ButtonLink — Freehold's standard button, as a real anchor.\n *\n * Replaces the canvas Button component so every call-to-action is a genuine\n * link: crawlable, middle-clickable, keyboard-accessible. Primary (Registry\n * Green) and Secondary (ruled paper chip) variants with the house hover\n * behaviour.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 180\n */const GREEN=\"#175A46\";const GREEN_HOVER=\"#124736\";const BOND=\"#F8F5EF\";const INK=\"#2A251D\";const MANILA=\"#EFE6D6\";const MANROPE='\"Manrope\", \"Manrope Placeholder\", ui-sans-serif, sans-serif';export default function ButtonLink(props){const{label,href,variant,fullWidth,openInNewTab}=props;const[hover,setHover]=React.useState(false);const isStatic=RenderTarget.current()===RenderTarget.canvas||RenderTarget.current()===RenderTarget.export;const primary=variant!==\"Secondary\";const style={display:fullWidth?\"flex\":\"inline-flex\",width:fullWidth?\"100%\":\"auto\",alignItems:\"center\",justifyContent:\"center\",gap:8,padding:\"12px 18px\",borderRadius:8,fontFamily:MANROPE,fontWeight:600,fontSize:15,lineHeight:\"1.2em\",textDecoration:\"none\",whiteSpace:\"nowrap\",cursor:\"pointer\",boxSizing:\"border-box\",transition:\"background 0.18s cubic-bezier(0.25,0.1,0.25,1), border-color 0.18s\",...primary?{background:hover?GREEN_HOVER:GREEN,color:BOND,border:\"1.5px solid transparent\"}:{background:hover?MANILA:\"transparent\",color:INK,border:\"1.5px solid rgba(42, 37, 29, 0.35)\"}};return /*#__PURE__*/_jsx(\"a\",{href:isStatic?undefined:href||undefined,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener\":undefined,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:style,children:label});}ButtonLink.displayName=\"ButtonLink\";addPropertyControls(ButtonLink,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"View properties\"},href:{type:ControlType.String,title:\"Link to\",defaultValue:\"/listings\",description:\"Path or URL, e.g. /listings?type=Off-plan\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"Primary\",\"Secondary\"],defaultValue:\"Primary\"},fullWidth:{type:ControlType.Boolean,title:\"Full width\",defaultValue:false},openInNewTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ButtonLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonLink.map"],"mappings":"iLAWiM,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,UAAQ,YAAU,gBAAc,EAAW,CAAC,EAAM,GAAUA,EAAe,EAAK,EAAQ,EAAS,EAAa,QAAQ,IAAI,EAAa,QAAQ,EAAa,QAAQ,IAAI,EAAa,OAAiD,EAAM,CAAC,QAAQ,EAAU,OAAO,cAAc,MAAM,EAAU,OAAO,OAAO,WAAW,SAAS,eAAe,SAAS,IAAI,EAAE,QAAQ,YAAY,aAAa,EAAE,WAAW,EAAQ,WAAW,IAAI,SAAS,GAAG,WAAW,QAAQ,eAAe,OAAO,WAAW,SAAS,OAAO,UAAU,UAAU,aAAa,WAAW,qEAAqE,GAAha,IAAU,YAAkf,CAAC,WAAW,EAAM,EAAO,cAAc,MAAM,EAAI,OAAO,oCAAoC,EAA7K,CAAC,WAAW,EAAM,EAAY,EAAM,MAAM,EAAK,OAAO,yBAAyB,CAA+F,EAAE,OAAoB,EAAK,IAAI,CAAC,KAAK,EAAS,IAAA,GAAU,GAAM,IAAA,GAAU,OAAO,EAAa,SAAS,IAAA,GAAU,IAAI,EAAa,WAAW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