"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[852,3154],{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:y,alignCenter:f=!1,onGameClick:b,type:v="redirect",openPlayPageUrl:j=!1,kname:C="game-grid",source:P="",ntmSource:E="",isAppPage:k,className:N="",showAdFreeTag:S=!1,showGridAsSidebar:I=!1,id:T="",isMobile:L=!1,variableTileCount:D}=e,B=(0,l.wA)(),_=(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":D},children:t.map((e,t)=>{var s;return(0,n.jsx)("li",{className:u()("Tile_wrap",i,{"as-sidebar":I}),id:"second-row"===C?"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 b&&"function"==typeof b&&b(e),t.preventDefault(),e.appId===r.Ay.appInfo.appId?"function"==typeof y&&y():((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:R("playOnlineOnNowgg",{appName:e.appName}),loading:t{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}})}},30852:(e,t,i)=>{i.r(t),i.d(t,{default:()=>B});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(64320),m=i(86360),g=i(62480),h=i(74038);let x=(0,a.memo)(e=>{let{visibilityTrackingDivId:t}=e,i="div-gpt-ad-shortVideo-1",o="short-video-ad";return(0,a.useEffect)(()=>{var e,n;"p"!==(0,m.Yw)()&&((0,h.b$)(o,i),null==(n=null==(e=window.tude)?void 0:e.cmd)||n.push(()=>{"p"!==(0,m.Yw)()&&((0,h.b$)(o,i,"2"),window.tude.refreshAdsViaDivMappings([Object.assign({divId:i,baseDivId:"pb-slot-tile",targeting:{ads_loc:"home-short-video"}},t?{visibilityTrackingDivId:t}:{})]))}))},[t]),(0,n.jsx)(g.A,{adType:o,containerId:"".concat(i,"-container"),adDivId:i,style:{zIndex:1}})});var u=i(71744),w=i(26617),A=i(88234),y=i(54100),f=i(8969);let b=o.Ay.div.withConfig({componentId:"sc-a2940d8b-0"})(["display:flex;flex-direction:column;width:207px;margin:0 16px;cursor:pointer;"]),v=o.Ay.p.withConfig({componentId:"sc-a2940d8b-1"})(["width:212px;font-weight:500;font-size:14px;margin-bottom:0;margin-top:8px;white-space:initial;"]),j=o.Ay.h5.withConfig({componentId:"sc-a2940d8b-2"})(["color:rgba(255,255,255,0.7);font-size:11px;font-weight:normal;"]),C=o.Ay.div.withConfig({componentId:"sc-a2940d8b-3"})(["position:relative;border-radius:24px;height:337px;overflow:hidden;"]),P=o.Ay.span.withConfig({componentId:"sc-a2940d8b-4"})(["height:270px;display:block;&:hover ~ .hover{opacity:1;}"]),E=o.Ay.div.withConfig({componentId:"sc-a2940d8b-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}),k=e=>{let{imageURL:t,title:i,views:a,onClick:o}=e;return(0,n.jsxs)(b,{onClick:o,children:[(0,n.jsxs)(C,{children:[(0,n.jsx)(P,{children:t&&(0,n.jsx)(f.CY,{layout:"fill",loading:"lazy",height:270,sizes:"212px",unoptimized:!0,src:t,alt:"".concat(i," | nowgg.fun")})}),(0,n.jsx)(E,{className:"hover"})]}),(0,n.jsx)(v,{children:i}),a&&(0,n.jsxs)(j,{children:[a," ","views"]})]})};var N=i(61839);let S=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 I=[{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"}],T=e=>{let{video:t,setVideo:i}=e;return(0,l.createPortal)((0,n.jsxs)(y.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)(y.bC,{children:(0,n.jsx)("iframe",{title:t.title,src:t.videoURL,frameBorder:"0",height:"100%",width:"100%"})})]}),document.body)},L="short-video-ad-visibility-anchor",D=o.Ay.div.withConfig({componentId:"sc-e32e12aa-0"})(["position:relative;display:flex;overflow-x:scroll;scroll-behavior:smooth;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;white-space:nowrap;"]),B=e=>{let{isAppPage:t,videos:i=I,isMobile:o}=e,[r,l]=(0,a.useState)(null),[g,h]=(0,a.useState)(0),f=(0,a.useRef)(null),b=(0,a.useRef)([]),[j,C]=(0,a.useState)(!1),P=(0,d.A)(f),E=(0,u.A)(),{t:B}=(0,c.B)(),_=(0,p.d4)(e=>e.play.nowPremiumSubscriptionActive),R=(0,p.d4)(e=>e.play.hideAdsForProxyUser),M=e=>{if(f.current){let t=b.current[g];if(t){let n="left"===e?-t.offsetWidth:t.offsetWidth;f.current.scrollBy({left:n,behavior:"smooth"});let a=Math.floor(f.current.offsetWidth/t.offsetWidth);i.length,"right"===e?h(e=>Math.min(e+a,i.length)):h(e=>Math.max(e-a,0))}}},{handleAdItemClick:U}=(0,A.A)({adDivIds:["div-gpt-ad-shortVideo-1"],enabled:w.Ay.isHomePage});return(0,a.useEffect)(()=>{let e=()=>{if(f.current){let e=b.current[g];if(e){let t=f.current.offsetWidth,n=Math.floor(t/e.offsetWidth),a=i.length-g;if(a>n?C(!0):C(!1),a<=n){let e=i.length-1,n=b.current[e];if(n){let e=n.offsetLeft-(t-n.offsetWidth);f.current.scrollLeft=e}}else 0===g&&(f.current.scrollLeft=0)}}};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[g,i.length]),(0,n.jsxs)(S,{children:[!t&&(0,n.jsx)(N.n,{children:(0,n.jsx)("h1",{children:B("shortVideosText")})}),(0,n.jsxs)("div",{style:{position:"relative",width:"100%",overflow:"hidden"},children:[(0,n.jsx)(D,{ref:f,style:{width:"100%"},children:i.map((e,t)=>(0,n.jsxs)(a.Fragment,{children:[1===t&&E&&w.Ay.isHomePage&&!R&&!_&&((0,m.xl)()||(0,m.v1)())&&(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column"},onClick:()=>U("div-gpt-ad-shortVideo-1"),children:[(0,n.jsx)(x,{visibilityTrackingDivId:L}),(0,n.jsx)(v,{children:B("advertisement")})]}),(0,n.jsx)("div",{ref:e=>b.current[t]=e,id:0===t&&w.Ay.isHomePage?L:void 0,children:(0,n.jsx)(k,{imageURL:P?e.imageURL:"",title:e.title,videoURL:e.videoURL,views:e.views,onClick:()=>l(e)},e.title)})]},e.title))}),(0,n.jsx)(y.EA,{onClick:()=>M("left"),isVisible:0!==g,"aria-label":"Previous videos",role:"button",children:P&&(0,n.jsx)("img",{alt:"Left arrow",src:"".concat(s.Cpe,"icons/arrow.svg"),width:24,height:24})}),(0,n.jsx)(y.EA,{onClick:()=>M("right"),isRightArrow:!0,isVisible:j,"aria-label":"Next videos",role:"button",children:P&&(0,n.jsx)("img",{alt:"Right arrow",src:"".concat(s.Cpe,"icons/arrow.svg"),width:24,height:24})}),r&&(0,n.jsx)(T,{video:r,setVideo:l})]})]})}},38163:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(37876),a=i(14232),o=i(88954),r=i(63580),s=i(64320),l=i(86360),d=i(91226),c=i(34961),p=i(26875),m=i(47857),g=i(97125),h=i(81007),x=i(24987),u=i(98684);let w=u.Ay.div.withConfig({componentId:"sc-a1645766-0"})(["position:fixed;top:0;pointer-events:all;display:flex;justify-content:center;width:auto;min-width:354px;min-height:",";touch-action:none;align-items:center;border:1px solid rgba(255,255,255,0.15);background:#333;justify-content:space-between;&.announcement-bar{top:40px;}&.app-page-not-launched{position:relative;top:0;z-index:1;max-width:354px;max-height:100px;overflow:hidden;& #div-gpt-ad-display{overflow:hidden;display:flex;justify-content:center;flex:1;align-self:flex-start;z-index:-1;max-width:320px !important;}}"],"".concat(c.K5U,"px")),A=u.Ay.div.withConfig({componentId:"sc-a1645766-1"})(["width:32px;background:",";height:100%;min-height:50px;align-content:space-around;display:flex;justify-content:space-evenly;align-items:center;align-self:self-start;svg{z-index:0;}"],e=>{let{theme:t}=e;return t.colors.ascent});var y=i(74038);let f=(0,a.memo)(e=>{let{isAppPageNotLaunched:t}=e,[i,u]=(0,a.useState)(""),f=(0,s.d4)(e=>e.play.isRecording),b=(0,a.useContext)(o.x),v=(0,a.useRef)(null),j=(0,s.wA)(),{t:C}=(0,p.B)(),P=(0,s.d4)(e=>e.play.isAnnouncementBarVisible),E=(0,a.useMemo)(()=>f&&(0,l.Ku)(),[f]);(0,a.useEffect)(()=>{j({type:d.A.SET_REF,payload:{displayAdRef:v}}),setTimeout(()=>{u(c.zcy),(0,r.DH)(),(0,r.nC)()},1e3)},[j]),(0,a.useEffect)(()=>{E||i!==c.zcy||"p"!==(0,l.Yw)()&&((0,y.b$)("div-gpt-ad-display","div-gpt-ad-display"),window.tude.cmd.push(()=>{"p"!==(0,l.Yw)()&&((0,y.b$)("div-gpt-ad-display","div-gpt-ad-display","2"),window.tude.refreshAdsViaDivMappings([{divId:"div-gpt-ad-display",baseDivId:"pb-slot-incontent",targeting:{ads_loc:"display-lb-top"}}]))}))},[b,i,E]);let k=(0,a.useCallback)(()=>{(0,x.sx)(c.i0Q,{nowPassSource:c.RmT.CloseAdsButton}),(0,l.wo)(c.RmT.CloseAdsButton)},[x.sx,l.wo]);return(0,n.jsx)(w,{className:"\n ".concat(P?"announcement-bar":"","\n ").concat(!(0,h.M7)()?"no-cross-icon":"","\n ").concat(t?"app-page-not-launched":" ","\n "),children:!E&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.pK,{className:"less-width",children:C("adHelpFree")}),(0,n.jsx)("div",{ref:v,id:"div-gpt-ad-display"}),(0,h.M7)()&&(0,n.jsx)(A,{onClick:k,children:(0,n.jsx)(g.b,{})})]})})})},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)},83154:(e,t,i)=>{i.r(t),i.d(t,{default:()=>tU});var n={};i.r(n),i.d(n,{category:()=>ex});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),y=i(17679),f=i(98684);f.Ay.div.withConfig({componentId:"sc-35247ef4-0"})(["max-height:100%;"]),f.Ay.div.withConfig({componentId:"sc-35247ef4-1"})(["display:flex;position:relative;overflow:hidden;"]);let b=f.Ay.div.withConfig({componentId:"sc-35247ef4-2"})(["padding:40px 24px;"]);f.Ay.div.withConfig({componentId:"sc-35247ef4-3"})(["display:flex;flex-direction:column;gap:40px;",""],(0,y.$_)("sm",(0,f.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),C=i(34961),P=i(22690),E=i(12873),k=i(66140),N=i(85993),S=i(18092),I=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 D=i(3672),B=i(71744),_=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,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,D.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,I.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,D.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),H=i(79682),W=i(27458);let Y=f.Ay.div.withConfig({componentId:"sc-2025ec6a-0"})(["min-height:70vh;display:flex;overflow:hidden;position:relative;"]),V=f.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;}"]),q=f.Ay.div.withConfig({componentId:"sc-2025ec6a-2"})(["display:flex;flex-wrap:wrap;justify-content:center;gap:20px;.secondary-btn{height:32px;}"]),X=()=>{let{t:e}=(0,h.B)(),t=(0,B.A)();return(0,a.jsxs)(Y,{children:[(0,a.jsx)("img",{src:(0,I._w)(F.A),alt:"",fetchpriority:"low",className:"left-element"}),(0,a.jsx)("img",{src:(0,I._w)(z.A),alt:"",fetchpriority:"low",className:"right-element"}),(0,a.jsxs)(V,{children:[(0,a.jsx)("img",{src:(0,I._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)(q,{children:[(0,a.jsx)(H.$,{onClick:()=>{window.location.href=t?(0,D.Ay)("https://now.gg"):"https://now.gg"},variant:"primary",text:e("goToHome")}),(0,a.jsx)(H.$,{variant:"secondaryOutline",onClick:()=>{(0,W._)(c.wD.FailureForbidden)},id:"ng-error-report-btn",className:"secondary-btn",children:e("reportIssue")})]})]})]})};var $=i(10908),Z=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,D.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,D.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(38163);let es=e=>{let{playerState:t,isCfMobileOnly:i,isMobileDeviceOnly:n}=e,o=(0,r.d4)(e=>e.play.nowPremiumSubscriptionActive);return(0,r.d4)(e=>e.play.hideAdsForProxyUser)||o||t===C.ceq.LOADED||!i||!n?null:(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,a.jsx)(er.A,{isAppPageNotLaunched:!0})})};var el=i(4976),ed=i(12104),ec=i(30852),ep=i(37305),em=i(63580),eg=i(70168),eh=i(78014),ex="JWOCEUbopYPlDB10";let eu=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:eg.Ay.map(e=>{var t;return(0,a.jsx)("li",{children:(0,a.jsxs)("a",{className:(null==n?void 0:ex)||"",href:i?(0,D.Ay)((0,eh.A)(e.slug)):(0,eh.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,D.Ay)(C.jti):C.jti,children:s("showMore")})})]})};var ew=i(74842),eA=i(89493),ey=i(83308);let ef=(0,f.AH)(["width:auto;background:transparent;border:0px;overflow:hidden;"]),eb=f.Ay.div.withConfig({componentId:"sc-aee88232-0"})(["padding-top:10px"]),ev=()=>{let e=(0,r.wA)();return(0,o.useEffect)(()=>()=>{e({type:ey.A.UPDATE_REWARDED_AD_STATUS,payload:{isRewardedAdPlaying:!1}})},[]),(0,a.jsx)(ew.A,{fullView:!(0,u.xl)(),toggle:!0,modalStyles:ef,contentStyle:{margin:"0px"},children:(0,a.jsx)(eb,{children:(0,a.jsx)(eA.A,{isCloseButtonEnabled:!0})})})};var ej=i(75912),eC=i(65539),eP=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 ek=i(71126);let eN=f.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}),eS=f.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}),eI=f.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;"]),eT=f.Ay.p.withConfig({componentId:"sc-4e159119-3"})(["margin-bottom:20px;font-size:16px;line-height:120%;"]),eL=f.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}),eD=f.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}),eB=f.Ay.div.withConfig({componentId:"sc-4e159119-6"})(["display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center;gap:20px;"]),e_=f.Ay.div.withConfig({componentId:"sc-4e159119-7"})(["display:flex;width:100%;flex-direction:column;justify-content:center;"]),eR=f.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}),eM=f.Ay.div.withConfig({componentId:"sc-4e159119-9"})(["display:flex;margin-top:16px;width:100%;align-items:center;gap:16px;justify-content:center;"]),eU=f.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}),eO=f.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 eG=i(76665);let eF=()=>{let{t:e}=(0,h.B)(),t=(0,r.wA)();return(0,a.jsx)(eD,{children:(0,a.jsxs)(eB,{children:[(0,a.jsx)("img",{src:(0,I._w)(eG.A),width:128,alt:""}),(0,a.jsxs)(e_,{children:[(0,a.jsxs)(eR,{children:[(0,a.jsx)(v.IT,{className:"title",children:e("yourNowBuxWillBeLost")}),(0,a.jsx)(v.Dp,{className:"description",children:e("nowBuxConfirmationModalDescription")})]}),(0,a.jsxs)(eM,{children:[(0,a.jsx)(H.$,{variant:"secondary",size:"large",text:e("confirmDiscard"),onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1,showNowBuxToastNotification:!0}})}}),(0,a.jsx)(H.$,{variant:"primary",size:"large",text:e("keepMyNowBux"),onClick:()=>{t({type:P.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:C.G$3.nowBuxCreditModal}}),t({type:m.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1,showNowBuxToastNotification:!1}})}})]})]})]})})},ez={isLoading:!0,spinnerWidth:20,spinnerHeight:20},eQ=()=>{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:C.G$3.nowBuxCreditModal}}),g());d(!0),(0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:""}),(0,ek.$B)(),t({type:ey.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)(eN,{children:(0,a.jsx)(eF,{})}):(0,a.jsx)(eN,{children:(0,a.jsxs)(eS,{children:[(0,a.jsx)(eC.U,{className:"tool-tip credit-modal",onClick:g,children:(0,a.jsx)(eP.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,a.jsx)("img",{className:"now-bux",src:(0,I._w)(eE),alt:""}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eI,{children:e(s?"1Nowbux":"1NowbuxEarned")}),(0,a.jsx)(eT,{children:e(s?"successfullyAddedToBalance":"claimItByLogin")})]}),i&&(0,a.jsx)(eL,{children:e("limitReachMsg")}),!i&&(0,a.jsx)(H.$,{...l?ez:{},variant:"primary",size:"large",text:l?"":e(s?"watchAnotherAd":"loginToClaim"),onClick:u}),(0,a.jsx)(H.$,{variant:"primaryOutline",size:"large",text:e(s?i?"okayGotIt":"skipForNow":"discardNowBux"),onClick:s?g:x})]})})};var eH=i(91542);let eW={src:"/_next/static/media/nowpremium.d7623b19.webp",height:500,width:500,blurWidth:0,blurHeight:0};var eY=i(96911),eV=i(34798);let eq={src:"/_next/static/media/announcement.d6913ef3.webp",height:81,width:87,blurDataURL:"data:image/webp;base64,UklGRpAAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSDQAAAABYBPZtpND6uhxkjNO6LMDNMUWAUhAAC64FWiIiOQ3OTyop+VVA7ckneBf7aMcnBl3dPkCVlA4IDYAAACwAQCdASoIAAcAAkA4JaQAD4ARc+MAAPzqmKSYdm5XZZfTSPMl6sfGUA7eDZTBud0VWUTbgAA=",blurWidth:8,blurHeight:7};var eX=i(90423),e$=i(54736);let eZ=(0,f.i7)(["0%{padding:12px;}50%{padding:6px;}100%{padding:12px;}"]),eJ=(0,f.i7)(["0%{padding:8px;}50%{padding:4px;}100%{padding:8px;}"]),eK=(0,f.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;}"]),e0=(0,f.i7)(["0%{top:200px;opacity:0;}85%{top:-30px;opacity:1;}100%{top:0px;opacity:1;}"]),e1=f.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}),e2=f.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},e0),e4=f.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}),e3=f.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}}}"]),e5=f.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(C.Cpe,"assets/images/prime/subscription-bg.webp')"),e=>{let{theme:t}=e;return t.border.base},eK,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}),e6=f.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,eJ,eJ),e8=f.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}),e7=f.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}),e9=f.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}),te=()=>{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,[]),y=(0,o.useCallback)(()=>{setTimeout(()=>{p(i&&((!s||l)&&window.innerHeight{y()},[n,s,l]),(0,o.useEffect)(()=>((0,w.sx)("PlayExperienceScreenViewed"),window.addEventListener("orientationchange",y),window.addEventListener("resize",y),()=>{window.removeEventListener("orientationchange",y),window.removeEventListener("resize",y)}),[]),(0,a.jsxs)(e1,{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)(e2,{children:[(0,a.jsx)(e4,{children:t("pickYourPlayStyle")}),(0,a.jsx)(eC.U,{className:"tool-tip",onClick:()=>{if(x)return void(0,D.Yi)("SubscriptionExpiredInMiddleOfGame");e({type:m.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}})},children:(0,a.jsx)(eP.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,a.jsxs)(e3,{children:[!A&&(0,a.jsxs)(e5,{className:"reward-ad",children:[(0,a.jsx)("img",{className:"premium-icon plan-logo",src:(0,I._w)(eW),alt:"premium content"}),(0,a.jsx)(e8,{children:t("vipMiniPass")}),(0,a.jsx)(e7,{children:t("timeMinsAdFree",{min:(0,e$.Jo)()})}),(0,a.jsxs)(H.$,{shadow:!1,variant:"primaryOutline",size:"large",onClick:()=>{(0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"PlayExperienceScreen"}),(0,ek.$B)(),e({type:ey.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,I._w)(eX.A),alt:"play icon"}),(0,a.jsx)("span",{children:t("watchAd")})]}),(0,a.jsx)(e9,{children:t("noPaymentRequired")})]}),(0,a.jsxs)(e5,{className:"premium-subscription",children:[(0,a.jsx)(e6,{className:"plan-logo",children:(0,a.jsx)("img",{className:"premium-symbol-icon",src:(0,I._w)(eY.A),alt:"premium symbol"})}),(0,a.jsx)("img",{className:"premium-text-logo",src:(0,I._w)(eV.A),alt:"premium text logo"}),(0,a.jsx)(e7,{children:t("playWithoutLimits2")}),(0,a.jsx)(H.$,{shadow:!1,onClick:()=>{e({type:m.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}}),(0,u.wo)(C.RmT.NowPremiumPlanScreen)},variant:"primary",size:"large",color:"#ff4081",children:t("buyNow")}),(0,a.jsx)(e9,{children:"".concat(t("startsAt")," ").concat(g.symbol).concat(g.value)})]}),(0,a.jsxs)(e5,{className:"free-access",children:[(0,a.jsx)("img",{className:"announcement-img plan-logo",src:(0,I._w)(eq),alt:"announcement"}),(0,a.jsx)(e8,{children:t("freeAccess")}),(0,a.jsx)(e7,{children:t("limitedExperience")}),(0,a.jsx)(H.$,{shadow:!1,size:"large",disabled:!0,children:t("playNow")}),(0,a.jsx)(e9,{children:t("notAvailableForThisGame")})]})]})]})]})};var tt=i(38389),ti=i(88150),tn=i(5673);let ta=()=>{let{t:e}=(0,h.B)(),t=(0,r.wA)();return(0,a.jsxs)(eU,{children:[(0,a.jsx)(v.E2,{className:"message",children:e("earnedNowbuxDiscarded")}),(0,a.jsx)(eO,{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,I._w)(tn.A),width:16,alt:""})})]})},to={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},tr={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 ts=i(60477);let tl=f.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}),td=f.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}),tc=f.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;}}}"]),tp=f.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}),tm=f.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}),tg=()=>{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)(tl,{className:"\n ".concat(l?"mobile":"desktop","\n ").concat(d?"landscape":"portrait","\n "),children:(0,a.jsxs)(td,{children:[(0,a.jsxs)(tc,{children:[l&&d?(0,a.jsx)("img",{className:"bg-img",src:(0,I._w)(tr),alt:""}):(0,a.jsx)("img",{className:"bg-img",src:(0,I._w)(to),alt:""}),(0,a.jsx)("img",{className:"now-bux-img",src:(0,I._w)(ts.A),alt:""}),(0,a.jsxs)("div",{className:"logo-text-wrapper",children:[(0,a.jsx)("img",{height:"22px",className:"now-prime-text",src:(0,I._w)(eV.A),alt:""}),(0,a.jsx)(tp,{children:e("expired")})]})]}),(0,a.jsxs)(tm,{children:[(0,a.jsx)(v.Dp,{className:"description",children:e("expiredModalDescription")}),(0,a.jsxs)("div",{className:"btn-container",children:[(0,a.jsx)(H.$,{text:e("renewNow"),variant:"primary",size:"large",target:"_blank",onClick:()=>{t({type:m.A.UPDATE_PLAY_STATE,payload:{showSubscriptionExpiredModal:!1}}),(0,u.wo)(C.RmT.SubscriptionExpiredModal)}}),(0,a.jsx)(H.$,{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 th=i(66407),tx=i(25827);let tu={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},tw=f.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%);"]),tA=f.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;"]),ty=f.Ay.img.withConfig({componentId:"sc-3b9fc896-2"})(["position:absolute;top:0;left:0;height:150px;width:100%;z-index:-1;"]),tf=f.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;}"]),tb=f.Ay.div.withConfig({componentId:"sc-3b9fc896-4"})(["text-align:center;margin-top:24px;"]),tv=(0,f.Ay)(v.iN).attrs({as:"h3"}).withConfig({componentId:"sc-3b9fc896-5"})(["line-height:130%;color:",";"],e=>{let{theme:t}=e;return t.colors.white}),tj=(0,f.Ay)(v.M5).withConfig({componentId:"sc-3b9fc896-6"})(["line-height:130%;color:",";margin-top:2px;"],e=>{let{theme:t}=e;return t.colors.white70}),tC=f.Ay.div.withConfig({componentId:"sc-3b9fc896-7"})(["margin-top:24px;"]),tP=()=>{var e,t,i;let{t:n}=(0,h.B)(),s=(0,r.wA)();return(0,o.useEffect)(()=>{var e;let t=localStorage.getItem(C.eYt),i=0;t&&(i=Number(null==(e=t.split(","))?void 0:e[1])||0),i+=1,localStorage.setItem(C.eYt,"".concat(new Date().toISOString(),",").concat(i))},[]),(0,a.jsx)(tx.A,{style:{padding:"0",border:"none",backdropFilter:"none",width:"auto",background:"transparent"},contentStyle:{margin:"0"},children:(0,a.jsx)(tw,{children:(0,a.jsxs)(tA,{children:[(0,a.jsx)(ty,{src:(0,I._w)(tu),alt:""}),(0,a.jsx)(tf,{children:(0,a.jsx)(K.Ay,{src:(0,I.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)(tb,{children:[(0,a.jsx)(tv,{children:n("adFreeModeActivate")}),(0,a.jsx)(tj,{children:n("enjoyTimeUniterruptedMin",{timeInMin:(0,e$.Jo)()})})]}),(0,a.jsx)(tC,{children:(0,a.jsx)(H.$,{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),tk=i(81007),tN=i(52832),tS=i(10839),tI=i(96794),tT=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 tL=U()(()=>Promise.all([i.e(1869),i.e(8842),i.e(8938),i.e(3176)]).then(i.bind(i,23176)),{loadableGenerated:{webpack:()=>[23176]}}),tD=U()(()=>i.e(7080).then(i.bind(i,44699)),{loadableGenerated:{webpack:()=>[44699]}}),tB=U()(()=>Promise.resolve().then(i.bind(i,11401)),{loadableGenerated:{webpack:()=>[11401]}}),t_=U()(()=>Promise.resolve().then(i.bind(i,86757)),{loadableGenerated:{webpack:()=>[86757]}}),tR=U()(()=>i.e(2106).then(i.bind(i,9725)),{loadableGenerated:{webpack:()=>[9725]}}),tM=e=>{(0,w.sx)("GameAutoLaunched",{reason:e},void 0,A.p.APP_PAGE)},tU=e=>{var t,i;let{appInfo:n,ngNcmHost:l,errorStatus:y,features:f,authUseThirdPartyFlow:B,prefix:_,authRedirectionUrl:M,playDomain:U,serviceStatus:F,appPageSpecificData:z,ssrOrigin:Q,isCfMobile:H,isCfTablet:W,isCfDesktop:Y,isProdEnv:V,countryCode:q,errorStatusCode:J,isQuancastPopupSupportByCountry:K,thirdPartyAuthUrl:ee,ssrGames:et,isMultiPanelAdsEnabled:ei,isMultiSubscriptionFlow:er,countryFooterLogo:eg,authServiceHost:eh,pollingRate:ex,ssrEvar:ew,popularGames:eA}=e,{t:ey}=(0,h.B)(),{isNowGGURL:ef,adsEnabled:eb}=(0,T.A)({appInfo:n,ngNcmHost:l,features:f,authUseThirdPartyFlow:B,prefix:_,authRedirectionUrl:M,serviceStatus:F,countryCode:q,isQuancastPopupSupportByCountry:K,pageType:"appPage",thirdPartyAuthUrl:ee,isMultiPanelAdsEnabled:ei,isMultiSubscriptionFlow:er,countryFooterLogo:eg,pollingRate:ex,ssrEvar:ew}),eC=Object.assign({},g.Ay),[eP,eE]=(0,o.useState)(!1),eN=(0,o.useRef)(null),[eS,eI]=(0,o.useState)({isLoggedIn:!1,profileInfo:null}),eT=(0,o.useRef)(!1),[eL,eD]=(0,o.useState)(C.ceq.PENDING),[,eB]=(0,N.A)(y?"404 | now.gg":""),[e_,eR]=(0,o.useState)(et),{packageName:eM}=n,eU="now.gg"===U,eO=(0,r.wA)(),{videos:eG,appPackageInfo:eF}=z||{},ez=(0,r.d4)(e=>e.auth.showGoogleOneTap),eW=(0,r.d4)(e=>e.play.isGamePlayerOnFromAppPage),eY=(0,r.d4)(e=>e.play.error||F),eV=(0,r.d4)(e=>e.play.showAboutUs),eq=(0,r.d4)(e=>e.ads.adsEnded),eX=(0,r.d4)(e=>e.play.isFullscreen),eZ=(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,o.useState)([]),e3=(0,o.useRef)(null),[e5,e6]=(0,o.useState)(!1),[e8,e7]=(0,o.useState)(!1),e9=(0,r.d4)(e=>e.play.showApkFinder),tn=(0,r.d4)(e=>e.auth.isLoginResolved),to=(0,r.d4)(e=>e.play.isPlayPageMode),tr=(0,r.d4)(e=>e.ads.rewardedAdFirstInfoPopup),ts=(0,r.d4)(e=>e.play.isAppPageLoginPopupEnabled),tl=(0,r.d4)(e=>e.play.showDisconnectScreen),td=(0,r.d4)(e=>e.play.showSubscriptionModal),tc=(0,r.d4)(e=>e.play.showSubscriptionExpiredModal),tp=(0,r.d4)(e=>e.play.showSubscriptionEnabledModal),tm=(0,r.d4)(e=>e.play.subscriptionFlowSource),tx=(0,r.d4)(e=>e.play.showMultiSubscriptionModal),tu=(0,r.d4)(e=>e.play.autoLaunchByMultiSubscriptionModal),tw=(0,r.d4)(e=>e.play.showNowBuxCreditedModal),tA=(0,r.d4)(e=>e.play.showNowBuxToastNotification),ty=(0,r.d4)(e=>e.play.nowPremiumSubscriptionActive),tf=(0,r.d4)(e=>e.play.isCreatePlayUserPremiumResolved),tb=(0,r.d4)(e=>e.play.isAddFreeModePopupVisible),tv=(0,r.d4)(e=>e.play.adBlockerMethodType),tj=(0,r.d4)(e=>e.ads.isRewardedAdPlaying),tC=(0,r.d4)(e=>e.play.proxyUserType);(0,r.d4)(e=>e.play.isAndroidConnected);let tU=(0,o.useRef)(!1),{webpage_schema:tO,faq_schema:tG,title:tF,meta_description:tz,meta_title:tQ,media:tH,genre:tW,rating:tY,ratingCount:tV,overview_description:tq,overview_title:tX,related_articles:t$,roundup_articles:tZ,genrewise_games:tJ}=(null==eF?void 0:eF.data)||{},{language:tK}=(null==eF?void 0:eF.meta)||{},t0=(null==tW?void 0:tW[0])||{},t1="https://".concat(Q),t2=(0,u.OP)(eF,Q),t4=null==(t=null==tH?void 0:tH.mobile)?void 0:t.ogimage,t3=(0,o.useMemo)(()=>{var e;return{"@context":"https://schema.org","@type":"MobileApplication",name:tF,description:tz,url:t2,image:null==(e=null==tH?void 0:tH.mobile)?void 0:e.banner,operatingSystem:"Windows, Mac, Android, iOS",applicationCategory:"GameApplication, MultimediaApplication",genre:null==t0?void 0:t0.name,aggregateRating:{"@type":"AggregateRating",ratingValue:tY,ratingCount:tV},author:{"@type":"Organization",name:"now.gg"},offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}}},[null==(i=null==tH?void 0:tH.mobile)?void 0:i.banner,tz,t2,tY,tV,null==t0?void 0:t0.name,tF]),t5=(0,o.useMemo)(()=>{let e=[{"@type":"ListItem",position:1,name:ey("home"),item:t1},{"@type":"ListItem",position:2,name:ey("games"),item:"https:/now.gg/games.html"}];return t0&&t0.slug&&e.push({"@type":"ListItem",position:3,name:t0.name,item:"https:/now.gg/games/".concat(null==t0?void 0:t0.slug,".html")}),tF?e.push({"@type":"ListItem",position:4,name:tF,item:t2}):n.appName&&e.push({"@type":"ListItem",position:4,name:n.appName,item:t2}),e},[t1,t2,null==t0?void 0:t0.slug,tF]),t6=(0,o.useMemo)(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t5}),[t5]);(0,o.useEffect)(()=>{let e=(0,e$.f_)((0,e$.Dh)());(0,u.LD)()&&!ty&&tf&&!(0,e$.Ed)()&&tv===tE.Y.NONE&&eW&&(0,tk.Gt)()&&!(0,u.ZA)()&&(e<=0&&((0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"initialForcedRewardedAds"}),(0,ek.$B)()),(0,e$.mu)(!0))},[tv,eW,tf,ty]),(0,o.useEffect)(()=>{(0,u.LD)()&&(0,tk.Gt)()&&tj&&tC===tN.to.PROXY&&(0,e$.vf)()},[tC,tj]);let t8=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return tT(void 0,void 0,void 0,function*(){var t,i;eT.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,D.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"}),eD(C.ceq.LOADED),(0,u.ZA)()&&eO({type:m.A.HIDE_ADS_FOR_PROXY_USER,payload:{hideAdsForProxyUser:!0}}),eO({type:m.A.UPDATE_PLAY_STATE,payload:{isGamePlayerOnFromAppPage:!0}})})};(0,o.useEffect)(()=>{if(tu){var e;e="MultiSubscriptionModalSuccess_".concat(tu),(0,w.sx)("GameAutoLaunchedPostAction",{reason:e},void 0,A.p.APP_PAGE),eT.current||t8()}},[tu]),(0,o.useEffect)(()=>{if((0,w.sx)("RenderComplete",Object.assign({isGamePlayerOnFromAppPage:eW},(0,tI.Il)()),void 0,A.p.APP_PAGE),(0,tt.q)(n.requireHomepageLaunch))return void eO({type:m.A.SET_ERROR,payload:{error:c.wD.FailureAppNotAvailable,errorCode:"2103",errorDescription:"error: cannot launch"}});(0,u._o)()||eO({type:m.A.SET_APP_PAGE_LOGIN_POPUP_ENABLED,payload:{isAppPageLoginPopupEnabled:!0}}),(0,ti.kj)()&&eO({type:m.A.UPDATE_PLAY_PAGE_MODE,payload:{isPlayPageMode:!0,isEmbeddedFrame:!0}}),tT(void 0,void 0,void 0,function*(){(0,g.gA)().then(e=>{let{gamesList:t}=e;eR(t)}).catch(console.log)}),(0,eH.A)();let e=(0,w.b7)(!1,A.p.APP_PAGE);e6((0,u.Fr)()),e7((0,u.Fr)()&&!(0,u.v1)()),eE(!0);try{let e=(0,x.VM)();e?eI({isLoggedIn:!0,profileInfo:e}):eI({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)&&eO({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"),eO({type:m.A.UPDATE_ORIENTATION,payload:{orientation:n.initialOrientation}}),(0,k.a$)();let a=(0,x.f0)();return eO({type:P.A.GUEST_FLOW,payload:{guestFlow:a}}),a&&eO({type:P.A.SET_LOGGED_IN,payload:{isLoggedIn:!1,showPreloader:!1}}),()=>{eN.current&&clearTimeout(eN.current),clearInterval(e)}},[]),(0,o.useEffect)(()=>{if((0,g.tl)()){if((0,u.oN)()){if(!tf)return;else if(!ty){(0,g.$$)(),(0,u.wo)(C.RmT.NowPremiumPlanScreen);return}}eK?(t8(0,!0),tM("AfterRequiredLoggedIn")):(tn&&!eK||eJ)&&(0,g.$$)()}},[eK,tn,eJ,ty,tf]);let t7=(0,u.oN)()&&tf&&ty&&!(0,u.be)();return((0,o.useEffect)(()=>{let e=(0,g.Rs)();if((0,u.oN)()&&!t7){(null==tU?void 0:tU.current)||(tU.current=!0,(0,x.Ay)(!0));return}try{to?(t8(0,!0),tM("PlayPageMode")):(0,k.xx)()?(t8(0,!0),tM("PWA")):e?((0,g.VP)(),t8(0,!0),tM("PlayBtnAlreadyClicked")):(0,u.BP)(g.Ay.appInfo.appId)?(t8(0,!0),tM("AptoideSearchOrSameOrigin")):(0,u.oN)()&&tU.current||(tU.current=!0,(0,x.Ay)(!0))}catch(e){(0,Z.Ay)("App Page Rendering Error",{e})}},[to,t7]),(0,o.useEffect)(()=>{tn&&(0,u.mP)()&&(0,u.X_)()},[tn]),(0,o.useEffect)(()=>{eK&&(0,u.mP)()&&((0,u.lJ)(),(0,u.B3)())},[eK]),(0,o.useEffect)(()=>{e3&&e3.current&&(e3.current.innerHTML=tq)},[e3]),(0,o.useEffect)(()=>{(F||eY)&&(eO({type:m.A.UPDATE_ORIENTATION,payload:{orientation:""}}),setTimeout(()=>{(0,em.DA)(),(null==document?void 0:document.body)&&(document.body.style.height="unset",document.body.style.width="unset",document.body.classList.remove(C.pHP),document.body.classList.remove(C.x3W))},200))},[F,eY]),(0,o.useEffect)(()=>(window.addEventListener("resize",em.oQ),window.addEventListener("orientationchange",em.oQ),()=>{window.removeEventListener("resize",em.oQ),window.removeEventListener("orientationchange",em.oQ)}),[]),y)?(0,a.jsx)(el.default,{errorStatusCode:J,prefix:_,ngNcmHost:l,errorReason:"StatusCode".concat(J,"-Unified").concat(y,"-ServiceStatus").concat(F),isQuancastPopupSupportByCountry:K}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d(),{children:[(0,a.jsx)("link",{rel:"preload",href:(0,I._w)(G.A),as:"image",fetchpriority:"high"},"linklcp"),eU?(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:t2},"linkcan"),(0,a.jsx)("meta",{name:"description",content:tz},"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:tQ},"metaogt"),(0,a.jsx)("meta",{property:"og:description",content:tz},"metaogd"),(0,a.jsx)("meta",{property:"og:url",content:t2},"metaogau"),(0,a.jsx)("meta",{property:"og:site_name",content:"now.gg"},"metaogsn"),(0,a.jsx)("meta",{property:"twitter:title",content:tQ},"metatt"),(0,a.jsx)("meta",{name:"twitter:description",content:tz},"metatd"),(0,a.jsx)("title",{children:tQ}),(0,a.jsx)("meta",{property:"og:image",content:t4},"metaogi"),(0,a.jsx)("meta",{property:"og:image:secure_url",content:t4},"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:t4},"metatwi"),(0,a.jsx)("link",{rel:"alternate",href:t2,hrefLang:"x-default"},"metaalt"),n.media.icon&&(0,a.jsx)("link",{rel:"apple-touch-icon",href:n.media.icon},"metaapple"),tG&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tG)}},"schfaqs"),tO&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tO)}},"schweb"),t3&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t3)}},"schmob"),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t6)}},"schbread"),eP&&(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)(tS.A,{}),(0,a.jsx)(s.c8,{children:(0,a.jsx)(j.x.Provider,{value:n,children:(0,a.jsxs)(O.A.Provider,{value:eC,children:[eb&&(0,a.jsx)(S.A,{isNowGGURL:ef}),(0,a.jsx)(ep.j.Provider,{value:e_,children:(0,a.jsxs)(ed.A,{serviceStatus:F,playerState:eL,isFullscreen:eX,isMobileDevice:e5,children:[n.status===c.wD.FailureForbidden?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(X,{}),(0,a.jsx)(ea.A,{isAppPage:!0})]}):(0,a.jsxs)(a.Fragment,{children:[eP&&ez&&(0,a.jsx)($.A,{}),(0,a.jsx)(es,{playerState:eL,isCfMobileOnly:H&&!W,isMobileDeviceOnly:e8}),(0,a.jsx)(tL,{isCfMobile:H,isCfDesktop:Y,data:eF.data,appInfo:n,ngNcmHost:l,features:f,errorStatus:"",errorStatusCode:200,authUseThirdPartyFlow:B,thirdPartyAuthUrl:ee,prefix:_,authRedirectionUrl:M,playDomain:U,serviceStatus:F,imapCfgHost:"",onPlayButtonClicked:t8,playerState:eL,adsEnded:eq,error:String(eY||F||""),isMobileDevice:e5,ssrOrigin:Q,isQuancastPopupSupportByCountry:K,authServiceHost:eh})]}),!to&&(n.status!==c.wD.FailureForbidden&&!eX&&!(e5&&eL===C.ceq.LOADED)||eY&&n.status!==c.wD.FailureForbidden)&&(0,a.jsxs)("div",{className:"xES0bjZoI7ksV3Oz",children:[(0,u.Ti)()&&tX&&(0,a.jsxs)(b,{children:[(0,a.jsx)(v.Zc,{style:{color:"#FFFFFF",marginBottom:"8px"},children:tX}),(0,a.jsx)(v.Dp,{ref:e3,style:{color:"rgba(255,255,255,0.7)",marginBottom:"10px"}})]}),(0,a.jsx)(en,{heading:ey("popularGames"),gameList:(0,u.Ti)()?e2:eA,pathname:"/games.html",ssrOrigin:Q,isTransparentBg:e5,isMobile:H||e5,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:ey("videoClips")}),(0,a.jsx)(ec.default,{isAppPage:!0,videos:eG,isMobile:H||e5})]})}),t$&&t$.length?(0,a.jsx)(R,{blogs:t$,label:"blogs",highlightBg:!0,link:"/blog.html"}):null,tZ&&tZ.length?(0,a.jsx)(R,{blogs:tZ,label:"topPicks",link:"/blog/roundups.html"}):null,tJ&&tJ.length?(0,a.jsx)(eo,{ssrOrigin:Q,gamesList:tJ,selectedGenere:t0,isMobile:H||e5}):null,(0,a.jsx)(eu,{listId:"ng-unified-categories-list"}),(0,a.jsx)(ea.A,{isAppPage:!0,breadcrumbData:t5})]})]})}),eL!==C.ceq.LOADED&&(0,a.jsxs)(a.Fragment,{children:[eZ&&(0,a.jsx)(tB,{isAppPage:!0}),eV&&(0,a.jsx)(p.A,{isAppPage:!0,closeModal:()=>{eO({type:m.A.MODAL_STATUS,payload:{showAboutUs:!1}})},userAuthAndProfileInfo:eS})]}),tl&&eZ&&(0,a.jsx)(tB,{isAppPage:!0}),eJ&&ts&&(!e0||eY)&&(0,a.jsx)(t_,{withBG:!0}),e1&&(0,a.jsx)(tD,{}),e9&&(0,a.jsx)(tR,{}),tr&&(0,a.jsx)(ev,{}),g.Ay.isMultiSubscriptionFlow&&tx&&(0,a.jsx)(te,{}),td&&(0,a.jsx)(ej.A,{source:tm}),tp&&(0,a.jsx)(th.A,{}),tA&&(0,a.jsx)(ta,{}),tw&&(0,a.jsx)(eQ,{}),tc&&(0,a.jsx)(tg,{}),tb&&(0,a.jsx)(tP,{})]})})})]})}},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]}},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=3154.a678a8476e6dbfee.js.map