PageSourceSearch

https://detroit-neighborhoods.pages.dev/_app/immutable/nodes/7.0LPMTPCr.js

js detroit-neighborhoods.pages.dev collected 2026-10-03 06:40:38 UTC 4,907 bytes, 5 lines download raw bytes

1import{s as lt,d as h,A as ot,i as y,b as f,p as nt,r as C,q as S,v as st,g as A,c as $,e as H,w as B,j as E,h as k,f as j,t as x,a as M,I as J,z as K}from"../chunks/CeKwq4tL.js";import{S as at,i as rt,d as it,t as ct,a as ft,m as ut,c as dt,b as mt}from"../chunks/CC91_1Oj.js";import{e as Q}from"../chunks/BysmMC_4.js";import{e as _t}from"../chunks/C-YKzGbR.js";import{c as W}from"../chunks/CZ2l4SM5.js";import{B as ht}from"../chunks/Cjr6tjxi.js";function X(i,e,t){const l=i.slice();return l[1]=e[t],l}function pt(i){let e;return{c(){e=x("Log out")},l(t){e=j(t,"Log out")},m(t,l){y(t,e,l)},d(t){t&&h(e)}}}function Y(i){let e;return{c(){e=x("s")},l(t){e=j(t,"s")},m(t,l){y(t,e,l)},d(t){t&&h(e)}}}function Z(i){let e,t=i[1].reported_count+"",l,p,v,o=i[1].reported_count>1&&tt();return{c(){e=x("— "),l=x(t),p=x(" reported submission"),o&&o.c(),v=K()},l(s){e=j(s,"— "),l=j(s,t),p=j(s," reported submission"),o&&o.l(s),v=K()},m(s,_){y(s,e,_),y(s,l,_),y(s,p,_),o&&o.m(s,_),y(s,v,_)},p(s,_){_&1&&t!==(t=s[1].reported_count+"")&&M(l,t),s[1].reported_count>1?o||(o=tt(),o.c(),o.m(v.parentNode,v)):o&&(o.d(1),o=null)},d(s){s&&(h(e),h(l),h(p),h(v)),o&&o.d(s)}}}function tt(i){let e;return{c(){e=x("s")},l(t){e=j(t,"s")},m(t,l){y(t,e,l)},d(t){t&&h(e)}}}function et(i){let e,t,l=i[1].name+"",p,v,o,s=i[1].count+"",_,g,z,q,r=i[1].count>1&&Y(),u=i[1].reported_count>0&&Z(i);return{c(){e=k("li"),t=k("a"),p=x(l),o=x(`
2				—
3				`),_=x(s),g=x(" total submission"),r&&r.c(),z=E(),u&&u.c(),q=E(),this.h()},l(d){e=$(d,"LI",{class:!0});var n=H(e);t=$(n,"A",{href:!0,class:!0});var w=H(t);p=j(w,l),w.forEach(h),o=j(n,`
4				—
5				`),_=j(n,s),g=j(n," total submission"),r&&r.l(n),z=A(n),u&&u.l(n),q=A(n),n.forEach(h),this.h()},h(){C(t,"href",v=W+"/view/"+encodeURIComponent(i[1].name)),C(t,"class","svelte-1jocsw8"),J(t,"reported",i[1].reported_count>0),C(e,"class","svelte-1jocsw8")},m(d,n){y(d,e,n),f(e,t),f(t,p),f(e,o),f(e,_),f(e,g),r&&r.m(e,null),f(e,z),u&&u.m(e,null),f(e,q)},p(d,n){n&1&&l!==(l=d[1].name+"")&&M(p,l),n&1&&v!==(v=W+"/view/"+encodeURIComponent(d[1].name))&&C(t,"href",v),n&1&&J(t,"reported",d[1].reported_count>0),n&1&&s!==(s=d[1].count+"")&&M(_,s),d[1].count>1?r||(r=Y(),r.c(),r.m(e,z)):r&&(r.d(1),r=null),d[1].reported_count>0?u?u.p(d,n):(u=Z(d),u.c(),u.m(e,q)):u&&(u.d(1),u=null)},d(d){d&&h(e),r&&r.d(),u&&u.d()}}}function vt(i){let e,t,l,p="Admin dashboard",v,o,s="View analysis",_,g,z="View map",q,r,u="View organizations",d,n,w,P,L,T="Neighborhoods with submissions",U,V,N,D,G;w=new ht({props:{submit:!0,small:!0,style:"--color-button: rgb(59, 59, 110); --color-button-hover: rgb(90, 90, 169);",$$slots:{default:[pt]},$$scope:{ctx:i}}});let O=Q(i[0].neighborhoods),m=[];for(let a=0;a<O.length;a+=1)m[a]=et(X(i,O,a));return{c(){e=E(),t=k("div"),l=k("h1"),l.textContent=p,v=E(),o=k("a"),o.textContent=s,_=E(),g=k("a"),g.textContent=z,q=E(),r=k("a"),r.textContent=u,d=E(),n=k("form"),mt(w.$$.fragment),P=E(),L=k("h2"),L.textContent=T,U=E(),V=k("ol");for(let a=0;a<m.length;a+=1)m[a].c();this.h()},l(a){st("svelte-j5qdlq",document.head).forEach(h),e=A(a),t=$(a,"DIV",{style:!0});var c=H(t);l=$(c,"H1",{class:!0,"data-svelte-h":!0}),B(l)!=="svelte-1nlkc03"&&(l.textContent=p),v=A(c),o=$(c,"A",{href:!0,style:!0,"data-svelte-h":!0}),B(o)!=="svelte-qz9pr2"&&(o.textContent=s),_=A(c),g=$(c,"A",{href:!0,style:!0,"data-svelte-h":!0}),B(g)!=="svelte-14otgcm"&&(g.textContent=z),q=A(c),r=$(c,"A",{href:!0,style:!0,"data-svelte-h":!0}),B(r)!=="svelte-1jglvzm"&&(r.textContent=u),d=A(c),n=$(c,"FORM",{method:!0,action:!0});var b=H(n);dt(w.$$.fragment,b),b.forEach(h),P=A(c),L=$(c,"H2",{class:!0,"data-svelte-h":!0}),B(L)!=="svelte-1xlm9ec"&&(L.textContent=T),U=A(c),V=$(c,"OL",{class:!0});var R=H(V);for(let F=0;F<m.length;F+=1)m[F].l(R);R.forEach(h),c.forEach(h),this.h()},h(){document.title="Administrative dashboard",C(l,"class","svelte-1jocsw8"),C(o,"href","/analysis"),S(o,"width","fit-content"),C(g,"href","/map/census"),S(g,"width","fit-content"),C(r,"href","/civic"),S(r,"width","fit-content"),C(n,"method","POST"),C(n,"action","?/logout"),C(L,"class","svelte-1jocsw8"),C(V,"class","svelte-1jocsw8"),S(t,"display","grid"),S(t,"gap","0.5rem")},m(a,I){y(a,e,I),y(a,t,I),f(t,l),f(t,v),f(t,o),f(t,_),f(t,g),f(t,q),f(t,r),f(t,d),f(t,n),ut(w,n,null),f(t,P),f(t,L),f(t,U),f(t,V);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(V,null);N=!0,D||(G=nt(_t.call(null,n)),D=!0)},p(a,[I]){const c={};if(I&16&&(c.$$scope={dirty:I,ctx:a}),w.$set(c),I&1){O=Q(a[0].neighborhoods);let b;for(b=0;b<O.length;b+=1){const R=X(a,O,b);m[b]?m[b].p(R,I):(m[b]=et(R),m[b].c(),m[b].m(V,null))}for(;b<m.length;b+=1)m[b].d(1);m.length=O.length}},i(a){N||(ft(w.$$.fragment,a),N=!0)},o(a){ct(w.$$.fragment,a),N=!1},d(a){a&&(h(e),h(t)),it(w),ot(m,a),D=!1,G()}}}function bt(i,e,t){let{data:l}=e;return i.$$set=p=>{"data"in p&&t(0,l=p.data)},[l]}class jt extends at{constructor(e){super(),rt(this,e,bt,vt,lt,{data:0})}}export{jt 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.