"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6248],{7138:(e,t,i)=>{i.d(t,{$n:()=>s,Ay:()=>d,UC:()=>l});var n=i(56160),r=i(53665),o=i(98684);let a=o.Ay.div.withConfig({componentId:"sc-b9baa0aa-0"})(["height:calc(100% - 65px);",""],r.gX),l=o.Ay.div.withConfig({componentId:"sc-b9baa0aa-1"})(["padding:16px;display:flex;flex-direction:column;align-items:center;p{margin-top:12px;color:",";text-align:center;}h3{text-align:center;}@media (max-height:400px){img{width:90px;height:90px;}}"],e=>{let{theme:t}=e;return t.colors.white60}),s=(0,o.Ay)(n.SC).withConfig({componentId:"sc-b9baa0aa-2"})(["margin-top:24px;padding:9.5px 40px;border-radius:24px;"]),d=a},16248:(e,t,i)=>{i.r(t),i.d(t,{ErrorModal:()=>eD,default:()=>eP});var n=i(37876),r=i(4678),o=i(5241),a=i(14232),l=i(26875),s=i(4208),d=i(35402),c=i(56047),p=i(62920),u=i(90066),h=i(51201),g=i(29359),x=i(19786),m=i(87581),f=i(7631),w=i(54696),y=i(64320),b=i(98943),v=i(35972);let A={src:"/_next/static/media/logo-art.5722dca5.svg",height:180,width:180,blurWidth:0,blurHeight:0};var j=i(33884),F=i(42920),I=i(7138);let C=e=>{var t,i,r,o,a,s;let{heading:d,subHeading:p,cta:h,breakFooterText:x}=e,{isEnabled:m}=(null==(i=null==(t=null===g.Ay||void 0===g.Ay?void 0:g.Ay.appInfo)?void 0:t.playFeFeatures)?void 0:i.customFooterLogo)||{},f=m&&(null==(r=g.Ay.countryFooterLogo)?void 0:r.vertical),{uiConfig:w}=(null==(o=g.Ay.appInfo)?void 0:o.playFeFeatures)||{},{enableB2bErrorUi:y}=w||{},b=(0,F.kj)(),C=(0,c.P0)(b),{t:k}=(0,l.B)(),S=(0,v._w)(A);return y&&(S=(0,v.PW)(null===g.Ay||void 0===g.Ay?void 0:g.Ay.appInfo.media.icon)),f&&(null==(a=g.Ay.countryFooterLogo)?void 0:a.vertical)&&(S=null==(s=g.Ay.countryFooterLogo)?void 0:s.vertical),(0,n.jsxs)(I.Ay,{className:"general-error",children:[(0,n.jsxs)(I.UC,{className:y&&!f?"error-info":"",children:[!C&&!(0,c.IV)()&&(0,n.jsx)("img",{style:{marginBottom:y&&!f?20:0},src:S,alt:"",width:f?36:180,height:f?51:180}),(0,n.jsx)(j.IT,{children:k(d)}),(0,n.jsx)(j.Dp,{children:k(p)}),h&&(0,n.jsx)(I.$n,{onClick:()=>{window.location.reload()},children:k(h)})]}),!y&&(0,n.jsx)(u.A,{breakFooterText:x})]})};var k=i(37110),S=i(28688),N=i(70780),T=i(98684);let E=T.Ay.div.withConfig({componentId:"sc-d0ed4cde-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;margin:auto;width:72px;height:72px;color:",";svg{position:absolute;top:0;left:0;width:72px;height:72px;transform:translate(5px,-3px) rotateZ(-90deg);overflow:visible;}"],e=>{let{theme:t}=e;return t.colors.white80}),D=e=>{let{time:t,countdownTimerLeft:i,fillColor:r="white",baseColor:o="white40",reverse:s=!1,onTimeout:d,updateReduxTimer:c=!1}=e,{t:p}=(0,l.B)(),u=64*Math.PI,[h,g]=(0,a.useState)(s?t:t-i),x=(0,a.useRef)(s?t:t-i);x.current=s?t:t-i;let[m,f]=(0,a.useState)("".concat(parseInt("".concat((t-h)/60),10)," : \n ").concat((t-h)%60<10?"0":"").concat((t-h)%60)),w=(0,a.useRef)(),b=(0,y.wA)();return(0,a.useEffect)(()=>(w.current=setInterval(()=>(function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function l(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})})(void 0,void 0,void 0,function*(){g(e=>e-(s?1:-1))}),1e3),()=>{w.current&&clearInterval(w.current)}),[]),(0,a.useEffect)(()=>(f("".concat(parseInt("".concat((t-h)/60),10)," : \n ").concat((t-h)%60<10?"0":"").concat((t-h)%60)),c&&b({type:N.A.UPDATE_PLAY_STATE,payload:{errorCountdownTimer:t-h}}),(s&&0===h||!s&&h===t)&&(clearTimeout(x.current),d&&d()),()=>{clearTimeout(x.current)}),[h]),(0,n.jsxs)(E,{children:[(0,n.jsx)(j.Zc,{children:m}),(0,n.jsx)("svg",{children:(0,n.jsx)("circle",{cx:32,cy:32,r:32,fill:"none",stroke:S.JX.colors[o],strokeWidth:8})}),(0,n.jsx)("svg",{children:(0,n.jsx)("circle",{strokeDasharray:u,strokeDashoffset:u-h/t*u,r:32,cx:32,cy:32,fill:"none",stroke:S.JX.colors[r],strokeWidth:8})})]})},P=T.Ay.div.withConfig({componentId:"sc-e6df5677-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;img{border-radius:9px;}"]),z=T.Ay.div.withConfig({componentId:"sc-e6df5677-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;h3{font-size:20px;color:",";margin:0px !important;}p{color:",";}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white60}),B=T.Ay.div.withConfig({componentId:"sc-e6df5677-2"})(["display:flex;padding:12px;justify-content:center;align-items:center;gap:12px;align-self:center;border-radius:8px;border:",";color:",";max-width:288px;p{text-align:center;}"],e=>{let{theme:t}=e;return t.border.base3},e=>{let{theme:t}=e;return t.colors.white50}),R=e=>{let{onTimeout:t}=e,{t:i}=(0,l.B)(),r=(0,y.d4)(e=>e.play.errorCountdownTimer);return(0,n.jsxs)(P,{children:[(0,n.jsx)("img",{alt:g.Ay.appInfo.appName,src:g.Ay.appInfo.media.icon,width:(0,c.xl)()?128:80,height:(0,c.xl)()?128:80}),(0,n.jsxs)(z,{children:[(0,n.jsx)(j.IT,{children:g.Ay.appInfo.appName}),(0,n.jsx)(j.E2,{children:i("testdriveThingsSetup")})]}),(0,n.jsx)(D,{time:300,countdownTimerLeft:r,onTimeout:t,updateReduxTimer:!0}),(0,n.jsx)(B,{children:(0,n.jsx)(j.Ks,{children:i("testDriveLoading")})})]})};var L=i(12815),O=i(99879);let H={src:"/_next/static/media/fast-forward.d4c07621.gif",height:1500,width:1500,blurWidth:0,blurHeight:0},_={src:"/_next/static/media/get-nowprime.fdae8dd8.webp",height:124,width:511,blurDataURL:"data:image/webp;base64,UklGRnAAAABXRUJQVlA4WAoAAAAQAAAABwAAAQAAQUxQSBEAAAAAKSgiJzw8MyU8NDlIODA1QwBWUDggOAAAABACAJ0BKggAAgACQDgliAJ0OIABKOafkhAA/vTAKU1X83j+zK6C+x9V978UU/aAMjECIruX2oAA",blurWidth:8,blurHeight:2};var M=i(73636),U=i(9097);let G=T.Ay.div.withConfig({componentId:"sc-63d10181-0"})(["display:flex;width:456px;max-width:calc(100% - 40px);height:236px;max-height:calc(100% - 96px);flex-direction:column;align-items:center;flex-shrink:0;border-radius:24px;background:",";color:",";border:1px solid ",';left:50%;top:50%;position:absolute;transform:translate(-50%,calc(-50% + 48px));&.non-prime{height:343px;border:unset;::before{content:"";position:absolute;inset:0;border-radius:24px;padding:1px;background:linear-gradient('," 0%,rgba(255,195,42,0.40) 100%);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;}@media (max-width:300px){max-width:calc(100% - 12px);}}"," ",""],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.white10},e=>{let{theme:t}=e;return t.colors.white20},e=>{let{showCompact:t}=e;return t&&(0,T.AH)(["max-height:calc(100% - 50px);transform:translate(-50%,calc(-50% + 25px));&.non-prime{height:297px;}"])},e=>{let{minimizedUi:t}=e;return t&&(0,T.AH)(["height:auto;max-height:100%;transform:translate(-50%,-50%);&.non-prime{height:271px;}"])}),Q=T.Ay.div.withConfig({componentId:"sc-63d10181-1"})(["display:flex;padding:0px 20px;flex-direction:column;justify-content:flex-end;align-items:center;gap:16px;flex:1 0 0;align-self:stretch;border-radius:24px 24px 0px 0px;height:193px;",""],e=>{let{minimizedUi:t}=e;return t&&(0,T.AH)(["flex-direction:row;padding:20px;align-self:center;"])}),W=(0,T.i7)(["0%{transform:translateX(0px);}100%{transform:translateX(4px);}"]),q=(0,T.i7)(["0%{box-shadow:unset;}100%{box-shadow:0px 0px 60px -12px #FFB647;}"]),V=(0,T.i7)(["0%{left:-20%;}80%{left:-20%;}100%{left:150%;}"]),X=T.Ay.div.withConfig({componentId:"sc-63d10181-2"})(["display:flex;padding:24px 24px 32px 24px;flex-direction:column;justify-content:center;align-items:center;gap:20px;align-self:stretch;border-radius:0px 0px 24px 24px;backdrop-filter:blur(32px);height:148px;background-image:",';background-position:center;background-repeat:no-repeat;background-size:cover;width:calc(100% - 2px);margin-left:1px;margin-bottom:1px;h5{text-align:center;}button{width:220px;height:52px;flex-shrink:0;border-radius:12px;transition:all 0.5s;overflow:hidden;background:radial-gradient(190.01% 116.91% at 95.54% 171.59%,#FFA117 0%,rgba(65,48,23,0.00) 65.24%,rgba(14,14,14,0.00) 100%),radial-gradient(116.04% 116.04% at -3.99% -19.32%,#FFA117 0%,rgba(65,48,23,0.00) 75%,rgba(14,14,14,0.00) 100%),#0E0A05;svg{transition:all 0.5s;}::before{content:"";position:absolute;inset:0;border-radius:12px;padding:2px;background:linear-gradient(135deg,#FFB647 0%,#00E99D29 40%,#D07F05 100%);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;}&:hover{background:radial-gradient(190.01% 116.91% at 95.54% 171.59%,#FFA117 0%,rgba(65,48,23,0.00) 65.24%,rgba(14,14,14,0.00) 100%),radial-gradient(116.04% 116.04% at -3.99% -19.32%,#FFA117 0%,rgba(65,48,23,0.00) 75%,rgba(14,14,14,0.00) 100%),#0E0A05;backdrop-filter:blur(8px);box-shadow:0px 0px 60px -6px #FFB647;animation-name:',";animation-duration:0.5s;animation-timing-function:linear;animation-fill-mode:forwards;svg{animation-name:",";animation-duration:0.5s;animation-timing-function:linear;animation-fill-mode:forwards;}div{display:none;}}}",""],e=>{let{bgImg:t}=e;return t&&"url('".concat(p.Cpe,"assets/images/prime/queueing-bg.webp')")},q,W,e=>{let{showCompact:t}=e;return t&&(0,T.AH)(["padding:12px 24px 24px 24px;height:129px;"])}),Y=T.Ay.div.withConfig({componentId:"sc-63d10181-3"})(["display:flex;padding:0px 20px 20px 20px;flex-direction:column;justify-content:flex-end;align-items:center;gap:12px;align-self:stretch;"," ",""],e=>{let{showCompact:t}=e;return t&&(0,T.AH)(["padding-bottom:8px;gap:8px;"])},e=>{let{minimizedUi:t}=e;return t&&(0,T.AH)(["padding:unset;gap:0px;"])}),J=T.Ay.div.withConfig({componentId:"sc-63d10181-4"})(["height:60px;background:",";width:32px;transform:skewX(-30deg);display:block;position:absolute;animation-name:",";animation-duration:5s;animation-timing-function:linear;animation-fill-mode:forwards;animation-iteration-count:infinite;"],e=>{let{theme:t}=e;return t.colors.white20},V),$=T.Ay.div.withConfig({componentId:"sc-63d10181-5"})(["display:flex;flex-direction:column;align-items:center;gap:4px;align-self:stretch;h3{font-size:20px;line-height:30px;}",""],e=>{let{minimizedUi:t}=e;return t&&(0,T.AH)(["align-items:flex-start;gap:8px;"])}),Z=T.Ay.div.withConfig({componentId:"sc-63d10181-6"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;p{color:",";}"," ",""],e=>{let{theme:t}=e;return t.colors.white80},e=>{let{showCompact:t}=e;return t&&(0,T.AH)(["flex-direction:row;gap:6px;"])},e=>{let{minimizedUi:t}=e;return t&&(0,T.AH)(["flex-direction:row;gap:6px;"])}),K=T.Ay.div.withConfig({componentId:"sc-63d10181-7"})(["display:flex;padding:4px 12px 4px 8px;justify-content:center;align-items:center;gap:6px;border-radius:20px;background:",";color:",";&.prime{border:1px solid #FFB647;}"],e=>{let{theme:t}=e;return t.colors.black70},e=>{let{theme:t}=e;return t.colors.white70}),ee=T.Ay.div.withConfig({componentId:"sc-63d10181-8"})(["width:36px;height:36px;display:flex;transform:translate(-48px,-96px);"," ",""],e=>{let{showCompact:t}=e;return t&&(0,T.AH)(["width:50px;height:50px;transform:translate(-25px,-50px);"])},e=>{let{minimizedUi:t}=e;return t&&(0,T.AH)(["width:100px;height:100px;transform:unset;"])}),et=T.Ay.div.withConfig({componentId:"sc-63d10181-9"})(["height:0px;width:80%;flex-shrink:0;align-self:center;border-bottom:1px solid transparent;border-image:linear-gradient(to right,rgba(255,182,71,0) 0%,rgba(255,182,71,1) 50%,rgba(255,182,71,0) 100%) 1;"]);T.Ay.div.withConfig({componentId:"sc-63d10181-10"})(["margin:5vh auto 20px;gap:12px;display:flex;flex-direction:column;h1{width:100%;}"]);let ei=()=>{let e=(0,y.d4)(e=>e.play.queuePosition),{t}=(0,l.B)(),[i,r]=(0,a.useState)(window.innerHeight<352),[o,s]=(0,a.useState)(window.innerHeight>352&&window.innerHeight<444),d=(0,y.d4)(e=>e.play.gamePlayerWrapperRef),u=(0,y.d4)(e=>e.play.error),[h,x]=(0,a.useState)("WaitingInPriorityQueue"===u),[f,w]=(0,a.useState)(e),[b,A]=(0,a.useState)(.5*e);(0,a.useEffect)(()=>{x("WaitingInPriorityQueue"===u)},[u]);let F=(0,a.useCallback)(()=>{let t=h?10:3e3,i=h?6:40;w(e{F()},[e]),(0,a.useEffect)(()=>{let e=new ResizeObserver(()=>{(null==d?void 0:d.current)&&(r(d.current.clientHeight<352),s(d.current.clientHeight>352&&d.current.clientHeight<444))});(null==d?void 0:d.current)&&e.observe(d.current)},[]),(0,n.jsxs)(G,{className:"".concat(h||!(0,U.M7)()?"":"non-prime"),showCompact:o,minimizedUi:i,children:[(0,n.jsxs)(Q,{minimizedUi:i,children:[(0,n.jsx)(ee,{showCompact:o,minimizedUi:i,children:(0,n.jsx)("img",{src:g.Ay.appInfo.media.icon,alt:t("appIcon"),className:"appIcon",width:i||o?100:132,height:i||o?100:132,style:{borderRadius:i||o?"9px":"12px"}})}),(0,n.jsxs)(Y,{showCompact:o,minimizedUi:i,children:[(0,n.jsxs)($,{minimizedUi:i,children:[(0,n.jsxs)(K,{className:"".concat(h?"prime":""),children:[(0,n.jsx)(L.A,{color:"#FFFFFF",borderWidth:1,style:{width:"16px",height:"16px"}}),(0,n.jsx)(j.fI,{children:t(h?"hurrayPriorityQueue":"youAreInQueue")}),h&&(0,n.jsx)("img",{src:(0,v._w)(H),width:24,height:24,alt:""})]}),(0,n.jsx)(j.IT,{children:"".concat(t("queue.pos")," ").concat(f)})]}),(0,n.jsxs)(Z,{showCompact:o,minimizedUi:i,children:[(0,n.jsx)(j.M5,{children:"".concat(t("estimatedWaitTime")).concat(o||i?":":"")}),(0,n.jsx)(j.vH,{children:"".concat(b," mins")})]})]})]}),!h&&(0,U.M7)()&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(et,{}),(0,n.jsxs)(X,{bgImg:!0,showCompact:o||i,children:[(0,n.jsx)(j.fI,{children:t("tiredOfWaiting")}),(0,n.jsxs)(m.$,{onClick:()=>{(0,c.wo)(p.RmT.QueueScreen)},children:[(0,n.jsx)("img",{src:(0,v._w)(O.A),width:24,height:24,alt:"nowbux",style:{margin:"8px"}}),(0,n.jsx)("img",{src:(0,v._w)(_),width:125,height:32,alt:t("getNowPrime")}),(0,n.jsx)(M.uL,{}),(0,n.jsx)(J,{})]})]})]})]})};var en=i(65608),er=i(26665),eo=i(79340),ea=i(63845),el=i(59319),es=i(77505),ed=i(4166);let ec={src:"/_next/static/media/round-loader-yellow.7b80b043.svg",height:32,width:32,blurWidth:0,blurHeight:0};var ep=i(46038);let eu=(0,T.Ay)(j.M5).withConfig({componentId:"sc-1c5103-0"})(["color:#FFF;font-weight:700;"]);var eh=i(99397),eg=i(44017),ex=i(52094);let em=(0,T.AH)(["width:420px;z-index:100;max-width:100%;background:",";"],e=>{let{theme:t}=e;return t.colors.transparent}),ef=T.Ay.p.withConfig({componentId:"sc-6e2f6173-0"})(["display:flex;padding:24px;flex-direction:row;font-size:14px;margin:0;justify-content:center;align-items:center;gap:6px;color:#ffffff;align-self:stretch;border-top:1px solid rgba(255,195,42,0.40);backdrop-filter:blur(32px);a{text-decoration:none;display:flex;align-items:center;}em{font-style:normal;text-decoration:underline;cursor:pointer;}"]),ew=(0,T.i7)(["0%{transform:translateY(100%);}100%{transform:translateY(0%);}"]),ey=T.Ay.div.withConfig({componentId:"sc-6e2f6173-1"})(["display:flex;gap:6px;flex-direction:column;label:not(.error){font-size:10px;text-transform:uppercase;}label:not(.error),input{color:rgba(255,255,255,0.80);}input{outline:none;&:focus{border-color:#00ff9d;}}&.failure input{border-color:#DE5A48;}"]),eb=T.Ay.form.withConfig({componentId:"sc-6e2f6173-2"})(["position:absolute;left:0;right:0;bottom:0;padding:24px;color:white;animation-name:",";border-top:1px solid rgba(255,195,42,0.40);backdrop-filter:blur(32px);background-color:rgba(0,0,0,0.20);animation-duration:0.2s;animation-delay:0s;animation-iteration-count:1;animation-timing-function:ease-in;gap:16px;display:flex;flex-direction:column;i{position:absolute;top:5px;right:5px;padding:10px;}h3{text-transform:capitalize;font-size:20px;}button{font-size:14px;height:40px !important;}"],ew),ev=T.Ay.div.withConfig({componentId:"sc-6e2f6173-3"})(["display:flex;gap:8px;justify-content:center;position:relative;color:white;span{font-size:14px;position:absolute;left:38px;top:50%;transform:translateY(-50%);text-transform:uppercase;}::placeholder{color:rgba(255,255,255,0.90);}input{font-size:14px;width:100%;padding:10px 8px 10px 100px;border-radius:8px;background:rgba(255,255,255,0.20);border:1px solid rgba(255,255,255,0.50);box-shadow:0px 2px 8px 0px rgba(0,0,0,0.04);}"]),eA=T.Ay.span.withConfig({componentId:"sc-6e2f6173-4"})(["border-radius:20px;padding:4px 12px 4px 8px;display:flex;background:rgba(0,0,0,0.70);gap:6px;color:rgba(255,255,255,0.70);font-size:14px;font-weight:600;align-items:center;&.WaitingInPriorityQueue{background:conic-gradient(from 180deg at 49.47% 28.57%,#DBA202 20.792520493268967deg,#FAEA63 45.188929438591deg,#D29801 77.40000128746033deg,#FFF554 112.63010859489441deg,#DDAE02 140.1267957687378deg,#FAF86D 162.15581059455872deg,#F8DB08 191.78693532943726deg,#D39A01 226.02563381195068deg,#FBF9A1 264.79737281799316deg,#F9ED31 281.4740180969238deg,#B37E00 322.25327253341675deg,#F5E72D 360deg);background-clip:text;border:1px solid #DBA202;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}img{width:16px;height:16px;}"]),ej=T.Ay.div.withConfig({componentId:"sc-6e2f6173-5"})(["text-align:center;display:flex;gap:4px;border-top:1px solid rgba(255,255,255,0.10);margin-top:16px;flex-direction:column;padding:12px 10px 14px;margin:12px 24px 0;width:100%;"]),eF=T.Ay.div.withConfig({componentId:"sc-6e2f6173-6"})(["display:flex;width:420px;max-width:100%;flex-direction:column;align-items:center;flex-shrink:0;background:rgba(0,0,0,0.05);backdrop-filter:blur(60px);&.landscape{min-height:unset;justify-content:space-between;}"]);T.Ay.div.withConfig({componentId:"sc-6e2f6173-7"})(["display:flex;padding:8px 12px 8px 20px;justify-content:space-between;align-items:center;align-self:stretch;color:",";i{cursor:pointer;padding:4px;border-radius:6px;&:hover{background:",";}}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white10});let eI=T.Ay.div.withConfig({componentId:"sc-6e2f6173-8"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 0 0;width:100%;text-align:center;margin-top:200px;&:before{content:'';z-index:-1;position:absolute;pointer-events:none;left:0;right:0;top:0;bottom:0;background:linear-gradient(0deg,rgba(0,0,0,0.60) 0%,rgba(0,0,0,0.90) 23.2%,rgba(0,0,0,0.80) 42.19%,rgba(0,0,0,0.60) 55.52%,rgba(0,0,0,0.00) 68.05%);}button{height:48px;width:100%;gap:8px;}"]);T.Ay.div.withConfig({componentId:"sc-6e2f6173-9"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;width:100%;&.landscape{flex:1;}button{height:48px;width:100%;}"]),T.Ay.img.withConfig({componentId:"sc-6e2f6173-10"})(["width:181px;height:22px;transform:unset;"]),T.Ay.div.withConfig({componentId:"sc-6e2f6173-11"})(["width:90px;height:90px;"]),T.Ay.img.withConfig({componentId:"sc-6e2f6173-12"})(["width:36px;height:36px;border:2px solid ",";border-radius:50%;position:relative;right:-53px;bottom:40px;"],e=>{let{theme:t}=e;return t.colors.white}),T.Ay.div.withConfig({componentId:"sc-6e2f6173-13"})(["display:flex;flex-direction:column;align-items:center;color:",";h3{font-size:20px;line-height:32px;}&.landscape{width:192px;margin-top:96px;img{width:133px;height:16px;}h3{font-size:14px;font-weight:600;line-height:28px;}}"],e=>{let{theme:t}=e;return t.colors.white}),T.Ay.div.withConfig({componentId:"sc-6e2f6173-14"})(["display:flex;flex-direction:column;gap:8px;color:",";border-radius:12px;border:1px solid ",";width:100%;padding:20px;clip-path:border-box;h3{text-transform:none;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white10}),T.Ay.div.withConfig({componentId:"sc-6e2f6173-15"})(["display:flex;flex-direction:row;gap:8px;align-items:center;img{width:15px;height:15px;margin:0px;}"]),T.Ay.img.withConfig({componentId:"sc-6e2f6173-16"})(["width:135px;height:145px;z-index:-1;position:absolute;right:21px;bottom:93px;&.landscape{bottom:43px;}"]);let eC=T.Ay.img.withConfig({componentId:"sc-6e2f6173-17"})(["width:100%;z-index:-1;position:absolute;top:0px;&.landscape{left:0px;}"]),ek={not_started:"not_started",success:"success",failure:"failure",nw_failure:"nw_failure",submitting:"submitting"},eS=e=>{let{enablePriorityQueue:t}=e,{t:i}=(0,l.B)(),r=(0,y.wA)(),o=(0,y.d4)(e=>e.play.orientation),p=(0,y.d4)(e=>e.play.error),u=(0,y.d4)(e=>e.play.queuePosition),h=(0,a.useRef)(),g=(0,y.d4)(e=>e.play.membershipModalOpen),[x,f]=(0,a.useState)(o===d.QB.landscape&&(0,c.Fr)()),w=(0,a.useContext)(ea.A),[b,A]=(0,a.useState)(""),[F,I]=(0,a.useState)(ek.not_started);(0,a.useEffect)(()=>{},[]);let C=e=>{I(ek.not_started),A(""),r({type:N.A.UPDATE_PLAY_STATE,payload:{membershipModalOpen:e}})},k=(0,a.useCallback)(()=>{I(ek.submitting),clearTimeout(h.current),s.Ay.validateMembershipId({membershipId:b},{}).then(e=>{e.status===d.wD.Success?(I(ek.success),A(b),(0,eg.oM)(b),clearTimeout(h.current),h.current=setTimeout(()=>{C(!1),(0,ex.Wv)()},3e3)):I(ek.failure)}).catch(e=>{(0,el.Ay)("membership id err",{error:e}),I(ek.nw_failure)})},[b]);(0,a.useEffect)(()=>{f(o===d.QB.landscape&&(0,c.Fr)())},[o]);let S=p===d.wD.WaitingInPriorityQueue;return(0,n.jsx)(eo.A,{fullView:(0,c.Fr)(),modalStyles:em,contentStyle:{margin:"0px"},modalClassName:"bottom-modal",children:(0,n.jsxs)(eF,{className:"".concat(x?"landscape":""),children:[(0,n.jsx)(eC,{className:"".concat(x?"landscape":""),src:w.appInfo.media.tile}),(0,n.jsxs)(eI,{className:"".concat(x?"landscape":""),children:[(0,n.jsx)("div",{children:(0,n.jsxs)(eA,{className:d.wD.WaitingInPriorityQueue,children:[(0,n.jsx)(ep.Q0,{src:(0,v._w)(S?ec:ed.A),alt:""}),i("queueModal.youAreIn",{queueType:S?i("queueModal.priority"):""})]})}),S&&(0,n.jsxs)(j.IT,{style:{color:"white",margin:"20px 10px 30px"},children:[i("queue.pos"),"\xa0",u]}),!S&&(0,n.jsxs)(ej,{className:"text-center",children:[(0,n.jsx)(j.M5,{children:i("queue.est")}),(0,n.jsxs)(eu,{children:[Math.ceil(Math.min(10*u,300)/60),"\xa0",i("mins")]})]}),t&&!S&&(0,n.jsx)(ef,{children:(0,n.jsxs)("a",{onClick:()=>{C(!0)},children:[(0,n.jsx)("img",{alt:"",src:(0,v._w)(es.A),height:16,width:16}),"\xa0",(0,n.jsx)("strong",{children:"now.jp"}),"\xa0",i("queue.members"),"\xa0",(0,n.jsx)("em",{children:i("queue.jump")})]})}),t&&g&&(0,n.jsx)(eb,{onSubmit:e=>{e.preventDefault(),k()},children:F===ek.success?(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"44",viewBox:"0 0 45 44",fill:"none",children:[(0,n.jsx)("circle",{cx:"22.5",cy:"22",r:"22",fill:"#398B4D"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5226 29.6438C18.5244 29.6454 18.5262 29.647 18.5281 29.6486C19.1159 30.1634 20.0112 30.1059 20.5278 29.5201L20.5278 29.52L32.1474 16.3442C32.664 15.7584 32.6062 14.8662 32.0184 14.3514C31.4306 13.8366 30.5353 13.8941 30.0187 14.4799L19.3345 26.5951L14.8524 22.6697C14.2645 22.1549 13.3692 22.2125 12.8526 22.7982C12.336 23.384 12.3938 24.2763 12.9816 24.7911L18.5226 29.6438Z",fill:"white"})]}),(0,n.jsx)(j.IT,{style:{color:"white",margin:"12px 10px 5px"},children:i("queue.success")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.IT,{children:i("queue.jump")}),(0,n.jsx)(eh.A,{name:"cross-thin",size:16,onClick:()=>C(!1)}),(0,n.jsxs)(ey,{className:F,children:[(0,n.jsx)("label",{htmlFor:"memId",children:i("queue.njp")}),(0,n.jsxs)(ev,{children:[(0,n.jsx)("span",{children:"now.jp/"}),(0,n.jsx)("input",{disabled:F===ek.submitting,id:"memId",autoComplete:"off",autoCorrect:"off",placeholder:"4324-1234-DCBA",value:b,onChange:e=>A(e.target.value)})]}),F===ek.failure&&(0,n.jsx)("label",{className:"error",htmlFor:"memId",children:i("queue.invalid")}),F===ek.nw_failure&&(0,n.jsx)("label",{className:"error",htmlFor:"memId",children:i("somethingWrong")})]}),(0,n.jsxs)(m.$,{type:"submit",disabled:!b||F===ek.submitting,onClick:k,children:[F===ek.submitting&&(0,n.jsx)(L.A,{borderWidth:1,style:{width:"20px",height:"20px"}}),i(F===ek.submitting?"queue.verifying":"queue.submit")]})]})})]})]})})},eN={FailureNoResource:{head1:"errorServerOverloadedCatchingUp",head2:"playAmazingGames"},FailureMobileNotSupported:{head1:"errorNotSupported",head2:"playAmazingGames"},FailureDesktopNotSupported:{head1:"errorNotSupported",head2:"playAmazingGames"},FailureTabletNotSupported:{head1:"errorNotSupported",head2:"playAmazingGames"},FailureOsNotSupported:{head1:"errorNotSupported",head2:"playAmazingGames"},FailureAppNotAvailable:{head1:"errorGameNotFound",head2:"playAmazingGames"},FailureServiceNotInRegion:{head1:"errorServiceNotInRegion",head2:"checkEpicGames"},NotFound:{head1:"errorNotFound",head2:"tryPerformingGames"},FailureFromServer:{head1:"errorNotFound",head2:"tryPerformingGames"},Failure:{head1:"errorFailure",head2:"tryPerformingGames"},FailureInvalidPlayToken:{head1:"errorInvalidPlayToken",head2:"checkFunGames"},FailureTokenExpired:{head1:"errorFailureTokenExpired.heading",head2:"errorFailureTokenExpired.subHeading"},FailureInvalidToken:{head1:"errorFailureInvalidToken.heading",head2:"errorFailureInvalidToken.subHeading"},FailureForbidden:{head1:"forbiddenZone",head2:"cannotAccessGame"},FailureAnotherSessionActive:{head1:"errorFailureAnotherSessionActive.heading",head2:"errorFailureAnotherSessionActive.subHeading"},FailureSessionEnded:{head1:"errorFailureSessionEnded.heading",head2:"errorFailureSessionEnded.subHeading"},FailureUnauthorized:{head1:"errorFailureUnauthorized.heading",head2:"errorFailureUnauthorized.subHeading"},FailureInsufficientPlaytime:{head1:"errorFailureInsufficientPlaytime.heading",head2:"errorFailureInsufficientPlaytime.subHeading"},FailureSessionMigrated:{head1:"errorFailureSessionMigrated.heading",head2:"errorFailureSessionMigrated.subHeading"},FailureAdBlockerDetected:{head1:"errorFailureAdBlockerDetected.heading",head2:"errorFailureAdBlockerDetected.subHeading"}},eT=e=>{for(let t=e.length-1;t>0;t-=1){let i=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[i],e[i]=n}return e},eE=new Set([d.wD.FailureTokenExpired,d.wD.FailureInvalidToken,d.wD.FailureForbidden,d.wD.FailureAnotherSessionActive,d.wD.FailureSessionEnded,d.wD.FailureUnauthorized,d.wD.FailureInsufficientPlaytime,d.wD.FailureSessionMigrated,k.m7.FailureAdBlockerDetected]),eD=e=>{var t,i,A;let{error:j="Failure",origin:F,isAppPage:I=!1,errorCode:k=null,errorName:S}=e,T=(0,c.Fr)(),E=(0,c.v1)(),[D,P]=(0,a.useState)(null),[z,B]=(0,a.useState)("-landscape"),[L,O]=(0,a.useState)(10),{t:H}=(0,l.B)(),[_,M]=(0,a.useState)(H("refreshSecs").replace("{0}",L.toLocaleString())),[U,G]=(0,a.useState)(""),[Q,W]=(0,a.useState)(!1),[q,V]=(0,a.useState)(!1),X=(0,y.d4)(e=>e.play.showExploreGamesOverlay),Y=(0,y.d4)(e=>e.play.errorDescription),J=(0,y.d4)(e=>e.play.consoleHeaderRef),$=(0,y.d4)(e=>e.support.showSupport),Z=(null==(t=eN[j])?void 0:t.head1)||eN.Failure.head1,K=(null==(i=eN[j])?void 0:i.head2)||eN.Failure.head2,ee=(0,y.wA)();(0,y.d4)(e=>e.play.queuePosition);let et=(0,y.d4)(e=>e.play.showAboutUs),{appInfo:eo}=g.Ay,{enableB2BNoResoureUi:ea,uiConfig:el}=(null==eo?void 0:eo.playFeFeatures)||{},{enableSupportWidget:es,enableB2bErrorUi:ed}=el||{},ec=j===d.wD.FailureNoResource&&ea,[ep,eu]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=setTimeout(()=>eu(!0),1e3);return()=>clearTimeout(e)},[]);let eh=(0,a.useRef)(),eg=()=>{let e=window.orientation;0===e?B("-portrait"):90===e||-90===e?B("-landscape"):(180===e||-180===e)&&B("-portrait")};(0,a.useEffect)(()=>{if((0,o.Dv)(!1),(0,h.A)(),eg(),document.body.classList.remove(p.pHP),document.body.classList.remove(p.x3W),p.XOu.includes(j)&&G(H(Z,{appName:eo.appName})),window.addEventListener("orientationchange",eg),(0,o.sx)("ErrorScreen",{error:j,errorCode:k,errorName:S||"None",errorMessage:S||"None",errorDescription:Y,currentUrl:window.location.href.split("?")[0]}),ed||ec)return eu(!0),()=>{};!function(e,t,i,n){new(i||(i=Promise))(function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function l(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})}(void 0,void 0,void 0,function*(){let e=yield(0,g.gA)();if(e&&e){let t=sessionStorage.getItem("popularGamesList"),i=t?JSON.parse(t):{},{topApps:n=[],topBarApps:r=[],remainingApps:o=[],otherApps:a=[]}=e.gamesList,l=Object.keys(i).length>=2?i[0].concat(i[1]):[],s=[...n,...r,...o,...a],u=s.filter(e=>(0,c.y)(e.packageName)),h=s.filter(e=>(0,c.C)(e.packageName));if(t&&0!==l.length){p.Cph.includes(j)||(l=l.filter(e=>4!==e.appId.length));if(l.length<(T||E?7:12)){p.Cph.includes(j)||(s=s.filter(e=>4!==e.appId.length));let e=eT(s).slice(0,46),t=Math.floor(e.length/2);i[0]=e.splice(0,t),i[1]=e.splice(-t),sessionStorage.setItem("popularGamesList",JSON.stringify(i)),l=i[0].concat(i[1])}}else if(s){p.Cph.includes(j)||(s=s.filter(e=>4!==e.appId.length));let e=eT(s).slice(0,46),t=Math.floor(e.length/2);i[0]=e.splice(0,t),i[1]=e.splice(-t),sessionStorage.setItem("popularGamesList",JSON.stringify(i)),l=i[0].concat(i[1])}u.length&&j===d.wD.FailureServiceNotInRegion&&(l=l.filter(e=>!(0,c.y)(e.packageName))).unshift(u[0]),h.length&&j===d.wD.FailureServiceNotInRegion&&(l=l.filter(e=>!(0,c.C)(e.packageName))).splice(1,0,h[0]),I||T?P(l.slice(0,6)):P(l.slice(0,5))}});let e=setTimeout(()=>eu(!0),1e3);return()=>{window.removeEventListener("orientationchange",eg),clearTimeout(e)}},[]),(0,a.useEffect)(()=>{if(ec&&!q){let e=(()=>{let{utmSource:e,utmMedium:t,utmCampaign:i}=(0,g.Zl)(),n=sessionStorage.getItem(p.lIi);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,c.TZ)()),{feSessionId:window.feSessionId||"",visitId:window.ngVisitId,initialOrientation:(null==eo?void 0:eo.initialOrientation)||d.QB.unspecified,utmSource:e,utmMedium:t,utmCampaign:i,deepLinkUrl:sessionStorage.getItem(p.bUq)||"",accessCode:sessionStorage.getItem("access_code")||"",ngReferrer:sessionStorage.getItem("ngReferrer")||"NA",pageReferrer:sessionStorage.getItem("pageReferrer")||"NA",ngEntryPoint:sessionStorage.getItem("ngEntryPoint")||"NA",ntmSource:sessionStorage.getItem("ntmSource")||"NA",customData:(0,c.Rm)(p.tRz),appLaunchExtraData:(0,c.Rm)("appLaunchExtraData"),launcherData:(0,c.Rm)("launcherData"),feSessionTags:(0,c.zE)().toString(),sdpType:"",isIframe:(0,c.al)()}),(0,c.el)()),n&&{ngInviteId:n}),(0,c.ib)())})();eh.current=setInterval(()=>{s.Ay.startSession(e,{}).then(e=>{e.status===d.wD.Success&&((0,g.hk)(),window.location.reload())}).catch(e=>{})},3e4)}return()=>{eh.current&&clearInterval(eh.current)}},[j,q]),(0,a.useEffect)(()=>{setTimeout(()=>{L>0?(O(L-1),M(H("refreshSecs").replace("{0}",L.toLocaleString()))):(M(H("tryRefresh")),W(!0))},1e3)},[L]);let ex=e=>{let t=(null==e?void 0:e.appPageUrl)||(null==e?void 0:e.playUrl)||"",i=(null==t?void 0:t.includes("utm_campaign"))?t.replace("popular_games","portal"):t.concat("?utm_campaign=portal");window.location.href=(0,x.Ay)(i,"ErrorPage")},em=()=>{(0,en._)(j)},ef=(0,a.useCallback)(()=>{(0,o.sx)(p.wHH,{element:"ErrorScreenBrowseBtn",state:"Clicked"}),window.location.href=(0,x.Ay)("https://nowgg.fun","ErrorPage")},[]),ew=(0,a.useMemo)(()=>!!T&&"-portrait"===z,[z]),ey={width:"100%",height:"auto",position:"fixed",top:"".concat((null==(A=null==J?void 0:J.current)?void 0:A.clientHeight)||0," px"),bottom:"65px"},eb=eE.has(j),ev="";if(j===d.wD.FailureTokenExpired&&(ev="retryNow"),j===d.wD.FailureInvalidToken&&(ev="refreshNow"),j===d.wD.WaitingInPriorityQueue||j===d.wD.WaitingInQueue){if("JpMembership"===eo.premiumQueueMethod)return(0,n.jsx)(eS,{enablePriorityQueue:eo.enablePriorityQueue});if("NowPrime"===eo.premiumQueueMethod)return(0,n.jsx)(ei,{})}let eA=k||p.boD[j];return(0,n.jsxs)(n.Fragment,{children:[X&&(0,n.jsx)(w.default,{style:ey}),(0,n.jsx)(r.Ow,{className:"\n ".concat(T||E?"mobileErr ":"desktopErr","\n ").concat(eA?"errorCode ":"","\n ").concat(z,"\n "),children:eb?(0,n.jsx)(C,{heading:eN[j].head1,subHeading:eN[j].head2,cta:ev,breakFooterText:ew}):(0,n.jsxs)(r.wD,{className:ep?"loaded ".concat(ec||ed?"testdrive-ui":""):"",children:[T&&"-portrait"!==z?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.xI,{className:"content-header ".concat(ec||ed?"":"non-testdrive-ui"),children:[p.boD[j]&&(0,n.jsx)(r.O4,{children:"".concat(H("error")," NG ").concat(eA)}),ec?q?(0,n.jsxs)("h2",{children:[H("errorServerOverloadedTimerEnd1"),(0,n.jsx)("br",{}),H("errorServerOverloadedTimerEnd2")]}):(0,n.jsx)(R,{onTimeout:()=>{V(!0)}}):(0,n.jsx)("h2",{children:p.XOu.includes(j)?U:H(Z)}),(j===d.wD.FailureInvalidPlayToken||j===d.wD.FailureValidationError)&&(0,n.jsxs)(r.dL,{className:"refresh-container",children:[(0,n.jsx)("p",{className:"text",children:_}),(0,n.jsx)(m.$,{size:"default",disabled:!Q,variant:"secondaryOutline",style:{padding:"7px 16px"},onClick:()=>{Q&&(0,x.Yi)("RefreshBtn")},text:H("refreshNow"),id:"ng-error-refresh-btn"})]}),D&&(null==D?void 0:D.length)>0&&!ec&&!ed&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{children:H(K)}),!I&&(0,n.jsxs)(r.MQ,{isMobile:(0,c.Fr)(),children:[(0,n.jsx)(m.$,{variant:"secondary",onClick:ef,text:H("browseGames"),id:"ng-error-browse-more-btn"}),es&&(0,n.jsx)(m.$,{variant:"secondaryOutline",onClick:em,text:H("reportIssue"),id:"ng-error-report-btn"})]})]})]}),D&&(null==D?void 0:D.length)>0&&!ec&&(0,n.jsx)(r.AO,{id:"ng-error-suggestion-list",className:"popular-games-list",children:D.map(e=>{var t;return(0,n.jsxs)(r.Vp,{onClick:()=>ex(e),children:[(0,n.jsx)("div",{className:"imgContainer",children:(0,n.jsx)(f.CY,{src:null==(t=null==e?void 0:e.media)?void 0:t.tile,alt:e.appName,sizes:"128px",quality:100,unoptimized:!0})}),(0,n.jsx)("div",{className:"imgBorder"})]},e.appName)})})]}):(0,n.jsxs)(n.Fragment,{children:[ec||ed||j===d.wD.FailureInvalidPlayToken||j===d.wD.FailureValidationError?(0,n.jsx)(r.TF,{className:"token-failure ".concat(ec||ed?"":"non-testdrive-ui"),children:ec?q?(0,n.jsxs)("h2",{children:[H("errorServerOverloadedTimerEnd1"),(0,n.jsx)("br",{}),H("errorServerOverloadedTimerEnd2")]}):(0,n.jsx)(R,{onTimeout:()=>{V(!0)}}):(0,n.jsxs)(n.Fragment,{children:[ed&&(0,n.jsx)("div",{className:"error-info",children:(0,n.jsx)("img",{src:(0,v.PW)(eo.media.icon),loading:"lazy",fetchPriority:"low",alt:eo.appName||"",width:128,height:128})}),(0,n.jsxs)("div",{style:{textAlign:"center",padding:"0 14px"},children:[(0,n.jsx)("h2",{children:p.XOu.includes(j)?U:H(Z)}),ed&&!d.wD[j]&&(0,n.jsx)(r.fV,{style:{display:"block"},children:H("disconnectedMsg")})]})]})}):(0,n.jsxs)(r.wg,{className:"animated-heading",children:[!ed&&p.boD[j]&&(0,n.jsx)(r.O4,{children:"".concat(H("error")," NG ").concat(eA)}),(0,n.jsx)(r._,{children:p.XOu.includes(j)?U:H(Z)})]}),D&&(null==D?void 0:D.length)>0&&!ec&&!ed&&(0,n.jsxs)(r.J3,{className:"main-container",children:[(0,n.jsx)(r.fV,{className:"".concat(j===d.wD.FailureInvalidPlayToken||j===d.wD.FailureNoResource||j===d.wD.FailureValidationError?"tokenErr":""),children:H(K)}),(0,n.jsx)(r.AO,{id:"ng-error-suggestion-list",className:"popular-games-list",children:D.map(e=>{var t;return(0,n.jsxs)(r.Vp,{onClick:()=>ex(e),children:[(0,n.jsx)("div",{className:"imgContainer",children:(0,n.jsx)(f.CY,{src:null==(t=null==e?void 0:e.media)?void 0:t.tile,alt:e.appName,sizes:"128px",quality:100,unoptimized:!0})}),!T&&(0,n.jsxs)(r._P,{className:"tileContent",children:[(0,n.jsx)("p",{children:e.appName}),(0,n.jsx)(m.$,{size:"small",variant:"primary",onClick:()=>{},text:H("playNow")})]}),(0,n.jsx)("div",{className:"imgBorder"})]},e.appName)})}),!I&&(0,n.jsxs)(r.MQ,{className:"btn-container",isMobile:(0,c.Fr)(),children:[(0,n.jsx)(m.$,{variant:"secondary",onClick:ef,text:H("browseGames"),id:"ng-error-browse-more-btn"}),(0,n.jsx)(m.$,{variant:"secondaryOutline",onClick:em,text:H("reportIssue"),id:"ng-error-report-btn"})]})]})]}),!I&&!ec&&!ed&&(0,n.jsx)(u.A,{breakFooterText:ew})]})}),$&&(0,n.jsx)(b.default,{isError:!0}),et&&(0,n.jsx)(er.A,{isAppPage:!0,closeModal:()=>{ee({type:N.A.MODAL_STATUS,payload:{showAboutUs:!1}})}})]})},eP=eD},46038:(e,t,i)=>{i.d(t,{$h:()=>h,Bf:()=>g,FM:()=>p,Q0:()=>m,UC:()=>c,ke:()=>d,tA:()=>x,wy:()=>u});var n=i(98684);let r=(0,n.i7)(["0%{opacity:0;}100%{opacity:1;}"]),o=(0,n.i7)(["0%{opacity:1;}100%{opacity:0;}"]),a=(0,n.i7)(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]),l=(0,n.i7)(["0%{opacity:.6;text-shadow:0 0 0 #0d9bd1}60%{opacity:1;text-shadow:0 0 3px #0d9bd1}80%{opacity:1;text-shadow:0 0 3px #0d9bd1}to{opacity:.6;text-shadow:0 0 0 #0d9bd1}"]),s=(0,n.i7)(["0%{width:0;}25%{width:60%;}50%{width:75%;}100%{width:95%;}"]),d=n.Ay.div.withConfig({componentId:"sc-20ce4e2a-0"})(["position:relative;height:6px;background:rgba(0,0,0,0.3);border:1px solid rgba(255,255,255,0.2);border-radius:4px;width:100%;border-radius:4px;overflow:hidden;&:after{content:'';position:absolute;left:0;width:50%;transition:width 2s;top:0;bottom:0;background:",";animation-name:",";animation-duration:15s;animation-iteration-count:1;animation-timing-function:ease-out;animation-fill-mode:forwards;}"],e=>{let{theme:t}=e;return t.colors.ascent},s),c=n.Ay.div.withConfig({componentId:"sc-20ce4e2a-1"})(["width:100%;display:flex;gap:16px;p{font-size:16px;font-weight:400;line-height:150%;margin-bottom:16px;}span{flex-shrink:0;img{border-radius:6px;}}"]),p=n.Ay.div.withConfig({componentId:"sc-20ce4e2a-2"})(["width:100%;display:flex;flex-direction:column;justify-content:center;"]),u=n.Ay.div.withConfig({componentId:"sc-20ce4e2a-3"})(["position:absolute;touch-action:none;"," video{min-width:100%;min-height:100%;object-fit:cover;}",""],e=>{let{isPortrait:t}=e;return t&&(0,n.AH)(["height:100vmax;"])},e=>{let{toggle:t}=e;return t?(0,n.AH)(["animation:"," 0.3s ease-out;"],r):(0,n.AH)(["animation:"," 0.3s ease-out;animation-delay:0.3s;"],o)}),h=n.Ay.img.withConfig({componentId:"sc-20ce4e2a-4"})(["width:100%;height:100%;"]),g=n.Ay.video.withConfig({componentId:"sc-20ce4e2a-5"})(["width:100%;height:100%;object-fit:cover;"]),x=n.Ay.div.withConfig({componentId:"sc-20ce4e2a-6"})(["position:absolute;top:70%;left:50%;transform:translateX(-50%);display:flex;justify-content:center;align-items:center;flex-direction:column;z-index:9;.loadingText{animation:"," 1s linear infinite;margin-top:5px;}"],l),m=n.Ay.img.withConfig({componentId:"sc-20ce4e2a-7"})(["width:40px;height:40px;animation:"," 1.5s linear infinite;"],a)},54696:(e,t,i)=>{i.r(t),i.d(t,{ExploreGamesOverlay:()=>k,default:()=>S});var n=i(37876),r=i(10093),o=i(71278),a=i(14232),l=i(64320),s=i(26875),d=i(70780),c=i(99397),p=i(4917),u=i.n(p),h=i(29359),g=i(62920),x=i(5241),m=i(35402),f=i(56047),w=i(33884),y=i(35972),b=i(26944),v=i(53665),A=i(28688),j=i(34165),F=i(60905),I=i(23588),C=i(83383);let k=e=>{var t,i,p;let{isOverlay:k,overlayKeywords:S,gamesList:N,isAppPage:T,style:E={}}=e,{t:D}=(0,s.B)(),[P,z]=(0,a.useState)([]),[B,R]=(0,a.useState)([]),[L,O]=(0,a.useState)(0),[H,_]=(0,a.useState)([]),[M,U]=(0,a.useState)(""),G=(0,l.wA)(),[Q,W]=(0,a.useState)([]),[q,V]=(0,a.useState)(""),[X,Y]=(0,a.useState)([]),{videoRef:J}=o.A.getState().play,$=null==J?void 0:J.current,[Z,K]=(0,a.useState)({top:(null==$?void 0:$.getBoundingClientRect().bottom)||0,width:(null==$?void 0:$.getBoundingClientRect().width)||0,left:(null==$?void 0:$.getBoundingClientRect().left)||0,right:(null==$?void 0:$.getBoundingClientRect().right)||0,height:(null==$?void 0:$.getBoundingClientRect().height)||0}),ee=(0,l.d4)(e=>e.ads.inGameAd),et=(0,l.d4)(e=>e.play.orientation),ei=(0,l.d4)(e=>e.play.isGamePlayerOnFromAppPage),en=null==(p=null==(i=null==(t=h.Ay.appInfo)?void 0:t.playFeFeatures)?void 0:i.uiConfig)?void 0:p.enableSearch,er=ee===g.z_4?4:8,[eo,ea]=(0,a.useState)([]),el=e=>{if(e){let t=[];for(let i=0;ie.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(e,t)=>0==+e?"":0===t?e.toLowerCase():e.toUpperCase());(0,a.useEffect)(()=>{T||(0,x.sx)(g.wHH,{element:g.YiN,state:"Open"}),function(e,t,i,n){new(i||(i=Promise))(function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function l(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})}(void 0,void 0,void 0,function*(){var e;let t=[];t=null==(e=yield(0,h.gA)())?void 0:e.searchGamesList,N?el([...N.topApps,...N.otherApps,...N.topBarApps,...N.remainingApps]):el(t);let i=t.filter(e=>e.appId!==h.Ay.appInfo.appId),n=i.filter(e=>e.appId===g.$jL);n.length>0&&ea(n),R(i)})},[]);let ed=()=>{let{consoleHeaderRef:e,videoRef:t}=o.A.getState().play;setTimeout(()=>{let e=null==t?void 0:t.current;e&&K({top:null==e?void 0:e.getBoundingClientRect().bottom,width:null==e?void 0:e.getBoundingClientRect().width,left:null==e?void 0:e.getBoundingClientRect().left,right:null==e?void 0:e.getBoundingClientRect().right,height:null==e?void 0:e.getBoundingClientRect().height})}),e&&e.current&&O(e.current.clientHeight)},ec=u()(ed,100);(0,a.useEffect)(()=>(ed(),(0,h.a2)()?window.addEventListener("resize",ec):window.addEventListener("resizeDone",ec),()=>{(0,h.a2)()?window.removeEventListener("resize",ec):window.removeEventListener("resizeDone",ec)}),[]);let ep=(e,t)=>{T||(0,x.sx)(g.wHH,{element:"".concat(g.tqQ,"Input"),input:e,hasResult:t})},eu=e=>{if(U(e),""===e){_([]),ep("",!1);return}let t=e.toLowerCase().split(/\s+/),i=(null==P?void 0:P.filter(e=>{let{appName:i}=e;return t.every(e=>null==i?void 0:i.toLocaleLowerCase().includes(e))})).filter((e,t,i)=>t===i.findIndex(t=>t.appName===e.appName));_(i||[]),ep(e,i.length>0)};(0,a.useEffect)(()=>{void 0!==S&&eu(S)},[S]);let eh=()=>{G({type:d.A.MODAL_STATUS,payload:{showExploreGamesOverlay:!1}})},eg="";return(0,h.a2)()&&(h.Ay.isAppPage?ei&&(0,f.Ti)()&&(eg="fit-app-page-html"):eg="fit-html"),(0,n.jsxs)(F.SR,{className:eg,style:k?{}:Object.assign({top:(0,h.a2)()&&!h.Ay.isAppPage?L:ee===g.z_4?Z.top-Z.height:"0px",bottom:"0px",left:(0,h.a2)()||et!==m.QB.landscape?"":Z.left,height:ee!==g.z_4||(0,h.a2)()?"":Z.height,width:et!==m.QB.landscape||(0,h.a2)()||T?"":Z.width},E),isOverlay:k,isAppPage:T,children:[(0,n.jsx)(c.A,{id:"icon-cross-thin",name:"cross-thin",size:20,onClick:eh}),!k&&en&&(0,n.jsx)(r.A,{autoFocus:h.Ay.isHomePage,onChange:eu,onBlur:e=>ep(e,H.length>0)}),Q.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"selected-category",children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{children:[D(es(q.toLowerCase()),{defaultValue:q}),"\xa0",D("games")]}),(0,n.jsx)(c.A,{name:"cross-thin",size:16,onClick:()=>{V(""),W([])}})]})}),(0,n.jsxs)(C.hE,{children:[D("showingResults"),"\xa0",(0,n.jsxs)("b",{children:[D(es(q.toLowerCase()),{defaultValue:q}),"\xa0",D("games")]})]}),(0,n.jsx)(I.r,{ntmSource:"CategorySearchResult",tileType:"default",gameList:Q,media:"tile",type:"link",kname:"search-rows",element:"".concat(g.tqQ,"Input"),onGameClick:()=>ep(M,!0),playCurrentGame:eh,openPlayPageUrl:!!h.Ay.isAppPage},"search-rows-gg")]}):null,H.length>0?(0,n.jsxs)(F.nB,{children:[(0,f.Fr)()&&(0,n.jsxs)(F.QP,{style:{textAlign:"center"},children:[(0,n.jsx)("span",{children:D("resultsFor")}),(0,n.jsx)("span",{children:M})]}),(0,n.jsx)(I.r,{ntmSource:"SearchResult",type:"link",playCurrentGame:eh,gameList:H,tileType:"default",media:"tile",kname:"search-tile",element:"".concat(g.tqQ,"Result"),onGameClick:()=>ep(M,!0),openPlayPageUrl:!0,id:"ng-search-games-list"},"search-tile-gg")]}):null,0!==H.length||q?null:(0,n.jsxs)(n.Fragment,{children:[M?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F.lr,{children:(0,n.jsx)(w.fI,{style:{color:A.JX.colors.white60},children:D("appUnavailable",{appName:M})})}),eo[0]&&(0,n.jsxs)(F.xT,{onClick:()=>{(0,f.rZ)(M)},children:[(0,n.jsxs)(v.Zl,{gap:"8",children:[(0,n.jsx)("img",{alt:"Aptoid ".concat(D("logo")),src:(0,y._w)(b.A),style:{width:"20px",height:"20px"}}),(0,n.jsx)(w.fI,{children:D("sideloadAndPlay")})]}),(0,n.jsx)(j.Q,{})]})]}):(0,n.jsx)("ul",{className:"genre-list",children:X.map(e=>(0,n.jsxs)("li",{className:"genre-list-item",onClick:()=>((e,t)=>{let i=t.filter(t=>t.appGenre&&t.appGenre===e);V(e),W(i)})(e,B),children:[D(es(e.toLowerCase()),{defaultValue:e}),"\xa0",D("games")]}))}),(!M||M&&!eo[0])&&(0,n.jsxs)("div",{className:"trending-section",children:[(0,n.jsx)(C.hE,{style:{textAlign:"center",marginBottom:"50px"},children:M?D("tryOtherGames"):D("trendingThisWeek")}),(0,n.jsx)(I.r,{ntmSource:"SearchTrendingGames",kname:"search-recommend",playCurrentGame:eh,gameList:B.slice(er,er+5),tileType:"default",element:"".concat(g.YiN,"Recommendation"),alignCenter:!0,openPlayPageUrl:!!h.Ay.isAppPage},"search-recommend")]})]})]})},S=k},65608:(e,t,i)=>{i.d(t,{_:()=>o});var n=i(71278),r=i(41543);let o=e=>{n.A.dispatch({type:r.A.GET_SUPPORT}),e&&n.A.dispatch({type:r.A.SET_ERROR_TYPE,payload:{errorType:e}})}},77505:(e,t,i)=>{i.d(t,{A:()=>n});let n={src:"/_next/static/media/bulb-yellow.b465976e.svg",height:17,width:16,blurWidth:0,blurHeight:0}},90066:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(37876),r=i(98684);let o=r.Ay.div.withConfig({componentId:"sc-f8c622b4-0"})(["width:100%;padding:0vw calc(var(--vw,1vw) * 3.86);display:flex;justify-content:center;align-items:center;position:absolute;bottom:0px;&.non-testdrive-ui{border-top:",";justify-content:space-between;}.footerText{text-align:right;color:",";margin:0px;}.textRight{margin-left:auto;}"],e=>{let{theme:t}=e;return t.border.base3},e=>{let{theme:t}=e;return t.colors.white40}),a=r.Ay.div.withConfig({componentId:"sc-f8c622b4-1"})(["background:url(",") 50% / cover no-repeat;width:260px;height:64px;display:flex;justify-content:center;"],e=>e.bgImage);var l=i(33884),s=i(26875),d=i(69978);let c={src:"/_next/static/media/nglogo-footer-bg.601ada43.webp"};var p=i(29359),u=i(56047),h=i(42920);let g=e=>{var t,i,r,g,x,m,f,w,y,b;let{breakFooterText:v}=e,{t:A}=(0,s.B)(),j=null==(i=null==(t=p.Ay.appInfo)?void 0:t.playFeFeatures)?void 0:i.enableTestDriveUi,F=(0,h.kj)(),I=(0,u.P0)(F),C=null==(m=null==(x=null==(g=null==(r=p.Ay.appInfo)?void 0:r.playFeFeatures)?void 0:g.uiConfig)?void 0:x.footer)?void 0:m.enableBrandLogo,{isEnabled:k,altText:S}=(null==(w=null==(f=null===p.Ay||void 0===p.Ay?void 0:p.Ay.appInfo)?void 0:f.playFeFeatures)?void 0:w.customFooterLogo)||{},N=null==(y=p.Ay.countryFooterLogo)?void 0:y.horizontal;return(0,n.jsx)(o,{className:"copyright-footer ".concat(j?"":"non-testdrive-ui"),children:j?(0,u.xl)()?(0,n.jsx)(a,{bgImage:c.src,children:(0,n.jsx)("img",{id:"ng-logo",width:110.6,height:28,src:k?N:(0,d.A)("light","horizontal",!1),alt:S||"now.gg ".concat(A("logo")),style:{margin:"18px 0px"}})}):null:(0,n.jsxs)(n.Fragment,{children:[C&&(0,n.jsx)("img",{id:"ng-logo",width:110.6,height:28,src:k?null==(b=p.Ay.countryFooterLogo)?void 0:b.horizontal:(0,d.A)("light","horizontal",!0),alt:S||"now.gg ".concat(A("logo")),style:{margin:"18px 0px"}}),!I&&!(0,u.IV)()&&(0,n.jsxs)(l.YC,{className:"footerText ".concat(k&&!N?"textRight":""),children:[A("copyright",{year:new Date().getFullYear()}),v&&(0,n.jsx)("br",{}),A("disclaimerSub1")]})]})})}}}]); //# sourceMappingURL=6248.fbdd637d3462e075.js.map