1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[914],{7911:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/[...slug]",function(){return n(8717)}])},2528:function(e,t,n){"use strict";var s=n(5893),r=n(7294),l=n(2445),i=n(5117),o=n(8623),a=n(7414),c=n(7841),u=n(6817),d=n(3292),g=n(2730),h=n(7762),p=n(5935),x=n(9008),m=n.n(x),f=n(1163),j=n(4714);let Z=(0,u.k)(e=>({container:{padding:0,textAlign:"center",[e.other.breakpointsFn.up("md")]:{padding:"0 16px"}},notFoundTitle:{fontSize:60},notFoundDescription:{fontSize:20}}));t.Z=()=>{let{classes:e}=Z(),t=(0,f.useRouter)(),[n,u]=(0,d.Z)();return(0,r.useEffect)(()=>{h.m.trackPageView("404",["404"],["romea-cz"])},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(m(),{children:[(0,s.jsx)("title",{children:"404 - Romea.cz"}),(0,s.jsx)("meta",{name:"robots",content:"noindex, follow"})]}),(0,s.jsx)(l.W,{fluid:!0,sx:e=>({backgroundColor:e.white}),my:20,children:(0,s.jsxs)(l.W,{size:"lg",className:e.container,children:[(0,g.Z)(n,u)?(0,s.jsx)(i.x,{component:"h1",className:e.notFoundTitle,mt:60,mb:40,children:n.notFoundTitle}):(0,s.jsx)(o.O,{height:90,mt:60,mb:40,width:"50%"}),(0,g.Z)(n,u)?(0,s.jsx)(a.x,{className:e.notFoundDescription,mb:70,children:(0,p.ZP)(n.notFoundDescription)}):(0,s.jsx)(o.O,{height:30,mt:60,mb:40,width:"50%"}),(0,g.Z)(n,u)?(0,s.jsx)(c.z,{component:j.Link,mb:90,href:`${n.notFoundCtaLink.url}`,locale:"default"===t.locale?"cz":t.locale,children:n.notFoundCtaLink.title}):(0,s.jsx)(o.O,{height:50,mb:90,width:100})]})})]})}},897:function(e,t,n){"use strict";var s=n(5893),r=n(5117),l=n(6817);n(7294);var i=n(6762);let o=(0,l.k)((e,t)=>({sectionDescriptionText:{fontSize:16,lineHeight:1.625,color:t===i.i.light?e.black:e.white,[e.other.breakpointsFn.up("md")]:{fontSize:18,lineHeight:1.556}}}));t.Z=e=>{let{description:t,background:n=i.i.light,component:l="div",...a}=e,{classes:c}=o(n);return(0,s.jsx)(r.x,{component:l,className:c.sectionDescriptionText,...a,children:t})}},8717:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return el},default:function(){return ei}});var s=n(5893),r=n(3292),l=n(4495),i=n(1163),o=n(7294),a=n(7999),c=n(7427),u=n(4769),d=n(3139),g=n(2965),h=n(3254),p=n(28),x=n(1827),m=n(3626),f=e=>{let t=(0,u.Z)(),n=(0,m.Z)(),s=(0,h.Z)((0,d.C)(x.qz)),r=e?e.slug:null,l=e?e.perPage:null,i=e?e.pageNumber:null,g=e?e.excludeIds:null,[p,,f]=(0,c.Z)({type:a.U.POSTS_BY_CATEGORY_SLUG,sign:e}),[j,Z]=(0,o.useState)(()=>e&&s&&s[JSON.stringify(e)]?n(s[JSON.stringify(e)]):[]);return(0,o.useEffect)(()=>{Z(e&&s&&s[JSON.stringify(e)]?n(s[JSON.stringify(e)]):[]),f(e||null)},[r,l,i,g]),(0,o.useEffect)(()=>{Z(e&&s&&s[JSON.stringify(e)]?n(s[JSON.stringify(e)]):[])},[s]),(0,o.useEffect)(()=>{e&&(!j.length||p!==a.r.NOT_FOUND)&&p!==a.r.FAILED&&p!==a.r.EMPTY_RESPONSE&&t({type:a.U.POSTS_BY_CATEGORY_SLUG,sign:e})},[p,t]),[j,p]},j=n(8871),Z=n(2730),_=n(7762),b=n(9008),y=n.n(b),E=n(5935),S=n(2445),w=n(8623),L=n(7414),N=n(4777),O=n(9774),F=n(8722),k=n(3629),T=n(6852),C=n(2054),z=n(6448),M=n(6817),v=n(5232),P=n(7841),B=n(4714);let D=(0,M.k)({buttonBadgeTagLink:{padding:"0 14px",fontSize:14,height:34}});var I=e=>{let{tag:t,...n}=e,{classes:r}=D(),{locale:l}=(0,i.useRouter)();return(0,s.jsx)(P.z,{href:t.link,locale:"default"===l?"cz":l,component:B.Link,className:r.buttonBadgeTagLink,radius:3,variant:"outline",color:"dark",...n,children:t.name})};let A=(0,M.k)({tagsList:{whiteSpace:"nowrap",flexWrap:"nowrap",overflowX:"scroll",msOverflowStyle:"none",scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"}}});var R=e=>{let{tags:t,...n}=e,r=(0,o.useRef)(null),{classes:l}=A(),[i,a]=(0,o.useState)(!1),[c,u]=(0,o.useState)(0),[d,g]=(0,o.useState)(0);return(0,o.useEffect)(()=>{if(!r.current)return;let e=r.current,t=(0,v.Z)(e);return e.addEventListener("wheel",t),()=>{e.removeEventListener("wheel",t)}},[r]),(0,s.jsx)(L.x,{className:l.tagsList,ref:r,...n,onMouseMove:e=>{if(!i||!r.current)return;e.preventDefault();let t=e.pageX-r.current.offsetLeft;r.current.scrollLeft=d-(t-c)},onMouseUp:()=>{a(!1)},onMouseDown:e=>{r.current&&(a(!0),u(e.pageX-r.current.offsetLeft),g(r.current.scrollLeft))},children:t.map(e=>(0,s.jsx)(I,{tag:e,mr:10},e.id))})},U=n(50),q=n(9094),Y=n(5117),W=n(1679),G=n(6762),X=n(8884),J=e=>{let{posts:t,adIdWide:n,background:l=G.i.light,onLoadMoreButtonClick:i,loadMoreButton:o=!1,loadMoreButtonLoading:a=!1,loadError:c=!1}=e,[u,d]=(0,r.Z)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(U.r,{gutter:20,children:t.slice(0,4).map(e=>(0,s.jsx)(U.r.Col,{span:12,md:3,children:(0,s.jsx)(W.ZP,{my:15,background:l,post:e})},e.id))}),n&&(0,s.jsx)(O.Z,{id:n}),(0,s.jsx)(U.r,{gutter:20,children:t.slice(4).map(e=>(0,s.jsx)(U.r.Col,{span:12,md:3,children:(0,s.jsx)(W.ZP,{my:15,background:l,post:e})},e.id))}),(0,Z.Z)(u,d)?(0,s.jsxs)(s.Fragment,{children:[o&&!a&&!c&&(0,s.jsx)(q.M,{sx:{minHeight:50},children:(0,s.jsx)(P.z,{onClick:i,children:u.globalTranslations.load_more_posts?u.globalTranslations.load_more_posts:""})}),a&&!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X.Z,{type:W.Xp.horizontal,mb:20}),(0,s.jsx)(X.Z,{type:W.Xp.horizontal,mb:20}),(0,s.jsx)(X.Z,{type:W.Xp.horizontal,mb:20})]}),c&&(0,s.jsx)(q.M,{sx:{minHeight:50},children:(0,s.jsx)(Y.x,{component:"p",sx:{color:"red"},children:"Error"})})]}):(0,s.jsx)(q.M,{sx:{minHeight:50},children:(0,s.jsx)(w.O,{height:50,width:207})})]})},H=n(6701),V=n(3527),$=n(9171),K=n(897),Q=n(8222),ee=n(4575),et=n(2528),en=n(4065),es=n(872),er=n(7066),el=!0,ei=e=>{let{apiEndpointsCalled:t}=e;(0,o.useEffect)(()=>{t&&t.forEach(async e=>{await er.Z.get(e)})},[t]);let{classes:n}=(0,C.l)(),x=(0,en.a)((0,es.Z)("md","up")),[m,b]=(0,r.Z)(),[M,v]=(0,l.Z)({pageNumber:1,dayRange:7}),P=(0,i.useRouter)(),[B,D]=(0,o.useState)(()=>P.query.slug&&Array.isArray(P.query.slug)?P.query.slug[P.query.slug.length-1]:null),[I,A]=(0,o.useState)(1);(0,o.useEffect)(()=>{P.query.slug&&D(Array.isArray(P.query.slug)?P.query.slug[P.query.slug.length-1]:P.query.slug)},[P.query.slug]),(0,o.useEffect)(()=>{ei([])},[B]);
1let[U,q]=function(e){let t=(0,u.Z)(),n=(0,h.Z)((0,d.C)(g.nx)),s=(0,h.Z)((0,d.C)(g.$j)),r=e?e.slug:null,[l,i]=(0,o.useState)(()=>e&&(0,p.Z)(e.slug,n,s)),[x,,m]=(0,c.Z)({type:a.U.CATEGORY_BY_SLUG,sign:e});return(0,o.useEffect)(()=>{i(e&&(0,p.Z)(e.slug,n,s)),m(e)},[r]),(0,o.useEffect)(()=>{i(e&&(0,p.Z)(e.slug,n,s))},[s,n]),(0,o.useEffect)(()=>{e&&(!l||x!==a.r.NOT_FOUND)&&x!==a.r.FAILED&&x!==a.r.EMPTY_RESPONSE&&t({type:a.U.CATEGORY_BY_SLUG,sign:e})},[x,t]),[l,x]}(B?{slug:B}:null),[Y,W]=(0,o.useState)(()=>U?U.icon&&U.icon.length?17:14:null);(0,o.useEffect)(()=>{U?W(U.icon&&U.icon.length?17:14):W(null)},[U]);let[G,X]=f(B&&Y?{slug:B,pageNumber:I,perPage:Y}:null),[el,ei]=(0,o.useState)(G),eo=(0,j.IR)(B&&Y?{slug:B,perPage:Y}:null);return(0,o.useEffect)(()=>{(0,Z.Z)(G,X)&&ei(e=>[...new Set([...e,...G])])},[G,X]),(0,o.useEffect)(()=>{(0,Z.Z)(U,q)&&_.m.trackPageView("posts-by-category",["posts-by-category"],["romea-cz"])},[U,q]),(0,s.jsx)(s.Fragment,{children:q!==a.r.FAILED?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y(),{children:(0,Z.Z)(U,q)&&U.metaContent&&(0,s.jsxs)(s.Fragment,{children:[(0,E.ZP)(U.metaContent),U.meta.schema&&(0,s.jsx)("script",{type:"application/ld+json",children:JSON.stringify(U.meta.schema)},"schema")]})}),(0,s.jsx)(S.W,{fluid:!0,sx:e=>({backgroundColor:e.white}),pt:20,children:(0,s.jsxs)(S.W,{size:"lg",className:n.container,children:[(0,s.jsx)(O.Z,{id:"protag-header"}),(0,Z.Z)(U,q)?(0,s.jsx)(z.Z,{component:"h1",title:U.name,type:z.V.highlighted,iconSrc:U.icon&&U.icon.length?U.icon:void 0,className:n.pageTitleMarginBottom}):(0,s.jsx)(w.O,{height:55,width:"50%",className:n.pageTitleMarginBottom}),(0,Z.Z)(U,q)?U.description&&(0,s.jsx)(K.Z,{description:U.description,mb:20}):(0,s.jsx)(w.O,{height:28,width:"50%",mb:20}),(0,Z.Z)(U,q)?U.popularTags&&(0,s.jsx)(R,{tags:U.popularTags,mb:20}):(0,s.jsxs)(L.x,{sx:{display:"flex"},mb:20,children:[(0,s.jsx)(w.O,{height:34,width:60,mr:15}),(0,s.jsx)(w.O,{height:34,width:60,mr:15}),(0,s.jsx)(w.O,{height:34,width:60,mr:15}),(0,s.jsx)(w.O,{height:34,width:60,mr:15})]}),(0,s.jsx)(N.i,{})]})}),(0,s.jsx)(S.W,{fluid:!0,sx:e=>({backgroundColor:e.white}),pt:20,pb:50,children:(0,s.jsxs)(S.W,{size:"lg",className:n.container,children:[!x&&(0,s.jsx)(O.Z,{id:"protag-in_feed_top"}),el.length?(0,s.jsx)(Q.Z,{posts:el,adId:"protag-in_feed_top"}):(0,s.jsx)(F.Z,{})]})}),(0,s.jsx)(S.W,{fluid:!0,className:n.resultsSection,children:(0,s.jsx)(S.W,{size:"lg",className:n.container,children:U&&U.icon&&U.icon.length?(0,s.jsxs)(s.Fragment,{children:[el.length>5&&(0,s.jsx)(J,{posts:el.slice(5),loadMoreButton:!eo||eo.pages!==I,loadMoreButtonLoading:X!==a.r.FULFILLED,loadError:X===a.r.FAILED,onLoadMoreButtonClick:()=>A(e=>e+1)}),!el.length&&(0,s.jsx)(k.Z,{loadMoreButton:!0})]}):(0,s.jsx)(ee.Z,{main:(0,s.jsxs)(s.Fragment,{children:[el.length>5&&(0,s.jsx)(H.Z,{posts:el.slice(5),adIdTop:"protag-in_feed_1",adIdMiddle:"protag-in_feed_2",loadMoreButton:!eo||eo.pages!==I,loadMoreButtonLoading:X!==a.r.FULFILLED,loadError:X===a.r.FAILED,onLoadMoreButtonClick:()=>A(e=>e+1)}),!el.length&&(0,s.jsx)(k.Z,{loadMoreButton:!0})]}),aside:(0,Z.Z)(M,v)&&(0,Z.Z)(m,b)?(0,s.jsx)(V.Z,{posts:M,adIdTop:"protag-sidebar_top",adIdBottom:"protag-sidebar_bottom",title:m.globalTranslations.popular_title?m.globalTranslations.popular_title:"",titleIconSrc:"/assets/icons/icon-popular.svg",bulletComponent:T.Z}):(0,s.jsx)($.Z,{title:!0,bulletComponent:T.Z})})})})]}):(0,s.jsx)(et.Z,{})})}},28:function(e,t){"use strict";t.Z=function(e,t,n){return e&&t&&n&&n[e]&&t[n[e]]&&t[n[e]].isFull?t[n[e]]:null}},5232:function(e,t){"use strict";t.Z=e=>t=>{t.preventDefault(),e.scrollLeft+=t.deltaY}}},function(e){e.O(0,[935,925,170,601,888,774,179],function(){return e(e.s=7911)}),_N_E=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.