1"use strict";(self.webpackChunkcoder=self.webpackChunkcoder||[]).push([[2831],{54878:function(e,t,a){var r=a(9950),n=a(41742);t.A=function(e){var t=e.onLoad;return r.useEffect((function(){var e="payPalScript";if(document.getElementById(e))null===t||void 0===t||t();else{var a=document.createElement("script"),r=n.T.IS_PROD?"AT5DTsokH_gqSKcIfTfX278t98xhZLa-s4qujnrfONAcu6rN7VyYaoAGQ5sCWXlJF36K74mP6eHMCnEf":"ASLERB-VeGBnS1gsDtJxy_D9GgcZnTXE9air3pqGzhzUZFLjT68B8FX2SZ91kiEGrF76a6kmz9u6U6PH";a.src="https://www.paypal.com/sdk/js?client-id=".concat(r,"&components=buttons&vault=true"),a.id=e,a.onload=t,document.body.appendChild(a)}})),null}},6880:function(e,t,a){a.r(t),a.d(t,{default:function(){return I}});var r=a(90675),n=a(10467),s=a(5544),i=a(29344),c=a(31673),l=a(9950),o=a(60345),d=a(567),p=a(90783),u=a(19059),m=a(44414),x=function(e){var t=e.price,a=e.referenceId,s="paypal-button-container-".concat(t).replace(/\./gm,"-");return l.useEffect((function(){window.paypal&&paypal.Buttons({createOrder:function(e,r){return r.order.create({purchase_units:[{reference_id:a,amount:{value:t}}]})},style:{layout:"vertical",color:"blue",shape:"rect",label:"paypal"},onApprove:function(){var e=(0,n.A)((0,r.A)().mark((function e(t,a){var n;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.order.capture();case 3:return n=e.sent,u.A.showLoading("finalizing"),e.next=7,p._.onPayPalPurchase(n.id);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),u.A.showErrorNotification("".concat(e.t0));case 12:u.A.dismissLoading();case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,a){return e.apply(this,arguments)}}()}).render("#".concat(s))}),[s]),(0,m.jsx)("div",{id:s})},f=a(54878),h=a(76971),v=a(23029),g=a(92901),y=a(22775),N=function(){return(0,g.A)((function e(){(0,v.A)(this,e)}),null,[{key:"getEventWithTopUpReward",value:function(e){var t=y.r.getValues().find((function(t){return t.isActive()&&t.getTopUpReward(e)})),a=null===t||void 0===t?void 0:t.getTopUpReward(e);return{bonusEvent:t,bonusReward:a}}}])}(),b=a(28417),j=a(35119),w=a(23327),A="https://cybercodeonline.com",P=function(){return!i.Ii.isNativePlatform()||w.A.getPlayer().iap>0?(0,m.jsxs)("button",{type:"button",className:"mt-[1px] mb-4 w-full border border-secondary flex flex-row text-left active:opacity-80",onClick:(0,n.A)((0,r.A)().mark((function e(){return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.clipboard.writeText(A);case 2:u.A.showTextNotification((0,j.vV)("IAP.paypalWebsiteCopied","URL copied to clipboard."));case 3:case"end":return e.stop()}}),e)}))),children:[(0,m.jsxs)("div",{className:"bg-secondary text-black-darker px-3 py-3 justify-center items-center",children:[(0,m.jsx)("span",{className:"text-[0.63rem] font-bold uppercase tracking-widest leading-none",children:"PayPal"}),(0,m.jsx)("span",{className:"text-xl font-bold leading-none mt-1",children:"+10%"})]}),(0,m.jsxs)("div",{className:"flex-1 p-3 justify-center",children:[(0,m.jsx)("span",{className:"text-sm font-bold text-secondary uppercase tracking-wider mb-1",children:(0,j.vV)("IAP.payalBanner.title","Free Bonus Units")}),(0,m.jsxs)("div",{className:"flex-row items-end",children:[(0,m.jsx)("span",{className:"text-xs text-secondary",children:A}),(0,m.jsx)("span",{className:"ml-auto text-[0.63rem] text-primary-dark uppercase tracking-wider",children:(0,j.vV)("IAP.payalBanner.paypalWebsiteCopyInstruction","Tap to copy")})]})]})]}):null},k=(0,l.memo)(P),I=function(e){return(0,c.q3)((function(){var t=e.className,a=h.x.getValues(),c=1;i.Ii.isNativePlatform()?a=a.filter((function(e){return!e.isPaypalExclusive()})):c=1.1;var u=l.useState(),v=(0,s.A)(u,2),g=v[0],y=v[1],A=w.A.getPlayer();return(0,m.jsxs)("div",{className:"min-h-full ".concat(t?"":"p-4"),children:[(0,m.jsx)(k,{}),!g&&(0,m.jsx)("div",{className:"",children:a.map((function(e){var t,a=w.A.AppProducts.find((function(t){return t.id===e.toString()}));if(i.Ii.isNativePlatform()&&!a)return null;var s=e.getTier(),l=50*Math.round(e.getPrice()),u=Math.round(e.getRewardConfig().iapCurrency),x=Math.round(e.getRewardConfig().iapCurrency*c),f=l!==x,h=Math.round(u/l*100-100),v=N.getEventWithTopUpReward(e),g=v.bonusEvent,P=v.bonusReward,k=e.getBanner();return(0,m.jsxs)(o.p,{title:e.getDisplayName(),className:"mb-2",borderColor:s.getColor(),onClick:(0,n.A)((0,r.A)().mark((function t(){return(0,r.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!i.Ii.isNativePlatform()){t.next=5;break}return t.next=3,p._.startPurchaseProcess(a.id);case 3:t.next=6;break;case 5:y(e);case 6:case"end":return t.stop()}}),t)}))),innerClassName:"flex-row w-full items-center",children:[k&&(0,m.jsx)("div",{className:"absolute right-2 top-0 uppercase text-xs font-semibold display-font bg-[var(--card-border-color)] mt-1 mr-2 rounded-sm text-black-darker px-2",children:k}),(0,m.jsx)(b.A,{className:"w-20 h-20",src:e.getImage()}),(0,m.jsxs)("div",{className:"flex-1 pt-4 pr-2 display-font",children:[(0,m.jsxs)("span",{className:"text-sm text-primary-dark",children:[(0,j.vV)("IAP.receive","Receive"),":"]}),h>0&&(0,m.jsxs)("span",{className:"text-secondary",children:["BONUS ",h,"%",c>1&&(0,m.jsxs)("span",{className:"",children:[" +",Math.round(100*c-100),"% (PayPal)"]})]}),(0,m.jsxs)("span",{className:"text-secondary",children:[f&&(0,m.jsx)("span",{className:"mr-2 line-through text-primary-dark",children:l.toLocaleStr
1ing()}),c>1&&(0,m.jsx)("span",{className:"mr-2 line-through text-primary-dark",children:u.toLocaleString()}),(0,m.jsx)("span",{className:"font-bold",children:f?x.toLocaleString():l.toLocaleString()}),(0,m.jsx)("span",{className:"ml-2 font-bold",children:"Units"})]}),P&&(0,m.jsxs)("div",{className:"mt-2 text-xs text-secondary",children:[!g.getTopUpRewardTitle()&&(0,m.jsx)("span",{children:(0,j.vV)("IAP.bonusReward","${eventName} bonus:",{eventName:g.getDisplayName()})}),g.getTopUpRewardTitle()&&(0,m.jsxs)("span",{children:[g.getTopUpRewardTitle(),":"]}),(0,m.jsx)(d.g,{title:"",reward:P,player:A})]}),(0,m.jsx)("div",{className:"items-end text-sm",children:null!==(t=null===a||void 0===a?void 0:a.price)&&void 0!==t?t:"".concat(e.getPrice()," USD")})]})]},e.getDisplayName())}))}),g&&(0,m.jsxs)("div",{className:"h-full p-4 mt-2 overflow-hidden rounded bg-pure-white text-black-darker",children:[(0,m.jsx)("p",{className:"text-lg font-bold",children:(0,j.vV)("IAP.paypal.paypalBonus","You will receive additional 10% more Units with paypal purchase")}),(0,m.jsxs)("p",{children:[(0,j.vV)("IAP.purchasing","Purchasing")," ",g.getDisplayName()]}),(0,m.jsxs)("p",{children:[(0,m.jsxs)("span",{className:"mr-2",children:[(0,j.vV)("IAP.receive","Receive"),":"]}),(0,m.jsx)("span",{className:"line-through text-[rgb(100,100,100)] mr-2",children:g.getRewardConfig().iapCurrency}),(0,m.jsx)("span",{children:Math.round(g.getRewardConfig().iapCurrency*c)})]}),(0,m.jsxs)("p",{className:"mb-2",children:[(0,j.vV)("IAP.total","total"),": ",g.getPrice()," USD"]}),(0,m.jsx)(x,{price:g.getPrice(),referenceId:g.toString()})]}),!i.Ii.isNativePlatform()&&(0,m.jsx)(f.A,{}),i.Ii.isNativePlatform()&&!w.A.hasInAppPurchase()&&(0,m.jsxs)("div",{className:"p-4 m-16 text-center",children:["In App purchase isn't available on this platform, ",(0,m.jsx)("br",{}),"please use our Android or iOS App. ",(0,m.jsx)("br",{})," If you are already using Android or iOS App, please try restarting and check internet connection"]})]})}))}}}]);
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.