1import{a as d,r as u,R as e,H as E}from"./main-AJIVhlc2.js";import{A as k}from"./size-dark-CHDE32Tn.js";import{P as y}from"./property-CfaOT_ym.js";import{T as b}from"./top-strip-DiFveM3G.js";import"./index-Cs5-Jv-b.js";const x=({data:r})=>{var m;const{authenticated:i,loading:c}=d(),o=((m=r==null?void 0:r.allDatoCmsProperty)==null?void 0:m.nodes)||[],s=o.filter(t=>t.for==="off-market-sale"),l=o.filter(t=>t.for==="off-market-lease"),[a,f]=u.useState("buy"),n=a==="rent"?l:s;return e.createElement(e.Fragment,null,e.createElement(E,null,e.createElement("body",{className:"page-template page-template--off-market page-template--dark"}),e.createElement("title",null,"Off-Market Listings"),e.createElement("meta",{name:"description",content:"Register with MOVABLE to view off-market properties in Newcastle you won't find anywhere else."}),e.createElement("meta",{name:"robots",content:"noindex, nofollow"})),e.createElement("section",{className:"off-market-page"},e.createElement("div",{className:"off-market-page__intro"},e.createElement("h1",null,"Off-Market Listings"),e.createElement("p",null,"Be the first to know. Register below to view properties that aren't advertised anywhere else, and get alerts when new listings matching your criteria become available.")),c?e.createElement("p",{className:"off-market-page__loading",role:"status"},"Loadingâ¦"):i?e.createElement("div",{className:"off-market-page__listings"},e.createElement("div",{className:"register-prefs__toggle off-market-page__toggle",role:"radiogroup"},[["buy","For Sale",s],["rent","For Lease",l]].map(([t,p,g])=>e.createElement("button",{key:t,type:"button",role:"radio","aria-checked":a===t,className:a===t?"active":"",onClick:()=>f(t)},p," (",g.length,")"))),n.length?e.createElement("div",{className:"gallery-section"},e.createElement("div",{className:"gallery-section__container"},n.map(t=>e.createElement(y,{key:t.id,...t})))):e.createElement("p",{className:"off-market-page__empty"},"There are no off-market properties ",a==="rent"?"for lease":"for sale"," right now. We'll let you know as soon as one matching your criteria comes up.")):e.createElement("div",{className:"off-market-page__form"},e.createElement(k,{defaultRegister:!0}))),e.createElement(b,{prev:{to:"/buy",text:"Browse properties for sale",mobileText:"Buy"},next:{to:"/lease",text:"Browse properties for lease",mobileText:"Lease"}}))},L={queryId:"9387b0e1c1583741e7a91496329dbbdb0f97be9a"};export{x as default,L as query};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.