1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[860],{9756:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kereses",function(){return e(4686)}])},2535:function(n,t,e){"use strict";var i=e(5893);t.Z=function(n){return(0,i.jsx)("div",{className:"row category-listing-category-title",children:(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)("div",{className:"inner-container",children:(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-12 col-md-8",children:(0,i.jsx)("h1",{className:"category-listing-title",children:n.label})})})})})})}},2073:function(n,t,e){"use strict";e.d(t,{iQ:function(){return o}});var i=e(2729),l=e(8806);function r(){let n=(0,i._)(['\n query latestPostsFromAllCategories($excluded: [ID], $first: Int, $after: Int) {\n politikas(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n sports(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n hiteletek(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n kulturak(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n podcastok(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n szinesek(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n velemenyek(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n csallokozok(\n filters: { documentId: { notIn: $excluded } }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n }\n']);return r=function(){return n},n}function a(){let n=(0,i._)(["\n fragment ArticleDataSearchFrg on ComponentArticleArticleData {\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n \n query fuzzySearch($query: String!) {\n search(query: $query) {\n csallokozok {\n nodes {\n documentId\n title\n slug\n article_data {\n ...Art
1icleDataSearchFrg\n }\n }\n }\n hiteletek {\n nodes {\n documentId\n title\n slug\n article_data {\n ...ArticleDataSearchFrg\n }\n }\n }\n kulturak {\n nodes {\n documentId\n title\n slug\n article_data {\n ...ArticleDataSearchFrg\n }\n }\n }\n podcastok {\n nodes {\n documentId\n title\n slug\n article_data {\n ...ArticleDataSearchFrg\n }\n }\n }\n politikas {\n nodes {\n documentId\n title\n slug\n article_data {\n ...ArticleDataSearchFrg\n }\n }\n }\n sports {\n nodes {\n documentId\n title\n slug\n article_data {\n ...ArticleDataSearchFrg\n }\n }\n }\n szinesek {\n nodes {\n documentId\n title\n slug\n article_data {\n ...Art
1icleDataSearchFrg\n }\n }\n }\n velemenyek {\n nodes {\n documentId\n title\n slug\n article_data {\n ...ArticleDataSearchFrg\n }\n }\n }\n }\n }\n"]);return a=function(){return n},n}function s(){let n=(0,i._)(['\n query latestPostsFromAllCategories(\n $excluded: [ID]\n $first: Int\n $after: Int\n $authorId: ID!\n ) {\n politikas(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n sports(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n hiteletek(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n kulturak(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n podcastok(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n szinesek(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n velemenyek(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n csallokozok(\n filters: {\n documentId: { notIn: $excluded }\n author: { documentId: { eq: $authorId } }\n }\n sort: ["publishedAt:desc"]\n pagination: { limit: $first, start: $after }\n status: PUBLISHED\n ) {\n documentId\n title\n subtitle\n slug\n publishedAt\n article_data {\n excerpt\n cover {\n documentId\n formats\n height\n width\n url\n previewUrl\n alternativeText\n }\n }\n }\n }\n']);return s=function(){return n},n}function d(){let n=(0,i._)(["\n query checkIfAuthorExists($authorId: ID!){\n usersPermissionsUser(documentId: $authorId){\n documentId\n firstName\n lastName\n }\n }\n"]);return d=function(){return n},n}let o=(0,l.Ps)(r());(0,l.Ps)(a()),(0,l.Ps)(s()),(0,l.Ps)(d())},4686:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSG:function(){return E},default:function(){return P}});var i=e(5893),l=e(3961),r=e(2535),a=function(n){return(0,i.jsx)("div",{className:"col-md-8",children:n.children})},s=function(n){return(0,i.jsx)("div",{className:"row",children:n.children})},d=function(n){return(0,i.jsx)("div",{className:"col-md-4",children:n.children})},o=e(7294);function u(n){let{client:t,slot:e,width:i,height:l}=n;return null}var c=e(3005),h=e(1664),m=e.n(h),v=e(5675),g=e.n(v),f=e(5370),p=function(n){var t,e,l;let r=n.item;return(0,i.jsx)(o.Fragment,{children:(0,i.jsx)("article",{className:"col-12 category-listing-item-container",children:(0,i.jsx)("div",{className:"inner
1-col",children:(0,i.jsxs)("div",{className:"row category-listing-item-inner-row",children:[(0,i.jsx)("div",{className:"col-12 col-lg-3",children:(null==r?void 0:null===(t=r.featuredImage)||void 0===t?void 0:t.url)&&(null==r?void 0:null===(e=r.featuredImage)||void 0===e?void 0:e.width)&&(null==r?void 0:null===(l=r.featuredImage)||void 0===l?void 0:l.height)&&(0,i.jsx)(m(),{href:(null==r?void 0:r.slug)?r.slug:"/404",children:(0,i.jsx)(g(),{src:r.featuredImage.url,width:r.featuredImage.width,height:r.featuredImage.height,className:"category-listing-item-cover"})})}),(0,i.jsxs)("div",{className:"col-12 col-lg-9",children:[(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)(m(),{href:(null==r?void 0:r.slug)?r.slug:"/404",legacyBehavior:!0,children:(0,i.jsx)("h4",{className:"category-listing-item-title",children:(null==r?void 0:r.title)?r.title:""})})})}),(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-12 category-listing-item-excerpt-col",children:(0,f.Z)((null==r?void 0:r.excerpt)?r.excerpt:"")})})]})]})})})})},x=function(n){return(0,i.jsx)("div",{className:"row articles-grid-get-more-btn-container",children:(0,i.jsx)("div",{className:"col-12 text-center",children:(0,i.jsx)("button",{disabled:n.disabled,onClick:n.onClick,className:"articles-grid-get-more-btn",children:n.label})})})},I=e(4324),b=function(n){return(0,i.jsx)("div",{className:"col-12",children:(0,i.jsxs)("div",{className:"row mb-4",children:[(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)(I.Z,{variant:"rectangular",width:275,height:190})}),(0,i.jsx)("div",{className:"col-12 mt-2",children:(0,i.jsx)(I.Z,{variant:"rectangular",width:275,height:20})}),(0,i.jsx)("div",{className:"col-12 mt-2",children:(0,i.jsx)(I.Z,{variant:"rectangular",width:150,height:20})})]})})};e(9229),e(2073);var w=e(2395),j=e(2693);let $=new(e(9724)).P({host:"https://meilisearch.szabadujsag.sk",apiKey:"8cf6e1be1d22852672b6f0e373daf1b10bd73a0255e0c76fbb9cbda478f340a7"});async function k(n,t){let e=[],i=await $.multiSearch({queries:[{indexUid:"csallokoz",q:n,limit:10},{indexUid:"hitelet",q:n,limit:10},{indexUid:"kultura",q:n,limit:10},{indexUid:"podcast",q:n,limit:10},{indexUid:"politika",q:n,limit:10},{indexUid:"sport",q:n,limit:10},{indexUid:"szines",q:n,limit:10},{indexUid:"velemeny",q:n,limit:10}]});return Object.keys(w.j).forEach(function(n){var l,r;let a="/"+w.j[n].slug+"/",s=null==i?void 0:null===(r=i.results)||void 0===r?void 0:null===(l=r.find(t=>t.indexUid===w.j[n].singleType))||void 0===l?void 0:l.hits;null==s||s.forEach((i,l)=>{if(i&&(null==i?void 0:i.documentId)){var r,s,d,o,u,c;e.push({documentId:i.documentId?i.documentId:null,slug:(null==i?void 0:i.slug)?a+i.slug:a,publishedAt:(null==i?void 0:i.publishedAt)||null,title:(null==i?void 0:i.title)?i.title:null,featuredImage:(null==i?void 0:null===(r=i.article_data)||void 0===r?void 0:r.cover)&&(null==i?void 0:null===(d=i.article_data)||void 0===d?void 0:null===(s=d.cover)||void 0===s?void 0:s.formats)?(0,j.Et)(null==i?void 0:null===(o=i.article_data)||void 0===o?void 0:o.cover,t):null,category:null===(c=w.j[n])||void 0===c?void 0:null===(u=c.texts)||void 0===u?void 0:u.category})}})}),e}var A=e(1163),_=e(8539),N=e(5299),U=e(4677),y=e(7527),S=e(1796),D=e(2004),q=function(n){let[t,e]=(0,o.useState)([]),[l,r]=(0,o.useState)(!1),[a,s]=(0,o.useState)(!1),[d,u]=(0,o.useState)({first:6,after:"",hasMoreData:!0}),c=(0,A.useRouter)();async function h(t,i){s(!0);let a=[];t?i&&(null==i?void 0:i.length)>0&&(a=await k(i,"medium")):a=await k(n.searchedText,"medium"),(null==a?void 0:a.length)>0?(t?e(n=>[...a]):e(n=>[...n,...a]),u(n=>({...n,hasMoreData:null!=a&&!!a.hasMoreData&&a.hasMoreData,after:(null==a?void 0:a.after)?a.after:n.after}))):(e([]),u(n=>({...n,hasMoreData:!1}))),s(!1),l||r(!0)}let m=(0,o.useRef)(!0);(0,o.useEffect)(()=>{m.current&&(m.current=!1,h())},[]);let v=(0,o.useRef)(null),g=(0,y.ZP)("div")(n=>{let{theme:t}=n;return{position:"relative",borderRadius:t.shape.borderRadius,backgroundColor:(0,S.Fq)(t.palette.common.white,.15),"&:hover":{backgroundColor:(0,S.Fq)(t.palette.common.white,.25)},marginRight:t.spacing(2),marginLeft:0,width:"100%",[t.breakpoints.up("sm")]:{marginLeft:t.spacing(3),width:"80%"}}}),f=(0,y.ZP)("div")(n=>{let{theme:t}=n;return{padding:t.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center",color:"white"}}),I=(0,y.ZP)(D.ZP)(n=>{let{theme:t}=n;return{color:"white",width:"100%","& .MuiInputBase-input":{padding:t.spacing(1,1,1,0),paddingLeft:"calc(1em + ".concat(t.spacing(4),")"),transition:t.transitions.create("width"),width:"100%",[t.breakpoints.up("md")]:{width:"80%"}}}});return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("div",{className:"header-bottom-bar-main-wrapper",style:{marginBottom:"1rem"},children:(0,i.jsx)("div",{className:"header-bottom-bar-wrapper",style:{borderRadius:"7px"},children:(0,i.jsxs)(_.Z,{disableGutters:!0,sx:{backgroundColor:"black !important"},children:[(0,i.jsxs)(g,{children:[(0,i.jsx)(f,{children:(0,i.jsx)(N.Z,{})}),(0,i.jsx)(I,{placeholder:"\xcdrja be a keresendÅ sz\xf6veget",inputProps:{"aria-label":"search"},inputRef:v,defaultValue:(null==n?void 0:n.searchedText)?n.searchedText:""})]}),(0,i.jsx)(U.Z,{sx:{color:"#fff",paddingLeft:"0",paddingRight:"0",width:"6rem",marginRight:"1rem",fontFamily:'"Barlow Condensed", sans-serif !important',fontSize:"1.2rem",textTransform:"none",textAlign:"left"},className:"main-menu-item",onClick:function(){var n,t;(null==v?void 0:null===(t=v.current)||void 0===t?void 0:null===(n=t.value)||void 0===n?void 0:n.length)>2&&(c.push({pathname:"/kereses",query:{s:v.current.value}},void 0,{shallow:!0}),h(!0,v.current.value))},children:"Keres\xe9s"},"search-btn")]})})}),(0,i.jsxs)("div",{className:"row",children:[l&&t.length>0&&(0,i.jsxs)(o.Fragment,{children:[t.map((n,t)=>{var e;return(0,i.jsx)(o.Fragment,{children:(null==n?void 0:n.title)&&(null==n?void 0:null===(e=n.title)||void 0===e?void 0:e.length)>0&&(0,i.jsx)(p,{item:n},t)},t)}
1),d.hasMoreData&&(0,i.jsx)(x,{disabled:a,label:"TOV\xc1BBI KERES\xc9SI EREDM\xc9NYEK",onClick:h})]}),l&&0===t.length&&(0,i.jsx)(o.Fragment,{children:(0,i.jsx)("p",{children:"Nem tal\xe1ltunk a keres\xe9si felt\xe9teleknek megfelelÅ cikket."})}),!l&&0===t.length&&(0,i.jsx)(o.Fragment,{children:(0,i.jsx)("div",{className:"row",children:Array.apply(null,{length:6}).map((n,t)=>(0,i.jsx)(b,{},t))})})]})]})},E=!0;function P(n){var t,e,o,h;let m=(0,A.useRouter)();return console.log(m.query),(0,i.jsx)(l.Z,{texts:n.texts,siteTitle:"Keres\xe9s | "+n.texts.Home.head.title,topBarStr:n.topBarStr,marqueePosts:n.marqueePosts,children:(0,i.jsxs)(c.Z,{children:[(0,i.jsx)("div",{className:"spacer-1"}),(0,i.jsx)(r.Z,{variant:"black",label:"KERES\xc9S"}),(0,i.jsxs)(s,{children:[(0,i.jsx)(a,{children:m&&(0,i.jsx)(q,{searchedText:(null==m?void 0:null===(e=m.query)||void 0===e?void 0:null===(t=e.s)||void 0===t?void 0:t.length)>0?m.query.s:""},"s-".concat((null==m?void 0:null===(h=m.query)||void 0===h?void 0:null===(o=h.s)||void 0===o?void 0:o.length)>0?m.query.s:"1"))}),(0,i.jsx)(d,{children:(0,i.jsx)(u,{height:"20rem",width:"100%",client:null,slot:null})})]})]})})}}},function(n){n.O(0,[443,675,941,610,724,623,560,370,888,774,179],function(){return n(n.s=9756)}),_N_E=n.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.