PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/auction/live-auct…/[...path]-492c825466051f9b.js

js ripplemind.com collected 2026-10-06 13:15:20 UTC 30,989 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{28070:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auction/live-auction/e-auction/e-auction-live-detail/[...path]",function(){return s(25439)}])},25439:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return P},default:function(){return G}});var i=s(85893);s(85231);var r=s(88446),n=s(67294),l=s(99603),a=s(59417),d=s(53990),o=s(41664),c=s.n(o),u=s(29552),x=s(11163);s(58639);var m=s(48583),h=s(94543);s(90662),s(30714);var p=s(10329),g=s(87599),j=s(74293),v=s(7745),f=s(16686),b=s(74737),y=s(53920),_=s(46573),N=s(93729),w=s(44080),S=s(91479),F=s(56095),I=s(62300),D=s(86501),k=s(19123),L=s(88754),Z=e=>{var t,s,d,o;let p,g;let{recordId:j}=e,v=(0,x.useRouter)(),[f,b]=(0,m.KO)(F.Z),Z=(0,m.Dv)(h.ZP),T=null==Z?void 0:null===(t=Z.userDetails)||void 0===t?void 0:t.current_limit,C=null==Z?void 0:null===(s=Z.userDetails)||void 0===s?void 0:s.user_id,E=null==Z?void 0:null===(d=Z.userDetails)||void 0===d?void 0:d.status,B="";Z.isLoggedIn||(B="/login?re_url=".concat(v.asPath));let O=0,A=!1;T>=0&&(O=T,A=!0);let M=0,P="";if(Array.isArray(v.query.path)){let e=v.query.path[0];v.query.path[1],(P=e.substring(e.length-2)).length>0&&(M=parseInt(P))}let[G,R]=(0,n.useState)(!1),[z,U]=(0,n.useState)([]),[Y,q]=(0,n.use
1State)(0),[K,V]=(0,n.useState)(0),[H,W]=(0,n.useState)(0),[X,Q]=(0,n.useState)(0),[J,$]=(0,n.useState)(0),[ee,et]=(0,n.useState)(!1),[es,ei]=(0,n.useState)(!1),[er,en]=(0,n.useState)(Math.random()),[el,ea]=(0,n.useState)(0),[ed,eo]=(0,n.useState)(0),[ec,eu]=(0,n.useState)(0),[ex,em]=(0,n.useState)(!1),[eh,ep]=(0,n.useState)({type:"",status:!1}),[eg,ej]=(0,n.useState)({id:-1,code:-1,title:"",imagesArr:[],bid:0,bidder:-1,s_bid:0,s_bidder:-1,next_slab:0,minimum_price:0,estimated_price:"",description:"",status:-1,end_time:null,bidArr:[],end_time_str:"",consignorUserId:-1,consignor_uid:-1,product_current_lot_start_time:"",product_current_lot_duration:0}),[ev,ef]=(0,n.useState)(!1),[eb,ey]=(0,n.useState)(!1),[e_,eN]=(0,n.useState)(""),[ew,eS]=(0,n.useState)(""),[eF,eI]=(0,n.useState)(!1),[eD,ek]=(0,n.useState)(!1),[eL,eZ]=(0,n.useState)({validateStatus:!1,errorMsg:""}),eT=(0,n.useRef)(!1),eC=(0,n.useRef)(null),eE=(0,n.useRef)();eE.current=j,(0,n.useEffect)(()=>{var e,t;(null==eg?void 0:eg.consignorUserId)===Z.userDetails.user_id?(eI(!0),eS("You're not eligible to place a bid on your own lot")):(eI(!1),eS(""));let s=(0,_.If)({bidder:null==eg?void 0:eg.bidder,userId:Z.userDetails.user_id,s_bidder:null==eg?void 0:eg.s_bidder});s?(ef(!0),eN("You're highest bidder")):ef(!1);let i=(0,_.SP)({bidderList:z,userId:null==Z?void 0:null===(e=Z.userDetails)||void 0===e?void 0:e.user_id});i?ek(!0):ek(!1);let r=(0,_.wm)({s_bid:null==eg?void 0:eg.s_bid,userId:null==Z?void 0:null===(t=Z.userDetails)||void 0===t?void 0:t.user_id,s_bidder:null==eg?void 0:eg.s_bidder});r?ey(!0):ey(!1)},[eg,Z.userDetails.user_id,z]),(0,n.useEffect)(()=>(!1===eT.current&&(eO(),eA()),()=>{eT.current=!0}),[j]),(0,n.useEffect)(()=>{eA()},[j]),(0,n.useEffect)(()=>{let e=Math.max(ec,eg.minimum_price),t=(0,_.pr)(E,T,e);eZ(t)},[eg,T,C,ec]),(0,n.useEffect)(()=>{q(0)},[j]),(0,n.useEffect)(()=>{eg&&(eu(null==eg?void 0:eg.next_slab),V(null==eg?void 0:eg.s_bid),ea(null==eg?void 0:eg.s_bidder),$(null==eg?void 0:eg.bidder),W(null==eg?void 0:eg.bid),Q(null==eg?void 0:eg.consignor_uid),eo(null==eg?void 0:eg.minimum_price))},[eg]);let eB=e=>{q(parseInt(e))},eO=async()=>{try{let e=await (0,y.io)(u.Z.BACKEND_URL_SOCKET);e.on("auction-1-".concat(M),e=>{try{eA()}catch(e){console.error(e)}})}catch(e){console.error(e)}},eA=async()=>{try{var e;let t=[];eE.current&&eE.current>=1&&t.push({basicSearchKey:"code",basicSearchValue:eE.current,basicSearchType:"number"});let s={page:1,limit:1,sortDetails:{sortKey:"code",sortType:1},searchDetails:t,page_enabled:"y",auction_id:M},i=await r.Z.post("/product_1_live/get-product-1-live-detail-list-public",s),n=null===(e=i.data)||void 0===e?void 0:e.data;if(Array.isArray(n)&&n.length>=1){let e=n[0];ej(e),U(e.productBidderListArr)}}catch(e){console.error(e)}},eM=async e=>{let{bidAmt:t}=e;try{var s,i;let e=(0,_.pr)(null==Z?void 0:null===(s=Z.userDetails)||void 0===s?void 0:s.status,T,ec);if(!1===e.validateStatus){let t=e.errorMsg;(0,N.Z)({msg:t,type:"error"});return}if(!e)return;let n=await r.Z.post("product-1-bid/insert-product-1-bid",{lotno:eg.code,bid:t,s_bid:0,bid_type_normal_secret:1}),l=n.data.data;if("object"==typeof l&&(null===(i=Object.keys(l))||void 0===i?void 0:i.length)>0){let e=l.id;b([...f,{bidId:e,auctionType:1,bidType:"normal"}])}}catch(e){console.error(e)}},eP=async()=>{try{let e=await r.Z.post("product-1-bid/insert-product-1-bid",{lotno:eg.code,bid:0,s_bid:Y,bid_type_normal_secret:2}),t=e.data.data;if("object"==typeof t&&Object.keys(t).length>0){let e=t.id;b([...f,{bidId:e,auctionType:1,bidType:"secret"}])}q(0)}catch(e){console.error(e),D.ZP.error("Unexpected error")}},eG=e=>{"bid"===eh.type?eM({bidAmt:Math.max(eg.bid,eg.minimum_price,eg.next_slab)}):"Secret Bid"===eh.type&&eP()},eR=async e=>{try{if(isNaN(Y))return;let t=Math.max(eg.bid,eg.minimum_price,eg.next_slab),s=!1;if(Y>=t&&(s=!0),!s){(0,N.Z)({msg:"Your Maximum Bid should be equal or more than next bid slab",type:"error"});return}if(Y%100!=0&&s){(0,N.Z)({msg:"  Sorry, please enter bid in multiple of 100's, thank you",type:"error"});return}eh.status?ep({type:e,status:!1}):ep({type:e,status:!0})}catch(e){console.error(e)}},ez=e=>{if(en(Math.random()),ee){eh.status?ep({type:e,status:!1}):ep({type:e,status:!0});return}ei(!0)},eU=()=>(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"flex justify-center py-2 px-1",children:(0,i.jsxs)("p",{children:["Sorry, ",(0,i.jsx)("span",{className:"font-semibold text-red-800 ",children:"your limit is insufficient"}),", please contact to site administrator for limit  Or Click here to ",(0,i.jsx)(c(),{href:"/customers/become-a-bidder",className:" underline hover:text-red-800",children:"Buy Membership"})," "]})})});return(0,i.jsxs)("div",{children:[(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex flex-col rounded w-full",children:[(0,i.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-1 xxxs:grid-flow-row",children:[(0,i.jsx)("div",{className:"flex justify-center items-center font-semibold",children:(null==eg?void 0:null===(o=eg.product_current_lot_start_time)||void 0===o?void 0:o.length)>0&&7!==eg.status&&8!==eg.status&&(0,i.jsx)(I.Z,{sessionStartTime:null==eg?void 0:eg.product_current_lot_start_time,lotDuration:null==eg?void 0:eg.product_current_lot_duration,color:"detail"})}),(7===eg.status||8===eg.status)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"text-center mb-1",children:(0,i.jsx)("div",{className:"bg-blue-400 text-white",children:"Lot is Closed"})})}),2===eg.status&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"text-center mb-1",children:(0,i.jsx)("div",{className:"bg-red-500 text-white",children:"Current Lot is Live"})})}),(0,i.jsxs)("div",{className:"inline-flex border",children:[(0,i.jsx)("div",{className:"w-1/2 px-2 py-2 text-sm border-r",children:"Start Price"}),(0,i.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r  text-right font-semibold lining-nums",children:[(0,i.jsx)(l.G,{icon:a.sph,className:"h-3 w-3 ",size:"sm"}),(0,L.b)(eg.minimum_price)]})]}),(0,i.jsxs)("div",{className:"inline-flex border",children:[(0,i.jsx)("div",{className:"w-1/2 px-2 py-2 text-sm border-r",children:"Estimated Price"}),(0,i.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r  text-right font-semibold lining-nums",children:[(0,i.jsx)(l.G,{icon:a.sph,className:"h-3 w-3 ",size:"sm"}),(0,i.jsx)("span",{className:"text-xs",children:(0,L.b)(eg.estimated_price)})]})]})]}),Z.isLoggedIn&&(0,i.jsxs)(i.Fragment,{children:[1!==eg.status&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"pt-3",children:(0,i.jsx)(c(),{href:"/real-time-live-e-auction/auction-no-".concat(M,"/real-time-live-bidding"),children:(0,i.jsx)("button",{className:"px-2 w-full py-1 flex justify-center gap-2 bg-green-500 hover:bg-green-600 border-2 focus:border-green-300 border-green-500 rounded text-white",children:" Go to Live Lot "})})})}),1===eg.status&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"overflow-hidden text-center border",children:(0,i.jsx)("div",{className:"inline-flex",children:(0,i.jsxs)("div",{className:"px-2 py-2 text-sm gap-2",children:[(0,i.jsx)("span",{className:"pr-2"}),(0,i.jsxs)("span",{className:"pl-2 text-red-700 font-semibold",children:["Current Bid",(0,i.jsxs)("span",{className:"px-1 lining-nums font-semibold",children:[(0,i.jsx)(l.G,{icon:a.sph,size:"lg",className:"h-4 w-4"})," ",(0,L.b)(eg.bid)]})," "]})]})})}),(0,i.jsx)("div",{children:(p=0,Z.userDetails.limit>0&&(p=Z.userDetails.limit),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"py-2 ",children:(0,i.jsx)("div",{className:"flex flex-col  border border-gray-200  rounded w-full",children:(0,i.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-1 xxxs:grid-flow-row",children:[Z.isLoggedIn&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"inline-flex border-b",children:[(0,i.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Allocated Bid Limit"}),(0,i.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,i.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-left font-semibold lining-nums",children:(0,L.b)(p)})]}),(0,i.jsxs)("div",{className:"inline-flex border-b",children:[(0,i.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Current Bid Limit"}),(0,i.jsx)("div",{className:" flex justify-center items-center",children:":"}),(0,i.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-left font-semibold lining-nums",children:(0,L.b)(O)})]})]}),!Z.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"inline-flex border-b",children:[(0,i.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Current Bid Limit"}),(0,i.jsx)("div",{className:" flex justify-center items-center",children:":"})]})}),Z.isLoggedIn&&(0,i.jsx)(i.Fragment,{})]})})})}))}),(0,i.jsx)("div",{children:ex&&(0,i.jsxs)("h1",{children:["you can request to increase Bidding limit by clicking the link below ",(0,i.jsx)("br",{}),(0,i.jsx)(c(),{className:"text-blue-500 hover:text-blue-700",href:"/customers/my-bid-limit",children:"Request Bid Limit"})]})}),(0,i.jsxs)("div",{className:"",children:[!(0,_.F4)({consignor_uid:X,userId:C})&&(g=!0,ev&&(g=!1),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"py-1",children:A?(0,i.jsxs)(i.Fragment,{children:[!eF&&(0,i.jsxs)(i.Fragment,{children:[ev&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" flex  justify-center font-semibold text-green-500",children:e_})}),eb&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:" flex justify-center text-500 lining-nums",children:["Your Secret Bid amount :",(0,i.jsx)(l.G,{icon:a.sph,className:"h-3 w-4 my-auto"}),(0,L.b)(eg.s_bid)]})}),!ev&&eD&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" flex py-2 justify-center font-semibold text-red-500",children:"You are outbidden"})}),g&&(0,_.ez)({bid:H,bidder:J,s_bid:K,s_bidder:el,next_bid:Math.max(ed,ec),userId:C,userCurrentLimit:T,consignor_uid:X,nextSlab:0,status:""})&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("button",{onClick:()=>ez("bid"),className:"px-2 w-full py-1 flex justify-center gap-1 bg-red-500 hover:bg-red-600 border-2 focus:border-red-300 border-red-500 rounded text-white",children:[" Place Next Bid",(0,i.jsx)(l.G,{icon:a.sph,className:"h-4 w-4"}),(0,i.jsx)("span",{className:"font-semibold lining-nums",children:(0,L.b)(Math.max(eg.bid,eg.minimum_price,eg.next_slab))})]})})]}),eF&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" flex px-1 py-2 justify-center font-semibold text-red-800",children:ew})}),eL.validateStatus&&(()=>{let e=Math.max(eg.minimum_price,eg.next_slab),t=async()=>
1{if(en(Math.random()),ee){await eR("Secret Bid");let e=await (0,_.ez)({bid:H,bidder:J,s_bid:K,s_bidder:el,next_bid:Y,userId:C,userCurrentLimit:T,consignor_uid:X,nextSlab:0,status:""});if(!1===e){em(!0),(0,N.Z)({msg:"Oops! Your bid cannot be processed due to an insuffcient bidding limit.Increase it by sending us an email.",type:"error"}),ep({type:"Secret Bid",status:!1});return}}else ei(!0)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:" pt-2",children:(0,i.jsxs)("div",{className:"flex rounded-md ",children:[(0,i.jsx)("button",{type:"button",className:"p-1 inline-flex flex-shrink-0 justify-center  items-center  px-2 xxxs:rounded-l-md lg:rounded-none  lg:rounded-l-md border-1 bg-gray-200 text-black hover:bg-gray-300  focus:outline-none focus:ring-2 focus:ring-gray-300",children:(0,i.jsx)(l.G,{icon:a.sph,className:"h-3 w-3 ",size:"sm"})}),(0,i.jsx)("input",{type:"number",min:e,step:"100",placeholder:"Your Maximum Bid",onChange:e=>eB(e.target.value),value:Y>0?Y:"",className:"p-2 block w-full border-2 lining-nums border-gray-100 outline-none text-xs focus:border-gray-200"}),(0,i.jsx)("button",{type:"button",onClick:t,className:"p-1 inline-flex flex-shrink-0 justify-center  items-center px-3  xxxs:rounded-r-md lg:rounded-none lg:rounded-r-md border-1 bg-gray-200 text-black hover:bg-gray-300  focus:outline-none focus:ring-2 focus:ring-gray-300",children:"Bid"})]})})})})})(),!eL.validateStatus&&!1===ev&&(0,i.jsx)(i.Fragment,{children:eU()})]}):(0,i.jsx)(i.Fragment,{children:eU()})})})),(0,i.jsx)(k.Z,{currentProduct:eg,onAgreed:e=>{try{e?et(!0):et(!1)}catch(e){}},randomNumber:er,showTermsAndConditions:es}),!0===(0,_.F4)({consignor_uid:X,userId:C})&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" flex px-1 py-2 justify-center font-semibold text-red-800",children:"You're not eligible to place a bid on your own lot"})})]})]})]}),!Z.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"pt-3",children:(0,i.jsx)(c(),{href:B,children:(0,i.jsx)("button",{className:"px-2 w-full py-1 flex justify-center gap-2 bg-green-500 hover:bg-green-600 border-2 focus:border-green-300 border-green-500 rounded text-white",children:"Login to Bid Now "})})})})]})}),(()=>{let e;"bid"===eh.type?e=Math.max(eg.bid,eg.minimum_price,eg.next_slab):"Secret Bid"===eh.type&&(e=Y);let t=eg.code.toString().slice(-4),s=t.toString(),r=parseInt(parseInt(s,10).toString());return(0,i.jsx)(i.Fragment,{children:eh.status&&(0,i.jsx)(w.u.Root,{show:eh.status,as:n.Fragment,children:(0,i.jsxs)(S.V,{as:"div",className:"relative z-10",initialFocus:eC,onClose:()=>{ep({type:"",status:!1})},children:[(0,i.jsx)(w.u.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,i.jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:(0,i.jsx)("div",{className:"flex  items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,i.jsx)(w.u.Child,{as:n.Fragment,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,i.jsxs)(S.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg",children:[(0,i.jsx)("div",{className:"bg-white pt-5",children:(0,i.jsx)("div",{className:"",children:(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)(S.V.Title,{as:"h3",className:"text-base font-semibold leading-6 text-gray-900 p-3",children:"Bid confirmation"}),(0,i.jsx)("div",{className:"border bg-gray-200",children:(0,i.jsx)("div",{className:"px-2 py-2",children:(0,i.jsx)("div",{className:"flex flex-col",children:(0,i.jsxs)("div",{children:["Are you Confirm ",eh.type,(0,i.jsxs)("span",{className:"",children:[(0,i.jsx)(l.G,{icon:a.sph,className:"h-4 w-4 text-red-600"}),(0,i.jsx)("span",{className:"font-semibold",children:(0,L.b)(e)})," "]})," for  on ",(0,i.jsxs)("span",{className:"font-semibold",children:["Lot ",r]})," ?"]})})})})]})})}),(0,i.jsxs)("div",{className:"bg-gray-50  px-4 py-3  gap-3 sm:flex sm:flex-row-reverse sm:px-6",children:[(0,i.jsx)("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md text-white bg-green-500 px-3 py-2 text-sm font-semibold shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-green-600 sm:mt-0 sm:w-auto",onClick:()=>{eG(eh.type),ep({type:"",status:!1})},ref:eC,children:"Yes"}),(0,i.jsx)("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md text-white bg-red-500 px-3 py-2 text-sm font-semibold shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-red-600 sm:mt-0 sm:w-auto",onClick:()=>ep({type:"",status:!1}),ref:eC,children:"No"})]})]})})})})]})})})})()]})},T=s(22632),C=s(9008),E=s.n(C),B=s(30660),O=s(7023),A=s(48274),M=s(13415),P=!0,G=e=>{let{productDetailServer:t,productPrev:s,productNext:o,productTotalCount:y,productPosition:_,productStatus:w,auctionid:S,relatedCategoryProducts:F}=e,I=(0,x.useRouter)(),D=I.asPath,k=(0,m.Dv)(h.ZP),[L,C]=(0,n.use
1State)({}),[P,G]=(0,n.useState)(""),[R,z]=(0,n.useState)(""),[U,Y]=(0,n.useState)({auction_data:[{}]}),q="live-e-auction";(0,n.useEffect)(()=>{C(t),Y({auction_data:null==t?void 0:t.auction_info})},[t]),(0,n.useEffect)(()=>{K(t)},[t]);let K=e=>{let t="",s="";for(let i in e)if(e.hasOwnProperty(i)&&i.endsWith("Details")){let r=e[i];r.forEach(e=>{e.meta_description&&(t+=e.meta_description+", "),e.meta_keywords&&(s+=e.meta_keywords+", ")})}t=t.slice(0,-2),s=s.slice(0,-2),G(t),z(s)},V=0,H=0;if("object"==typeof L&&Object.keys(L).length>0){parseInt(L.code.toString().slice(0,4));let e=L.code.toString().slice(-4),t=e.toString();V=parseInt(parseInt(t,10).toString()),H=parseInt(L.code.toString().substring(2,4)),L.productBidderListArr}let[W,X]=(0,n.useState)(""),[Q,J]=(0,n.useState)(!1),[$,ee]=(0,n.useState)(!1),[et,es]=(0,n.useState)(!1),ei="";k.isLoggedIn||(ei="/login?re_url=".concat(I.asPath));let er=e=>{X(e)};(0,n.useEffect)(()=>{(null==t?void 0:t.length)===0&&(es(!0),I.push("/")),!0===w&&(es(!0),I.push("/"))},[L,w]);let en=async()=>{L.code&&await r.Z.post("/product_1_live/updateProduct_1_live_detail_list_publicViewCount",{code:null==L?void 0:L.code})};(0,n.useEffect)(()=>{en()},[null==L?void 0:L.code]);let el=async()=>{if("object"==typeof I.query&&W){let e=0,t=W.split("-");e=t[t.length-1];let s=e.length>3?"":"0".repeat(4-e.length);1===S.toString().length&&(e="100".concat(S).concat(s).concat(e)),2===S.toString().length&&(e="10".concat(S).concat(s).concat(e)),3===S.toString().length&&(e="1".concat(S).concat(s).concat(e));let i=[];parseInt(e)>=1&&i.push({basicSearchKey:"code",basicSearchValue:parseInt(e),basicSearchType:"number"});let n=await r.Z.post("product_1_live/get-product-1-live-detail-list-public",{page:1,limit:1,sortDetails:{sortKey:"code",sortType:-1},searchDetails:i,page_enabled:"y",auction_id:S}),l=n.data,a=null==l?void 0:l.data[0];if(a){let t=(0,T.Z)({category:[null==a?void 0:a.category1Details,null==a?void 0:a.category2Details,null==a?void 0:a.category3Details,null==a?void 0:a.category4Details,null==a?void 0:a.category5Details],title:null==a?void 0:a.title,auction:H,code:e,auctiontype:q,type:1,isLive:0});I.push(t),X("")}else(0,N.Z)({msg:"This Product is not available",type:"error"}),X("")}};return(0,i.jsxs)(i.Fragment,{children:["object"==typeof L&&Object.keys(L).length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(E(),{children:[(0,i.jsx)("title",{children:null==t?void 0:t.title}),(0,i.jsx)("meta",{name:"description",content:P}),(0,i.jsx)("meta",{name:"keywords",content:R}),(0,i.jsx)("meta",{name:"og:description",content:O.Z.OG_DESCRIPTION},"ogdescription"),(0,i.jsx)("meta",{property:"og:url",content:O.Z.OG_URL}),(0,i.jsx)("meta",{property:"og:title",content:null==t?void 0:t.title}),(0,i.jsx)("meta",{property:"og:type",content:O.Z.OG_TYPE},"ogtype"),(0,i.jsx)("meta",{property:"og:image",content:O.Z.OG_IMAGE},"ogimage")]})}),(0,i.jsx)("div",{className:"md:mx-8 px-3 lg:mx-28 lg:px-0 md:p-0 overflow-hidden",children:(0,i.jsx)("div",{className:"container mx-auto",children:(0,i.jsx)(A.Z,{isLiveEAuctionData:U})})}),(()=>{let e=[];for(let t in delete L.categoryHomepageDetails,L){let s=L[t];if(s&&s.length>0){let t=s[0];t.cat_url&&e.push({id:t.id,category:t.category,cat_url:t.cat_url})}}let t=H;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(p.Z,{product_hp:"",product_category_nav:e,cat_hp_str:"",code:0,search_query:"",auction_no:t,auctiontype:q,type:2})})})(),(0,i.jsx)("section",{className:"md:mx-8 px-3 lg:mx-28  lg:px-0 md:p-0",children:(0,i.jsxs)("div",{className:"container mx-auto",children:[(0,i.jsxs)("div",{className:"w-full flex justify-around md:flex-row xxxs:flex-col",children:[(0,i.jsx)(g.Z,{prev:s,next:o,position:_,total_count:y,auction_no:H,auctiontype:q}),(0,i.jsx)("div",{className:"lg:w-1/4 lg:ml-2 xxxs:py-2 lg:py-0 md:py-0",children:(0,i.jsxs)("div",{className:"flex rounded-md",children:[(0,i.jsx)("input",{type:"text",onChange:e=>er(e.target.value),onKeyDown:e=>{"Enter"===e.key&&el()},placeholder:"Enter Lot #",className:"p-2 block w-full border-2 border-gray-100 outline-none rounded-l-md text-xs focus:border-gray-200 "}),(0,i.jsx)("button",{type:"button",onClick:el,className:"p-1 inline-flex flex-shrink-0 justify-center  items-center rounded-r-md  border-1 bg-gray-200 text-black hover:bg-gray-300  focus:outline-none focus:ring-2 focus:ring-gray-300",children:"Search"})]})}),(0,i.jsx)("div",{})]}),(0,i.jsxs)("div",{className:"w-full lg:py-2 md:py-2 xxxs:py-1",children:[9!=L.status&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"border-2 border-gray-200 p-4 font-black w-full bg-gray-100",children:[" ","Lot # ",(0,i.jsxs)("span",{className:"lining-nums ",children:[" ",V]})," - ",(0,i.jsx)("span",{children:L.title})]}),(0,i.jsxs)("div",{className:"flex xxxs:flex-col lg:flex-row md:flex-row border-2 border-t-0 p-3",children:[(0,i.jsxs)("div",{className:"lg:w-2/3 md:w-2/3 md:flex",children:[(0,i.jsxs)("div",{className:"lg:w-2/5 md:w-3/5  lg:py-0",children:[(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)(B.Z,{code:null==L?void 0:L.code,page:"live-auctionDetail",productUrl:D}),k.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(j.Z,{code:L.code,loginStatus:k.isLoggedIn,type:2,wishlist_code:[],auction_type:q,view_type:"",pageType:""})}),!k.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(c(),{href:"".concat(ei),children:(0,i.jsx)("button",{className:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-1 px-2 rounded-r",children:(0,i.jsx)(l.G,{icon:a.m6i,size:"lg",className:"h-4 w-4 text-white"})})})})]})}),(0,i.jsx)("div",{children:(0,i.jsx)(b.Z,{imgArr:L.imagesArr,code:L.code,type:2})})]}),(0,i.jsxs)("div",{className:"md:w-3/5 w-full",children:[(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"",children:[(0,i.jsx)("div",{className:"md:float-left xxxs:hidden md:inline-flex gap-2 pb-2",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:"e-Auction #"}),(0,i.jsx)("span",{className:"lining-nums",children:H})]})}),(0,i.jsxs)("div",{className:"lg:float-right xxxs:hidden md:inline-flex gap-2",children:[(0,i.jsx)(l.G,{icon:a.Mdf,className:"h-4 w-4 outline-none"})," ",(0,i.jsxs)("span",{children:["Total View : ",(0,i.jsx)("span",{children:L.view})]})]})]})}),(0,i.jsxs)("div",{className:"py-2",children:[(0,i.jsx)("div",{className:"border grid md:grid-cols-2 border-gray-200 px-2 py-4 w-full",children:(0,i.jsx)("span",{className:"font-black",children:"Qu
1ick Details"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{description:[L.description_01Details,L.description_02Details,L.description_03Details,L.description_04Details,L.description_05,L.description_06,L.description_07,L.description_08],des_head:[L.d_01_head,L.d_02_head,L.d_03_head,L.d_04_head,L.d_05_head,L.d_06_head,L.d_07_head,L.d_08_head],type:q}),(0,i.jsx)(v.Z,{type:q,description:"".concat(null==t?void 0:t.description).concat("string"==typeof(null==t?void 0:t.description_note)?"<p></p>".concat(t.description_note):""),id:L.id})]})]})]})]}),(0,i.jsx)("div",{className:"lg:w-1/3 md:w-1/3 xxxs:py-4 lg:py-1 md:pl-2",children:(0,i.jsx)(Z,{recordId:null==t?void 0:t.code})})]})]}),9==L.status&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"flex justify-center items-center",children:(0,i.jsx)("img",{src:"".concat(u.Z.CDN_URL_PUBLIC,"/uploads/s/withdrwan.jpg"),className:"xxxs:object-contain h-64 xxxs:block"})})})]})]})})]}),et&&(0,i.jsx)(e=>{let{loading:t}=e;return(0,i.jsxs)("div",{className:"fixed top-0 left-0 w-full h-full flex items-center justify-center ".concat(t?"block":"hidden"),children:[(0,i.jsx)("div",{className:"absolute inset-0 bg-black opacity-50"})," ",(0,i.jsx)("div",{className:"z-10",children:(0,i.jsx)(d.Gz,{className:"text-white text-6xl animate-spin"})})]})},{loading:et}),0===Object.keys(L).length&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("section",{children:(0,i.jsx)("div",{className:"md:mx-8 px-3 lg:mx-28 lg:px-0 md:p-0 ",children:(0,i.jsx)("div",{className:"container mx-auto",children:(0,i.jsx)("div",{className:"w-full bg-gray-200 my-2 p-2 rounded ",children:(0,i.jsxs)("div",{className:"w-full  space-x-2 ",children:[(0,i.jsxs)(c(),{href:"/",className:"hover:text-red-900 text-xs",children:["Home ",(0,i.jsx)("span",{children:"/"})]}),(0,i.jsxs)(c(),{href:"/live-e-auction",className:"hover:text-red-900  text-xs",children:[" ","e-Auction"," "]})]})})})})}),(0,i.jsx)("section",{className:"md:mx-8 px-3 lg:mx-28  lg:px-0 md:p-0",children:(0,i.jsx)("div",{className:"container mx-auto",children:(0,i.jsx)("div",{className:"w-full flex justify-center items-center md:flex-row xxxs:flex-col",children:(0,i.jsx)("div",{className:"p-3 text-red-800 h-12",children:"oops!!.. Lot is not Found"})})})})]}),F.length>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("section",{className:"md:mx-8 px-3 lg:mx-28  lg:px-0 md:p-0",children:(0,i.jsx)("div",{className:"container mx-auto",children:(0,i.jsx)(M.Z,{relatedCategoryProducts:F,auctionType:"live-e-auction",page:"detail",show_more:!1,eshopRandomProductShowBtnThisWeek:!1})})})})]})}},62300:function(e,t,s){"use strict";var i=s(85893),r=s(99603),n=s(34288),l=s(67294);t.Z=e=>{let{sessionStartTime:t,lotDuration:s,color:a}=e,[d,o]=(0,l.useState)(""),c=new Date(t.replace("Z","+05:30")),u=()=>{let e=new Date(c.getTime()+1e3*s),t=new Date,i=e.getTime()-t.getTime();if(i<=0){o("This lot is closed for bidding");return}let r="".concat(Math.floor(i/864e5),"d ").concat(Math.floor(i%864e5/36e5),"h ").concat(Math.floor(i%36e5/6e4),"m ").concat(Math.floor(i%6e4/1e3),"s");o(r)};return(0,l.useEffect)(()=>{u();let e=setInterval(u,1e3);return()=>clearInterval(e)},[t,s]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"countdown ".concat("detail"===a?"bg-blue-400":"bg-green-700","  w-full mb-1 text-white px-2 py-1 font-medium flex justify-center items-center"),children:["Time Remaining : \xa0\xa0",(0,i.jsx)(r.G,{icon:n.SZw}),"\xa0\xa0",(0,i.jsx)("strong",{children:d})]})})}},48274:function(e,t,s){"use strict";var i=s(85893),r=s(67294),n=s(97005),l=s(25258);t.Z=e=>{let{isLiveEAuctionData:t}=e,[s,a]=(0,r.useState)(!1),[d,o]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[x,m]=(0,r.useState)(0),[h,p]=(0,r.useState)(""),[g,j]=(0,r.useState)("");(0,r.useEffect)(()=>{var e,s,i;t&&(null==t?void 0:null===(e=t.auction_data)||void 0===e?void 0:e.length)>0&&(p(null===(s=null==t?void 0:t.auction_data[0])||void 0===s?void 0:s.auction_no),j(null===(i=null==t?void 0:t.auction_data[0])||void 0===i?void 0:i.session_1_start_time))},[t]),(0,r.useEffect)(()=>{var e,s,i,r;if(t&&(null==t?void 0:null===(e=t.auction_data)||void 0===e?void 0:e.length)>
10){let e=(0,l.Oj)(null===(s=null==t?void 0:t.auction_data[0])||void 0===s?void 0:s.session_1_start_time),n=(0,l.L2)(null===(i=null==t?void 0:t.auction_data[0])||void 0===i?void 0:i.session_1_start_time,null===(r=null==t?void 0:t.auction_data[0])||void 0===r?void 0:r.session_1_end_time),d=(0,l.wW)();e?a(!0):a(!1),n?(o(!0),a(!1)):o(!1),d?(u(!0),a(!1)):u(!1)}},[x]);let v=()=>{let e=!1;try{var s,i;return"object"==typeof t&&(null==t?void 0:null===(s=t.auction_data)||void 0===s?void 0:s.length)>0&&(null===(i=null==t?void 0:t.auction_data[0])||void 0===i?void 0:i.status)===1&&(e=!0),e}catch(t){return console.error(t),e}};return(0,r.useEffect)(()=>{let e=window.setInterval(()=>{m(e=>e+1)},500);return()=>window.clearInterval(e)},[]),(0,i.jsxs)(i.Fragment,{children:[v()&&(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.Z,{pauseOnHover:!0,children:(0,i.jsxs)("div",{className:"px-10 text-red-800 cursor-pointer",children:["Our eAuction #",h," will take place on ",(0,i.jsxs)("strong",{children:[(e=>{let t=new Date(e),s=t.getTimezoneOffset();return t.setTime(t.getTime()+6e4*s),t.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"})})(g),"th"]})," . Lot closures will begin at ",(0,i.jsx)("strong",{children:(e=>{let t=new Date(e),s=t.getUTCHours(),i=t.getUTCMinutes();return"".concat(s%12==0?12:s%12,":").concat(i.toString().padStart(2,"0")," ").concat(s<12?"am":"pm")})(g)}),", with each lot closing every 30 seconds. Ensure your account is approved with the desired bidding limit to avoid last-minute disappointments. For assistance, contact us at ",(0,i.jsx)("strong",{className:"text-blue-600",children:"[email protected]"})," or ",(0,i.jsx)("strong",{className:"text-blue-600",children:"8867029800"}),"."]})})}),d&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.Z,{pauseOnHover:!0,children:(0,i.jsxs)("div",{className:"px-10 text-red-800 cursor-pointer",children:["eAuction #",h," is now LIVE! Bid on your favorite lots to win. Refresh if no changes appear. Ensure you have sufficient bidding limit. Clear cache and ensure strong internet connectivity for seamless bidding. For support, contact us at ",(0,i.jsx)("strong",{className:"text-blue-600",children:"8867029800"})," or ",(0,i.jsx)("strong",{className:"text-blue-600",children:"[email protected]"}),". Note: Outbid notifications will not be sent via email or SMS during the live sale."]})})})]}),c&&!v()&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.Z,{pauseOnHover:!0,children:(0,i.jsxs)("div",{className:"px-10 text-red-800 cursor-pointer",children:["We extend our gratitude to all bidders for participating and making eAuction ",h," a success. Invoices will be uploaded shortly. If you wish to sell your collections, please contact us at ",(0,i.jsx)("strong",{className:"text-blue-600",children:"[email protected]"})," with photos."]})})})})]})}}},function(e){e.O(0,[7948,3609,1303,3853,4153,1195,4288,1967,7398,3415,5409,6273,3472,7330,9774,2888,179],function(){return e(e.s=28070)}),_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.