1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3093],{52249:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers/my-auction-invoices",function(){return t(47258)}])},47258:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return _}});var s=t(85893),r=t(28646),l=t(99603),n=t(88446),i=t(41664),d=t.n(i),o=t(67294),c=t(59417),u=t(29552),h=t(44080),m=t(91479),x=t(86501),v=t(11163),y=t(79242),j=t(48583),b=t(94543),g=t(9008),p=t.n(g),N=t(61839),f=function(){var e;let a=(0,v.useRouter)();(0,o.useRef)(null);let t=(0,o.useRef)(null),r=(0,j.Dv)(b.ZP),i=null==r?void 0:null===(e=r.userDetails)||void 0===e?void 0:e.status,[g,f]=(0,o.useState)([]),[_,w]=(0,o.useState)(!1),[S,A]=(0,o.useState)(!1),[P,C]=(0,o.useState)([]),[F,T]=(0,o.useState)([]),[Z,R]=(0,o.useState)(0),[D,G]=(0,o.useState)(!1),[I,k]=(0,o.useState)(-1),[E,M]=(0,o.useState)({}),[H,O]=(0,o.useState)([]),[U,L]=(0,o.useState)(0),[Y,V]=(0,o.useState)({}),[K,B]=(0,o.useState)({loading:!1,success:"",error:""}),[W,q]=(0,o.useState)({id:-1,refer_person_1:"",refer_person_2:"",refer_person_3:"",email_v:-1,mobile_v:-1}),z=async()=>{try{B({loading:!0,success:"",error:""});let r=await n.Z.get("/user/viewuser");if(200===r.status){var e,t;k(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.id),q(null==r?void 0:r.data),1!==r.data.email_v&&(null==r?void 0:null===(t=r.data)||void 0===t?void 0:t.mobile_v)!==2&&(x.ZP.error("You need to verify your email and mobile",{duration:3e3,icon:(0,s.jsx)(l.G,{icon:c.FU$})}),a.push("/customers/profile"))}B({loading:!1,success:"success",error:""})}catch(e){console.error(e),B({loading:!1,success:"",error:"something went wrong"})}},X=async()=>{try{var e,a,t;B({loading:!0,success:"",error:""});let s=await n.Z.post("/invoices/getpifinalorder_all",{id:I});Array.isArray(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.data)&&(console.log(null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.data),f(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.data),B({loading:!1,success:"success",error:""}))}catch(e){console.error(e),B({loading:!1,success:"",error:"something went wrong"})}},Q=async()=>{try{await n.Z.post("/invoices/getlive_auction_receipt",{page_enabled:"y",page:1,limit:25,sortDetails:{sortKey:"id",sortType:-1},searchDetails:[{basicSearchKey:"status",basicSearchValue:1,basicSearchType:"number"},{basicSearchKey:"status",basicSearchValue:2,basicSearchType:"number"}],searchDetailsAnd:[{basicSearchKey:"userid",basicSearchValue:I,basicSearchType:"number"},{basicSearchKey:"type",basicSearchValue:5,basicSearchType:"number"}],searchQuery:""})}catch(e){console.error(e)}},$=async()=>{try{var e,a;B({loading:!0,success:"",error:""});let t=await n.Z.post("/invoices/getauction-invoices_pending",{id:I});Array.isArray(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)&&(C(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.data),B({loading:!1,success:"success",error:""}))}catch(e){console.error(e),B({loading:!1,success:"",error:"something went wrong"})}},J=async()=>{try{var e,a;B({loading:!0,success:"",error:""});let t=await n.Z.post("/invoices/getadvance_payment",{id:I});Array.isArray(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)&&(V(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.data),B({loading:!1,success:"success",error:""}))}catch(e){console.error(e),B({loading:!1,success:"",error:"something went wrong"})}},ee=async()=>{try{var e,a;B({loading:!0,success:"",error:""});let t=await n.Z.post("/invoices/getadvance_paidorder",{id:I});Array.isArray(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)&&(T(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.data),B({loading:!1,success:"success",error:""}))}catch(e){console.error(e),B({loading:!1,success:"",error:"something went wrong"})}},ea=async()=>{try{var e,a;B({loading:!0,success:"",error:""});let t=await n.Z.post("/invoices/getadvance_payment_count",{id:I});Array.isArray(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)&&(O(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.data),B({loading:!1,success:"success",error:""}))}catch(e){console.error(e)}},et=async e=>{try{var a,t;B({loading:!0,success:"",error:""});let s=await n.Z.post("/invoices/getauction-shipping_details",{OrderID:e});Array.isArray(null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.data)&&(M(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.data[0]),A(!0),B({loading:!1,success:"success",error:""}))}catch(e){console.error(e)}},es=async()=>
1{try{let e=await n.Z.get("/invoices/getmembership_for_adjust_invoice_amount"),a=e.data.data[0].balance;a>0&&L(a)}catch(e){console.error(e)}},er=e=>{let{type:a,auction_id:t,amount:s,userid:r}=e;return(0,y.Z)({type:a,auction_id:t,amount:s,userid:r,payment_type:"original",payment_details:{order_id:-1}})};return(0,o.useEffect)(()=>{z(),Q()},[]),(0,o.useEffect)(()=>{let e=async()=>{await X(),await $(),await ee(),await ea(),await J(),await es()};e()},[I]),(0,s.jsxs)("div",{className:"md:mx-28",children:[(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(p(),{children:(0,s.jsx)("title",{children:"My Auction Invoices"})})}),(null==i?void 0:i.split(",").includes("1"))&&(null==i?void 0:i.split(",").includes("2"))&&(null==i?void 0:i.split(",").includes("8"))?(0,s.jsxs)("div",{className:"container mx-auto",children:[(0,s.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,s.jsx)(d(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,s.jsx)(d(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,s.jsx)(d(),{className:"hover:text-red-700",href:"/customers/my-auction-invoices",children:"My Auction Invoices"})]}),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"py-3 text-red-500 space-y-2",children:[(0,s.jsx)("h1",{children:"***Partial Payment will be treated by FIFO Method."}),(0,s.jsxs)("h1",{children:["***Dear Patron, we request you to pay your invoice due in the bank by NEFT/RTGS transfer method."," ",(0,s.jsx)(d(),{className:"text-black",href:"/bank_details.html",children:"Bank details"})," ","are mentioned in the invoice."]}),(0,s.jsx)("h1",{children:"***Payments can also be made by Credit Card, Debit Card or Mobile Wallets at an additional 2% charge levied by the CCAvenue Payment Gateway."})]})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:"text-2xl mt-3",children:"Pending Proforma Invoices"}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full border table-auto overflow-scroll mb-5",children:[(0,s.jsx)("thead",{className:"h-14",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"border",children:"#"}),(0,s.jsx)("th",{className:"border",children:"Auction Type"}),(0,s.jsx)("th",{className:"border",children:"Auction #"}),(0,s.jsx)("th",{className:"border",children:"Proforma Invoice Amount"}),(0,s.jsx)("th",{className:"border",children:"Proforma Invoice"}),(0,s.jsx)("th",{className:"border",children:"Advance Amount"}),(0,s.jsx)("th",{className:"border",children:"Received Amount"}),(0,s.jsx)("th",{className:"border",children:"Late Fee"}),(0,s.jsx)("th",{className:"border",children:"SubTotal Payable"}),(0,s.jsx)("th",{className:"border",children:"Grand Total (Payable with 2% Gateway Fee)"})]})}),(0,s.jsx)("tbody",{className:" text-center ",children:g.length>0?g.map((e,a)=>{var t;let r=(e,a)=>"number"==typeof e&&e>0?Math.round(1.02*e):Math.round(1.02*a);return(0,s.jsxs)("tr",{className:"h-12 ",children:[(0,s.jsx)("td",{className:"border",children:a+1}),(0,s.jsx)("td",{className:"border",children:(null==e?void 0:e.type)&&(null==e?void 0:e.type)===1?"e-Auction":(null==e?void 0:e.type)===2?"Printed-Auction":(null==e?void 0:e.type)===3?"e-Store":""}),(0,s.jsx)("td",{className:"border",children:(null==e?void 0:e.auction_id)&&(null==e?void 0:null===(t=e.auction_id)||void 0===t?void 0:t.toString().slice(2))}),(0,s.jsx)("td",{className:"border",children:(null==e?void 0:e.grand_total)>0?null==e?void 0:e.grand_total:"-"}),(0,s.jsx)("td",{className:"border ",children:(0,s.jsx)("a",{className:"text-cyan-600",target:"_blank",rel:"noreferrer",href:"".concat(u.Z.CDN_URL_PUBLIC,"/users/BidderPI/").concat(null==e?void 0:e.auction_id,"/").concat(I,"/").concat(null==e?void 0:e.invoice_number),children:null==e?void 0:e.invoice_number})}),(0,s.jsxs)("td",{className:"border",children:[" ",(null==e?void 0:e.received_amount)>0?null==e?void 0:e.received_amount:"-"]}),(0,s.jsx)("td",{className:"border",children:(null==e?void 0:e.adjust_amount)>0?null==e?void 0:e.adjust_amount:"-"}),(0,s.jsx)("td",{className:"border",children:(null==e?void 0:e.late_fee)?null==e?void 0:e.late_fee:"-"}),(0,s.jsxs)("td",{className:"border",children:[" ",(null==e?void 0:e.balance)>
10?null==e?void 0:e.balance:"-"]}),(0,s.jsx)("td",{className:"border",children:(0,s.jsx)("div",{children:(null==e?void 0:e.balance)>0&&(0,s.jsxs)("button",{onClick:()=>{er({type:null==e?void 0:e.type,auction_id:null==e?void 0:e.auction_id,userid:I,amount:r(null==e?void 0:e.balance,null==e?void 0:e.grand_total)})},className:"bg-yellow-300 p-2 rounded-lg ",children:["Click to Pay"," ",(0,s.jsx)(l.G,{icon:c.H0g})," ",(null==e?void 0:e.balance)>0&&r(null==e?void 0:e.balance,null==e?void 0:e.grand_total),"/-"]})})})]})}):(0,s.jsx)("tr",{children:(0,s.jsx)("th",{colSpan:10,className:" bg-gray-200 p-3",children:"Sorry, no record found"})})})]})})]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:"text-2xl mt-3",children:"My Auction Invoices"}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full table-auto overflow-scroll border mb-5",children:[(0,s.jsx)("thead",{className:"h-14",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"border",children:"Invoice"}),(0,s.jsx)("th",{className:"border",children:"Invoice Date"}),(0,s.jsx)("th",{className:"border",children:"Dispatch Status"}),(0,s.jsx)("th",{className:"border",children:"Invoice Amount"}),(0,s.jsx)("th",{className:"border",children:"Late Fee"}),(0,s.jsx)("th",{className:"border",children:"Received Amount"}),(0,s.jsx)("th",{className:"border",children:"Advance Amount"}),(0,s.jsx)("th",{className:"border",children:"Paid Amount"}),(0,s.jsx)("th",{className:"border",children:"Pending Amount"}),(0,s.jsx)("th",{className:"border",children:"Gateway Fee"}),(0,s.jsx)("th",{className:"border",children:"Available Balance"}),(0,s.jsx)("th",{className:"border text-red-500",children:"View"})]})}),(0,s.jsxs)("tbody",{className:" text-center ",children:[P.length>0?P.map((e,a)=>{var t,r,n,i,d,o;let h=new Date(null==e?void 0:e.invoice_date);h.setTime(h.getTime());let m=h.toISOString();return(0,s.jsxs)("tr",{className:"h-10",children:[(0,s.jsx)("td",{className:"border w-[10%]",children:(null==e?void 0:e.auction_id)&&(null==e?void 0:null===(t=e.auction_id)||void 0===t?void 0:t.toString().slice(0,1))==="2"?"P-Auct- ".concat(null==e?void 0:null===(r=e.auction_id)||void 0===r?void 0:r.toString().slice(2)," #").concat(null==e?void 0:e.invoice_no):(null==e?void 0:null===(n=e.auction_id)||void 0===n?void 0:n.toString().slice(0,1))==="1"?"e-Auct- ".concat(null==e?void 0:null===(i=e.auction_id)||void 0===i?void 0:i.toString().slice(2)," #").concat(null==e?void 0:e.invoice_no):""}),(0,s.jsx)("td",{className:"border",children:(0,N.Z)(m,"MMMM dd, yyyy , hh:mm a")}),(0,s.jsxs)("td",{className:"border text-sm px-4 py-2",children:[(null==e?void 0:e.status)&&(null==e?void 0:e.status)===1?(0,s.jsx)("h1",{className:"bg-yellow-600 rounded-lg p-1",children:"Processing"}):(null==e?void 0:e.status)===2?(0,s.jsxs)("h1",{className:"bg-green-500 text-white p-1 rounded-lg ",children:["Shipped-on",(0,s.jsxs)("span",{className:"inline-block text-xs ",children:[" ",Array.isArray(e.shippingResult)&&(null==e?void 0:e.shippingResult.length)>0&&(0,N.Z)(null==e?void 0:e.shippingResult[0].dated,"dd-MM-yyyy")]})]}):(null==e?void 0:e.status)===3?(0,s.jsx)("h1",{className:"bg-red-500 rounded-lg p-1",children:"Failed"}):(null==e?void 0:e.status)===4?(0,s.jsx)("h1",{className:"bg-blue-500 rounded-lg p-1",children:"Refund"}):11===e.status?(0,s.jsx)("h1",{className:"bg-blue-500 rounded-lg p-1",children:"Ready To Ship"}):""," "]}),(0,s.jsxs)("td",{className:"border",children:[(0,s.jsx)(l.G,{icon:c.H0g})," ",null==e?void 0:e.grand_total]}),(0,s.jsx)("td",{className:"border",children:null==e?void 0:e.late_fee}),(0,s.jsxs)("td",{className:"border",children:[" ",(0,s.jsx)(l.G,{icon:c.H0g})," ",null==e?void 0:e.adjust_amount," "]}),(0,s.jsx)("td",{className:"border",children:null==e?void 0:e.advance_amount}),(0,s.jsx)("td",{className:"border",children:(null===(d=F[0])||void 0===d?void 0:d.order_id)?"waiting for confirmation":null==e?void 0:e.received_amount}),(0,s.jsxs)("td",{className:"border ",children:[" ",(0,s.jsx)(l.G,{icon:c.H0g}),(null===(o=F[0])||void 0===o?void 0:o.order_id)?0:null==e?void 0:e.balance]}),(0,s.jsx)("td",{className:"border ",children:null==e?void 0:e.bank_charges}),(0,s.jsx)("td",{className:"border ",children:null==e?void 0:e.available_balance}),(0,s.jsxs)("td",{className:"border space-x-3 px-2",children:[" ",(0,s.jsx)("a",{className:"",target:"_blank",rel:"noreferrer",href:"".concat(u.Z.CDN_URL_PUBLIC,"/users/BidderInvoice/").concat(null==e?void 0:e.auction_id,"/").concat(I,"/").concat(e.invoice_number),children:(0,s.jsx)(l.G,{className:"text-xl hover:text-2xl text-red-600",icon:c.gSj})}),(null==e?void 0:e.status)===2&&(0,s.jsx)(l.G,{className:"text-xl hover:text-2xl text-blue-500",onClick:()=>{et(null==e?void 0:e.OrderID)},icon:c.x0v})]})]},a)}):(0,s.jsx)("tr",{children:(0,s.jsx)("th",{colSpan:14,className:" bg-gray-100 p-3",children:"Sorry, no record found"})}),P.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("th",{colSpan:3,className:"border text-end px-5 text-red-500",children:"Total"}),(0,s.jsx)("th",{className:"border text-red-500",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.grand_total,0).toFixed(2))," "]})})," ",(null==P?void 0:P.some(e=>e.hasOwnProperty("late_fee")))?(0,s.jsx)("th",{className:" border text-red-500",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.late_fee,0).toFixed(2))," "]})}):(0,s.jsx)("th",{className:"border",children:"-"}),(0,s.jsx)("th",{className:"border text-red-500 ",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.adjust_amount,0).toFixed(2))," "]})}),(null==P?void 0:P.some(e=>e.hasOwnProperty("advance_amount")))?(0,s.jsx)("th",{className:"border text-red-500",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.advance_amount,0).toFixed(2))," "]})}):(0,s.jsx)("th",{className:"border ",children:"-"}),(null==P?void 0:P.some(e=>e.hasOwnProperty("received_amount")))?(0,s.jsx)("th",{className:" border text-red-500",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.received_amount,0).toFixed(2))," "]})}):(0,s.jsx)("th",{className:"border",children:"-"}),(0,s.jsx)("th",{className:"border text-red-500",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.balance,0).toFixed(2))," "]})}),(0,s.jsx)("th",{className:"border text-red-500",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.bank_charges,0).toFixed(2))," "]})}),(null==P?void 0:P.some(e=>e.hasOwnProperty("available_balance")))?(0,s.jsx)("th",{className:"border text-red-500",children:(0,s.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,s.jsx)(l.G,{style:{marginRight:"5px"},icon:c.H0g}),P&&(null==P?void 0:P.reduce((e,a)=>e+a.available_balance,0).toFixed(2))," "]})}):(0,s.jsx)("th",{className:"border",children:"-"})]})]})]})})]}),S&&(0,s.jsx)(h.u.Root,{show:S,children:(0,s.jsxs)(m.V,{as:"div",className:"relative z-10",initialFocus:t,onClose:A,children:[(0,s.jsx)(h.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,s.jsx)("div",{className:"fixed inset-0 z-10 w-full overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,s.jsx)(h.u.Child,{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,s.jsx)(m.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full ",children:(0,s.jsxs)("div",{className:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4",children:[(0,s.jsxs)("div",{className:"mx-auto flex p-3 justify-between border rounded-md rounded-b-none ",children:[(0,s.jsx)("h1",{className:"p-3",children:"Shiping Details"}),S&&(0,s.jsx)("button",{className:"outline-none",onClick:()=>{A(!1)},children:(0,s.jsx)(l.G,{icon:c.YIN})})]}),(0,s.jsx)("div",{className:"sm:flex ",children:(0,s.jsxs)("div",{className:" text-center border border-t-0 rounded-md rounded-t-none p-5 w-full ",children:[(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsx)("table",{className:"w-full table-auto overflow-scroll border",children:(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsxs)("td",{className:"border px-2 text-start",children:["invoice"," "]}),(0,s.jsx)("td",{className:"border px-2 text-start",children:(null==E?void 0:E.order_id)?null==E?void 0:E.order_id:"-"})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"border px-2 text-start",children:"company name"}),(0,s.jsx)("td",{className:"border px-2 text-start",children:(null==E?void 0:E.shipping_company)?null==E?void 0:E.shipping_company:"-"})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"border px-2 text-start",children:"bill no"}),(0,s.jsx)("td",{className:"border px-2 text-start",children:(null==E?void 0:E.way_bill)?null==E?void 0:E.way_bill:"-"})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"border px-2 text-start",children:"shipping date"}),(0,s.jsx)("td",{className:"border px-2 text-start",children:(null==E?void 0:E.dated)?null==E?void 0:E.dated:"-"})]})]})})}),(0,s.jsx)("div",{className:"flex justify-end mt-3",children:(0,s.jsx)("button",{onClick:()=>A(!1),className:"border bg-gray-200 p-1 text-sm rounded-md",children:"Close"})})]})})]})})})})})]})})]}):(0,s.jsx)("h1",{className:"text-center text-xl",children:"You need to Verify your email and mobile"})]})},_=()=>{let e=(0,j.Dv)(b.ZP);return e.loading?(0,s.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,s.jsx)(f,{}):(0,s.jsx)(r.Z,{})}},79242:function(e,a,t){"use strict";var s=t(85893);t(67294);var r=t(88446),l=t(29552),n=t(86501);let i=async e=>{try{var a;let t=e.type,s=e.auction_id,i=e.userid,d=e.amount,o=e.payment_type,c=null==e?void 0:null===(a=e.payment_details)||void 0===a?void 0:a.order_id,u=null==e?void 0:e.tempNewPaymentFunctionality,h=async e=>{var a,t;let{orderId:s,type:l}=e;try{let e=await r.Z.post("/payment/initiate",{orderId:s,type:l,tempNewPaymentFunctionality:"string"==typeof u?u:""});return null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.payload}catch(e){return n.ZP.error(null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.data),console.error(e),""}},m=async e=>{let{type:a,auction_id:t,userid:s,amount:l}=e;try{var n,i,d,o;let e=await r.Z.post("/invoices/insert_payment_response",{type:a,auction_id:t,userid:s,amount:l});if((null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.id)===-1)return{};{let a=null==e?void 0:null===(d=e.data)||void 0===d?void 0:null===(o=d.data)||void 0===o?void 0:o.id;return{orderId:a,status:"success"}}}catch(e){return console.error(e),{}}};if("number"==typeof t&&(2===t||1===t)&&"number"==typeof s&&-1!==s&&"number"==typeof i&&-1!==i&&"number"==typeof d&&-1!==d){let e=0,a="";if("string"==typeof o&&"original"===o){let a=await m({type:t,auction_id:s,userid:i,amount:d});"string"==typeof a.status&&"success"===a.status&&(e=a.orderId)}"string"==typeof o&&"try-again"===o&&(e=c);let r=await h({orderId:e,type:t});if(r.length>0){a=r;let e=document.createElement("form");e.method="POST",e.action="".concat(l.Z.PAYMENT_GATEWAY_URL);let t=document.createElement("input");t.type="hidden",t.name="encRequest",t.value=a,e.appendChild(t);let s=document.createElement("input");s.type="hidden",s.name="access_code",s.value="".concat(l.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........"})})})};a.Z=i},28646:function(e,a,t){"use strict";var s=t(85893),r=t(41664),l=t.n(r),n=t(11163);t(67294),a.Z=()=>{let e=(0,n.useRouter)(),a=e.asPath;return(0,s.jsxs)("div",{className:"md:mx-28 text-center text-red-500 p-10 bg-gray-100 text-xl",children:["Your are not Logged in to use this functionality .......! ",(0,s.jsx)("br",{}),(0,s.jsx)(l(),{className:"text-blue-500",href:"/login?re_url=".concat(a),children:"Click here to Login"})]})}},61839:function(e,a,t){"use strict";var s=t(30120);a.Z=(e,a)=>{try{if(!e)return"Date does not exist";let t=new Date(e),r=t.valueOf();if("number"!=typeof r||isNaN(r))return"Invalid Date";let l={year:t.getUTCFullYear(),month:t.getUTCMonth(),date:t.getUTCDate(),hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds()},n=s.ou.fromObject({year:l.year,month:l.month+1,day:l.date,hour:l.hours,minute:l.minutes,second:l.seconds});if(a.length>0)return n.setZone("Asia/Kolkata").toFormat(a).toString();return n.setZone("Asia/Kolkata").toString()}catch(e){return console.error(e),"Invalid Date"}}},9008:function(e,a,t){e.exports=t(42636)}},function(e){e.O(0,[120,1303,9774,2888,179],function(){return e(e.s=52249)}),_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.