1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[625],{8947:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/video-gallery-list",function(){return n(5988)}])},4868:function(t,e){"use strict";e.Z={src:"/_next/static/media/photo-hc.4601e7f6.svg",height:25,width:32}},7433:function(t,e){"use strict";e.Z={src:"/_next/static/media/photo.300db387.svg",height:24,width:24}},2937:function(t,e,n){"use strict";var r=n(4051),i=n.n(r),o=n(7294);function s(t,e,n,r,i,o,s){try{var a=t[o](s),l=a.value}catch(c){return void n(c)}a.done?e(l):Promise.resolve(l).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,l,"next",t)}function l(t){s(o,r,i,a,l,"throw",t)}a(void 0)}))}}e.Z=function(t,e){var n=(0,o.useState)([]),r=n[0],s=n[1],l=(0,o.useState)(!1),c=l[0],u=l[1];return{displayedItems:r,handleLoadMore:function(n,o){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=function(){var r=a(i().mark((function r(){var s,a;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s={method:"GET"},a="".concat(t,"&pagenumber=").concat(n,"&pagesize=").concat(o).concat(e?"preview=1":""),r.abrupt("return",fetch(a,s).then((function(t){return t.json().then((function(e){return{status:t.status,body:e}})).catch((function(e){return{status:t.status,body:void 0}}))})));case 3:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();c().then((function(t){var e;(null===(e=t.body)||void 0===e?void 0:e.length)<o?u(!0):u(!1),s(l?t.body:r.concat(t.body))})).catch(console.error)},isOver:c}}},5988:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return N}});var r=n(5893),i=n(9008),o=n.n(i),s=n(1664),a=n.n(s),l=n(1163),c=n(5177),u=n(5675),d=n.n(u),f=n(9692),h=n(7294),v=n(8100),p=n(8014),m=function(t){return fetch(t,{method:"GET"}).then((function(t){return t.json().then((function(e){return{status:t.status,body:e}})).catch((function(e){return{status:t.status}}))}))},w=function(t,e){var n=(0,h.useState)([]),r=n[0],i=n[1],o=(0,l.useRouter)(),s=(0,v.ZP)("".concat(p.fw,"/video-gallery-list?headingId=").concat(t).concat(e?"&preview=1":""),m),a=s.data;s.error;return(0,h.useEffect)((function(){a&&(200===a.status?i(a.body.galleryList):o.replace("error?status=".concat(a.status),window.location.href,{shallow:!0}))}),[a,o]),r},x=n(1810),g=n(2937),b=n(7433),j=n(4868),y=function(t){var e=t.gallery,n=e.title,i=e.size,o=e.coverImage,s=e.heading,l=(0,c.b)(),u=l.webmenus,h=l.highContrastOn,v=u[s],p=(0,x.I7)("/video-gallery",e,v),m=p.urlObject;p.asPath;return(0,r.jsx)(a(),{href:m,as:window.location.pathname+"/"+e.slug,children:(0,r.jsxs)("a",{className:"flex flex-col ",children:[(0,r.jsx)("div",{className:"relative h-[50vw] w-full xl:h-[9.5vw] xl:w-[15.5vw]",children:(0,r.jsx)(d(),{loader:f.XI,src:o.fileThumbUrl,alt:null===o||void 0===o?void 0:o.title,title:null===o||void 0===o?void 0:o.title,layout:"fill",objectFit:"cover"})}),(0,r.jsx)("div",{className:"w-full",children:n}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("span",{className:"text-xl mr-1",children:i}),(0,r.jsx)(d(),{src:h?j.Z:b.Z,alt:"K\xe9p ikon",loader:f.kM,width:18})]})]})})},N=function(){var t,e=(0,l.useRouter)().query,n=(null===e||void 0===e||null===(t=e.webmenuId)||void 0===t?void 0:t.toString())||"",i=(w(n,location.search.includes("preview=1")),(0,g.Z)("".concat(p.fw,"/video-gallery-list?headingId=").concat(n),location.search.includes("preview=1"))),s=i.displayedItems,a=i.handleLoadMore,c=i.isOver,u=(0,h.useState)(1),d=u[0],f=u[1],v=(0,h.useState)(10),m=v[0];v[1];(0,h.useEffect)((function(){a(d,m)}),[n]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("meta",{property:"og:title",content:"Vide\xf3 Gal\xe9ria"}),(0,r.jsx)("meta",{property:"og:description",content:"Budapest 18 ker\xfclet \xf6nkorm\xe1nyzati weboldal"}),(0,r.jsx)("meta",{property:"og:image",content:"https://webteszt.bp18app.hu/body/logo.jpg"}),(0,r.jsx)("title",{children:"Vide\xf3 Gal\xe9ria"}),(0,r.jsx)("meta",{name:"description",content:"Budapest 18 ker\xfclet \xf6nkorm\xe1nyzati weboldal"}),(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center text-article w-full gap-desktop font-montserrat article-list-styles",children:[location.search.includes("preview=1")&&(0,r.jsx)("div",{className:"text-[24pt] text-page-title-color font-semibold mb-12",children:"!!!El\u0151n\xe9zet!!!"}),(0,r.jsx)("div",{className:"w-full xl:w-2/3 grid grid-cols-1 xl:grid-cols-4 auto-rows-fr gap-mobile xl:gap-desktop",children:null===s||void 0===s?void 0:s.map((function(t){return(0,r.jsx)(y,{gallery:t},null===t||void 0===t?void 0:t.id)}))}),(0,r.jsx)("div",{className:"w-full xl:w-2/3 flex justify-center items-center",children:!c&&(0,r.jsx)("div",{className:"col-span-12 h-load-more-btn 2xl:w-1/3 p-[3px] justify-self-center load-more-btn-wrapper mb-24",children:(0,r.jsx)("button",{onClick:function(){a(d+1,m),f(d+1)},className:"w-full h-full bg-white font-montserrat font-semibold text-load-more-btn",children:"TOV\xc1BB"})})})]})]})}},9008:function(t,e,n){t.exports=n(3121)}},function(t){t.O(0,[774,888,179],(function(){return e=8947,t(t.s=e);var e}));var e=t.O();_N_E=e}]); 2//# sourceMappingURL=video-gallery-list-757b99a81e591ad8.js.map
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.