"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3998,7686],{8890:(e,t,i)=>{i.d(t,{Ay:()=>o,iT:()=>n});let n=[{id:396,name:"Browser Games",slug:"browser",icon:{thumbnail:"https://cms-cdn.nowgg.fun/cms-media/2023/07/TypeBrowse-1.png"}},{id:22,name:"Casual Games",slug:"casual",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeCasual.png"}},{id:26,name:"Strategy Games",slug:"strategy",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeStrategy.png"}},{id:30,name:"Simulation Games",slug:"simulation",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeSimulation.png"}},{id:24,name:"Role Playing Games",slug:"role-playing",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeRPG.png"}},{id:21,name:"Action Games",slug:"action",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeAction-1.png"}},{id:31,name:"Adventure Games",slug:"adventure",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeAdventure-1.png"}},{id:27,name:"Puzzle Games",slug:"puzzle",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypePuzzle.png"}},{id:23,name:"Arcade Games",slug:"arcade",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeArcade-1.png"}},{id:32,name:"Sports Games",slug:"sports",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeSports.png"}},{id:33,name:"Casino Games",slug:"casino",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeCasino-1.png"}},{id:25,name:"Racing Games",slug:"racing",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeRacing.png"}},{id:468,name:"Card Games",slug:"card",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeCard-1.png"}},{id:48,name:"Educational Games",slug:"educational",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeEducational.png"}},{id:29,name:"Social Games",slug:"social",icon:{thumbnail:"https://cms-cdn.now.gg/cms-media/2023/07/TypeSocial.png"}}],o=n},37686:(e,t,i)=>{i.r(t),i.d(t,{default:()=>k});var n=i(37876),o=i(14232),a=i(98684),r=i(99397),s=i(62920),l=i(98477),d=i(89326),c=i(26875),p=i(93766),m=i(7631);let g=a.Ay.div.withConfig({componentId:"sc-37a20de2-0"})(["display:flex;flex-direction:column;width:207px;margin:0 16px;cursor:pointer;"]),h=a.Ay.p.withConfig({componentId:"sc-37a20de2-1"})(["width:212px;font-weight:500;font-size:14px;margin-bottom:0;margin-top:8px;white-space:initial;"]),u=a.Ay.h5.withConfig({componentId:"sc-37a20de2-2"})(["color:rgba(255,255,255,0.7);font-size:11px;font-weight:normal;"]),x=a.Ay.div.withConfig({componentId:"sc-37a20de2-3"})(["position:relative;border-radius:24px;height:337px;overflow:hidden;"]),w=a.Ay.span.withConfig({componentId:"sc-37a20de2-4"})(["height:270px;display:block;&:hover ~ .hover{opacity:1;}"]),A=a.Ay.div.withConfig({componentId:"sc-37a20de2-5"})(["display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);opacity:0;pointer-events:none;border:1px solid ",";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;&:before{content:'';position:absolute;width:40px;height:40px;background:#00ff9d;border-radius:50%;}&:after{content:'';width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:12px solid white;z-index:2;position:absolute;margin-left:4px;}"],e=>{let{theme:t}=e;return t.colors.ascent}),b=e=>{let{imageURL:t,title:i,views:o,onClick:a}=e;return(0,n.jsxs)(g,{onClick:a,children:[(0,n.jsxs)(x,{children:[(0,n.jsx)(w,{children:t&&(0,n.jsx)(m.CY,{layout:"fill",loading:"lazy",height:270,sizes:"212px",unoptimized:!0,src:t,alt:"".concat(i," | now.gg")})}),(0,n.jsx)(A,{className:"hover"})]}),(0,n.jsx)(h,{children:i}),o&&(0,n.jsxs)(u,{children:[o," ","views"]})]})};var f=i(49853);let y=a.Ay.div.withConfig({componentId:"sc-1a1e5530-0"})(["width:100%;overflow:hidden;@media (max-width:1023px){order:6;}"]);a.Ay.div.withConfig({componentId:"sc-1a1e5530-1"})(["position:relative;display:flex;flex-wrap:nowrap;gap:16px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;padding:16px 0;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"]);let v=[{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-2.png",title:"No Downloads. No Installs. Play games INSTANTLY on now.gg",videoURL:"https://www.youtube.com/embed/qaTVpUZkSTI?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"530"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/vide-game-6.png",title:"Busted gaming on school laptop, but you are still lit\uD83D\uDD25\uD83D\uDE0E #unblockedgames",videoURL:"https://www.youtube.com/embed/6wCsIDFSabM?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"26k"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-3.png",title:"Did you score? #unblockedgames #school",videoURL:"https://www.youtube.com/embed/aMZXrSweWxA?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"2.7k"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-4.png",title:"Play Instantly on now.gg #nowgg #onlinegaming #santacityrun",videoURL:"https://www.youtube.com/embed/_23wYKZvzHw?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"2.7k"},{imageURL:"https://cms-cdn.now.gg/cms-media/2023/03/video-game-5.png",title:"Breaking game records like OG\uD83D\uDE0E #nowgg #electrondash",videoURL:"https://www.youtube.com/embed/cFvIQc5TXus?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"1.9k"},{imageURL:"https://cdn.now.gg/apps-content/img/website/video-game-7.png",title:"No More Homework Horror with Unblocked Games Online #school #unblockedgames",videoURL:"https://www.youtube.com/embed/_EzyIJuHeVA?autoplay=1&controls=1&mute=1&enablejsapi=1",views:"9.7k"}],j=e=>{let{video:t,setVideo:i}=e;return(0,l.createPortal)((0,n.jsxs)(p.L9,{id:"videoPlayer",onClick:()=>i(null),children:[(0,n.jsx)(r.A,{style:{cursor:"pointer"},id:"video-player-cross",onClick:()=>i(null),size:18,name:"cross-thin"}),(0,n.jsx)(p.bC,{children:(0,n.jsx)("iframe",{title:t.title,src:t.videoURL,frameBorder:"0",height:"100%",width:"100%"})})]}),document.body)},P=a.Ay.div.withConfig({componentId:"sc-5f46476e-0"})(["position:relative;display:flex;overflow-x:scroll;scroll-behavior:smooth;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;white-space:nowrap;"]),k=e=>{let{isAppPage:t,videos:i=v,isMobile:a}=e,[r,l]=(0,o.useState)(null),[m,g]=(0,o.useState)(0),h=(0,o.useRef)(null),u=(0,o.useRef)([]),[x,w]=(0,o.useState)(!1),A=(0,d.A)(h),{t:k}=(0,c.B)(),C=e=>{if(h.current){let t=u.current[m];if(t){let n="left"===e?-t.offsetWidth:t.offsetWidth;h.current.scrollBy({left:n,behavior:"smooth"});let o=Math.floor(h.current.offsetWidth/t.offsetWidth);i.length,"right"===e?g(e=>Math.min(e+o,i.length)):g(e=>Math.max(e-o,0))}}};return(0,o.useEffect)(()=>{let e=()=>{if(h.current){let e=u.current[m];if(e){let t=h.current.offsetWidth,n=Math.floor(t/e.offsetWidth),o=i.length-m;if(o>n?w(!0):w(!1),o<=n){let e=i.length-1,n=u.current[e];if(n){let e=n.offsetLeft-(t-n.offsetWidth);h.current.scrollLeft=e}}else 0===m&&(h.current.scrollLeft=0)}}};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[m,i.length]),(0,n.jsxs)(y,{children:[!t&&(0,n.jsx)(f.n,{children:(0,n.jsx)("h1",{children:k("shortVideosText")})}),(0,n.jsxs)("div",{style:{position:"relative",width:"100%",overflow:"hidden"},children:[(0,n.jsx)(P,{ref:h,style:{width:"100%"},children:i.map((e,t)=>(0,n.jsx)("div",{ref:e=>u.current[t]=e,children:(0,n.jsx)(b,{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:x,"aria-label":"Next videos",role:"button",children:A&&(0,n.jsx)("img",{alt:"Right arrow",src:"".concat(s.Cpe,"icons/arrow.svg"),width:24,height:24})}),r&&(0,n.jsx)(j,{video:r,setVideo:l})]})]})}},46764:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(62920);let o=e=>n.tuk.replace("#category",e)},93998:(e,t,i)=>{i.r(t),i.d(t,{default:()=>t0});var n={};i.r(n),i.d(n,{category:()=>em});var o=i(37876),a=i(14232),r=i(64320),s=i(28688),l=i(77328),d=i.n(l),c=i(56946),p=i(35402),m=i(26665),g=i(70780),h=i(29359),u=i(26875),x=i(83515),w=i(56047),A=i(5241),b=i(43446),f=i(53665),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 v=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 j=i(33884),P=i(69592),k=i(62920),C=i(95036),E=i(10025),S=i(52118),I=i(32051),N=i(62962),T=i(35972),_=i(72284);let L=e=>{let{heading:t,style:i,href:n}=e;return(0,o.jsx)("h3",{className:"Heading",style:i,children:n?(0,o.jsx)("a",{href:n,children:t}):(0,o.jsx)("span",{children:t})})};var B=i(19786),D=i(17074),R=i(89326);let M=e=>{let{label:t,blogs:i=[],highlightBg:n=!1,link:r}=e,{t:s}=(0,u.B)(),l=(0,D.A)(),d=(0,a.useRef)(null),c=(0,R.A)(d);return(0,o.jsxs)("section",{className:"Blogs ".concat(n?"highlight-bg":""),ref:d,children:[(0,o.jsx)(L,{heading:s(t)}),(0,o.jsx)("ul",{className:"BlogList",children:i.map(e=>{let{id:t,title:i,url:n,featured_image:a}=e;return(0,o.jsx)("li",{className:"BlogListItem",children:(0,o.jsxs)("a",{href:l?(0,B.Ay)("https://now.gg".concat(n)):"https://now.gg".concat(n),children:[(0,o.jsx)("div",{className:"BlogTile",children:c&&(0,o.jsx)("img",{src:(0,T.Vm)({src:a.medium_large,width:640,quality:80}),loading:"lazy",fetchPriority:"low",alt:""})}),(0,o.jsx)("div",{className:"BlogDetail",children:(0,o.jsx)(j.fI,{as:"h4",children:i})})]})},t)})}),(0,o.jsx)("a",{className:"MoreCta",id:"".concat(t,"Section"),href:l?(0,B.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 U=i(18847),G=i.n(U),O=i(63845),F=i(39267),z=i(65277),Q=i(86459),W=i(62352),H=i(87581);let Y=y.Ay.div.withConfig({componentId:"sc-f91b729-0"})(["min-height:70vh;display:flex;overflow:hidden;position:relative;"]),V=y.Ay.div.withConfig({componentId:"sc-f91b729-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=()=>{let{t:e}=(0,u.B)(),t=(0,D.A)();return(0,o.jsxs)(Y,{children:[(0,o.jsx)("img",{src:(0,T._w)(z.A),alt:"",fetchPriority:"low",className:"left-element"}),(0,o.jsx)("img",{src:(0,T._w)(Q.A),alt:"",fetchPriority:"low",className:"right-element"}),(0,o.jsxs)(V,{children:[(0,o.jsx)("img",{src:(0,T._w)(W.A),alt:"",fetchPriority:"low",width:"48"}),(0,o.jsx)(j.IT,{children:e("forbiddenTitle")}),(0,o.jsx)(j.M5,{children:e("forbiddenMsg")}),(0,o.jsx)(H.$,{onClick:()=>{window.location.href=t?(0,B.Ay)("https://now.gg"):"https://now.gg"},variant:"primary",text:e("goToHome")})]})]})};var q=i(26066),X=i(59319),$=i(23588),J=i(7631),K=i(15039),ee=i.n(K);let et=e=>{let{gameList:t,source:i,element:n,chunkSize:a}=e,r=(0,D.A)();return(0,o.jsx)("section",{className:"OtherGames",children:(0,o.jsx)("div",{className:"OtherGamesList",style:{"--size":"calc((100% - ".concat(24*(a-1),"px) / ").concat(a,")")},children:null==t?void 0:t.slice(0,a).map(e=>{let{appName:t,media:n,appDeveloperInfo:s,appPageUrl:l,packageName:d}=e||{};return(0,o.jsx)("div",{className:ee()("SingleGameCardWrap",{"six-items":6===a}),children:(0,o.jsxs)("a",{className:"SingleGameCardLink",href:r?(0,B.iR)(l,i):l,children:[(0,o.jsx)("div",{className:"GameImgWrap",children:(0,o.jsx)(J.CY,{src:null==n?void 0:n.tile,alt:"Play ".concat(t," online on now.gg"),width:256,quality:80,sizes:"(max-width: 1000px) 256px, 256px",loading:"lazy"})}),(0,o.jsxs)("div",{style:{marginTop:8},children:[(0,o.jsx)("p",{className:"BodySRegular",children:t}),(0,o.jsx)("p",{className:"BodyMRegular",children:null==s?void 0:s.name})]})]})},e.appId)})})})},ei=e=>{let{isTransparentBg:t,heading:i,ntmSource:n="ApPopularGames",gameList:r,isHighlightedGamesDisabled:s,pathname:l,ssrOrigin:d,isMobile:c,id:p}=e,{gameGridList:m,otherGameList:g}=(0,a.useMemo)(()=>({gameGridList:null==r?void 0:r.slice(0,18),otherGameList:s?[]:null==r?void 0:r.slice(18,24)}),[r,s]),h=(0,a.useRef)(null),[u,x]=(0,a.useState)({normal:c?9:18,highlighted:6});(0,a.useEffect)(()=>{h.current&&new ResizeObserver(e=>{let t=e[0].contentRect.width+40;t>1200?x(Object.assign(Object.assign({},u),{highlighted:6,normal:18})):t>992?x(Object.assign(Object.assign({},u),{highlighted:5,normal:16})):t>768?x(Object.assign(Object.assign({},u),{highlighted:4,normal:12})):t>576?x(Object.assign(Object.assign({},u),{highlighted:3,normal:10})):t>512?x(Object.assign(Object.assign({},u),{highlighted:3,normal:8})):x(Object.assign(Object.assign({},u),{highlighted:c?6:3,normal:c?9:8}))}).observe(h.current)},[c]);let w=(0,D.A)(),A="https://".concat(d).concat(l);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("section",{ref:h,className:ee()("ComponentMainDiv",{transparent:t}),children:(0,o.jsxs)("div",{className:"page-content",children:[(0,o.jsx)(L,{heading:i,href:w?(0,B.iR)(A):A}),(0,o.jsx)("div",{className:"GameListWrap",children:(0,o.jsx)($.A,{ntmSource:n,isAppPage:!0,element:"PopularGame",tileType:"default",gameList:m.slice(0,u.normal),source:"",type:"link",id:p,isMobile:c})})]})}),(null==g?void 0:g.length)>0&&(0,o.jsx)(et,{gameList:g,source:n,element:"PopularGame",chunkSize:u.highlighted})]})};var en=i(13483);let eo=e=>{let{gamesList:t,ssrOrigin:i,selectedGenere:n,isMobile:r}=e,{t:s}=(0,u.B)(),l=(0,a.useMemo)(()=>{var e,n;let o=[];for(let a=0;a<(null==t?void 0:t.length);++a){let{nowgg_id:r,name:s,rating:l,packageName:d,genre:c,media:p,developers_details:m,slug:g}=t[a],{name:h,slug:u}=m||{};o.push({appId:r,appName:s,appRating:Number(l),playUrl:"https://".concat(i,"/play/").concat(u,"/").concat(r,"/").concat(g,".html"),appPageUrl:"https://".concat(i,"/apps/").concat(u,"/").concat(r,"/").concat(g,".html"),packageName:d,appGenre:c[0],appType:"Android",media:{tile:"media",icon:(null==(e=null==p?void 0:p.desktop)?void 0:e.icon)||(null==(n=null==p?void 0:p.mobile)?void 0:n.icon)||""},appDeveloperInfo:{name:h,developerSlug:u},appSlug:g})}return o},[t,i]),{slug:d,name:c}=n;return(0,o.jsx)(ei,{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 ea=i(62502),er=i(94464),es=i(37686),el=i(78975),ed=i(55022),ec=i(8890),ep=i(46764),em="JWOCEUbopYPlDB10";let eg=e=>{let{listId:t=""}=e,i=(0,D.A)(),r=(0,a.useRef)(null),{t:s}=(0,u.B)(),l=(0,R.A)(r);return(0,o.jsxs)("section",{className:"Section",ref:r,children:[(0,o.jsx)("h2",{className:"SectionHeading",id:"categories",children:s("exploreByCategory")}),(0,o.jsx)("ul",{id:t,className:"CatList",children:ec.Ay.map(e=>{var t;return(0,o.jsx)("li",{children:(0,o.jsxs)("a",{className:(null==n?void 0:em)||"",href:i?(0,B.Ay)((0,ep.A)(e.slug)):(0,ep.A)(e.slug),children:[(0,o.jsx)("img",{loading:"lazy",fetchPriority:"low",src:l?e.icon.thumbnail||"https://cms-cdn.now.gg/cms-media/2023/06/cat-ico.jpg":void 0,alt:"Play ".concat(e.name," on now.gg"),width:33,height:33,style:(null==(t=e.icon)?void 0:t.thumbnail)?{}:{borderRadius:"50%",padding:3}}),(0,o.jsx)("span",{children:e.name})]})},e.id)})}),(0,o.jsx)("div",{className:"SepContainer",children:(0,o.jsx)("a",{className:"MoreCta",id:"showMoreCategories",href:i?(0,B.Ay)(k.jti):k.jti,children:s("showMore")})})]})};var eh=i(79340),eu=i(29531),ex=i(29822);let ew=(0,y.AH)(["width:auto;background:transparent;border:0px;overflow:hidden;"]),eA=y.Ay.div.withConfig({componentId:"sc-aee88232-0"})(["padding-top:10px"]),eb=()=>{let e=(0,r.wA)();return(0,a.useEffect)(()=>()=>{e({type:ex.A.UPDATE_REWARDED_AD_STATUS,payload:{isRewardedAdPlaying:!1}})},[]),(0,o.jsx)(eh.A,{fullView:!(0,w.xl)(),toggle:!0,modalStyles:ew,contentStyle:{margin:"0px"},children:(0,o.jsx)(eA,{children:(0,o.jsx)(eu.A,{isCloseButtonEnabled:!0})})})};var ef=i(63504),ey=i(84165),ev=i(99397);let ej={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(67768);let ek=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}),eC=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}),eE=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;"]),eS=y.Ay.p.withConfig({componentId:"sc-4e159119-3"})(["margin-bottom:20px;font-size:16px;line-height:120%;"]),eI=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}),eN=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}),eT=y.Ay.div.withConfig({componentId:"sc-4e159119-6"})(["display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center;gap:20px;"]),e_=y.Ay.div.withConfig({componentId:"sc-4e159119-7"})(["display:flex;width:100%;flex-direction:column;justify-content:center;"]),eL=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}),eB=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}),eR=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 eM=i(78734);let eU=()=>{let{t:e}=(0,u.B)(),t=(0,r.wA)();return(0,o.jsx)(eN,{children:(0,o.jsxs)(eT,{children:[(0,o.jsx)("img",{src:(0,T._w)(eM.A),width:128,alt:""}),(0,o.jsxs)(e_,{children:[(0,o.jsxs)(eL,{children:[(0,o.jsx)(j.IT,{className:"title",children:e("yourNowBuxWillBeLost")}),(0,o.jsx)(j.Dp,{className:"description",children:e("nowBuxConfirmationModalDescription")})]}),(0,o.jsxs)(eB,{children:[(0,o.jsx)(H.$,{variant:"secondary",size:"large",text:e("confirmDiscard"),onClick:()=>{t({type:g.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1,showNowBuxToastNotification:!0}})}}),(0,o.jsx)(H.$,{variant:"primary",size:"large",text:e("keepMyNowBux"),onClick:()=>{t({type:C.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:k.G$3.nowBuxCreditModal}}),t({type:g.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1,showNowBuxToastNotification:!1}})}})]})]})]})})},eG={isLoading:!0,spinnerWidth:20,spinnerHeight:20},eO=()=>{let{t:e}=(0,u.B)(),t=(0,r.wA)(),i=(0,r.d4)(e=>e.play.nowbuxCreditLimitExceeded),n=(0,r.d4)(e=>e.play.isUserCreditEligible),s=(0,r.d4)(e=>e.auth.isLoggedIn),[l,d]=(0,a.useState)(!1),[c,p]=(0,a.useState)(!1),m=(0,a.useCallback)(()=>{t({type:g.A.UPDATE_PLAY_STATE,payload:{showNowBuxCreditedModal:!1}})},[t,s]),h=(0,a.useCallback)(()=>{p(!0)},[t,s]),x=(0,a.useCallback)(()=>{if(!s)return void(t({type:C.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:k.G$3.nowBuxCreditModal}}),m());d(!0),(0,A.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:""}),(0,eP.$B)(),t({type:ex.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0,rewardedAdFirstInfoPopup:!0,rewardedAdFirst:!0,rewardedAdSecond:!1}}),m()},[]);return((0,a.useEffect)(()=>{t({type:g.A.UPDATE_PLAY_STATE,payload:{showNowBuxToastNotification:!1}})},[]),c)?(0,o.jsx)(ek,{children:(0,o.jsx)(eU,{})}):(0,o.jsx)(ek,{children:(0,o.jsxs)(eC,{children:[(0,o.jsx)(ey.U,{className:"tool-tip credit-modal",onClick:m,children:(0,o.jsx)(ev.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,o.jsx)("img",{className:"now-bux",src:(0,T._w)(ej),alt:""}),n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eE,{children:e(s?"1Nowbux":"1NowbuxEarned")}),(0,o.jsx)(eS,{children:e(s?"successfullyAddedToBalance":"claimItByLogin")})]}),i&&(0,o.jsx)(eI,{children:e("limitReachMsg")}),!i&&(0,o.jsx)(H.$,{...l?eG:{},variant:"primary",size:"large",text:l?"":e(s?"watchAnotherAd":"loginToClaim"),onClick:x}),(0,o.jsx)(H.$,{variant:"primaryOutline",size:"large",text:e(s?i?"okayGotIt":"skipForNow":"discardNowBux"),onClick:s?m:h})]})})};var eF=i(72876);let ez={src:"/_next/static/media/nowpremium.d7623b19.webp",height:500,width:500,blurWidth:0,blurHeight:0};var eQ=i(47204),eW=i(16801);let eH={src:"/_next/static/media/announcement.d6913ef3.webp",height:81,width:87,blurDataURL:"data:image/webp;base64,UklGRpAAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSDQAAAABYBPZtpND6uhxkjNO6LMDNMUWAUhAAC64FWiIiOQ3OTyop+VVA7ckneBf7aMcnBl3dPkCVlA4IDYAAACwAQCdASoIAAcAAkA4JaQAD4ARc+MAAPzqmKSYdm5XZZfTSPMl6sfGUA7eDZTBud0VWUTbgAA=",blurWidth:8,blurHeight:7};var eY=i(53154),eV=i(4858);let eZ=(0,y.i7)(["0%{padding:12px;}50%{padding:6px;}100%{padding:12px;}"]),eq=(0,y.i7)(["0%{padding:8px;}50%{padding:4px;}100%{padding:8px;}"]),eX=(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;}"]),e$=(0,y.i7)(["0%{top:200px;opacity:0;}85%{top:-30px;opacity:1;}100%{top:0px;opacity:1;}"]),eJ=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}),eK=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},e$),e0=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}),e1=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}}}"]),e2=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(k.Cpe,"assets/images/prime/subscription-bg.webp')"),e=>{let{theme:t}=e;return t.border.base},eX,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}),e4=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:",";}}}"],eZ,eq,eq),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}),e3=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}),e6=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}),e8=()=>{let e=(0,r.wA)(),{t}=(0,u.B)(),i=!(0,w.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,c]=(0,a.useState)(i&&((!s||l)&&window.innerHeighte.play.minPassData),h=(0,r.d4)(e=>e.play.isSubscriptionExpiredInMiddleOfGame),x=(0,a.useMemo)(w.ZA,[]),b=(0,a.useCallback)(()=>{setTimeout(()=>{c(i&&((!s||l)&&window.innerHeight{b()},[n,s,l]),(0,a.useEffect)(()=>((0,A.sx)("PlayExperienceScreenViewed"),window.addEventListener("orientationchange",b),window.addEventListener("resize",b),()=>{window.removeEventListener("orientationchange",b),window.removeEventListener("resize",b)}),[]),(0,o.jsxs)(eJ,{className:"\n ".concat(i?"mobile":"","\n ").concat(d?"landscape":"portrait","\n "),children:[(0,o.jsx)("link",{href:"https://fonts.googleapis.com/css?family=Bricolage+Grotesque:wght@400;500;600;700&display=swap",rel:"stylesheet"}),(0,o.jsxs)(eK,{children:[(0,o.jsx)(e0,{children:t("pickYourPlayStyle")}),(0,o.jsx)(ey.U,{className:"tool-tip",onClick:()=>{if(h)return void window.location.reload();e({type:g.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}})},children:(0,o.jsx)(ev.A,{name:"cross-thin",size:16,id:"login-close-icon"})}),(0,o.jsxs)(e1,{children:[!x&&(0,o.jsxs)(e2,{className:"reward-ad",children:[(0,o.jsx)("img",{className:"premium-icon plan-logo",src:(0,T._w)(ez),alt:"premium content"}),(0,o.jsx)(e5,{children:t("vipMiniPass")}),(0,o.jsx)(e3,{children:t("timeMinsAdFree",{min:(0,eV.Jo)()})}),(0,o.jsxs)(H.$,{shadow:!1,variant:"primaryOutline",size:"large",onClick:()=>{(0,A.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"PlayExperienceScreen"}),(0,eP.$B)(),e({type:ex.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0,rewardedAdFirstInfoPopup:!0,rewardedAdFirst:!0,rewardedAdSecond:!1}}),e({type:g.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}})},children:[(0,o.jsx)("img",{className:"play-icon",src:(0,T._w)(eY.A),alt:"play icon"}),(0,o.jsx)("span",{children:t("watchAd")})]}),(0,o.jsx)(e6,{children:t("noPaymentRequired")})]}),(0,o.jsxs)(e2,{className:"premium-subscription",children:[(0,o.jsx)(e4,{className:"plan-logo",children:(0,o.jsx)("img",{className:"premium-symbol-icon",src:(0,T._w)(eQ.A),alt:"premium symbol"})}),(0,o.jsx)("img",{className:"premium-text-logo",src:(0,T._w)(eW.A),alt:"premium text logo"}),(0,o.jsx)(e3,{children:t("playWithoutLimits2")}),(0,o.jsx)(H.$,{shadow:!1,onClick:()=>{e({type:g.A.UPDATE_PLAY_STATE,payload:{showMultiSubscriptionModal:!1}}),(0,w.wo)(k.RmT.NowPremiumPlanScreen)},variant:"primary",size:"large",color:"#ff4081",children:t("buyNow")}),(0,o.jsx)(e6,{children:"".concat(t("startsAt")," ").concat(m.symbol).concat(m.value)})]}),(0,o.jsxs)(e2,{className:"free-access",children:[(0,o.jsx)("img",{className:"announcement-img plan-logo",src:(0,T._w)(eH),alt:"announcement"}),(0,o.jsx)(e5,{children:t("freeAccess")}),(0,o.jsx)(e3,{children:t("limitedExperience")}),(0,o.jsx)(H.$,{shadow:!1,size:"large",disabled:!0,children:t("playNow")}),(0,o.jsx)(e6,{children:t("notAvailableForThisGame")})]})]})]})]})};var e7=i(50115),e9=i(42920),te=i(79536);let tt=()=>{let{t:e}=(0,u.B)(),t=(0,r.wA)();return(0,o.jsxs)(eD,{children:[(0,o.jsx)(j.E2,{className:"message",children:e("earnedNowbuxDiscarded")}),(0,o.jsx)(eR,{onClick:()=>{t({type:g.A.UPDATE_PLAY_STATE,payload:{showNowBuxToastNotification:!1}})},"aria-label":"Close notification",tabIndex:0,children:(0,o.jsx)("img",{className:"close-icon",src:(0,T._w)(te.A),width:16,alt:""})})]})},ti={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},tn={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(61194);let ta=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}),tr=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}),ts=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;}}}"]),tl=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}),td=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}),tc=()=>{let{t:e}=(0,u.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,w.xl)(),[d,c]=(0,a.useState)(l&&((!n||s)&&window.innerHeight{setTimeout(()=>{c(l&&((!n||s)&&window.innerHeight{m()},[i,n,s]),(0,a.useEffect)(()=>(window.addEventListener("orientationchange",m),window.addEventListener("resize",m),()=>{window.removeEventListener("orientationchange",m),window.removeEventListener("resize",m)}),[]),(0,o.jsx)(ta,{className:"\n ".concat(l?"mobile":"desktop","\n ").concat(d?"landscape":"portrait","\n "),children:(0,o.jsxs)(tr,{children:[(0,o.jsxs)(ts,{children:[l&&d?(0,o.jsx)("img",{className:"bg-img",src:(0,T._w)(tn),alt:""}):(0,o.jsx)("img",{className:"bg-img",src:(0,T._w)(ti),alt:""}),(0,o.jsx)("img",{className:"now-bux-img",src:(0,T._w)(to.A),alt:""}),(0,o.jsxs)("div",{className:"logo-text-wrapper",children:[(0,o.jsx)("img",{height:"22px",className:"now-prime-text",src:(0,T._w)(eW.A),alt:""}),(0,o.jsx)(tl,{children:e("expired")})]})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)(j.Dp,{className:"description",children:e("expiredModalDescription")}),(0,o.jsxs)("div",{className:"btn-container",children:[(0,o.jsx)(H.$,{text:e("renewNow"),variant:"primary",size:"large",target:"_blank",onClick:()=>{t({type:g.A.UPDATE_PLAY_STATE,payload:{showSubscriptionExpiredModal:!1}}),(0,w.wo)(k.RmT.SubscriptionExpiredModal)}}),(0,o.jsx)(H.$,{disabled:(0,w.oN)(),text:e("continueWithAds"),variant:"secondaryOutline",size:"large",target:"_blank",onClick:()=>{t({type:g.A.UPDATE_PLAY_STATE,payload:{showSubscriptionExpiredModal:!1}})},className:"secondary-outline"})]})]})]})})};var tp=i(57544),tm=i(10536);let tg={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},th=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;"]),tx=y.Ay.img.withConfig({componentId:"sc-3b9fc896-2"})(["position:absolute;top:0;left:0;height:150px;width:100%;z-index:-1;"]),tw=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;}"]),tA=y.Ay.div.withConfig({componentId:"sc-3b9fc896-4"})(["text-align:center;margin-top:24px;"]),tb=(0,y.Ay)(j.iN).attrs({as:"h3"}).withConfig({componentId:"sc-3b9fc896-5"})(["line-height:130%;color:",";"],e=>{let{theme:t}=e;return t.colors.white}),tf=(0,y.Ay)(j.M5).withConfig({componentId:"sc-3b9fc896-6"})(["line-height:130%;color:",";margin-top:2px;"],e=>{let{theme:t}=e;return t.colors.white70}),ty=y.Ay.div.withConfig({componentId:"sc-3b9fc896-7"})(["margin-top:24px;"]),tv=()=>{var e,t,i;let{t:n}=(0,u.B)(),s=(0,r.wA)();return(0,a.useEffect)(()=>{var e;let t=localStorage.getItem(k.eYt),i=0;t&&(i=Number(null==(e=t.split(","))?void 0:e[1])||0),i+=1,localStorage.setItem(k.eYt,"".concat(new Date().toISOString(),",").concat(i))},[]),(0,o.jsx)(tm.A,{style:{padding:"0",border:"none",backdropFilter:"none",width:"auto",background:"transparent"},contentStyle:{margin:"0"},children:(0,o.jsx)(th,{children:(0,o.jsxs)(tu,{children:[(0,o.jsx)(tx,{src:(0,T._w)(tg),alt:""}),(0,o.jsx)(tw,{children:(0,o.jsx)(J.Ay,{src:(0,T.Vm)({src:null==(t=null==(e=null===h.Ay||void 0===h.Ay?void 0:h.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===h.Ay||void 0===h.Ay?void 0:h.Ay.appInfo)?void 0:i.appName}),height:100,id:"ng-unified-app-logo"})}),(0,o.jsxs)(tA,{children:[(0,o.jsx)(tb,{children:n("adFreeModeActivate")}),(0,o.jsx)(tf,{children:n("enjoyTimeUniterruptedMin",{timeInMin:(0,eV.Jo)()})})]}),(0,o.jsx)(ty,{children:(0,o.jsx)(H.$,{onClick:()=>{s({type:g.A.UPDATE_PLAY_STATE,payload:{isAddFreeModePopupVisible:!1}})},variant:"primary",size:"xlarge",style:{width:"100%"},children:n("letsGo!")})})]})})})};var tj=i(18808),tP=i(9097),tk=i(37110),tC=i(85938),tE=i(83081),tS=i(75998),tI=i.n(tS);let tN={mac:"mac",windows:"windows",ios:"ios",android:"android",chrome_os:"chrome_os",unix:"unix",beos:"beos",amigaos:"amigaos",linux:"linux",unknown:"unknown"},tT=tI()(()=>{try{return navigator.userAgent.toLowerCase().split(k.H$Y)[0]}catch(e){return""}}),t_=tI()(()=>{try{let e=tT();return/\bcros\b/i.test(e)}catch(e){return!1}}),tL=tI()(()=>{try{let e=tT();return/\bX11\b/i.test(e)&&navigator.maxTouchPoints>=5&&!t_()}catch(e){return!1}}),tB=tI()(()=>{try{let e=tT(),t=/macintosh|mac os x/i.test(e),i=navigator.maxTouchPoints>2;if(t&&i)return tN.ios;if(/\bwindows nt\b|\bwindows\b/i.test(e))return tN.windows;if(/iphone|ipad|ipod/i.test(e))return tN.ios;if(t&&!/like mac os x/i.test(e))return tN.mac;if(/\bandroid\b/i.test(e)||tL())return tN.android;if(t_())return tN.chrome_os;if(/\blinux\b/i.test(e)&&!/\bandroid\b/i.test(e))return tN.linux;if(/\bx11\b/i.test(e)&&!(/\bwindows\b/i.test(e)||t||/\blinux\b/i.test(e))&&/(i\d86|amd64|x86_64)/i.test(e))return tN.unix;if(/\bbeos\b/i.test(e))return tN.beos;if(/\bamiga\b/i.test(e))return tN.amigaos;return tN.unknown}catch(e){return tN.unknown}}),tD=tI()(()=>{try{return/macintosh/i.test(tT())}catch(e){return!1}}),tR=tI()(()=>{try{return/smart[- ]?tv|smarttv|hbbtv|appletv|googletv|tizen|webos|netcast|viera|chromecast|roku/i.test(tT())}catch(e){return!1}}),tM=tI()(()=>{try{return/iphone|ipod|ipad|android|blackberry|iemobile|opera mini|windows phone|mobile/i.test(tT())&&!tR()}catch(e){return!1}}),tU=tI()(()=>{try{let e=tT();if(/ipad/i.test(e)&&!tR()||tD()&&navigator.maxTouchPoints>2&&!tR())return!0;return!1}catch(e){return!1}}),tG=tI()(()=>{try{if(tD()&&navigator.maxTouchPoints>2&&!tR())return!0;return!1}catch(e){return!1}}),tO=tI()(()=>{try{if(navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&-1!=="MacIntel".indexOf(navigator.platform))return!0;return!1}catch(e){return!1}}),tF=tI()(()=>{try{if(tU())return!0;return(/(tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(tT())||tL())&&!tR()}catch(e){return!1}}),tz=tI()(()=>{try{return tR()||!(tM()||tF())&&tT().indexOf("jiopages")>-1}catch(e){return!1}}),tQ=tI()(()=>{try{let e=tB();if(tF()&&!tz())return"tablet";if(tM()&&!tz())return"smartphone";let t=[tN.mac,tN.windows,tN.chrome_os,tN.unix,tN.beos,tN.amigaos,tN.linux];if(-1!==t.indexOf(e)&&!tz())return"desktop";return"other"}catch(e){return tN.unknown}}),tW=tI()(()=>{var e,t,i,n;try{return{new_feDeviceType:tQ(),new_feOsName:tB(),new_screenWidth:null==(e=null==window?void 0:window.screen)?void 0:e.width,new_screenHeight:null==(t=null==window?void 0:window.screen)?void 0:t.height,new_screenAvailWidth:null==(i=null==window?void 0:window.screen)?void 0:i.availWidth,new_screenAvailHeight:null==(n=null==window?void 0:window.screen)?void 0:n.availHeight,new_innerWidth:null==window?void 0:window.innerWidth,new_innerHeight:null==window?void 0:window.innerHeight,old_ipad:tO(),new_isIpad2:tG(),new_isIpad:tU()}}catch(e){return{new_feDeviceType:"unknown",new_feOsName:tN.unknown,new_screenWidth:0,new_screenHeight:0,new_screenAvailWidth:0,new_screenAvailHeight:0,new_innerWidth:0,new_innerHeight:0,old_ipad:!1,new_isIpad2:!1,new_isIpad:!1}}});var tH=i(98776),tY=function(e,t,i,n){return new(i||(i=Promise))(function(o,a){function r(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,s)}l((n=n.apply(e,t||[])).next())})};let tV=G()(()=>i.e(7641).then(i.bind(i,27641)),{loadableGenerated:{webpack:()=>[27641]},ssr:!1}),tZ=G()(()=>Promise.all([i.e(1869),i.e(3636),i.e(6248),i.e(5528),i.e(7058)]).then(i.bind(i,57058)),{loadableGenerated:{webpack:()=>[57058]}}),tq=G()(()=>i.e(2953).then(i.bind(i,52953)),{loadableGenerated:{webpack:()=>[52953]}}),tX=G()(()=>Promise.resolve().then(i.bind(i,98943)),{loadableGenerated:{webpack:()=>[98943]}}),t$=G()(()=>Promise.resolve().then(i.bind(i,9147)),{loadableGenerated:{webpack:()=>[9147]}}),tJ=G()(()=>i.e(2977).then(i.bind(i,82977)),{loadableGenerated:{webpack:()=>[82977]}}),tK=e=>{(0,A.sx)("GameAutoLaunched",{reason:e},void 0,b.p.APP_PAGE)},t0=e=>{var t,i,n,l;let{appInfo:f,ngNcmHost:y,errorStatus:D,features:R,authUseThirdPartyFlow:U,prefix:G,authRedirectionUrl:z,playDomain:Q,serviceStatus:W,appPageSpecificData:H,ssrOrigin:Y,isCfMobile:V,isCfDesktop:$,isProdEnv:J,countryCode:K,errorStatusCode:ee,isQuancastPopupSupportByCountry:et,thirdPartyAuthUrl:ec,ssrGames:ep,isMultiPanelAdsEnabled:em,isMultiSubscriptionFlow:eh,countryFooterLogo:eu,authServiceHost:ex,pollingRate:ew,ssrEvar:eA,popularGames:ey}=e,{t:ev}=(0,u.B)(),{isNowGGURL:ej,adsEnabled:ek}=(0,_.A)({appInfo:f,ngNcmHost:y,features:R,authUseThirdPartyFlow:U,prefix:G,authRedirectionUrl:z,serviceStatus:W,countryCode:K,isQuancastPopupSupportByCountry:et,pageType:"appPage",thirdPartyAuthUrl:ec,isMultiPanelAdsEnabled:em,isMultiSubscriptionFlow:eh,countryFooterLogo:eu,pollingRate:ew,ssrEvar:eA}),eC=Object.assign({},h.Ay),[eE,eS]=(0,a.useState)(!1),eI=(0,a.useRef)(null),[eN,eT]=(0,a.useState)({isLoggedIn:!1,profileInfo:null}),e_=(0,a.useRef)(!1),[eL,eB]=(0,a.useState)(k.ceq.PENDING),[,eD]=(0,I.A)(D?"404 | now.gg":""),[eR,eM]=(0,a.useState)(ep),{packageName:eU}=f,eG="now.gg"===Q,ez=(0,r.wA)(),{videos:eQ,appPackageInfo:eW}=H||{},eH=(0,r.d4)(e=>e.auth.showGoogleOneTap),eY=(0,r.d4)(e=>e.play.isGamePlayerOnFromAppPage),eZ=(0,r.d4)(e=>e.play.error||W),eq=(0,r.d4)(e=>e.play.showAboutUs),eX=(0,r.d4)(e=>e.ads.adsEnded),e$=(0,r.d4)(e=>e.play.isFullscreen),eJ=(0,r.d4)(e=>e.support.showSupport),eK=(0,r.d4)(e=>e.auth.showLogin),e0=(0,r.d4)(e=>e.auth.isLoggedIn),e1=(0,r.d4)(e=>e.play.isPlayerLoaded),e2=(0,r.d4)(e=>e.auth.showResetPassword),[e4,e5]=(0,a.useState)([]),e3=(0,a.useRef)(null),[e6,te]=(0,a.useState)(!1),ti=(0,r.d4)(e=>e.play.showApkFinder),tn=(0,r.d4)(e=>e.auth.isLoginResolved),to=(0,r.d4)(e=>e.play.isPlayPageMode),ta=(0,r.d4)(e=>e.ads.rewardedAdFirstInfoPopup),tr=(0,r.d4)(e=>e.play.isAppPageLoginPopupEnabled),ts=(0,r.d4)(e=>e.play.showSubscriptionModal),tl=(0,r.d4)(e=>e.play.showSubscriptionExpiredModal),td=(0,r.d4)(e=>e.play.showSubscriptionEnabledModal),tm=(0,r.d4)(e=>e.play.subscriptionFlowSource),tg=(0,r.d4)(e=>e.play.showMultiSubscriptionModal),th=(0,r.d4)(e=>e.play.autoLaunchByMultiSubscriptionModal),tu=(0,r.d4)(e=>e.play.showNowBuxCreditedModal),tx=(0,r.d4)(e=>e.play.showNowBuxToastNotification),tw=(0,r.d4)(e=>e.play.nowPremiumSubscriptionActive),tA=(0,r.d4)(e=>e.play.isCreatePlayUserPremiumResolved),tb=(0,r.d4)(e=>e.play.isAddFreeModePopupVisible),tf=(0,r.d4)(e=>e.play.adBlockerMethodType),ty=(0,r.d4)(e=>e.ads.isRewardedAdPlaying),tS=(0,r.d4)(e=>e.play.isWsupScriptEnabled),tI=(0,r.d4)(e=>e.play.proxyUserType),tN=(0,a.useRef)(!1),{webpage_schema:tT,faq_schema:t_,title:tL,meta_description:tB,meta_title:tD,media:tR,genre:tM,rating:tU,ratingCount:tG,overview_description:tO,overview_title:tF,related_articles:tz,roundup_articles:tQ,genrewise_games:t0}=(null==eW?void 0:eW.data)||{},{language:t1}=(null==eW?void 0:eW.meta)||{},t2=(null==tM?void 0:tM[0])||{},t4="https://".concat(Y),t5=(0,w.OP)(eW,Y),t3=null==(t=null==tR?void 0:tR.mobile)?void 0:t.ogimage,t6=(0,a.useMemo)(()=>{var e;return{"@context":"https://schema.org","@type":"MobileApplication",name:tL,description:tB,url:t5,image:null==(e=null==tR?void 0:tR.mobile)?void 0:e.banner,operatingSystem:"Windows, Mac, Android, iOS",applicationCategory:"GameApplication, MultimediaApplication",genre:null==t2?void 0:t2.name,aggregateRating:{"@type":"AggregateRating",ratingValue:tU,ratingCount:tG},author:{"@type":"Organization",name:"now.gg"},offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}}},[null==(i=null==tR?void 0:tR.mobile)?void 0:i.banner,tB,t5,tU,tG,null==t2?void 0:t2.name,tL]),t8=(0,a.useMemo)(()=>[{"@type":"ListItem",position:1,name:ev("home"),item:t4},{"@type":"ListItem",position:2,name:ev("games"),item:"https:/now.gg/games.html"},{"@type":"ListItem",position:3,name:ev("casualGames"),item:"https:/now.gg/games/".concat(null==t2?void 0:t2.slug,".html")},{"@type":"ListItem",position:4,name:tL,item:t5}],[t4,t5,null==t2?void 0:t2.slug,tL]),t7=(0,a.useMemo)(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t8}),[t8]);(0,a.useEffect)(()=>{let e=(0,eV.f_)((0,eV.Dh)());(0,w.LD)()&&!tw&&tA&&!(0,eV.Ed)()&&tf===tj.Y.NONE&&eY&&(0,tP.Gt)()&&!(0,w.ZA)()&&(e<=0&&((0,A.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"initialForcedRewardedAds"}),(0,eP.$B)()),(0,eV.mu)(!0))},[tf,eY,tA,tw]),(0,a.useEffect)(()=>{(0,w.LD)()&&(0,tP.Gt)()&&ty&&tI===tk.to.PROXY&&(0,eV.vf)()},[tI,ty]);let t9=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return tY(void 0,void 0,void 0,function*(){e_.current=!0,(0,h.tl)()&&(0,h.$$)();let t=f.playPageHost;if(t&&"now.gg"!==t&&"stagingngg.net"!==t&&t!==window.location.hostname){let e=(0,B.Ay)(window.location.href.replace(window.location.hostname,t));"now.us"===t||(e=e.replace(".html","").replace("/apps/","/play/")),window.location.href=e;return}e&&(yield(0,x.Ay)(!0)),(0,w.eG)({behavior:"smooth"}),eB(k.ceq.LOADED),(0,w.ZA)()&&ez({type:g.A.HIDE_ADS_FOR_PROXY_USER,payload:{hideAdsForProxyUser:!0}}),ez({type:g.A.UPDATE_PLAY_STATE,payload:{isGamePlayerOnFromAppPage:!0}})})};(0,a.useEffect)(()=>{if(th){var e;e="MultiSubscriptionModalSuccess_".concat(th),(0,A.sx)("GameAutoLaunchedPostAction",{reason:e},void 0,b.p.APP_PAGE),e_.current||t9()}},[th]),(0,a.useEffect)(()=>{if((0,A.sx)("RenderComplete",Object.assign({isGamePlayerOnFromAppPage:eY},tW()),void 0,b.p.APP_PAGE),(0,e7.q)(f.requireHomepageLaunch))return void ez({type:g.A.SET_ERROR,payload:{error:p.wD.FailureAppNotAvailable,errorCode:"2103",errorDescription:"error: cannot launch"}});(0,w._o)()||ez({type:g.A.SET_APP_PAGE_LOGIN_POPUP_ENABLED,payload:{isAppPageLoginPopupEnabled:!0}}),(0,e9.kj)()&&ez({type:g.A.UPDATE_PLAY_PAGE_MODE,payload:{isPlayPageMode:!0,isEmbeddedFrame:!0}}),tY(void 0,void 0,void 0,function*(){(0,h.gA)().then(e=>{let{gamesList:t}=e;eM(t)}).catch(console.log)}),(0,eF.A)();let e=(0,A.b7)(!1,b.p.APP_PAGE);te((0,w.Fr)()),eS(!0);try{let e=(0,x.VM)();e?eT({isLoggedIn:!0,profileInfo:e}):eT({isLoggedIn:!1,profileInfo:null})}catch(e){}let{utmCampaign:t}=(0,h.Zl)();"ropro"===t.toLowerCase()&&eD&&eD("RoPro Cloud Play via now.gg"),"Html"===h.Ay.appInfo.appType&&eD&&eD("Play ".concat(h.Ay.appInfo.appName," Online"));let i=sessionStorage.getItem(E.CB);i&&parseInt(i,10)&&ez({type:g.A.SET_ROBLOX_EXPERIENCE_ID,payload:{robloxExperienceId:parseInt(i,10),currentRobloxExperienceTimer:Date.now()}}),localStorage.removeItem("A/B-experiment::play-page"),sessionStorage.removeItem("isNewUserForExperiment"),ez({type:g.A.UPDATE_ORIENTATION,payload:{orientation:f.initialOrientation}}),(0,S.a$)();let n=(0,x.f0)();return ez({type:C.A.GUEST_FLOW,payload:{guestFlow:n}}),n&&ez({type:C.A.SET_LOGGED_IN,payload:{isLoggedIn:!1,showPreloader:!1}}),()=>{eI.current&&clearTimeout(eI.current),clearInterval(e)}},[]),(0,a.useEffect)(()=>{if((0,h.tl)()){if((0,w.oN)()){if(!tA)return;else if(!tw){(0,h.$$)(),(0,w.wo)(k.RmT.NowPremiumPlanScreen);return}}e0?(t9(0,!0),tK("AfterRequiredLoggedIn")):(tn&&!e0||eK)&&(0,h.$$)()}},[e0,tn,eK,tw,tA]);let ie=(0,w.oN)()&&tA&&tw&&!(0,w.be)();(0,a.useEffect)(()=>{let e=(0,h.Rs)();if((0,w.oN)()&&!ie){(null==tN?void 0:tN.current)||(tN.current=!0,(0,x.Ay)(!0));return}try{to?(t9(0,!0),tK("PlayPageMode")):(0,S.xx)()?(t9(0,!0),tK("PWA")):e?((0,h.VP)(),t9(0,!0),tK("PlayBtnAlreadyClicked")):(0,w.BP)(h.Ay.appInfo.appId)?(t9(0,!0),tK("AptoideSearchOrSameOrigin")):(0,w.oN)()&&tN.current||(tN.current=!0,(0,x.Ay)(!0))}catch(e){(0,X.Ay)("App Page Rendering Error",{e})}},[to,ie]),(0,a.useEffect)(()=>{tn&&(0,w.mP)()&&(0,w.X_)()},[tn]),(0,a.useEffect)(()=>{e0&&(0,w.mP)()&&((0,w.lJ)(),(0,w.B3)())},[e0]),(0,a.useEffect)(()=>{e3&&e3.current&&(e3.current.innerHTML=tO)},[e3]),(0,a.useEffect)(()=>{(W||eZ)&&(ez({type:g.A.UPDATE_ORIENTATION,payload:{orientation:""}}),setTimeout(()=>{(0,ed.DA)(),document.body.style.height="unset",document.body.style.width="unset",document.body.classList.remove(k.pHP),document.body.classList.remove(k.x3W)},200))},[W,eZ]);let it=(0,a.useCallback)(()=>[W,eZ].includes(p.wD.FailureServiceNotInRegion)&&((0,w.ZZ)(f.packageName)||(0,w.lz)(f.packageName)),[W,eZ]);return((0,a.useEffect)(()=>(window.addEventListener("resize",ed.oQ),window.addEventListener("orientationchange",ed.oQ),()=>{window.removeEventListener("resize",ed.oQ),window.removeEventListener("orientationchange",ed.oQ)}),[]),D)?(0,o.jsx)(ea.default,{errorStatusCode:ee,prefix:G,ngNcmHost:y,errorReason:"StatusCode".concat(ee,"-Unified").concat(D,"-ServiceStatus").concat(W),isQuancastPopupSupportByCountry:et}):(0,o.jsxs)(o.Fragment,{children:[tS&&(0,o.jsx)(tV,{}),(0,o.jsxs)(d(),{children:[(0,o.jsx)("link",{rel:"preload",href:(0,T._w)(F.A),as:"image",fetchPriority:"high"},"linklcp"),eG?(0,o.jsx)("meta",{name:"robots",content:"index,follow"},"metarobots"):(0,o.jsx)("meta",{name:"robots",content:"noindex,nofollow,noarchive"},"metarobots"),(0,o.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"ie=edge"},"metaxua"),(0,o.jsx)("link",{rel:"canonical",href:t5},"linkcan"),(0,o.jsx)("meta",{name:"description",content:tB},"metadesc"),(0,o.jsx)("meta",{name:"baidu-site-verification",content:"code-y42E1spUr0"},"metabaidu"),(0,o.jsx)("meta",{name:"theme-color",content:"#00ff9d"},"metatheme"),(0,o.jsx)("meta",{property:"og:locale",content:"en"},"metaogl"),(0,o.jsx)("meta",{property:"og:type",content:"website"},"metaogt"),(0,o.jsx)("meta",{property:"og:title",content:tD},"metaogt"),(0,o.jsx)("meta",{property:"og:description",content:tB},"metaogd"),(0,o.jsx)("meta",{property:"og:url",content:t5},"metaogau"),(0,o.jsx)("meta",{property:"og:site_name",content:"now.gg"},"metaogsn"),(0,o.jsx)("meta",{property:"twitter:title",content:tD},"metatt"),(0,o.jsx)("meta",{name:"twitter:description",content:tB},"metatd"),(0,o.jsx)("title",{children:tD}),(0,o.jsx)("meta",{property:"og:image",content:t3},"metaogi"),(0,o.jsx)("meta",{property:"og:image:secure_url",content:t3},"metaogis"),(0,o.jsx)("meta",{property:"og:image:width",content:"1200"},"metaogw"),(0,o.jsx)("meta",{property:"og:image:height",content:"630"},"metaogh"),(0,o.jsx)("meta",{property:"og:image:type",content:"image/jpeg"},"metaogt"),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"metatwc"),(0,o.jsx)("meta",{name:"twitter:image",content:t3},"metatwi"),(0,o.jsx)("link",{rel:"alternate",href:t5,hrefLang:"x-default"},"metaalt"),f.media.icon&&(0,o.jsx)("link",{rel:"apple-touch-icon",href:f.media.icon},"metaapple"),t_&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t_)}},"schfaqs"),tT&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tT)}},"schweb"),t6&&(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t6)}},"schmob"),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t7)}},"schbread"),eE&&(0,S.Q5)()&&(0,o.jsx)("link",{rel:"manifest",href:"data:application/json;charset=utf-8,".concat((0,S.Ay)(f.appName,(0,w.Fr)()))},"pwamanifest"),(0,o.jsx)("style",{children:"\n body {\n background-color: #111;\n }\n .h5 {\n position: static;\n }\n"})]}),(0,o.jsx)(tE.A,{}),(0,o.jsx)(s.c8,{children:(0,o.jsx)(P.x.Provider,{value:f,children:(0,o.jsxs)(O.A.Provider,{value:eC,children:[ek&&(0,o.jsx)(N.A,{isNowGGURL:ej}),(0,o.jsx)(tH.A,{}),(0,o.jsx)(el.j.Provider,{value:eR,children:(0,o.jsxs)(er.A,{serviceStatus:W,playerState:eL,isFullscreen:e$,isMobileDevice:e6,children:[f.status===p.wD.FailureForbidden?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Z,{}),(0,o.jsx)(en.A,{isAppPage:!0})]}):(0,o.jsxs)(o.Fragment,{children:[eE&&eH&&(0,o.jsx)(q.A,{}),(0,o.jsx)(tZ,{isCfMobile:V,isCfDesktop:$,data:eW.data,appInfo:f,ngNcmHost:y,features:R,errorStatus:"",errorStatusCode:200,authUseThirdPartyFlow:U,thirdPartyAuthUrl:ec,prefix:G,authRedirectionUrl:z,playDomain:Q,serviceStatus:W,imapCfgHost:"",onPlayButtonClicked:t9,playerState:eL,adsEnded:eX,error:String(eZ||W||""),isMobileDevice:e6,ssrOrigin:Y,isQuancastPopupSupportByCountry:et,errorScreenPromotion:it(),authServiceHost:ex})]}),!to&&(f.status!==p.wD.FailureForbidden&&!e$&&!(e6&&eL===k.ceq.LOADED)||eZ&&f.status!==p.wD.FailureForbidden)&&(0,o.jsxs)("div",{className:"xES0bjZoI7ksV3Oz",children:[(0,w.Ti)()&&tF&&(0,o.jsxs)(v,{children:[(0,o.jsx)(j.Zc,{style:{color:"#FFFFFF",marginBottom:"8px"},children:tF}),(0,o.jsx)(j.Dp,{ref:e3,style:{color:"rgba(255,255,255,0.7)",marginBottom:"10px"}})]}),(0,o.jsx)(ei,{heading:ev("popularGames"),gameList:(0,w.Ti)()?e4:ey,pathname:"/games.html",ssrOrigin:Y,isTransparentBg:e6,isMobile:V||e6,id:"ng-unified-popular-games-list"}),(0,o.jsx)("section",{className:"page-section",children:(0,o.jsxs)("div",{className:"page-content",children:[(0,o.jsx)(L,{heading:ev("videoClips")}),(0,o.jsx)(es.default,{isAppPage:!0,videos:eQ,isMobile:V||e6})]})}),tz&&tz.length?(0,o.jsx)(M,{blogs:tz,label:"blogs",highlightBg:!0,link:"/blog.html"}):null,tQ&&tQ.length?(0,o.jsx)(M,{blogs:tQ,label:"topPicks",link:"/blog/roundups.html"}):null,t0&&t0.length?(0,o.jsx)(eo,{ssrOrigin:Y,gamesList:t0,selectedGenere:t2,isMobile:V||e6}):null,(0,o.jsx)(eg,{listId:"ng-unified-categories-list"}),(0,o.jsx)(en.A,{isAppPage:!0,breadcrumbData:t8})]})]})}),eL!==k.ceq.LOADED&&(0,o.jsxs)(o.Fragment,{children:[eJ&&(0,o.jsx)(tX,{isAppPage:!0}),eq&&(0,o.jsx)(m.A,{isAppPage:!0,closeModal:()=>{ez({type:g.A.MODAL_STATUS,payload:{showAboutUs:!1}})},userAuthAndProfileInfo:eN})]}),eK&&tr&&(!e1||eZ)&&(0,o.jsx)(t$,{withBG:!0}),e2&&(0,o.jsx)(tq,{}),ti&&(0,o.jsx)(tJ,{}),ta&&(0,o.jsx)(eb,{}),h.Ay.isMultiSubscriptionFlow&&tg&&(0,o.jsx)(e8,{}),ts&&(0,o.jsx)(ef.A,{source:tm}),td&&(0,o.jsx)(tp.A,{}),tx&&(0,o.jsx)(tt,{}),tu&&(0,o.jsx)(eO,{}),tl&&(0,o.jsx)(tc,{}),tb&&(0,o.jsx)(tv,{})]})})}),(0,o.jsx)("script",{dangerouslySetInnerHTML:{__html:(0,c.Ay)(Object.assign(Object.assign({},f),{authServiceHost:"https://".concat(f.authServiceHost)}),eU,G,!0)}}),(null==(l=null==(n=null==f?void 0:f.playFeFeatures)?void 0:n.uiConfig)?void 0:l.enablePerfMonitor)&&(0,o.jsx)(tC.A,{})]})}}}]); //# sourceMappingURL=3998.0beb726cec608239.js.map