1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var r in a)a.hasOwnProperty(r)&&(e[r]=a[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:crazygames-portal":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5c86a4e1-9bbd-4135-9c50-667295e1244d",e._sentryDebugIdIdentifier="sentry-dbid-5c86a4e1-9bbd-4135-9c50-667295e1244d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47396],{22077:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/new/[[...page]]",function(){return a(55040)}])},55040:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>b});var r=a(6029),i=a(55729),n=a(68168),s=a(23033),l=a(30277),o=a(52461),g=a(50293),d=a(58224),c=a(87295),u=a(47676),p=a(952),h=a(31331),m=a(91831),w=a(39195),_=a(20183),y=a(85722);class f extends i.Component{static async getInitialProps(e){let{pageService:t,routeDataService:a}=(0,u.V)(e),r=(0,g.hz)(e),i=(0,g.Fr)(r),o=c.QI,p=e.query[c.Sh]||1,h=(0,l.z)(p),m=i?d.Qk:d.lY,w={page:h,size:Number(e.query&&e.query[c.Fb]||m)},_=e.query&&e.query[c.hy]||void 0,y=(0,s.CZ)(o,_,a,h);if(o===c.QI&&h>d.sy)throw new n.A(404,"Incorrect pagination");let[f,b]=await Promise.all([t.gamesPageGamesOnly(o,w,(0,g.Dw)(r),_),y]);if(1!==w.page&&0===f.games.items.length)throw new n.A(404,"No games found");return o===c.QI&&e.res&&e.res.setHeader("Cache-Control","public, max-age=120, stale-if-error=1800, stale-while-revalidate=300"),{games:f.games,label:_,sorting:o,page:h,alternatives:b}}render(){let{games:e,sorting:t,alternatives:a,label:i}=this.props,n=this.getTitle(),s=this.getDescription(),l=this.getGamePageHeading(),g=this.getGamePageDescription(),d=this.getCanonical(),c=this.getClickOrigin();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.A,{title:n,metaDescription:s,canonical:d,alternatives:a}),(0,r.jsx)(m.A,{canonical:d,title:n,description:s}),(0,r.jsx)(o.x,{newClickOrigin:c,children:(0,r.jsx)(h.A,{games:e,sorting:t,pageHeading:l,pageDescription:g,label:i})})]})}getTitle(){let{sorting:e,i18n:t,label:a,page:r}=this.props;if(a&&a===c.HG)return`${t._({id:"games.hot.metaTitle"})} ${r>1?` - ${t._({id:"games.title.page"})} ${r}`:""}`;switch(e){case c.QI:return`${t._({id:"games.new.title"})} - CrazyGames${r>1?` - ${t._({id:"games.title.page"})} ${r}`:""}`;case c.F3:return`${t._({id:"games.updated.title"})} - CrazyGames${r>1?` - ${t._({id:"games.title.page"})} ${r}`:""}`;default:return console.warn(`unexpected sorting ${e}`),"CrazyGames"}}getDescription(){let{i18n:e,label:t}=this.props;return t&&t===c.HG?e._({id:"games.hot.metaDescription"}):e._("common.head.metaDescription")}getGamePageHeading(){let{sorting:e,i18n:t,label:a}=this.props;return a&&a===c.HG?t._({id:"games.hot.title"}):e===c.QI?t._({id:"games.new.title"}):e===c.F3?t._({id:"games.updated.title"}):void 0}getGamePageDescription(){let{label:e,i18n:t}=this.props;if(e&&e===c.HG)return t._({id:"games.hot.description"})}getCanonical(){let{routeHelper:e,sorting:t,page:a,label:r}=this.props;if(r===c.HG)return e.hotPageCanonical(a);switch(t){case c.QI:return e.newPageCanonical(a);case c.F3:return e.updatedPageCanonical(a);case c.nn:default:return console.warn(`unexpected sorting ${t}`),e.newPageCanonical(a)}}getClickOrigin(){let{sorting:e,label:t}=this.props;if(t&&t===c.HG)return"trending";switch(e){case c.QI:return"new";case c.F3:return"updated"}}}let b=(0,w.A)((0,_.A)("games","carousels")((0,y.A)(f)))}},e=>{e.O(0,[89247,6847,32413,62540,38018,22375,46593,90636,38792],()=>e(e.s=22077)),_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.