1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6027],{91373:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});var a=s(67294);/** 2 * @license lucide-react v0.445.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=(...e)=>e.filter((e,t,s)=>!!e&&s.indexOf(e)===t).join(" ");/** 7 * @license lucide-react v0.445.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 12 * @license lucide-react v0.445.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let i=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:i="",children:c,iconNode:o,...d},u)=>(0,a.createElement)("svg",{ref:u,...l,width:t,height:t,stroke:e,strokeWidth:r?24*Number(s)/Number(t):s,className:n("lucide",i),...d},[...o.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(c)?c:[c]])),c=(e,t)=>{let s=(0,a.forwardRef)(({className:s,...l},c)=>(0,a.createElement)(i,{ref:c,iconNode:t,className:n(`lucide-${r(e)}`,s),...l}));return s.displayName=`${e}`,s}},36316:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});/** 17 * @license lucide-react v0.445.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let a=(0,s(91373).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},66043:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verifypaymenttestcard",function(){return s(92510)}])},92510:function(e,t,s){"use strict";s.r(t);var a=s(85893),r=s(87066),n=s(36316),l=s(11163),i=s(67294),c=s(86501),o=s(85819);t.default=()=>{let e=(0,l.useRouter)(),[t,s]=(0,i.useState)(),[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),[x,p]=(0,i.useState)(!0),[f,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{/(orderId=)\w+/g.test(e.asPath)?e.query.orderId&&(h(!1),p(!1)):(h(!0),p(!1))},[e]);let y=async e=>{u(!0);try{let t=(await r.default.post("./api/verifyPaymentsTestCard",{orderId:e})).data.data;s({...t})}catch(e){console.log(e)}finally{u(!1)}},w=e=>{navigator.clipboard.writeText(e),c.ZP.success("Copied to clipboard")},j=d||!t;return(0,i.useEffect)(()=>{e.query&&e.query.orderId&&!t&&y(e.query.orderId.toString())},[e,t]),(0,a.jsxs)("div",{className:"flex justify-center bg-white min-h-screen items-center flex-col w-full py-1",children:[(0,a.jsx)("div",{className:"flex flex-col items-center space-y-1",children:x?(0,a.jsx)(n.Z,{className:"animate-spin"}):m?(0,a.jsx)("p",{className:"text-3xl font-bold text-primary text-center",children:"Oops!.. Invalid Link :("}):(0,a.jsx)("div",{children:j?(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold text-primary text-center",children:"Fetching Payment Details"}),(0,a.jsx)(n.Z,{className:"w-6 h-6 text-primary animate-spin"})]}):(0,a.jsx)("div",{className:"w-[350px] mx-auto min-h-[450px] bg-white rounded-3xl shadow-lg px-8 py-4 relative",children:(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-4 h-full",children:["0000"===t.status?(0,a.jsx)("img",{src:"/assets/tick-icon.svg",alt:"success",className:"w-24 h-24 rounded-full"}):(0,a.jsx)("img",{src:"/assets/esclamination-mark-icon.svg",alt:"success",className:"w-24 h-24 rounded-full"}),(0,a.jsxs)("h2",{className:"text-2xl text-gray-800",children:["Transaction"," ","0000"===t.status?"Successful":"Failed"]}),(0,a.jsxs)("p",{className:"text-gray-500 flex items-center justify-center font-sm",children:["#",t.orderId," ",(0,a.jsx)("img",{src:"/assets/copy-icon.svg",alt:"rupee",className:"w-6 h-6 inline-block ml-1 cursor-pointer",onClick:()=>w(t.orderId)})]}),(0,a.jsxs)("div",{className:"w-full bg-gray-100 rounded-lg p-4 flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-gray-600 font-medium",children:"Amount (PKR)"}),(0,a.jsx)("span",{className:"text-gray-800 font-medium flex items-center justify-center",children:t.amount})]}),(0,a.jsxs)("div",{className:"w-full bg-gray-100 rounded-lg p-4 flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-gray-600 font-medium",children:"Coins"}),(0,a.jsxs)("span",{className:"text-gray-800 font-medium flex items-center justify-center",children:[(0,a.jsx)("img",{src:"/assets/rs-coin.svg",alt:"pryze-coin",className:"w-6 h-6 inline-block mr-1"}),t?.cash_amount]})]}),(0,a.jsx)("p",{className:"text-gray-400 text-center absolute bottom-6 w-[70%]",children:"0000"===t.status?`Congratulations! ${t.cash_amount} coins have been added to your wallet`:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Please "})," ",(0,a.jsx)("a",{target:"_blank",href:"https://wa.me/923225577993",className:"text-primary curs
21or-pointer hover:underline",children:"contact"})," ",(0,a.jsx)("span",{children:"our support team to resolve this issue"})]})})]})})})}),!d&&(0,a.jsx)("div",{className:"w-[350px] mt-4",children:(0,a.jsxs)("button",{className:"w-full text-white gap-2 text-xl p-4 rounded-2xl button-gradient hover:opacity-90 transition-all flex items-center justify-center",disabled:f,onClick:()=>{g(!0),(0,o.Z)(t?.status==="0000"),["http://localhost:3000","https://pryze.io","http://52.204.229.134:3001","http://3.109.28.231:3002","https://games.pryze.io"].forEach(e=>{window.opener.postMessage({status:t?.status==="0000"},e)})},children:[f&&(0,a.jsx)(n.Z,{className:"w-4 h-4 ml-2 animate-spin"}),"Return to Wallet"]})})]})}},85819:function(e,t){"use strict";t.Z=e=>{console.log(`[addQueryParamAndReload] Starting with pass=${e}`);let t=new URL(window.location.href);console.log(`[addQueryParamAndReload] Current URL: ${t.toString()}`),t.searchParams.set("pass",String(e)),console.log(`[addQueryParamAndReload] Updated URL params: ${t.searchParams.toString()}`),window.history.pushState({},"",t.toString()),console.log(`[addQueryParamAndReload] Pushed new state with URL: ${t.toString()}`),console.log("[addQueryParamAndReload] Reloading page..."),window.location.reload()}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=66043)}),_N_E=e.O()}]);
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.