1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4763],{72008:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auction/live-auction/p-auction/printed-auction-live-detail/[...path]",function(){return s(49347)}])},49347:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return R},default:function(){return q}});var i=s(85893);s(85231);var r=s(88446),n=s(67294),l=s(99603),a=s(59417),d=s(41664),o=s.n(d),c=s(29552),u=s(11163);s(58639);var x=s(48583),m=s(94543),h=s(90662),g=s(10329),p=s(87599),f=s(74293),v=s(7745),j=s(16686),y=s(53920),b=s(93729),_=s(44080),N=s(91479),w=s(56095),S=s(46573),I=s(34288),F=e=>{let{sessionStartTime:t}=e,[s,r]=(0,n.useState)(""),a=null==t?void 0:t.replace("Z","+05:30"),d=()=>{let e=new Date(a),t=new Date,s=e.getTime()-t.getTime();if(s<=0){r("Countdown expired");return}let i="".concat(Math.floor(s/864e5),"d ").concat(Math.floor(s%864e5/36e5),"h ").concat(Math.floor(s%36e5/6e4),"m ").concat(Math.floor(s%6e4/1e3),"s");r(i)};return(0,n.useEffect)(()=>{d();let e=setInterval(d,1e3);return()=>clearInterval(e)},[t]),(0,i.jsx)(i.Fragment,{children:"Countdown expired"!==s&&(0,i.jsxs)("div",{className:"countdown bg-blue-400 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)(l.G,{icon:I.SZw}),"\xa0\xa0",(0,i.jsx)("strong",{children:s})]})})},L=s(25258),D=s(19123),Z=s(88754),k=e=>{var t,s,d,h;let g,p;let{recordId:f,handleChangeNoBids:v}=e,j=(0,u.useRouter)(),[I,k]=(0,x.KO)(w.Z),T=(0,x.Dv)(m.ZP),C=T.userDetails.status,A=0,E=!1,M=null==T?void 0:null===(t=T.userDetails)||void 0===t?void 0:t.user_id,B=null==T?void 0:null===(s=T.userDetails)||void 0===s?void 0:s.current_limit;B>=0&&(A=B,E=!0);let P=0,G="";if(Array.isArray(j.query.path)){let e=j.query.path[0],t=j.query.path[1];(G=e.substring(e.length-2)).length>0&&(P=parseInt(G)),t.split("-")}let O="";T.isLoggedIn||(O="/login?re_url=".concat(j.asPath));let[z,R]=(0,n.useState)([]),[q,H]=(0,n.useState)(0),[K,Y]=(0,n.useState)(0),[U,V]=(0,n.useState)(0),[W,X]=(0,n.useState)(0),[Q,J]=(0,n.use
1State)(0),[$,ee]=(0,n.useState)(0),[et,es]=(0,n.useState)(0),[ei,er]=(0,n.useState)(0),[en,el]=(0,n.useState)(0),[ea,ed]=(0,n.useState)(!1),[eo,ec]=(0,n.useState)(!1),[eu,ex]=(0,n.useState)(!1),[em,eh]=(0,n.useState)(!1),[eg,ep]=(0,n.useState)(""),[ef,ev]=(0,n.useState)(!1),[ej,ey]=(0,n.useState)(!1),[eb,e_]=(0,n.useState)(""),[eN,ew]=(0,n.useState)(""),[eS,eI]=(0,n.useState)(!1),[eF,eL]=(0,n.useState)(!1),[eD,eZ]=(0,n.useState)({type:"",status:!1}),[ek,eT]=(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,start_time:"",consignor_uid:-1,session_1_start_time:"",auction_session:-1,session_2_start_time:"",pre_bidding_endtime_2:"",pre_bidding_endtime_1:"",auction_info:[{session_2_start_time:""}]}),[eC,eA]=(0,n.useState)(!1),[eE,eM]=(0,n.useState)(!1),[eB,eP]=(0,n.useState)(!1),[eG,eO]=(0,n.useState)(!1),[ez,eR]=(0,n.useState)(Math.random()),[eq,eH]=(0,n.useState)({validateStatus:!1,errorMsg:""}),eK=(0,n.useRef)(!1),eY=(0,n.useRef)(null),eU=(0,n.useRef)();eU.current=f,(0,n.useEffect)(()=>{let e=(0,L.H5)(),t=(0,L.dU)(),s=(0,L.wW)(),i=(0,L.E1)(null==ek?void 0:ek.pre_bidding_endtime_1,null==ek?void 0:ek.session_1_start_time);t&&ed(!0),e&&(ec(!0),ed(!1)),s&&(ex(!0),ec(!1),ed(!1)),i?eh(!0):eh(!1)},[en]),(0,n.useEffect)(()=>{let e=window.setInterval(()=>{el(e=>e+1)},500);return()=>window.clearInterval(e)},[]),(0,n.useEffect)(()=>{ek&&(er(null==ek?void 0:ek.next_slab),Y(null==ek?void 0:ek.s_bid),ee(null==ek?void 0:ek.s_bidder),J(null==ek?void 0:ek.bidder),V(null==ek?void 0:ek.bid),X(null==ek?void 0:ek.consignor_uid),es(null==ek?void 0:ek.minimum_price))},[ek]),(0,n.useEffect)(()=>{var e,t;W===T.userDetails.user_id?(eI(!0),ew("You're not eligible to place a bid on your own lot")):(eI(!1),ew(""));let s=(0,S.If)({bidder:null==ek?void 0:ek.bidder,userId:T.userDetails.user_id,s_bidder:null==ek?void 0:ek.s_bidder});s?(ev(!0),e_("You're highest bidder")):ev(!1);let i=(0,S.SP)({bidderList:z,userId:null==T?void 0:null===(e=T.userDetails)||void 0===e?void 0:e.user_id});i?eL(!0):eL(!1);let r=(0,S.wm)({s_bid:null==ek?void 0:ek.s_bid,userId:null==T?void 0:null===(t=T.userDetails)||void 0===t?void 0:t.user_id,s_bidder:null==ek?void 0:ek.s_bidder});r?ey(!0):ey(!1)},[ek,T.userDetails.user_id,z,W]),(0,n.useEffect)(()=>{let e=Math.max(ei,ek.minimum_price),t=(0,S.pr)(C,B,e);eH(t)},[ek,B,ei]),(0,n.useEffect)(()=>(!1===eK.current&&(eW(),e0()),()=>{eK.current=!0}),[f]),(0,n.useEffect)(()=>{e0()},[f]),(0,n.useEffect)(()=>{H(0)},[f]);let eV=e=>{H(parseInt(e))},eW=async()=>{try{let e=await (0,y.io)(c.Z.BACKEND_URL_SOCKET);e.on("auction-2-".concat(P),e=>{try{e0()}catch(e){console.error(e)}})}catch(e){console.error(e)}},eX=e=>{if(eR(Math.random()),eB){eD.status?eZ({type:e,status:!1}):eZ({type:e,status:!0});return}eO(!0)},eQ=async e=>{let{bidAmt:t}=e;try{var s,i;let e=(0,S.pr)(null==T?void 0:null===(s=T.userDetails)||void 0===s?void 0:s.status,B,ei);if(!1===e.validateStatus){let t=e.errorMsg;(0,b.Z)({msg:t,type:"error"});return}if(!e)return;let n=await r.Z.post("product-2-bid/insert-product-2-bid",{lotno:ek.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;k([...I,{bidId:e,auctionType:2,bidType:"normal"}])}}catch(e){console.error(e)}},eJ=async()=>{try{let e=await r.Z.post("product-2-bid/insert-product-2-bid",{lotno:ek.code,bid:0,s_bid:q,bid_type_normal_secret:2}),t=e.data.data;if("object"==typeof t&&Object.keys(t).length>0){let e=t.id;k([...I,{bidId:e,auctionType:2,bidType:"secret"}]),eA(e=>!e),eM(!1)}H(0)}catch(e){console.error(e)}},e$=e=>{"bid"===eD.type?eQ({bidAmt:Math.max(ek.bid,ek.minimum_price,ek.next_slab)}):"Secret Bid"===eD.type&&eJ()},e0=async()=>{try{var e;let t=[];eU.current&&eU.current>=1&&t.push({basicSearchKey:"code",basicSearchValue:eU.current,basicSearchType:"number"});let s={page:1,limit:1,sortDetails:{sortKey:"code",sortType:1},searchDetails:t,page_enabled:"y",auction_id:P},i=await r.Z.post("/product_2_live/get-product-2-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];eT(e),R(e.productBidderListArr)}}catch(e){console.error(e)}}
1,e2=async e=>{try{if(isNaN(q))return;let t=Math.max(ek.bid,ek.minimum_price,ek.next_slab),s=!1;if(q>=t&&(s=!0),!s){(0,b.Z)({msg:"Your Maximum Bid should be equal or more than next bid slab",type:"error"});return}if(q%100!=0&&s){(0,b.Z)({msg:" Sorry, please enter bid in multiple of 100's, thank you",type:"error"});return}eD.status?eZ({type:e,status:!1}):eZ({type:e,status:!0})}catch(e){console.error(e)}},e1=()=>(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)(o(),{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==ek?void 0:null===(d=ek.start_time)||void 0===d?void 0:d.length)>0&&(0,i.jsx)(F,{sessionStartTime:(null==ek?void 0:ek.auction_session)===1?null==ek?void 0:ek.session_1_start_time:null===(h=null==ek?void 0:ek.auction_info[0])||void 0===h?void 0:h.session_2_start_time})}),(7===ek.status||8===ek.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===ek.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,Z.b)(ek.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,Z.b)(ek.estimated_price)})]})]}),!T.isLoggedIn&&(0,i.jsx)("div",{className:"inline-flex border",children:(0,i.jsxs)("div",{className:"w-full flex justify-center items-center text-red-700 font-bold px-2 py-2 text-sm border-r",children:["Current Bid \xa0",(0,i.jsx)(l.G,{icon:a.sph,className:"h-3 w-3 ",size:"sm"}),"\xa0",(0,Z.b)(ek.bid)]})})]}),T.isLoggedIn&&(0,i.jsxs)(i.Fragment,{children:[1!==ek.status&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"pt-3",children:(0,i.jsx)(o(),{href:"/real-time-live-p-auction/auction-no-".concat(P,"/real-time-live-bidding"),children:(0,i.jsxs)("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===ek.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,Z.b)(ek.bid)]})," "]})]})})}),(0,i.jsx)("div",{children:(g=0,T.userDetails.limit>0&&(g=T.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:[T.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,Z.b)(g)})]}),(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,Z.b)(A)})]})]}),!T.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:":"})]})}),T.isLoggedIn&&(0,i.jsx)(i.Fragment,{})]})})})}))}),(0,i.jsx)("div",{children:eE&&(0,i.jsxs)("h1",{children:["you can request to increase Bidding limit by clicking the link below ",(0,i.jsx)("br",{}),(0,i.jsx)(o(),{className:"text-blue-500 hover:text-blue-700",href:"/customers/my-bid-limit",children:"Request Bid Limit"})]})}),(0,i.jsxs)("div",{className:"",children:[!(0,S.F4)({consignor_uid:W,userId:M})&&!em&&(p=!0,ef&&(p=!1),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"py-1",children:E?(0,i.jsxs)(i.Fragment,{children:[!eS&&
1(0,i.jsxs)(i.Fragment,{children:[ef&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" flex justify-center font-semibold text-green-500",children:eb})}),ej&&(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,Z.b)(ek.s_bid)]})}),!ef&&eF&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" flex py-2 justify-center font-semibold text-red-500",children:"You are outbid! Bid again!"})}),p&&(0,S.ez)({bid:U,bidder:Q,s_bid:K,s_bidder:$,next_bid:Math.max(et,ei),userId:M,userCurrentLimit:B,consignor_uid:W,nextSlab:0,status:""})&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("button",{onClick:()=>eX("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,Z.b)(Math.max(ek.bid,ek.minimum_price,ek.next_slab))})]})})]}),eS&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" flex px-1 py-2 justify-center font-semibold text-red-800",children:eN})}),eq.validateStatus&&(()=>{let e=Math.max(ek.minimum_price,ek.next_slab),t=async()=>{if(eR(Math.random()),eB){await e2("Secret Bid");let e=await (0,S.ez)({bid:U,bidder:Q,s_bid:K,s_bidder:$,next_bid:q,userId:M,userCurrentLimit:B,consignor_uid:W,nextSlab:0,status:""});if(!1===e){eM(!0),(0,b.Z)({msg:"Oops! Your bid cannot be processed due to an insuffcient bidding limit.Increase it by sending us an email.",type:"error"}),eZ({type:"Secret Bid",status:!1});return}}else eO(!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=>{eV(e.target.value)},value:q>0?q:"",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"})]})})})})})(),!eq.validateStatus&&!1===ef&&(0,i.jsx)(i.Fragment,{children:e1()})]}):(0,i.jsx)(i.Fragment,{children:e1()})})})),em&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:" flex flex-col justify-center text-500 lining-nums bg-gray-200 p-8 border-gray-200 rounded-sm",children:[(0,i.jsxs)("div",{className:"",children:[(0,i.jsxs)("b",{className:"flex justify-center items-center",children:["Auction is Paused,Real-Time Live Bidding"," "]})," ",(0,i.jsxs)("b",{className:"flex justify-center items-center",children:["Begins at ",(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")})(null==ek?void 0:ek.session_1_start_time)]})]}),(0,i.jsx)("div",{className:"",children:(0,i.jsxs)("b",{className:"flex justify-center items-center",children:["For any queries you may contact us at ",(0,i.jsx)("br",{}),"8867029800 or [email protected]"]})})]})}),(0,i.jsx)(D.Z,{currentProduct:ek,onAgreed:e=>{try{e?eP(!0):eP(!1)}catch(e){}},randomNumber:ez,showTermsAndConditions:eG}),!0===(0,S.F4)({consignor_uid:W,userId:M})&&(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"})})]})]})]}),!T.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"pt-3",children:(0,i.jsx)(o(),{href:O,children:(0,i.jsxs)("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"===eD.type?e=Math.max(ek.bid,ek.minimum_price,ek.next_slab):"Secret Bid"===eD.type&&(e=q);let t=ek.code.toString().slice(-4),s=t.toString(),r=parseInt(parseInt(s,10).toString());return(0,i.jsx)(i.Fragment,{children:eD.status&&(0,i.jsx)(_.u.Root,{show:eD.status,as:n.Fragment,children:(0,i.jsxs)(N.V,{as:"div",className:"relative z-10",initialFocus:eY,onClose:()=>{eZ({type:"",status:!1})},children:[(0,i.jsx)(_.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)(_.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)(N.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)(N.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 ",eD.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,Z.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:()=>{e$(eD.type),eZ({type:"",status:!1})},ref:eY,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:()=>eZ({type:"",status:!1}),ref:eY,children:"No"})]})]})})})})]})})})})()]})},T=s(30714),C=s(74737),A=s(30660),E=s(53990),M=s(22632),B=s(9008),P=s.n(B),G=s(7023),O=s(26612),z=s(13415),R=!0,q=e=>{let{productDetailServer:t,productPrev:s,productNext:d,productTotalCount:y,productPosition:_,productDataStatus:N,auctionid:w,relatedCategoryProducts:S,portalInfoScrolling:I}=e,F=(0,u.useRouter)(),L=F.asPath,D=(0,x.Dv)(m.ZP),[Z,B]=(0,n.use
1State)({}),[R,q]=(0,n.useState)({auction_data:[{}]}),H="live-p-auction";(0,n.useEffect)(()=>{B(t),q({auction_data:null==t?void 0:t.auction_info})},[t]);let K=0,Y=0,U=[];if("object"==typeof Z&&Object.keys(Z).length>0){parseInt(Z.code.toString().slice(0,4));let e=Z.code.toString().slice(-4),t=e.toString();K=parseInt(parseInt(t,10).toString()),Y=parseInt(Z.code.toString().substring(2,4)),U=Z.productBidderListArr}if(Array.isArray(F.query.path)){let e=F.query.path[1].split("-");parseInt(e[e.length-1])}let[V,W]=(0,n.useState)(""),[X,Q]=(0,n.useState)(!1),[J,$]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(!1),[es,ei]=(0,n.useState)(""),[er,en]=(0,n.useState)(""),el="";D.isLoggedIn||(el="/login?re_url=".concat(F.asPath));let ea=e=>{W(e)},ed=async()=>{Z.code&&await r.Z.post("/product_2_live/updateProduct_2_live_detail_list_publicViewCount",{code:null==Z?void 0:Z.code})};(0,n.useEffect)(()=>{ed()},[null==Z?void 0:Z.code]),(0,n.useEffect)(()=>{t&&Array.isArray(t.auction_info)&&t.auction_info.length>0&&0===t.auction_info[0].status&&(et(!0),F.push("/")),(null==t?void 0:t.length)===0&&(et(!0),F.push("/")),!0===N&&(et(!0),F.push("/"))},[Z,N]),(0,n.useEffect)(()=>{eo(t)},[t]);let eo=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),ei(t),en(s)},ec=async()=>{if("object"==typeof F.query&&V){let e=0,t=V.split("-");e=t[t.length-1];let s=e.length>3?"":"0".repeat(4-e.length);1===w.toString().length&&(e="200".concat(w).concat(s).concat(e)),2===w.toString().length&&(e="20".concat(w).concat(s).concat(e)),3===w.toString().length&&(e="2".concat(w).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_2_live/get-product-2-live-detail-list-public",{page:1,limit:1,sortDetails:{sortKey:"code",sortType:-1},searchDetails:i,page_enabled:"y",auction_id:w}),l=n.data,a=null==l?void 0:l.data[0];if(a){let t=(0,M.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:Y,code:e,auctiontype:H,type:2,isLive:0});F.push(t),W("")}else(0,b.Z)({msg:"This Product is not available",type:"error"}),W("")}},eu=async()=>{try{let t=F.asPath.split("/"),s=0,i=0,n="";if(Array.isArray(t)){let e=t[2],r=t[3],l=e.split("-");(n=l[l.length-1]).length>0&&(i=parseInt(n));let a=r.split("-");s=a[a.length-1];let d=s.length>3?"":"0".repeat(4-s.length);1===i.toString().length&&(s="200".concat(i).concat(d).concat(s)),2===i.toString().length&&(s="20".concat(i).concat(d).concat(s)),3===i.toString().length&&(s="2".concat(i).concat(d).concat(s))}let l=[];s>=1&&l.push({basicSearchKey:"code",basicSearchValue:parseInt(s),basicSearchType:"number"});let a={page:1,limit:1,sortDetails:{sortKey:"code",sortType:-1},searchDetails:l,page_enabled:"y",auction_id:i},d=await r.Z.post("product_2_live/get-product-2-live-detail-list-public",a);if(200===d.status){var e;B(null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.data[0])}}catch(e){console.error(e)}};return(0,i.jsxs)(i.Fragment,{children:["object"==typeof Z&&Object.keys(Z).length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(P(),{children:[(0,i.jsx)("title",{children:null==t?void 0:t.title}),(0,i.jsx)("meta",{name:"description",content:es}),(0,i.jsx)("meta",{name:"keywords",content:er}),(0,i.jsx)("meta",{name:"og:description",content:G.Z.OG_DESCRIPTION},"ogdescription"),(0,i.jsx)("meta",{property:"og:url",content:G.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:G.Z.OG_TYPE},"ogtype"),(0,i.jsx)("meta",{property:"og:image",content:G.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)(O.Z,{isLivePAuctionData:R,scrollingMessages:I})})}),(()=>{let e=[];for(let t in delete Z.categoryHomepageDetails,Z){let s=Z[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=Y;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(g.Z,{product_hp:"",product_category_nav:e,cat_hp_str:"",code:0,search_query:"",auction_no:t,auctiontype:H,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)(p.Z,{prev:s,next:d,position:_,total_count:y,auction_no:Y,auctiontype:H}),(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",value:V,onChange:e=>ea(e.target.value),onKeyDown:e=>{"Enter"===e.key&&ec()},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:ec,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!=Z.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:[" ",K]})," - ",(0,i.jsx)("span",{children:Z.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)(A.Z,{code:null==Z?void 0:Z.code,page:"live-auctionDetail",productUrl:L}),D.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(f.Z,{code:Z.c
1ode,loginStatus:D.isLoggedIn,type:2,wishlist_code:[],auction_type:H,view_type:void 0,pageType:""})}),!D.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o(),{href:el,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)(C.Z,{imgArr:Z.imagesArr,code:Z.code,type:2})}),(0,i.jsxs)("div",{className:" gap-2 py-2 md:hidden",children:[D.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(f.Z,{code:Z.code,loginStatus:D.isLoggedIn,type:2,wishlist_code:[],auction_type:H,view_type:void 0,pageType:"printedAuction"})}),!(null==D?void 0:D.isLoggedIn)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o(),{href:el,children:(0,i.jsxs)("button",{className:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-normal py-1 px-2 rounded-r",children:[(0,i.jsx)(l.G,{icon:a.m6i,size:"lg",className:"h-4 w-4 text-white"}),"Add to Wishlist"]})})})})]})]}),(0,i.jsxs)("div",{className:"md:w-3/5 w-full",children:[(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:" md:flex md:flex-row md:justify-between md:items-center ",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:"P-Auction #"}),(0,i.jsx)("span",{className:"lining-nums",children:Y})]})}),(0,i.jsxs)("div",{className:"md:self-center xxxs:hidden md:inline-flex gap-2 pb-2",children:[D.isLoggedIn&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(f.Z,{code:Z.code,loginStatus:D.isLoggedIn,type:2,wishlist_code:[],auction_type:H,view_type:void 0,pageType:"printedAuction"})}),!(null==D?void 0:D.isLoggedIn)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o(),{href:el,children:(0,i.jsxs)("button",{className:"flex items-center text-gray-800 font-normal hover:bg-gray-200 py-1 px-2 rounded-r",children:[(0,i.jsx)(l.G,{icon:a.m6i,size:"lg",className:"h-4 w-4 text-black mr-2"}),"Add to Wishlist"]})})})})]}),(0,i.jsxs)("div",{className:"lg:float-right xxxs:hidden md:inline-flex gap-2 md:justify-center md:items-center pb-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:null==Z?void 0:Z.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:"Quick Details"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(j.Z,{description:[Z.description_01Details,Z.description_02Details,Z.description_03Details,Z.description_04Details,Z.description_05,Z.description_06,Z.description_07,Z.description_08],des_head:[Z.d_01_head,Z.d_02_head,Z.d_03_head,Z.d_04_head,Z.d_05_head,Z.d_06_head,Z.d_07_head,Z.d_08_head],type:H}),(0,i.jsx)(v.Z,{type:H,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:Z.id})]})]})]})]}),(0,i.jsxs)("div",{className:"lg:w-1/3 md:w-1/3 xxxs:py-4 lg:py-1 md:pl-2",children:[(0,i.jsx)(k,{recordId:t.code,handleChangeNoBids:eu}),(0,i.jsx)("div",{className:"overflow-hidden inline-flex gap-2 text-center py-2 pt-7",children:(0,i.jsx)("button",{onClick:()=>{X?Q(!1):Q(!0)},className:"px-2 w-18 py-1 flex justify-center gap-2 bg-gray-500 hover:bg-gray-600 border-2 focus:border-gray-300 border-gray-500 rounded text-white",children:"Bidding Slab(s)"})}),J&&(0,i.jsx)(T.Z,{showModal:J,setShowModal:$,bidData:U,type:H,lot_no:Z.code}),X&&(0,i.jsx)(h.Z,{showModal:X,setShowModal:Q})]})]})]}),9==Z.status&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"flex justify-center items-center",children:(0,i.jsx)("img",{src:"".concat(c.Z.CDN_URL_PUBLIC,"/uploads/s/withdrwan.jpg"),className:"xxxs:object-contain h-64 xxxs:block"})})})]})]})})]}),ee&&(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)(E.Gz,{className:"text-white text-6xl animate-spin"})})]})},{loading:ee}),0===Object.keys(Z).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)(o(),{href:"/",className:"hover:text-red-900 text-xs",children:["Home ",(0,i.jsx)("span",{children:"/"})]}),(0,i.jsxs)(o(),{href:"/live-printed-auction",className:"hover:text-red-900 text-xs",children:["Printed 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"})})})})]}),S.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)(z.Z,{relatedCategoryProducts:S,auctionType:"live-p-auction",page:"detail",show_more:!1,eshopRandomProductShowBtnThisWeek:!1})})})})]})}},26612:function(e,t,s){"use strict";var i=s(85893),r=s(67294),n=s(97005),l=s(25258);t.Z=e=>{var t,s,a;let{isLivePAuctionData:d,scrollingMessages:o}=e,[c,u]=(0,r.useState)(!1),[x,m]=(0,r.useState)(!1),[h,g]=(0,r.useState)(!1),[p,f]=(0,r.useState)(!1),[v,j]=(0,r.useState)(0),[y,b]=(0,r.useState)(""),[_,N]=(0,r.useState)("");(0,r.useEffect)(()=>{var e,t,s;d&&(null==d?void 0:null===(e=d.auction_data)||void 0===e?void 0:e.length)>0&&(b(null===(t=null==d?void 0:d.auction_data[0])||void 0===t?void 0:t.auction_no),N(null===(s=null==d?void 0:d.auction_data[0])||void 0===s?void 0:s.session_1_start_time))},[d]),(0,r.useEffect)(()=>{var e,t,s,i,r,n,a;if(d&&(null==d?void 0:null===(e=d.auction_data)||void 0===e?void 0:e.length)>0){let e=(0,l.AV)(null===(t=o.portalInfoScrolling[0])||void 0===t?void 0:t.startdate_after_live,null===(s=o.portalInfoScrolling[0])||void 0===s?void 0:s.enddate_after_live),d=(0,l.L2)(null===(i=o.portalInfoScrolling[0])||void 0===i?void 0:i.startdate_for_prebid,null===(r=o.portalInfoScrolling[0])||void 0===r?void 0:r.enddate_for_prebid),c=(0,l.L2)(null===(n=o.portalInfoScrolling[0])||void 0===n?void 0:n.startdate_after_realtime,null===(a=o.portalInfoScrolling[0])||void 0===a?void 0:a.enddate_after_realtime);e?u(!0):u(!1),c?(m(!0),u(!1),g(!1)):m(!1),d?(g(!0),m(!1),m(!1)):g(!1)}},[v]),(0,r.useEffect)(()=>{let e=window.setInterval(()=>{j(e=>e+1)},500);return()=>window.clearInterval(e)},[]);let w=e=>{let t=document.createElement("textarea");return t.innerHTML=e,t.value};return(0,i.jsx)(i.Fragment,{children:(()=>{let e=!1;try{var t,s;return"object"==typeof d&&(null==d?void 0:null===(t=d.auction_data)||void 0===t?void 0:t.length)>0&&(null===(s=null==d?void 0:d.auction_data[0])||void 0===s?void 0:s.status)===1&&(e=!0),e}catch(t){return console.error(t),e}})()&&(0,i.jsxs)(i.Fragment,{children:[c&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.Z,{pauseOnHover:!0,children:(0,i.jsx)("div",{className:"px-10cursor-pointer",dangerouslySetInnerHTML:{__html:(null===(t=null==o?void 0:o.portalInfoScrolling[0])||void 0===t?void 0:t.scrolling_message_after_live)?w(o.portalInfoScrolling[0].scrolling_message_after_live):""}})})}),h&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.Z,{pauseOnHover:!0,children:(0,i.jsx)("div",{className:"px-10cursor-pointer",dangerouslySetInnerHTML:{__html:(null===(s=null==o?void 0:o.portalInfoScrolling[0])||void 0===s?void 0:s.scrolling_message_for_prebid)?w(o.portalInfoScrolling[0].scrolling_message_for_prebid):""}})})}),x&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(n.Z,{pauseOnHover:!0,children:(0,i.jsx)("div",{className:"px-10cursor-pointer",dangerouslySetInnerHTML:{__html:(null===(a=null==o?void 0:o.portalInfoScrolling[0])||void 0===a?void 0:a.scrolling_message_after_realtime)?w(o.portalInfoScrolling[0].scrolling_message_after_realtime):""}})})})]})})}}},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=72008)}),_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.