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