{"version":3,"file":"SiteHeader.208-uDbT.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/txRluxQujMsVX6CTuqsa/EUS4cIPgC8uJvJkJyn0w/SiteHeader.js"],"sourcesContent":["// Slim sticky site header: \"Anna Manning\" wordmark left, nav links\n// (Listings, Suburbs, Reviews, About, Contact) and a gold \"Free appraisal\"\n// button right. Collapses to a hamburger menu on mobile.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Older header instances saved the Suburbs link as the /#suburbs anchor,\n// and the Listings link as the /#portfolio anchor. The site now has\n// dedicated /suburbs and /properties index pages, so normalise both here\n// for every instance without needing to edit each one.\nfunction resolveHref(href){if(href===\"/#suburbs\")return\"/suburbs\";if(href===\"/#portfolio\")return\"/properties\";return href;}/**\n * Site Header\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 64\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function SiteHeader(props){const{background,textColor,borderColor,accentColor,buttonTextColor,wordmark,links,buttonLabel,buttonHref,linkFont}=props;const[isMobile,setIsMobile]=useState(false);const[open,setOpen]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(max-width: 809px)\");const apply=()=>startTransition(()=>setIsMobile(mq.matches));apply();mq.addEventListener(\"change\",apply);return()=>mq.removeEventListener(\"change\",apply);},[]);const linkStyle={color:textColor,textDecoration:\"none\",...linkFont};const buttonStyle={background:accentColor,color:buttonTextColor,textDecoration:\"none\",padding:\"9px 16px\",borderRadius:4,...linkFont};return /*#__PURE__*/_jsxs(\"header\",{style:{...props.style,position:\"relative\",width:\"100%\",background:background,borderBottom:`1px solid ${borderColor}`,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"nav\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:16,padding:\"14px 48px\",maxWidth:1200,margin:\"0 auto\",boxSizing:\"border-box\"},\"aria-label\":\"Main navigation\",children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",style:{color:textColor,textDecoration:\"none\",fontFamily:'\"Playfair Display\", serif',fontSize:20,fontWeight:500,whiteSpace:\"nowrap\"},children:wordmark}),!isMobile&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:28},children:[(links||[]).flatMap((l,i)=>{const isListings=l.label===\"Listings\";return[/*#__PURE__*/_jsx(\"a\",{href:resolveHref(l.href),style:linkStyle,children:isListings?\"For Sale\":l.label},`link-${i}`),...isListings?[/*#__PURE__*/_jsx(\"a\",{href:\"/sold\",style:linkStyle,children:\"Sold\"},`sold-${i}`)]:[]];}),/*#__PURE__*/_jsx(\"a\",{href:buttonHref,style:buttonStyle,children:buttonLabel})]}),isMobile&&/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-label\":open?\"Close menu\":\"Open menu\",\"aria-expanded\":open,onClick:()=>startTransition(()=>setOpen(!open)),style:{background:\"none\",border:\"none\",cursor:\"pointer\",padding:8,display:\"flex\",flexDirection:\"column\",gap:5},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:22,height:2,background:textColor,transition:\"transform 0.2s\",transform:open?\"translateY(7px) rotate(45deg)\":\"none\"}}),/*#__PURE__*/_jsx(\"span\",{style:{width:22,height:2,background:textColor,opacity:open?0:1,transition:\"opacity 0.2s\"}}),/*#__PURE__*/_jsx(\"span\",{style:{width:22,height:2,background:textColor,transition:\"transform 0.2s\",transform:open?\"translateY(-7px) rotate(-45deg)\":\"none\"}})]})]}),isMobile&&open&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:20,padding:\"8px 48px 28px 48px\",background:background,borderTop:`1px solid ${borderColor}`},children:[(links||[]).flatMap((l,i)=>{const isListings=l.label===\"Listings\";return[/*#__PURE__*/_jsx(\"a\",{href:resolveHref(l.href),style:linkStyle,onClick:()=>startTransition(()=>setOpen(false)),children:isListings?\"For Sale\":l.label},`link-${i}`),...isListings?[/*#__PURE__*/_jsx(\"a\",{href:\"/sold\",style:linkStyle,onClick:()=>startTransition(()=>setOpen(false)),children:\"Sold\"},`sold-${i}`)]:[]];}),/*#__PURE__*/_jsx(\"a\",{href:buttonHref,style:{...buttonStyle,alignSelf:\"flex-start\"},onClick:()=>startTransition(()=>setOpen(false)),children:buttonLabel})]})]});}addPropertyControls(SiteHeader,{wordmark:{type:ControlType.String,title:\"Wordmark\",defaultValue:\"Anna Manning\"},links:{type:ControlType.Array,title:\"Links\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"\"},href:{type:ControlType.String,title:\"Href\",defaultValue:\"\"}}},defaultValue:[{label:\"Listings\",href:\"/properties\"},{label:\"Suburbs\",href:\"/suburbs\"},{label:\"Reviews\",href:\"/reviews\"},{label:\"About\",href:\"/about\"},{label:\"Contact\",href:\"/#contact\"}]},buttonLabel:{type:ControlType.String,title:\"Button\",defaultValue:\"Free appraisal\"},buttonHref:{type:ControlType.String,title:\"Button Href\",defaultValue:\"/#contact\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F3EE\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#1A1A17\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgba(26, 26, 23, 0.12)\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#B8972E\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#F5F3EE\"},linkFont:{type:ControlType.Font,title:\"Link Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,variant:\"Medium\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SiteHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fix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