1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5026],{77945:function(e,t,r){"use strict";r.d(t,{Z:function(){return K}});var n=r(59499),i=r(11163),a=r.n(i),o=r(67294),s=r(17592),c=r(39230),l=r(8148),p=r(31680),d=r(57088),u=r(33152),g=r(93324),f=r(4730),y=r(50891),h=r(3327),b=r(27420),j=r(85893),w=["selected","dark","className","style","children"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=b.r.var("colors.contrasting.white"),m=b.r.var("colors.oceanDark"),x=b.r.var("colors.competition.primeraDivision.normal"),O=(0,y.iv)({minWidth:"30px",maxWidth:"54px",height:"30px",display:"flex",justifyContent:"center",alignItems:"center",fontWeight:700,backgroundColor:"var(--pi-bg)",color:"var(--pi-color)",transition:"background-color 0.3s, color 0.3s",width:"54px",mobilePortrait:{width:"auto"},"&:hover":{backgroundColor:"competition.primeraDivision.dark",color:"contrasting.white"}}),PaginationItemContainer=function(e){var t=e.selected,r=e.dark,n=e.className,i=e.style,a=e.children,o=(0,f.Z)(e,w);return(0,j.jsx)("div",_objectSpread(_objectSpread({className:(0,y.cx)(O,n),style:_objectSpread({"--pi-bg":t?x:void 0,"--pi-color":t?v:r?v:m,cursor:t?"initial":"pointer"},i)},(0,h.R)(o)),{},{children:a}))},P=r(12763),k=["page","selected","dark"];function paginationitem_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function paginationitem_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?paginationitem_ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):paginationitem_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var paginationitem=function(e){var t=e.page,r=e.selected,n=e.dark,i=paginationitem_objectSpread(paginationitem_objectSpread({},(0,f.Z)(e,k)),{},{selected:void 0!==r&&r,dark:void 0!==n&&n});return(0,j.jsx)(PaginationItemContainer,paginationitem_objectSpread(paginationitem_objectSpread({},i),{},{children:(0,j.jsx)(g.Z,{Font:P.C.typography.label.labelMBold,children:void 0===t?1:t})}))},_=["className","style","children"],S=["dark","className","style","children"],Z=["variant","dark","className","style","children"];function styled_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function styled_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?styled_ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):styled_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var C=b.r.var("colors.contrasting.white"),N=b.r.var("colors.oceanDark"),L=b.r.var("colors.contrasting.gray600"),styledDiv=function(e){return function(t){var r=t.className,n=t.style,i=t.children,a=(0,f.Z)(t,_);return(0,j.jsx)("div",styled_objectSpread(styled_objectSpread({className:(0,y.cx)(e,r),style:n},(0,h.R)(a)),{},{children:i}))}},D=styledDiv((0,y.iv)({display:"flex",justifyContent:"center",alignItems:"center",padding:"10px 0"})),E=styledDiv((0,y.iv)({display:"flex",justifyContent:"center",width:"100%",mobilePortrait:{width:"auto"}})),R=styledDiv((0,y.iv)({display:"flex",justifyContent:"space-between",gap:"6px",alignItems:"center",width:"100%",mobilePortrait:{width:"auto"},"& > div":{width:"100%",mobilePortrait:{width:"auto"}}})),W=(0,y.iv)({width:"30px",height:"30px",display:"flex",justifyContent:"flex-end",alignItems:"center"}),PaginationEllipsis=function(e){var t=e.dark,r=e.className,n=e.style,i=e.children,a=(0,f.Z)(e,S);return(0,j.jsx)("div",styled_objectSpread(styled_objectSpread({className:(0,y.cx)(W,r),style:styled_objectSpread({color:t?C:N},n)},(0,h.R)(a)),{},{children:i}))},T=styledDiv((0,y.iv)({textAlign:"center",width:"100%",padding:"0 0 20px"})),I=(0,y.iv)({width:"30px",height:"30px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.8rem",cursor:"pointer",transition:"background-color 0.3s, color 0.3s","&:hover":{backgroundColor:"contrasting.gray300"},'&[data-variant="prev"]::before':{content:'" "',width:"8px",height:"8px",borderTopWidth:"2px",borderTopStyle:"solid",borderTopColor:"var(--arrow-color)",borderLeftWidth:"2px",borderLeftStyle:"solid",borderLeftColor:"var(--arrow-color)",transform:"rotate(-45deg)"},'&[data-variant="next"]::before':{content:'" "',width:"8px",height:"8px",borderTopWidth:"2px",borderTopStyle:"solid",borderTopColor:"var(--arrow-color)",borderRightWidth:"2px",borderRightStyle:"solid",borderRightColor:"var(--arrow-color)",transform:"rotate(45deg)"}}),PaginationArrow=function(e){var t=e.variant,r=e.dark,n=e.className,i=e.style,a=e.children,o=(0,f.Z)(e,Z);return(0,j.jsx)("div",styled_objectSpread(styled_objectSpread({className:(0,y.cx)(I,n),"data-variant":t,style:styled_objectSpread({"--arrow-color":r?C:L},i)}
1,(0,h.R)(o)),{},{children:a}))};function pagination_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function pagination_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pagination_ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pagination_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var K=(0,l.vm)(function(e){var t,r,n,l,f,y,h=e.page,b=e.perPage,w=e.setPage,v=e.total,m=e.dark,x=e.disableScrollTop,O=e.enableQueryControl,k=e.device,_=e.RouteName,S=(0,i.useRouter)(),Z=_||(0,p.translatePathAsRouteName)(S.pathname),C=(0,o.useMemo)(function(){return k<=c.q$},[k]),N=(0,o.useMemo)(function(){return Math.ceil(v/b)},[v,b]),L=(0,o.useCallback)(function(e){if(h!==e&&(w(e),O)){var t=pagination_objectSpread({},null==S?void 0:S.query);e>1?t.page=e:delete t.page;var r=(0,d.Z)(Z,t);a().replaceRoute(r)}},[h,w,O,null==S?void 0:S.query,Z]);(0,o.useEffect)(function(){x||window.scrollTo(0,0)},[x,h]);var wrapWithLink=function(e,t){return O?(0,j.jsx)(u.Z,{RouteName:Z,RouteParams:pagination_objectSpread(pagination_objectSpread({},S.query),{},{page:e}),children:t},e):o.cloneElement(t,{onClick:function(){return L(e)}})},W=(0,j.jsx)(T,{children:(0,j.jsx)(g.Z,{tagType:"h5",FontColor:"#fff",children:s.Z.t("no_results")})});return N>0&&(W=(0,j.jsxs)(R,{children:[h>1&&wrapWithLink(h-1,(0,j.jsx)(PaginationArrow,{dark:m,variant:"prev"})),(n=[],C?(t=h-2>=1,r=h-2>1):(t=h-3>=1,r=h-3>1),!C&&h-2>0&&n.push(h-2),h-1>0&&n.push(h-1),(0,j.jsxs)(j.Fragment,{children:[t&&(0,j.jsxs)(j.Fragment,{children:[wrapWithLink(1,(0,j.jsx)(paginationitem,{dark:m,page:1},1)),r&&(0,j.jsx)(PaginationEllipsis,{dark:m,children:"..."})]}),n.map(function(e){return wrapWithLink(e,(0,j.jsx)(paginationitem,{dark:m,page:e},e))})]})),(0,j.jsx)(paginationitem,{dark:m,page:h,selected:!0}),(y=[],C?(l=h+2<=N,f=h+2<N):(l=h+3<=N,f=h+3<N),h+1<=N&&y.push(h+1),!C&&h+2<=N&&y.push(h+2),(0,j.jsxs)(j.Fragment,{children:[y.map(function(e){return wrapWithLink(e,(0,j.jsx)(paginationitem,{dark:m,page:e},e))}),l&&(0,j.jsxs)(j.Fragment,{children:[f&&(0,j.jsx)(PaginationEllipsis,{dark:m,children:(0,j.jsx)(g.Z,{Font:P.C.typography.label.labelMBold,children:"..."})}),wrapWithLink(N,(0,j.jsx)(paginationitem,{dark:m,page:N},N))]})]})),h!==N&&wrapWithLink(h+1,(0,j.jsx)(PaginationArrow,{dark:m,variant:"next"}))]})),(0,j.jsx)(D,{children:(0,j.jsx)(E,{children:W})})})},96235:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return P}});var n,i=r(50029),a=r(87794),o=r.n(a),s=r(67294),c=r(57731),l=r(76321),p=r(92777),d=r(82262),u=r(45959),g=r(63553),f=r(37247),y=r(17592),h=r(39230),b=r(77945),j=r(47672),w=r(79033),v=r(85893),m=function(e){(0,u.Z)(LaLigaGenuineNews,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,f.Z)(LaLigaGenuineNews);if(t){var n=(0,f.Z)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.Z)(this,e)});function LaLigaGenuineNews(e){var t;return(0,p.Z)(this,LaLigaGenuineNews),(t=r.call(this,e)).state={ready:!0,news:e.news,pageSelected:1},t.breadCrumbsItems=[{name:y.Z.t("laliga-genuine"),link:"genuine"},{name:e.title}],t}return(0,d.Z)(LaLigaGenuineNews,[{key:"selectPage",value:function(e){var t=this;this.setState({ready:!1,pageSelected:e},function(){c.dD({category:h.gE},{limit:h.og,offset:h.og*e-h.og}).then(function(e){t.setState({news:e,ready:!0})})})}},{key:"render",value:function(){var e=this,t=this.props.title,r=this.state.news;return(0,v.jsx)(j.Z,{Active:"news",breadCrumbsItems:this.breadCrumbsItems,title:t,children:r&&r.news.length>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(w.Z,{Type:4,EnableTitle:!1,news:r,ready:this.state.ready}),(0,v.jsx)(b.Z,{setPage:function(t){return e.selectPage(t)},page:this.state.pageSelected,perPage:h.og,total:r.total})]}):y.Z.t("no_news")})}}]),LaLigaGenuineNews}(s.Component),x=r(7305),O=r(77900),LaLigaGenuineNewsPage=function(e){var t=e.statusCode,r=e.news,n=e.title,i=e.noindex;return 200!==t?(0,v.jsx)(l.Z,{statusCode:t}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(x.Z,{title:"".concat(y.Z.t("genuine_page")," - ").concat(y.Z.t("news")),description:y.Z.t("news_description"),noIndex:i,routeName:"genuine-news"}),(0,v.jsx)(m,{news:r,title:n})]})};LaLigaGenuineNewsPage.getInitialProps=(n=(0,i.Z)(o().mark(function _callee(e,t,r){var n,i,a,s,l;return o().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.res,i=h.Wt,s=200,l=!!i||!O.H6(r,t),"es"!==t){o.next=17;break}return o.prev=5,o.next=8,c.dD({language:t,category:h.gE},{limit:h.og},e);case 8:a=o.sent,o.next=15;break;
1case 11:o.prev=11,o.t0=o.catch(5),n&&(n.statusCode=o.t0.code),s=o.t0.code;case 15:o.next=18;break;case 17:s=404;case 18:return o.abrupt("return",{lang:t,country:r,news:a,competition:i,statusCode:s,title:y.Z.t("news"),noindex:l,gptBase:"/laliga-genuine/home"});case 19:case"end":return o.stop()}},_callee,null,[[5,11]])})),function(e,t,r){return n.apply(this,arguments)});var P=LaLigaGenuineNewsPage},54825:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/laliga-genuine/news",function(){return r(96235)}])}},function(e){e.O(0,[5531,33,958,6957,3254,5159,8491,4578,9033,7569,9774,2888,179],function(){return e(e.s=54825)}),_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.