"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7835],{23588:(e,t,r)=>{r.d(t,{A:()=>x,r:()=>g});var o=r(37876),a=r(62920),n=r(5241),i=r(29359),s=r(26875);r(14232);var l=r(64320),d=r(70780),c=r(19786),p=r(17074),m=r(43446),h=r(56047),u=r(7631),A=r(15039),w=r.n(A);let g=e=>{let{gameList:t=[],tileType:r,element:A="NA",media:g="icon",priorityImages:x=0,playCurrentGame:b,alignCenter:f=!1,onGameClick:y,type:v="redirect",openPlayPageUrl:k=!1,kname:j="game-grid",source:I="",ntmSource:E="",isAppPage:T,className:_="",showAdFreeTag:C=!1,showGridAsSidebar:D=!1,id:N="",isMobile:P=!1,variableTileCount:R}=e,B=(0,l.wA)(),S=(0,l.d4)(e=>e.play.isRecording),{t:Q}=(0,s.B)(),F=(0,p.A)();return(0,o.jsx)("ul",{className:"GameGrid_wrap ".concat(_),id:N,style:{"--grid-items-per-row":R},children:t.map((e,t)=>{var s;return(0,o.jsx)("li",{className:w()("Tile_wrap",r,{"as-sidebar":D}),id:"second-row"===j?"second-row-tile":void 0,children:(0,o.jsxs)("a",{className:"Tile ".concat(r," ").concat(e.appId===i.Ay.appInfo.appId?"current":""),href:"link"===v||E?F?(0,c.iR)(e.appPageUrl,E):e.appPageUrl:void 0,onClick:t=>{if(!E)return y&&"function"==typeof y&&y(e),t.preventDefault(),e.appId===i.Ay.appInfo.appId?"function"==typeof b&&b():((e,t,r,o,i,s,l)=>{(0,n.sx)(a.wHH,{element:r,action:"Clicked",packageName:e.packageName},()=>{let t=(0,c.iR)(e.appPageUrl||e.playUrl,-1!==r.indexOf(a.tqQ)?"SearchBarGameClicked":-1!==r.indexOf("Recent")?"OverlayPortalRecentGames":"OverlayPortalOtherGames");if(i)return void s({type:d.A.UPDATE_IS_RECORDING,payload:{showRecordingModalBeforeExit:!0,showRecordingModalBeforeExitSource:"gameTile",urlToOpenAfterRecordModalExit:t}});window.open(t,"_self")},l?m.p.APP_PAGE:void 0)})(e,null===i.Ay||void 0===i.Ay||i.Ay.isHomePage,A,0,S,B,!!T),!1},children:[(0,o.jsx)("span",{className:"TileImg ".concat(r),children:e.media[g]&&(0,o.jsx)(u.q9,{src:null!=(s=e.media[g])?s:"",alt:Q("playOnlineOnNowgg",{appName:e.appName}),loading:t{r.d(t,{A:()=>R});var o=r(37876),a=r(64320),n=r(26875),i=r(14232);let s={src:"/_next/static/media/play.47a801df.webp",height:53,width:53,blurDataURL:"data:image/webp;base64,UklGRpwAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDUAAAABT6AmkiQ1XHUZ3/3HjEY+IqKVDFsC/4NBBkx2g36DP5lEYko4iIj+R5FwIm/LN39bTlQkAABWUDggQAAAANABAJ0BKggACAACQDglpAADFT/VOBXQAP78D7xi7dZ2YO7I4/o3yrNfZfdYxXFwx1BBK82XKDgZz3+SEPKmAAA=",blurWidth:8,blurHeight:8},l={src:"/_next/static/media/bulb.ba88d51c.webp",height:16,width:16,blurDataURL:"data:image/webp;base64,UklGRqwAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSD0AAAABcBvbtlLtkJBQy3AnJNRCyNzhu/ZDoxERSMQxOqTp8fYTBOk/S4sk2E2lk1Q+Yg13ERg0rQHQzlMDIC0BAFZQOCBIAAAA8AEAnQEqCAAIAAJAOCWwAnS6AIaOCEwAAP7oOL/yURaSztgO0/DcVQp50/UEf+y0clvfb8MzkGH/UMfn3+MC3g3+Ucr9vgAA",blurWidth:8,blurHeight:8};var d=r(87581),c=r(33884),p=r(29822),m=r(67768),h=r(84165),u=r(35972),A=r(99397),w=r(5241),g=r(28688),x=r(4858),b=r(29359),f=r(56047),y=r(98684);let v=(0,y.i7)(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]),k=y.Ay.div.withConfig({componentId:"sc-94aa9c44-0"})(["display:flex;position:relative;flex-grow:1;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;border-radius:24px;box-shadow:0px 8px 24px 0px rgba(0,0,0,0.08);background-color:",";padding:12px;button{width:100%;.playIcon{width:16px;height:16px;}}&.addMoreTimeTheme{border:",";background:",";backdrop-filter:blur(32px);margin-left:0;&.forced-custom-rewarded-ads{background:",";&.desktop{background:",";}}}&.shadow-fight{border-radius:16px;border:",";background:",";backdrop-filter:blur(32px);padding:24px;}.sf-icon{position:absolute;top:-50px;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return"1px solid ".concat(t.colors.white10)},e=>{let{theme:t}=e;return t.colors.black50},e=>{let{theme:t}=e;return t.colors.black80},e=>{let{theme:t}=e;return t.colors.black50},e=>{let{theme:t}=e;return"1px solid ".concat(t.colors.white10)},e=>{let{theme:t}=e;return t.colors.white10}),j=y.Ay.p.withConfig({componentId:"sc-94aa9c44-1"})(["position:absolute;border-radius:4px;background:linear-gradient(270deg,#7B4CFF 0%,#0EA4C5 99.48%);text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:0.6px;color:",";left:12.5px;margin:0;padding:1px 4px;top:0;transform:translateY(-50%);"],e=>{let{theme:t}=e;return t.colors.white}),I=(0,y.Ay)(c.e).attrs({as:"p"}).withConfig({componentId:"sc-94aa9c44-2"})(["color:",";margin-bottom:12px;&.addMoreTimeTheme{color:",";}"],e=>{let{theme:t}=e;return t.colors.black70},e=>{let{theme:t}=e;return t.colors.white}),E=y.Ay.span.withConfig({componentId:"sc-94aa9c44-3"})(["color:",";margin-bottom:12px;font-size:12px;line-height:18px;font-weight:400;&.addMoreTimeTheme{color:",";}"],e=>{let{theme:t}=e;return t.colors.black70},e=>{let{theme:t}=e;return t.colors.white}),T=y.Ay.button.withConfig({componentId:"sc-94aa9c44-4"})(["display:flex;justify-content:center;align-items:center;padding:8px 16px;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.10);border-radius:6px;background-color:",";border:none;cursor:not-allowed;pointer-events:none;"],e=>{let{theme:t}=e;return t.colors.base50}),_=(0,y.Ay)(c.le).attrs({as:"p"}).withConfig({componentId:"sc-94aa9c44-5"})(["color:",";margin:0 4px 0 0;"],e=>{let{theme:t,color:r}=e;return t.colors[r]}),C=y.Ay.p.withConfig({componentId:"sc-94aa9c44-6"})(["width:16px;height:16px;border-radius:100%;border:1px solid;border-color:",";border-right-color:",";animation-name:",";animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear;animation-direction:forwards;margin:0;"],e=>{let{theme:t}=e;return t.colors.grey},e=>{let{theme:t}=e;return t.colors.white},v),D=(0,y.Ay)(c.E2).attrs({as:"p"}).withConfig({componentId:"sc-94aa9c44-7"})(["color:",";margin-bottom:12px;max-width:205px;"],e=>{let{theme:t}=e;return t.colors.error}),N=(0,y.Ay)(c.le).attrs({as:"button"}).withConfig({componentId:"sc-94aa9c44-8"})(["margin-top:8px;border-radius:6px;background:",";box-shadow:0px 8px 16px 0px rgba(0,0,0,0.10);padding:8px 16px;border-radius:6px;color:",";text-align:center;cursor:pointer;outline:none;border:none;&:hover{background:",";}"],e=>{let{theme:t}=e;return t.colors.white10},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white20}),P=y.Ay.div.withConfig({componentId:"sc-94aa9c44-9"})(["border-top:1px solid rgba(0,0,0,0.10);display:flex;align-items:center;padding-top:10px;color:",";font-size:12px;line-height:150%;gap:6px;margin-top:12px;width:216px;text-align:left;align-self:stretch;img{width:16px;height:16px;}"],e=>{let{theme:t}=e;return t.colors.error}),R=e=>{let{isAdMoreTimeTheme:t,isCloseButtonEnabled:r}=e,{t:y}=(0,n.B)(),v=(0,a.wA)(),[R,B]=(0,i.useState)(!1),S=(0,a.d4)(e=>e.ads.rewardedAdFirstError),Q=(0,a.d4)(e=>e.ads.rewardedAdFirstLoading),F=(0,a.d4)(e=>e.play.subscriptionFlowSource),U=(0,a.d4)(e=>e.ads.rewardedPremiumTimeInSec),M=(0,i.useCallback)(()=>{var e,t,r;(0,w.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:F,enableRewardedAds:(null==(r=null==(t=null==(e=b.Ay.appInfo.playFeFeatures)?void 0:e.ads)?void 0:t.desktop)?void 0:r.enableRewardedAds)||!1}),(0,m.$B)(),v({type:p.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0}})},[v]),O=(0,i.useCallback)(()=>{v({type:p.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstInfoPopup:!1,showAddMoreTimeFirstAdPopover:!1}})},[v]);return(0,i.useEffect)(()=>{let e=setTimeout(()=>{B(!0)},5e3);return()=>{clearTimeout(e)}},[]),(0,o.jsxs)(k,{className:"".concat(t?"addMoreTimeTheme":"","\n ").concat((0,f.RT)()?"shadow-fight":""," ").concat((0,f.xl)()?"desktop":""," ").concat((0,f.LD)()?"forced-custom-rewarded-ads":""),children:[(r||(0,f.RT)()&&U>0)&&(0,o.jsx)(h.U,{onClick:O,style:{color:(0,f.RT)()?g.JX.colors.white:g.JX.colors.black80,top:"8px",right:"8px"},children:(0,o.jsx)(A.A,{name:"cross-thin",size:14})}),!t&&(0,o.jsx)(j,{children:y("new")}),(0,f.RT)()?(0,o.jsx)("img",{className:"sf-icon",src:b.Ay.appInfo.media.icon,alt:"icon",width:99}):(0,o.jsx)(I,{className:t?"addMoreTimeTheme":"",children:y("timeMinPass",{min:(0,x.Jo)()})}),S?(0,o.jsx)(D,{children:y("adErrorMsg")}):(0,o.jsx)(E,{style:(0,f.RT)()?{fontSize:"20px",fontWeight:"600",margin:"54px 0px 25px 0px"}:{},className:t?"addMoreTimeTheme":"",children:(0,f.RT)()?y("addMinsToGameplay",{min:(0,x.Jo)()}):y("watch1AdForPremium")}),!Q&&(0,o.jsxs)(d.$,{variant:"primary",size:(0,f.RT)()?"large":"medium",onClick:M,style:{minWidth:"216px"},children:[(0,o.jsx)("img",{src:(0,u._w)(s),alt:"play",className:"playIcon"}),(0,o.jsx)(c.le,{children:y(S?"tryAgain":"watchAdNow")})]}),Q&&(0,o.jsxs)(T,{disabled:!0,onClick:M,style:{minWidth:"216px"},children:[(0,o.jsx)(_,{color:"black30",children:y("lookingForAd")}),(0,o.jsx)(C,{})]}),t&&!(0,f.RT)()&&(0,o.jsx)(N,{onClick:()=>{v({type:p.A.UPDATE_REWARDED_AD_STATUS,payload:{showAddMoreTimeFirstAdPopover:!1}})},children:y("cancel")}),R&&Q&&(0,o.jsxs)(P,{children:[(0,o.jsx)("img",{src:(0,u._w)(l),alt:"play",className:"playIcon"}),(0,o.jsx)("span",{children:y("adBlockerMessage")})]})]})}},32051:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(14232);let a=e=>{let[t,r]=(0,o.useState)(e);return(0,o.useEffect)(()=>{document.title=t},[t]),[t,r]}},50115:(e,t,r)=>{r.d(t,{q:()=>i});var o=r(62920),a=r(56047),n=r(29359);let i=e=>e&&(0,a.Rm)(o.znv)!==n.hy&&("nowgg.fun"===window.location.host||"stagingngg.net"===window.location.host||"local.testngg.net:8443"===window.location.host)},62352:(e,t,r)=>{r.d(t,{A:()=>o});let o={src:"/_next/static/media/warning.53226107.svg",height:17,width:16,blurWidth:0,blurHeight:0}},62962:(e,t,r)=>{r.d(t,{A:()=>m});var o=r(37876),a=r(64320),n=r(67648),i=r(29822),s=r(45105),l=r.n(s),d=r(14232),c=r(63845),p=r(4858);let m=e=>{let{isNowGGURL:t,loading:r="afterInteractive"}=e,s=(0,d.useContext)(c.A),m=(0,a.wA)(),h=(0,d.useRef)(!1),u=()=>{s.prebidFailed=!0,(0,n.vX)("aditudeScriptLoadError",!1),m({type:i.A.UPDATE_IMAERROR,payload:{imaError:!0,adsEnded:!0}})},A=()=>{m({type:i.A.UPDATE_IMAERROR,payload:{imaError:!1}})},w=null==s?void 0:s.appInfo;return(0,d.useEffect)(()=>{(0,p.bY)(w)},[w]),(null==h?void 0:h.current)||((0,p.bY)(),h.current=!0),t?(0,o.jsx)(l(),{id:"prebid-script",strategy:r,src:"https://dn0qt3r0xannq.cloudfront.net/nowgg-IZQznjkQaj/nowgg-default/prebid-load.js",onLoad:A,onError:u}):(0,o.jsx)(l(),{id:"prebid-script",strategy:r,src:"https://dn0qt3r0xannq.cloudfront.net/nowgg-IZQznjkQaj/longtail/prebid-load.js",onLoad:A,onError:u})}},72876:(e,t,r)=>{r.d(t,{A:()=>o});let o=()=>{var e,t,r;if("serviceWorker"in navigator){let o;o=(null==(t=null==(e=null==window?void 0:window.location)?void 0:e.href)?void 0:t.indexOf("/apps/"))>-1?"/apps/":"/play/",navigator.serviceWorker.register("https://".concat((null==(r=null==window?void 0:window.location)?void 0:r.host)||"").concat(o,"sw.js"),{scope:o}).then(e=>{},e=>{})}}},79536:(e,t,r)=>{r.d(t,{A:()=>o});let o={src:"/_next/static/media/close-icon.bbd54abd.svg",height:13,width:12,blurWidth:0,blurHeight:0}},98776:(e,t,r)=>{r.d(t,{A:()=>s});var o=r(14232),a=r(5241),n=r(43446),i=r(4858);let s=(0,o.memo)(()=>((0,o.useEffect)(()=>{let e;(0,a.sx)("DBlockScriptMounted",{},void 0,n.p.APP_PAGE);try{let e=document.createElement("script");e.setAttribute("async",""),e.setAttribute("id","vpAgxAszF"),e.setAttribute("data-sdk","l/1.1.15"),e.setAttribute("data-cfasync","false"),e.setAttribute("nowprocket",""),e.setAttribute("src","https://html-load.com/loader.min.js"),e.setAttribute("charset","UTF-8"),e.setAttribute("data","fmjxjt45nvj353j45nm5n8j157jx5sjsj5sj1j65q5nj4v5cj1sj4kssv5q5njsv5cjosj65q5nvsjbvjz5tj4j45q5n5y8jzj157jx5s5y5njjjh"),e.setAttribute("onload","(async()=>{let e='html-load.com';const t=window,a=document,r=e=>new Promise((t=>{const a=.1*e,r=e+Math.floor(2*Math.random()*a)-a;setTimeout(t,r)})),o=t.addEventListener.bind(t),n=t.postMessage.bind(t),s=btoa,i='message',l=location,c=Math.random;try{const t=()=>new Promise(((e,t)=>{let a=c().toString(),r=c().toString();o(i,(e=>e.data===a&&n(r,'*'))),o(i,(t=>t.data===r&&e())),n(a,'*'),setTimeout((()=>{t(Error('Timeout'))}),1231)})),a=async()=>{try{let e=!1;const a=c().toString();if(o(i,(t=>{t.data===a+'_as_res'&&(e=!0)})),n(a+'_as_req','*'),await t(),await r(500),e)return!0}catch(e){}return!1},s=[100,500,1e3];for(let o=0;o<=s.length&&!await a();o++){if(o===s.length-1)throw'Failed to load website properly since '+e+' is tainted. Please allow '+e;await r(s[o])}}catch(d){try{const e=a.querySelector('script#vpAgxAszF').getAttribute('onerror');t[s(l.hostname+'_show_bfa')]=d,await new Promise(((t,r)=>{o('message',(e=>{'as_modal_loaded'===e.data&&t()})),setTimeout((()=>r(d)),3e3);const n=a.createElement('script');n.innerText=e,a.head.appendChild(n),n.remove()}))}catch(m){(t=>{const a='https://report.error-report.com/modal';try{confirm('There was a problem loading the page. Please click OK to learn more.')?l.href=a+'?url='+s(l.href)+'&error='+s(t)+'&domain='+e:l.reload()}catch(d){location.href=a+'?eventId=&error=Vml0YWwgQVBJIGJsb2NrZWQ%3D&domain='+e}})(d)}}})();"),e.setAttribute("onerror","(async()=>{const e=window,t=document;let r=JSON.parse(atob('WyJodG1sLWxvYWQuY29tIiwiZmIuaHRtbC1sb2FkLmNvbSIsImQzcGx4anJ5ZHdobmE5LmNsb3VkZnJvbnQubmV0IiwiY29udGVudC1sb2FkZXIuY29tIiwiZmIuY29udGVudC1sb2FkZXIuY29tIl0=')),o=r[0];const a='addEventListener',n='setAttribute',s='getAttribute',i=location,l=clearInterval,c='as_retry',d=i.hostname,h=e.addEventListener.bind(e),m=btoa,u='https://report.error-report.com/modal',b=e=>{try{confirm('There was a problem loading the page. Please click OK to learn more.')?i.href=u+'?url='+m(i.href)+'&error='+m(e)+'&domain='+o:i.reload()}catch(t){location.href=u+'?eventId=&error=Vml0YWwgQVBJIGJsb2NrZWQ%3D&domain='+o}},f=async e=>{try{localStorage.setItem(i.host+'_fa_'+m('last_bfa_at'),Date.now().toString())}catch(f){}setInterval((()=>t.querySelectorAll('link,style').forEach((e=>e.remove()))),100);const r=await fetch('https://error-report.com/report?type=loader_light&url='+m(i.href)+'&error='+m(e),{method:'POST'}).then((e=>e.text())),a=new Promise((e=>{h('message',(t=>{'as_modal_loaded'===t.data&&e()}))}));let s=t.createElement('iframe');s.src=u+'?url='+m(i.href)+'&eventId='+r+'&error='+m(e)+'&domain='+o,s[n]('style','width:100vw;height:100vh;z-index:2147483647;position:fixed;left:0;top:0;');const c=e=>{'close-error-report'===e.data&&(s.remove(),removeEventListener('message',c))};h('message',c),t.body.appendChild(s);const d=setInterval((()=>{if(!t.contains(s))return l(d);(()=>{const e=s.getBoundingClientRect();return'none'!==getComputedStyle(s).display&&0!==e.width&&0!==e.height})()||(l(d),b(e))}),1e3);await new Promise(((t,r)=>{a.then(t),setTimeout((()=>r(e)),3e3)}))},p=m(d+'_show_bfa');if(e[p])f(e[p]);else try{if(void 0===e[c]&&(e[c]=0),e[c]>=r.length)throw'Failed to load website properly since '+o+' is blocked. Please allow '+o;if((()=>{const t=e=>{let t=0;for(let r=0,o=e.length;o>r;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t},r=Date.now(),o=r-r%864e5,a=o-864e5,n=o+864e5,s='loader-check',i='as_'+t(s+'_'+o),l='as_'+t(s+'_'+a),c='as_'+t(s+'_'+n);return i!==l&&i!==c&&l!==c&&!!(e[i]||e[l]||e[c])})())return;const i=t.querySelector('#vpAgxAszF'),l=t.createElement('script');for(let e=0;e{function t(t){const e=t.length;let o='';for(let r=0;e>r;r++){o+=t[6709*(r+79)%e]}return o}const e=window,o=t('tcreateElemen'),r=t('lihCdneppad'),n=t('detLedreinEanstv'),c=t('tributesetAt'),a=document,i=a.head,s=a[o].bind(a),d=i[r].bind(i),l=location,m=l.hostname,h=btoa;e[n].bind(e);let p=t('mhtml-load.co');(async()=>{try{const n=a.querySelector(t('czxptrFAA#issgvp'));if(!n)throw t('t find Canno')+p+t('str pc.i');const i=n.getAttribute(t('ornrreo')),f=n.getAttribute(t('donloa')),u=await new Promise((o=>{const r=t('x')+Math.floor(1e6*Math.random());e[r]=()=>o(!0);const n=s(t('tscrip'));n.src=t(';data:'),n[c](t('ornrreo'),t('wdi.onw')+r+t(')(')),d(n),setTimeout((()=>{o(!1),n.remove()}),251)}));if(u)return;function o(){const e=s(t('tscrip'));e.innerText=i,d(e),e.remove()}const b=h(m+t('alodon_')),w=h(m+t('ooe_rnrr'));e[b]=function(){const e=s(t('tscrip'));e.innerText=f,d(e),e.remove()},e[w]=o,o()}catch(r){(e=>{const o=t('motp-r.or:tlom.oroere/phd/crerrtp/sta');try{const r=t('ltOccsl.ae iombp wrTr a i aPephgdleo s e.oneoKklee g tna lraaehemr');confirm(r)?l.href=o+t('u?=lr')+h(l.href)+t('rre=or&')+h(e)+t('dnm&io=a')+p:l.reload()}catch(r){location.href=o+t('We=QJVto2wr?%ImImNgre3GldarQovDJ0=iZVre&sY&nWB=ndb')+p}})(r)}})()})();",document.head.appendChild(t)}catch(e){(0,a.sx)("DBlockScriptUseEffectError",{},void 0,n.p.APP_PAGE)}let t=0;function r(){e&&(clearInterval(e),e=null)}return e=setInterval(()=>{var e;(null==(e=null==window?void 0:window.adshield)?void 0:e.loaded)&&r(),function(){var e,t;(null==(e=window.adshield)?void 0:e.loaded)?((0,i.bY)(),window.adshield.isAdBlockerDetected&&(0,a.sx)("AdBlockerDetectedDBlock",{type:"D-Block"})):(window.adshield=null!=(t=window.adshield)?t:{cmd:[]},window.adshield.cmd.push(e=>{(0,i.bY)(),window.adshield.isAdBlockerDetected&&(0,a.sx)("AdBlockerDetectedDBlock",{type:"D-Block"})}))}(),++t>=30&&r()},1e4),()=>{try{r(),(null==script1?void 0:script1.parentNode)&&script1.parentNode.removeChild(script1),(null==script2?void 0:script2.parentNode)&&script2.parentNode.removeChild(script2)}catch(e){(0,a.sx)("DBlockScriptUseEffectReturnError",{},void 0,n.p.APP_PAGE)}}},[]),null))}}]); //# sourceMappingURL=7835.0e0968e4790c389c.js.map