1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8703],{36767:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers/my-lotlist",function(){return a(91577)}])},91577:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return N}});var l=a(85893),s=a(48583),o=a(94543),i=a(28646),r=a(67294),n=a(88446),c=a(29552),d=a(41664),u=a.n(d),x=a(9008),g=a.n(x),h=a(99603),m=a(59417),v=a(61839),p=a(22632),y=a(19152),f=a(17398),j=a(11163),b=()=>{var e,t;let a=(0,r.useRef)(null),[s,o]=(0,r.useState)(0),[i,d]=(0,r.useState)(1),[x,b]=(0,r.useState)([]),[N,w]=(0,r.useState)(10),[S,_]=(0,r.useState)(-1),[C,k]=(0,r.useState)(-1),[L,A]=(0,r.useState)(0),[M,Z]=(0,r.useState)(-1),[D,U]=(0,r.useState)(""),[F,I]=(0,r.useState)(""),[P,E]=(0,r.useState)(!1),[R,T]=(0,r.useState)([]),[G,z]=(0,r.useState)([]),[W,Y]=(0,r.useState)([]),[B,H]=(0,r.useState)(!1),[O,V]=(0,r.useState)([]),[K,X]=(0,r.useState)([]),[q,$]=(0,r.useState)(!1),[J,Q]=(0,r.useState)([]),[ee,et]=(0,r.useState)(1),[ea,el]=(0,r.useState)(!1),[es,eo]=(0,r.useState)(null),[ei,er]=(0,r.useState)(!1),[en,ec]=(0,r.useState)(0),[ed,eu]=(0,r.useState)(0),[ex,eg]=(0,r.useState)(-1),[eh,em]=(0,r.useState)(0),ev=(0,j.useRouter)(),ep=(e,t,a)=>{eo(e),ec(a),eu(t),er(!0)},ey=e=>{let t="",a=[...e],l=a.slice(0,4).join("").toString(),s=a.splice(9,1).toString();return"0"===s&&(t="t"),"1"===s&&(t="s"),"2"===s&&(t="m"),"3"===s&&(t="l"),"9"===s&&(t="o"),"".concat(t,"/").concat(l,"/").concat(e)},[ef,ej]=(0,r.useState)({cdNo:"",group:"",mainCategory:"",masterCategory:"",mainLotStatus:"",finalStatus:""}),eb=async e=>{try{el(!0);let t=await n.Z.post("/consignor/get-all-consignor-products",{limit:N,page:e,final_status:"",lot_status:"",cn_sl_no:eh>0?eh:-1,category_1:-1,category_2:-1,category_0:-1});Array.isArray(t.data.data)&&Q(e=>[...e,...t.data.data.map(e=>({value:e._id,label:e._id}))]),el(!1)}catch(e){}};(0,r.useEffect)(()=>{eb(ee)},[ee,eh]),(0,r.useEffect)(()=>{eN()},[N,i,S,C,L,F,D]),(0,r.useEffect)(()=>{eS()},[ex]),(0,r.useEffect)(()=>{ew()},[]);let eN=async()=>{H(!0);try{let e=await n.Z.post("/consignor/get-all-consignor-products",{limit:N,page:i,final_status:F.length>0?F:"",lot_status:D.length>0?D:"",cn_sl_no:L>0?L:-1,category_1:C>-1?C:-1,category_2:M>-1?M:-1,category_0:S>-1?S:-1});Array.isArray(e.data.data)&&(b(e.data.data),o(e.data.count))}catch(e){console.error("Error fetching products:",e)}finally{H(!1)}},ew=async()=>{try{var e,t,a,l;let s=await n.Z.post("/consignor/get-all-consignor-categories",{categoryLevel:ex>-1?1:0,parentId:ex>-1?ex:-1});Array.isArray(null==s?void 0:null===(e=s.data)||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.categoryList)&&T(null==s?void 0:null===(a=s.data)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.categoryList)}catch(e){console.error("Error fetching category data:",e)}},eS=async()=>{try{if(ex>-1){var e,t,a,l;let s=await n.Z.post("/consignor/get-all-consignor-categories",{categoryLevel:ex>-1?1:0,parentId:ex>-1?ex:-1});Array.isArray(null==s?void 0:null===(e=s.data)||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.categoryList)&&z(null==s?void 0:null===(a=s.data)||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:l.categoryList)}}catch(e){console.error("Error fetching category data:",e)}};function e_(e){let t=String(e).slice(-4).replace(/^0+/,"");return""===t?"0":t}function eC(e){let t=null==e?void 0:e.replace(/^0+/,"");return""===t?"0":t}let ek=e=>parseInt(null==e?void 0:e.slice(1,4),10),eL=e=>{V(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},eA=e=>{X(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},eM=e=>(null==e?void 0:e.toString().slice(0,2))==="10"?"e-auction-archive":(null==e?void 0:e.toString().slice(0,2))==="20"?"p-auction-archive":(null==e?void 0:e.toString().slice(0,2))==="30"?"e-shop":"-",eZ=(e,t)=>{switch(ej(a=>({...a,[e]:t})),e){case"cdNo":"number"==typeof t&&A(t);break;case"masterCategory":"number"==typeof t&&k(t);break;case"group":"number"==typeof t&&(_(t),eg(t));break;case"mainLotStatus":"string"==typeof t&&U(t);break;case"finalStatus":"string"==typeof t&&I(t)}},eD=()=>{$(!q)};return(0,l.jsxs)("div",{className:"lg:mx-28",children:[(0,l.jsx)(g(),{children:(0,l.jsx)("title",{children:"All Products"})}),(0,l.jsxs)("div",{className:"container mx-auto",children:[(0,l.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,l.jsx)(u(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,l.jsx)(u(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,l.jsx)(u(),{className:"hover:text-red-700",href:"/customers/my-lotlist",children:"My Lot List"})]}),(0,l.jsx)("section",{className:"w-full mt-2",children:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"flex flex-row justify-start items-start gap-x-5 w-1/2",children:(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:"rounded p-2 bg-gray-300 xxxs:text-tiny md:text-base xxxs:w-[80px] md:w-[120px] max-w-[120px]",onClick:()=>{try{ev.push("/customers/my-lotlist-auction-wise")}catch(e){}},children:"Auction Wise"})})})})}),(0,l.jsx)("div",{className:"bg-gray-100 min-h-screen",children:(0,l.jsx)("div",{className:"container mx-auto px-4 py-8 mt-2",children:(0,l.jsxs)("div",{className:"container mx-auto px-4 py-8 relative",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold",children:"All Products"}),(0,l.jsx)("button",{onClick:()=>$(!q),className:"text-blue-500 hover:text-blue-700",children:(0,l.jsx)(h.G,{icon:m.G_j,size:"lg"})})]}),(0,l.jsx)("div",{className:"fixed inset-y-0 right-0 w-64 bg-white shadow-lg transform ".concat(q?"translate-x-0":"translate-x-full"," transition-transform duration-300 ease-in-out z-50"),children:(0,l.jsxs)("div",{className:"p-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold",children:"Filters"}),(0,l.jsx)("button",{onClick:eD,className:"text-gray-500 hover:text-gray-700",children:(0,l.jsx)(h.G,{icon:m.NBC})})]}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"cdNo",className:"block text-sm font-medium text-gray-700 mb-1",children:"CD No"}
1),(0,l.jsx)(y.ZP,{options:J,onMenuScrollToBottom:()=>{ea||et(e=>e+1)},isLoading:ea,placeholder:"Select an CDNo",onChange:e=>{e?eZ("cdNo",Number(e.value)):(em(0),A(0))},isClearable:!0,onInputChange:e=>{em(Number(e))}})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"group",className:"block text-sm font-medium text-gray-700 mb-1",children:"Group"}),(0,l.jsxs)("select",{id:"group",value:ef.group,onChange:e=>eZ("group",Number(e.target.value)),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500",children:[(0,l.jsx)("option",{value:-1,children:"Select Group"}),R.map(e=>(0,l.jsx)("option",{value:e.id,children:e.category},e.id))]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"masterCategory",className:"block text-sm font-medium text-gray-700 mb-1",children:"Master Category"}),(0,l.jsxs)("select",{id:"masterCategory",value:ef.masterCategory,onChange:e=>eZ("masterCategory",Number(e.target.value)),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500",children:[(0,l.jsx)("option",{value:-1,children:"Select Master Category"}),G.map(e=>(0,l.jsx)("option",{value:e.id,children:e.category},e.id))]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"mainLotStatus",className:"block text-sm font-medium text-gray-700 mb-1",children:"Main Lot Status"}),(0,l.jsxs)("select",{id:"mainLotStatus",value:ef.mainLotStatus,onChange:e=>eZ("mainLotStatus",e.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500",children:[(0,l.jsx)("option",{value:"",children:"Select Lot Status"}),(0,l.jsx)("option",{value:"Unsold",children:"Unsold"}),(0,l.jsx)("option",{value:"Sold",children:"Sold"}),(0,l.jsx)("option",{value:"Yet to decide",children:"Yet to decide"})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"finalStatus",className:"block text-sm font-medium text-gray-700 mb-1",children:"Final Status"}),(0,l.jsxs)("select",{id:"finalStatus",value:ef.finalStatus,onChange:e=>eZ("finalStatus",e.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500",children:[(0,l.jsx)("option",{value:"",children:"Select Final Status"}),(0,l.jsx)("option",{value:"Sold",children:"Sold"}),(0,l.jsx)("option",{value:"Unsold",children:"Unsold"}),(0,l.jsx)("option",{value:"Withdrawn",children:"Withdrawn"})]})]}),(0,l.jsx)("div",{className:"pt-4",children:(0,l.jsx)("button",{onClick:()=>{eN(),eD()},className:"w-full bg-blue-500 text-white py-2 px-4 rounded-md hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50",children:"Apply Filters"})}),(0,l.jsx)("div",{className:"pt-1",children:(0,l.jsx)("button",{onClick:()=>{A(0),k(-1),_(-1),Z(-1),I(""),U(""),eg(-1),ej({cdNo:"",group:"",mainCategory:"",masterCategory:"",mainLotStatus:"",finalStatus:""})},className:"w-full bg-gray-300 text-black py-2 px-4 rounded-md hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-opacity-50",children:"Remove Filters"})})]})]})}),(0,l.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,l.jsxs)("span",{className:"text-sm text-gray-600",children:["Total Records: ",s]}),(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)("span",{className:"text-sm text-gray-600",children:"Per Page:"}),(0,l.jsx)("select",{className:"border rounded px-2 py-1 text-sm",onChange:e=>w(Number(e.target.value)),value:N,children:[10,20,25,30,40,50,100].map(e=>(0,l.jsx)("option",{value:e,children:e},e))})]})]}),B?(0,l.jsx)("div",{className:"flex justify-center items-center h-64",children:(0,l.jsx)(h.G,{icon:m.LM3,spin:!0,size:"3x",className:"text-blue-500"})}):(0,l.jsx)("div",{className:"overflow-x-auto shadow-md rounded-lg",children:(0,l.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,l.jsx)("thead",{className:"bg-gray-50",children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"CD No"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Lot No"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Title"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Group"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Category Master"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Category Main"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Images"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-center text-xs font-medium text-gray-500 tracking-wider",children:"More Details"})]})}),(0,l.jsxs)("tbody",{className:"bg-white divide-y divide-gray-200",children:[x.map((e,t)=>{var a,s,o,i,n,d,x,g,y,f,j,b,N,w,S,_,C,k,L,A,M,Z,D,U,F,I,P;let E="",R=eM(null===(a=null==e?void 0:e.records[0])||void 0===a?void 0:a.code);return E=(0,p.Z)({category:[null===(s=e.records[0])||void 0===s?void 0:s.category_1_details,null===(o=e.records[0])||void 0===o?void 0:o.category_2_details,null===(i=e.records[0])||void 0===i?void 0:i.category3Details,null===(n=e.records[0])||void 0===n?void 0:n.category4Details,null===(d=e.records[0])||void 0===d?void 0:d.category5Details],title:null===(x=e.records[0])||void 0===x?void 0:x.title,auction:Number(ek(String(null===(g=null==e?void 0:e.records[0])||void 0===g?void 0:g.code))),c
1ode:null===(y=null==e?void 0:e.records[0])||void 0===y?void 0:y.code,auctiontype:R,type:(null===(f=null==e?void 0:e.records[0])||void 0===f?void 0:null===(j=f.code)||void 0===j?void 0:j.toString().startsWith("10"))?1:(null===(b=null==e?void 0:e.records[0])||void 0===b?void 0:null===(N=b.code)||void 0===N?void 0:N.toString().startsWith("20"))?2:(null===(w=null==e?void 0:e.records[0])||void 0===w?void 0:null===(S=w.code)||void 0===S?void 0:S.toString().startsWith("30"))?3:0,isLive:0}),(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("tr",{className:"hover:bg-gray-50",children:[(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-sm text-gray-500",children:e._id}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null==e?void 0:e.records.map(e=>(0,l.jsx)("div",{className:"text-xs",children:(null==e?void 0:e.code)?"".concat("1"===e.code.toString().slice(0,1)?"e-":"2"===e.code.toString().slice(0,1)?"P":"3"===e.code.toString().slice(0,1)?e.code:""," ").concat("3"!==e.code.toString().slice(0,1)?"#".concat(eC(e.code.toString().slice(1,4))," ").concat(e_(e.code)):""):"Yet to decide"},e.code))}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-normal",children:(0,l.jsxs)("div",{className:"text-xs font-medium text-gray-500",children:[K.includes(t)?null===(_=e.records[0])||void 0===_?void 0:_.title:(0,l.jsxs)(u(),{className:"text-xs font-medium text-gray-500",target:"_blank",href:E,children:[null===(C=e.records[0])||void 0===C?void 0:C.title.slice(0,20),(null===(k=e.records[0])||void 0===k?void 0:k.title.length)>20&&"..."]}),(null===(L=e.records[0])||void 0===L?void 0:L.title.length)>20&&(0,l.jsx)("button",{onClick:e=>{e.stopPropagation(),eA(t)},className:"ml-2 text-xs text-blue-500 hover:text-blue-700 self-end",children:K.includes(t)?"Show less":"Show more"})]})}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null===(A=null===(M=e.records[0])||void 0===M?void 0:M.category_0_details[0])||void 0===A?void 0:A.category}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null===(Z=null===(D=e.records[0])||void 0===D?void 0:D.category_1_details[0])||void 0===Z?void 0:Z.category}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null===(U=null===(F=e.records[0])||void 0===F?void 0:F.category_2_details[0])||void 0===U?void 0:U.category}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap self-center",children:(0,l.jsx)("div",{className:"flex space-x-2",children:Array.isArray(null===(I=e.records[0])||void 0===I?void 0:I.imagesArr)?null===(P=e.records[0])||void 0===P?void 0:P.imagesArr.slice(0,2).map((e,a)=>(0,l.jsx)("div",{className:"w-12 h-12 flex-shrink-0 overflow-hidden group",onClick:()=>ep("".concat(c.Z.CDN_URL_PUBLIC,"/uploads/").concat(ey(e)),t,a),children:(0,l.jsx)("img",{className:"rounded-md object-contain w-full h-full transition-transform duration-300 ease-in-out transform group-hover:scale-110",src:"".concat(c.Z.CDN_URL_PUBLIC,"/uploads/").concat(ey(e)),alt:""})},a)):"No images"})}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-center text-sm font-medium",children:(0,l.jsx)("button",{onClick:()=>eL(t),className:"text-indigo-600 hover:text-indigo-900",children:(0,l.jsx)(h.G,{icon:O.includes(t)?m.mTx:m.ptq})})})]}),O.includes(t)&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:7,children:(0,l.jsx)("div",{className:"w-full px-4 py-2 bg-gray-50",children:(0,l.jsxs)("table",{className:"min-w-full w-full divide-y divide-gray-200",children:[(0,l.jsx)("thead",{className:"bg-gray-200",children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Listed Date"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Lot No"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Estimated Price"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Hammered Amount"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Lot Status"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-left text-xs font-medium text-gray-500 tracking-wider",children:"Final Status"})]})}),(0,l.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:e.records.map((t,a)=>{var s,o,i,r,n,c,d,x,g,h;let m=eM(null==t?void 0:t.code),y=(0,p.Z)({category:[null==t?void 0:t.category_1_details,null==t?void 0:t.category_2_details,null==t?void 0:t.category3Details,null==t?void 0:t.category4Details,null==t?void 0:t.category5Details],title:null==t?void 0:t.t
1itle,auction:Number(ek(String(null==t?void 0:t.code))),code:null==t?void 0:t.code,auctiontype:m,type:(null==t?void 0:null===(s=t.code)||void 0===s?void 0:s.toString().startsWith("10"))?1:(null==t?void 0:null===(o=t.code)||void 0===o?void 0:o.toString().startsWith("20"))?2:(null==t?void 0:null===(i=t.code)||void 0===i?void 0:i.toString().startsWith("30"))?3:0,isLive:0});return(0,l.jsxs)("tr",{children:[(null==t?void 0:t.lot_status)!=="Yet to decide"?(0,l.jsx)("td",{children:(0,l.jsx)(u(),{href:y,target:"_blank",className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:(0,v.Z)(t.datetime,"dd MMM yyyy")})}):(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:(0,v.Z)(t.datetime,"dd MMM yyyy")}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:(null==t?void 0:t.code)?"".concat("1"===t.code.toString().slice(0,1)?"e-":"2"===t.code.toString().slice(0,1)?"P":"3"===t.code.toString().slice(0,1)?t.code:""," ").concat("3"!==t.code.toString().slice(0,1)?"#".concat(eC(t.code.toString().slice(1,4))," ").concat(e_(t.code)):""):"Yet to decide"}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:t.estimated_price}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:t.bid}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null==t?void 0:t.lot_status}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:(null==t?void 0:t.lot_status)!=="Yet to decide"?(null==e?void 0:null===(r=e.rtcRecords)||void 0===r?void 0:r.length)>0?"Unsold \n RTC \n ".concat((0,v.Z)(null===(n=null==e?void 0:e.rtcRecords[0])||void 0===n?void 0:n.datetime,"dd MMM yyyy")):(null==e?void 0:null===(c=e.final_status)||void 0===c?void 0:null===(d=c.status)||void 0===d?void 0:d.length)>0&&(null==t?void 0:t.lot_status)==="Sold"&&(null==e?void 0:null===(x=e.final_status)||void 0===x?void 0:x.status)==="Sold"?"".concat(null==e?void 0:null===(g=e.final_status)||void 0===g?void 0:g.status,"\n").concat((0,v.Z)(null==e?void 0:null===(h=e.final_status)||void 0===h?void 0:h.datetime,"dd MMM yyyy")):"Unsold":"Unsold"})]},a)})})]})})})})]},e._id)}),0===x.length&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:8,className:"px-6 py-10 text-center text-sm font-bold text-gray-500",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mb-4",viewBox:"0 0 20 20",fill:"currentColor",children:(0,l.jsx)("path",{d:"M9 2a7 7 0 00-7 7v3.586l-1.707 1.707A1 1 0 002.707 17H6v1a2 2 0 002 2h4a2 2 0 002-2v-1h3.293a1 1 0 00.707-1.707L18 12.586V9a7 7 0 00-7-7H9zM8 19a1 1 0 01-1-1v-1h6v1a1 1 0 01-1 1H8zM9 4a5 5 0 015 5v4H4V9a5 5 0 015-5h1z"})}),(0,l.jsx)("span",{className:"text-xl font-semibold text-gray-600",children:"No Products Available"})]})})})})]})]})}),(0,l.jsx)("div",{className:"flex justify-end md:p-3",children:(0,l.jsx)(e=>{let t=e.total_count,s=e.per_page,o=e.page,i=Math.ceil(t/s),r=[],n=o-2<1?1:o-2,c=o+2<=i?o+2:i;r.push({pageNo:1});for(let e=n;e<=c;e++)e>1&&e<i&&r.push({pageNo:e});let u=e=>{e>0&&d(e)};return(0,l.jsx)(l.Fragment,{children:i>1&&(0,l.jsx)("div",{className:"flex xxxs:pb-5",children:(0,l.jsx)("nav",{children:(0,l.jsxs)("ul",{className:"flex -space-x-px h-4 text-sm lining-nums",children:[o>1&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{u(o-1)},className:"flex items-center justify-center px-3 h-7 ml-0 leading-tight text-gray-500 bg-white border cursor-pointer border-gray-300 rounded-l-lg hover:bg-gray-100 hover:text-gray-700",children:(0,l.jsx)(h.G,{icon:m.EyR,className:"w-2.5 h-2.5"})})}),r.map((e,t)=>(0,l.jsx)(l.Fragment,{children:e.pageNo<=i&&(0,l.jsx)("li",{onClick:()=>{var t;u(e.pageNo),null===(t=a.current)||void 0===t||t.scrollIntoView()},value:e.pageNo,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(e.pageNo===o?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:e.pageNo},t)})),(0,l.jsx)("li",{onClick:e=>{u(e.target.value)},value:i,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(o==i?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:i}),o<i&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{u(o+1)},className:"flex items-center justify-center px-3 h-7 leading-tight text-gray-500 bg-white border border-gray-300 rounded-r-lg cursor-pointer hover:bg-gray-100 hover:text-gray-700 ",children:(0,l.jsx)(h.G,{icon:m.yOZ,className:"w-2.5 h-2.5"})})})]})})})})},{total_count:s,per_page:N,page:i})}),ei&&(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:()=>{er(!1),eo(null)},children:(0,l.jsxs)("div",{className:"relative w-full max-w-md p-4 bg-white rounded-md",onClick:e=>e.stopPropagation(),children:[es&&(0,l.jsx)(f.Z,{smallImage:{alt:"Product",isFluidWidth:!0,src:es},largeImage:{src:es,width:600,height:600},enlargedImageContainerDimensions:{width:"100%",height:"100%"},enlargedImageContainerStyle:{position:"absolute",zIndex:1500,border:"1px solid #ccc",background:"#fff"},shouldUsePositiveSpaceLens:!0}),(0,l.jsx)("button",{onClick:()=>{var e,t;let a=null===(e=null===(t=x[ed])||void 0===t?void 0:t.records[0])||void 0===e?void 0:e.imagesArr;a&&en>0&&(ec(en-1),eo("".concat(c.Z.CDN_URL_PUBLIC,"/uploads/").concat(ey(a[en-1]))))},className:"absolute left-[-2px] top-1/2 transform -translate-y-1/2",disabled:0===en,children:(0,l.jsx)(h.G,{icon:m.EyR,size:"2x"})}),(0,l.jsx)("button",{onClick:()=>{var e,t;let a=null===(e=null===(t=x[ed])||void 0===t?void 0:t.records[0])||void 0===e?void 0:e.imagesArr;a&&en<a.length-1&&(ec(en+1),eo("".concat(c.Z.CDN_URL_PUBLIC,"/uploads/").concat(ey(a[en+1]
1))))},className:"absolute right-[-2px] top-1/2 transform -translate-y-1/2 ",disabled:en===(null===(e=null===(t=x[ed])||void 0===t?void 0:t.records[0])||void 0===e?void 0:e.imagesArr.length)-1,children:(0,l.jsx)(h.G,{icon:m.yOZ,size:"2x"})})]})})]})})})]})]})},N=()=>{let e=(0,s.Dv)(o.ZP);return e.loading?(0,l.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,l.jsx)(b,{}):(0,l.jsx)(i.Z,{})}},28646:function(e,t,a){"use strict";var l=a(85893),s=a(41664),o=a.n(s),i=a(11163);a(67294),t.Z=()=>{let e=(0,i.useRouter)(),t=e.asPath;return(0,l.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,l.jsx)("br",{}),(0,l.jsx)(o(),{className:"text-blue-500",href:"/login?re_url=".concat(t),children:"Click here to Login"})]})}},22632:function(e,t){"use strict";let a=e=>{var t,a,l;let s=null==e?void 0:e.replace(/[^\w\s]/g," "),o=null===(t=null==s?void 0:s.toLowerCase())||void 0===t?void 0:t.replace(/\s+/g,"-");return null===(a=null===(l=null==o?void 0:o.replace(/[^a-zA-Z0-9-]/g,""))||void 0===l?void 0:l.replace(/-{2,}/g,"-"))||void 0===a?void 0:a.replace(/^-+|-+$/g,"")};t.Z=e=>{try{var t,l,s;let o="",i="",r=e.code,n=e.isLive,c=null==r?void 0:r.toString().slice(-4),d=null==c?void 0:c.toString(),u=parseInt(null===(t=parseInt(d,10))||void 0===t?void 0:t.toString()),x=parseInt(null==r?void 0:r.toString().substring(0,2)),g=e.auctiontype;if("all"===g)switch(x){case 10:g=1==n?"live-e-auction":"e-auction-archive";break;case 20:g=1==n?"live-p-auction":"p-auction-archive";break;case 30:g="e-shop"}if(1===e.type){for(let t of e.category)if(Array.isArray(t)&&(null==t?void 0:t.length)>0){let e=t[0];if("number"==typeof(null==e?void 0:e.id)&&"string"==typeof(null==e?void 0:e.category)&&(null===(l=e.cat_url)||void 0===l?void 0:l.length)>0){let t=a(null==e?void 0:e.cat_url);i+="".concat(t,"/")}}}else if(2===e.type){for(let t of e.category)if(Array.isArray(t)&&(null==t?void 0:t.length)>0){let e=t[0];if("number"==typeof(null==e?void 0:e.id)&&"string"==typeof(null==e?void 0:e.category)&&(null===(s=e.cat_url)||void 0===s?void 0:s.length)>0){let t=a(null==e?void 0:e.cat_url);i+="".concat(t,"/")}}}let h=a(e.title),m=i.substring(0,(null==i?void 0:i.length)-1);switch(g){case"p-auction-archive":o="/printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(h);break;case"e-auction-archive":o="/e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(h);break;case"live-p-auction":o="/live-printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(h);break;case"live-e-auction":o="/live-e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(h);break;case"e-shop":o="/e-shop/pid-no-".concat(u,"/").concat(m,"/").concat(h)}return o}catch(e){console.error(e)}return""}},61839:function(e,t,a){"use strict";var l=a(30120);t.Z=(e,t)=>{try{if(!e)return"Date does not exist";let a=new Date(e),s=a.valueOf();if("number"!=typeof s||isNaN(s))return"Invalid Date";let o={year:a.getUTCFullYear(),month:a.getUTCMonth(),date:a.getUTCDate(),hours:a.getUTCHours(),minutes:a.getUTCMinutes(),seconds:a.getUTCSeconds()},i=l.ou.fromObject({year:o.year,month:o.month+1,day:o.date,hour:o.hours,minute:o.minutes,second:o.seconds});if(t.length>0)return i.setZone("Asia/Kolkata").toFormat(t).toString();return i.setZone("Asia/Kolkata").toString()}catch(e){return console.error(e),"Invalid Date"}}},9008:function(e,t,a){e.exports=a(42636)}},function(e){e.O(0,[120,3853,7398,9152,9774,2888,179],function(){return e(e.s=36767)}),_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.