PageSourceSearch

https://www.silobrooklyn.com/_next/static/chunks/pages/photos-de80970749607258.js

js silobrooklyn.com collected 2026-10-05 10:59:24 UTC 3,357 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[205],{1161:function(e,o,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/photos",function(){return t(3238)}])},3238:function(e,o,t){"use strict";t.r(o),t.d(o,{__N_SSP:function(){return l},default:function(){return h}});var n=t(5893),s=t(5675),c=t(7294),r=t(3882),i=t.n(r);function a(e){var o=e.photos,t=e.photoIndex,r=e.onClose,a=(0,c.useState)(t),l=a[0],h=a[1];(0,c.useEffect)((function(){return document.addEventListener("keydown",u),function(){return document.removeEventListener("keydown",u)}}),[l]);var u=(0,c.useCallback)((function(e){switch(e.keyCode){case 27:return void r();case 37:return void v();case 39:return void f();default:r()}})),d=(0,c.useCallback)((function(e){"right"!==e?v():f()})),f=function(){h((l+1)%o.length)},v=function(){h(((l-1)%o.length+o.length)%o.length)};return(0,n.jsxs)("div",{className:i().photoCarousel,children:[(0,n.jsx)("div",{className:i().leftArrow,onClick:function(){return d("left")},children:(0,n.jsx)("div",{className:i().icon,children:(0,n.jsx)(s.default,{src:"/chevron-left.svg",width:"50",height:"50",objectFit:"contain"})})}),(0,n.jsx)("img",{className:i().photo,src:o[l],layout:"fill"}),(0,n.jsx)("div",{className:i().rightArrow,onClick:function(){return d("right")},children:(0,n.jsx)("div",{className:i().icon,children:(0,n.jsx)(s.default,{src:"/chevron-right.svg",width:"50",height:"50",objectFit:"contain"})})}),(0,n.jsx)("button",{className:i().close,onClick:r,children:"x"})]})}var l=!0;function h(e){var o=e.spacePhotos,t=e.eventPhotos,r=(0,c.useState)(0),l=r[0],h=r[1],u=(0,c.useState)(0),d=u[0],f=u[1],v=(0,c.useState)(!1),_=v[0],m=v[1],p=(0,c.useState)(!1),x=p[0],j=p[1],N=function(){j(!1)},C=function(){m(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"event ".concat(i().photosContainer),children:[x&&(0,n.jsx)("div",{className:i().carouselContainer,children:(0,n.jsx)(a,{photos:t,photoIndex:d,onClose:N})}),x&&(0,n.jsx)("div",{className:i().overlay,onClick:N}),(0,n.jsxs)("div",{className:"photos ".concat(i().isEventPhotoCarouselOpen),children:[(0,n.jsx)("h1",{className:"bold mt-28",children:"Photos"}),(0,n.jsx)("h3",{className:"bold mb-4 mt-16",children:"Events"}),t.map((function(e,o){return(0,n.jsx)("div",{className:"photo",onClick:function(){return function(e){f(e),j(!0)}(o)},children:(0,n.jsx)(s.default,{width:200,height:200,src:e,objectFit:"cover"})},e)}))]})]}),(0,n.jsxs)("div",{className:"space ".concat(i().photosContainer),children:[_&&(0,n.jsx)("div",{className:i().carouselContainer,children:(0,n.jsx)(a,{photos:o,photoIndex:l,onClose:C})}),_&&(0,n.jsx)("div",{className:i().overlay,onClick:C}),(0,n.jsxs)("div",{className:"photos ".concat(i().isSpacePhotoCarouselOpen),children:[(0,n.jsx)("h3",{className:"bold mb-4 mt-28",children:"The Space"}),o.map((function(e,o){return(0,n.jsx)("div",{className:"photo",onClick:function(){return function(e){h(e),m(!0)}(o)},children:(0,n.jsx)(s.default,{width:200,height:200,src:e,objectFit:"cover"})},e)}))]})]})]})}},3882:function(e){e.exports={photoCarousel:"Photos_photoCarousel__Pf4Vo",overlay:"Photos_overlay__rfGlc",photo:"Photos_photo__L66Qp",leftArrow:"Photos_leftArrow__j39_d",rightArrow:"Photos_rightArrow__mg5xi",close:"Photos_close__EPSiP"}}},function(e){e.O(0,[774,888,179],(function(){return o=1161,e(e.s=o);var o}));var o=e.O();_N_E=o}]);

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.