"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1484,9536],{5139:(e,t,i)=>{i.d(t,{A:()=>n});let n={src:"/_next/static/media/warning.53226107.svg",height:17,width:16,blurWidth:0,blurHeight:0}},5673:(e,t,i)=>{i.d(t,{A:()=>n});let n={src:"/_next/static/media/close-icon.bbd54abd.svg",height:13,width:12,blurWidth:0,blurHeight:0}},5726:(e,t,i)=>{i.d(t,{A:()=>A,r:()=>w});var n=i(37876),o=i(34961),a=i(24987),r=i(26617),s=i(26875);i(14232);var l=i(64320),d=i(91226),c=i(3672),p=i(71744),m=i(54304),g=i(86360),h=i(8969),u=i(15039),x=i.n(u);let w=e=>{let{gameList:t=[],tileType:i,element:u="NA",media:w="icon",priorityImages:A=0,playCurrentGame:f,alignCenter:b=!1,onGameClick:y,type:v="redirect",openPlayPageUrl:j=!1,kname:P="game-grid",source:k="",ntmSource:E="",isAppPage:C,className:N="",showAdFreeTag:I=!1,showGridAsSidebar:S=!1,id:T="",isMobile:_=!1,variableTileCount:L}=e,B=(0,l.wA)(),D=(0,l.d4)(e=>e.play.isRecording),{t:R}=(0,s.B)(),M=(0,p.A)();return(0,n.jsx)("ul",{className:"GameGrid_wrap ".concat(N),id:T,style:{"--grid-items-per-row":L},children:t.map((e,t)=>{var s;return(0,n.jsx)("li",{className:x()("Tile_wrap",i,{"as-sidebar":S}),id:"second-row"===P?"second-row-tile":void 0,children:(0,n.jsxs)("a",{className:"Tile ".concat(i," ").concat(e.appId===r.Ay.appInfo.appId?"current":""),href:"link"===v||E?M?(0,c.iR)(e.appPageUrl,E):e.appPageUrl:void 0,onClick:t=>{if(!E)return y&&"function"==typeof y&&y(e),t.preventDefault(),e.appId===r.Ay.appInfo.appId?"function"==typeof f&&f():((e,t,i,n,r,s,l)=>{(0,a.sx)(o.wHH,{element:i,action:"Clicked",packageName:e.packageName},()=>{let t=(0,c.iR)(e.appPageUrl||e.playUrl,-1!==i.indexOf(o.tqQ)?"SearchBarGameClicked":-1!==i.indexOf("Recent")?"OverlayPortalRecentGames":"OverlayPortalOtherGames");if(r)return void s({type:d.A.UPDATE_IS_RECORDING,payload:{showRecordingModalBeforeExit:!0,showRecordingModalBeforeExitSource:"gameTile",urlToOpenAfterRecordModalExit:t}});window.open(t,"_self")},l?m.p.APP_PAGE:void 0)})(e,null===r.Ay||void 0===r.Ay||r.Ay.isHomePage,u,0,D,B,!!C),!1},children:[(0,n.jsx)("span",{className:"TileImg ".concat(i),children:e.media[w]&&(0,n.jsx)(h.q9,{src:null!=(s=e.media[w])?s:"",alt:R("playOnlineOnNowgg",{appName:e.appName}),loading:t{i.r(t),i.d(t,{default:()=>k});var n=i(37876),o=i(14232),a=i(98684),r=i(80549),s=i(34961),l=i(98477),d=i(81648),c=i(26875),p=i(54100),m=i(8969);let g=a.Ay.div.withConfig({componentId:"sc-37a20de2-0"})(["display:flex;flex-direction:column;width:207px;margin:0 16px;cursor:pointer;"]),h=a.Ay.p.withConfig({componentId:"sc-37a20de2-1"})(["width:212px;font-weight:500;font-size:14px;margin-bottom:0;margin-top:8px;white-space:initial;"]),u=a.Ay.h5.withConfig({componentId:"sc-37a20de2-2"})(["color:rgba(255,255,255,0.7);font-size:11px;font-weight:normal;"]),x=a.Ay.div.withConfig({componentId:"sc-37a20de2-3"})(["position:relative;border-radius:24px;height:337px;overflow:hidden;"]),w=a.Ay.span.withConfig({componentId:"sc-37a20de2-4"})(["height:270px;display:block;&:hover ~ .hover{opacity:1;}"]),A=a.Ay.div.withConfig({componentId:"sc-37a20de2-5"})(["display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);opacity:0;pointer-events:none;border:1px solid ",";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;&:before{content:'';position:absolute;width:40px;height:40px;background:#00ff9d;border-radius:50%;}&:after{content:'';width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:12px solid white;z-index:2;position:absolute;margin-left:4px;}"],e=>{let{theme:t}=e;return t.colors.ascent}),f=e=>{let{imageURL:t,title:i,views:o,onClick:a}=e;return(0,n.jsxs)(g,{onClick:a,children:[(0,n.jsxs)(x,{children:[(0,n.jsx)(w,{children:t&&(0,n.jsx)(m.CY,{layout:"fill",loading:"lazy",height:270,sizes:"212px",unoptimized:!0,src:t,alt:"".concat(i," | nowgg.fun")})}),(0,n.jsx)(A,{className:"hover"})]}),(0,n.jsx)(h,{children:i}),o&&(0,n.jsxs)(u,{children:[o," ","views"]})]})};var b=i(61839);let y=a.Ay.div.withConfig({componentId:"sc-1a1e5530-0"})(["width:100%;overflow:hidden;@media (max-width:1023px){order:6;}"]);a.Ay.div.withConfig({componentId:"sc-1a1e5530-1"})(["position:relative;display:flex;flex-wrap:nowrap;gap:16px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;padding:16px 0;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"]);let v=[{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-2.png",title:"No Downloads. No Installs. Play games INSTANTLY on now.gg",videoURL:"https://www.youtube.com/embed/qaTVpUZkSTI?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"530"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/vide-game-6.png",title:"Busted gaming on school laptop, but you are still lit\uD83D\uDD25\uD83D\uDE0E #unblockedgames",videoURL:"https://www.youtube.com/embed/6wCsIDFSabM?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"26k"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-3.png",title:"Did you score? #unblockedgames #school",videoURL:"https://www.youtube.com/embed/aMZXrSweWxA?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"2.7k"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-4.png",title:"Play Instantly on now.gg #nowgg #onlinegaming #santacityrun",videoURL:"https://www.youtube.com/embed/_23wYKZvzHw?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"2.7k"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-5.png",title:"Breaking game records like OG\uD83D\uDE0E #nowgg #electrondash",videoURL:"https://www.youtube.com/embed/cFvIQc5TXus?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"1.9k"},{imageURL:"https://cdn.now.gg/apps-content/img/website/video-game-7.png",title:"No More Homework Horror with Unblocked Games Online #school #unblockedgames",videoURL:"https://www.youtube.com/embed/_EzyIJuHeVA?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"9.7k"}],j=e=>{let{video:t,setVideo:i}=e;return(0,l.createPortal)((0,n.jsxs)(p.L9,{id:"videoPlayer",onClick:()=>i(null),children:[(0,n.jsx)(r.A,{style:{cursor:"pointer"},id:"video-player-cross",onClick:()=>i(null),size:18,name:"cross-thin"}),(0,n.jsx)(p.bC,{children:(0,n.jsx)("iframe",{title:t.title,src:t.videoURL,frameBorder:"0",height:"100%",width:"100%"})})]}),document.body)},P=a.Ay.div.withConfig({componentId:"sc-5f46476e-0"})(["position:relative;display:flex;overflow-x:scroll;scroll-behavior:smooth;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;white-space:nowrap;"]),k=e=>{let{isAppPage:t,videos:i=v,isMobile:a}=e,[r,l]=(0,o.useState)(null),[m,g]=(0,o.useState)(0),h=(0,o.useRef)(null),u=(0,o.useRef)([]),[x,w]=(0,o.useState)(!1),A=(0,d.A)(h),{t:k}=(0,c.B)(),E=e=>{if(h.current){let t=u.current[m];if(t){let n="left"===e?-t.offsetWidth:t.offsetWidth;h.current.scrollBy({left:n,behavior:"smooth"});let o=Math.floor(h.current.offsetWidth/t.offsetWidth);i.length,"right"===e?g(e=>Math.min(e+o,i.length)):g(e=>Math.max(e-o,0))}}};return(0,o.useEffect)(()=>{let e=()=>{if(h.current){let e=u.current[m];if(e){let t=h.current.offsetWidth,n=Math.floor(t/e.offsetWidth),o=i.length-m;if(o>n?w(!0):w(!1),o<=n){let e=i.length-1,n=u.current[e];if(n){let e=n.offsetLeft-(t-n.offsetWidth);h.current.scrollLeft=e}}else 0===m&&(h.current.scrollLeft=0)}}};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[m,i.length]),(0,n.jsxs)(y,{children:[!t&&(0,n.jsx)(b.n,{children:(0,n.jsx)("h1",{children:k("shortVideosText")})}),(0,n.jsxs)("div",{style:{position:"relative",width:"100%",overflow:"hidden"},children:[(0,n.jsx)(P,{ref:h,style:{width:"100%"},children:i.map((e,t)=>(0,n.jsx)("div",{ref:e=>u.current[t]=e,children:(0,n.jsx)(f,{imageURL:A?e.imageURL:"",title:e.title,videoURL:e.videoURL,views:e.views,onClick:()=>l(e)},e.title)},e.title))}),(0,n.jsx)(p.EA,{onClick:()=>E("left"),isVisible:0!==m,"aria-label":"Previous videos",role:"button",children:A&&(0,n.jsx)("img",{alt:"Left arrow",src:"".concat(s.Cpe,"icons/arrow.svg"),width:24,height:24})}),(0,n.jsx)(p.EA,{onClick:()=>E("right"),isRightArrow:!0,isVisible:x,"aria-label":"Next videos",role:"button",children:A&&(0,n.jsx)("img",{alt:"Right arrow",src:"".concat(s.Cpe,"icons/arrow.svg"),width:24,height:24})}),r&&(0,n.jsx)(j,{video:r,setVideo:l})]})]})}},18092:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(37876),o=i(64320),a=i(22030),r=i(83308),s=i(45105),l=i.n(s),d=i(14232),c=i(85179),p=i(54736);let m=e=>{let{isNowGGURL:t,loading:i="afterInteractive"}=e,s=(0,d.useContext)(c.A),m=(0,o.wA)(),g=(0,d.useRef)(!1),h=()=>{s.prebidFailed=!0,(0,a.vX)("aditudeScriptLoadError",!1),m({type:r.A.UPDATE_IMAERROR,payload:{imaError:!0,adsEnded:!0}})},u=()=>{m({type:r.A.UPDATE_IMAERROR,payload:{imaError:!1}})},x=null==s?void 0:s.appInfo;return(0,d.useEffect)(()=>{(0,p.bY)(x)},[x]),(null==g?void 0:g.current)||((0,p.bY)(),g.current=!0),t?(0,n.jsx)(l(),{id:"prebid-script",strategy:i,src:"https://dn0qt3r0xannq.cloudfront.net/nowgg-IZQznjkQaj/nowgg-default/prebid-load.js",onLoad:u,onError:h}):(0,n.jsx)(l(),{id:"prebid-script",strategy:i,src:"https://dn0qt3r0xannq.cloudfront.net/nowgg-IZQznjkQaj/longtail/prebid-load.js",onLoad:u,onError:h})}},27458:(e,t,i)=>{i.d(t,{_:()=>a});var n=i(6196),o=i(79461);let a=e=>{n.A.dispatch({type:o.A.GET_SUPPORT}),e&&n.A.dispatch({type:o.A.SET_ERROR_TYPE,payload:{errorType:e}})}},38389:(e,t,i)=>{i.d(t,{q:()=>r});var n=i(34961),o=i(86360),a=i(26617);let r=e=>{var t,i,r;return e&&(0,o.Rm)(n.znv)!==a.hy&&((null==(t=null==window?void 0:window.location)?void 0:t.host)==="now.gg"||(null==(i=null==window?void 0:window.location)?void 0:i.host)==="stagingngg.net"||(null==(r=null==window?void 0:window.location)?void 0:r.host)==="local.testngg.net:8443")}},70168:(e,t,i)=>{i.d(t,{Ay:()=>o,iT:()=>n});let n=[{id:396,name:"Browser Games",slug:"browser",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeBrowse-1.png"}},{id:22,name:"Casual Games",slug:"casual",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeCasual.png"}},{id:26,name:"Strategy Games",slug:"strategy",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeStrategy.png"}},{id:30,name:"Simulation Games",slug:"simulation",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeSimulation.png"}},{id:24,name:"Role Playing Games",slug:"role-playing",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeRPG.png"}},{id:21,name:"Action Games",slug:"action",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeAction-1.png"}},{id:31,name:"Adventure Games",slug:"adventure",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeAdventure-1.png"}},{id:27,name:"Puzzle Games",slug:"puzzle",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypePuzzle.png"}},{id:23,name:"Arcade Games",slug:"arcade",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeArcade-1.png"}},{id:32,name:"Sports Games",slug:"sports",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeSports.png"}},{id:33,name:"Casino Games",slug:"casino",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeCasino-1.png"}},{id:25,name:"Racing Games",slug:"racing",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeRacing.png"}},{id:468,name:"Card Games",slug:"card",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeCard-1.png"}},{id:48,name:"Educational Games",slug:"educational",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeEducational.png"}},{id:29,name:"Social Games",slug:"social",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeSocial.png"}}],o=n},71484:(e,t,i)=>{i.r(t),i.d(t,{default:()=>t0});var n={};i.r(n),i.d(n,{category:()=>eg});var o=i(37876),a=i(14232),r=i(64320),s=i(54551),l=i(77328),d=i.n(l),c=i(61120),p=i(94159),m=i(91226),g=i(26617),h=i(26875),u=i(58501),x=i(86360),w=i(24987),A=i(54304),f=i(17679),b=i(98684);b.Ay.div.withConfig({componentId:"sc-35247ef4-0"})(["max-height:100%;"]),b.Ay.div.withConfig({componentId:"sc-35247ef4-1"})(["display:flex;position:relative;overflow:hidden;"]);let y=b.Ay.div.withConfig({componentId:"sc-35247ef4-2"})(["padding:40px 24px;"]);b.Ay.div.withConfig({componentId:"sc-35247ef4-3"})(["display:flex;flex-direction:column;gap:40px;",""],(0,f.$_)("sm",(0,b.AH)(["h3{text-align:center;a::after{background:linear-gradient(270deg,rgba(255,66,165,0.00) 0%,#00ff9d 19.43%,#00ff9d 79.89%,rgba(255,66,165,0.00) 99.48%);}}h3 + div{margin-top:20px;}"])));var v=i(74678),j=i(88954),P=i(34961),k=i(22690),E=i(12873),C=i(66140),N=i(85993),I=i(18092),S=i(47030),T=i(35502);let _=e=>{let{heading:t,style:i,href:n}=e;return(0,o.jsx)("h3",{className:"Heading",style:i,children:n?(0,o.jsx)("a",{href:n,children:t}):(0,o.jsx)("span",{children:t})})};var L=i(3672),B=i(71744),D=i(81648);let R=e=>{let{label:t,blogs:i=[],highlightBg:n=!1,link:r}=e,{t:s}=(0,h.B)(),l=(0,B.A)(),d=(0,a.useRef)(null),c=(0,D.A)(d);return(0,o.jsxs)("section",{className:"Blogs ".concat(n?"highlight-bg":""),ref:d,children:[(0,o.jsx)(_,{heading:s(t)}),(0,o.jsx)("ul",{className:"BlogList",children:i.map(e=>{let{id:t,title:i,url:n,featured_image:a}=e;return(0,o.jsx)("li",{className:"BlogListItem",children:(0,o.jsxs)("a",{href:l?(0,L.Ay)("https://now.gg".concat(n)):"https://now.gg".concat(n),children:[(0,o.jsx)("div",{className:"BlogTile",children:c&&(0,o.jsx)("img",{src:(0,S.Vm)({src:a.medium_large,width:640,quality:80}),loading:"lazy",fetchpriority:"low",alt:""})}),(0,o.jsx)("div",{className:"BlogDetail",children:(0,o.jsx)(v.fI,{as:"h4",children:i})})]})},t)})}),(0,o.jsx)("a",{className:"MoreCta",id:"".concat(t,"Section"),href:l?(0,L.Ay)("https://now.gg".concat(r)):"https://now.gg".concat(r),style:{textDecoration:"none",width:"fit-content"},children:"".concat(s("more")," ").concat(s(t))})]})};var M=i(18847),O=i.n(M),U=i(85179),G=i(37102),F=i(81020),z=i(63400),Q=i(5139),W=i(79682),H=i(27458);let Y=b.Ay.div.withConfig({componentId:"sc-2025ec6a-0"})(["min-height:70vh;display:flex;overflow:hidden;position:relative;"]),q=b.Ay.div.withConfig({componentId:"sc-2025ec6a-1"})(["max-width:90%;width:500px;z-index:1;flex-direction:column;display:flex;align-items:center;margin:auto;gap:24px;> p{color:rgba(255,255,255,0.80);margin-top:-17px;}"]),X=b.Ay.div.withConfig({componentId:"sc-2025ec6a-2"})(["display:flex;flex-wrap:wrap;justify-content:center;gap:20px;.secondary-btn{height:32px;}"]),Z=()=>{let{t:e}=(0,h.B)(),t=(0,B.A)();return(0,o.jsxs)(Y,{children:[(0,o.jsx)("img",{src:(0,S._w)(F.A),alt:"",fetchpriority:"low",className:"left-element"}),(0,o.jsx)("img",{src:(0,S._w)(z.A),alt:"",fetchpriority:"low",className:"right-element"}),(0,o.jsxs)(q,{children:[(0,o.jsx)("img",{src:(0,S._w)(Q.A),alt:"",fetchpriority:"low",width:"48"}),(0,o.jsx)(v.IT,{children:e("forbiddenTitle")}),(0,o.jsx)(v.M5,{children:e("forbiddenMsg")}),(0,o.jsxs)(X,{children:[(0,o.jsx)(W.$,{onClick:()=>{window.location.href=t?(0,L.Ay)("https://now.gg"):"https://now.gg"},variant:"primary",text:e("goToHome")}),(0,o.jsx)(W.$,{variant:"secondaryOutline",onClick:()=>{(0,H._)(c.wD.FailureForbidden)},id:"ng-error-report-btn",className:"secondary-btn",children:e("reportIssue")})]})]})]})};var V=i(10908),$=i(1615),J=i(5726),K=i(8969),ee=i(15039),et=i.n(ee);let ei=e=>{let{gameList:t,source:i,element:n,chunkSize:a}=e,r=(0,B.A)();return(0,o.jsx)("section",{className:"OtherGames",children:(0,o.jsx)("div",{className:"OtherGamesList",style:{"--size":"calc((100% - ".concat(24*(a-1),"px) / ").concat(a,")")},children:null==t?void 0:t.slice(0,a).map(e=>{let{appName:t,media:n,appDeveloperInfo:s,appPageUrl:l,packageName:d}=e||{};return(0,o.jsx)("div",{className:et()("SingleGameCardWrap",{"six-items":6===a}),children:(0,o.jsxs)("a",{className:"SingleGameCardLink",href:r?(0,L.iR)(l,i):l,children:[(0,o.jsx)("div",{className:"GameImgWrap",children:(0,o.jsx)(K.CY,{src:null==n?void 0:n.tile,alt:"Play ".concat(t," online on now.gg"),width:256,quality:80,sizes:"(max-width: 1000px) 256px, 256px",loading:"lazy"})}),(0,o.jsxs)("div",{style:{marginTop:8},children:[(0,o.jsx)("p",{className:"BodySRegular",children:t}),(0,o.jsx)("p",{className:"BodyMRegular",children:null==s?void 0:s.name})]})]})},e.appId)})})})},en=e=>{let{isTransparentBg:t,heading:i,ntmSource:n="ApPopularGames",gameList:r,isHighlightedGamesDisabled:s,pathname:l,ssrOrigin:d,isMobile:c,id:p}=e,{gameGridList:m,otherGameList:g}=(0,a.useMemo)(()=>({gameGridList:null==r?void 0:r.slice(0,18),otherGameList:s?[]:null==r?void 0:r.slice(18,24)}),[r,s]),h=(0,a.useRef)(null),[u,x]=(0,a.useState)({normal:c?9:18,highlighted:6});(0,a.useEffect)(()=>{h.current&&new ResizeObserver(e=>{let t=e[0].contentRect.width+40;t>1200?x(Object.assign(Object.assign({},u),{highlighted:6,normal:18})):t>992?x(Object.assign(Object.assign({},u),{highlighted:5,normal:16})):t>768?x(Object.assign(Object.assign({},u),{highlighted:4,normal:12})):t>576?x(Object.assign(Object.assign({},u),{highlighted:3,normal:10})):t>512?x(Object.assign(Object.assign({},u),{highlighted:3,normal:8})):x(Object.assign(Object.assign({},u),{highlighted:c?6:3,normal:c?9:8}))}).observe(h.current)},[c]);let w=(0,B.A)(),A="https://".concat(d).concat(l);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("section",{ref:h,className:et()("ComponentMainDiv",{transparent:t}),children:(0,o.jsxs)("div",{className:"page-content",children:[(0,o.jsx)(_,{heading:i,href:w?(0,L.iR)(A):A}),(0,o.jsx)("div",{className:"GameListWrap",children:(0,o.jsx)(J.A,{ntmSource:n,isAppPage:!0,element:"PopularGame",tileType:"default",gameList:m.slice(0,u.normal),source:"",type:"link",id:p,isMobile:c})})]})}),(null==g?void 0:g.length)>0&&(0,o.jsx)(ei,{gameList:g,source:n,element:"PopularGame",chunkSize:u.highlighted})]})};var eo=i(3366);let ea=e=>{let{gamesList:t,ssrOrigin:i,selectedGenere:n,isMobile:r}=e,{t:s}=(0,h.B)(),l=(0,a.useMemo)(()=>{var e,n;let o=[];for(let a=0;a<(null==t?void 0:t.length);++a){let{nowgg_id:r,name:s,rating:l,packageName:d,genre:c,media:p,developers_details:m,slug:g}=t[a],{name:h,slug:u}=m||{};o.push({appId:r,appName:s,appRating:Number(l),playUrl:"https://".concat(i,"/play/").concat(u,"/").concat(r,"/").concat(g,".html"),appPageUrl:"https://".concat(i,"/apps/").concat(u,"/").concat(r,"/").concat(g,".html"),packageName:d,appGenre:c[0],appType:"Android",media:{tile:"media",icon:(null==(e=null==p?void 0:p.desktop)?void 0:e.icon)||(null==(n=null==p?void 0:p.mobile)?void 0:n.icon)||""},appDeveloperInfo:{name:h,developerSlug:u},appSlug:g})}return o},[t,i]),{slug:d,name:c}=n;return(0,o.jsx)(en,{heading:s("moreGames",{genere:c}),isTransparentBg:!0,ntmSource:"ApMoreGames",gameList:l,isHighlightedGamesDisabled:!0,ssrOrigin:i,pathname:"/games/".concat(d,".html"),isMobile:r,id:"ng-unified-more-games-list"})};var er=i(4976),es=i(12104),el=i(9536),ed=i(37305),ec=i(63580),ep=i(70168),em=i(78014),eg="JWOCEUbopYPlDB10";let eh=e=>{let{listId:t=""}=e,i=(0,B.A)(),r=(0,a.useRef)(null),{t:s}=(0,h.B)(),l=(0,D.A)(r);return(0,o.jsxs)("section",{className:"Section",ref:r,children:[(0,o.jsx)("h2",{className:"SectionHeading",id:"categories",children:s("exploreByCategory")}),(0,o.jsx)("ul",{id:t,className:"CatList",children:ep.Ay.map(e=>{var t;return(0,o.jsx)("li",{children:(0,o.jsxs)("a",{className:(null==n?void 0:eg)||"",href:i?(0,L.Ay)((0,em.A)(e.slug)):(0,em.A)(e.slug),children:[(0,o.jsx)("img",{loading:"lazy",fetchpriority:"low",src:l?e.icon.thumbnail||"https://cms-cdn.now.gg/cms-media/2023/06/cat-ico.jpg":void 0,alt:"Play ".concat(e.name," on now.gg"),width:33,height:33,style:(null==(t=e.icon)?void 0:t.thumbnail)?{}:{borderRadius:"50%",padding:3}}),(0,o.jsx)("span",{children:e.name})]})},e.id)})}),(0,o.jsx)("div",{className:"SepContainer",children:(0,o.jsx)("a",{className:"MoreCta",id:"showMoreCategories",href:i?(0,L.Ay)(P.jti):P.jti,children:s("showMore")})})]})};var eu=i(74842),ex=i(89493),ew=i(83308);let eA=(0,b.AH)(["width:auto;background:transparent;border:0px;overflow:hidden;"]),ef=b.Ay.div.withConfig({componentId:"sc-aee88232-0"})(["padding-top:10px"]),eb=()=>{let e=(0,r.wA)();return(0,a.useEffect)(()=>()=>{e({type:ew.A.UPDATE_REWARDED_AD_STATUS,payload:{isRewardedAdPlaying:!1}})},[]),(0,o.jsx)(eu.A,{fullView:!(0,x.xl)(),toggle:!0,modalStyles:eA,contentStyle:{margin:"0px"},children:(0,o.jsx)(ef,{children:(0,o.jsx)(ex.A,{isCloseButtonEnabled:!0})})})};var ey=i(75912),ev=i(65539),ej=i(80549);let eP={src:"/_next/static/media/now-bux-coin-bg.6a3c04a2.webp",height:166,width:234,blurDataURL:"data:image/webp;base64,UklGRrQAAABXRUJQVlA4WAoAAAAQAAAABwAABQAAQUxQSDEAAAAAAAABGx4NAAAGBHT9/YIBAAkL9f//9gwZAAX0///1ESMAAXD8/HEBAAAAARYXAQAAAFZQOCBcAAAAEAIAnQEqCAAGAAJAOCWwAnS6AAK6H/Vf2AD+nCYQzzYCz+eZGyr8vctaK/D+qujh9HDLDrCwkqNQs1ksKXSf/KZxX14aF/zcF8+fVb67vQ+KOnOxMZBcY1AAAAA=",blurWidth:8,blurHeight:6};var ek=i(71126);let eE=b.Ay.div.withConfig({componentId:"sc-4e159119-0"})(["position:fixed;top:0;left:0;width:100%;height:100%;background:",";display:flex;justify-content:center;align-items:center;z-index:9;@media screen and (max-height:400px),screen and (max-width:400px){.rotate-screen &{align-items:flex-start;overflow:scroll;}}"],e=>{let{theme:t}=e;return t.colors.black70}),eC=b.Ay.div.withConfig({componentId:"sc-4e159119-1"})(["background:",";border-radius:",";backdrop-filter:blur(32px);padding:32px 20px;color:",";box-shadow:0 4px 12px rgba(0,0,0,0.4);text-align:center;position:relative;.now-bux{width:234px;}button{width:100%;margin-top:10px;}"],e=>{let{theme:t}=e;return t.colors.black50},e=>{let{theme:t}=e;return t.border.radius3},e=>{let{theme:t}=e;return t.colors.white}),eN=b.Ay.h1.withConfig({componentId:"sc-4e159119-2"})(["text-align:center;font-size:22px;font-weight:600;line-height:120%;background:linear-gradient(91deg,#FFD669 5.98%,#D4A562 116.74%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;margin-bottom:8px;"]),eI=b.Ay.p.withConfig({componentId:"sc-4e159119-3"})(["margin-bottom:20px;font-size:16px;line-height:120%;"]),eS=b.Ay.p.withConfig({componentId:"sc-4e159119-4"})(["color:",";font-size:14px;line-height:150%;margin-bottom:16px;width:267px;"],e=>{let{theme:t}=e;return t.colors.caution}),eT=b.Ay.div.withConfig({componentId:"sc-4e159119-5"})(["justify-content:center;border-radius:",";border:",";background:",";backdrop-filter:blur(60px);display:flex;max-width:420px;flex-direction:column;align-items:center;padding:32px;"],e=>{let{theme:t}=e;return t.border.radius3},e=>{let{theme:t}=e;return t.border.base3},e=>{let{theme:t}=e;return t.colors.black50}),e_=b.Ay.div.withConfig({componentId:"sc-4e159119-6"})(["display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center;gap:20px;"]),eL=b.Ay.div.withConfig({componentId:"sc-4e159119-7"})(["display:flex;width:100%;flex-direction:column;justify-content:center;"]),eB=b.Ay.div.withConfig({componentId:"sc-4e159119-8"})(["display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center;text-align:center;.title{color:",";}.description{color:",";}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white80}),eD=b.Ay.div.withConfig({componentId:"sc-4e159119-9"})(["display:flex;margin-top:16px;width:100%;align-items:center;gap:16px;justify-content:center;"]),eR=b.Ay.div.withConfig({componentId:"sc-4e159119-10"})(["justify-content:center;border-radius:",";border:",";background:",";backdrop-filter:blur(12px);display:flex;justify-content:center;align-items:center;width:fit-content;position:absolute;left:50%;top:76px;transform:translateX(-50%);color:",";.message{border-right:",";padding:8px 12px;}"],e=>{let{theme:t}=e;return t.border.radius6},e=>{let{theme:t}=e;return t.border.base},e=>{let{theme:t}=e;return t.colors.black70},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.border.base}),eM=b.Ay.div.withConfig({componentId:"sc-4e159119-11"})(["cursor:pointer;display:flex;align-items:center;justify-content:center;&:hover{background:",";}.close-icon{margin:10px;}"],e=>{let{theme:t}=e;return t.colors.white20});var eO=i(76665);let eU=()=>{let{t:e}=(0,h.B)(),t=(0,r.wA)();return(0,o.jsx)(eT,{children:(0,o.jsxs)(e_,{children:[(0,o.jsx)("img",{src:(0,S._w)(eO.A),width:128,alt:""}),(0,o.jsxs)(eL,{children:[(0,o.jsxs)(eB,{children:[(0,o.jsx)(v.IT,{className:"title",children:e("yourNowBuxWillBeLost")}),(0,o.jsx)(v.Dp,{className:"description",children:e("nowBuxConfirmationModalDescription")})]}),(0,o.jsxs)(eD,{children:[(0,o.jsx)(W.$,{variant:"secondary",size:"large",text:e("confirmDiscard"),onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1,showNowBuxToastNotification:!0}})}}),(0,o.jsx)(W.$,{variant:"primary",size:"large",text:e("keepMyNowBux"),onClick:()=>{t({type:k.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:P.G$3.nowBuxCreditModal}}),t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1,showNowBuxToastNotification:!1}})}})]})]})]})})},eG={isLoading:!0,spinnerWidth:20,spinnerHeight:20},eF=()=>{let{t:e}=(0,h.B)(),t=(0,r.wA)(),i=(0,r.d4)(e=>e.play.nowbuxCreditLimitExceeded),n=(0,r.d4)(e=>e.play.isUserCreditEligible),s=(0,r.d4)(e=>e.auth.isLoggedIn),[l,d]=(0,a.useState)(!1),[c,p]=(0,a.useState)(!1),g=(0,a.useCallback)(()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1}})},[t,s]),u=(0,a.useCallback)(()=>{p(!0)},[t,s]),x=(0,a.useCallback)(()=>{if(!s)return void(t({type:k.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:P.G$3.nowBuxCreditModal}}),g());d(!0),(0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:""}),(0,ek.$B)(),t({type:ew.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0,rewardedAdFirstInfoPopup:!0,rewardedAdFirst:!0,rewardedAdSecond:!1}}),g()},[]);return((0,a.useEffect)(()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxToastNotification:!1}})},[]),c)?(0,o.jsx)(eE,{children:(0,o.jsx)(eU,{})}):(0,o.jsx)(eE,{children:(0,o.jsxs)(eC,{children:[(0,o.jsx)(ev.U,{className:"tool-tip credit-modal",onClick:g,children:(0,o.jsx)(ej.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,o.jsx)("img",{className:"now-bux",src:(0,S._w)(eP),alt:""}),n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eN,{children:e(s?"1Nowbux":"1NowbuxEarned")}),(0,o.jsx)(eI,{children:e(s?"successfullyAddedToBalance":"claimItByLogin")})]}),i&&(0,o.jsx)(eS,{children:e("limitReachMsg")}),!i&&(0,o.jsx)(W.$,{...l?eG:{},variant:"primary",size:"large",text:l?"":e(s?"watchAnotherAd":"loginToClaim"),onClick:x}),(0,o.jsx)(W.$,{variant:"primaryOutline",size:"large",text:e(s?i?"okayGotIt":"skipForNow":"discardNowBux"),onClick:s?g:u})]})})};var ez=i(91542);let eQ={src:"/_next/static/media/nowpremium.d7623b19.webp",height:500,width:500,blurWidth:0,blurHeight:0};var eW=i(96911),eH=i(34798);let eY={src:"/_next/static/media/announcement.d6913ef3.webp",height:81,width:87,blurDataURL:"data:image/webp;base64,UklGRpAAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSDQAAAABYBPZtpND6uhxkjNO6LMDNMUWAUhAAC64FWiIiOQ3OTyop+VVA7ckneBf7aMcnBl3dPkCVlA4IDYAAACwAQCdASoIAAcAAkA4JaQAD4ARc+MAAPzqmKSYdm5XZZfTSPMl6sfGUA7eDZTBud0VWUTbgAA=",blurWidth:8,blurHeight:7};var eq=i(90423),eX=i(54736);let eZ=(0,b.i7)(["0%{padding:12px;}50%{padding:6px;}100%{padding:12px;}"]),eV=(0,b.i7)(["0%{padding:8px;}50%{padding:4px;}100%{padding:8px;}"]),e$=(0,b.i7)(["0%{top:-46px;left:-220px;opacity:1;}10%{top:268px;left:123px;opacity:1;}10%{top:268px;left:123px;opacity:0;}100%{top:-46px;left:-220px;opacity:0;}"]),eJ=(0,b.i7)(["0%{top:200px;opacity:0;}85%{top:-30px;opacity:1;}100%{top:0px;opacity:1;}"]),eK=b.Ay.div.withConfig({componentId:"sc-73a2eea5-0"})(["position:fixed;width:100%;height:100%;top:0;left:0;background:",";display:flex;justify-content:center;align-items:center;z-index:999;"],e=>{let{theme:t}=e;return t.colors.black70}),e0=b.Ay.div.withConfig({componentId:"sc-73a2eea5-1"})(["position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;padding:24px;gap:24px;border-radius:20px;border:",";background:",";backdrop-filter:blur(32px);opacity:0;animation-name:",";animation-duration:.2s;animation-delay:.4s;animation-iteration-count:1;animation-timing-function:ease-in;animation-fill-mode:forwards;.mobile.portrait &{@media (orientation:portrait){@media screen and (max-width:750px){width:100%;height:100%;border-radius:0;padding-bottom:0;}}@media (orientation:landscape){@media screen and (max-height:750px){width:100%;height:100%;border-radius:0;padding-bottom:0;}}.tool-tip{right:16px;top:16px;padding:8px;}.close-icon{display:flex;justify-content:center;align-items:center;}}.mobile.landscape &{@media (orientation:landscape){@media screen and (max-width:950px),screen and (max-height:350px){width:100%;height:100%;border-radius:0;padding-bottom:0;}@media screen and (max-width:600px),screen and (max-height:320px){padding:8px;gap:8px;.tool-tip{right:8px;top:8px;}}}@media (orientation:portrait){@media screen and (max-height:950px),screen and (max-width:350px){width:100%;height:100%;border-radius:0;padding-bottom:0;}@media screen and (max-height:600px),screen and (max-width:320px){padding:8px;gap:8px;.tool-tip{right:8px;top:8px;}}}}"],e=>{let{theme:t}=e;return t.border.base3},e=>{let{theme:t}=e;return t.colors.white10},eJ),e1=b.Ay.h2.withConfig({componentId:"sc-73a2eea5-2"})(["font-size:32px;font-weight:600;line-height:150%;color:",";margin:0px;.mobile.portrait &{font-family:Bricolage Grotesque;font-size:20px;line-height:130%;}.mobile.landscape &{font-family:Bricolage Grotesque;font-size:32px;line-height:130%;@media screen and (orientation:landscape) and (max-height:400px){font-size:20px;}@media screen and (orientation:portrait) and (max-width:400px){font-size:20px;}}"],e=>{let{theme:t}=e;return t.colors.white}),e2=b.Ay.div.withConfig({componentId:"sc-73a2eea5-3"})(["display:flex;gap:16px;justify-content:center;align-self:stretch;.mobile.portrait &{flex-direction:column;align-items:center;height:100%;overflow:scroll;justify-content:flex-start;}.mobile.landscape &{@media (orientation:landscape){@media screen and (max-width:600px),screen and (max-height:320px){gap:4px;}@media screen and (max-width:500px),screen and (max-height:290px){width:100%;height:100%;overflow:scroll;justify-content:flex-start}}@media (orientation:portrait){@media screen and (max-height:600px),screen and (max-width:320px){gap:4px;}@media screen and (max-height:500px),screen and (max-width:290px){width:100%;height:100%;overflow:scroll;justify-content:flex-start}}}"]),e4=b.Ay.div.withConfig({componentId:"sc-73a2eea5-4"})(["padding:20px 24px;width:260px;border-radius:",";flex:1;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;&.reward-ad{background-color:",";button{height:40px;}.premium-icon{width:80px;height:66px;margin-bottom:20px;}.play-icon{width:20px;height:20px;}}&.premium-subscription{position:relative;overflow:hidden;padding:20px;background-image:",";background-size:cover;background-position:center;background-repeat:no-repeat;border:",';.premium-text-logo{height:21px;margin-bottom:15px;}&:after{content:"";position:absolute;background:linear-gradient( to bottom,rgba(255,255,255,0),rgba(255,255,255,1),rgba(255,255,255,0) );top:-46px;left:-220px;opacity:0;width:500px;height:98px;transform:rotate(-45deg);animation-name:',";animation-duration:6s;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-delay:2s;}}&.free-access{background:#2B2B2B;border:",";.announcement-img{margin-bottom:20px;}button{background:",";color:",";&:hover{background:",";color:",";}}}button{width:100%;margin-bottom:8px;white-space:nowrap;}.mobile.portrait &{width:366px;min-height:267px;&.reward-ad{min-height:240px;}@media screen and (orientation:portrait) and (max-width:450px),screen and (orientation:landscape) and (max-height:450px){width:100%;}}.mobile.landscape &{@media (orientation:landscape){@media screen and (max-height:400px){min-height:240px;.plan-logo{margin-bottom:0px;}height:240px;}@media screen and (max-width:600px),screen and (max-height:320px){padding:8px 8px;height:230px;min-height:230px;min-width:160px;}}@media (orientation:portrait){@media screen and (max-width:400px){min-height:240px;.plan-logo{margin-bottom:0px;}height:240px;}@media screen and (max-height:600px),screen and (max-width:320px){padding:8px 8px;height:230px;min-height:230px;min-width:160px;}}}"],e=>{let{theme:t}=e;return t.border.radius3},e=>{let{theme:t}=e;return t.colors.white},()=>"url('".concat(P.Cpe,"assets/images/prime/subscription-bg.webp')"),e=>{let{theme:t}=e;return t.border.base},e$,e=>{let{theme:t}=e;return t.border.base3},e=>{let{theme:t}=e;return t.colors.black40},e=>{let{theme:t}=e;return t.colors.white30},e=>{let{theme:t}=e;return t.colors.black40},e=>{let{theme:t}=e;return t.colors.white30}),e3=b.Ay.div.withConfig({componentId:"sc-73a2eea5-5"})(["width:96px;height:96px;padding:12px;animation-name:",";animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear;animation-direction:forwards;margin-bottom:15px;img{width:100%;height:100%;}.mobile.landscape &{@media (orientation:landscape){@media screen and (max-height:400px){margin-bottom:20px;width:70px;height:70px;padding:8px;animation-name:",";}}@media (orientation:portrait){@media screen and (max-width:400px){margin-bottom:20px;width:70px;height:70px;padding:8px;animation-name:",";}}}"],eZ,eV,eV),e5=b.Ay.h3.withConfig({componentId:"sc-73a2eea5-6"})(["margin:0px;font-size:20px;font-weight:800;line-height:100%;margin-bottom:12px;.reward-ad &{color:",";}.free-access &{color:",";}"],e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.colors.white}),e6=b.Ay.p.withConfig({componentId:"sc-73a2eea5-7"})(["margin:0px;text-shadow:",";font-size:14px;font-weight:500;line-height:100%;margin-bottom:20px;.reward-ad &{color:",";}.premium-subscription &{color:",";}.free-access &{color:",";}.mobile.portrait &{margin-bottom:16px;}"],e=>{let{theme:t}=e;return t.shadow.big},e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white}),e8=b.Ay.p.withConfig({componentId:"sc-73a2eea5-8"})(["font-size:10px;font-weight:600;line-height:160%;letter-spacing:0.2px;margin:0px;.reward-ad &{color:",";}.premium-subscription &{color:",";}.free-access &{color:",";}"],e=>{let{theme:t}=e;return t.colors.green},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.error}),e7=()=>{let e=(0,r.wA)(),{t}=(0,h.B)(),i=!(0,x.xl)(),n=(0,r.d4)(e=>e.play.orientation),s=(0,r.d4)(e=>e.play.isAndroidConnected),l=(0,r.d4)(e=>e.play.error),[d,p]=(0,a.useState)(i&&((!s||l)&&window.innerHeighte.play.minPassData),u=(0,r.d4)(e=>e.play.isSubscriptionExpiredInMiddleOfGame),A=(0,a.useMemo)(x.ZA,[]),f=(0,a.useCallback)(()=>{setTimeout(()=>{p(i&&((!s||l)&&window.innerHeight{f()},[n,s,l]),(0,a.useEffect)(()=>((0,w.sx)("PlayExperienceScreenViewed"),window.addEventListener("orientationchange",f),window.addEventListener("resize",f),()=>{window.removeEventListener("orientationchange",f),window.removeEventListener("resize",f)}),[]),(0,o.jsxs)(eK,{className:"\n ".concat(i?"mobile":"","\n ").concat(d?"landscape":"portrait","\n "),children:[(0,o.jsx)("link",{href:"https://fonts.googleapis.com/css?family=Bricolage+Grotesque:wght@400;500;600;700&display=swap",rel:"stylesheet"}),(0,o.jsxs)(e0,{children:[(0,o.jsx)(e1,{children:t("pickYourPlayStyle")}),(0,o.jsx)(ev.U,{className:"tool-tip",onClick:()=>{if(u)return void window.location.reload();e({type:m.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}})},children:(0,o.jsx)(ej.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,o.jsxs)(e2,{children:[!A&&(0,o.jsxs)(e4,{className:"reward-ad",children:[(0,o.jsx)("img",{className:"premium-icon plan-logo",src:(0,S._w)(eQ),alt:"premium content"}),(0,o.jsx)(e5,{children:t("vipMiniPass")}),(0,o.jsx)(e6,{children:t("timeMinsAdFree",{min:(0,eX.Jo)()})}),(0,o.jsxs)(W.$,{shadow:!1,variant:"primaryOutline",size:"large",onClick:()=>{(0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"PlayExperienceScreen"}),(0,ek.$B)(),e({type:ew.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0,rewardedAdFirstInfoPopup:!0,rewardedAdFirst:!0,rewardedAdSecond:!1}}),e({type:m.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}})},children:[(0,o.jsx)("img",{className:"play-icon",src:(0,S._w)(eq.A),alt:"play icon"}),(0,o.jsx)("span",{children:t("watchAd")})]}),(0,o.jsx)(e8,{children:t("noPaymentRequired")})]}),(0,o.jsxs)(e4,{className:"premium-subscription",children:[(0,o.jsx)(e3,{className:"plan-logo",children:(0,o.jsx)("img",{className:"premium-symbol-icon",src:(0,S._w)(eW.A),alt:"premium symbol"})}),(0,o.jsx)("img",{className:"premium-text-logo",src:(0,S._w)(eH.A),alt:"premium text logo"}),(0,o.jsx)(e6,{children:t("playWithoutLimits2")}),(0,o.jsx)(W.$,{shadow:!1,onClick:()=>{e({type:m.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}}),(0,x.wo)(P.RmT.NowPremiumPlanScreen)},variant:"primary",size:"large",color:"#ff4081",children:t("buyNow")}),(0,o.jsx)(e8,{children:"".concat(t("startsAt")," ").concat(g.symbol).concat(g.value)})]}),(0,o.jsxs)(e4,{className:"free-access",children:[(0,o.jsx)("img",{className:"announcement-img plan-logo",src:(0,S._w)(eY),alt:"announcement"}),(0,o.jsx)(e5,{children:t("freeAccess")}),(0,o.jsx)(e6,{children:t("limitedExperience")}),(0,o.jsx)(W.$,{shadow:!1,size:"large",disabled:!0,children:t("playNow")}),(0,o.jsx)(e8,{children:t("notAvailableForThisGame")})]})]})]})]})};var e9=i(38389),te=i(88150),tt=i(5673);let ti=()=>{let{t:e}=(0,h.B)(),t=(0,r.wA)();return(0,o.jsxs)(eR,{children:[(0,o.jsx)(v.E2,{className:"message",children:e("earnedNowbuxDiscarded")}),(0,o.jsx)(eM,{onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxToastNotification:!1}})},"aria-label":"Close notification",tabIndex:0,children:(0,o.jsx)("img",{className:"close-icon",src:(0,S._w)(tt.A),width:16,alt:""})})]})},tn={src:"/_next/static/media/bg-portrait-expired.4404b774.webp",height:440,width:760,blurDataURL:"data:image/webp;base64,UklGRpwAAABXRUJQVlA4WAoAAAAQAAAABwAABAAAQUxQSCkAAAAAAwAAAAADOwogDwAAAD9cHRMVDgUKEAoJEQgGBQQFBQYCAgEBAQICAQBWUDggTAAAANABAJ0BKggABQACQDglqAJ0AR9uH9f4AP7psHYvDKNZQNKvt1a9pWWNYJH98uRl8LTYMO+z7l1Zf32ft0vIhlMcd4o/Z7gNmtndgAA=",blurWidth:8,blurHeight:5},to={src:"/_next/static/media/bg-landscape-expired.7c17613a.webp",height:558,width:408,blurDataURL:"data:image/webp;base64,UklGRpoAAABXRUJQVlA4WAoAAAAQAAAABQAABwAAQUxQSCcAAAABUBRJUjOXyPCl+CED/9oQERFhPhpYrMLT1DlbQ4A/3waUNBOIjwAAVlA4IEwAAADwAQCdASoGAAgAAkA4JagCdAD0pc4OLAAA/uay9UqPvBSsdCZNN6pT7Sr3YXP9dKP7pSRIS2rq2asgv9MqE1/L7bJZuvKpZ/qAAAAA",blurWidth:6,blurHeight:8};var ta=i(60477);let tr=b.Ay.div.withConfig({componentId:"sc-2bf84153-0"})(["position:fixed;top:0;left:0;width:100%;height:100%;background:",";display:flex;justify-content:center;align-items:center;z-index:999;&.mobile.portrait{@media (orientation:portrait){@media (max-height:500px){overflow:scroll;align-items:flex-start;}}@media (orientation:landscape){@media (max-width:500px){overflow:scroll;align-items:flex-start;}}}"],e=>{let{theme:t}=e;return t.colors.black70}),ts=b.Ay.div.withConfig({componentId:"sc-2bf84153-1"})(['width:fit-content;height:fit-content;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;margin:18px;&::before{content:"";position:absolute;top:-1px;left:-1px;border-radius:inherit;width:calc(100% + 2px);height:calc(100% + 2px);z-index:-1;border-radius:inherit;background:linear-gradient(146deg,#FECD72 0%,rgba(254,205,114,0.00) 64.5%,#FECD72 100%);}background:linear-gradient(110deg,#2D2B28 0%,#101011 98.51%);border-radius:',";.mobile.portrait &,.desktop &{max-width:380px;min-width:238px;}.mobile.landscape &{flex-direction:row;max-height:280px;@media (orientation:landscape){@media (max-height:282px){max-height:240px;}@media (max-width:426px){margin:2px;}}@media (orientation:portrait){@media (max-width:282px){max-height:240px;}@media (max-height:426px){margin:2px;}}}"],e=>{let{theme:t}=e;return t.border.radius3}),tl=b.Ay.div.withConfig({componentId:"sc-2bf84153-2"})(["width:100%;height:100%;position:relative;.bg-img{width:100%;object-fit:contain;}.now-bux-img{position:absolute;left:50%;transform:translateX(-50%);max-width:163px;}.logo-text-wrapper{position:absolute;left:50%;transform:translateX(-50%);bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;}.mobile.portrait &,.desktop &{height:222px;.now-bux-img{top:10px;}}.mobile.landscape &{flex-direction:row;max-height:280px;max-width:260px;.bg-img{max-height:280px;width:auto;}.logo-text-wrapper{bottom:65px;}@media (orientation:landscape){@media (max-height:282px){max-height:240px;.logo-text-wrapper{bottom:36px;}}@media (max-width:450px){max-width:210px;}}@media (orientation:portrait){@media (max-width:282px){max-height:240px;.logo-text-wrapper{bottom:36px;}}@media (max-height:450px){max-width:210px;}}}"]),td=b.Ay.span.withConfig({componentId:"sc-2bf84153-3"})(["color:",";text-align:center;font-size:12px;font-weight:600;line-height:120%;letter-spacing:2px;text-transform:uppercase;border-radius:20px;background:",";padding:6px 20px;"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.warning}),tc=b.Ay.div.withConfig({componentId:"sc-2bf84153-4"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;.description{color:",";text-align:center;}.btn-container{padding-top:32px;display:flex;flex-direction:column;gap:12px;width:220px;height:128px;button{width:100%;}.secondary-outline{padding:-2px;}}.mobile.portrait &,.desktop &{margin:24px 0px;.description{padding:0 24px;}}.mobile.landscape &{margin:24px;@media (orientation:landscape){@media (max-width:635px){margin:0 8px 0 0;}@media (max-width:436px){overflow:scroll;.btn-container{width:100%;}}}@media (orientation:portrait){@media (max-height:635px){margin:0 8px 0 0;}@media (max-height:436px){overflow:scroll;.btn-container{width:100%;}}}}"],e=>{let{theme:t}=e;return t.colors.white80}),tp=()=>{let{t:e}=(0,h.B)(),t=(0,r.wA)(),i=(0,r.d4)(e=>e.play.orientation),n=(0,r.d4)(e=>e.play.isAndroidConnected),s=(0,r.d4)(e=>e.play.error),l=!(0,x.xl)(),[d,p]=(0,a.useState)(l&&((!n||s)&&window.innerHeight{setTimeout(()=>{p(l&&((!n||s)&&window.innerHeight{g()},[i,n,s]),(0,a.useEffect)(()=>(window.addEventListener("orientationchange",g),window.addEventListener("resize",g),()=>{window.removeEventListener("orientationchange",g),window.removeEventListener("resize",g)}),[]),(0,o.jsx)(tr,{className:"\n ".concat(l?"mobile":"desktop","\n ").concat(d?"landscape":"portrait","\n "),children:(0,o.jsxs)(ts,{children:[(0,o.jsxs)(tl,{children:[l&&d?(0,o.jsx)("img",{className:"bg-img",src:(0,S._w)(to),alt:""}):(0,o.jsx)("img",{className:"bg-img",src:(0,S._w)(tn),alt:""}),(0,o.jsx)("img",{className:"now-bux-img",src:(0,S._w)(ta.A),alt:""}),(0,o.jsxs)("div",{className:"logo-text-wrapper",children:[(0,o.jsx)("img",{height:"22px",className:"now-prime-text",src:(0,S._w)(eH.A),alt:""}),(0,o.jsx)(td,{children:e("expired")})]})]}),(0,o.jsxs)(tc,{children:[(0,o.jsx)(v.Dp,{className:"description",children:e("expiredModalDescription")}),(0,o.jsxs)("div",{className:"btn-container",children:[(0,o.jsx)(W.$,{text:e("renewNow"),variant:"primary",size:"large",target:"_blank",onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showSubscriptionExpiredModal:!1}}),(0,x.wo)(P.RmT.SubscriptionExpiredModal)}}),(0,o.jsx)(W.$,{disabled:(0,x.oN)(),text:e("continueWithAds"),variant:"secondaryOutline",size:"large",target:"_blank",onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showSubscriptionExpiredModal:!1}})},className:"secondary-outline"})]})]})]})})};var tm=i(66407),tg=i(25827);let th={src:"/_next/static/media/ad-free-mode-popup-bg.17adc833.webp",height:172,width:380,blurDataURL:"data:image/webp;base64,UklGRpQAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAAEQkBAAA9Qg0QDggDBggFBQ0EAwMCAgMDAQEBAQEBAQAAVlA4IEwAAADQAQCdASoIAAQAAkA4JbACdAD0gdCMAAD+6I5v9kGzWs6AYPOE93AC+5OuZsXTbgEctgH+yU1r2zav5om0s+a99fxg8OFjtirNxAAA",blurWidth:8,blurHeight:4},tu=b.Ay.div.withConfig({componentId:"sc-3b9fc896-0"})(["padding:1px;background-color:red;border-radius:12px;background:linear-gradient(146deg,rgb(254,205,114) 0%,rgba(254,205,114,0) 64.5%,rgb(254,205,114) 100%);"]),tx=b.Ay.div.withConfig({componentId:"sc-3b9fc896-1"})(["padding:24px;border-radius:inherit;background:linear-gradient(110deg,rgb(45,43,40) 0%,rgb(16,16,17) 98.51%);backdrop-filter:blur(60px);max-width:380px;width:90vw;position:relative;"]),tw=b.Ay.img.withConfig({componentId:"sc-3b9fc896-2"})(["position:absolute;top:0;left:0;height:150px;width:100%;z-index:-1;"]),tA=b.Ay.div.withConfig({componentId:"sc-3b9fc896-3"})(["width:100px;height:100px;border-radius:12px;background:lightgray;overflow:hidden;margin:0 auto;position:relative;img{width:100%;height:100%;object-fit:cover;}"]),tf=b.Ay.div.withConfig({componentId:"sc-3b9fc896-4"})(["text-align:center;margin-top:24px;"]),tb=(0,b.Ay)(v.iN).attrs({as:"h3"}).withConfig({componentId:"sc-3b9fc896-5"})(["line-height:130%;color:",";"],e=>{let{theme:t}=e;return t.colors.white}),ty=(0,b.Ay)(v.M5).withConfig({componentId:"sc-3b9fc896-6"})(["line-height:130%;color:",";margin-top:2px;"],e=>{let{theme:t}=e;return t.colors.white70}),tv=b.Ay.div.withConfig({componentId:"sc-3b9fc896-7"})(["margin-top:24px;"]),tj=()=>{var e,t,i;let{t:n}=(0,h.B)(),s=(0,r.wA)();return(0,a.useEffect)(()=>{var e;let t=localStorage.getItem(P.eYt),i=0;t&&(i=Number(null==(e=t.split(","))?void 0:e[1])||0),i+=1,localStorage.setItem(P.eYt,"".concat(new Date().toISOString(),",").concat(i))},[]),(0,o.jsx)(tg.A,{style:{padding:"0",border:"none",backdropFilter:"none",width:"auto",background:"transparent"},contentStyle:{margin:"0"},children:(0,o.jsx)(tu,{children:(0,o.jsxs)(tx,{children:[(0,o.jsx)(tw,{src:(0,S._w)(th),alt:""}),(0,o.jsx)(tA,{children:(0,o.jsx)(K.Ay,{src:(0,S.Vm)({src:null==(t=null==(e=null===g.Ay||void 0===g.Ay?void 0:g.Ay.appInfo)?void 0:e.media)?void 0:t.icon,quality:80,width:256}),width:100,loading:"eager",fetchpriority:"high",className:"app-logo",alt:n("logoTitle",{title:null==(i=null===g.Ay||void 0===g.Ay?void 0:g.Ay.appInfo)?void 0:i.appName}),height:100,id:"ng-unified-app-logo"})}),(0,o.jsxs)(tf,{children:[(0,o.jsx)(tb,{children:n("adFreeModeActivate")}),(0,o.jsx)(ty,{children:n("enjoyTimeUniterruptedMin",{timeInMin:(0,eX.Jo)()})})]}),(0,o.jsx)(tv,{children:(0,o.jsx)(W.$,{onClick:()=>{s({type:m.A.UPDATE_PLAY_STATE,payload:{isAddFreeModePopupVisible:!1}})},variant:"primary",size:"xlarge",style:{width:"100%"},children:n("letsGo!")})})]})})})};var tP=i(91994),tk=i(81007),tE=i(52832),tC=i(60628),tN=i(10839),tI=i(75998),tS=i.n(tI);let tT={mac:"mac",windows:"windows",ios:"ios",android:"android",chrome_os:"chrome_os",unix:"unix",beos:"beos",amigaos:"amigaos",linux:"linux",unknown:"unknown"},t_=tS()(()=>{try{return navigator.userAgent.toLowerCase().split(P.H$Y)[0]}catch(e){return""}}),tL=tS()(()=>{try{let e=t_();return/\bcros\b/i.test(e)}catch(e){return!1}}),tB=tS()(()=>{try{let e=t_();return/\bX11\b/i.test(e)&&navigator.maxTouchPoints>=5&&!tL()}catch(e){return!1}}),tD=tS()(()=>{try{let e=t_(),t=/macintosh|mac os x/i.test(e),i=navigator.maxTouchPoints>2;if(t&&i)return tT.ios;if(/\bwindows nt\b|\bwindows\b/i.test(e))return tT.windows;if(/iphone|ipad|ipod/i.test(e))return tT.ios;if(t&&!/like mac os x/i.test(e))return tT.mac;if(/\bandroid\b/i.test(e)||tB())return tT.android;if(tL())return tT.chrome_os;if(/\blinux\b/i.test(e)&&!/\bandroid\b/i.test(e))return tT.linux;if(/\bx11\b/i.test(e)&&!(/\bwindows\b/i.test(e)||t||/\blinux\b/i.test(e))&&/(i\d86|amd64|x86_64)/i.test(e))return tT.unix;if(/\bbeos\b/i.test(e))return tT.beos;if(/\bamiga\b/i.test(e))return tT.amigaos;return tT.unknown}catch(e){return tT.unknown}}),tR=tS()(()=>{try{return/macintosh/i.test(t_())}catch(e){return!1}}),tM=tS()(()=>{try{return/smart[- ]?tv|smarttv|hbbtv|appletv|googletv|tizen|webos|netcast|viera|chromecast|roku/i.test(t_())}catch(e){return!1}}),tO=tS()(()=>{try{return/iphone|ipod|ipad|android|blackberry|iemobile|opera mini|windows phone|mobile/i.test(t_())&&!tM()}catch(e){return!1}}),tU=tS()(()=>{try{let e=t_();if(/ipad/i.test(e)&&!tM()||tR()&&navigator.maxTouchPoints>2&&!tM())return!0;return!1}catch(e){return!1}}),tG=tS()(()=>{try{if(tR()&&navigator.maxTouchPoints>2&&!tM())return!0;return!1}catch(e){return!1}}),tF=tS()(()=>{try{if(navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&-1!=="MacIntel".indexOf(navigator.platform))return!0;return!1}catch(e){return!1}}),tz=tS()(()=>{try{if(tU())return!0;return(/(tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(t_())||tB())&&!tM()}catch(e){return!1}}),tQ=tS()(()=>{try{return tM()||!(tO()||tz())&&t_().indexOf("jiopages")>-1}catch(e){return!1}}),tW=tS()(()=>{try{let e=tD();if(tz()&&!tQ())return"tablet";if(tO()&&!tQ())return"smartphone";let t=[tT.mac,tT.windows,tT.chrome_os,tT.unix,tT.beos,tT.amigaos,tT.linux];if(-1!==t.indexOf(e)&&!tQ())return"desktop";return"other"}catch(e){return tT.unknown}}),tH=tS()(()=>{var e,t,i,n;try{return{new_feDeviceType:tW(),new_feOsName:tD(),new_screenWidth:null==(e=null==window?void 0:window.screen)?void 0:e.width,new_screenHeight:null==(t=null==window?void 0:window.screen)?void 0:t.height,new_screenAvailWidth:null==(i=null==window?void 0:window.screen)?void 0:i.availWidth,new_screenAvailHeight:null==(n=null==window?void 0:window.screen)?void 0:n.availHeight,new_innerWidth:null==window?void 0:window.innerWidth,new_innerHeight:null==window?void 0:window.innerHeight,old_ipad:tF(),new_isIpad2:tG(),new_isIpad:tU()}}catch(e){return{new_feDeviceType:"unknown",new_feOsName:tT.unknown,new_screenWidth:0,new_screenHeight:0,new_screenAvailWidth:0,new_screenAvailHeight:0,new_innerWidth:0,new_innerHeight:0,old_ipad:!1,new_isIpad2:!1,new_isIpad:!1}}});var tY=function(e,t,i,n){return new(i||(i=Promise))(function(o,a){function r(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,s)}l((n=n.apply(e,t||[])).next())})};let tq=O()(()=>i.e(5159).then(i.bind(i,25159)),{loadableGenerated:{webpack:()=>[25159]},ssr:!1}),tX=O()(()=>Promise.all([i.e(1869),i.e(8842),i.e(8938),i.e(9311),i.e(3470)]).then(i.bind(i,73470)),{loadableGenerated:{webpack:()=>[73470]}}),tZ=O()(()=>i.e(7080).then(i.bind(i,44699)),{loadableGenerated:{webpack:()=>[44699]}}),tV=O()(()=>Promise.resolve().then(i.bind(i,11401)),{loadableGenerated:{webpack:()=>[11401]}}),t$=O()(()=>Promise.resolve().then(i.bind(i,86757)),{loadableGenerated:{webpack:()=>[86757]}}),tJ=O()(()=>i.e(2106).then(i.bind(i,9725)),{loadableGenerated:{webpack:()=>[9725]}}),tK=e=>{(0,w.sx)("GameAutoLaunched",{reason:e},void 0,A.p.APP_PAGE)},t0=e=>{var t,i,n,l;let{appInfo:f,ngNcmHost:b,errorStatus:B,features:D,authUseThirdPartyFlow:M,prefix:O,authRedirectionUrl:F,playDomain:z,serviceStatus:Q,appPageSpecificData:W,ssrOrigin:H,isCfMobile:Y,isCfDesktop:q,isProdEnv:X,countryCode:J,errorStatusCode:K,isQuancastPopupSupportByCountry:ee,thirdPartyAuthUrl:et,ssrGames:ei,isMultiPanelAdsEnabled:ep,isMultiSubscriptionFlow:em,countryFooterLogo:eg,authServiceHost:eu,pollingRate:ex,ssrEvar:ew,popularGames:eA}=e,{t:ef}=(0,h.B)(),{isNowGGURL:ev,adsEnabled:ej}=(0,T.A)({appInfo:f,ngNcmHost:b,features:D,authUseThirdPartyFlow:M,prefix:O,authRedirectionUrl:F,serviceStatus:Q,countryCode:J,isQuancastPopupSupportByCountry:ee,pageType:"appPage",thirdPartyAuthUrl:et,isMultiPanelAdsEnabled:ep,isMultiSubscriptionFlow:em,countryFooterLogo:eg,pollingRate:ex,ssrEvar:ew}),eP=Object.assign({},g.Ay),[eE,eC]=(0,a.useState)(!1),eN=(0,a.useRef)(null),[eI,eS]=(0,a.useState)({isLoggedIn:!1,profileInfo:null}),eT=(0,a.useRef)(!1),[e_,eL]=(0,a.useState)(P.ceq.PENDING),[,eB]=(0,N.A)(B?"404 | now.gg":""),[eD,eR]=(0,a.useState)(ei),{packageName:eM}=f,eO="now.gg"===z,eU=(0,r.wA)(),{videos:eG,appPackageInfo:eQ}=W||{},eW=(0,r.d4)(e=>e.auth.showGoogleOneTap),eH=(0,r.d4)(e=>e.play.isGamePlayerOnFromAppPage),eY=(0,r.d4)(e=>e.play.error||Q),eq=(0,r.d4)(e=>e.play.showAboutUs),eZ=(0,r.d4)(e=>e.ads.adsEnded),eV=(0,r.d4)(e=>e.play.isFullscreen),e$=(0,r.d4)(e=>e.support.showSupport),eJ=(0,r.d4)(e=>e.auth.showLogin),eK=(0,r.d4)(e=>e.auth.isLoggedIn),e0=(0,r.d4)(e=>e.play.isPlayerLoaded),e1=(0,r.d4)(e=>e.auth.showResetPassword),[e2,e4]=(0,a.useState)([]),e3=(0,a.useRef)(null),[e5,e6]=(0,a.useState)(!1),e8=(0,r.d4)(e=>e.play.showApkFinder),tt=(0,r.d4)(e=>e.auth.isLoginResolved),tn=(0,r.d4)(e=>e.play.isPlayPageMode),to=(0,r.d4)(e=>e.ads.rewardedAdFirstInfoPopup),ta=(0,r.d4)(e=>e.play.isAppPageLoginPopupEnabled),tr=(0,r.d4)(e=>e.play.showDisconnectScreen),ts=(0,r.d4)(e=>e.play.showSubscriptionModal),tl=(0,r.d4)(e=>e.play.showSubscriptionExpiredModal),td=(0,r.d4)(e=>e.play.showSubscriptionEnabledModal),tc=(0,r.d4)(e=>e.play.subscriptionFlowSource),tg=(0,r.d4)(e=>e.play.showMultiSubscriptionModal),th=(0,r.d4)(e=>e.play.autoLaunchByMultiSubscriptionModal),tu=(0,r.d4)(e=>e.play.showNowBuxCreditedModal),tx=(0,r.d4)(e=>e.play.showNowBuxToastNotification),tw=(0,r.d4)(e=>e.play.nowPremiumSubscriptionActive),tA=(0,r.d4)(e=>e.play.isCreatePlayUserPremiumResolved),tf=(0,r.d4)(e=>e.play.isAddFreeModePopupVisible),tb=(0,r.d4)(e=>e.play.adBlockerMethodType),ty=(0,r.d4)(e=>e.ads.isRewardedAdPlaying),tv=(0,r.d4)(e=>e.play.isWsupScriptEnabled),tI=(0,r.d4)(e=>e.play.proxyUserType);(0,r.d4)(e=>e.play.isAndroidConnected);let tS=(0,a.useRef)(!1),{webpage_schema:tT,faq_schema:t_,title:tL,meta_description:tB,meta_title:tD,media:tR,genre:tM,rating:tO,ratingCount:tU,overview_description:tG,overview_title:tF,related_articles:tz,roundup_articles:tQ,genrewise_games:tW}=(null==eQ?void 0:eQ.data)||{},{language:t0}=(null==eQ?void 0:eQ.meta)||{},t1=(null==tM?void 0:tM[0])||{},t2="https://".concat(H),t4=(0,x.OP)(eQ,H),t3=null==(t=null==tR?void 0:tR.mobile)?void 0:t.ogimage,t5=(0,a.useMemo)(()=>{var e;return{"@context":"https://schema.org","@type":"MobileApplication",name:tL,description:tB,url:t4,image:null==(e=null==tR?void 0:tR.mobile)?void 0:e.banner,operatingSystem:"Windows, Mac, Android, iOS",applicationCategory:"GameApplication, MultimediaApplication",genre:null==t1?void 0:t1.name,aggregateRating:{"@type":"AggregateRating",ratingValue:tO,ratingCount:tU},author:{"@type":"Organization",name:"now.gg"},offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}}},[null==(i=null==tR?void 0:tR.mobile)?void 0:i.banner,tB,t4,tO,tU,null==t1?void 0:t1.name,tL]),t6=(0,a.useMemo)(()=>{let e=[{"@type":"ListItem",position:1,name:ef("home"),item:t2},{"@type":"ListItem",position:2,name:ef("games"),item:"https:/now.gg/games.html"}];return t1&&t1.slug&&e.push({"@type":"ListItem",position:3,name:t1.name,item:"https:/now.gg/games/".concat(null==t1?void 0:t1.slug,".html")}),tL?e.push({"@type":"ListItem",position:4,name:tL,item:t4}):f.appName&&e.push({"@type":"ListItem",position:4,name:f.appName,item:t4}),e},[t2,t4,null==t1?void 0:t1.slug,tL]),t8=(0,a.useMemo)(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t6}),[t6]);(0,a.useEffect)(()=>{let e=(0,eX.f_)((0,eX.Dh)());(0,x.LD)()&&!tw&&tA&&!(0,eX.Ed)()&&tb===tP.Y.NONE&&eH&&(0,tk.Gt)()&&!(0,x.ZA)()&&(e<=0&&((0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"initialForcedRewardedAds"}),(0,ek.$B)()),(0,eX.mu)(!0))},[tb,eH,tA,tw]),(0,a.useEffect)(()=>{(0,x.LD)()&&(0,tk.Gt)()&&ty&&tI===tE.to.PROXY&&(0,eX.vf)()},[tI,ty]);let t7=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return tY(void 0,void 0,void 0,function*(){var t,i;eT.current=!0,(0,g.tl)()&&(0,g.$$)();let n=f.playPageHost;if(n&&"now.gg"!==n&&"stagingngg.net"!==n&&n!==(null==(t=null==window?void 0:window.location)?void 0:t.hostname)){let e=(0,L.Ay)(window.location.href.replace(null==(i=null==window?void 0:window.location)?void 0:i.hostname,n));"now.us"===n||(e=e.replace(".html","").replace("/apps/","/play/")),window.location.href=e;return}e&&(yield(0,u.Ay)(!0)),(0,x.eG)({behavior:"smooth"}),eL(P.ceq.LOADED),(0,x.ZA)()&&eU({type:m.A.HIDE_ADS_FOR_PROXY_USER,payload:{hideAdsForProxyUser:!0}}),eU({type:m.A.UPDATE_PLAY_STATE,payload:{isGamePlayerOnFromAppPage:!0}})})};(0,a.useEffect)(()=>{if(th){var e;e="MultiSubscriptionModalSuccess_".concat(th),(0,w.sx)("GameAutoLaunchedPostAction",{reason:e},void 0,A.p.APP_PAGE),eT.current||t7()}},[th]),(0,a.useEffect)(()=>{if((0,w.sx)("RenderComplete",Object.assign({isGamePlayerOnFromAppPage:eH},tH()),void 0,A.p.APP_PAGE),(0,e9.q)(f.requireHomepageLaunch))return void eU({type:m.A.SET_ERROR,payload:{error:c.wD.FailureAppNotAvailable,errorCode:"2103",errorDescription:"error: cannot launch"}});(0,x._o)()||eU({type:m.A.SET_APP_PAGE_LOGIN_POPUP_ENABLED,payload:{isAppPageLoginPopupEnabled:!0}}),(0,te.kj)()&&eU({type:m.A.UPDATE_PLAY_PAGE_MODE,payload:{isPlayPageMode:!0,isEmbeddedFrame:!0}}),tY(void 0,void 0,void 0,function*(){(0,g.gA)().then(e=>{let{gamesList:t}=e;eR(t)}).catch(console.log)}),(0,ez.A)();let e=(0,w.b7)(!1,A.p.APP_PAGE);e6((0,x.Fr)()),eC(!0);try{let e=(0,u.VM)();e?eS({isLoggedIn:!0,profileInfo:e}):eS({isLoggedIn:!1,profileInfo:null})}catch(e){}let{utmCampaign:t}=(0,g.Zl)();"ropro"===t.toLowerCase()&&eB&&eB("RoPro Cloud Play via now.gg"),"Html"===g.Ay.appInfo.appType&&eB&&eB("Play ".concat(g.Ay.appInfo.appName," Online"));let i=sessionStorage.getItem(E.CB);i&&parseInt(i,10)&&eU({type:m.A.SET_ROBLOX_EXPERIENCE_ID,payload:{robloxExperienceId:parseInt(i,10),currentRobloxExperienceTimer:Date.now()}}),localStorage.removeItem("A/B-experiment::play-page"),sessionStorage.removeItem("isNewUserForExperiment"),eU({type:m.A.UPDATE_ORIENTATION,payload:{orientation:f.initialOrientation}}),(0,C.a$)();let n=(0,u.f0)();return eU({type:k.A.GUEST_FLOW,payload:{guestFlow:n}}),n&&eU({type:k.A.SET_LOGGED_IN,payload:{isLoggedIn:!1,showPreloader:!1}}),()=>{eN.current&&clearTimeout(eN.current),clearInterval(e)}},[]),(0,a.useEffect)(()=>{if((0,g.tl)()){if((0,x.oN)()){if(!tA)return;else if(!tw){(0,g.$$)(),(0,x.wo)(P.RmT.NowPremiumPlanScreen);return}}eK?(t7(0,!0),tK("AfterRequiredLoggedIn")):(tt&&!eK||eJ)&&(0,g.$$)()}},[eK,tt,eJ,tw,tA]);let t9=(0,x.oN)()&&tA&&tw&&!(0,x.be)();(0,a.useEffect)(()=>{let e=(0,g.Rs)();if((0,x.oN)()&&!t9){(null==tS?void 0:tS.current)||(tS.current=!0,(0,u.Ay)(!0));return}try{tn?(t7(0,!0),tK("PlayPageMode")):(0,C.xx)()?(t7(0,!0),tK("PWA")):e?((0,g.VP)(),t7(0,!0),tK("PlayBtnAlreadyClicked")):(0,x.BP)(g.Ay.appInfo.appId)?(t7(0,!0),tK("AptoideSearchOrSameOrigin")):(0,x.oN)()&&tS.current||(tS.current=!0,(0,u.Ay)(!0))}catch(e){(0,$.Ay)("App Page Rendering Error",{e})}},[tn,t9]),(0,a.useEffect)(()=>{tt&&(0,x.mP)()&&(0,x.X_)()},[tt]),(0,a.useEffect)(()=>{eK&&(0,x.mP)()&&((0,x.lJ)(),(0,x.B3)())},[eK]),(0,a.useEffect)(()=>{e3&&e3.current&&(e3.current.innerHTML=tG)},[e3]),(0,a.useEffect)(()=>{(Q||eY)&&(eU({type:m.A.UPDATE_ORIENTATION,payload:{orientation:""}}),setTimeout(()=>{(0,ec.DA)(),(null==document?void 0:document.body)&&(document.body.style.height="unset",document.body.style.width="unset",document.body.classList.remove(P.pHP),document.body.classList.remove(P.x3W))},200))},[Q,eY]);let ie=(0,a.useCallback)(()=>[Q,eY].includes(c.wD.FailureServiceNotInRegion)&&((0,x.ZZ)(f.packageName)||(0,x.lz)(f.packageName)),[Q,eY]);return((0,a.useEffect)(()=>(window.addEventListener("resize",ec.oQ),window.addEventListener("orientationchange",ec.oQ),()=>{window.removeEventListener("resize",ec.oQ),window.removeEventListener("orientationchange",ec.oQ)}),[]),B)?(0,o.jsx)(er.default,{errorStatusCode:K,prefix:O,ngNcmHost:b,errorReason:"StatusCode".concat(K,"-Unified").concat(B,"-ServiceStatus").concat(Q),isQuancastPopupSupportByCountry:ee}):(0,o.jsxs)(o.Fragment,{children:[tv&&(0,o.jsx)(tq,{}),(0,o.jsxs)(d(),{children:[(0,o.jsx)("link",{rel:"preload",href:(0,S._w)(G.A),as:"image",fetchpriority:"high"},"linklcp"),eO?(0,o.jsx)("meta",{name:"robots",content:"index,follow"},"metarobots"):(0,o.jsx)("meta",{name:"robots",content:"noindex,nofollow,noarchive"},"metarobots"),(0,o.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"ie=edge"},"metaxua"),(0,o.jsx)("link",{rel:"canonical",href:t4},"linkcan"),(0,o.jsx)("meta",{name:"description",content:tB},"metadesc"),(0,o.jsx)("meta",{name:"baidu-site-verification",content:"code-y42E1spUr0"},"metabaidu"),(0,o.jsx)("meta",{name:"theme-color",content:"#00ff9d"},"metatheme"),(0,o.jsx)("meta",{property:"og:locale",content:"en"},"metaogl"),(0,o.jsx)("meta",{property:"og:type",content:"website"},"metaogt"),(0,o.jsx)("meta",{property:"og:title",content:tD},"metaogt"),(0,o.jsx)("meta",{property:"og:description",content:tB},"metaogd"),(0,o.jsx)("meta",{property:"og:url",content:t4},"metaogau"),(0,o.jsx)("meta",{property:"og:site_name",content:"now.gg"},"metaogsn"),(0,o.jsx)("meta",{property:"twitter:title",content:tD},"metatt"),(0,o.jsx)("meta",{name:"twitter:description",content:tB},"metatd"),(0,o.jsx)("title",{children:tD}),(0,o.jsx)("meta",{property:"og:image",content:t3},"metaogi"),(0,o.jsx)("meta",{property:"og:image:secure_url",content:t3},"metaogis"),(0,o.jsx)("meta",{property:"og:image:width",content:"1200"},"metaogw"),(0,o.jsx)("meta",{property:"og:image:height",content:"630"},"metaogh"),(0,o.jsx)("meta",{property:"og:image:type",content:"image/jpeg"},"metaogt"),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"metatwc"),(0,o.jsx)("meta",{name:"twitter:image",content:t3},"metatwi"),(0,o.jsx)("link",{rel:"alternate",href:t4,hrefLang:"x-default"},"metaalt"),f.media.icon&&(0,o.jsx)("link",{rel:"apple-touch-icon",href:f.media.icon},"metaapple"),t_&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t_)}},"schfaqs"),tT&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tT)}},"schweb"),t5&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t5)}},"schmob"),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t8)}},"schbread"),eE&&(0,C.Q5)()&&(0,o.jsx)("link",{rel:"manifest",href:"data:application/json;charset=utf-8,".concat((0,C.Ay)(f.appName,(0,x.Fr)()))},"pwamanifest"),(0,o.jsx)("style",{children:"\n body {\n background-color: #111;\n }\n .h5 {\n position: static;\n }\n"})]}),(0,o.jsx)(tN.A,{}),(0,o.jsx)(s.c8,{children:(0,o.jsx)(j.x.Provider,{value:f,children:(0,o.jsxs)(U.A.Provider,{value:eP,children:[ej&&(0,o.jsx)(I.A,{isNowGGURL:ev}),(0,o.jsx)(ed.j.Provider,{value:eD,children:(0,o.jsxs)(es.A,{serviceStatus:Q,playerState:e_,isFullscreen:eV,isMobileDevice:e5,children:[f.status===c.wD.FailureForbidden?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Z,{}),(0,o.jsx)(eo.A,{isAppPage:!0})]}):(0,o.jsxs)(o.Fragment,{children:[eE&&eW&&(0,o.jsx)(V.A,{}),(0,o.jsx)(tX,{isCfMobile:Y,isCfDesktop:q,data:eQ.data,appInfo:f,ngNcmHost:b,features:D,errorStatus:"",errorStatusCode:200,authUseThirdPartyFlow:M,thirdPartyAuthUrl:et,prefix:O,authRedirectionUrl:F,playDomain:z,serviceStatus:Q,imapCfgHost:"",onPlayButtonClicked:t7,playerState:e_,adsEnded:eZ,error:String(eY||Q||""),isMobileDevice:e5,ssrOrigin:H,isQuancastPopupSupportByCountry:ee,errorScreenPromotion:ie(),authServiceHost:eu})]}),!tn&&(f.status!==c.wD.FailureForbidden&&!eV&&!(e5&&e_===P.ceq.LOADED)||eY&&f.status!==c.wD.FailureForbidden)&&(0,o.jsxs)("div",{className:"xES0bjZoI7ksV3Oz",children:[(0,x.Ti)()&&tF&&(0,o.jsxs)(y,{children:[(0,o.jsx)(v.Zc,{style:{color:"#FFFFFF",marginBottom:"8px"},children:tF}),(0,o.jsx)(v.Dp,{ref:e3,style:{color:"rgba(255,255,255,0.7)",marginBottom:"10px"}})]}),(0,o.jsx)(en,{heading:ef("popularGames"),gameList:(0,x.Ti)()?e2:eA,pathname:"/games.html",ssrOrigin:H,isTransparentBg:e5,isMobile:Y||e5,id:"ng-unified-popular-games-list"}),(0,o.jsx)("section",{className:"page-section",children:(0,o.jsxs)("div",{className:"page-content",children:[(0,o.jsx)(_,{heading:ef("videoClips")}),(0,o.jsx)(el.default,{isAppPage:!0,videos:eG,isMobile:Y||e5})]})}),tz&&tz.length?(0,o.jsx)(R,{blogs:tz,label:"blogs",highlightBg:!0,link:"/blog.html"}):null,tQ&&tQ.length?(0,o.jsx)(R,{blogs:tQ,label:"topPicks",link:"/blog/roundups.html"}):null,tW&&tW.length?(0,o.jsx)(ea,{ssrOrigin:H,gamesList:tW,selectedGenere:t1,isMobile:Y||e5}):null,(0,o.jsx)(eh,{listId:"ng-unified-categories-list"}),(0,o.jsx)(eo.A,{isAppPage:!0,breadcrumbData:t6})]})]})}),e_!==P.ceq.LOADED&&(0,o.jsxs)(o.Fragment,{children:[e$&&(0,o.jsx)(tV,{isAppPage:!0}),eq&&(0,o.jsx)(p.A,{isAppPage:!0,closeModal:()=>{eU({type:m.A.MODAL_STATUS,payload:{showAboutUs:!1}})},userAuthAndProfileInfo:eI})]}),tr&&e$&&(0,o.jsx)(tV,{isAppPage:!0}),eJ&&ta&&(!e0||eY)&&(0,o.jsx)(t$,{withBG:!0}),e1&&(0,o.jsx)(tZ,{}),e8&&(0,o.jsx)(tJ,{}),to&&(0,o.jsx)(eb,{}),g.Ay.isMultiSubscriptionFlow&&tg&&(0,o.jsx)(e7,{}),ts&&(0,o.jsx)(ey.A,{source:tc}),td&&(0,o.jsx)(tm.A,{}),tx&&(0,o.jsx)(ti,{}),tu&&(0,o.jsx)(eF,{}),tl&&(0,o.jsx)(tp,{}),tf&&(0,o.jsx)(tj,{})]})})}),(null==(l=null==(n=null==f?void 0:f.playFeFeatures)?void 0:n.uiConfig)?void 0:l.enablePerfMonitor)&&(0,o.jsx)(tC.A,{})]})}},78014:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(34961);let o=e=>n.tuk.replace("#category",e)},85993:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(14232);let o=e=>{let[t,i]=(0,n.useState)(e);return(0,n.useEffect)(()=>{document.title=t},[t]),[t,i]}},91542:(e,t,i)=>{i.d(t,{A:()=>n});let n=()=>{var e,t,i;if("serviceWorker"in navigator){let n;n=(null==(t=null==(e=null==window?void 0:window.location)?void 0:e.href)?void 0:t.indexOf("/apps/"))>-1?"/apps/":"/play/",navigator.serviceWorker.register("https://".concat((null==(i=null==window?void 0:window.location)?void 0:i.host)||"").concat(n,"sw.js"),{scope:n}).then(e=>{},e=>{})}}}}]); //# sourceMappingURL=1484.5a0352255a3327ea.js.map