PageSourceSearch

https://www.househuntkenya.com/_next/static/chunks/0be92b1eb7c07f17.js

js househuntkenya.com collected 2026-09-24 14:14:33 UTC 17,676 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,389252,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(846932),s=e.i(511152);e.s(["default",0,({title:e,content:l,badge:i="Market Analysis",className:n=""})=>{let[d,o]=(0,a.useState)(!1);return l?(0,t.jsx)("section",{className:`border-t border-gray-100 dark:border-white/5 bg-gray-50/50 dark:bg-white/[0.02] py-12 px-4 ${n}`,children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,t.jsxs)("div",{className:"max-w-4xl",children:[(0,t.jsx)("div",{className:"flex items-center gap-3 mb-4",children:(0,t.jsx)("span",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-blue-600 dark:text-blue-400 px-2 py-0.5 bg-blue-50 dark:bg-blue-900/30 rounded",children:i})}),(0,t.jsx)("h2",{className:"text-xl md:text-2xl font-bold text-gray-900 dark:text-white mb-4",children:e}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(r.motion.div,{initial:!1,animate:{height:d?"auto":100},transition:{duration:.5,ease:[.04,.62,.23,.98]},className:"prose prose-sm md:prose-base prose-blue dark:prose-invert max-w-none text-gray-600 dark:text-gray-400 leading-relaxed overflow-hidden",children:(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:l}})}),!d&&(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-gray-50 dark:from-gray-950 to-transparent pointer-events-none z-10"})]}),(0,t.jsx)("button",{onClick:()=>o(!d),className:"mt-6 flex items-center gap-2 text-xs font-bold text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-all uppercase tracking-widest group border border-blue-600/20 px-4 py-2 rounded-lg hover:bg-blue-50 dark:hover:bg-blue-900/20",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Minimize Analysis"}),(0,t.jsx)(s.FaChevronUp,{className:"text-[10px] group-hover:-translate-y-0.5 transition-transform"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Read Full Analysis"}),(0,t.jsx)(s.FaChevronDown,{className:"text-[10px] group-hover:translate-y-0.5 transition-transform"})]})})]})})}):null}])},993931,e=>{"use strict";var t=e.i(843476);e.i(271645);var a=e.i(522016),r=e.i(618566),s=e.i(511152);e.s(["default",0,({customTitle:e})=>{let l=(0,r.usePathname)().split("/").filter(e=>e);if(0===l.length)return null;let i="https://www.househuntkenya.com",n={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${i}/`},...l.map((t,a)=>{let r=`/${l.slice(0,a+1).join("/")}`,s=a===l.length-1;return{"@type":"ListItem",position:a+2,name:s&&e?e:t.charAt(0).toUpperCase()+t.slice(1).replace(/-/g," "),item:`${i}${r}`}})]};return(0,t.jsxs)("nav",{className:"text-gray-500 dark:text-gray-400 text-sm mb-6","aria-label":"Breadcrumb",children:[(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),(0,t.jsxs)("ol",{className:"list-none p-0 inline-flex items-center",children:[(0,t.jsxs)("li",{className:"flex items-center",children:[(0,t.jsx)(a.default,{href:"/",className:"hover:text-blue-600 dark:hover:text-blue-400 transition",children:(0,t.jsx)(s.FaHome,{})}),(0,t.jsx)(s.FaChevronRight,{className:"mx-2 text-xs"})]}),l.map((r,i)=>{let n=`/${l.slice(0,i+1).join("/")}`,d=i===l.length-1,o=d&&e?e:r.replace(/-/g," ").charAt(0).toUpperCase()+r.replace(/-/g," ").slice(1);return(0,t.jsx)("li",{className:"flex items-center",children:d?(0,t.jsx)("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:o}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{href:n,className:"hover:text-blue-600 dark:hover:text-blue-400 transition",children:o}),(0,t.jsx)(s.FaChevronRight,{className:"mx-2 text-xs"})]})},`${i}-${r}`)})]})]})}])},609773,e=>{"use strict";let t="hhk_last_search_track";e.s(["buildSearchTrackingPayload",0,({query:e,resultCount:t=0,category:a="all",location:r=null,source:s="search_page"})=>({query:(e||"").trim().toLowerCase(),resultCount:Number(t)||0,category:a||"all",location:r||null,source:s}),"markSearchTracked",0,e=>{try{window.sessionStorage.setItem(t,JSON.stringify({query:e.query,category:e.category,location:e.location,timestamp:Date.now()}))}catch{}},"shouldTrackSearch",0,e=>{try{let a=window.sessionStorage.getItem(t);if(!a)return!0;let r=JSON.parse(a),s=Date.now();if(r.query===e.query&&r.category===e.category&&r.location===e.location&&s-r.timestamp<15e3)return!1}catch{}return!0}])},335597,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(846932),s=e.i(511152),l=e.i(522016),i=e.i(69871),n=e.i(770703),d=e.i(993931),o=e.i(358652),c=e.i(609773),x=e.i(618566);let m=(0,n.default)(()=>
1e.A(287754),{loadableGenerated:{modules:[72902]},ssr:!0,loading:()=>(0,t.jsx)("div",{className:"h-96 w-full bg-gray-100 dark:bg-gray-800 animate-pulse rounded-2xl mb-10"})}),g=(0,n.default)(()=>e.A(913690),{loadableGenerated:{modules:[949801]},ssr:!1}),u=(0,n.default)(()=>e.A(409354),{loadableGenerated:{modules:[280151]},ssr:!1});(0,n.default)(()=>e.A(484792),{loadableGenerated:{modules:[492198]},ssr:!1});let h=({location:e,listingType:a,nearbyLocations:r})=>(0,t.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-900 rounded-2xl border border-gray-200 dark:border-gray-800 overflow-hidden mb-10",children:[(0,t.jsxs)("div",{className:"p-8 text-center border-b border-gray-200 dark:border-gray-800",children:[(0,t.jsx)(s.FaExclamationTriangle,{className:"text-4xl text-orange-400 mx-auto mb-3"}),(0,t.jsxs)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:["No ",a," listings in ",e," yet."]}),(0,t.jsx)("p",{className:"text-gray-500 dark:text-gray-400 max-w-lg mx-auto text-sm",children:"Inventory moves fast! Don't waste time refreshing. Tell us what you want, and we'll notify you the moment a match hits the market."})]}),(0,t.jsxs)("div",{className:"grid md:grid-cols-2 divide-y md:divide-y-0 md:divide-x divide-gray-200 dark:divide-gray-800",children:[(0,t.jsxs)("div",{className:"p-8",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-5",children:[(0,t.jsx)("div",{className:"p-2.5 bg-blue-100 dark:bg-blue-900/40 text-blue-600 dark:text-blue-400 rounded-xl",children:(0,t.jsx)(s.FaBell,{className:"text-lg"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white",children:"Create a Property Alert"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Be the first to know."})]})]}),(0,t.jsx)(u,{currentFilters:{location:e,type:a},compact:!0})]}),(0,t.jsxs)("div",{className:"p-8 bg-gray-50/50 dark:bg-gray-800/30 flex flex-col justify-center",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,t.jsx)("div",{className:"p-2.5 bg-green-100 dark:bg-green-900/40 text-green-600 dark:text-green-400 rounded-xl",children:(0,t.jsx)(s.FaClipboardList,{className:"text-lg"})}),(0,t.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white",children:"Are you an Agent?"})]}),(0,t.jsxs)("p",{className:"text-gray-500 dark:text-gray-400 mb-5 text-sm",children:["You have a huge opportunity. Tenants are actively looking in ",(0,t.jsx)("strong",{className:"text-gray-700 dark:text-gray-200",children:e})," with zero listings to show them."]}),(0,t.jsxs)(l.default,{href:"/for-agents",className:"block w-full py-2.5 px-4 bg-green-600 hover:bg-green-700 text-white font-semibold text-sm text-center rounded-xl transition-colors",children:["List Property in ",e," (Free)"]})]})]}),(0,t.jsxs)("div",{className:"p-5 border-t border-gray-200 dark:border-gray-800",children:[(0,t.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-500 uppercase tracking-wider font-semibold mb-3 text-center",children:"Or try these nearby areas"}),(0,t.jsx)("div",{className:"flex flex-wrap justify-center gap-2",children:r.map(e=>(0,t.jsx)(l.default,{href:`/search/${a}/${e.toLowerCase()}`,className:"px-3 py-1.5 bg-white dark:bg-gray-800 rounded-full border border-gray-200 dark:border-gray-700 text-sm text-gray-600 dark:text-gray-400 hover:border-blue-500 hover:text-blue-600 dark:hover:text-blue-400 transition-colors",children:e},e))})]})]}),b=({stats:e,loading:a,location:l})=>{let i=()=>(0,t.jsxs)("div",{className:"p-4 bg-gray-100 dark:bg-gray-800 rounded-xl animate-pulse",children:[(0,t.jsx)("div",{className:"h-4 w-1/2 bg-gray-200 dark:bg-gray-700 rounded mb-3"}),(0,t.jsx)("div",{className:"h-6 w-3/4 bg-gray-200 dark:bg-gray-700 rounded mb-2"}),(0,t.jsx)("div",{className:"h-3 w-full bg-gray-200 dark:bg-gray-700 rounded"})]});if(a)return(0,t.jsxs)("div",{className:"mb-10",children:[(0,t.jsx)("div",{className:"h-5 w-48 bg-gray-200 dark:bg-gray-700 rounded animate-pulse mb-4"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:[(0,t.jsx)(i,{}),(0,t.jsx)(i,{}),(0,t.jsx)(i,{}),(0,t.jsx)(i,{})]})]});if(!e||0===e.count)return null;let n=e.byType||[],d=n.length>0;return(0,t.jsxs)(r.motion.div,{className:"mb-10",initial:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{duration:.4,delay:.1},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:["Price Guide",l&&(0,t.jsxs)("span",{className:"text-gray-500 dark:text-gray-400 font-normal",children:[" · ",l]})]}),(0,t.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:[e.count," ",1===e.count?"listing":"listings"," found"]})]}),(0,t.jsxs)("div",{className:"hidden sm:flex items-center gap-2 px-3 py-1.5 bg-blue-50 dark:bg-blue-900/30 rounded-full border border-blue-200 dark:border-blue-800",children:[(0,t.jsx)(s.FaMoneyBillWave,{className:"text-blue-500 text-xs"}),(0,t.jsxs)("span",{className:"text-xs font-semibold text-blue-700 dark:text-blue-300",children:["Avg Ksh ",e.avgPrice?.toLocaleString()]})]})]}),d?(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:n.map(e=>(0,t.jsxs)(r.motion.div,{whileHover:{y:-2},transition:{duration:.15},className:"p-4 bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800 hover:border-blue-300 dark:hover:border-blue-700 hover:shadow-md transition-all",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider mb-1",children:e.name}),(0,t.jsxs)("p",{className:"text-xl font-bold text-gray-900 dark:text-white mb-1",children:["Ksh ",e.avgPrice?.toLocaleString()]}),(0,t.jsxs)("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:[e.minPrice?.toLocaleString()," – ",e.maxPrice?.toLocaleString()]}),(0,t.jsxs)("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-1",children:[e.count," ",1===e.count?"listing":"listings"]})]},e.name))}):(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Average",value:e.avgPrice,icon:s.FaMoneyBillWave},{label:"Lowest",value:e.minPrice,icon:s.FaSearchDollar},{label:"Highest",value:e.maxPrice,icon:s.FaChartBar}].map(({label:e,value:a,icon:r})=>(0,t.jsxs)("div",{className:"p-4 bg-white dark:bg-gray-900 rounded-xl border border-gray-200 dark:border-gray-800",children:[(0,t.jsxs)("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider flex items-center gap-1 mb-1",children:[(0,t.jsx)(r,{className:"text-xs"})," ",e]}),(0,t.jsxs)("p",{className:"text-xl font-bold text-gray-900 dark:text-white",children:["Ksh ",a?.toLocaleString()??"N/A"]})]},e))})]})};e.s(["default",0,({filterOverrides:e,initialSeoData:n,initialStats:u=null,slug:y})=>{let p=(0,x.useSearchParams)(),j=(0,x.useRouter)();(0,a.useEffect)(()=>{let e=p.get("agentId");e&&j.replace(`/agent/${e}`)},[p,j]);let{user:f}=(0,o.useAuth)(),[v,k]=(0,a.useState)(u),[N,w]=(0,a.useState)(!u),[S,F]=(0,a.useState)([]),[T,C]=(0,a.useState)([]),P=(0,a.useRef)(null),[A,L]=(0,a.useState)(null),I=(0,a.useMemo)(()=>{let t=Object.fromEntries(p.entries());return{...e,...t}},[e,p]);(0,a.useEffect)(()=>{(async()=>{v||w(!0);try{let e=new URLSearchParams(Object.fromEntries(Object.entries(I).filter(([e,t])=>null!=t&&"all"!==t))),{data:t}=await i.default.get(`/properties/stats?${e.toString()}`);k(t),(window.requestIdleCallback||(e=>setTimeout(e,100)))(async()=>{let e=[I.listingType,I.type,I.location].filter(Boolean).join(" ").trim(),a=(0,c.buildSearchTrackingPayload)({query:e,resultCount:Number(t?.count)||0,category:I.type||"all",location:I.location||null,source:"search_page"}),r=JSON.stringify(a);if(a.query&&P.current!==r&&(0,c.shouldTrackSearch)(a)&&(P.current=r,i.default.post("/tracking/search",a).then(()=>{(0,c.markSearchTracked)(a)}).catch(e=>{console.error("Failed to log search analytics:",e)})),I.location)try{let[e,t]=await Promise.allSettled([i.default.get(`/faqs?search=${I.location}`),i.default.get(`/community/location/${I.location}`)]);"fulfilled"===e.status&&F(e.value.data.slice(0,3)),"fulfilled"===t.status&&C(t.value.data)}catch(e){}})}catch(e){console.error("Failed to fetch property stats:",e),k(null)}finally{w(!1)}})()},[JSON.stringify(I)]);let $=null===A?v&&v.count>0:A>0,{listingType:q,location:O}=I;return(0,t.jsx)("div",{className:"min-h-screen bg-white dark:bg-gray-950 pb-20 pt-24",children:(0,t.jsxs)("div",{className:"container mx-auto max-w-6xl px-4 py-8",children:[(0,t.jsx)("div",{className:"mb-5",children:(0,t.jsx)(d.default,{})}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("h1",{className:"text-2xl md:text-3xl font-bold text-gray-900 dark:text-white",children:["string"==typeof q&&q?q.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):""," in ",I.location||"Kenya"]}),n?.introText&&(0,t.jsx)("div",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1 leading-relaxed line-clamp-2",dangerouslySetInnerHTML:{__html:n.introText}})]}),$&&(0,t.jsx)(b,{stats:v,loading:N,location:I.location}),N&&null===A?(0,t.jsx)("div",{className:"h-96 w-full bg-gray-100 dark:bg-gray-800 animate-pulse rounded-2xl mb-10"}):(0,t.jsx)(m,{filterOverrides:I,showSearchBar:!1,showTitle:!1,onResultCountChange:e=>L(e),emptyState:(0,t.jsx)(h,{location:I.location||"this location",listingType:q,nearbyLocations:["Westlands","Kilimani","Kileleshwa","Lavington","Karen","Ruaka","South B","Thika Road"]})},JSON.stringify(I)),n?.marketInsight&&$&&(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{duration:.4,delay:.2},className:"mb-8 p-6 bg-blue-50 dark:bg-blue-950/40 rounded-2xl border border-blue-100 dark:border-blue-900",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)(s.FaLightbulb,{className:"text-blue-500 text-sm"}),(0,t.jsxs)("h3",{className:"font-semibold text-blue-800 dark:text-blue-300 text-sm",children:["Market Insight · ",I.location||"Nairobi"]})]}),(0,t.jsx)("div",{className:"text-sm text-blue-700 dark:text-blue-200 leading-relaxed prose-sm dark:prose-invert",dangerouslySetInnerHTML:{__html:n.marketInsight}})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:[(0,t.jsxs)("div",{className:"lg:col-span-2 p-6 bg-gray-50 dark:bg-gray-900 rounded-2xl border border-gray-200 dark:border-gray-800 flex flex-col sm:flex-row items-center gap-5",children:[(0,t.jsx)("div",{className:"p-4 bg-blue-100 dark:bg-blue-900/50 rounded-2xl shrink-0",children:(0,t.jsx)(s.FaUserFriends,{className:"text-3xl text-blue-600 dark:text-blue-400"})}),(0,t.jsxs)("div",{className:"flex-1 text-center sm:text-left",children:[(0,t.jsx)("h2",{className:"text-base font-bold text-gray-900 dark:text-white mb-1",children:"Can't Find It? Our Property Scouts Can."}),(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-3",children:"Access thousands of exclusive listings not shown online."}),(0,t.jsxs)("a",{href:"#house-hunt-request",className:"inline-flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white font-semibold text-sm px-5 py-2.5 rounded-xl transition-colors",children:[(0,t.jsx)(s.FaArrowDown,{className:"text-xs"})," Request a Scout"]})]})]}),S.length>0&&(0,t.jsxs)("div",{className:"lg:col-span-1 p-5 bg-gray-50 dark:bg-gray-900 rounded-2xl border border-gray-200 dark:border-gray-800",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)(s.FaQuestionCircle,{className:"text-orange-400 text-sm"}),(0,t.jsxs)("h3",{className:"font-semibold text-gray-900 dark:text-white text-sm",children:[I.location," FAQ"]})]}),(0,t.jsx)("div",{className:"space-y-2",children:S.map(e=>(0,t.jsxs)(l.default,{href:`/faq/${e.slug}`,className:"flex justify-between items-center p-3 bg-white dark:bg-gray-800 rounded-xl border border-gray-100 dark:border-gray-700 hover:border-blue-300 dark:hover:border-blue-700 transition-colors group",children:[(0,t.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-300 group-hover:text-blue-600 dark:group-hover:text-blue-400 line-clamp-2 pr-2",children:e.question}),(0,t.jsx)(s.FaChevronRight,{className:"text-xs text-gray-300 group-hover:text-blue-500 shrink-0"})]},e._id))})]})]}),(0,t.jsx)("div",{className:"my-8",id:"house-hunt-request",children:(0,t.jsx)(g,{compact:!0})})]})})}])},287754,e=>{e.v(t=>Promise.all(["static/chunks/f6fa2119c642e9ff.js","static/chunks/69137652a1031ce9.js"].map(t=>e.l(t))).then(()=>t(72902)))},913690,e=>{e.v(t=>Promise.all(["static/chunks/fb5af6ba6db69dde.js"].map(t=>e.l(t))).then(()=>t(949801)))},409354,e=>{e.v(t=>Promise.all(["static/chunks/87ffc2da90165051.js"].map(t=>e.l(t))).then(()=>t(280151)))},484792,e=>{e.v(t=>Promise.all(["static/chunks/460184a50f499196.js"].map(t=>e.l(t))).then(()=>t(492198)))}]);

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.