1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5023],{2135:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/thank-you",function(){return r(39800)}])},39800:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var s=r(85893),n=r(99603),a=r(88446),i=r(11163),l=r(67294),d=r(59417),c=r(7103),o=r(6881),m=r(79242),x=r(48583),u=r(94543),h=r(41664),p=r.n(h),y=r(9008),g=r.n(y),v=r(7023),j=r(88754),f=()=>{var e,t;let r=(0,i.useRouter)(),h=(0,x.Dv)(u.ZP),y=null==h?void 0:null===(e=h.userDetails)||void 0===e?void 0:e.user_id,[f,b]=(0,l.useState)({orderId:0,type:0,auction_id:0,membership_plan:"",status:"",amount:0}),[N,w]=(0,l.useState)(10),_=0;r.isReady&&"string"==typeof r.query.order_id&&r.query.order_id.length>0&&(_=parseInt(null===(t=r.query)||void 0===t?void 0:t.order_id)),(0,l.useEffect)(()=>{_>0&&A(_)},[_]),(0,l.useEffect)(()=>{if(0!==N){let e=setTimeout(()=>{w(e=>e-1)},1e3);return()=>clearTimeout(e)}r.push("/customers")},[N]);let A=async e=>{try{let t=await a.Z.post("/payment/checkstatus",{orderId:e}),r=t.data;return b(r)}catch(e){console.error(e)}},E=()=>(0,c.Z)({type:4,payment_details:{plan:f.auction_id,membershipAmt:f.amount,order_id:f.orderId},payment_type:"try-again"}),T=()=>(0,o.Z)({type:3,CountryID:-1,AddressID:-1,payment_type:"try-again",Comment:"",payment_details:{order_id:f.orderId}}),C=()=>(0,m.Z)({type:null==f?void 0:f.type,amount:null==f?void 0:f.amount,auction_id:null==f?void 0:f.auction_id,userid:y,payment_type:"try-again",payment_details:{order_id:null==f?void 0:f.orderId}}),O=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"text-center py-5",children:[(0,s.jsxs)("h1",{className:"text-xl text-green-500 ",children:["This Page will be automatically redirect to dashboard in"," ",0!==N&&N," sec"," "]}),(0,s.jsx)("h1",{className:"text-2xl",children:"Or"}),(0,s.jsxs)(p(),{className:"hover:to-blue-500",href:"/customers",children:[" ","Click this Link to DashBoard"]})]})});return(0,s.jsxs)("section",{className:"md:mx-8 px-3 lg:mx-28 lg:px-0 md:p-0",children:[(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(g(),{children:[(0,s.jsx)("title",{children:"Thank you"}),(0,s.jsx)("meta",{name:"og:description",content:v.Z.OG_DESCRIPTION},"ogdescription"),(0,s.jsx)("meta",{property:"og:url",content:v.Z.OG_URL}),(0,s.jsx)("meta",{property:"og:title",content:v.Z.OG_TITLE}),(0,s.jsx)("meta",{property:"og:type",content:v.Z.OG_TYPE},"ogtype"),(0,s.jsx)("meta",{property:"og:image",content:v.Z.OG_IMAGE},"ogimage")]})}),(0,s.jsx)("div",{className:"container mx-auto",children:(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("div",{className:"m-auto",children:["string"==typeof f.status&&"Success"===f.status&&(0,s.jsxs)(s.Fragment,{children:["number"==typeof f.type&&4===f.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white p-6 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.fV7,className:"h-7 w-7 text-green-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order Successfully Placed"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Thank you for became our prime member. Get in touch for more information"})]}),(0,s.jsx)("div",{className:"flex flex-col border border-gray-200 rounded w-full",children:(0,s.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-1 xxxs:grid-flow-row",children:[(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 text-xs",children:["Order ID"," "]}),(0,s.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-left lining-nums",children:f.orderId})]}),(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Membership Plan"}),(0,s.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-left lining-nums",children:f.membership_plan})]}),(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Membership Amount"}),(0,s.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-left lining-nums",children:[(0,s.jsx)(n.G,{icon:d.sph,className:"h-3 w-3"}),(0,j.b)(f.amount)]})]})]})}),O()]})})}),"number"==typeof f.type&&3===f.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white p-6 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.fV7,className:"h-7 w-7 text-green-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order Successfully Placed"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Thank y
1ou for this order. Get in touch for more information"})]}),(0,s.jsx)("div",{className:"flex flex-col border border-gray-200 rounded w-full",children:(0,s.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-1 xxxs:grid-flow-row",children:[(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 text-xs",children:["Order ID"," "]}),(0,s.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-left lining-nums",children:f.orderId})]}),(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Total Amount"}),(0,s.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-left lining-nums",children:[(0,s.jsx)(n.G,{icon:d.sph,className:"h-3 w-3"}),(0,j.b)(f.amount)]})]})]})}),O()]})})}),"number"==typeof(null==f?void 0:f.type)&&((null==f?void 0:f.type)===1||(null==f?void 0:f.type)===2)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white p-6 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.fV7,className:"h-7 w-7 text-green-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order Successfully Placed"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Thank you for this order. Get in touch for more information"})]}),(0,s.jsx)("div",{className:"flex flex-col border border-gray-200 rounded w-full",children:(0,s.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-1 xxxs:grid-flow-row",children:[(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 text-xs",children:["Order ID"," "]}),(0,s.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-left lining-nums",children:null==f?void 0:f.orderId})]}),(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Total Amount"}),(0,s.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-left lining-nums",children:[(0,s.jsx)(n.G,{icon:d.sph,className:"h-3 w-3"}),(0,j.b)(null==f?void 0:f.amount)]})]})]})}),O()]})})})]}),"string"==typeof f.status&&"Aborted"===f.status&&(0,s.jsxs)(s.Fragment,{children:["number"==typeof f.type&&4===f.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white px-6 py-2 pt-5 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.xHz,className:"h-7 w-7 text-red-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order is Aborted"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Sorry, You abort this transaction."}),(0,s.jsx)("button",{onClick:E,className:"px-2 py-1 bg-green-500 border-green-200 hover:bg-green-600 hover:border-green-300 text-white rounded",children:"Try Again"})]})]})})}),"number"==typeof f.type&&3===f.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white px-6 py-2 pt-5 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.xHz,className:"h-7 w-7 text-red-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order is Aborted"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Sorry, You abort this transaction."}),(0,s.jsx)("button",{onClick:T,className:"px-2 py-1 bg-green-500 border-green-200 hover:bg-green-600 hover:border-green-300 text-white rounded",children:"Try Again"})]})]})})}),"number"==typeof f.type&&(1===f.type||(null==f?void 0:f.type)===2)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white px-6 py-2 pt-5 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.xHz,className:"h-7 w-7 text-red-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order is Aborted"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Sorry, You abort this transaction."}),(0,s.jsx)("button",{onClick:C,className:"px-2 py-1 bg-green-500 border-green-200 hover:bg-green-600 hover:border-green-300 text-white rounded",children:"Try Again"})]})]})})})]}),"string"==typeof f.status&&"Failure"===f.status&&(0,s.jsxs)(s.Fragment,{children:["number"==typeof f.type&&4===f.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white p-6 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.nYk,className:"h-7 w-7 text-red-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order is Failed"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Sorry, Try Again."}),(0,s.jsx)("button",{onClick:E,className:"px-2 py-1 bg-green-500 border-green-200 hover:bg-green-600 hover:border-green-300 text-white rounded",children:"Try Again"})]})]})})}),"number"==typeof f.type&&3===f.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white p-6 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.nYk,className:"h-7 w-7 text-red-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order is Failed"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Sorry, Try Again."}),(0,s.jsx)("button",{onClick:T,className:"px-2 py-1 bg-green-500 border-green-200 hover:bg-green-600 hover:border-green-300 text-white rounded",children:"Try Again"})]})]})})}),"number"==typeof f.type&&(1===f.type||(null==f?void 0:f.type)===2)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"bg-white p-6 md:mx-auto",children:[(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(n.G,{icon:d.nYk,className:"h-7 w-7 text-red-500"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h3",{className:" text-gray-900 font-bold text-center",children:"Order is Failed"}),(0,s.jsx)("p",{className:"text-gray-600 my-2",children:"Sorry, Try Again."}),(0,s.jsx)("button",{onClick:C,className:"px-2 py-1 bg-green-500 border-green-200 hover:bg-green-600 hover:border-green-300 text-white rounded",children:"Try Again"})]})]})})})]})]})})})]})}},79242:function(e,t,r){"use strict";var s=r(85893);r(67294);var n=r(88446),a=r(29552),i=r(86501);let l=async e=>{try{var t;let r=e.type,s=e.auction_id,l=e.userid,d=e.amount,c=e.payment_type,o=null==e?void 0:null===(t=e.payment_details)||void 0===t?void 0:t.order_id,m=null==e?void 0:e.tempNewPaymentFunctionality,x=async e=>{var t,r;let{orderId:s,type:a}=e;try{let e=await n.Z.post("/payment/initiate",{orderId:s,type:a,tempNewPaymentFunctionality:"string"==typeof m?m:""});return null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.payload}catch(e){return i.ZP.error(null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.data),console.error(e),""}},u=async e=>{let{type:t,auction_id:r,userid:s,amount:a}=e;try{var i,l,d,c;let e=await n.Z.post("/invoices/insert_payment_response",{type:t,auction_id:r,userid:s,amount:a});if((null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(l=i.data)||void 0===l?void 0:l.id)===-1)return{};{let t=null==e?void 0:null===(d=e.data)||void 0===d?void 0:null===(c=d.data)||void 0===c?void 0:c.id;return{orderId:t,status:"success"}}}catch(e){return console.error(e),{}}};if("number"==typeof r&&(2===r||1===r)&&"number"==typeof s&&-1!==s&&"number"==typeof l&&-1!==l&&"number"==typeof d&&-1!==d){let e=0,t="";if("string"==typeof c&&"original"===c){let t=await u({type:r,auction_id:s,userid:l,amount:d});"string"==typeof t.status&&"success"===t.status&&(e=t.orderId)}"string"==typeof c&&"try-again"===c&&(e=o);let n=await x({orderId:e,type:r});if(n.length>0){t=n;let e=document.createElement("form");e.method="POST",e.action="".concat(a.Z.PAYMENT_GATEWAY_URL);let r=document.createElement("input");r.type="hidden",r.name="encRequest",r.value=t,e.appendChild(r);let s=document.createElement("input");s.type="hidden",s.name="access_code",s.value="".concat(a.Z.PAYMENT_GATEWAY_ACCESS_CODE),e.appendChild(s),document.body.appendChild(e),e.submit()}}}catch(e){console.error(e)}return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("h4",{children:"please do not refresh the page........"})})})};t.Z=l},6881:function(e,t,r){"use strict";var s=r(85893);r(67294);var n=r(88446),a=r(29552);let i=async e=>{try{var t;let r=e.type,s=e.payment_type,i=e.CountryID,l=e.AddressID,d=e.Comment,c=null==e?void 0:null===(t=e.payment_details)||void 0===t?void 0:t.order_id,o=async e=>{try{let t=await n.Z.post("/payment/initiate",{orderId:e,type:3});return null==t?void 0:t.data.payload}catch(e){return console.error(e),""}},m=async(e,t,r)=>{try{let i=await n.Z.post("/product-checkout/eshop_checkout",{selectedAddress:e,selectedCountry:t,comment:r});if(200===i.status){var s,a;let e=null==i?void 0:null===(s=i.data)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.orderId;return{orderID:e,status:"success"}}}catch(e){return console.error(e),{}}},x=0;if("number"==typeof r&&3===r&&"number"==typeof l&&"number"==typeof i){let e="";if("string"==typeof s&&"original"===s){let e=await m(l,i,d);"object"==typeof e&&Object.keys(e).length>0&&"string"==typeof e.status&&"success"===e.status&&(x=e.orderID)}"string"==typeof s&&"try-again"===s&&(x=c);let t=await o(x);if(t.length>0){e=t;let r=document.createElement("form");r.method="POST",r.action="".concat(a.Z.PAYMENT_GATEWAY_URL);let s=document.createElement("input");s.type="hidden",s.name="encRequest",s.value=e,r.appendChild(s);let n=document.createElement("input");n.type="hidden",n.name="access_code",n.value="".concat(a.Z.PAYMENT_GATEWAY_ACCESS_CODE),r.appendChild(n),document.body.appendChild(r),r.submit()}}}catch(e){console.error(e)}return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("h4",{children:"please do not refresh the page........"})})})};t.Z=i},7103:function(e,t,r){"use strict";var s=r(85893);r(67294);var n=r(88446),a=r(29552);let i=async e=>{try{let t=e.type,r=e.payment_details,s=e.payment_type,i=async e=>{try{let t=await n.Z.post("/payment/initiate_membership",{orderId:e});return null==t?void 0:t.data.payload}catch(e){return console.error(e),""}},l=async(e,t)=>{try{let r=0,s=0;e>0&&t>0&&(r=e,s=t);let a={planType:r,amount:s},i=await n.Z.post("/order/create_membership",a);if(200===i.status){let e=null==i?void 0:i.data.orderId;return{orderID:e,status:"success"}}}catch(e){return console.error(e),{}}};if("number"==typeof t&&4===t&&"object"==typeof r&&Object.keys(r).length>0){let e=r.plan,t=r.membershipAmt,n=0,d="";if("string"==typeof s&&"original"===s){let r=await l(e,t);"object"==typeof r&&Object.keys(r).length>0&&"string"==typeof r.status&&"success"===r.status&&(n=r.orderID)}"string"==typeof s&&"try-again"===s&&(n=r.order_id);let c=await i(n);if(c.length>0){d=c;let e=document.createElement("form");e.method="POST",e.action="".concat(a.Z.PAYMENT_GATEWAY_URL);let t=document.createElement("input");t.type="hidden",t.name="encRequest",t.value=d,e.appendChild(t);let r=document.createElement("input");r.type="hidden",r.name="access_code",r.value="".concat(a.Z.PAYMENT_GATEWAY_ACCESS_CODE),e.appendChild(r),document.body.appendChild(e),e.submit()}}}catch(e){console.error(e)}return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("h4",{children:"please do not refresh the page........"})})})};t.Z=i},7023:function(e,t){"use strict";t.Z={OG_DESCRIPTION:"Auction, Buy & Sell of Coins, Notes, Stamps and Many Collectibles",OG_TYPE:"website",OG_IMAGE:"https://marudhararts.com/icons/ma_image.png",OG_TITLE:"marudhararts.com",OG_URL:"https://marudhararts.com"}},88754:function(e,t,r){"use strict";r.d(t,{b:function(){return s}});let s=e=>{try{let t="";if("number"==typeof e?t=e.toString():"string"==typeof e&&(t=e),t.includes("-")){let[e,r]=t.split("-");return n(e)+"-"+n(r)}return n(t)}catch(e){return console.error("Error formatting number:",e),"-"}},n=e=>{try{let t="",r=0,[s,n]=e.split(".");for(let e=s.length-1;e>=0;e--)t=s[e]+t,r++,3===r&&e>0?t=","+t:r>3&&(r-3)%2==0&&e>0&&(t=","+t);return n&&(t+="."+n),t}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},9008:function(e,t,r){e.exports=r(42636)}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=2135)}),_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.