1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6454],{53450:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers/my-auction-invoices-new",function(){return l(31376)}])},31376:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return _}});var a=l(85893),r=l(28646),n=l(99603),s=l(88446),i=l(41664),d=l.n(i),o=l(67294),c=l(59417),u=l(29552),h=l(79242),m=l(48583),x=l(94543),v=l(9008),j=l.n(v),y=l(61839),p=l(44080),b=l(91479),g=e=>{let{shippingModalOpen:t,setShippingModalOpen:l}=e,r=(0,o.useRef)(null),[i,d]=(0,o.useState)({});(0,o.useEffect)(()=>{t.openStatus&&(t.order_id>=1?u(t.order_id):l({openStatus:!1,order_id:-1}))},[t]);let u=async e=>{try{var t,l;let a=await s.Z.post("/invoices/getauction-shipping_details",{OrderID:e});Array.isArray(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.data)&&d(null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.data[0])}catch(e){console.error(e)}};return(0,a.jsx)("div",{children:t&&(0,a.jsx)(p.u.Root,{show:t.openStatus,children:(0,a.jsxs)(b.V,{as:"div",className:"relative z-10",initialFocus:r,onClose:()=>{l({openStatus:!1,order_id:-1})},children:[(0,a.jsx)(p.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,a.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,a.jsx)("div",{className:"fixed inset-0 z-10 w-full overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,a.jsx)(p.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,a.jsx)(b.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,a.jsxs)("div",{className:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4",children:[(0,a.jsxs)("div",{className:"mx-auto flex p-3 justify-between border rounded-md rounded-b-none ",children:[(0,a.jsx)("h1",{className:"p-3",children:"Shiping Details"}),t&&(0,a.jsx)("button",{className:"outline-none",onClick:()=>{l({openStatus:!1,order_id:-1})},children:(0,a.jsx)(n.G,{icon:c.YIN})})]}),(0,a.jsx)("div",{className:"sm:flex ",children:(0,a.jsxs)("div",{className:" text-center border border-t-0 rounded-md rounded-t-none p-5 w-full ",children:[(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)("table",{className:"w-full table-auto overflow-scroll border",children:(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{className:"border px-2 text-start",children:["invoice"," "]}),(0,a.jsx)("td",{className:"border px-2 text-start",children:(null==i?void 0:i.order_id)?null==i?void 0:i.order_id:"-"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"border px-2 text-start",children:"company name"}),(0,a.jsx)("td",{className:"border px-2 text-start",children:(null==i?void 0:i.shipping_company)?null==i?void 0:i.shipping_company:"-"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"border px-2 text-start",children:"bill no"}),(0,a.jsx)("td",{className:"border px-2 text-start",children:(null==i?void 0:i.way_bill)?null==i?void 0:i.way_bill:"-"})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"border px-2 text-start",children:"shipping date"}),(0,a.jsx)("td",{className:"border px-2 text-start",children:(null==i?void 0:i.dated)?null==i?void 0:i.dated:"-"})]})]})})}),(0,a.jsx)("div",{className:"flex justify-end mt-3",children:(0,a.jsx)("button",{onClick:()=>l({openStatus:!1,order_id:-1}),className:"border bg-gray-200 p-1 text-sm rounded-md",children:"Close"})})]})})]})})})})})]})})})},N=()=>{var e;let t=(0,m.Dv)(x.ZP),l=null==t?void 0:null===(e=t.userDetails)||void 0===e?void 0:e.status,[r,i]=(0,o.useState)({id:-1,dynamic_userRemainingBalance:0}),[v,p]=(0,o.useState)({loading:!1,success:"",error:""}
1),[b,N]=(0,o.useState)([]),[_,f]=(0,o.useState)([]),[A,w]=(0,o.useState)([]),[F,S]=(0,o.useState)([]),[P,C]=(0,o.useState)({openStatus:!1,order_id:-1});(0,o.useEffect)(()=>{T(),console.log("useEffect - fetchData")},[]);let R=e=>{let{type:t,auction_id:l,amount:a,userid:r}=e;return(0,h.Z)({type:t,auction_id:l,amount:a,userid:r,payment_type:"original",payment_details:{order_id:-1},tempNewPaymentFunctionality:"2024-06"})},T=async()=>{try{var e,t,l,a;p({loading:!0,success:"",error:""});let r=await s.Z.post("/live-auction-receipt-tally/get-user-balance-summary-payment-arr");if(Array.isArray(null==r?void 0:null===(e=r.data)||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.userPaymentInfo)){let e=null==r?void 0:null===(l=r.data)||void 0===l?void 0:null===(a=l.data)||void 0===a?void 0:a.userPaymentInfo;if(1===e.length){let t=e[0];t&&(Array.isArray(t.liveAuctionReceiptTallyArr)&&S(t.liveAuctionReceiptTallyArr),Array.isArray(t.piFinalOrderArr)&&f(t.piFinalOrderArr),Array.isArray(t.productFinalOrderArr)&&w(t.productFinalOrderArr),Array.isArray(t.liveAuctionReceiptArr)&&N(t.liveAuctionReceiptArr),i(t)),p({loading:!1,success:"success",error:""})}else p({loading:!1,success:"",error:"User does not exist"})}else p({loading:!1,success:"",error:"Unexpected error occured"})}catch(e){console.error(e),p({loading:!1,success:"",error:"something went wrong"})}};return(0,a.jsxs)("div",{className:"md:mx-28",children:[(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(j(),{children:(0,a.jsx)("title",{children:"My Auction Invoices New"})})}),(null==l?void 0:l.split(",").includes("1"))&&(null==l?void 0:l.split(",").includes("2"))&&(null==l?void 0:l.split(",").includes("8"))?(0,a.jsxs)("div",{className:"container mx-auto",children:[(0,a.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,a.jsx)(d(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,a.jsx)(d(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,a.jsx)(d(),{className:"hover:text-red-700",href:"/customers/my-auction-invoices",children:"My Auction Invoices"})]}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"py-3 text-red-500 space-y-2",children:[(0,a.jsx)("h1",{children:"***Partial Payment will be treated by FIFO Method."}),(0,a.jsxs)("h1",{children:["***Dear Patron, we request you to pay your invoice due in the bank by NEFT/RTGS transfer method."," ",(0,a.jsx)(d(),{className:"text-black",href:"/bank_details.html",children:"Bank details"})," ","are mentioned in the invoice."]}),(0,a.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,a.jsx)(a.Fragment,{children:(null==r?void 0:r.dynamic_userRemainingBalance)>=1&&(0,a.jsx)("div",{className:"text-end px-5 py-2",children:(0,a.jsxs)("button",{className:"bg-red-500 text-white rounded p-1 hover:bg-red-600 px-2 shadow-lg shadow-orange-200",children:[(0,a.jsxs)("h1",{children:["Wallet ",(0,a.jsx)("br",{})," "]}),(0,a.jsx)(n.G,{icon:c.H0g})," \xa0",(null==r?void 0:r.dynamic_userRemainingBalance)>=1&&(null==r?void 0:r.dynamic_userRemainingBalance)," /-"]})})}),(()=>{let e=_.filter(e=>2!==e.status&&11!==e.status);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{className:"text-2xl mt-3",children:"Pending Proforma Invoices"}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full border table-auto overflow-scroll mb-5",children:[(0,a.jsx)("thead",{className:"h-14",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"border",children:"#"}),(0,a.jsx)("th",{className:"border",children:"Auction Type"}),(0,a.jsx)("th",{className:"border",children:"Auction #"}),(0,a.jsx)("th",{className:"border",children:"Proforma Invoice Amount"}),(0,a.jsx)("th",{className:"border",children:"Proforma Invoice"}),(0,a.jsx)("th",{className:"border",children:"Advance Amount"}),(0,a.jsx)("th",{className:"border",children:"Received Amount"}),(0,a.jsx)("th",{className:"border",children:"Late Fee"}),(0,a.jsx)("th",{className:"border",children:"SubTotal Payable"}),(0,a.jsx)("th",{className:"border",children:"Grand Total (Payable with 2% Gateway Fee)"})]})}),(0,a.jsx)("tbody",{className:" text-center ",children:e.length>0?(0,a.jsx)(o.Fragment,{children:e.map((e,t)=>{var l;let s=(e,t)=>"number"==typeof e&&e>0?Math.round(1.02*e):Math.round(1.02*t);return(0,a.jsxs)("tr",{className:"h-12 ",children:[(0,a.jsx)("td",{className:"border",children:t+1}),(0,a.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":""}),(0,a.jsx)("td",{className:"border",children:(null==e?void 0:e.auction_id)&&(null==e?void 0:null===(l=e.auction_id)||void 0===l?void 0:l.toString().slice(2))}),(0,a.jsx)("td",{className:"border",children:(null==e?void 0:e.grand_total)>
10?null==e?void 0:e.grand_total:"-"}),(0,a.jsx)("td",{className:"border ",children:(0,a.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(r.id,"/").concat(null==e?void 0:e.invoice_number),children:null==e?void 0:e.invoice_number})}),(0,a.jsx)("td",{className:"border",children:e.dynamic_advanceAmount>=1?e.dynamic_advanceAmount:"-"}),(0,a.jsx)("td",{className:"border",children:e.dynamic_receivedAmount>=1?e.dynamic_receivedAmount:"-"}),(0,a.jsx)("td",{className:"border",children:(null==e?void 0:e.late_fee)?null==e?void 0:e.late_fee:"-"}),(0,a.jsxs)("td",{className:"border",children:[" ",(null==e?void 0:e.tally_balance)>0?null==e?void 0:e.tally_balance:"-"]}),(0,a.jsx)("td",{className:"border",children:(0,a.jsx)("div",{children:(null==e?void 0:e.tally_balance)>0&&(null==e?void 0:e.invoice_number)!==""&&(0,a.jsxs)("button",{onClick:()=>{R({type:null==e?void 0:e.type,auction_id:null==e?void 0:e.auction_id,userid:r.id,amount:s(null==e?void 0:e.tally_balance,null==e?void 0:e.grand_total)})},className:"bg-yellow-300 p-2 rounded-lg ",children:["Click to Pay"," ",(0,a.jsx)(n.G,{icon:c.H0g})," ",(null==e?void 0:e.tally_balance)>0&&s(null==e?void 0:e.tally_balance,null==e?void 0:e.grand_total),"/-"]})})})]})})}):(0,a.jsx)("tr",{children:(0,a.jsx)("th",{colSpan:10,className:" bg-gray-200 p-3",children:"Sorry, no record found"})})})]})})]})})(),(()=>{let e=A.filter(e=>""!==e.invoice_number&&""!==e.cart_id&&(1===e.type||2===e.type));return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{className:"text-2xl mt-3",children:"My Auction Invoices"}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full table-auto overflow-scroll border mb-5",children:[(0,a.jsx)("thead",{className:"h-14",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"border",children:"Invoice"}),(0,a.jsx)("th",{className:"border",children:"Invoice Date"}),(0,a.jsx)("th",{className:"border",children:"Dispatch Status"}),(0,a.jsx)("th",{className:"border",children:"Invoice Amount"}),(0,a.jsx)("th",{className:"border",children:"Late Fee"}),(0,a.jsx)("th",{className:"border",children:"Received Amount"}),(0,a.jsx)("th",{className:"border",children:"Advance Amount"}),(0,a.jsx)("th",{className:"border",children:"Paid Amount"}),(0,a.jsx)("th",{className:"border",children:"Pending Amount"}),(0,a.jsx)("th",{className:"border",children:"Gateway Fee"}),(0,a.jsx)("th",{className:"border",children:"Available Balance"}),(0,a.jsx)("th",{className:"border text-red-500",children:"View"})]})}),(0,a.jsxs)("tbody",{className:" text-center ",children:[e.length>0?e.map((e,t)=>{var l,s,i,d,o;let h,m,x,v;return(0,a.jsxs)("tr",{className:"h-10",children:[(0,a.jsx)("td",{className:"border w-[10%]",children:(null==e?void 0:e.auction_id)&&(null==e?void 0:null===(l=e.auction_id)||void 0===l?void 0:l.toString().slice(0,1))==="2"?"P-Auct- ".concat(null==e?void 0:null===(s=e.auction_id)||void 0===s?void 0:s.toString().slice(2)," #").concat(null==e?void 0:e.invoice_no):(null==e?void 0:null===(i=e.auction_id)||void 0===i?void 0:i.toString().slice(0,1))==="1"?"e-Auct- ".concat(null==e?void 0:null===(d=e.auction_id)||void 0===d?void 0:d.toString().slice(2)," #").concat(null==e?void 0:e.invoice_no):""}),(0,a.jsx)("td",{className:"border",children:(null==e?void 0:e.invoice_date)?(o=null==e?void 0:e.invoice_date,m=(h=new Date(o)).getDate(),x=h.getMonth(),v=h.getFullYear(),(0,a.jsx)(a.Fragment,{children:" ".concat(m,"-").concat(x,"-").concat(v)})):"-"}),(0,a.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,a.jsx)("h1",{className:"bg-yellow-600 rounded-lg p-1",children:"Processing"}):(null==e?void 0:e.status)===2?(0,a.jsxs)("h1",{className:"bg-green-500 text-white p-1 rounded-lg ",children:["Shipped-on",(0,a.jsxs)("span",{className:"inline-block text-xs ",children:[" ",Array.isArray(e.shippingResult)&&(null==e?void 0:e.shippingResult.length)>0&&(0,y.Z)(null==e?void 0:e.shippingResult[0].dated,"dd-MM-yyyy")]})]}):(null==e?void 0:e.status)===3?(0,a.jsx)("h1",{className:"bg-red-500 rounded-lg p-1",children:"Failed"}):(null==e?void 0:e.status)===4?(0,a.jsx)("h1",{className:"bg-blue-500 rounded-lg p-1",children:"Refund"}):11===e.status?(0,a.jsx)("h1",{className:"bg-blue-500 rounded-lg p-1",children:"Ready To Ship"}):""," "]}),(0,a.jsxs)("td",{className:"border",children:[(0,a.jsx)(n.G,{icon:c.H0g})," ",null==e?void 0:e.grand_total]}),(0,a.jsx)("td",{className:"border",children:null==e?void 0:e.late_fee}),(0,a.jsxs)("td",{className:"border",children:[" ",(0,a.jsx)(n.G,{icon:c.H0g})," ",(null==e?void 0:e.adjust_amount)>=1?null==e?void 0:e.adjust_amount:"-"]}),(0,a.jsx)("td",{className:"border",children:(null==e?void 0:e.advance_amount)>=1?null==e?void 0:e.advance_amount:"-"}),(0,a.jsx)("td",{className:"border",children:(null==e?void 0:e.received_amount)>=1?null==e?void 0:e.received_amount:"-"}),(0,a.jsxs)("td",{className:"border ",children:[" ",(0,a.jsx)(n.G,{icon:c.H0g}),e.tally_balance]}),(0,a.jsx)("td",{className:"border ",children:(null==e?void 0:e.bank_charges)>=1?null==e?void 0:e.bank_charges:"-"}),(0,a.jsx)("td",{className:"border ",children:r.dynamic_userRemainingBalance}),(0,a.jsxs)("td",{className:"border space-x-3 px-2",children:[" ",(0,a.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(r.id,"/").concat(e.invoice_number),children:(0,a.jsx)(n.G,{className:"text-xl hover:text-2xl text-red-600",icon:c.gSj})}),(null==e?void 0:e.status)===2&&(0,a.jsx)(n.G,{className:"text-xl hover:text-2xl text-blue-500",onClick:()=>{C({openStatus:!0,order_id:null==e?void 0:e.id})},icon:c.x0v})]})]},t)}):(0,a.jsx)("tr",{children:(0,a.jsx)("th",{colSpan:11,className:" bg-gray-100 p-3",children:"Sorry, no record found"})}),e.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("th",{colSpan:3,className:"border text-end px-5 text-red-500",children:"Total"}),(0,a.jsx)("th",{className:"border text-red-500",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),e&&(null==e?void 0:e.reduce((e,t)=>
1e+t.grand_total,0).toFixed(2))," "]})})," ",(null==e?void 0:e.some(e=>e.hasOwnProperty("late_fee")))?(0,a.jsx)("th",{className:" border text-red-500",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),e&&(null==e?void 0:e.reduce((e,t)=>e+t.late_fee,0).toFixed(2))," "]})}):(0,a.jsx)("th",{className:"border",children:"-"}),(0,a.jsx)("th",{className:"border text-red-500 ",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),e&&(null==e?void 0:e.reduce((e,t)=>e+t.dynamic_receivedAmount,0).toFixed(2))," "]})}),(null==e?void 0:e.some(e=>e.hasOwnProperty("advance_amount")))?(0,a.jsx)("th",{className:"border text-red-500",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),e&&(null==e?void 0:e.reduce((e,t)=>e+t.dynamic_advanceAmount,0).toFixed(2))," "]})}):(0,a.jsx)("th",{className:"border ",children:"-"}),(null==e?void 0:e.some(e=>e.hasOwnProperty("received_amount")))?(0,a.jsx)("th",{className:" border text-red-500",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),e&&(null==e?void 0:e.reduce((e,t)=>e+t.dynamic_paidAmount,0).toFixed(2))," "]})}):(0,a.jsx)("th",{className:"border",children:"-"}),(0,a.jsx)("th",{className:"border text-red-500",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),e&&(null==e?void 0:e.reduce((e,t)=>e+t.tally_balance,0).toFixed(2))," "]})}),(0,a.jsx)("th",{className:"border text-red-500",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),e&&(null==e?void 0:e.reduce((e,t)=>e+t.dynamic_gatewayFee,0).toFixed(2))," "]})}),(null==e?void 0:e.some(e=>e.hasOwnProperty("available_balance")))?(0,a.jsx)("th",{className:"border text-red-500",children:(0,a.jsxs)("h1",{className:"flex justify-center items-center",children:[(0,a.jsx)(n.G,{style:{marginRight:"5px"},icon:c.H0g}),r.dynamic_userRemainingBalance]})}):(0,a.jsx)("th",{className:"border",children:"-"})]})]})]})})]})})(),(0,a.jsx)(g,{shippingModalOpen:P,setShippingModalOpen:C})]}):(0,a.jsx)("h1",{className:"text-center text-xl",children:"You need to Verify your email and mobile"})]})},_=()=>{let e=(0,m.Dv)(x.ZP);return e.loading?(0,a.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,a.jsx)(N,{}):(0,a.jsx)(r.Z,{})}},79242:function(e,t,l){"use strict";var a=l(85893);l(67294);var r=l(88446),n=l(29552),s=l(86501);let i=async e=>{try{var t;let l=e.type,a=e.auction_id,i=e.userid,d=e.amount,o=e.payment_type,c=null==e?void 0:null===(t=e.payment_details)||void 0===t?void 0:t.order_id,u=null==e?void 0:e.tempNewPaymentFunctionality,h=async e=>{var t,l;let{orderId:a,type:n}=e;try{let e=await r.Z.post("/payment/initiate",{orderId:a,type:n,tempNewPaymentFunctionality:"string"==typeof u?u:""});return null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.payload}catch(e){return s.ZP.error(null==e?void 0:null===(l=e.response)||void 0===l?void 0:l.data),console.error(e),""}},m=async e=>{let{type:t,auction_id:l,userid:a,amount:n}=e;try{var s,i,d,o;let e=await r.Z.post("/invoices/insert_payment_response",{type:t,auction_id:l,userid:a,amount:n});if((null==e?void 0:null===(s=e.data)||void 0===s?void 0:null===(i=s.data)||void 0===i?void 0:i.id)===-1)return{};{let t=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:t,status:"success"}}}catch(e){return console.error(e),{}}};if("number"==typeof l&&(2===l||1===l)&&"number"==typeof a&&-1!==a&&"number"==typeof i&&-1!==i&&"number"==typeof d&&-1!==d){let e=0,t="";if("string"==typeof o&&"original"===o){let t=await m({type:l,auction_id:a,userid:i,amount:d});"string"==typeof t.status&&"success"===t.status&&(e=t.orderId)}"string"==typeof o&&"try-again"===o&&(e=c);let r=await h({orderId:e,type:l});if(r.length>0){t=r;let e=document.createElement("form");e.method="POST",e.action="".concat(n.Z.PAYMENT_GATEWAY_URL);
1let l=document.createElement("input");l.type="hidden",l.name="encRequest",l.value=t,e.appendChild(l);let a=document.createElement("input");a.type="hidden",a.name="access_code",a.value="".concat(n.Z.PAYMENT_GATEWAY_ACCESS_CODE),e.appendChild(a),document.body.appendChild(e),e.submit()}}}catch(e){console.error(e)}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("h4",{children:"please do not refresh the page........"})})})};t.Z=i},28646:function(e,t,l){"use strict";var a=l(85893),r=l(41664),n=l.n(r),s=l(11163);l(67294),t.Z=()=>{let e=(0,s.useRouter)(),t=e.asPath;return(0,a.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,a.jsx)("br",{}),(0,a.jsx)(n(),{className:"text-blue-500",href:"/login?re_url=".concat(t),children:"Click here to Login"})]})}},61839:function(e,t,l){"use strict";var a=l(30120);t.Z=(e,t)=>{try{if(!e)return"Date does not exist";let l=new Date(e),r=l.valueOf();if("number"!=typeof r||isNaN(r))return"Invalid Date";let n={year:l.getUTCFullYear(),month:l.getUTCMonth(),date:l.getUTCDate(),hours:l.getUTCHours(),minutes:l.getUTCMinutes(),seconds:l.getUTCSeconds()},s=a.ou.fromObject({year:n.year,month:n.month+1,day:n.date,hour:n.hours,minute:n.minutes,second:n.seconds});if(t.length>0)return s.setZone("Asia/Kolkata").toFormat(t).toString();return s.setZone("Asia/Kolkata").toString()}catch(e){return console.error(e),"Invalid Date"}}},9008:function(e,t,l){e.exports=l(42636)}},function(e){e.O(0,[120,1303,9774,2888,179],function(){return e(e.s=53450)}),_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.