PageSourceSearch

https://kurby.ai/_next/static/chunks/5450-6c464083e1aaf013.js

js kurby.ai collected 2026-10-04 10:38:54 UTC 11,715 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5450],{28077:(e,l,r)=>{r.d(l,{BT:()=>u,Wu:()=>s,ZB:()=>i,Zp:()=>a,aR:()=>c});var t=r(37876),n=r(14232),o=r(21257);let a=n.forwardRef((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("div",{ref:l,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});a.displayName="Card";let c=n.forwardRef((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("div",{ref:l,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...n})});c.displayName="CardHeader";let i=n.forwardRef((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("div",{ref:l,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let u=n.forwardRef((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("div",{ref:l,className:(0,o.cn)("text-sm text-muted-foreground",r),...n})});u.displayName="CardDescription";let s=n.forwardRef((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("div",{ref:l,className:(0,o.cn)("p-6 pt-0",r),...n})});s.displayName="CardContent",n.forwardRef((e,l)=>{let{className:r,...n}=e;return(0,t.jsx)("div",{ref:l,className:(0,o.cn)("flex items-center p-6 pt-0",r),...n})}).displayName="CardFooter"},55450:(e,l,r)=>{r.d(l,{L:()=>p});var t=r(37876);r(14232);var n=r(48230),o=r.n(n),a=r(54587),c=r.n(a),i=r(28077),u=r(96852),s=r(36867),d=r(97630);let m={popular:"bg-blue-100 text-blue-800 hover:bg-blue-200","family-friendly":"bg-green-100 text-green-800 hover:bg-green-200",affordable:"bg-amber-100 text-amber-800 hover:bg-amber-200","up-and-coming":"bg-purple-100 text-purple-800 hover:bg-purple-200",nightlife:"bg-pink-100 text-pink-800 hover:bg-pink-200"},h={popular:"Popular","family-friendly":"Family-Friendly",affordable:"Affordable","up-and-coming":"Up & Coming",nightlife:"Nightlife"},g=["from-blue-500 to-indigo-600","from-emerald-500 to-teal-600","from-orange-500 to-red-600","from-purple-500 to-pink-600","from-cyan-500 to-blue-600","from-rose-500 to-fuchsia-600","from-amber-500 to-orange-600","from-teal-500 to-emerald-600"],p=e=>{let{neighborhood:l}=e,{slug:r,name:n,city:a,state:p,state_abbrev:f,median_home_value:y,population:x,walkability_score:b,categories:v,photo_url:w,parent_city_slug:R,air_quality_aqi:_,country_code:N,kurby_score:C}=l,j=!N||"US"===N,k=j?p.toLowerCase().replace(/ /g,"-"):N.toLowerCase(),E=R?"/neighborhoods/".concat(k,"/").concat(R,"/").concat(r):"/neighborhoods/".concat(k,"/").concat(r);return(0,t.jsx)(o(),{href:E,className:"block group",children:(0,t.jsxs)(i.Zp,{className:"overflow-hidden transition-all duration-200 hover:shadow-lg hover:-translate-y-0.5 h-full",children:[(0,t.jsxs)("div",{className:"relative h-40 overflow-hidden",children:[w?(0,t.jsx)(c(),{src:w,alt:"".concat(n,", ").concat(f),fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw",className:"object-cover group-hover:scale-105 transition-transform duration-300"}):(0,t.jsx)("div",{className:"w-full h-full bg-gradient-to-br ".concat(function(e){let l=0;for(let r=0;r<e.length;r++)l=e.charCodeAt(r)+((l<<5)-l);return g[Math.abs(l)%g.length]}(n)," flex items-center justify-center"),children:(0,t.jsx)("span",{className:"text-5xl font-bold text-white/80",children:n.charAt(0)})}),null!=C&&(0,t.jsxs)("div",{className:"absolute top-2 left-2 flex items-center gap-1 bg-white/90 backdrop-blur-sm rounded-full px-2 py-0.5 text-xs font-semibold",children:[(0,t.jsx)(s.A,{className:"h-3 w-3 text-amber-500"}),(0,t.jsx)("span",{className:(0,d.zi)(C).color,children:C})]}),(0,t.jsxs)("div",{className:"absolute top-2 right-2 flex gap-1.5",children:[null!=b&&b>0&&(0,t.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm rounded-full px-2 py-0.5 text-xs font-semibold text-gray-700",children:["Walk: ",b]}),null!=_&&(0,t.jsxs)("div",{className:"backdrop-blur-sm rounded-full px-2 py-0.5 text-xs font-semibold ".concat(_<=50?"bg-green-100/90 text-green-800":_<=100?"bg-yellow-100/90 text-yellow-800":"bg-red-100/90 text-red-800"),children:["AQI: ",_]})]})]}),(0,t.jsxs)(i.Wu,{className:"p-4",children:[(0,t.jsx)("h3",{className:"font-bold text-base leading-tight group-hover:text-blue-600 transition-colors",children:n}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground mt-0.5",children:[a!==n?"".concat(a,", "):"",j?f:l.country||f]}),(0,t.jsxs)("div",{className:"flex items-center gap-4 mt-3 text-sm",children:[null!=y&&(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"font-semibold text-foreground",children:function(e,l){if(l&&"US"!==l){let r={GB:{locale:"en-GB",currency:"GBP"},DE:{locale:"de-DE",currency:"EUR"},FR:{locale:"fr-FR",currency:"EUR"},NL:{locale:"nl-NL",currency:"EUR"},ES:{locale:"es-ES",currency:"EUR"}
1,IT:{locale:"it-IT",currency:"EUR"},PT:{locale:"pt-PT",currency:"EUR"},AT:{locale:"de-AT",currency:"EUR"},BE:{locale:"fr-BE",currency:"EUR"},IE:{locale:"en-IE",currency:"EUR"},SE:{locale:"sv-SE",currency:"SEK"},DK:{locale:"da-DK",currency:"DKK"},PL:{locale:"pl-PL",currency:"PLN"},CZ:{locale:"cs-CZ",currency:"CZK"},HU:{locale:"hu-HU",currency:"HUF"},NO:{locale:"nb-NO",currency:"NOK"},CH:{locale:"de-CH",currency:"CHF"},FI:{locale:"fi-FI",currency:"EUR"},GR:{locale:"el-GR",currency:"EUR"},RO:{locale:"ro-RO",currency:"RON"},HR:{locale:"hr-HR",currency:"EUR"}}[l]||{locale:"en-GB",currency:"EUR"};return new Intl.NumberFormat(r.locale,{style:"currency",currency:r.currency,maximumFractionDigits:0}).format(e)}return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e)}(y,N)}),(0,t.jsx)("span",{className:"text-muted-foreground ml-1 text-xs",children:"median"})]}),null!=x&&(0,t.jsxs)("div",{className:"text-muted-foreground text-xs",children:["Pop. ",new Intl.NumberFormat("en-US").format(x)]})]}),v&&v.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-3",children:v.slice(0,3).map(e=>(0,t.jsx)(u.E,{variant:"secondary",className:"text-[10px] px-1.5 py-0 font-medium ".concat(m[e]||"bg-gray-100 text-gray-800"),children:h[e]||e},e))})]})]})})}},97630:(e,l,r)=>{r.d(l,{DT:()=>m,FA:()=>t,XR:()=>n,bj:()=>d,n_:()=>i,v_:()=>c,zi:()=>a});let t=3,n=5;function o(e,l,r){let t=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)return null;let n=(Math.min(Math.max(e,l),r)-l)/(r-l)*100;return Math.min(t?100-n:n,95)}function a(e){return e>=90?{grade:"A+",color:"text-emerald-700",bgColor:"bg-emerald-100"}:e>=80?{grade:"A",color:"text-emerald-600",bgColor:"bg-emerald-50"}:e>=70?{grade:"B+",color:"text-green-600",bgColor:"bg-green-50"}:e>=60?{grade:"B",color:"text-lime-600",bgColor:"bg-lime-50"}:e>=50?{grade:"C+",color:"text-yellow-600",bgColor:"bg-yellow-50"}:e>=40?{grade:"C",color:"text-orange-600",bgColor:"bg-orange-50"}:e>=30?{grade:"D",color:"text-red-500",bgColor:"bg-red-50"}:{grade:"F",color:"text-red-700",bgColor:"bg-red-100"}}function c(e){return e>=80?"Excellent":e>=60?"Good":e>=40?"Fair":e>=20?"Below Average":"Poor"}function i(e){return e>=80?"bg-emerald-500":e>=60?"bg-green-500":e>=40?"bg-yellow-500":e>=20?"bg-orange-500":"bg-red-500"}function u(e){return null==e||0===e?null:e}function s(e){if(null==e)return null;let l=Math.round(e);return 0===l?null:l}function d(e){let l=[],r=o(e.walkScore,0,100),i=[r,o(e.bikeScore,0,100),o(e.transitScore,0,100)].filter(e=>null!=e),d=i.length>0?i.reduce((e,l)=>e+l,0)/i.length:null;l.push({name:"Walkability & Transit",score:s(d),weight:15,description:"Walk Score, Bike Score, Transit Score",trend:null!=d&&d>=50?"up":"neutral"});let m=[];if(e.medianHomeValue&&e.averageSalary&&e.averageSalary>0){let l=o(e.medianHomeValue/e.averageSalary,3,10,!0);null!=l&&m.push(l)}if(0===m.length&&null!=e.hudAffordabilityIndex){let l=o(e.hudAffordabilityIndex,50,150);null!=l&&m.push(l)}if(null!=e.medianRent){let l=o(e.medianRent,500,3e3,!0);null!=l&&m.push(l)}if(null!=e.electricityRate){let l=o(e.electricityRate,8,30,!0);null!=l&&m.push(l)}let h=m.length>0?m.reduce((e,l)=>e+l,0)/m.length:null;l.push({name:"Affordability",score:s(h),weight:25,description:"Home price-to-income ratio, rent, electricity costs",trend:null!=h&&h>=50?"up":"down"});let g=[];if(null!=u(e.violentCrimeRate)){let l=o(e.violentCrimeRate,40,750,!0);null!=l&&g.push(l)}if(null!=u(e.propertyCrimeRate)){let l=o(e.propertyCrimeRate,400,3500,!0);null!=l&&g.push(l)}let p=g.length>0?g.reduce((e,l)=>e+l,0)/g.length:null;l.push({name:"Safety",score:s(p),weight:17,description:"Violent and property crime rates",trend:null!=p&&p>=50?"up":"down"});let f=[];if(null!=e.collegeDegreePercent){let l=o(e.collegeDegreePercent,0,60);null!=l&&f.push(l)}if(null!=e.totalNearbySchools){let l=o(e.totalNearbySchools,0,20);null!=l&&f.push(l)}if(null!=e.schoolStudentTeacherRatio){let l=o(e.schoolStudentTeacherRatio,25,10,!0);null!=l&&f.push(l)}if(null!=e.schoolFreeLunchPct){let l=o(e.schoolFreeLunchPct,100,20,!0);null!=l&&f.push(l)}let y=f.length>0?f.reduce((e,l)=>e+l,0)/f.length:null;l.push({name:"Education",score:s(y),weight:13,description:"College-educated residents, nearby schools, student-teacher ratio",trend:null!=y&&y>=50?"up":"neutral"});let x=[];if(null!=e.unemploymentRate){let l=o(e.unemploymentRate,0,15,!0);null!=l&&x.push(l)}if(null!=e.countyUnemploymentRate){let l=o(e.countyUnemploymentRate,0,15,!0);null!=l&&x.push(l)}if(null!=e.povertyRate){let l=o(e.povertyRate,0,30,!0);null!=l&&x.push(l)}let b=x.length>0?x.reduce((e,l)=>e+l,0)/x.length:null;l.push({name:"Economy",score:s(b),weight:13,description:"Unemployment rate, poverty rate",trend:null!=b&&b>=50?"up":"down"});let v=[];
1if(null!=e.epaHazardCount){let l=o(e.epaHazardCount,0,10,!0);null!=l&&v.push({score:l,weight:1})}if(null!=e.aqi){let l=o(e.aqi,0,200,!0);null!=l&&v.push({score:l,weight:1})}if(null!=e.overallClimateRiskIndex){let l=o(e.overallClimateRiskIndex,0,100,!0);null!=l&&v.push({score:l,weight:2})}if(null!=u(e.maxNoise)){let l=o(e.maxNoise,0,90,!0);null!=l&&v.push({score:l,weight:1})}null!=e.floodZoneHighRisk&&v.push({score:e.floodZoneHighRisk?5:90,weight:2});let w=v.reduce((e,l)=>e+l.weight,0),R=v.reduce((e,l)=>e+l.score*l.weight,0),_=w>0?R/w:null;l.push({name:"Environment",score:s(_),weight:17,description:"Air quality, noise, hazardous sites, climate risk, flood zone",trend:null!=_&&_>=50?"up":"down"});let N=l.filter(e=>null!=e.score).length,C=N>=t,j=0,k=0;for(let e of l)null!=e.score&&(k+=e.score*e.weight,j+=e.weight);let E=0!==j&&C?Math.round(k/j):null,S=null!=E?a(E):{grade:"N/A",color:"",bgColor:""},U=null!=E?c(E):"Unknown";return{overall:E,grade:S.grade,label:U,gradeColor:S.color,gradeBgColor:S.bgColor,categories:l,availableCategoryCount:N,isDisplayable:C,isLimitedData:C&&N<n}}function m(e){var l;let r=e.census_data||{},t=[e.noise_level_road,e.noise_level_aviation,e.noise_level_rail].filter(e=>null!=e&&e>0);return d({walkScore:e.walkability_score,bikeScore:e.bike_score,transitScore:e.transit_score,medianHomeValue:u(e.median_home_value),averageSalary:u(e.median_household_income),hudAffordabilityIndex:u(e.affordability_index),medianRent:u(e.median_rent),electricityRate:u(e.electricity_rate),violentCrimeRate:u(e.crime_rate_violent),propertyCrimeRate:u(e.crime_rate_property),collegeDegreePercent:null!=r.bachelors_or_higher&&r.bachelors_or_higher>0?100*r.bachelors_or_higher:null,totalNearbySchools:e.total_nearby_schools,schoolStudentTeacherRatio:e.school_student_teacher_ratio,schoolFreeLunchPct:e.school_free_lunch_pct,unemploymentRate:u(e.unemployment_rate),countyUnemploymentRate:u(e.county_unemployment_rate),povertyRate:e.poverty_rate,epaHazardCount:e.epa_hazard_count,aqi:u(e.air_quality_aqi),overallClimateRiskIndex:e.climate_risk_score,maxNoise:t.length>0?Math.max(...t):null,ownerOccupiedPercent:null!=(l=u(e.homeownership_rate))?l:u(r.owner_occupancy_rate),vacancyPercent:r.vacancy_rate,effectiveTaxRate:r.effective_tax_rate})}}}]);

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.