PageSourceSearch

https://now.gg/1/play/assets/_next/static/chunks/3328.c2abb8b9602f2636.js

js now.gg collected 2026-10-01 10:28:48 UTC 28,974 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3328],{141:e=>{e.exports=function(e,t){return e>t}},1708:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={src:"/_next/static/media/redirect-arrow.e966dafd.webp",height:64,width:65,blurDataURL:"data:image/webp;base64,UklGRnoAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDQAAAABYBPbVpxbsvuAjoqSwUjmO8imAUtZdEVCwENETABztYhIGqxfBwjv+fNPLR3U1Rhk8JE5VlA4ICAAAAAwAQCdASoIAAgAAkA4JaQAA3AA/vqCFaWCLWn34AAAAA==",blurWidth:8,blurHeight:8}},20624:(e,t,n)=>{var r=n(29257),o=n(141),i=n(27148);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},21159:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={src:"/_next/static/media/round-loader.ec0f091e.svg",height:32,width:32,blurWidth:0,blurHeight:0}},61992:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={src:"/_next/static/media/now-bux-icon-3.8f36fd75.webp",height:38,width:39,blurDataURL:"data:image/webp;base64,UklGRq4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDsAAAABYFtbW5N3qKlDDTWbYE5bO4Iz6AAe8g4RoTZtA8aeUi4BORwG8E+M74q4Y4zxU/aP1ct19KG/gAyHBgBWUDggTAAAABACAJ0BKggACAACQDglsAJ0ugADGhs4f+AA/vYkywKLxXvtaczRnOz7jez1bsg5BXLQrH/0YkPxAPb6z/8qJ3bP+r3A1YEJzLSgAAA=",blurWidth:8,blurHeight:8}},82874:(e,t,n)=>{"use strict";n.d(t,{A:()=>eb});var r=n(37876),o=n(26875),i=n(14232),l=n(74678),c=n(47030),a=n(21159);let s={src:"/_next/static/media/secure-payment.24624943.webp",height:128,width:286,blurDataURL:"data:image/webp;base64,UklGRj4AAABXRUJQVlA4IDIAAADQAQCdASoIAAQAAkA4JZwCdAEf/83+BAD++UBfok++SakxlrvuYPjf1VIWyZEB45TAAA==",blurWidth:8,blurHeight:4},d={src:"/_next/static/media/secure-ssl-payment.ec254ed3.webp",height:128,width:345,blurDataURL:"data:image/webp;base64,UklGRmoAAABXRUJQVlA4WAoAAAAQAAAABwAAAgAAQUxQSBkAAAAAHTwAAAAAAACQyW90YXB7YX2/Uk5QUElLAFZQOCAqAAAAkAEAnQEqCAADAAJAOCWkAALnUAwQAP6F4aTev58SmEXSlH9P+gT/AAAA",blurWidth:8,blurHeight:3};var p=n(61992);let A={src:"/_next/static/media/info.ee0dbd1b.webp",height:64,width:64,blurDataURL:"data:image/webp;base64,UklGRp4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSEEAAAAAACmgoaGiKQAppw8AAA+nKaIPAEhHAA+goQAALi4AAKGhAABQUAAAoaAPAEpKAA+iKacPAAAPpykAKaKhoaApAABWUDggNgAAANABAJ0BKggACAACQDglqAJ0ugEt/A9QAP7x/9/87UO1Y1R/8NBB/bR+Of8zgvlwa6LCeAAAAA==",blurWidth:8,blurHeight:8};var h=n(1615),u=n(32743),x=n(80549),g=n(79682),f=n(44498),m=n(54551),y=n(46222),w=n(96911),b=n(86360),v=n(94733),j=n(34961),I=n(26617),C=n(61120),S=n(64320),P=n(6196),k=n(91226),E=n(81007),T=n(52605),N=n(20624),U=n.n(N),B=n(70670),D=n.n(B),Q=n(36816),_=n(98684);let R=_.Ay.div.withConfig({componentId:"sc-baee8b42-0"})(["display:flex;width:360px;min-height:505px;flex-direction:column;align-items:center;flex-shrink:0;border-radius:12px;border:1px solid ",";background:rgba(0,0,0,0.05);backdrop-filter:blur(60px);max-width:100%;&.landscape{height:100%;width:100%;min-height:380px;border:none;align-self:baseline;border-radius:0px;}&.jpHomePage{border:none;}"],e=>{let{theme:t}=e;return t.colors.white10}),H=_.Ay.div.withConfig({componentId:"sc-baee8b42-1"})(["display:flex;padding:11px 12px 11px 20px;justify-content:space-between;align-items:center;align-self:stretch;background:",";color:",";border-radius:12px 12px 0px 0px;&.landscape{border-radius:0px;}&.jpHomePage{border:1px solid ",";}i{cursor:pointer;padding:4px;border-radius:6px;&:hover{background:",";}}"],e=>{let{theme:t}=e;return t.colors.white20},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.white10}),W=_.Ay.div.withConfig({componentId:"sc-baee8b42-2"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 20px;width:100%;gap:20px;&.landscape{border-radius:0px;flex-direction:row;padding:24px;gap:40px;height:100%;}&.small{overflow:auto;}button{height:56px;width:100%;}"]),J=_.Ay.div.withConfig({componentId:"sc-baee8b42-3"})(["display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;color:",";&.landscape{h3{font-size:20px;font-weight:600;line-height:150%;}}&.paymentTypes{flex-direction:column;text-align:center;}&.row{flex-direction:row;}.now-bux-img{width:32px;height:32px;}.now-prime-img{width:56px;height:56px;}"," &.purchase-now-bux.landscape{flex-direction:column;gap:0;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{paymentInProgress:t}=e;return t?(0,_.AH)(["justify-content:center;div{flex:unset;}"]):(0,_.AH)(["div{flex:1;}"])}),L=_.Ay.div.withConfig({componentId:"sc-baee8b42-4"})(["display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;color:",";&.landscape{border-radius:24px;border:1px solid ",";padding:16px;}"],e=>{let{theme:t}=e;return t.colors.caution}
1,e=>{let{theme:t}=e;return t.colors.white10}),M=_.Ay.div.withConfig({componentId:"sc-baee8b42-5"})(["display:flex;flex-direction:column;flex:1;"]),O=_.Ay.div.withConfig({componentId:"sc-baee8b42-6"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;align-self:stretch;color:",";align-items:flex-start;margin-bottom:16px;"],e=>{let{theme:t}=e;return t.colors.white}),z=_.Ay.div.withConfig({componentId:"sc-baee8b42-7"})(["display:flex;padding:7px 12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:4px;border:1px solid ",";gap:8px;cursor:pointer;img{width:48px;height:28px;margin:4px 0px;}p{flex:1;}&.selected{border:1px solid ",";background:",";}"],e=>{let{theme:t}=e;return t.colors.white10},e=>{let{theme:t}=e;return t.colors.ascent},e=>{let{theme:t}=e;return t.colors.white10}),X=_.Ay.div.withConfig({componentId:"sc-baee8b42-8"})(["background:rgba(255,255,255,0.1);height:1px;width:100%;"]),V=_.Ay.div.withConfig({componentId:"sc-baee8b42-9"})(["display:flex;flex-direction:row;gap:6px;color:",";align-items:center;justify-content:center;width:100%;div{margin:0px;}"],e=>{let{theme:t}=e;return t.colors.white}),Y=_.Ay.div.withConfig({componentId:"sc-baee8b42-10"})(["display:flex;flex-direction:column;align-items:center;gap:8px;color:",";&.landscape{max-width:320px;align-self:center;}h3{font-size:20px;font-weight:700;}p{color:",";text-align:center;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white70}),F=_.Ay.div.withConfig({componentId:"sc-baee8b42-11"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;align-self:center;width:128px;height:128px;color:",";svg{position:absolute;top:0;left:0;width:128px;height:128px;transform:translate(12px,-17px) rotateZ(-90deg);overflow:visible;}&.landscape-modal{justify-content:flex-start;svg{width:95px;height:95px;}}"],e=>{let{theme:t}=e;return t.colors.white}),G=_.Ay.div.withConfig({componentId:"sc-baee8b42-12"})(["display:flex;flex-direction:column;align-items:center;gap:8px;color:",";margin-top:8px;"],e=>{let{theme:t}=e;return t.colors.white}),q=_.Ay.div.withConfig({componentId:"sc-baee8b42-13"})(["display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;row-gap:0px;a{text-decoration:none;}"]),K=(0,_.i7)(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]),Z=_.Ay.img.withConfig({componentId:"sc-baee8b42-14"})(["animation:"," 1s linear infinite;align-self:center;width:72px;height:72px;margin:24px 0px;"],K),$=_.Ay.div.withConfig({componentId:"sc-baee8b42-15"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:12px;align-self:stretch;color:",";align-items:flex-start;margin-bottom:24px;height:156px;overflow-y:scroll;padding-right:4px;&::-webkit-scrollbar{display:block;width:4px;}::-webkit-scrollbar-thumb{background:",";border-radius:10px;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white20}),ee=_.Ay.div.withConfig({componentId:"sc-baee8b42-16"})(["display:flex;align-items:center;justify-content:center;gap:12px;opacity:0.6;align-self:normal;"]),et=_.Ay.img.withConfig({componentId:"sc-baee8b42-17"})(["height:32px;mix-blend-mode:lighten;"]),en=_.Ay.div.withConfig({componentId:"sc-baee8b42-18"})(["display:flex;gap:8px;color:",";"],e=>{let{theme:t}=e;return t.colors.caution});_.Ay.ul.withConfig({componentId:"sc-baee8b42-19"})(["color:",";padding-inline-start:16px;margin:0px;"],e=>{let{theme:t}=e;return t.colors.caution});let er=_.Ay.div.withConfig({componentId:"sc-baee8b42-20"})(["display:flex;gap:16px;justify-content:center;flex-direction:column;&.landscape{width:50%;height:100%;}"]),eo=_.Ay.div.withConfig({componentId:"sc-f01145ab-0"})(["display:flex;align-items:center;cursor:pointer;border:1px solid ",";width:20px;height:20px;border-radius:50%;img{width:21px;height:21px;}"],e=>{let{theme:t}=e;return t.colors.white50}),ei=e=>{let{selected:t}=e;return(0,r.jsx)(eo,{children:t&&(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,r.jsx)("circle",{cx:"10.2348",cy:"10.2353",r:"10.4",fill:"#B3D661"}),(0,r.jsx)("path",{d:"M5.4679 9.96527L8.5368 13.3842C8.68912 13.5539 8.95501 13.5539 9.10733 13.3842L15.4346 6.33532",stroke:"white",strokeWidth:"1.51667",strokeLinecap:"round",strokeLinejoin:"round"})]})})},el={src:"/_next/static/media/cloudy-error.9a98e7de.webp",height:439,width:512,blurDataURL:"data:image/webp;base64,UklGRrwAAABXRUJQVlA4WAoAAAAQAAAABwAABgAAQUxQSDkAAAABYFNbW5uPDRHMzBym7iYncxTEQZxl7EVG71VEREwAEFH8cukZABVm1xqQ+PpN+r+h/OtEum7b1joAVlA4IFwAAAAQAgCdASoIAAcAAkA4JbACdAaTA2kFgLeAAP715m4ejeDvSx8x9dJdC8ktMJNJ5mffOgivkvzohTjCsz0vZDtMpX0Yf5kXqkHvs+E229KoiIwAyH2NqBn8j5AAAA==",blurWidth:8,blurHeight:7},ec=_.Ay.div.withConfig({componentId:"sc-28f4bfb2-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:446px;width:100%;gap:32px;&.landscape{flex-direction:row;height:100%;}h3{color:",";font-size:24px;line-height:28px;font-weight:700;}"],e=>{let{theme:t}=e;return t.colors.white}),ea=_.Ay.img.withConfig({componentId:"sc-28f4bfb2-1"})(["width:128px;height:110px;"]),es=_.Ay.div.withConfig({componentId:"sc-28f4bfb2-2"})(["display:flex;flex-direction:column;align-items:center;width:100%;flex:1;"]),ed=_.Ay.div.withConfig({componentId:"sc-28f4bfb2-3"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;p{color:",";}h3{font-size:20px;}"],e=>{let{theme:t}=e;return t.colors.white70}),ep=_.Ay.div.withConfig({componentId:"sc-28f4bfb2-4"})(["margin:0px 16px;"]),eA=(0,_.Ay)(l.M5).attrs({as:"span"}).withConfig({componentId:"sc-28f4bfb2-5"})(["color:",";.link{color:",";cursor:pointer;}"],e=>{let{theme:t}=e;return t.colors.white70},e=>{let{theme:t}=e;return t.colors.link}),eh=_.Ay.div.withConfig({componentId:"sc-28f4bfb2-6"})(["display:flex;flex-direction:column;align-items:center;gap:20px;"]),eu=_.Ay.div.withConfig({componentId:"sc-28f4bfb2-7"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:32px;width:100%;&.landscape{width:50%;}"]),ex={cancel:{titleImg:el,titleText:"cancelTransaction",errorDesc:"confirmCancellation"},timeout:{titleImg:el,titleText:"paymentIncomplete",errorDesc:"paymentIncompleteDesc"},failure:{titleImg:{src:"/_next/static/media/cloudy-sad.10d3dc46.webp",height:513,width:512,blurDataURL:"data:image/webp;base64,UklGRr4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDQAAAABYBVJVqNHMoMQChs4QwhYSAIeIjJ/l09DREwA/NQxKABh2nFUI+zxavfbTm9ZOkQsXsInVlA4IGQAAACQAgCdASoIAAgAAkA4JbACdAYZfqAH6gGp+yljUAD+8uXdV9/KnNvCw1zLVsSioyQ9sSXsZK5/HUZ1zLQ/GX2/8rJhC+oqQOHuYtqfYa+WYZwV8dccKoXZX+Y+7QpI8+620WAA",blurWidth:8,blurHeight:8},titleText:"paymentFailed",errorDesc:"paymentFailedDesc"}},eg=e=>{let{type:t,onClose:n,onNoCancellation:a,orderNo:s,orientation:d}=e,{t:p}=(0,o.B)(),A=ex[t],h=(0,b.Fr)()&&!(0,b.v1)()&&!(0,b.bh)(),[u,x]=(0,i.useState)(d===C.QB.landscape&&h);return(0,i.useEffect)(()=>{x(d===C.QB.landscape&&h)},[d]),(0,r.jsxs)(ec,{className:"".concat(u?"landscape":""),children:[(0,r.jsxs)(eu,{className:"".concat(u?"landscape":""),children:[(0,r.jsx)(es,{children:(0,r.jsx)(ea,{src:(0,c._w)(A.titleImg),alt:"error"})}),(0,r.jsxs)(ed,{children:[(0,r.jsx)(l.IT,{children:p(A.titleText)}),(0,r.jsx)(l.Dp,{children:p(A.errorDesc)})]}),"failure"===t&&(0,r.jsxs)(ed,{children:[(0,r.jsx)(l.IT,{style:{fontSize:"16",fontWeight:"600"},children:p("orderNo")}),(0,r.jsx)(l.Dp,{children:s})]})]}),(0,r.jsx)(eu,{children:(0,r.jsxs)(eh,{children:["cancel"!==t&&(0,r.jsxs)(ep,{children:[(0,r.jsx)(eA,{children:p("reachOutIfCharged")}),(0,r.jsxs)(eA,{style:{color:m.JX.colors.link},children:[" ",(0,r.jsx)("a",{className:"link",href:"mailto:[email protected]",target:"_blank",rel:"noreferrer",children:"[email protected]"})]})]}),(0,r.jsx)(g.$,{variant:"primary",size:"xlarge",onClick:n,children:p("cancel"===t?"confirm":"close")}),"cancel"===t&&(0,r.jsx)(g.$,{variant:"primaryOutline",size:"xlarge",onClick:a,children:p("dontCancel")})]})})]})};var ef=n(1708);let em=_.Ay.div.withConfig({componentId:"sc-e21ec3c7-0"})(["display:flex;padding:0px 8px 32px 8px;flex-direction:column;align-items:center;gap:8px;align-self:stretch;border-bottom:1px solid ",";p{color:",";}button{max-width:190px;}"],e=>{let{theme:t}=e;return t.colors.white10},e=>{let{theme:t}=e;return t.colors.ascent}),ey=e=>{let{url:t}=e,{t:n}=(0,o.B)();return(0,r.jsxs)(em,{children:[(0,r.jsx)(l.M5,{children:n("noPaymentPage")}),(0,r.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",style:{width:"auto",textDecoration:"none"},children:(0,r.jsxs)(g.$,{variant:"primary",size:"medium",disabled:""===t,children:[n("showPaymentScreen"),(0,r.jsx)("img",{alt:"",loading:"lazy",src:(0,c._w)(ef.A),width:16,height:16})]})})]})};
1var ew=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function l(e){try{a(r.next(e))}catch(e){i(e)}}function c(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(l,c)}a((r=r.apply(e,t||[])).next())})};let eb=e=>{let{product:t,onFailure:n,source:N,paymentsToken:B,paymentsGuid:_,paymentOptions:K,orientation:eo,isLandscapeModal:el,isNowBuxPaymentFlow:ec=!1,handlePurchaseNowBuxSuccess:ea=e=>{},nowBuxPaymentDetails:es,subscriptionId:ed,paymentOptionsLoading:ep=!0}=e,{t:eA}=(0,o.B)(),[eh,eu]=(0,i.useState)(),[ex,ef]=(0,i.useState)(!0),em=104*Math.PI,[eb,ev]=(0,i.useState)(599),ej=(0,i.useRef)(599);ej.current=eb;let[eI,eC]=(0,i.useState)(!1),[eS,eP]=(0,i.useState)(""),[ek,eE]=(0,i.useState)("".concat(parseInt("".concat(eb/60),10)," : ").concat(eb%60<10?"0":"").concat(eb%60)),eT=(0,i.useRef)(),[eN,eU]=(0,i.useState)(""),eB=(0,S.wA)(),eD=(0,S.d4)(e=>e.play.paymentAppId),eQ=(0,S.d4)(e=>e.play.nowPremiumSubscriptionActive),[e_,eR]=(0,i.useState)("");(0,b.Fr)()&&!(0,b.v1)()&&(0,b.bh)();let[eH,eW]=(0,i.useState)(((eo===C.QB.landscape?D()([window.innerHeight,window.innerWidth]):U()([window.innerHeight,window.innerWidth]))||window.innerHeight)-56),eJ=(0,S.d4)(e=>e.play.paymentInProgress),eL=()=>{eW(((eo===C.QB.landscape?D()([window.innerHeight,window.innerWidth]):U()([window.innerHeight,window.innerWidth]))||window.innerHeight)-56)},eM=e=>{if(!P.A.getState().play.paymentInProgress)return null;let t="Your Payment won't be completed";return e.returnValue=t,e.preventDefault(),t};(0,i.useEffect)(()=>((0,T.sx)("PaymentMethodSelectionDisplayed",{nowPassSource:N,planType:t.type}),window.addEventListener("resize",eL),window.addEventListener("orientationchange",eL),window.addEventListener("beforeunload",eM),()=>{window.removeEventListener("resize",eL),window.removeEventListener("orientationchange",eL),window.removeEventListener("beforeunload",eM)}),[]),(0,i.useEffect)(()=>{eL()},[eo]),(0,i.useEffect)(()=>{!eh&&K.length>0&&eu(K[0])},[K]);let eO=(e,n)=>{let r="".concat(I.Ay.appInfo.paymentBaseRedirectHost,"/user/payment/iappay.html#&").concat(new URLSearchParams({payType:"".concat((null==eh?void 0:eh.id)||0),payName:"".concat((null==eh?void 0:eh.payType)||0),productId:"".concat(t.productId),orderNo:e,countryCode:I.Ay.countryCode||"IN",CountryRegionCode:I.Ay.countryCode||"IN",postalCode:"OTHERS",subscriptionId:n,guid:_||"",appid:t.appId,inGameId:"null",deviceType:(0,b.el)().feDeviceType,platform:"cloud"}).toString());eU(r),window.open(r,"_blank","noopener")},ez=e=>ew(void 0,void 0,void 0,function*(){var n,r;if(ev(e=>e-1),ej.current%10==0){let o;try{if((o=yield v.A.pollPaymentStatus({},{appId:I.Ay.appInfo.appId,channel:"nowgg_cloud",orderNo:e,timestamp:Date.now(),token:B})).success&&o.data.INAPP_PURCHASE_STATUS)if(o.data.INAPP_PURCHASE_STATUS.toString()===j.WM_.success){if(ec){eT.current&&clearInterval(eT.current),ea(e);return}(0,b.Vv)(!1);let i=yield(0,E._T)({productId:t.productId,orderNumber:e,purchaseToken:null==(r=null==(n=null==o?void 0:o.data)?void 0:n.INAPP_PURCHASE_DATA)?void 0:r.purchaseToken,token:B});if(i.status===C.wD.Success)eT.current&&clearInterval(eT.current),(0,b.Vv)(!0),eB({type:k.A.NOWPREMIUM_SUBSCRIPTION_STATUS,payload:{nowPremiumSubscriptionActive:!0,showSubscriptionEnabledModal:!0,showSubscriptionModal:!1,paymentInProgress:!1}}),(0,E.vS)(i.subscriptionInfo);else throw Error("confirmSubscription API error: ".concat(JSON.stringify(i)))}else o.data.INAPP_PURCHASE_STATUS.toString()===j.WM_.fail&&(eT.current&&clearInterval(eT.current),eP("failure"),eC(!0))}catch(e){(0,h.Ay)(Error("pollPaymentStatus or confirmSubscription API error: ".concat(e)),{error:e})}}}),eX=()=>{ec?ew(void 0,void 0,void 0,function*(){var e;try{let n;if(eJ||eQ||!ed)return;(0,T.sx)("PayNowClicked",{nowPassSource:N,planType:t.type,paymentProvider:null==eh?void 0:eh.payType}),eB({type:k.A.SET_PAYMENT_STATUS,payload:{paymentInProgress:!0}});try{if(!(n=yield(0,Q.el)(t,B,(null==eh?void 0:eh.id)||0,(null==es?void 0:es.nowbuxDiff)||"")).success){if(1607===n.code&&(yield(0,E.O2)(eD,B)))return;throw Error("success false: ".concat(n))}}catch(e){throw Error("createNowBuxOrder API error: ".concat(e))}eO(null==(e=null==n?void 0:n.data)?void 0:e.orderNo,ed),eT.current=setInterval(()=>{var e;ez(null==(e=null==n?void 0:n.data)?void 0:e.orderNo)},1e3)}catch(e){(0,h.Ay)(Error("initiateNowBuxPurchase failed: ".concat(e)),{error:e})}}):ew(void 0,void 0,void 0,function*(){var e,n,r,o;
1if(!P.A.getState().play.paymentInProgress&&!P.A.getState().play.nowPremiumSubscriptionActive){(0,T.sx)("PayNowClicked",{nowPassSource:N,planType:t.type,paymentProvider:null==eh?void 0:eh.payType}),eB({type:k.A.SET_PAYMENT_STATUS,payload:{paymentInProgress:!0}});try{let i,l=(0,b.PG)("np",18).toLowerCase();try{if((i=yield v.A.createOrder({},{appId:eD,channelName:"nowgg_cloud",channel:"nowgg_cloud",countryRegionCode:"OTHERS",countryCode:I.Ay.countryCode||"IN",payType:(null==eh?void 0:eh.id)||0,postalCode:"OTHERS",productId:t.productId,timestamp:Date.now(),token:B,developerPayload:l})).success)(0,T.sx)(j.BeU,{payType:"".concat((null==eh?void 0:eh.id)||0),payName:"".concat((null==eh?void 0:eh.payType)||0),productId:"".concat(t.productId),orderNo:null==(e=null==i?void 0:i.data)?void 0:e.orderNo,countryCode:I.Ay.countryCode||"IN",CountryRegionCode:I.Ay.countryCode||"IN",postalCode:"OTHERS",guid:_||"",appid:t.appId,deviceType:(0,b.el)().feDeviceType,paymentsToken:B,paymentsGuid:_,subscriptionId:l}),eR(null==(n=null==i?void 0:i.data)?void 0:n.orderNo);else{if(1607===i.code&&(yield(0,E.O2)(eD,B)))return;throw Error("createOrder API error: ".concat(JSON.stringify(i)))}}catch(e){throw Error("createOrder API error: ".concat(e))}let{status:c,subscriptionInfo:a}=(yield(0,Q.pf)(t,B,null==(r=null==i?void 0:i.data)?void 0:r.orderNo,l))||{};if(c===C.pE.SubscriptionAlreadyInitiated&&a&&(yield(0,E.O2)(null==a?void 0:a.subscriptionAppId,B)))return;eO(null==(o=null==i?void 0:i.data)?void 0:o.orderNo,l),eT.current=setInterval(()=>{var e;ez(null==(e=null==i?void 0:i.data)?void 0:e.orderNo)},1e3)}catch(e){(0,h.Ay)(Error("Exception in Payment popup"),{error:e})}}})};return(0,i.useEffect)(()=>{eE("".concat(parseInt("".concat(eb/60),10)," : ").concat(eb%60<10?"0":"").concat(eb%60)),0===eb&&(eT.current&&clearInterval(eT.current),eC(!0),eP("timeout"))},[eb]),(0,r.jsxs)(R,{className:"".concat(el?"landscape":""," ").concat((null===I.Ay||void 0===I.Ay?void 0:I.Ay.isJpHomePage)?"jpHomePage":""),children:[(0,r.jsxs)(H,{className:"".concat(el?"landscape":""," ").concat((null===I.Ay||void 0===I.Ay?void 0:I.Ay.isJpHomePage)?"jpHomePage":""),children:[(0,r.jsx)("img",{src:(0,c._w)(u.A),alt:"",style:{width:"128px",height:"34px"}}),!eJ&&(0,r.jsx)(x.A,{name:"cross-thin",size:16,onClick:()=>{eP("cancel"),eC(!0)}})]}),(0,r.jsx)(W,{className:"".concat(el?"landscape":""," ").concat(eH<330?"small":""),children:eI?(0,r.jsx)(eg,{type:eS,onNoCancellation:()=>{eC(!1)},onClose:()=>{eC(!1),eB({type:k.A.SET_PAYMENT_STATUS,payload:{paymentInProgress:!1}}),n()},orderNo:e_,orientation:eo}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(er,{className:"".concat(el?"landscape":""),children:[(el&&!eJ||!el)&&(0,r.jsxs)(L,{className:"".concat(el?"landscape":""),children:[(0,r.jsxs)(J,{paymentInProgress:eJ,className:"\n                      ".concat(ec?"purchase-now-bux":""," \n                      ").concat(el?"landscape paymentTypes":""," \n                      ").concat(eH<330?"row":"","\n                      "),children:[ec?(0,r.jsx)("img",{className:"now-bux-img",height:"32px",src:(0,c._w)(p.A),alt:""}):(0,r.jsx)("img",{className:"now-prime-img",src:(0,c._w)(w.A),alt:""}),(0,r.jsxs)(M,{children:[ec?(0,r.jsxs)(l.e,{children:[null==es?void 0:es.nowbuxDiff," ","nowBux"]}):(0,r.jsx)(l.e,{children:eA("nowPrime")}),!ec&&(0,r.jsx)(l.M5,{style:{textTransform:"capitalize"},children:"".concat(eA(t.type)," ").concat(eA("pass"))})]}),!eJ&&(0,r.jsx)(l.EW,{children:ec?"".concat(null==es?void 0:es.symbol).concat(null==es?void 0:es.nowbuxDiffLocalPrice):"".concat(t.currencySymbol).concat(t.offerPrice)})]}),!eJ&&(0,r.jsx)(l.E2,{style:el?{}:{alignSelf:"baseline",marginLeft:60},children:eA((null===I.Ay||void 0===I.Ay?void 0:I.Ay.isJpHomePage)?"cancelToRefund":"subscriptionNotAutoRenew")})]}),!el&&(0,r.jsx)(X,{}),eJ?(0,r.jsxs)(r.Fragment,{children:[!el&&(0,r.jsxs)(Y,{children:[(0,r.jsx)(l.IT,{children:eA("paymentPending")}),(0,r.jsx)(l.Dp,{children:eA("completePayment")})]}),el&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(J,{paymentInProgress:eJ,className:"".concat(el?"landscape":""),children:[(0,r.jsx)("img",{src:(0,c._w)(w.A),alt:""}),(0,r.jsxs)(M,{children:[(0,r.jsx)(l.e,{children:eA("nowPrime")}),(0,r.jsx)(l.M5,{style:{textTransform:"capitalize"},children:"".concat(eA(t.type)," ").concat(eA("pass"))})]}),!eJ&&(0,r.jsx)(l.EW,{children:"".concat(t.currencySymbol).concat(t.offerPrice)})]}),(0,r.jsx)(X,{})]}),(0,r.jsxs)(F,{className:"".concat(el?"landscape-modal":""),children:[(0,r.jsx)(l.EW,{children:ek}),(0,r.jsx)(l.Dp,{children:eA("mins")}),(0,r.jsx)("svg",{children:(0,r.jsx)("circle",{cx:52,cy:52,r:52,fill:"none",stroke:m.JX.colors.white30,strokeWidth:12})}),(0,r.jsx)("svg",{children:(0,r.jsx)("circle",{strokeDasharray:em,strokeDashoffset:em-eb/599*em,r:52,cx:52,cy:52,fill:"none",stroke:m.JX.colors.ascent,strokeWidth:12})})]}),el&&(0,r.jsxs)(Y,{className:"".concat(el?"landscape":""),children:[(0,r.jsx)(l.IT,{children:eA("paymentPending")}),(0,r.jsx)(l.Dp,{children:eA("completePayment")})]}),!el&&(0,r.jsx)(ey,{url:eN}),!el&&(0,r.jsxs)(G,{children:[(0,r.jsx)(l.E2,{style:{color:"#FA832D"},children:eA("pleaseDontCloseTab")}),(0,r.jsxs)(q,{children:[(0,r.jsx)(y.A,{}),(0,r.jsx)(l.fI,{children:eA("checkingStatus")})]}),(0,r.jsxs)(q,{children:[(0,r.jsx)(l.M5,{children:eA("contact")}),(0,r.jsx)("a",{href:"mailto:[email protected]",children:(0,r.jsx)(l.M5,{style:{color:m.JX.colors.link},children:"[email protected]"})}),(0,r.jsx)(l.M5,{children:eA("help")})]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(O,{children:[!el&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Dp,{style:{color:m.JX.colors.white},children:eA("paymentMethods")}),(0,r.jsx)($,{children:K.length>0?K.map(e=>{var t,n;let o=null==(n=null==(t=e.name)?void 0:t.toLowerCase())?void 0:n.replaceAll(" ",""),i=eA(o)!==o;return(0,r.jsxs)(z,{onClick:()=>eu(e),className:eh!==e?"":"selected",children:[(0,r.jsx)("img",{src:e.logo,alt:""}),(0,r.jsx)(l.M5,{children:i?eA(o):e.name}),(0,r.jsx)(ei,{selected:eh===e})]})}):ep?(0,r.jsx)(Z,{alt:"".concat(eA("roundLoader")),src:(0,c._w)(a.A)}):(0,r.jsx)(l.M5,{style:{color:m.JX.colors.white,margin:"0 auto"},children:eA("noPaymentMethods")})})]}),(0,r.jsxs)(ee,{children:[(0,r.jsx)(et,{src:(0,c._w)(s)}),(0,r.jsx)(et,{src:(0,c._w)(d)})]})]}),!el&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(V,{children:[(0,r.jsx)(f.oV,{onChange:e=>ef(e.target.checked),checked:ex,children:(0,r.jsx)(l.E2,{children:eA("termsAccepted")})}),(0,r.jsx)(l.N_,{style:{fontSize:12,flex:1},target:"_blank",rel:"noopener noreferrer",href:"https://now.gg/terms-and-privacy.html#terms",children:eA("termsOfUse")})]}),(0,r.jsx)(g.$,{variant:"primary",disabled:!ex||eQ||!eh||!B,size:"xlarge",onClick:eX,children:ec?"".concat(eA("pay")," \n                          ").concat(null==es?void 0:es.symbol).concat(null==es?void 0:es.nowbuxDiffLocalPrice):"".concat(eA("pay")," ").concat(t.currencySymbol).concat(t.offerPrice)})]}),(0,r.jsxs)(en,{children:[(0,r.jsx)("img",{src:(0,c._w)(A),alt:eA("infoIcon"),width:16,height:16}),(0,r.jsx)(l.E2,{children:eA("redirectForPayment")})]})]})]}),el&&(0,r.jsx)(er,{className:"".concat(el?"landscape":""),children:eJ?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ey,{url:eN}),(0,r.jsxs)(G,{children:[(0,r.jsx)(l.E2,{style:{color:"#FA832D"},children:eA("pleaseDontCloseTab")}),(0,r.jsxs)(q,{children:[(0,r.jsx)(y.A,{}),(0,r.jsx)(l.fI,{children:eA("checkingStatus")})]}),(0,r.jsxs)(q,{children:[(0,r.jsx)(l.M5,{children:eA("contact")}),(0,r.jsx)("a",{href:"mailto:[email protected]",children:(0,r.jsx)(l.M5,{style:{color:m.JX.colors.link},children:"[email protected]"})}),(0,r.jsx)(l.M5,{children:eA("help")})]})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Dp,{style:{color:m.JX.colors.white},children:eA("paymentMethods")}),(0,r.jsx)($,{children:K.length>0?K.map(e=>(0,r.jsxs)(z,{onClick:()=>eu(e),className:eh!==e?"":"selected",children:[(0,r.jsx)("img",{src:e.logo,alt:""}),(0,r.jsx)(l.M5,{children:e.name}),(0,r.jsx)(ei,{selected:eh===e})]})):ep?(0,r.jsx)(Z,{alt:"".concat(eA("roundLoader")),src:(0,c._w)(a.A)}):(0,r.jsx)(l.M5,{style:{color:m.JX.colors.white},children:eA("noPaymentMethods")})}),(0,r.jsxs)(V,{children:[(0,r.jsx)(f.oV,{onChange:e=>ef(e.target.checked),checked:ex,children:(0,r.jsx)(l.E2,{children:eA("termsAccepted")})}),(0,r.jsx)(l.N_,{style:{fontSize:12,flex:1},target:"_blank",rel:"noopener noreferrer",href:"https://now.gg/terms-and-privacy.html#terms",children:eA("termsOfUse")})]}),(0,r.jsx)(g.$,{variant:"primary",disabled:!ex||eQ||!eh||!B,size:"xlarge",onClick:eX,children:ec?"".concat(eA("pay")," \n                          ").concat(null==es?void 0:es.symbol).concat(null==es?void 0:es.nowbuxDiffLocalPrice):"".concat(eA("pay")," ").concat(t.currencySymbol).concat(t.offerPrice)})]})})]})})]})}}
1,94323:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(14232),o=n(26617),i=n(52605),l=n(64320),c=n(34961),a=n(94733),s=n(1615),d=n(6196),p=n(91226),A=n(36816),h=n(81007);let u=new Map,x=function(e){let{source:t}=e,[n,x]=(0,r.useState)(!1),g=(0,l.d4)(e=>e.play.availableNowPasses),[f,m]=(0,r.useState)(g[0]),[y,w]=(0,r.useState)(""),[b,v]=(0,r.useState)(""),[j,I]=(0,r.useState)([]),[C,S]=(0,r.useState)(!1),P=(0,l.wA)();(0,r.useEffect)(()=>{(0,i.sx)("NowPassPlanViewed",{nowPassSource:t}),g.length<1&&P(A.lI)},[]),(0,r.useEffect)(()=>{(null==g?void 0:g.length)>1&&m(g[0])},[null==g?void 0:g.length]);let k=(0,r.useCallback)(e=>{var t,n,r,i;return t=this,n=void 0,r=void 0,i=function*(){var t;let n=d.A.getState().play.paymentAppId,r=(null==e?void 0:e.appId)||n,i=null==e?void 0:e.category;if(r&&i){n!==r&&P({type:p.A.NOWPREMIUM_SUBSCRIPTION_STATUS,payload:{paymentAppId:r}}),w(""),v(""),I([]),S(!0);try{let e=yield(0,h.mw)(r);if(!e.success)throw Error("silenceCallback API error: ".concat(JSON.stringify(e)));w(e.data.token),v(e.data.guid);let n=yield((e,t,n)=>{let r="".concat(e,":").concat(t),i=u.get(r);if(i)return i;let l=a.A.payTypeSupportedList({},Object.assign({appId:e,channelName:"nowgg_cloud",clientType:5,countryRegionCode:"OTHERS",countryCode:o.Ay.countryCode||"US",flag:2,token:n,useType:2,channel:"nowgg_cloud"},"subscription"===t?{type:"subs"}:{}));return u.set(r,l),l.then(e=>{(null==e?void 0:e.success)||u.delete(r)},()=>u.delete(r)),l})(r,i,e.data.token);n.success&&I((null==(t=null==n?void 0:n.data)?void 0:t.data)||[])}catch(e){(0,s.Ay)(Error("fetchPaymentInfoForPass failed: ".concat(e)))}finally{S(!1)}}},new(r||(r=Promise))(function(e,o){function l(e){try{a(i.next(e))}catch(e){o(e)}}function c(e){try{a(i.throw(e))}catch(e){o(e)}}function a(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(l,c)}a((i=i.apply(t,n||[])).next())})},[P]),E=(0,r.useCallback)(e=>{m(e),x(!0),(0,i.sx)(c.g30,{planType:e.type,nowPassSource:t}),k(e)},[t,k]);return{setShowPaymentModal:x,selectedPass:f,paymentsToken:y,paymentsGuid:b,paymentOptions:j,paymentOptionsLoading:C,handleSubscriptionPlanClicked:E,showPaymentModal:n,availableNowPasses:g}}}}]);
2//# sourceMappingURL=3328.c2abb8b9602f2636.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.