"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3504],{16801:(e,t,i)=>{i.d(t,{A:()=>n});let n={src:"/_next/static/media/now-prime-text.4e0279a4.webp",height:24,width:136,blurDataURL:"data:image/webp;base64,UklGRmAAAABXRUJQVlA4WAoAAAAQAAAABwAAAAAAQUxQSAkAAAAAam9gdVhvaWkAVlA4IDAAAADwAQCdASoIAAEAAkA4JagCdLoAAwkG/UgA/u3/1k/VDJzYrayoqE/f3DydQZnxwAA=",blurWidth:8,blurHeight:1}},53154:(e,t,i)=>{i.d(t,{A:()=>n});let n={src:"/_next/static/media/play-pink.d29a722f.webp",height:21,width:20,blurDataURL:"data:image/webp;base64,UklGRpYAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSCkAAAABN0AmbePf5Ni7axJiIyKC9QGDANMMIYYyOEM3uT/HESL6n9seIF6xBwBWUDggRgAAANABAJ0BKggACAACQDglqAJ0AR5yDuowAP5r/aNRkiWbUmUgq9OCFYZFmS9B+5HYQtLV//VpB28M9qZpf/6Vj//SsfuUAAA=",blurWidth:8,blurHeight:8}},63504:(e,t,i)=>{i.d(t,{A:()=>e0});var n=i(37876),o=i(26875),r=i(14232),a=i(33884),d=i(35972),l=i(16801),s=i(99879);let c={src:"/_next/static/media/subscription-bg-portrait.47fdef5b.webp",height:282,width:414,blurDataURL:"data:image/webp;base64,UklGRqQAAABXRUJQVlA4WAoAAAAQAAAABwAABAAAQUxQSCkAAAAAAAAAAAAXNQAHAQAAAAAAAxAPBQAAAw0QBQYIBQMQBQQDAwMCAgIDAgBWUDggVAAAANABAJ0BKggABQACQDglsAJ0AR5//ELAAP7VFj3zQR+L+XaH8k7tKs8ryHiKdbOsC47m91/ABkYX8YLn7tnFUf6I/NGv9Df6zTMYm0BQ0CCK4kUAAA==",blurWidth:8,blurHeight:5},p={src:"/_next/static/media/prime-coin.79571101.webp",height:117,width:108,blurDataURL:"data:image/webp;base64,UklGRr4AAABXRUJQVlA4WAoAAAAQAAAABgAABwAAQUxQSDkAAAAAAAJFXB4AAAWy///5awBx//////07r///////npn//////7Q2/P////90AGX3//+zBgAAG1pEAgAAVlA4IF4AAADwAQCdASoHAAgAAkA4JaACdAD0p0PPrvAA/cAObRXrIud+7nTfo0JFNif4fTXbbBDlmcT0+xgyMfvqLLHUxESur/zINt+glxfTD/9Dkk+mvR8W5y+xlXe/+LDt+AAA",blurWidth:7,blurHeight:8};var x=i(24204);let h={src:"/_next/static/media/yellow-tick.703d5119.webp",height:15,width:16,blurDataURL:"data:image/webp;base64,UklGRqYAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDoAAAABYBMAQBoupxsvAThpM7utilbhnwveISImgOjVjIqD/rHWPi3ebLxLm24yxZ7YRPtYa58BcjWZVRMAVlA4IEYAAABQAgCdASoIAAgAAkA4JbACdLoB+AADITCReUgA/vTesNC1IpLRKxe/86s49//sZwBC759G8d3n1cS+S1/8D8zhgcjwAAAA",blurWidth:8,blurHeight:8},g={src:"/_next/static/media/premium-subscription-bg2.949a030d.webp",height:164,width:281,blurDataURL:"data:image/webp;base64,UklGRrAAAABXRUJQVlA4WAoAAAAQAAAABwAABAAAQUxQSCkAAAAAAAAAAAAAAAAMAhd1LxZwEAgLrP/yNgoGEwx0/+cPAwMDAQEoEwEBAQBWUDggYAAAABACAJ0BKggABQACQDglsAJ0ugACuqr6GQAA/uvEau/mk49Buf2b6YnUQZltdsIhEj+p83f/CypYX9CAx/9G+CN/k1pB/+1IfNkEk/9faeX5/hn/Fb/tVNzgUtBDqQAAAA==",blurWidth:8,blurHeight:5};var A=i(5241),m=i(7512),w=i(70780),f=i(64320),u=i(84165),b=i(99397),y=i(62920),j=i(35402),C=i(56047),v=i(9097),k=i(73205),I=i(92921),B=i(47204),S=i(12039),E=i(78734),Q=i(87581),N=i(81332),P=i(52094),D=i(98684);let U=D.Ay.div.withConfig({componentId:"sc-1997f2a8-0"})(["top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:999;&.mobile.portrait{@media (orientation:portrait){@media (max-height:500px){overflow:scroll;align-items:flex-start;}}@media (orientation:landscape){@media (max-width:500px){overflow:scroll;align-items:flex-start;}}}&.mobile.landscape{@media (orientation:landscape){@media (max-height:250px){overflow:scroll;align-items:flex-start;}}@media (orientation:portrait){@media (max-width:250px){overflow:scroll;align-items:flex-start;}}}"]),M=D.Ay.div.withConfig({componentId:"sc-1997f2a8-1"})(['width:fit-content;height:fit-content;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;&::before{content:"";position:absolute;top:-1px;left:-1px;border-radius:inherit;width:calc(100% + 2px);height:calc(100% + 2px);z-index:-1;border-radius:inherit;background:linear-gradient(146deg,#FECD72 0%,rgba(254,205,114,0.00) 64.5%,#FECD72 100%);}background:linear-gradient(110deg,#2D2B28 0%,#101011 98.51%);border-radius:',";.mobile.portrait &,.desktop &{max-width:360px;margin:17px;@media (orientation:portrait){@media (max-width:400px){margin:2px;}}@media (orientation:landscape){@media (max-height:400px){margin:2px;}}}.mobile.landscape &{flex-direction:row;max-width:795px;max-height:414px;min-height:245px;min-width:390px;margin:17px;@media (orientation:landscape){@media (max-height:414px){border-radius:0;margin:0;width:calc(100% - 2px);height:calc(100% - 2px);max-width:calc(100% - 2px);max-height:calc(100% - 2px);}}@media (orientation:portrait){@media (max-width:414px){border-radius:0;margin:0;width:calc(100% - 2px);height:calc(100% - 2px);max-width:calc(100% - 2px);max-height:calc(100% - 2px);}}}.desktop &{width:360px;}"],e=>{let{theme:t}=e;return t.border.radius3}),_=D.Ay.div.withConfig({componentId:"sc-1997f2a8-2"})(["height:100%;position:relative;.bg-img{width:100%;object-fit:cover;}.mobile.portrait &,.desktop &{min-height:187px;border-bottom:1px solid rgba(255,195,42,0.40);}.mobile.landscape &{border-right:1px solid rgba(255,195,42,0.40);@media (orientation:landscape){@media (max-height:420px){width:100%;.bg-img{max-height:100%;height:100%;}}@media (max-width:480px){max-width:160px;}}@media (orientation:portrait){@media (max-width:420px){width:100%;.bg-img{max-height:100%;height:100%;}}@media (max-height:480px){max-width:160px;}}}"]),L=D.Ay.div.withConfig({componentId:"sc-1997f2a8-3"})(["position:absolute;left:0;top:0;width:100%;height:fit-content;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;.now-prime-logo{height:36px;margin-top:24px;}.now-prime-text{margin-top:4px;}.mobile.landscape &{top:50%;transform:translateY(-50%);.now-prime-logo{margin-top:0;}}"]),R=D.Ay.h3.withConfig({componentId:"sc-1997f2a8-4"})(["color:rgba(255,255,255,0.80);text-align:center;font-size:14px;font-weight:700;line-height:100%;text-transform:uppercase;margin-top:10px;"]),W=D.Ay.div.withConfig({componentId:"sc-1997f2a8-5"})(["margin-top:10px;display:flex;align-items:center;gap:8px;"]),z=D.Ay.span.withConfig({componentId:"sc-1997f2a8-6"})(["color:#FFAE4D;font-size:40px;font-weight:600;line-height:100%;"]),F=D.Ay.div.withConfig({componentId:"sc-1997f2a8-7"})(["width:100%;height:100%;padding:20px;display:flex;flex-direction:column;justify-content:center;"]),H=D.Ay.div.withConfig({componentId:"sc-1997f2a8-8"})(["padding-bottom:20px;display:flex;gap:12px;align-items:center;border-bottom:1px dashed ",";.now-bux-warn{height:48px;width:51px;}.text-section{display:flex;flex-direction:column;gap:4px;.title{color:",";}.sub-title{color:",";}}"],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.white70}),T=D.Ay.div.withConfig({componentId:"sc-1997f2a8-9"})(["display:flex;justify-content:space-between;align-items:center;color:",";&.now-bux-balance{background:linear-gradient(90deg,#FFDF5B 0%,#E3AA0E 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}&.row1,&.row2{margin-top:16px;.mobile.landscape &{@media (orientation:landscape){@media (max-height:280px){margin-top:8px;}}@media (orientation:portrait){@media (max-width:280px){margin-top:8px;}}}}"],e=>{let{theme:t}=e;return t.colors.white}),O=D.Ay.div.withConfig({componentId:"sc-1997f2a8-10"})(["display:flex;align-items:center;gap:4px;"]),G=D.Ay.div.withConfig({componentId:"sc-1997f2a8-11"})(["margin-top:20px;border-top:1px dashed rgba(255,255,255,0.10);padding:10px 0px;.mobile.landscape &{@media (orientation:landscape){@media (max-height:280px){margin-top:8px;}}@media (orientation:portrait){@media (max-width:280px){margin-top:8px;}}}"]),X=D.Ay.div.withConfig({componentId:"sc-1997f2a8-12"})(["width:100%;display:flex;align-items:center;gap:6px;color:",";div{margin:20px 0 16px 0;}"],e=>{let{theme:t}=e;return t.colors.white}),J={src:"/_next/static/media/tick-green-bg.8d5dc3e1.webp",height:72,width:72,blurDataURL:"data:image/webp;base64,UklGRsIAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDoAAAABP6Agkg06+n4UkEEeVUREoI87fDCKJKu1psJBtEDhgDsWsoB454eJ6H/I4UQEe8F/cH7oF3wEK1MQVlA4IGIAAAAQAgCdASoIAAgAAkA4JbACdASwAaoFWzKAAP64O0X1PlIu6IzHb5VlzEc/1SdTBzzq++j0bScnAEfnz3a9gDgp+Aakczw3Op9iS3/lO4aeFJf2Yfmf/PbF3jXF0MJH2QAAAA==",blurWidth:8,blurHeight:8},V={src:"/_next/static/media/nowgg-payments.9f0feda8.webp",height:38,width:117,blurDataURL:"data:image/webp;base64,UklGRnoAAABXRUJQVlA4WAoAAAAQAAAABwAAAgAAQUxQSBkAAAAAiBAyX1dNNU//0SpRWVFSXZBjCAsODAsNAFZQOCA6AAAAsAEAnQEqCAADAAJAOCUAXYAj7b6gwAD+C+/hb7zEWtwa7owh9DUm7ww7h9VUKyAFOyvUxsodxMAAAA==",blurWidth:8,blurHeight:3},Y=D.Ay.div.withConfig({componentId:"sc-4f459d96-0"})(["top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:999;&.mobile.portrait{@media (orientation:portrait){@media (max-height:500px){overflow:scroll;align-items:flex-start;}}@media (orientation:landscape){@media (max-width:500px){overflow:scroll;align-items:flex-start;}}}"]),Z=D.Ay.div.withConfig({componentId:"sc-4f459d96-1"})(["width:fit-content;height:fit-content;display:flex;flex-direction:column;justify-content:center;align-items:center;border:",";border-radius:",";background:",";backdrop-filter:blur(60px);.mobile.portrait &,.desktop &{max-width:362px;margin:8px;}"],e=>{let{theme:t}=e;return t.border.base3},e=>{let{theme:t}=e;return t.border.radius3},e=>{let{theme:t}=e;return t.colors.black50}),q=D.Ay.div.withConfig({componentId:"sc-4f459d96-2"})(["display:flex;flex-direction:row;width:100%;height:fit-content;padding:8px 12px 8px 20px;justify-content:space-between;background:",";border-top-left-radius:",";border-top-right-radius:",";"],e=>{let{theme:t}=e;return t.colors.white20},e=>{let{theme:t}=e;return t.border.radius3},e=>{let{theme:t}=e;return t.border.radius3}),K=D.Ay.div.withConfig({componentId:"sc-4f459d96-3"})(["display:flex;flex-direction:column;align-items:center;padding:24px;.modal-icon{margin-top:35px;}.title-order-number{margin-top:35px;color:",";}.order-number{text-align:center;margin-top:8px;color:",";}button{margin-top:35px;width:100%;}.mobile.landscape &{@media (orientation:landscape){@media (max-height:500px){flex-direction:row;align-items:flex-end;gap:32px}@media (max-height:340px){.modal-icon{margin-top:0px;}}}@media (orientation:portrait){@media (max-width:500px){flex-direction:row;align-items:flex-end;gap:32px}@media (max-width:340px){.modal-icon{margin-top:0px;}}}}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.white70}),$=D.Ay.div.withConfig({componentId:"sc-4f459d96-4"})(["display:flex;flex-direction:column;align-items:center;"]),ee=D.Ay.h2.withConfig({componentId:"sc-4f459d96-5"})(["margin:0px;color:",";font-size:20px;font-weight:700;line-height:140%;text-align:center;max-width:300px;margin-top:35px;.mobile.landscape &{@media (orientation:landscape){@media (max-height:340px){margin-top:0px;}}@media (orientation:portrait){@media (max-width:340px){margin-top:0px;}}}"],e=>{let{theme:t}=e;return t.colors.white}),et=D.Ay.h3.withConfig({componentId:"sc-4f459d96-6"})(["margin:0px;color:",";text-align:center;font-size:16px;line-height:150%;margin-top:8px;.mobile.portrait &,.desktop &{max-width:300px;}"],e=>{let{theme:t}=e;return t.colors.white70}),ei=e=>{let{orderNo:t,source:i,nowBuxPurchaseAmount:l,onClose:s}=e,{t:c}=(0,o.B)(),p=(0,f.d4)(e=>e.play.orientation),x=(0,f.d4)(e=>e.play.isAndroidConnected),h=(0,f.d4)(e=>e.play.error),g=!(0,C.xl)(),[m,w]=(0,r.useState)(g&&((!x||h)&&window.innerHeight{setTimeout(()=>{w(g&&((!x||h)&&window.innerHeight{y()},[p,x,h]),(0,r.useEffect)(()=>(window.addEventListener("orientationchange",y),window.addEventListener("resize",y),(0,A.sx)("NowBuxPurchasedSuccessfully",{nowPassSource:i}),()=>{window.removeEventListener("orientationchange",y),window.removeEventListener("resize",y)}),[]),(0,n.jsx)(Y,{className:"\n ".concat(g?"mobile":"desktop","\n ").concat(m?"landscape":"portrait","\n "),children:(0,n.jsxs)(Z,{children:[(0,n.jsxs)(q,{children:[(0,n.jsx)("img",{height:"38px",src:(0,d._w)(V),alt:""}),(0,n.jsx)(u.U,{className:"static-icon",onClick:s,children:(0,n.jsx)(b.A,{name:"cross-thin",size:24})})]}),(0,n.jsxs)(K,{children:[(0,n.jsxs)($,{children:[(0,n.jsx)("img",{height:"72px",className:"modal-icon",src:(0,d._w)(J),alt:""}),(0,n.jsxs)(ee,{children:[l," ",c("nowBuxAddedSuccessfully")]}),(0,n.jsx)(et,{children:c("ThankYouForYourPayment")})]}),(0,n.jsxs)($,{children:[(0,n.jsx)(a.Zc,{className:"title-order-number",children:c("orderNumber")}),(0,n.jsx)(a.Dp,{className:"order-number",children:t}),(0,n.jsx)(Q.$,{text:c("continue"),variant:"primary",size:"large",target:"_blank",onClick:s})]})]})]})})};var en=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function d(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,d)}l((n=n.apply(e,t||[])).next())})};let eo=()=>({showModal:!1,orderNo:"",nowBuxPurchaseAmount:""}),er=e=>{let{product:t,onClose:i,source:s,paymentsToken:c,paymentsGuid:p,paymentOptions:x,isLandscapeModalParent:h,orientationParent:g}=e,{t:y}=(0,o.B)(),D=(0,f.wA)(),J=(0,f.d4)(e=>e.nowbuxRewards.nowbuxCreditsEarned),[V,Y]=(0,r.useState)(!1),[Z,q]=(0,r.useState)(!0),[K,$]=(0,r.useState)(!1),[ee,et]=(0,r.useState)(),[er,ea]=(0,r.useState)(""),[ed,el]=(0,r.useState)(eo()),es=(0,f.d4)(e=>e.play.nowPremiumSubscriptionActive),ec=(0,f.d4)(e=>e.play.orientation),ep=(0,f.d4)(e=>e.play.isAndroidConnected),ex=(0,f.d4)(e=>e.play.error),eh=!(0,C.xl)(),[eg,eA]=(0,r.useState)(eh&&((!ep||ex)&&window.innerHeightt.offerPrice<=J,[J]),ew=(0,r.useMemo)(()=>em?0:t.offerPrice-J,[J,t]);(0,r.useEffect)(()=>{(0,A.sx)(em?"NowPassSufficientBalanceScreenShown":"NowPassInsufficientBalanceScreenShown",{nowPassSource:s})},[em]);let ef=(0,r.useCallback)(()=>{setTimeout(()=>{eA(eh&&((!ep||ex)&&window.innerHeight{ef()},[ec,ep,ex]),(0,r.useEffect)(()=>(window.addEventListener("orientationchange",ef),window.addEventListener("resize",ef),ea((0,C.PG)("np",18).toLowerCase()),(0,C.B3)(),()=>{window.removeEventListener("orientationchange",ef),window.removeEventListener("resize",ef)}),[]);let eu=(0,r.useCallback)(()=>en(void 0,void 0,void 0,function*(){if(Y(!0),em)(0,A.sx)("BuySubscriptionClicked",{nowPassSource:s}),en(void 0,void 0,void 0,function*(){try{if(V||es)return;Y(!0);let{accessToken:e}=yield(0,v.Lt)();(0,C.Vv)(!1);let i=yield(0,P.jV)(t,c);if(i.status!==j.wD.Success)throw Error("purchaseWithNowBux API error: ".concat(JSON.stringify(i)));(0,C.B3)(),(0,C.Vv)(!0),D({type:w.A.NOWPREMIUM_SUBSCRIPTION_STATUS,payload:{nowPremiumSubscriptionActive:!0,showSubscriptionEnabledModal:!0,showSubscriptionModal:!1,paymentInProgress:!1}}),(0,v.vS)(i.subscriptionInfo),Y(!1)}catch(e){reportError(Error("buySubscription error: ".concat(e)))}});else{(0,A.sx)("BuyNowBuxClicked",{nowPassSource:s});let e=yield(0,P.cb)(t,c);e.success&&(et(e.data),$(!0)),Y(!1)}}),[em,s,er,c,t]);return K&&ee?(0,n.jsx)(m.A,{onFailure:()=>$(!1),product:t,source:s,paymentsToken:c,paymentsGuid:p,paymentOptions:x,isLandscapeModal:h,orientation:g,isNowBuxPaymentFlow:!0,handlePurchaseNowBuxSuccess:e=>{D({type:w.A.SET_PAYMENT_STATUS,payload:{paymentInProgress:!1}});let t=eo();t.showModal=!0,t.orderNo=e,ee&&(t.nowBuxPurchaseAmount=null==ee?void 0:ee.nowbuxDiff),(0,C.B3)(),el(t),$(!1)},nowBuxPaymentDetails:ee,subscriptionId:er}):ed.showModal?(0,n.jsx)(ei,{onClose:()=>el(eo()),orderNo:ed.orderNo,source:s,nowBuxPurchaseAmount:ed.nowBuxPurchaseAmount}):(0,n.jsx)(U,{className:"\n ".concat(eh?"mobile":"desktop","\n ").concat(eg?"landscape":"portrait","\n "),children:(0,n.jsxs)(M,{children:[(0,n.jsx)(u.U,{className:"size-40 subscription-with-now-bux",onClick:i,children:(0,n.jsx)(b.A,{name:"cross-thin",size:20})}),(0,n.jsxs)(_,{children:[eh&&eg?(0,n.jsx)("img",{className:"bg-img",src:(0,d._w)(k.A),alt:""}):(0,n.jsx)("img",{className:"bg-img",src:(0,d._w)(I.A),alt:""}),(0,n.jsxs)(L,{children:[(0,n.jsx)("img",{className:"now-prime-logo",src:(0,d._w)(B.A),alt:""}),(0,n.jsx)("img",{height:"22px",className:"now-prime-text",src:(0,d._w)(l.A),alt:""}),(0,n.jsxs)(R,{children:[y(t.type)," ",y("pass")]}),(0,n.jsxs)(W,{children:[(0,n.jsx)("img",{height:"32px",className:"",src:(0,d._w)(S.A),alt:""}),(0,n.jsx)(z,{children:t.offerPrice})]})]})]}),(0,n.jsxs)(F,{children:[!em&&(0,n.jsxs)(H,{children:[(0,n.jsx)("img",{className:"now-bux-warn",src:(0,d._w)(E.A),alt:""}),(0,n.jsxs)("div",{className:"text-section",children:[(0,n.jsx)(a.Zc,{className:"title",children:y("insufficientBalance")}),(0,n.jsx)(a.E2,{className:"sub-title",children:y("addMoreNowbuxToBuyThisItem")})]})]}),(0,n.jsxs)(T,{className:"row1",children:[(0,n.jsx)(a.fI,{children:y("itemPrice")}),(0,n.jsxs)(O,{children:[(0,n.jsx)("img",{height:"16px",className:"",src:(0,d._w)(S.A),alt:""}),(0,n.jsx)(a.fI,{children:t.offerPrice})]})]}),(0,n.jsxs)(T,{className:"row2 now-bux-balance",children:[(0,n.jsx)(a.fI,{children:y("nowBuxBalance")}),(0,n.jsxs)(O,{children:[(0,n.jsx)("img",{height:"16px",className:"",src:(0,d._w)(S.A),alt:""}),(0,n.jsx)(a.fI,{children:J})]})]}),em?(0,n.jsxs)(X,{children:[(0,n.jsx)(N.oV,{onChange:e=>q(e.target.checked),checked:Z,children:(0,n.jsx)(a.E2,{children:y("termsAccepted")})}),(0,n.jsx)(a.N_,{style:{fontSize:12,flex:1},target:"_blank",rel:"noopener noreferrer",href:"https://nowgg.fun/terms-and-privacy.html#terms",children:y("termsOfUse")})]}):(0,n.jsx)(G,{children:(0,n.jsxs)(T,{className:"",children:[(0,n.jsx)(a.fI,{children:y("nowBuxNeeded")}),(0,n.jsxs)(O,{children:[(0,n.jsx)("img",{height:"16px",className:"",src:(0,d._w)(S.A),alt:""}),(0,n.jsx)(a.fI,{children:ew})]})]})}),(0,n.jsx)(Q.$,{isLoading:V,variant:"primary",size:"large",target:"_blank",disabled:em&&!Z||!c,onClick:eu,children:!V&&(em?(0,n.jsx)(a.Zc,{children:y("buySubscription")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.Zc,{children:[y("buy")," ",ew]}),(0,n.jsx)("img",{width:"24px",className:"",src:(0,d._w)(S.A),alt:""})]}))})]})]})})},ea=D.Ay.div.withConfig({componentId:"sc-5778dd3f-0"})(["background:linear-gradient(98deg,#352F87 1.05%,#5C54C7 74.44%);display:flex;flex-direction:row;padding:20px 32px;gap:8px;position:relative;border-top-right-radius:12px;border-top-left-radius:12px;border-top:1px solid rgba(255,255,255,0.10);border-left:1px solid rgba(255,255,255,0.10);border-right:1px solid rgba(255,255,255,0.10);position:relative;overflow:hidden;.game-controller-img{height:78%;position:absolute;transform:rotate(6.787deg);top:0px;right:50px;}&.portrait{border-radius:0px;padding:50px 24px;.game-controller-img{right:7px;top:52px;height:159px;}}"," .now-bux-subscription &{border-top-right-radius:unset;border-top-left-radius:12px;}"],e=>{let{landscapeModal:t}=e;return t&&(0,D.AH)(["width:280px;height:100%;border-radius:0px;flex-direction:column;padding:32px 24px;justify-content:flex-end;.game-controller-img{height:159px;position:absolute;transform:rotate(6.787deg);top:4px;right:55px;}"])}),ed=D.Ay.div.withConfig({componentId:"sc-5778dd3f-1"})(["display:flex;flex-direction:column;gap:8px;position:relative;overflow:hidden;.bg-img{width:100%;}.now-bux-subscription &{border-top-right-radius:unset;border-top-left-radius:12px;justify-content:center;}.mobile &{border-radius:0;}.mobile.landscape &{overflow:visible;@media screen and (max-width:525px){width:230px;}}.mobile.portrait &{height:282px;min-height:200px;justify-content:center;}.now-bux-subscription.tablet &{@media (max-width:780px),(max-height:780px){width:240px;}}"]),el=D.Ay.div.withConfig({componentId:"sc-5778dd3f-2"})(["position:absolute;width:100%;.portrait-bg{width:100%;object-fit:fill;}.prime-coin{position:absolute;top:50%;transform:translateY(-50%);right:10%;.mobile.portrait &{@media screen and (max-width:320px){width:75px;}}}"]),es=D.Ay.video.withConfig({componentId:"sc-5778dd3f-3"})(["width:100%;flex-shrink:0;opacity:0.2;mix-blend-mode:lighten;position:absolute;transform:translate(32px,-75px);",""],e=>{let{landscapeModal:t}=e;return t&&(0,D.AH)(["top:0;left:50%;width:459px;height:258px;transform:translate(-50%,-20px);"])}),ec=D.Ay.div.withConfig({componentId:"sc-5778dd3f-4"})(["display:flex;flex-direction:column;gap:8px;color:",";z-index:1;h3{text-transform:none;}"," .now-bux-subscription &{padding:0px 32px 20px 32px;}.mobile.landscape &{padding:0px 0px 0px 29px;}.mobile.portrait &{padding:0px 0px 0px 29px;}"],e=>{let{theme:t}=e;return t.colors.white},e=>{let{landscapeModal:t}=e;return t&&(0,D.AH)(["gap:4px;"])}),ep=D.Ay.img.withConfig({componentId:"sc-5778dd3f-5"})(["height:27px;transform:unset;.now-bux-subscription &{height:27px;transform:translateY(-4px)}"]),ex=D.Ay.img.withConfig({componentId:"sc-5778dd3f-6"})(["width:24px;height:24px;transform:unset;.now-bux-subscription &{width:30px;height:30px;}"]),eh=D.Ay.div.withConfig({componentId:"sc-5778dd3f-7"})(["display:flex;flex-direction:row;gap:8px;margin-bottom:8px;align-items:flex-end;.now-bux-subscription &{gap:5px;margin-bottom:16px;}"]),eg=D.Ay.div.withConfig({componentId:"sc-5778dd3f-8"})(["display:flex;flex-direction:row;gap:4px;align-items:center;img{width:15px;height:15px;margin:0px;}",""],e=>{let{landscapeModal:t}=e;return t&&(0,D.AH)(["p{font-size:14px;line-height:150%;font-weight:400;}"])});(0,D.Ay)(a.M5).withConfig({componentId:"sc-5778dd3f-9"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.caution});let eA=D.Ay.div.withConfig({componentId:"sc-5778dd3f-10"})(["display:flex;flex-direction:column;width:fit-content;position:relative;backdrop-filter:blur(60px);",' &.portrait{width:100%;}&.now-bux-subscription{flex-direction:column;border-radius:12px;&.mobile{width:calc(100% - 2px);height:calc(100% - 2px);border-radius:0;}&::before{content:"";position:absolute;top:-1px;left:-1px;border-radius:inherit;width:calc(100% + 2px);height:calc(100% + 2px);z-index:-1;border-radius:inherit;background:linear-gradient(146deg,#FECD72 0%,rgba(254,205,114,0.00) 64.5%,#FECD72 100%);}}'],e=>{let{landscapeModal:t}=e;return t&&(0,D.AH)(["flex-direction:row;width:100%;height:100%;min-height:380px;align-self:baseline;"])}),em=D.Ay.div.withConfig({componentId:"sc-5778dd3f-11"})(["display:flex;flex-direction:row;background:linear-gradient(110deg,#2D2B28 0%,#101011 98.51%);border-top-right-radius:12px;border-top-left-radius:12px;.mobile &{height:100%;border-radius:0;}.mobile.landscape &{height:calc(100% - 65px);overflow-y:scroll;}.mobile.portrait &{flex-direction:column;height:calc(100% - 65px);@media screen and (orientation:portrait) and (max-width:438px),screen and (orientation:landscape) and (max-height:438px){height:calc(100% - 95px);}}"]),ew=D.Ay.div.withConfig({componentId:"sc-5778dd3f-12"})(["display:flex;min-height:65px;flex-direction:row;justify-content:center;align-items:center;padding:16px;border-top:1px solid rgba(255,195,42,0.40);background:",";color:",";gap:10px;border-bottom-right-radius:12px;border-bottom-left-radius:12px;background:linear-gradient(110deg,#2D2B28 0%,#101011 98.51%);.content{display:flex;gap:6px;img{position:relative;transform:translateY(2px);}}img{width:16px;height:16px;}.watch-ad{gap:8px;}.mobile &{border-radius:0;}.mobile.portrait &{height:65px;flex-wrap:wrap;@media screen and (orientation:portrait) and (max-width:438px),screen and (orientation:landscape) and (max-height:438px){max-height:95px;height:95px;}}"],e=>{let{theme:t}=e;return t.colors.black},e=>{let{theme:t}=e;return t.colors.white}),ef=D.Ay.p.withConfig({componentId:"sc-5778dd3f-13"})(["color:",";text-align:center;font-size:12px;line-height:150%;margin:0px;"],e=>{let{theme:t}=e;return t.colors.caution});var eu=i(53154),eb=i(67768),ey=i(29822),ej=i(12815);let eC=e=>{let{hideSubModal:t}=e,{t:i}=(0,o.B)(),l=(0,f.d4)(e=>e.play.nowbuxCreditLimitExceeded),s=(0,f.wA)(),[c,p]=(0,r.useState)(!1),[x,h]=(0,r.useState)(!1),g=(0,r.useCallback)(()=>{if(l){if(c)return;h(!0),setTimeout(()=>{p(!0)},500);return}(0,A.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:"PlayExperienceScreen"}),(0,eb.$B)(),s({type:ey.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0,rewardedAdFirstInfoPopup:!0,rewardedAdFirst:!0,rewardedAdSecond:!1}}),t()},[l,c]);return(0,n.jsxs)(ew,{children:[(0,n.jsxs)("div",{className:"content",children:[!x&&!c&&(0,n.jsx)("img",{src:(0,d._w)(S.A),alt:""}),c&&(0,n.jsx)(ef,{children:i("maxLimitExceedMsg")}),!c&&(0,n.jsx)(a.fI,{children:i("earn1NowBuxWatchAd")}),x&&!c&&(0,n.jsx)(ej.A,{borderWidth:1,style:{width:16,height:16}})]}),!x&&(0,n.jsxs)(Q.$,{className:"watch-ad",variant:"translucent",onClick:g,children:[(0,n.jsx)("img",{src:(0,d._w)(eu.A),alt:""}),(0,n.jsx)(a.le,{children:i("watchAd")})]})]})},ev={src:"/_next/static/media/slip.4be812ab.webp",height:225,width:225,blurDataURL:"data:image/webp;base64,UklGRsYAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSD8AAAABcFPbthrdkArq0lJFIlKlI2GRwQJIBKlgmgmKiIjEy+Cj9SoAq6rPimTD8/Xt8zzPLjCJ/DwXB4C0ZSJeAS8AVlA4IGAAAABQAgCdASoIAAgAAkA4JbACdLoAEIeZXhs6SQAA9ohbYXq8ga6LLdHZ2A7C8hSDkd+XBY+nXoa7ZFTEWGX/uh8IvvawzOS6+vNiYF8f/gqn7kv/+tXvmlnMZ4lhheIgAAA=",blurWidth:8,blurHeight:8};var ek=i(59319),eI=i(95036),eB=i(80793);let eS=D.Ay.div.withConfig({componentId:"sc-b151fcff-0"})(["display:flex;padding:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;flex:1 0 0;border-radius:24px;background:",";box-shadow:0px 8px 24px 0px rgba(0,0,0,0.08);border:1px solid ",";position:relative;width:128px;&:hover{border:1px solid ",";}.price{display:flex;flex-direction:row;align-items:center;gap:4px;}.price-container{gap:2px;display:flex;flex-direction:column;}&.vertical{flex-direction:row;justify-content:space-between;width:100%;.price-container{margin-left:auto;gap:4px;display:flex;flex-direction:column;align-items:flex-end;}}&.landscapeModal{flex:unset;}button{box-shadow:none;}.now-bux-subscription.tablet &{@media (max-width:710px),(max-height:710px){flex-direction:row;justify-content:space-between;width:100%;.price-container{margin-left:auto;gap:4px;display:flex;flex-direction:column;align-items:flex-end;}}}"],e=>{let{theme:t,bg:i}=e;return t.colors[i]},e=>{let{theme:t}=e;return t.colors.transparent},e=>{let{theme:t}=e;return t.colors.ascent}),eE=D.Ay.div.withConfig({componentId:"sc-b151fcff-1"})(["display:flex;padding:5px 10px;justify-content:center;align-items:center;gap:8px;border-radius:112px;&.best-value{background:linear-gradient(270deg,#7B4CFF 0%,#0EA4C5 99.48%);}&.limited-offer{border:1px solid rgba(255,255,255,0.70);background:linear-gradient(270deg,#C20568 0%,#4C4789 99.48%);}position:absolute;top:0;transform:translateY(-50%);p{text-transform:uppercase;line-height:100%;font-weight:700;color:",";}"],e=>{let{theme:t}=e;return t.colors.white}),eQ=D.Ay.div.withConfig({componentId:"sc-b151fcff-2"})(["display:flex;flex-direction:column;gap:4px;&.landscapeModal{flex:unset;}&.vertical{align-items:baseline;}"]),eN=(0,D.Ay)(a.H4).attrs({as:"div"}).withConfig({componentId:"sc-b151fcff-3"})(["text-align:center;line-height:100%;text-transform:uppercase;color:",";.vertical &{font-size:16px;color:#E53A38;}&.no-text-transform{text-transform:none;}&.daily{color:",";}&.weekly{color:",";}&.best-value{background:linear-gradient(270deg,#7B4CFF 0%,#0EA4C5 99.48%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:",";}&.hourly{color:",";}&.rewardedAd{color:",";text-align:left;}&.landscapeModal{font-size:14px;}.now-bux-card &{font-size:14px;}",""],e=>{let{theme:t}=e;return t.colors.black90},e=>{let{theme:t}=e;return t.colors.ascent},e=>{let{theme:t}=e;return t.colors.purple},e=>{let{theme:t}=e;return t.colors.transparent},e=>{let{theme:t}=e;return t.colors.black90},e=>{let{theme:t}=e;return t.colors.black90},e=>{let{theme:t,color:i}=e;return i&&(0,D.AH)(["color:"," !important;"],t.colors[i])}),eP=D.Ay.div.withConfig({componentId:"sc-b151fcff-4"})(["color:",";text-align:center;font-size:11px;font-weight:500;line-height:100%;text-transform:uppercase;margin:0px;&.limited-offer{text-align:left;}&.rewardedAd{text-align:left;text-transform:none;}"],e=>{let{theme:t,color:i}=e;return t.colors[i]}),eD=(0,D.Ay)(a.M5).attrs({as:"p"}).withConfig({componentId:"sc-b151fcff-5"})(["color:",";text-align:center;font-weight:500;line-height:100%;text-decoration-line:line-through;&.landscapeModal{font-size:12px;font-weight:400;}"],e=>{let{theme:t}=e;return t.colors.warning}),eU=D.Ay.p.withConfig({componentId:"sc-b151fcff-6"})(["color:",";text-align:center;font-size:20px;font-weight:600;line-height:100%;margin:0px;img{width:20px;height:20px;}&.landscapeModal{font-size:16px;font-weight:600;gap:4px;}&.marg-6{display:flex;margin-top:6px;}"],e=>{let{theme:t,color:i}=e;return t.colors[i]}),eM=D.Ay.div.withConfig({componentId:"sc-b151fcff-7"})(["display:flex;flex-direction:row;gap:2px;"]),e_=D.Ay.span.withConfig({componentId:"sc-b151fcff-8"})(["color:",";text-align:right;font-size:11px;font-weight:600;line-height:100%;&.center{text-align:center;}"],e=>{let{theme:t}=e;return t.colors.green}),eL=D.Ay.span.withConfig({componentId:"sc-b151fcff-9"})(["color:",";text-align:right;font-size:12px;line-height:100%;text-decoration-line:line-through;"],e=>{let{theme:t}=e;return t.colors.warning}),eR=D.Ay.div.withConfig({componentId:"sc-b151fcff-10"})(["display:flex;align-items:center;gap:4px;img{width:20px;height:20px;}"]),eW=D.Ay.span.withConfig({componentId:"sc-b151fcff-11"})(["color:",";text-align:right;font-size:16px;font-weight:600;line-height:100%;"],e=>{let{theme:t}=e;return t.colors.black70}),ez=e=>{let{title:t,titleColor:i,bgColor:l,actualPrice:s,offerPrice:c,theme:p,highlighted:x,onClick:h,source:g,image:A,currency:m,currencySymbol:u="$",className:b,limitedOffer:k,isRewardedAd:I,isNowBuxCard:B=!1,isDisabled:S=!1,loader:E=!1}=e,{t:N}=(0,o.B)(),P=(0,f.d4)(e=>e.auth.isLoggedIn),D=(0,f.d4)(e=>e.play.orientation),U=(0,f.d4)(e=>e.play.isAndroidConnected),M=(0,f.d4)(e=>e.play.error),_=(0,C.Fr)()&&!(0,C.v1)()&&!(0,C.bh)(),[L,R]=(0,r.useState)(_&&((!U||M)&&window.innerHeight5*Math.floor((s-c)/s*100/5),[s,c,m]),F=(0,r.useCallback)(()=>{setTimeout(()=>{R(_&&((!U||M)&&window.innerHeight{F()},[D,U,M]);let H=(0,r.useCallback)(()=>{g!==y.RmT.ProxyScreen&&W({type:w.A.TOGGLE_SUBSCRIPTION_MODAL,payload:{showSubscriptionModal:!1,shoSubscriptionModalAfterLogin:!0}}),W({type:eI.A.TOGGLE_LOGIN,payload:{showLogin:!0,loginContext:y.G$3.premiumSubscription}})},[W]),T=(0,r.useMemo)(()=>I?N("new"):x?N("bestValue"):N("limitedOfferLabel"),[I,x,N]);return(0,r.useEffect)(()=>(window.addEventListener("orientationchange",F),()=>{window.removeEventListener("orientationchange",F)}),[]),(0,n.jsxs)(eS,{className:"\n ".concat(b||"","\n ").concat(I?"rewardedAd":"","\n ").concat(L?"landscapeModal":"","\n ").concat(B?"now-bux-card":"","\n "),bg:l,style:!x||(0,C.Fr)()||(0,v.UE)()?{}:{paddingTop:"24px"},children:[(x||k||I)&&(0,n.jsx)(eE,{className:"".concat(k&&!I?"limited-offer":"best-value"),children:(0,n.jsx)(a.hJ,{children:T})}),(0,n.jsxs)(eQ,{className:"".concat(b||""," ").concat(L?"landscapeModal":""),children:[(0,n.jsx)(eN,{className:"no-text-transform ".concat(t.toLowerCase()," ").concat(x?"best-value":"","\n ").concat(I?"rewardedAd":""," ").concat(L?"landscapeModal":""),color:i,children:t}),I&&(0,n.jsx)(eP,{className:"\n rewardedAd\n ".concat(k?"limited-offer":"","\n "),color:"light"===p?"black50":"white40",children:N("watch1AdForPremium")})]}),(0,n.jsx)("span",{className:"price-container",children:B||"vertical"===b?(0,n.jsxs)(n.Fragment,{children:[!I&&s!==c&&(0,n.jsxs)(eM,{children:[(0,n.jsxs)(e_,{children:[z,"% ",N("off")]}),(0,n.jsx)(eL,{children:s})]}),(0,n.jsxs)(eR,{children:[!I&&"nowbux"===u&&(0,n.jsx)("img",{src:(0,d._w)(eB.A),alt:""}),(0,n.jsx)(eW,{children:I?N("1ad"):"".concat("nowbux"===u?"":u).concat(c)})]})]}):(0,n.jsxs)(n.Fragment,{children:[s!==c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eD,{className:"".concat(L?"landscapeModal":""),children:"".concat("nowbux"===u?"":u).concat(s)}),(0,n.jsxs)(e_,{className:"center",children:[z,"% ",N("off")]})]}),(0,n.jsxs)(eU,{color:"light"===p?"black70":"white",className:"\n marg-6\n ".concat(L?"landscapeModal":""," \n "),children:["nowbux"===u&&(0,n.jsx)("img",{src:(0,d._w)(eB.A),alt:""}),I?N("1ad"):"".concat("nowbux"===u?"":u).concat(c)]})]})}),(0,n.jsx)(Q.$,{variant:I?"primaryOutline":E?"primaryLoader":"primary",style:{whiteSpace:"nowrap",width:I?124:104,height:I?32:"auto"},onClick:P||I?h:H,disabled:S,isLoading:E,spinnerWidth:16,spinnerHeight:16,children:!E&&(0,n.jsx)(a.le,{children:I?N("watchAd"):N("buy")})})]})};var eF=i(79356),eH=i(4858),eT=i(67853),eO=i(56160);D.Ay.div.withConfig({componentId:"sc-66fb76a5-0"})(["padding:24px 32px;"]),(0,D.Ay)(a.fI).withConfig({componentId:"sc-66fb76a5-1"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.white70}),D.Ay.ul.withConfig({componentId:"sc-66fb76a5-2"})(["list-style:none;margin:16px 0 0;padding:0;display:flex;align-items:flex-end;gap:16px;"]),D.Ay.li.withConfig({componentId:"sc-66fb76a5-3"})(["position:relative;display:flex;padding:12px;flex-direction:column;justify-content:center;align-items:center;flex:1 0 0;border-radius:8px;background:",";box-shadow:0px 8px 24px 0px rgba(0,0,0,0.08);&:nth-child(1){.pass{color:",";}}&:nth-child(2){background:",";h5{color:",";}.price{color:",";}}&:nth-child(3){background:",";padding-top:24px;h5{color:",";}.price{color:",";}}"],e=>{let{theme:t}=e;return t.colors.black30},e=>{let{theme:t}=e;return t.colors.white40},e=>{let{theme:t}=e;return t.colors.white80},e=>{let{theme:t}=e;return t.colors.purple},e=>{let{theme:t}=e;return t.colors.black70},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.blue},e=>{let{theme:t}=e;return t.colors.black70}),(0,D.Ay)(a.fI).withConfig({componentId:"sc-66fb76a5-4"})(["font-weight:700;line-height:14px;text-transform:uppercase;margin-bottom:4px;color:",";"],e=>{let{theme:t}=e;return t.colors.caution}),D.Ay.div.withConfig({componentId:"sc-66fb76a5-5"})(["font-size:11px;font-weight:500;line-height:11px;text-transform:uppercase;margin-bottom:8px;color:",";"],e=>{let{theme:t}=e;return t.colors.black50}),D.Ay.div.withConfig({componentId:"sc-66fb76a5-6"})(["font-size:14px;font-weight:500;line-height:14px;text-decoration-line:line-through;margin-bottom:8px;color:",";"],e=>{let{theme:t}=e;return t.colors.warning}),D.Ay.div.withConfig({componentId:"sc-66fb76a5-7"})(["font-size:20px;font-weight:600;line-height:20px;margin-bottom:8px;"]);let eG=(0,D.Ay)(eO.SC).withConfig({componentId:"sc-66fb76a5-8"})(["width:100%;padding:7px;border-radius:6px;"]);D.Ay.div.withConfig({componentId:"sc-66fb76a5-9"})(["display:flex;padding:5px 10px;justify-content:center;align-items:center;gap:8px;border-radius:112px;background:linear-gradient(270deg,#7B4CFF 0%,#0EA4C5 99.48%);position:absolute;top:0;left:50%;transform:translate(-50%,-50%);font-size:10px;font-weight:700;line-height:10px;text-transform:uppercase;text-wrap:nowrap;"]);let eX=D.Ay.div.withConfig({componentId:"sc-c66d3dad-0"})(["background:",";display:flex;flex-direction:column;padding:16px 32px 32px 32px;border-bottom-right-radius:12px;border-bottom-left-radius:12px;.plan-info-title{color:rgba(255,255,255,0.70);}&.pass-info{background:rgba(255,255,255,0.20);border-bottom:1px solid rgba(255,255,255,0.10);border-left:1px solid rgba(255,255,255,0.10);border-right:1px solid rgba(255,255,255,0.10);}.divider-container{display:flex;align-items:center;justify-content:center;margin-top:8px;margin-bottom:12px;}.divider{display:flex;align-items:center;justify-content:center;width:160px;color:rgba(255,255,255,0.50);font-size:12px;font-style:normal;font-weight:600;line-height:150%;text-transform:uppercase;&:before,&:after{content:'';flex:1;border-bottom:1px solid rgba(255,255,255,0.50);margin:0 10px;}}"," &.portrait{border-radius:0px;gap:8px;padding:16px 12px 12px 12px;.divider-container{margin:24px 0px;}}.now-bux-subscription &{border-top-right-radius:12px;border-bottom-right-radius:unset;border-bottom-left-radius:unset;background:unset;padding:24px 32px 32px 32px;border-bottom:unset;border-left:unset;border-right:unset;}.mobile.landscape &{justify-content:flex-start;@media screen and (max-width:525px){width:calc(100% - 230px);}}.mobile.portrait &{width:100%;overflow-y:scroll;}.now-bux-subscription.tablet &{@media (max-width:780px),(max-height:780px){padding:24px 32px 32px 8px;}}"],e=>{let{theme:t}=e;return t.colors.white20},e=>{let{landscapeModal:t}=e;return t&&(0,D.AH)(["width:calc(100% - 280px);height:100%;border-radius:0px;flex-direction:column;padding:32px;justify-content:center;.plan-info-title{margin-bottom:12px;}"])});D.Ay.div.withConfig({componentId:"sc-c66d3dad-1"})(["display:flex;justify-content:center;color:",";> img{margin-bottom:-1px;}"],e=>{let{theme:t}=e;return t.colors.white70}),D.Ay.div.withConfig({componentId:"sc-c66d3dad-2"})(["display:flex;padding:5px 12px 5px 6px;align-items:center;gap:4px;border-radius:24px;background:",";color:",";img{width:16px;height:16px;}p{text-transform:uppercase;}"],e=>{let{theme:t}=e;return t.colors.warning},e=>{let{theme:t}=e;return t.colors.white});let eJ=D.Ay.div.withConfig({componentId:"sc-c66d3dad-3"})(["display:flex;justify-content:center;align-items:flex-end;gap:16px;align-self:stretch;"," &.portrait{flex-direction:column;gap:16px;}.now-bux-subscription.tablet &{@media (max-width:710px),(max-height:710px){flex-direction:column;}}"],e=>{let{landscapeModal:t}=e;return t&&(0,D.AH)(["flex-direction:column;gap:16px;"])}),eV=D.Ay.div.withConfig({componentId:"sc-c66d3dad-4"})(["display:flex;flex-direction:row;width:100%;"]);D.Ay.div.withConfig({componentId:"sc-c66d3dad-5"})(["display:flex;padding:12px;flex-direction:column;justify-content:center;align-items:center;align-self:stretch;border-radius:8px;background:",";height:auto;max-height:96px;"],e=>{let{theme:t}=e;return t.colors.black30}),D.Ay.div.withConfig({componentId:"sc-c66d3dad-6"})(["display:flex;padding-top:8px;align-items:center;gap:8px;align-self:stretch;border-top:1px solid rgba(255,255,255,0.05);margin-top:8px;padding:0px;padding-top:8px;div{margin:0px;}"]),D.Ay.form.withConfig({componentId:"sc-c66d3dad-7"})(["display:flex;padding:6px 6px 6px 16px;border-radius:12px;background:",";"],e=>{let{theme:t}=e;return t.colors.black50}),(0,D.Ay)(eT.cl).withConfig({componentId:"sc-c66d3dad-8"})(["border:0px !important;background:transparent !important;padding:0 16px 0 0;font-size:16px;color:"," !important;"],e=>{let{theme:t}=e;return t.colors.white70}),(0,D.Ay)(eG).withConfig({componentId:"sc-c66d3dad-9"})(["width:auto;border-radius:6px;padding:9.5px 24px;text-wrap:nowrap;"]),D.Ay.span.withConfig({componentId:"sc-c66d3dad-10"})(["border-radius:8px;background:",";box-shadow:0px 4px 4px 0px ",";padding:9.5px 24px;display:flex;align-items:center;gap:8px;span{height:20px;width:20px;}h5{text-wrap:nowrap;color:",";}"],e=>{let{theme:t}=e;return t.colors.white10},e=>{let{theme:t}=e;return t.colors.black20},e=>{let{theme:t}=e;return t.colors.white}),(0,D.Ay)(a.M5).withConfig({componentId:"sc-c66d3dad-11"})(["text-transform:uppercase;color:"," !important;flex:1;"],e=>{let{theme:t}=e;return t.colors.white40}),(0,D.Ay)(eV).withConfig({componentId:"sc-c66d3dad-12"})(["h5{flex:1;color:",";}p{text-decoration:underline;color:",";cursor:pointer}"],e=>{let{theme:t}=e;return t.colors.white70},e=>{let{theme:t}=e;return t.colors.white}),(0,D.Ay)(a.e).attrs({as:"p"}).withConfig({componentId:"sc-c66d3dad-13"})(["color:",";margin-bottom:8px;"],e=>{let{theme:t,color:i}=e;return t.colors[i]}),D.Ay.div.withConfig({componentId:"sc-c66d3dad-14"})(["padding:12px;border-radius:8px;box-shadow:0px 8px 24px 0px rgba(0,0,0,0.08);background-color:",";display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:148px;flex-shrink:0;text-align:center;button{width:100%;}"],e=>{let{theme:t}=e;return t.colors.white20}),D.Ay.p.withConfig({componentId:"sc-c66d3dad-15"})(["display:flex;align-items:center;margin-bottom:8px;justify-content:center;"]),(0,D.Ay)(a.Dp).attrs({as:"span"}).withConfig({componentId:"sc-c66d3dad-16"})(["color:",";text-decoration-line:line-through;"],e=>{let{theme:t}=e;return t.colors.white40}),D.Ay.span.withConfig({componentId:"sc-c66d3dad-17"})(["color:",";font-size:16px;font-weight:700;line-height:150%;"],e=>{let{theme:t,color:i}=e;return t.colors[i]});let eY=D.Ay.div.withConfig({componentId:"sc-c66d3dad-18"})(["margin-top:12px;display:flex;flex-direction:column;gap:20px;&.landscape{margin-top:16px;}"]),eZ=e=>{let{source:t,onPlanSelected:i}=e,{t:l}=(0,o.B)(),s=(0,f.d4)(e=>e.play.availableNowPasses),c=(0,f.d4)(e=>e.play.limitedOrderPremiumPass),p=(0,f.d4)(e=>e.play.nowBuxPlayPass),x=(0,f.wA)(),h=(0,f.d4)(e=>e.play.orientation),g=(0,f.d4)(e=>e.play.isAndroidConnected),m=(0,f.d4)(e=>e.nowbuxRewards.nowbuxCreditsEarned),u=(0,f.d4)(e=>e.play.error),b=(0,C.Fr)()&&!(0,C.v1)()&&!(0,C.bh)(),[k,I]=(0,r.useState)(b&&((!g||u)&&window.innerHeightwindow.innerWidth||g&&!u&&h===j.QB.portrait)),[E,Q]=(0,r.useState)(!1),N=(0,r.useCallback)(()=>{setTimeout(()=>{I(b&&((!g||u)&&window.innerHeightwindow.innerWidth||g&&!u&&h===j.QB.portrait))},10)},[g,u,h,window.innerHeight,window.innerWidth]);(0,r.useEffect)(()=>{N()},[h,g,u]);let P=(0,r.useCallback)(()=>{(0,A.sx)("WatchFirstAdFreePlaytimeClicked",{nowPassSource:t}),(0,eb.$B)(),x({type:ey.A.UPDATE_REWARDED_AD_STATUS,payload:{rewardedAdFirstLoading:!0,rewardedAdFirstInfoPopup:!0}}),x({type:w.A.TOGGLE_SUBSCRIPTION_MODAL,payload:{showSubscriptionModal:!1}})},[x]);(0,r.useEffect)(()=>(window.addEventListener("orientationchange",N),()=>{window.removeEventListener("orientationchange",N)}),[]);let D=(0,r.useCallback)((e,i)=>(function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function d(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,d)}l((n=n.apply(e,t||[])).next())})})(void 0,void 0,void 0,function*(){if(!E){Q(!0);try{(0,A.sx)(y.g30,{planType:e,nowPassSource:t});let n=yield(0,eF.vs)("DR",i);n.status===j.wD.Success&&((0,v.vS)(n.subscriptionInfo),x({type:w.A.NOWPREMIUM_SUBSCRIPTION_STATUS,payload:{nowPremiumSubscriptionActive:!0,showSubscriptionEnabledModal:!0,showSubscriptionModal:!1,paymentInProgress:!1}}),(0,C.B3)())}catch(e){(0,ek.Ay)("handleRewardGrant: failed",{error:JSON.stringify(e)})}finally{Q(!1)}}}),[E,t]),U=(0,v.UE)()&&p;return(0,n.jsxs)(eX,{className:"pass-info ".concat(B?"portrait":""),landscapeModal:k,children:[(0,n.jsx)(a.fI,{className:"plan-info-title",children:l("choosePlan")}),(0,v.M7)()&&(0,n.jsx)(eJ,{landscapeModal:k,className:"".concat(B?"portrait":""),children:s.map(e=>(0,n.jsx)(ez,{image:(0,d._w)(ev),source:t,title:l(e.type),bgColor:"white",actualPrice:e.actualPrice,offerPrice:e.offerPrice,theme:"light",highlighted:e.label===y.MTH.bestValue,currency:e.currency,currencySymbol:e.currencySymbol,onClick:()=>{i(e)},className:k||B?"vertical":""}))}),(0,v.M7)()&&(null==s?void 0:s.length)>0&&(c||(0,v.Gt)()||U)&&!k&&(0,n.jsx)("div",{className:"divider-container",children:(0,n.jsx)("div",{className:"divider",children:"OR"})}),((0,v.M7)()&&(c||U)||(0,v.Gt)()&&!(0,C.ZA)())&&(0,n.jsxs)(eY,{className:"".concat(k?"landscape":""),children:[(0,v.M7)()&&c&&(0,n.jsx)(ez,{image:(0,d._w)(ev),source:t,title:l(c.type),bgColor:"white",actualPrice:c.actualPrice,offerPrice:c.offerPrice,theme:"light",limitedOffer:!0,currency:c.currency,currencySymbol:c.currencySymbol,onClick:()=>{i(c)},className:"vertical"}),!(0,v.UE)()&&(0,v.Gt)()&&!(0,C.ZA)()&&(0,n.jsx)(ez,{title:l("timeMinPass",{min:(0,eH.Jo)()}),onClick:P,bgColor:"white",actualPrice:0,offerPrice:0,theme:"light",className:"vertical",isRewardedAd:!0}),U&&(0,n.jsx)(ez,{title:l(p.type.replace(/\s+/g,"")),onClick:()=>D(p.type,p.productId),bgColor:"white",actualPrice:p.actualPrice,offerPrice:p.offerPrice,theme:"light",currency:p.currency,currencySymbol:p.currencySymbol,className:"vertical",titleColor:"black90",highlighted:p.label===y.MTH.bestValue,limitedOffer:p.label===y.MTH.limitedOffer,isNowBuxCard:!0,isDisabled:m{let{source:t,setOverlay:i}=e,{t:k}=(0,o.B)(),{setShowPaymentModal:I,selectedPass:B,paymentsToken:S,paymentsGuid:E,paymentOptions:Q,handleSubscriptionPlanClicked:N,showPaymentModal:P}=(0,eq.A)({source:t}),D=(0,f.d4)(e=>e.play.orientation),U=(0,f.d4)(e=>e.play.isAndroidConnected),M=(0,f.d4)(e=>e.play.error),_=(0,C.Fr)()&&!(0,C.v1)()&&!(0,C.bh)(),[L,R]=(0,r.useState)(_&&((!U||M)&&window.innerHeightwindow.innerWidth||U&&!M&&D===j.QB.portrait));(0,f.d4)(e=>e.play.paymentAppId);let F=(0,f.d4)(e=>e.auth.isLoggedIn),H=(0,f.d4)(e=>e.play.isSubscriptionExpiredInMiddleOfGame),T=(0,f.wA)(),O=(0,r.useCallback)(()=>{if(H)return void window.location.reload();T({type:w.A.TOGGLE_SUBSCRIPTION_MODAL,payload:{showSubscriptionModal:!1}})},[T]),G=(0,r.useCallback)(()=>{setTimeout(()=>{R(_&&((!U||M)&&window.innerHeightwindow.innerWidth||U&&!M&&D===j.QB.portrait))},10)},[U,M,D,window.innerHeight,window.innerWidth]);return((0,r.useEffect)(()=>{G()},[D,U,M]),(0,r.useEffect)(()=>{F&&(0,v.UE)()&&(0,C.B3)()},[F]),(0,r.useEffect)(()=>((0,A.sx)("NowPassPlanViewed",{nowPassSource:t}),window.addEventListener("orientationchange",G),window.addEventListener("resize",G),()=>{window.removeEventListener("orientationchange",G),window.removeEventListener("resize",G)}),[]),(0,r.useEffect)(()=>{i&&i(P)},[P]),(0,v.UE)()&&!P)?(0,n.jsxs)(eA,{className:"\n now-bux-subscription\n ".concat(_?"mobile":"","\n ").concat((0,C.v1)()||(0,C.bh)()?"tablet":"","\n ").concat(_?L?"landscape":"portrait":"","\n "),children:[(0,n.jsxs)(em,{children:[(0,n.jsxs)(ed,{children:[!_||L?(0,n.jsx)("img",{className:"bg-img",src:(0,d._w)(g),alt:""}):(0,n.jsxs)(el,{children:[(0,n.jsx)("img",{className:"portrait-bg",src:(0,d._w)(c),alt:""}),(0,n.jsx)("img",{className:"prime-coin",src:(0,d._w)(p),alt:""})]}),(0,n.jsxs)(ec,{landscapeModal:L,children:[(0,n.jsxs)(eh,{children:[(0,n.jsx)(ex,{src:(0,d._w)(s.A),alt:""}),(0,n.jsx)(ep,{src:(0,d._w)(l.A),alt:""})]}),(0,n.jsxs)(eg,{landscapeModal:L,children:[(0,n.jsx)("img",{src:(0,d._w)(h),width:"15px",alt:""}),(0,n.jsx)(a.Dp,{children:k("noAds")})]}),(0,n.jsxs)(eg,{landscapeModal:L,children:[(0,n.jsx)("img",{src:(0,d._w)(h),width:"15px",alt:""}),(0,n.jsx)(a.Dp,{children:k("playUnlimited")})]}),(0,n.jsxs)(eg,{landscapeModal:L,children:[(0,n.jsx)("img",{src:(0,d._w)(h),width:"15px",alt:""}),(0,n.jsx)(a.Dp,{children:k("playOnVpn")})]})]})]}),!(t===y.RmT.ProxyScreen&&(0,C.xl)())&&(0,n.jsx)(u.U,{onClick:O,children:(0,n.jsx)(b.A,{name:"cross-thin",size:24})}),(0,n.jsx)(eZ,{source:t,onPlanSelected:N})]}),(0,n.jsx)(eC,{hideSubModal:O})]}):P&&(0,v.CQ)(B.currency)?(0,n.jsx)(er,{onClose:()=>I(!1),product:B,source:t,paymentsToken:S,paymentsGuid:E,paymentOptions:Q,isLandscapeModalParent:L,orientationParent:D}):P?(0,n.jsx)(m.A,{onFailure:()=>I(!1),product:B,source:t,paymentsToken:S,paymentsGuid:E,paymentOptions:Q,isLandscapeModal:L,orientation:D}):(0,n.jsxs)(eA,{className:"".concat(W?"portrait":""),landscapeModal:L,children:[(0,n.jsxs)(ea,{landscapeModal:L,className:"".concat(W?"portrait":""),children:[(0,n.jsx)(es,{preload:"auto",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,landscapeModal:L,children:(0,n.jsx)("source",{src:y.FA2,type:"video/mp4"})}),(0,n.jsxs)(ec,{landscapeModal:L,children:[(0,n.jsxs)(eh,{children:[(0,n.jsx)(ex,{src:(0,d._w)(s.A),alt:""}),(0,n.jsx)(ep,{src:(0,d._w)(l.A),alt:""})]}),(0,n.jsxs)(eg,{landscapeModal:L,children:[(0,n.jsx)("img",{src:(0,d._w)(x.A),alt:""}),(0,n.jsx)(a.Dp,{children:k("noAds")})]}),(0,n.jsxs)(eg,{landscapeModal:L,children:[(0,n.jsx)("img",{src:(0,d._w)(x.A),alt:""}),(0,n.jsx)(a.Dp,{children:k("playOnVpn")})]}),(0,n.jsxs)(eg,{landscapeModal:L,children:[(0,n.jsx)("img",{src:(0,d._w)(x.A),alt:""}),(0,n.jsx)(a.Dp,{children:k("continuePlayingOnAnyDevice")})]}),(0,n.jsxs)(eg,{landscapeModal:L,children:[(0,n.jsx)("img",{src:(0,d._w)(x.A),alt:""}),(0,n.jsx)(a.Dp,{children:k("fullScreenImmersiveGameplay")})]})]})]}),!(t===y.RmT.ProxyScreen&&(0,C.xl)())&&(0,n.jsx)(u.U,{onClick:O,children:(0,n.jsx)(b.A,{name:"cross-thin",size:24})}),(0,n.jsx)(eZ,{source:t,onPlanSelected:N})]})};(0,D.AH)(["width:auto;background:transparent;border:0px;overflow:hidden;"]);let e$=D.Ay.div.withConfig({componentId:"sc-2c585607-0"})(["position:fixed;width:100%;height:100%;top:0;left:0;background:",";display:flex;justify-content:center;align-items:center;z-index:999;overflow-y:auto;"],e=>{let{theme:t}=e;return t.colors.black70}),e0=e=>{let{source:t}=e;return(0,n.jsxs)(e$,{children:[(0,n.jsx)("link",{rel:"preload",href:(0,d._w)(k.A),as:"image"}),(0,n.jsx)("link",{rel:"preload",href:(0,d._w)(I.A),as:"image"}),(0,n.jsx)("link",{rel:"preload",href:(0,d._w)(B.A),as:"image"}),(0,n.jsx)("link",{rel:"preload",href:(0,d._w)(l.A),as:"image"}),(0,n.jsx)("link",{rel:"preload",href:(0,d._w)(S.A),as:"image"}),(0,n.jsx)("link",{rel:"preload",href:(0,d._w)(E.A),as:"image"}),(0,n.jsx)(eK,{source:t})]})}},73205:(e,t,i)=>{i.d(t,{A:()=>n});let n={src:"/_next/static/media/now-prime-bg-landscape.43d9f327.webp",height:558,width:463,blurDataURL:"data:image/webp;base64,UklGRq4AAABXRUJQVlA4WAoAAAAQAAAABgAABwAAQUxQSC4AAAABUBRJUjNHzkkBFhDAF/+iEBERoU2coqI2YXGPckXxUFYBKPO5nTXgvR+AmJgBVlA4IFoAAADwAQCdASoHAAgAAkA4JaACdAEXfsqr62AA/vQWNM/oBTm2rSWXX6f8KX74wS+2eokAcezcm4WmdoO3N6+T6lzy/8skSh34teORQ5382N/oH9m7+HHUHiAAAAA=",blurWidth:7,blurHeight:8}},92921:(e,t,i)=>{i.d(t,{A:()=>n});let n={src:"/_next/static/media/now-prime-bg-portrait.adccca21.webp",height:392,width:760,blurDataURL:"data:image/webp;base64,UklGRpYAAABXRUJQVlA4WAoAAAAQAAAABwAAAwAAQUxQSCEAAAAAEwsBAAAIeREHCgoDAhkPBgMXBAQDAwMDAgEBAQEBAQEAVlA4IE4AAADQAQCdASoIAAQAAkA4JaACdAD0gdEbAAD+mtv/aH1cCXrdrC9Pz/OYz++1aCDGSkA5Hj4hX3DdJSwX7YzeKMF6WIcBXnaMNGLWeVZmkAA=",blurWidth:8,blurHeight:4}}}]); //# sourceMappingURL=3504.145464911383f8e7.js.map