PageSourceSearch

https://detroit-neighborhoods.pages.dev/_app/immutable/nodes/3.Dhrcr2ax.js

js detroit-neighborhoods.pages.dev collected 2026-10-03 06:40:34 UTC 4,170 bytes, 1 lines download raw bytes

1import{s as Q,l as W,d as k,A as X,F as P,u as Y,m as x,o as $,i as K,b as d,G as ee,r as _,H as Z,q as m,E as te,c as v,e as C,w as q,g as T,h as g,j as w,k as ae,a as se,I as j,f as oe,t as le,J as re}from"../chunks/CeKwq4tL.js";import{S as ne,i as ie,t as ue,a as ce}from"../chunks/CC91_1Oj.js";import{e as z}from"../chunks/BysmMC_4.js";import{p as de}from"../chunks/Aiqce9ZO.js";function G(l,a,e){const s=l.slice();return s[7]=a[e],s}function J(l){let a,e,s,c=l[7].properties.name+"",E,b,i;return{c(){a=g("li"),e=g("a"),s=g("b"),E=le(c),i=w(),this.h()},l(o){a=v(o,"LI",{});var f=C(a);e=v(f,"A",{"data-sveltekit-keepfocus":!0,"data-sveltekit-noscroll":!0,"data-sveltekit-preload-code":!0,"data-sveltekit-preload-data":!0,href:!0,class:!0});var r=C(e);s=v(r,"B",{});var y=C(s);E=oe(y,c),y.forEach(k),r.forEach(k),i=T(f),f.forEach(k),this.h()},h(){_(e,"data-sveltekit-keepfocus",""),_(e,"data-sveltekit-noscroll",""),_(e,"data-sveltekit-preload-code","tap"),_(e,"data-sveltekit-preload-data","tap"),_(e,"href",b="/analysis/"+encodeURIComponent(l[7].properties.name)),_(e,"class","svelte-1knc332"),j(e,"active",l[7].properties.name===l[3].params.neighborhood)},m(o,f){K(o,a,f),d(a,e),d(e,s),d(s,E),d(a,i)},p(o,f){f&5&&c!==(c=o[7].properties.name+"")&&se(E,c),f&5&&b!==(b="/analysis/"+encodeURIComponent(o[7].properties.name))&&_(e,"href",b),f&13&&j(e,"active",o[7].properties.name===o[3].params.neighborhood)},d(o){o&&k(a)}}}function fe(l){let a,e,s,c,E="<b>Sort options</b>",b,i,o,f="A — Z",r,y="Most submissions",S,I,H,O,A,N,B,M=z(l[0].neighborhoods.features.sort(l[2])),u=[];for(let t=0;t<M.length;t+=1)u[t]=J(G(l,M,t));const R=l[5].default,p=W(R,l,l[4],null);return{c(){a=g("div"),e=g("nav"),s=g("form"),c=g("label"),c.innerHTML=E,b=w(),i=g("select"),o=g("option"),o.textContent=f,r=g("option"),r.textContent=y,S=w(),I=g("ul");for(let t=0;t<u.length;t+=1)u[t].c();H=w(),O=g("div"),p&&p.c(),this.h()},l(t){a=v(t,"DIV",{id:!0,class:!0});var h=C(a);e=v(h,"NAV",{style:!0,class:!0});var n=C(e);s=v(n,"FORM",{style:!0});var L=C(s);c=v(L,"LABEL",{for:!0,"data-svelte-h":!0}),q(c)!=="svelte-1ufgxm7"&&(c.innerHTML=E),b=T(L),i=v(L,"SELECT",{name:!0,id:!0,style:!0});var U=C(i);o=v(U,"OPTION",{"data-svelte-h":!0}),q(o)!=="svelte-1tim6y1"&&(o.textContent=f),r=v(U,"OPTION",{"data-svelte-h":!0}),q(r)!=="svelte-nzouoa"&&(r.textContent=y),U.forEach(k),L.forEach(k),S=T(n),I=v(n,"UL",{class:!0});var D=C(I);for(let V=0;V<u.length;V+=1)u[V].l(D);D.forEach(k),n.forEach(k),H=T(h),O=v(h,"DIV",{});var F=C(O);p&&p.l(F),F.forEach(k),h.forEach(k),this.h()},h(){_(c,"for","sort"),o.__value="A — Z",Z(o,o.__value),r.__value="Most submissions",Z(r,r.__value),_(i,"name","sort"),_(i,"id","sort"),m(i,"width","100%"),m(i,"min-height","25px"),l[1]===void 0&&te(()=>l[6].call(i)),m(s,"position","sticky"),m(s,"top","0"),m(s,"background-color","white"),m(s,"display","grid"),m(s,"gap","0.25rem"),m(s,"padding-bottom","0.375rem"),_(I,"class","svelte-1knc332"),m(e,"overflow","scroll"),m(e,"position","relative"),m(e,"display","grid"),m(e,"gap","1rem"),_(e,"class","svelte-1knc332"),_(a,"id","container"),_(a,"class","svelte-1knc332")},m(t,h){K(t,a,h),d(a,e),d(e,s),d(s,c),d(s,b),d(s,i),d(i,o),d(i,r),P(i,l[1],!0),d(e,S),d(e,I);for(let n=0;n<u.length;n+=1)u[n]&&u[n].m(I,null);d(a,H),d(a,O),p&&p.m(O,null),A=!0,N||(B=ee(i,"change",l[6]),N=!0)},p(t,[h]){if(h&2&&P(i,t[1]),h&13){M=z(t[0].neighborhoods.features.sort(t[2]));let n;for(n=0;n<M.length;n+=1){const L=G(t,M,n);u[n]?u[n].p(L,h):(u[n]=J(L),u[n].c(),u[n].m(I,null))}for(;n<u.length;n+=1)u[n].d(1);u.length=M.length}p&&p.p&&(!A||h&16)&&Y(p,R,t,t[4],A?$(R,t[4],h,null):x(t[4]),null)},i(t){A||(ce(p,t),A=!0)},o(t){ue(p,t),A=!1},d(t){t&&k(a),X(u,t),p&&p.d(t),N=!1,B()}}}function _e(l,a,e){let s,c;ae(l,de,r=>e(3,c=r));let{$$slots:E={},$$scope:b}=a,{data:i}=a,o;function f(){o=re(this),e(1,o)}return l.$$set=r=>{"data"in r&&e(0,i=r.data),"$$scope"in r&&e(4,b=r.$$scope)},l.$$.update=()=>{l.$$.dirty&2&&e(2,s=o==="Most submissions"?(r,y)=>y.properties.count-r.properties.count:(r,y)=>r.properties.name>y.properties.name?1:-1)},[i,o,s,c,b,E,f]}
1class ge extends ne{constructor(a){super(),ie(this,a,_e,fe,Q,{data:0})}}export{ge as component};

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.