"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6115,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),a=i(34961),o=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),x=i(15039),u=i.n(x);let w=e=>{let{gameList:t=[],tileType:i,element:x="NA",media:w="icon",priorityImages:A=0,playCurrentGame:f,alignCenter:y=!1,onGameClick:b,type:v="redirect",openPlayPageUrl:j=!1,kname:E="game-grid",source:P="",ntmSource:C="",isAppPage:k,className:N="",showAdFreeTag:I=!1,showGridAsSidebar:S=!1,id:T="",isMobile:L=!1,variableTileCount:R}=e,B=(0,l.wA)(),_=(0,l.d4)(e=>e.play.isRecording),{t:D}=(0,s.B)(),M=(0,p.A)();return(0,n.jsx)("ul",{className:"GameGrid_wrap ".concat(N),id:T,style:{"--grid-items-per-row":R},children:t.map((e,t)=>{var s;return(0,n.jsx)("li",{className:u()("Tile_wrap",i,{"as-sidebar":S}),id:"second-row"===E?"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||C?M?(0,c.iR)(e.appPageUrl,C):e.appPageUrl:void 0,onClick:t=>{if(!C)return b&&"function"==typeof b&&b(e),t.preventDefault(),e.appId===r.Ay.appInfo.appId?"function"==typeof f&&f():((e,t,i,n,r,s,l)=>{(0,o.sx)(a.wHH,{element:i,action:"Clicked",packageName:e.packageName},()=>{let t=(0,c.iR)(e.appPageUrl||e.playUrl,-1!==i.indexOf(a.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,x,0,_,B,!!k),!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:D("playOnlineOnNowgg",{appName:e.appName}),loading:t{i.r(t),i.d(t,{default:()=>P});var n=i(37876),a=i(14232),o=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=o.Ay.div.withConfig({componentId:"sc-37a20de2-0"})(["display:flex;flex-direction:column;width:207px;margin:0 16px;cursor:pointer;"]),h=o.Ay.p.withConfig({componentId:"sc-37a20de2-1"})(["width:212px;font-weight:500;font-size:14px;margin-bottom:0;margin-top:8px;white-space:initial;"]),x=o.Ay.h5.withConfig({componentId:"sc-37a20de2-2"})(["color:rgba(255,255,255,0.7);font-size:11px;font-weight:normal;"]),u=o.Ay.div.withConfig({componentId:"sc-37a20de2-3"})(["position:relative;border-radius:24px;height:337px;overflow:hidden;"]),w=o.Ay.span.withConfig({componentId:"sc-37a20de2-4"})(["height:270px;display:block;&:hover ~ .hover{opacity:1;}"]),A=o.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:a,onClick:o}=e;return(0,n.jsxs)(g,{onClick:o,children:[(0,n.jsxs)(u,{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}),a&&(0,n.jsxs)(x,{children:[a," ","views"]})]})};var y=i(61839);let b=o.Ay.div.withConfig({componentId:"sc-1a1e5530-0"})(["width:100%;overflow:hidden;@media (max-width:1023px){order:6;}"]);o.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)},E=o.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;"]),P=e=>{let{isAppPage:t,videos:i=v,isMobile:o}=e,[r,l]=(0,a.useState)(null),[m,g]=(0,a.useState)(0),h=(0,a.useRef)(null),x=(0,a.useRef)([]),[u,w]=(0,a.useState)(!1),A=(0,d.A)(h),{t:P}=(0,c.B)(),C=e=>{if(h.current){let t=x.current[m];if(t){let n="left"===e?-t.offsetWidth:t.offsetWidth;h.current.scrollBy({left:n,behavior:"smooth"});let a=Math.floor(h.current.offsetWidth/t.offsetWidth);i.length,"right"===e?g(e=>Math.min(e+a,i.length)):g(e=>Math.max(e-a,0))}}};return(0,a.useEffect)(()=>{let e=()=>{if(h.current){let e=x.current[m];if(e){let t=h.current.offsetWidth,n=Math.floor(t/e.offsetWidth),a=i.length-m;if(a>n?w(!0):w(!1),a<=n){let e=i.length-1,n=x.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)(b,{children:[!t&&(0,n.jsx)(y.n,{children:(0,n.jsx)("h1",{children:P("shortVideosText")})}),(0,n.jsxs)("div",{style:{position:"relative",width:"100%",overflow:"hidden"},children:[(0,n.jsx)(E,{ref:h,style:{width:"100%"},children:i.map((e,t)=>(0,n.jsx)("div",{ref:e=>x.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:()=>C("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:()=>C("right"),isRightArrow:!0,isVisible:u,"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),a=i(64320),o=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,a.wA)(),g=(0,d.useRef)(!1),h=t?"https://dn0qt3r0xannq.cloudfront.net/nowgg-IZQznjkQaj/nowgg-default/prebid-load.js":"https://dn0qt3r0xannq.cloudfront.net/nowgg-IZQznjkQaj/longtail/prebid-load.js",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),(0,n.jsx)(l(),{id:"prebid-script",strategy:i,src:h,onLoad:e=>{var t;let i=null==(t=e.currentTarget)?void 0:t.src;if(i&&i!==h)return void m({type:r.A.UPDATE_IMAERROR,payload:{imaError:!0,adsEnded:!0}});m({type:r.A.UPDATE_IMAERROR,payload:{imaError:!1}})},onError:()=>{s.prebidFailed=!0,(0,o.vX)("aditudeScriptLoadError",!1),m({type:r.A.UPDATE_IMAERROR,payload:{imaError:!0,adsEnded:!0}})}})}},27458:(e,t,i)=>{i.d(t,{_:()=>o});var n=i(6196),a=i(79461);let o=e=>{n.A.dispatch({type:a.A.GET_SUPPORT}),e&&n.A.dispatch({type:a.A.SET_ERROR_TYPE,payload:{errorType:e}})}},38389:(e,t,i)=>{i.d(t,{q:()=>r});var n=i(34961),a=i(86360),o=i(26617);let r=e=>{var t,i,r;return e&&(0,a.Rm)(n.znv)!==o.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:()=>a,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"}}],a=n},78014:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(34961);let a=e=>n.tuk.replace("#category",e)},85993:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(14232);let a=e=>{let[t,i]=(0,n.useState)(e);return(0,n.useEffect)(()=>{document.title=t},[t]),[t,i]}},86115:(e,t,i)=>{i.r(t),i.d(t,{default:()=>tD});var n={};i.r(n),i.d(n,{category:()=>eg});var a=i(37876),o=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),x=i(58501),u=i(86360),w=i(24987),A=i(54304),f=i(17679),y=i(98684);y.Ay.div.withConfig({componentId:"sc-35247ef4-0"})(["max-height:100%;"]),y.Ay.div.withConfig({componentId:"sc-35247ef4-1"})(["display:flex;position:relative;overflow:hidden;"]);let b=y.Ay.div.withConfig({componentId:"sc-35247ef4-2"})(["padding:40px 24px;"]);y.Ay.div.withConfig({componentId:"sc-35247ef4-3"})(["display:flex;flex-direction:column;gap:40px;",""],(0,f.$_)("sm",(0,y.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),E=i(34961),P=i(22690),C=i(12873),k=i(66140),N=i(85993),I=i(18092),S=i(47030),T=i(35502);let L=e=>{let{heading:t,style:i,href:n}=e;return(0,a.jsx)("h3",{className:"Heading",style:i,children:n?(0,a.jsx)("a",{href:n,children:t}):(0,a.jsx)("span",{children:t})})};var R=i(3672),B=i(71744),_=i(81648);let D=e=>{let{label:t,blogs:i=[],highlightBg:n=!1,link:r}=e,{t:s}=(0,h.B)(),l=(0,B.A)(),d=(0,o.useRef)(null),c=(0,_.A)(d);return(0,a.jsxs)("section",{className:"Blogs ".concat(n?"highlight-bg":""),ref:d,children:[(0,a.jsx)(L,{heading:s(t)}),(0,a.jsx)("ul",{className:"BlogList",children:i.map(e=>{let{id:t,title:i,url:n,featured_image:o}=e;return(0,a.jsx)("li",{className:"BlogListItem",children:(0,a.jsxs)("a",{href:l?(0,R.Ay)("https://now.gg".concat(n)):"https://now.gg".concat(n),children:[(0,a.jsx)("div",{className:"BlogTile",children:c&&(0,a.jsx)("img",{src:(0,S.Vm)({src:o.medium_large,width:640,quality:80}),loading:"lazy",fetchpriority:"low",alt:""})}),(0,a.jsx)("div",{className:"BlogDetail",children:(0,a.jsx)(v.fI,{as:"h4",children:i})})]})},t)})}),(0,a.jsx)("a",{className:"MoreCta",id:"".concat(t,"Section"),href:l?(0,R.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),U=i.n(M),O=i(85179),G=i(37102),F=i(81020),z=i(63400),Q=i(5139),W=i(79682),H=i(27458);let Y=y.Ay.div.withConfig({componentId:"sc-2025ec6a-0"})(["min-height:70vh;display:flex;overflow:hidden;position:relative;"]),q=y.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;}"]),Z=y.Ay.div.withConfig({componentId:"sc-2025ec6a-2"})(["display:flex;flex-wrap:wrap;justify-content:center;gap:20px;.secondary-btn{height:32px;}"]),V=()=>{let{t:e}=(0,h.B)(),t=(0,B.A)();return(0,a.jsxs)(Y,{children:[(0,a.jsx)("img",{src:(0,S._w)(F.A),alt:"",fetchpriority:"low",className:"left-element"}),(0,a.jsx)("img",{src:(0,S._w)(z.A),alt:"",fetchpriority:"low",className:"right-element"}),(0,a.jsxs)(q,{children:[(0,a.jsx)("img",{src:(0,S._w)(Q.A),alt:"",fetchpriority:"low",width:"48"}),(0,a.jsx)(v.IT,{children:e("forbiddenTitle")}),(0,a.jsx)(v.M5,{children:e("forbiddenMsg")}),(0,a.jsxs)(Z,{children:[(0,a.jsx)(W.$,{onClick:()=>{window.location.href=t?(0,R.Ay)("https://now.gg"):"https://now.gg"},variant:"primary",text:e("goToHome")}),(0,a.jsx)(W.$,{variant:"secondaryOutline",onClick:()=>{(0,H._)(c.wD.FailureForbidden)},id:"ng-error-report-btn",className:"secondary-btn",children:e("reportIssue")})]})]})]})};var X=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:o}=e,r=(0,B.A)();return(0,a.jsx)("section",{className:"OtherGames",children:(0,a.jsx)("div",{className:"OtherGamesList",style:{"--size":"calc((100% - ".concat(24*(o-1),"px) / ").concat(o,")")},children:null==t?void 0:t.slice(0,o).map(e=>{let{appName:t,media:n,appDeveloperInfo:s,appPageUrl:l,packageName:d}=e||{};return(0,a.jsx)("div",{className:et()("SingleGameCardWrap",{"six-items":6===o}),children:(0,a.jsxs)("a",{className:"SingleGameCardLink",href:r?(0,R.iR)(l,i):l,children:[(0,a.jsx)("div",{className:"GameImgWrap",children:(0,a.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,a.jsxs)("div",{style:{marginTop:8},children:[(0,a.jsx)("p",{className:"BodySRegular",children:t}),(0,a.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,o.useMemo)(()=>({gameGridList:null==r?void 0:r.slice(0,18),otherGameList:s?[]:null==r?void 0:r.slice(18,24)}),[r,s]),h=(0,o.useRef)(null),[x,u]=(0,o.useState)({normal:c?9:18,highlighted:6});(0,o.useEffect)(()=>{h.current&&new ResizeObserver(e=>{let t=e[0].contentRect.width+40;t>1200?u(Object.assign(Object.assign({},x),{highlighted:6,normal:18})):t>992?u(Object.assign(Object.assign({},x),{highlighted:5,normal:16})):t>768?u(Object.assign(Object.assign({},x),{highlighted:4,normal:12})):t>576?u(Object.assign(Object.assign({},x),{highlighted:3,normal:10})):t>512?u(Object.assign(Object.assign({},x),{highlighted:3,normal:8})):u(Object.assign(Object.assign({},x),{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,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("section",{ref:h,className:et()("ComponentMainDiv",{transparent:t}),children:(0,a.jsxs)("div",{className:"page-content",children:[(0,a.jsx)(L,{heading:i,href:w?(0,R.iR)(A):A}),(0,a.jsx)("div",{className:"GameListWrap",children:(0,a.jsx)(J.A,{ntmSource:n,isAppPage:!0,element:"PopularGame",tileType:"default",gameList:m.slice(0,x.normal),source:"",type:"link",id:p,isMobile:c})})]})}),(null==g?void 0:g.length)>0&&(0,a.jsx)(ei,{gameList:g,source:n,element:"PopularGame",chunkSize:x.highlighted})]})};var ea=i(3366);let eo=e=>{let{gamesList:t,ssrOrigin:i,selectedGenere:n,isMobile:r}=e,{t:s}=(0,h.B)(),l=(0,o.useMemo)(()=>{var e,n;let a=[];for(let o=0;o<(null==t?void 0:t.length);++o){let{nowgg_id:r,name:s,rating:l,packageName:d,genre:c,media:p,developers_details:m,slug:g}=t[o],{name:h,slug:x}=m||{};a.push({appId:r,appName:s,appRating:Number(l),playUrl:"https://".concat(i,"/play/").concat(x,"/").concat(r,"/").concat(g,".html"),appPageUrl:"https://".concat(i,"/apps/").concat(x,"/").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:x},appSlug:g})}return a},[t,i]),{slug:d,name:c}=n;return(0,a.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,o.useRef)(null),{t:s}=(0,h.B)(),l=(0,_.A)(r);return(0,a.jsxs)("section",{className:"Section",ref:r,children:[(0,a.jsx)("h2",{className:"SectionHeading",id:"categories",children:s("exploreByCategory")}),(0,a.jsx)("ul",{id:t,className:"CatList",children:ep.Ay.map(e=>{var t;return(0,a.jsx)("li",{children:(0,a.jsxs)("a",{className:(null==n?void 0:eg)||"",href:i?(0,R.Ay)((0,em.A)(e.slug)):(0,em.A)(e.slug),children:[(0,a.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,a.jsx)("span",{children:e.name})]})},e.id)})}),(0,a.jsx)("div",{className:"SepContainer",children:(0,a.jsx)("a",{className:"MoreCta",id:"showMoreCategories",href:i?(0,R.Ay)(E.jti):E.jti,children:s("showMore")})})]})};var ex=i(74842),eu=i(89493),ew=i(83308);let eA=(0,y.AH)(["width:auto;background:transparent;border:0px;overflow:hidden;"]),ef=y.Ay.div.withConfig({componentId:"sc-aee88232-0"})(["padding-top:10px"]),ey=()=>{let e=(0,r.wA)();return(0,o.useEffect)(()=>()=>{e({type:ew.A.UPDATE_REWARDED_AD_STATUS,payload:{isRewardedAdPlaying:!1}})},[]),(0,a.jsx)(ex.A,{fullView:!(0,u.xl)(),toggle:!0,modalStyles:eA,contentStyle:{margin:"0px"},children:(0,a.jsx)(ef,{children:(0,a.jsx)(eu.A,{isCloseButtonEnabled:!0})})})};var eb=i(75912),ev=i(65539),ej=i(80549);let eE={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 eP=i(71126);let eC=y.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}),ek=y.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=y.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=y.Ay.p.withConfig({componentId:"sc-4e159119-3"})(["margin-bottom:20px;font-size:16px;line-height:120%;"]),eS=y.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=y.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}),eL=y.Ay.div.withConfig({componentId:"sc-4e159119-6"})(["display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center;gap:20px;"]),eR=y.Ay.div.withConfig({componentId:"sc-4e159119-7"})(["display:flex;width:100%;flex-direction:column;justify-content:center;"]),eB=y.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}),e_=y.Ay.div.withConfig({componentId:"sc-4e159119-9"})(["display:flex;margin-top:16px;width:100%;align-items:center;gap:16px;justify-content:center;"]),eD=y.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=y.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 eU=i(76665);let eO=()=>{let{t:e}=(0,h.B)(),t=(0,r.wA)();return(0,a.jsx)(eT,{children:(0,a.jsxs)(eL,{children:[(0,a.jsx)("img",{src:(0,S._w)(eU.A),width:128,alt:""}),(0,a.jsxs)(eR,{children:[(0,a.jsxs)(eB,{children:[(0,a.jsx)(v.IT,{className:"title",children:e("yourNowBuxWillBeLost")}),(0,a.jsx)(v.Dp,{className:"description",children:e("nowBuxConfirmationModalDescription")})]}),(0,a.jsxs)(e_,{children:[(0,a.jsx)(W.$,{variant:"secondary",size:"large",text:e("confirmDiscard"),onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1,showNowBuxToastNotification:!0}})}}),(0,a.jsx)(W.$,{variant:"primary",size:"large",text:e("keepMyNowBux"),onClick:()=>{t({type:P.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:E.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,o.useState)(!1),[c,p]=(0,o.useState)(!1),g=(0,o.useCallback)(()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1}})},[t,s]),x=(0,o.useCallback)(()=>{p(!0)},[t,s]),u=(0,o.useCallback)(()=>{if(!s)return void(t({type:P.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:E.G$3.nowBuxCreditModal}}),g());d(!0),(0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:""}),(0,eP.$B)(),t({type:ew.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0,rewardedAdFirstInfoPopup:!0,rewardedAdFirst:!0,rewardedAdSecond:!1}}),g()},[]);return((0,o.useEffect)(()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxToastNotification:!1}})},[]),c)?(0,a.jsx)(eC,{children:(0,a.jsx)(eO,{})}):(0,a.jsx)(eC,{children:(0,a.jsxs)(ek,{children:[(0,a.jsx)(ev.U,{className:"tool-tip credit-modal",onClick:g,children:(0,a.jsx)(ej.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,a.jsx)("img",{className:"now-bux",src:(0,S._w)(eE),alt:""}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eN,{children:e(s?"1Nowbux":"1NowbuxEarned")}),(0,a.jsx)(eI,{children:e(s?"successfullyAddedToBalance":"claimItByLogin")})]}),i&&(0,a.jsx)(eS,{children:e("limitReachMsg")}),!i&&(0,a.jsx)(W.$,{...l?eG:{},variant:"primary",size:"large",text:l?"":e(s?"watchAnotherAd":"loginToClaim"),onClick:u}),(0,a.jsx)(W.$,{variant:"primaryOutline",size:"large",text:e(s?i?"okayGotIt":"skipForNow":"discardNowBux"),onClick:s?g:x})]})})};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),eZ=i(54736);let eV=(0,y.i7)(["0%{padding:12px;}50%{padding:6px;}100%{padding:12px;}"]),eX=(0,y.i7)(["0%{padding:8px;}50%{padding:4px;}100%{padding:8px;}"]),e$=(0,y.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,y.i7)(["0%{top:200px;opacity:0;}85%{top:-30px;opacity:1;}100%{top:0px;opacity:1;}"]),eK=y.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=y.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=y.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=y.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=y.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(E.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=y.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:",";}}}"],eV,eX,eX),e5=y.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=y.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=y.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,u.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,o.useState)(i&&((!s||l)&&window.innerHeighte.play.minPassData),x=(0,r.d4)(e=>e.play.isSubscriptionExpiredInMiddleOfGame),A=(0,o.useMemo)(u.ZA,[]),f=(0,o.useCallback)(()=>{setTimeout(()=>{p(i&&((!s||l)&&window.innerHeight{f()},[n,s,l]),(0,o.useEffect)(()=>((0,w.sx)("PlayExperienceScreenViewed"),window.addEventListener("orientationchange",f),window.addEventListener("resize",f),()=>{window.removeEventListener("orientationchange",f),window.removeEventListener("resize",f)}),[]),(0,a.jsxs)(eK,{className:"\n ".concat(i?"mobile":"","\n ").concat(d?"landscape":"portrait","\n "),children:[(0,a.jsx)("link",{href:"https://fonts.googleapis.com/css?family=Bricolage+Grotesque:wght@400;500;600;700&display=swap",rel:"stylesheet"}),(0,a.jsxs)(e0,{children:[(0,a.jsx)(e1,{children:t("pickYourPlayStyle")}),(0,a.jsx)(ev.U,{className:"tool-tip",onClick:()=>{if(x)return void window.location.reload();e({type:m.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}})},children:(0,a.jsx)(ej.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,a.jsxs)(e2,{children:[!A&&(0,a.jsxs)(e4,{className:"reward-ad",children:[(0,a.jsx)("img",{className:"premium-icon plan-logo",src:(0,S._w)(eQ),alt:"premium content"}),(0,a.jsx)(e5,{children:t("vipMiniPass")}),(0,a.jsx)(e6,{children:t("timeMinsAdFree",{min:(0,eZ.Jo)()})}),(0,a.jsxs)(W.$,{shadow:!1,variant:"primaryOutline",size:"large",onClick:()=>{(0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"PlayExperienceScreen"}),(0,eP.$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,a.jsx)("img",{className:"play-icon",src:(0,S._w)(eq.A),alt:"play icon"}),(0,a.jsx)("span",{children:t("watchAd")})]}),(0,a.jsx)(e8,{children:t("noPaymentRequired")})]}),(0,a.jsxs)(e4,{className:"premium-subscription",children:[(0,a.jsx)(e3,{className:"plan-logo",children:(0,a.jsx)("img",{className:"premium-symbol-icon",src:(0,S._w)(eW.A),alt:"premium symbol"})}),(0,a.jsx)("img",{className:"premium-text-logo",src:(0,S._w)(eH.A),alt:"premium text logo"}),(0,a.jsx)(e6,{children:t("playWithoutLimits2")}),(0,a.jsx)(W.$,{shadow:!1,onClick:()=>{e({type:m.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}}),(0,u.wo)(E.RmT.NowPremiumPlanScreen)},variant:"primary",size:"large",color:"#ff4081",children:t("buyNow")}),(0,a.jsx)(e8,{children:"".concat(t("startsAt")," ").concat(g.symbol).concat(g.value)})]}),(0,a.jsxs)(e4,{className:"free-access",children:[(0,a.jsx)("img",{className:"announcement-img plan-logo",src:(0,S._w)(eY),alt:"announcement"}),(0,a.jsx)(e5,{children:t("freeAccess")}),(0,a.jsx)(e6,{children:t("limitedExperience")}),(0,a.jsx)(W.$,{shadow:!1,size:"large",disabled:!0,children:t("playNow")}),(0,a.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,a.jsxs)(eD,{children:[(0,a.jsx)(v.E2,{className:"message",children:e("earnedNowbuxDiscarded")}),(0,a.jsx)(eM,{onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxToastNotification:!1}})},"aria-label":"Close notification",tabIndex:0,children:(0,a.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},ta={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 to=i(60477);let tr=y.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=y.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=y.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=y.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=y.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,u.xl)(),[d,p]=(0,o.useState)(l&&((!n||s)&&window.innerHeight{setTimeout(()=>{p(l&&((!n||s)&&window.innerHeight{g()},[i,n,s]),(0,o.useEffect)(()=>(window.addEventListener("orientationchange",g),window.addEventListener("resize",g),()=>{window.removeEventListener("orientationchange",g),window.removeEventListener("resize",g)}),[]),(0,a.jsx)(tr,{className:"\n ".concat(l?"mobile":"desktop","\n ").concat(d?"landscape":"portrait","\n "),children:(0,a.jsxs)(ts,{children:[(0,a.jsxs)(tl,{children:[l&&d?(0,a.jsx)("img",{className:"bg-img",src:(0,S._w)(ta),alt:""}):(0,a.jsx)("img",{className:"bg-img",src:(0,S._w)(tn),alt:""}),(0,a.jsx)("img",{className:"now-bux-img",src:(0,S._w)(to.A),alt:""}),(0,a.jsxs)("div",{className:"logo-text-wrapper",children:[(0,a.jsx)("img",{height:"22px",className:"now-prime-text",src:(0,S._w)(eH.A),alt:""}),(0,a.jsx)(td,{children:e("expired")})]})]}),(0,a.jsxs)(tc,{children:[(0,a.jsx)(v.Dp,{className:"description",children:e("expiredModalDescription")}),(0,a.jsxs)("div",{className:"btn-container",children:[(0,a.jsx)(W.$,{text:e("renewNow"),variant:"primary",size:"large",target:"_blank",onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showSubscriptionExpiredModal:!1}}),(0,u.wo)(E.RmT.SubscriptionExpiredModal)}}),(0,a.jsx)(W.$,{disabled:(0,u.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},tx=y.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%);"]),tu=y.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=y.Ay.img.withConfig({componentId:"sc-3b9fc896-2"})(["position:absolute;top:0;left:0;height:150px;width:100%;z-index:-1;"]),tA=y.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=y.Ay.div.withConfig({componentId:"sc-3b9fc896-4"})(["text-align:center;margin-top:24px;"]),ty=(0,y.Ay)(v.iN).attrs({as:"h3"}).withConfig({componentId:"sc-3b9fc896-5"})(["line-height:130%;color:",";"],e=>{let{theme:t}=e;return t.colors.white}),tb=(0,y.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=y.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,o.useEffect)(()=>{var e;let t=localStorage.getItem(E.eYt),i=0;t&&(i=Number(null==(e=t.split(","))?void 0:e[1])||0),i+=1,localStorage.setItem(E.eYt,"".concat(new Date().toISOString(),",").concat(i))},[]),(0,a.jsx)(tg.A,{style:{padding:"0",border:"none",backdropFilter:"none",width:"auto",background:"transparent"},contentStyle:{margin:"0"},children:(0,a.jsx)(tx,{children:(0,a.jsxs)(tu,{children:[(0,a.jsx)(tw,{src:(0,S._w)(th),alt:""}),(0,a.jsx)(tA,{children:(0,a.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,a.jsxs)(tf,{children:[(0,a.jsx)(ty,{children:n("adFreeModeActivate")}),(0,a.jsx)(tb,{children:n("enjoyTimeUniterruptedMin",{timeInMin:(0,eZ.Jo)()})})]}),(0,a.jsx)(tv,{children:(0,a.jsx)(W.$,{onClick:()=>{s({type:m.A.UPDATE_PLAY_STATE,payload:{isAddFreeModePopupVisible:!1}})},variant:"primary",size:"xlarge",style:{width:"100%"},children:n("letsGo!")})})]})})})};var tE=i(91994),tP=i(81007),tC=i(52832),tk=i(10839),tN=i(96794),tI=function(e,t,i,n){return new(i||(i=Promise))(function(a,o){function r(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(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 tS=U()(()=>Promise.all([i.e(1869),i.e(8842),i.e(8938),i.e(1746),i.e(3470)]).then(i.bind(i,73470)),{loadableGenerated:{webpack:()=>[73470]}}),tT=U()(()=>i.e(7080).then(i.bind(i,44699)),{loadableGenerated:{webpack:()=>[44699]}}),tL=U()(()=>Promise.resolve().then(i.bind(i,11401)),{loadableGenerated:{webpack:()=>[11401]}}),tR=U()(()=>Promise.resolve().then(i.bind(i,86757)),{loadableGenerated:{webpack:()=>[86757]}}),tB=U()(()=>i.e(2106).then(i.bind(i,9725)),{loadableGenerated:{webpack:()=>[9725]}}),t_=e=>{(0,w.sx)("GameAutoLaunched",{reason:e},void 0,A.p.APP_PAGE)},tD=e=>{var t,i;let{appInfo:n,ngNcmHost:l,errorStatus:f,features:y,authUseThirdPartyFlow:B,prefix:_,authRedirectionUrl:M,playDomain:U,serviceStatus:F,appPageSpecificData:z,ssrOrigin:Q,isCfMobile:W,isCfDesktop:H,isProdEnv:Y,countryCode:q,errorStatusCode:Z,isQuancastPopupSupportByCountry:J,thirdPartyAuthUrl:K,ssrGames:ee,isMultiPanelAdsEnabled:et,isMultiSubscriptionFlow:ei,countryFooterLogo:ep,authServiceHost:em,pollingRate:eg,ssrEvar:ex,popularGames:eu}=e,{t:ew}=(0,h.B)(),{isNowGGURL:eA,adsEnabled:ef}=(0,T.A)({appInfo:n,ngNcmHost:l,features:y,authUseThirdPartyFlow:B,prefix:_,authRedirectionUrl:M,serviceStatus:F,countryCode:q,isQuancastPopupSupportByCountry:J,pageType:"appPage",thirdPartyAuthUrl:K,isMultiPanelAdsEnabled:et,isMultiSubscriptionFlow:ei,countryFooterLogo:ep,pollingRate:eg,ssrEvar:ex}),ev=Object.assign({},g.Ay),[ej,eE]=(0,o.useState)(!1),eC=(0,o.useRef)(null),[ek,eN]=(0,o.useState)({isLoggedIn:!1,profileInfo:null}),eI=(0,o.useRef)(!1),[eS,eT]=(0,o.useState)(E.ceq.PENDING),[,eL]=(0,N.A)(f?"404 | now.gg":""),[eR,eB]=(0,o.useState)(ee),{packageName:e_}=n,eD="now.gg"===U,eM=(0,r.wA)(),{videos:eU,appPackageInfo:eO}=z||{},eG=(0,r.d4)(e=>e.auth.showGoogleOneTap),eQ=(0,r.d4)(e=>e.play.isGamePlayerOnFromAppPage),eW=(0,r.d4)(e=>e.play.error||F),eH=(0,r.d4)(e=>e.play.showAboutUs),eY=(0,r.d4)(e=>e.ads.adsEnded),eq=(0,r.d4)(e=>e.play.isFullscreen),eV=(0,r.d4)(e=>e.support.showSupport),eX=(0,r.d4)(e=>e.auth.showLogin),e$=(0,r.d4)(e=>e.auth.isLoggedIn),eJ=(0,r.d4)(e=>e.play.isPlayerLoaded),eK=(0,r.d4)(e=>e.auth.showResetPassword),[e0,e1]=(0,o.useState)([]),e2=(0,o.useRef)(null),[e4,e3]=(0,o.useState)(!1),e5=(0,r.d4)(e=>e.play.showApkFinder),e6=(0,r.d4)(e=>e.auth.isLoginResolved),e8=(0,r.d4)(e=>e.play.isPlayPageMode),tt=(0,r.d4)(e=>e.ads.rewardedAdFirstInfoPopup),tn=(0,r.d4)(e=>e.play.isAppPageLoginPopupEnabled),ta=(0,r.d4)(e=>e.play.showDisconnectScreen),to=(0,r.d4)(e=>e.play.showSubscriptionModal),tr=(0,r.d4)(e=>e.play.showSubscriptionExpiredModal),ts=(0,r.d4)(e=>e.play.showSubscriptionEnabledModal),tl=(0,r.d4)(e=>e.play.subscriptionFlowSource),td=(0,r.d4)(e=>e.play.showMultiSubscriptionModal),tc=(0,r.d4)(e=>e.play.autoLaunchByMultiSubscriptionModal),tg=(0,r.d4)(e=>e.play.showNowBuxCreditedModal),th=(0,r.d4)(e=>e.play.showNowBuxToastNotification),tx=(0,r.d4)(e=>e.play.nowPremiumSubscriptionActive),tu=(0,r.d4)(e=>e.play.isCreatePlayUserPremiumResolved),tw=(0,r.d4)(e=>e.play.isAddFreeModePopupVisible),tA=(0,r.d4)(e=>e.play.adBlockerMethodType),tf=(0,r.d4)(e=>e.ads.isRewardedAdPlaying),ty=(0,r.d4)(e=>e.play.proxyUserType);(0,r.d4)(e=>e.play.isAndroidConnected);let tb=(0,o.useRef)(!1),{webpage_schema:tv,faq_schema:tD,title:tM,meta_description:tU,meta_title:tO,media:tG,genre:tF,rating:tz,ratingCount:tQ,overview_description:tW,overview_title:tH,related_articles:tY,roundup_articles:tq,genrewise_games:tZ}=(null==eO?void 0:eO.data)||{},{language:tV}=(null==eO?void 0:eO.meta)||{},tX=(null==tF?void 0:tF[0])||{},t$="https://".concat(Q),tJ=(0,u.OP)(eO,Q),tK=null==(t=null==tG?void 0:tG.mobile)?void 0:t.ogimage,t0=(0,o.useMemo)(()=>{var e;return{"@context":"https://schema.org","@type":"MobileApplication",name:tM,description:tU,url:tJ,image:null==(e=null==tG?void 0:tG.mobile)?void 0:e.banner,operatingSystem:"Windows, Mac, Android, iOS",applicationCategory:"GameApplication, MultimediaApplication",genre:null==tX?void 0:tX.name,aggregateRating:{"@type":"AggregateRating",ratingValue:tz,ratingCount:tQ},author:{"@type":"Organization",name:"now.gg"},offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}}},[null==(i=null==tG?void 0:tG.mobile)?void 0:i.banner,tU,tJ,tz,tQ,null==tX?void 0:tX.name,tM]),t1=(0,o.useMemo)(()=>{let e=[{"@type":"ListItem",position:1,name:ew("home"),item:t$},{"@type":"ListItem",position:2,name:ew("games"),item:"https:/now.gg/games.html"}];return tX&&tX.slug&&e.push({"@type":"ListItem",position:3,name:tX.name,item:"https:/now.gg/games/".concat(null==tX?void 0:tX.slug,".html")}),tM?e.push({"@type":"ListItem",position:4,name:tM,item:tJ}):n.appName&&e.push({"@type":"ListItem",position:4,name:n.appName,item:tJ}),e},[t$,tJ,null==tX?void 0:tX.slug,tM]),t2=(0,o.useMemo)(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t1}),[t1]);(0,o.useEffect)(()=>{let e=(0,eZ.f_)((0,eZ.Dh)());(0,u.LD)()&&!tx&&tu&&!(0,eZ.Ed)()&&tA===tE.Y.NONE&&eQ&&(0,tP.Gt)()&&!(0,u.ZA)()&&(e<=0&&((0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"initialForcedRewardedAds"}),(0,eP.$B)()),(0,eZ.mu)(!0))},[tA,eQ,tu,tx]),(0,o.useEffect)(()=>{(0,u.LD)()&&(0,tP.Gt)()&&tf&&ty===tC.to.PROXY&&(0,eZ.vf)()},[ty,tf]);let t4=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return tI(void 0,void 0,void 0,function*(){var t,i;eI.current=!0,(0,g.tl)()&&(0,g.$$)();let a=n.playPageHost;if(a&&"now.gg"!==a&&"stagingngg.net"!==a&&a!==(null==(t=null==window?void 0:window.location)?void 0:t.hostname)){let e=(0,R.Ay)(window.location.href.replace(null==(i=null==window?void 0:window.location)?void 0:i.hostname,a));"now.us"===a||(e=e.replace(".html","").replace("/apps/","/play/")),window.location.href=e;return}e&&(yield(0,x.Ay)(!0)),(0,u.eG)({behavior:"smooth"}),eT(E.ceq.LOADED),(0,u.ZA)()&&eM({type:m.A.HIDE_ADS_FOR_PROXY_USER,payload:{hideAdsForProxyUser:!0}}),eM({type:m.A.UPDATE_PLAY_STATE,payload:{isGamePlayerOnFromAppPage:!0}})})};(0,o.useEffect)(()=>{if(tc){var e;e="MultiSubscriptionModalSuccess_".concat(tc),(0,w.sx)("GameAutoLaunchedPostAction",{reason:e},void 0,A.p.APP_PAGE),eI.current||t4()}},[tc]),(0,o.useEffect)(()=>{if((0,w.sx)("RenderComplete",Object.assign({isGamePlayerOnFromAppPage:eQ},(0,tN.Il)()),void 0,A.p.APP_PAGE),(0,e9.q)(n.requireHomepageLaunch))return void eM({type:m.A.SET_ERROR,payload:{error:c.wD.FailureAppNotAvailable,errorCode:"2103",errorDescription:"error: cannot launch"}});(0,u._o)()||eM({type:m.A.SET_APP_PAGE_LOGIN_POPUP_ENABLED,payload:{isAppPageLoginPopupEnabled:!0}}),(0,te.kj)()&&eM({type:m.A.UPDATE_PLAY_PAGE_MODE,payload:{isPlayPageMode:!0,isEmbeddedFrame:!0}}),tI(void 0,void 0,void 0,function*(){(0,g.gA)().then(e=>{let{gamesList:t}=e;eB(t)}).catch(console.log)}),(0,ez.A)();let e=(0,w.b7)(!1,A.p.APP_PAGE);e3((0,u.Fr)()),eE(!0);try{let e=(0,x.VM)();e?eN({isLoggedIn:!0,profileInfo:e}):eN({isLoggedIn:!1,profileInfo:null})}catch(e){}let{utmCampaign:t}=(0,g.Zl)();"ropro"===t.toLowerCase()&&eL&&eL("RoPro Cloud Play via now.gg"),"Html"===g.Ay.appInfo.appType&&eL&&eL("Play ".concat(g.Ay.appInfo.appName," Online"));let i=sessionStorage.getItem(C.CB);i&&parseInt(i,10)&&eM({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"),eM({type:m.A.UPDATE_ORIENTATION,payload:{orientation:n.initialOrientation}}),(0,k.a$)();let a=(0,x.f0)();return eM({type:P.A.GUEST_FLOW,payload:{guestFlow:a}}),a&&eM({type:P.A.SET_LOGGED_IN,payload:{isLoggedIn:!1,showPreloader:!1}}),()=>{eC.current&&clearTimeout(eC.current),clearInterval(e)}},[]),(0,o.useEffect)(()=>{if((0,g.tl)()){if((0,u.oN)()){if(!tu)return;else if(!tx){(0,g.$$)(),(0,u.wo)(E.RmT.NowPremiumPlanScreen);return}}e$?(t4(0,!0),t_("AfterRequiredLoggedIn")):(e6&&!e$||eX)&&(0,g.$$)()}},[e$,e6,eX,tx,tu]);let t3=(0,u.oN)()&&tu&&tx&&!(0,u.be)();(0,o.useEffect)(()=>{let e=(0,g.Rs)();if((0,u.oN)()&&!t3){(null==tb?void 0:tb.current)||(tb.current=!0,(0,x.Ay)(!0));return}try{e8?(t4(0,!0),t_("PlayPageMode")):(0,k.xx)()?(t4(0,!0),t_("PWA")):e?((0,g.VP)(),t4(0,!0),t_("PlayBtnAlreadyClicked")):(0,u.BP)(g.Ay.appInfo.appId)?(t4(0,!0),t_("AptoideSearchOrSameOrigin")):(0,u.oN)()&&tb.current||(tb.current=!0,(0,x.Ay)(!0))}catch(e){(0,$.Ay)("App Page Rendering Error",{e})}},[e8,t3]),(0,o.useEffect)(()=>{e6&&(0,u.mP)()&&(0,u.X_)()},[e6]),(0,o.useEffect)(()=>{e$&&(0,u.mP)()&&((0,u.lJ)(),(0,u.B3)())},[e$]),(0,o.useEffect)(()=>{e2&&e2.current&&(e2.current.innerHTML=tW)},[e2]),(0,o.useEffect)(()=>{(F||eW)&&(eM({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(E.pHP),document.body.classList.remove(E.x3W))},200))},[F,eW]);let t5=(0,o.useCallback)(()=>[F,eW].includes(c.wD.FailureServiceNotInRegion)&&((0,u.ZZ)(n.packageName)||(0,u.lz)(n.packageName)),[F,eW]);return((0,o.useEffect)(()=>(window.addEventListener("resize",ec.oQ),window.addEventListener("orientationchange",ec.oQ),()=>{window.removeEventListener("resize",ec.oQ),window.removeEventListener("orientationchange",ec.oQ)}),[]),f)?(0,a.jsx)(er.default,{errorStatusCode:Z,prefix:_,ngNcmHost:l,errorReason:"StatusCode".concat(Z,"-Unified").concat(f,"-ServiceStatus").concat(F),isQuancastPopupSupportByCountry:J}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d(),{children:[(0,a.jsx)("link",{rel:"preload",href:(0,S._w)(G.A),as:"image",fetchpriority:"high"},"linklcp"),eD?(0,a.jsx)("meta",{name:"robots",content:"index,follow"},"metarobots"):(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow,noarchive"},"metarobots"),(0,a.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"ie=edge"},"metaxua"),(0,a.jsx)("link",{rel:"canonical",href:tJ},"linkcan"),(0,a.jsx)("meta",{name:"description",content:tU},"metadesc"),(0,a.jsx)("meta",{name:"baidu-site-verification",content:"code-y42E1spUr0"},"metabaidu"),(0,a.jsx)("meta",{name:"theme-color",content:"#00ff9d"},"metatheme"),(0,a.jsx)("meta",{property:"og:locale",content:"en"},"metaogl"),(0,a.jsx)("meta",{property:"og:type",content:"website"},"metaogt"),(0,a.jsx)("meta",{property:"og:title",content:tO},"metaogt"),(0,a.jsx)("meta",{property:"og:description",content:tU},"metaogd"),(0,a.jsx)("meta",{property:"og:url",content:tJ},"metaogau"),(0,a.jsx)("meta",{property:"og:site_name",content:"now.gg"},"metaogsn"),(0,a.jsx)("meta",{property:"twitter:title",content:tO},"metatt"),(0,a.jsx)("meta",{name:"twitter:description",content:tU},"metatd"),(0,a.jsx)("title",{children:tO}),(0,a.jsx)("meta",{property:"og:image",content:tK},"metaogi"),(0,a.jsx)("meta",{property:"og:image:secure_url",content:tK},"metaogis"),(0,a.jsx)("meta",{property:"og:image:width",content:"1200"},"metaogw"),(0,a.jsx)("meta",{property:"og:image:height",content:"630"},"metaogh"),(0,a.jsx)("meta",{property:"og:image:type",content:"image/jpeg"},"metaogt"),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"metatwc"),(0,a.jsx)("meta",{name:"twitter:image",content:tK},"metatwi"),(0,a.jsx)("link",{rel:"alternate",href:tJ,hrefLang:"x-default"},"metaalt"),n.media.icon&&(0,a.jsx)("link",{rel:"apple-touch-icon",href:n.media.icon},"metaapple"),tD&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tD)}},"schfaqs"),tv&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tv)}},"schweb"),t0&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t0)}},"schmob"),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t2)}},"schbread"),ej&&(0,k.Q5)()&&(0,a.jsx)("link",{rel:"manifest",href:"data:application/json;charset=utf-8,".concat((0,k.Ay)(n.appName,(0,u.Fr)()))},"pwamanifest"),(0,a.jsx)("style",{children:"\n body {\n background-color: #111;\n }\n .h5 {\n position: static;\n }\n"})]}),(0,a.jsx)(tk.A,{}),(0,a.jsx)(s.c8,{children:(0,a.jsx)(j.x.Provider,{value:n,children:(0,a.jsxs)(O.A.Provider,{value:ev,children:[ef&&(0,a.jsx)(I.A,{isNowGGURL:eA}),(0,a.jsx)(ed.j.Provider,{value:eR,children:(0,a.jsxs)(es.A,{serviceStatus:F,playerState:eS,isFullscreen:eq,isMobileDevice:e4,children:[n.status===c.wD.FailureForbidden?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(V,{}),(0,a.jsx)(ea.A,{isAppPage:!0})]}):(0,a.jsxs)(a.Fragment,{children:[ej&&eG&&(0,a.jsx)(X.A,{}),(0,a.jsx)(tS,{isCfMobile:W,isCfDesktop:H,data:eO.data,appInfo:n,ngNcmHost:l,features:y,errorStatus:"",errorStatusCode:200,authUseThirdPartyFlow:B,thirdPartyAuthUrl:K,prefix:_,authRedirectionUrl:M,playDomain:U,serviceStatus:F,imapCfgHost:"",onPlayButtonClicked:t4,playerState:eS,adsEnded:eY,error:String(eW||F||""),isMobileDevice:e4,ssrOrigin:Q,isQuancastPopupSupportByCountry:J,errorScreenPromotion:t5(),authServiceHost:em})]}),!e8&&(n.status!==c.wD.FailureForbidden&&!eq&&!(e4&&eS===E.ceq.LOADED)||eW&&n.status!==c.wD.FailureForbidden)&&(0,a.jsxs)("div",{className:"xES0bjZoI7ksV3Oz",children:[(0,u.Ti)()&&tH&&(0,a.jsxs)(b,{children:[(0,a.jsx)(v.Zc,{style:{color:"#FFFFFF",marginBottom:"8px"},children:tH}),(0,a.jsx)(v.Dp,{ref:e2,style:{color:"rgba(255,255,255,0.7)",marginBottom:"10px"}})]}),(0,a.jsx)(en,{heading:ew("popularGames"),gameList:(0,u.Ti)()?e0:eu,pathname:"/games.html",ssrOrigin:Q,isTransparentBg:e4,isMobile:W||e4,id:"ng-unified-popular-games-list"}),(0,a.jsx)("section",{className:"page-section",children:(0,a.jsxs)("div",{className:"page-content",children:[(0,a.jsx)(L,{heading:ew("videoClips")}),(0,a.jsx)(el.default,{isAppPage:!0,videos:eU,isMobile:W||e4})]})}),tY&&tY.length?(0,a.jsx)(D,{blogs:tY,label:"blogs",highlightBg:!0,link:"/blog.html"}):null,tq&&tq.length?(0,a.jsx)(D,{blogs:tq,label:"topPicks",link:"/blog/roundups.html"}):null,tZ&&tZ.length?(0,a.jsx)(eo,{ssrOrigin:Q,gamesList:tZ,selectedGenere:tX,isMobile:W||e4}):null,(0,a.jsx)(eh,{listId:"ng-unified-categories-list"}),(0,a.jsx)(ea.A,{isAppPage:!0,breadcrumbData:t1})]})]})}),eS!==E.ceq.LOADED&&(0,a.jsxs)(a.Fragment,{children:[eV&&(0,a.jsx)(tL,{isAppPage:!0}),eH&&(0,a.jsx)(p.A,{isAppPage:!0,closeModal:()=>{eM({type:m.A.MODAL_STATUS,payload:{showAboutUs:!1}})},userAuthAndProfileInfo:ek})]}),ta&&eV&&(0,a.jsx)(tL,{isAppPage:!0}),eX&&tn&&(!eJ||eW)&&(0,a.jsx)(tR,{withBG:!0}),eK&&(0,a.jsx)(tT,{}),e5&&(0,a.jsx)(tB,{}),tt&&(0,a.jsx)(ey,{}),g.Ay.isMultiSubscriptionFlow&&td&&(0,a.jsx)(e7,{}),to&&(0,a.jsx)(eb.A,{source:tl}),ts&&(0,a.jsx)(tm.A,{}),th&&(0,a.jsx)(ti,{}),tg&&(0,a.jsx)(eF,{}),tr&&(0,a.jsx)(tp,{}),tw&&(0,a.jsx)(tj,{})]})})})]})}},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=6115.81abc2eb50295355.js.map