PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/test/MyProducts/MyLotList-f627f151851f6ab9.js

js ripplemind.com collected 2026-10-06 13:17:08 UTC 42,359 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4964],{53629:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/test/MyProducts/MyLotList",function(){return a(23773)}])},23773:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return _}});var l=a(85893),s=a(67294),r=a(41664),i=a.n(r),o=a(88446),n=a(29552),c=a(59417),d=a(99603),u=a(11163),x=a(48583),g=a(94543),h=a(22632),p=a(11719),v=a(9008),m=a.n(v),y=a(88754),j=()=>{var e;let t=(0,s.useRef)(null),a=(0,x.Dv)(g.ZP),r=null==a?void 0:null===(e=a.userDetails)||void 0===e?void 0:e.status,[v,j]=(0,s.useState)(-1),[f,b]=(0,s.useState)(0),[N,w]=(0,s.useState)(0),[_,S]=(0,s.useState)(0),[k,C]=(0,s.useState)(1),[A,L]=(0,s.useState)([]),[D,F]=(0,s.useState)([]),[Z,P]=(0,s.useState)([]),[I,M]=(0,s.useState)([]),[T,U]=(0,s.useState)([]),[E,G]=(0,s.useState)(10),[R,z]=(0,s.useState)(!1),[K,B]=(0,s.useState)(!1),[W,H]=(0,s.useState)({loading:!1,success:"",error:""}),[O,V]=(0,s.useState)({loading:!1,success:"",error:""}),[Y,q]=(0,s.useState)({status:""}),X=(0,u.useRouter)(),$=e=>{let t=e.target.value;C(1),G(Number(t))},J=e=>{let a=e.total_count,s=e.per_page,r=e.page,i=Math.ceil(a/s),o=[],n=r-2<1?1:r-2,u=r+2<=i?r+2:i;o.push({pageNo:1});for(let e=n;e<=u;e++)e>1&&e<i&&o.push({pageNo:e});let x=e=>{e>0&&C(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:[r>1&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{x(r-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)(d.G,{icon:c.EyR,className:"w-2.5 h-2.5"})})}),o.map((e,a)=>(0,l.jsx)(l.Fragment,{children:e.pageNo<=i&&(0,l.jsx)("li",{onClick:()=>{var a;x(e.pageNo),null===(a=t.current)||void 0===a||a.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===r?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:e.pageNo},a)})),(0,l.jsx)("li",{onClick:e=>{x(e.target.value)},value:i,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(r==i?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:i}),r<i&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{x(r+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)(d.G,{icon:c.yOZ,className:"w-2.5 h-2.5"})})})]})})})})},Q=async()=>{try{H({loading:!0,success:"",error:""});let t=await o.Z.get("/user/viewuser");if(200===t.status){var e;j(t.data.id),q(null==t?void 0:t.data),(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.consignor_user)===128||X.push("/customers")}H({loading:!1,success:"success",error:""})}catch(e){console.error(e),H({loading:!1,success:"",error:"something went wrong"})}},ee=async()=>{try{var e,t,a;V({loading:!0,success:"",error:""});let l=await o.Z.post("/auction_no_archive/get-auction-list-public",{page_enabled:"y",page:1,limit:100,sortDetails:{sortKey:"auction_no",sortType:-1},searchDetails:[]});if(Array.isArray(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.data)){let e=null==l?void 0:null===(t=l.data)||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a.filter(e=>1===e.status),s=e.filter(e=>1===e.auction_type),r=e.filter(e=>2===e.auction_type);console.log({liveAction:e}),s.length>0&&P(s),r.length>0&&M(r)}V({loading:!1,success:"success",error:""})}catch(e){console.error(e)}},et=async e=>{try{var t,a;V({loading:!0,success:"",error:""});let l=await o.Z.post("/auction_no_archive/get-auction-list-public",e);Array.isArray(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.data)&&L(null==l?void 0:null===(a=l.data)||void 0===a?void 0:a.data),V({loading:!1,success:"success",error:""})}catch(e){console.error(e)}},ea=async e=>{try{var t,a,l,s;H({loading:!0,success:"",error:""});let r=await o.Z.post(e,{page_enabled:"y",page:k,limit:E,sortDetails:{sort
1Key:"code",sortType:1},searchDetails:[{basicSearchKey:"consignor_uid",basicSearchValue:v,basicSearchType:"number"}],auction_id:K?I.length>0?I[0].auction_no:N:Z&&Z.length>0?null===(t=Z[0])||void 0===t?void 0:t.auction_no:N});Array.isArray(null==r?void 0:null===(a=r.data)||void 0===a?void 0:a.data)&&(b(null==r?void 0:null===(l=r.data)||void 0===l?void 0:l.count),U(null==r?void 0:null===(s=r.data)||void 0===s?void 0:s.data),H({loading:!1,success:"success",error:""}))}catch(e){console.error(e),H({loading:!1,success:"",error:"something went wrong"})}},el=async e=>{try{var t,a,l;H({loading:!0,success:"",error:""});let s=await o.Z.post(e,{page_enabled:"y",page:k,limit:E,sortDetails:{sortKey:"code",sortType:1},searchDetails:[{basicSearchKey:"consignor_uid",basicSearchValue:v,basicSearchType:"number"}],auction_id:_});Array.isArray(null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.data)&&(b(null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.count),U(null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.data),H({loading:!1,success:"success",error:""}))}catch(e){console.error(e),H({loading:!1,success:"",error:"something went wrong"})}};return(0,s.useEffect)(()=>{Q(),ee()},[]),(0,s.useEffect)(()=>{var e,t;(null===(e=I[0])||void 0===e?void 0:e.auction_type)===2&&et({page_enabled:"y",page:1,limit:100,sortDetails:{sortKey:"auction_no",sortType:-1},searchDetails:[{basicSearchKey:"auction_type",basicSearchValue:2,basicSearchType:"number"}]}),(null===(t=Z[0])||void 0===t?void 0:t.auction_type)===1&&et({page_enabled:"y",page:1,limit:100,sortDetails:{sortKey:"auction_no",sortType:-1},searchDetails:[{basicSearchKey:"auction_type",basicSearchValue:1,basicSearchType:"number"}]})},[I,Z]),(0,s.useEffect)(()=>{var e,t;K&&(null===(e=I[0])||void 0===e?void 0:e.auction_type)===2&&ea("/product_2_live/get-product-2-live-list-public"),R&&(null===(t=Z[0])||void 0===t?void 0:t.auction_type)===1&&ea("/product_1_live/get-product-1-live-list-public")},[I,Z,E,k]),(0,s.useEffect)(()=>{var e,t;K&&(null===(e=I[0])||void 0===e?void 0:e.auction_type)===2&&el("/product_2/getProduct_2List_public"),R&&(null===(t=Z[0])||void 0===t?void 0:t.auction_type)===1&&el("/product_1/getProduct_1List_public")},[_,v,k,E]),(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(m(),{children:(0,l.jsx)("title",{children:"Lot List"})})}),(0,l.jsx)("div",{className:"container mx-auto",children:r.split(",").includes("128")&&((null==Z?void 0:Z.length)>0||(null==I?void 0:I.length)>0)?(()=>{var e,a,r,o,u;let x=Math.ceil(f/E);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-2xl mt-3",children:"Listed Lots"}),(0,l.jsxs)("div",{className:"flex space-x-3 flex-row",children:[(0,l.jsx)("button",{className:"p-1 px-2 bg-gray-200 shadow-md",onClick:()=>{B(!0),z(!1)},children:"Printed-Auction"}),(0,l.jsx)("button",{className:"p-1 px-2 bg-gray-200 shadow-md",onClick:()=>{z(!0),B(!1)},children:"e-Auction"})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between",children:[K&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"p-3 space-x-2 ",children:[(0,l.jsx)("label",{htmlFor:"auction",children:"Printed Auction #No"}),(0,l.jsxs)("select",{className:"border p-1 outline-none ",name:"auction",id:"",disabled:null==O?void 0:O.loading,onChange:e=>{let t=e.target.value,a=e.target.options[e.target.selectedIndex].getAttribute("data-name");"1"===a?(w(parseInt(t)),S(0),C(1),G(10)):(S(parseInt(t)),w(0),C(1),G(10))},children:[(0,l.jsx)("option",{value:"0",children:Array.isArray(I)&&(null==I?void 0:I.length)>0&&(null===(e=I[0])||void 0===e?void 0:e.auction_no)?null===(a=I[0])||void 0===a?void 0:a.auction_no:"Select"}),(Array.isArray(I)&&I.length>0?A.filter(e=>{var t;return(null==e?void 0:e.auction_no)!==(null===(t=I[0])||void 0===t?void 0:t.auction_no)}):A).map((e,t)=>(0,l.jsx)("option",{"data-name":null==e?void 0:e.status,value:null==e?void 0:e.auction_no,children:null==e?void 0:e.auction_no},t))]}),(0,l.jsxs)("label",{htmlFor:"auction",children:[(0,l.jsx)("strong",{className:"text-red-500",children:"*"}),"Please select Auction No"]})]})}),R&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"p-3 space-x-2 ",children:[(0,l.jsx)("label",{htmlFor:"auction",children:"e-Auction #No"}),(0,l.jsxs)("select",{className:"border p-1 outline-none ",name:"auction",id:"",disabled:null==O?void 0:O.loading,onChange:e=>{let t=e.target.value,a=e.target.options[e.target.selectedIndex].getAttribute("data-name");"1"===a?(w(parseInt(t)),S(0),C(1),G(10)):(S(parseInt(t)),w(0),C(1),G(10))},children:[(0,l.jsx)("option",{value:"0",children:Array.isArray(N)&&(null==N?void 0:N.length)>0&&(null===(r=N[0])||void 0===r?void 0:r.auction_no)?null===(o=N[0])||void 0===o?void 0:o.auction_no:"Select"}),(Array.isArray(N)&&N.length>0?A.filter(e=>{var t;return(null==e?void 0:e.auction_no)!==(null===(t=N[0])||void 0===t?void 0:t.auction_no)}):A).map((e,t)=>(0,l.jsx)("option",{"data-name":null==e?void 0:e.status,value:null==e?void 0:e.auction_no,children:null==e?void 0:e.auction_no},t))]}),(0,l.jsxs)("label",{htmlFor:"auction",children:[(0,l.jsx)("strong",{className:"text-red-500",children:"*"}),"Please select Auction No"]})]})}),(0,l.jsx)("div",{className:" py-2",children:x>1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("select",{className:"text-gray-600 border-gray-200 border-2 rounded-md outline-none focus:border-gray-100",onChange:$,value:E>=10?E:"",children:[(0,l.jsxs)("option",{value:"",className:"selected hidden",children:["Page No"," "]}),(0,l.jsx)("option",{value:"10",children:"10"}),(0,l.jsx)("option",{value:"20",children:"20"}),(0,l.jsx)("option",{value:"25",children:"25"}),(0,l.jsx)("option",{value:"30",children:"30"}),(0,l.jsx)("option",{value:"40",children:"40"}),(0,l.jsx)("option",{value:"50",children:"50"}),(0,l.jsx)("option",{value:"100",children:"100"})]}),(0,l.jsx)("span",{children:"Per Page"})]})})]}),(0,l.jsxs)("div",{className:"flex  justify-between md:p-3",children:[(0,l.jsxs)("h1",{className:"font-bold  px-1 md:px-3",children:["Total Records # ",f]}),(0,l.jsx)("div",{ref:t,className:"flex  md:space-x-3",children:(0,l.jsx)(J,{total_count:f,per_page:E,page:k})})]})]}),W.loading?(0,l.jsx)("h1",{className:"text-center text-green-500",children:"Loading Data......"}):null,(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:"Title"}),(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:"Images"}),(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:"Current Bid"}),(0,l.jsx)("th",{scope:"col",className:"px-4 py-2 text-center text-xs font-medium text-gray-500  tracking-wider",children:"Total Bid"})]})}),(0,l.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:0!==T.length?T.map((e,t)=>{let a;2===parseInt(e.code.toString().substring(0,1))&&(a="p-auction-archive",D.length>0&&1==e.status&&(a="live-p-auction")),1===parseInt(e.code.toString().substring(0,1))&&(a="e-auction-archive",D.length>0&&1==e.status&&(a="live-e-auction"));let r=parseInt(e.code.toString().substring(2,4)),o="";return o=(0,h.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],title:e.title,auction:r,code:e.code,auctiontype:a,type:1,isLive:0}),(0,p.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],type:a}),(0,l.jsx)(s.Fragment,{children:(0,l.jsxs)("tr",{className:" hover:bg-gray-50",children:[(0,l.jsx)("td",{className:"px-4 py-2 whitespace-normal",children:(0,l.jsx)(i(),{href:o,children:null==e?void 0:e.title})}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-normal",children:(0,l.jsx)(i(),{href:o,children:null==e?void 0:e.code})}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap",children:(0,l.jsx)(i(),{className:"  flex space-x-2",href:o,children:Array.isArray(null==e?void 0:e.imagesArr)?null==e?void 0:e.imagesArr.slice(0,2).map((e,t)=>{let a="",s=[...e],r=s.slice(0,4).join("").toString(),i=s.splice(9,1).toString();return"0"===i&&(a="t"),"1"===i&&(a="s"),"2"===i&&(a="m"),"3"===i&&(a="l"),"9"===i&&(a="o"),(0,l.jsx)("div",{className:"w-12 h-12 flex-shrink-0",children:(0,l.jsx)("img",{className:"rounded-md object-contain w-full h-full",src:"".concat(n.Z.CDN_URL_PUBLIC,"/uploads/").concat(a,"/").concat(r,"/").concat(e),alt:""})},t)}):""})}),(0,l.jsxs)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:[(0,l.jsx)(d.G,{icon:c.H0g})," ",(0,y.b)(null==e?void 0:e.minimum_price)]}),(0,l.jsxs)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:[(0,l.jsx)(d.G,{icon:c.H0g}
1)," ",(0,y.b)(null==e?void 0:e.bid)]}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null==e?void 0:e.no_of_bids})]},t)},e.id)}):(0,l.jsx)("tr",{children:(0,l.jsx)("th",{colSpan:8,className:" bg-gray-200 p-3",children:(0,l.jsxs)("h1",{className:"font-thin ",children:["Sorry, you have not any bid history for Live"," ",(null===(u=D[0])||void 0===u?void 0:u.auction_type)===1?"e-Auction":"Printed Auction"]})})})})]})}),(0,l.jsx)("div",{className:"flex justify-end md:p-3",children:(0,l.jsx)(J,{total_count:f,per_page:E,page:k})})]})})():(0,l.jsx)("h1",{className:"text-xl text-center text-red-500",children:"No Live Auction "})})]})},f=a(61839),b=a(19152),N=a(17398),w=()=>{var e,t;let a=(0,s.useRef)(null),[r,u]=(0,s.useState)(0),[x,g]=(0,s.useState)(1),[p,v]=(0,s.useState)([]),[y,j]=(0,s.useState)(10),[w,_]=(0,s.useState)(-1),[S,k]=(0,s.useState)(-1),[C,A]=(0,s.useState)(0),[L,D]=(0,s.useState)(-1),[F,Z]=(0,s.useState)(""),[P,I]=(0,s.useState)(""),[M,T]=(0,s.useState)(!1),[U,E]=(0,s.useState)([]),[G,R]=(0,s.use
1State)([]),[z,K]=(0,s.useState)([]),[B,W]=(0,s.useState)(!1),[H,O]=(0,s.useState)([]),[V,Y]=(0,s.useState)([]),[q,X]=(0,s.useState)(!1),[$,J]=(0,s.useState)([]),[Q,ee]=(0,s.useState)(1),[et,ea]=(0,s.useState)(!1),[el,es]=(0,s.useState)(null),[er,ei]=(0,s.useState)(!1),[eo,en]=(0,s.useState)(0),[ec,ed]=(0,s.useState)(0),[eu,ex]=(0,s.useState)(-1),eg=(e,t,a)=>{es(e),en(a),ed(t),ei(!0)},eh=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)},[ep,ev]=(0,s.useState)({cdNo:"",group:"",mainCategory:"",masterCategory:"",mainLotStatus:"",finalStatus:""}),em=async e=>{try{ea(!0);let t=await o.Z.post("/consignor/get-all-consignor-products",{limit:y,page:e,final_status:"",lot_status:"",cn_sl_no:-1,category_1:-1,category_2:-1,category_0:-1});Array.isArray(t.data.data)&&J(e=>[...e,...t.data.data.map(e=>({value:e._id,label:e._id}))]),ea(!1)}catch(e){}};(0,s.useEffect)(()=>{em(Q)},[Q]),(0,s.useEffect)(()=>{ey()},[y,x,w,S,C,P,F]),(0,s.useEffect)(()=>{ef()},[eu]),(0,s.useEffect)(()=>{ej()},[]);let ey=async()=>{W(!0);try{let e=await o.Z.post("/consignor/get-all-consignor-products",{limit:y,page:x,final_status:P.length>0?P:"",lot_status:F.length>0?F:"",cn_sl_no:C>0?C:-1,category_1:S>-1?S:-1,category_2:L>-1?L:-1,category_0:w>-1?w:-1});Array.isArray(e.data.data)&&(v(e.data.data),u(e.data.count))}catch(e){console.error("Error fetching products:",e)}finally{W(!1)}},ej=async()=>{try{var e,t,a,l;let s=await o.Z.post("/consignor/get-all-consignor-categories",{categoryLevel:eu>-1?1:0,parentId:eu>-1?eu:-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)&&E(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)}},ef=async()=>{try{if(eu>-1){var e,t,a,l;let s=await o.Z.post("/consignor/get-all-consignor-categories",{categoryLevel:eu>-1?1:0,parentId:eu>-1?eu:-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)&&R(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 eb(e){let t=String(e).slice(-4).replace(/^0+/,"");return""===t?"0":t}function eN(e){let t=null==e?void 0:e.replace(/^0+/,"");return""===t?"0":t}let ew=e=>parseInt(null==e?void 0:e.slice(1,4),10),e_=e=>{O(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},eS=e=>{Y(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},ek=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":"-",eC=(e,t)=>{switch(ev(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),ex(t));break;case"mainLotStatus":"string"==typeof t&&Z(t);break;case"finalStatus":"string"==typeof t&&I(t)}},eA=()=>{X(!q)};return console.log({categoryGroup:U}),console.log(w),(0,l.jsxs)("div",{className:"bg-gray-100 min-h-screen",children:[(0,l.jsx)(m(),{children:(0,l.jsx)("title",{children:"All Products"})}),(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:()=>X(!q),className:"text-blue-500 hover:text-blue-700",children:(0,l.jsx)(d.G,{icon:c.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:eA,className:"text-gray-500 hover:text-gray-700",children:(0,l.jsx)(d.G,{icon:c.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"}),(0,l.jsx)(b.ZP,{options:$,onMenuScrollToBottom:()=>{et||ee(e=>e+1)},isLoading:et,placeholder:"Select an CDNo",onChange:e=>{e&&eC("cdNo",Number(e.value))}})]}),(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:ep.group,onChange:e=>eC("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"}),U.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:ep.masterCategory,onChange:e=>eC("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:ep.mainLotStatus,onChange:e=>eC("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:ep.finalStatus,onChange:e=>eC("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:()=>{ey(),eA()}
1,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),D(-1),I(""),Z(""),ex(-1),ev({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: ",r]}),(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=>j(Number(e.target.value)),value:y,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)(d.G,{icon:c.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:[p.map((e,t)=>{var a,r,o,u,x,g,p,v,m,y,j,b,N,w,_,S,k,C,A,L,D,F,Z,P,I,M,T;let U="",E=ek(null===(a=null==e?void 0:e.records[0])||void 0===a?void 0:a.code);return U=(0,h.Z)({category:[null===(r=e.records[0])||void 0===r?void 0:r.category_1_details,null===(o=e.records[0])||void 0===o?void 0:o.category_2_details,null===(u=e.records[0])||void 0===u?void 0:u.category3Details,null===(x=e.records[0])||void 0===x?void 0:x.category4Details,null===(g=e.records[0])||void 0===g?void 0:g.category5Details],title:null===(p=e.records[0])||void 0===p?void 0:p.title,auction:Number(ew(String(null===(v=null==e?void 0:e.records[0])||void 0===v?void 0:v.code))),code:null===(m=null==e?void 0:e.records[0])||void 0===m?void 0:m.code,auctiontype:E,type:(null===(y=null==e?void 0:e.records[0])||void 0===y?void 0:null===(j=y.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===(_=w.code)||void 0===_?void 0:_.toString().startsWith("30"))?3:0,isLive:0}),(0,l.jsxs)(s.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":""," #").concat(eN(e.code.toString().slice(1,4))," ").concat(eb(e.code)," "):""},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:[V.includes(t)?null===(S=e.records[0])||void 0===S?void 0:S.title:(0,l.jsxs)(i(),{className:"text-xs font-medium text-gray-500",target:"_blank",href:U,children:[null===(k=e.records[0])||void 0===k?void 0:k.title.slice(0,20),(null===(C=e.records[0])||void 0===C?void 0:C.title.length)>20&&"..."]}),(null===(A=e.records[0])||void 0===A?void 0:A.title.length)>
120&&(0,l.jsx)("button",{onClick:e=>{e.stopPropagation(),eS(t)},className:"ml-2 text-xs text-blue-500 hover:text-blue-700 self-end",children:V.includes(t)?"Show less":"Show more"})]})}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null===(L=null===(D=e.records[0])||void 0===D?void 0:D.category_0_details[0])||void 0===L?void 0:L.category}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null===(F=null===(Z=e.records[0])||void 0===Z?void 0:Z.category_1_details[0])||void 0===F?void 0:F.category}),(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:null===(P=null===(I=e.records[0])||void 0===I?void 0:I.category_2_details[0])||void 0===P?void 0:P.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===(M=e.records[0])||void 0===M?void 0:M.imagesArr)?null===(T=e.records[0])||void 0===T?void 0:T.imagesArr.slice(0,2).map((e,a)=>(0,l.jsx)("div",{className:"w-12 h-12 flex-shrink-0 overflow-hidden group",onClick:()=>eg("".concat(n.Z.CDN_URL_PUBLIC,"/uploads/").concat(eh(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(n.Z.CDN_URL_PUBLIC,"/uploads/").concat(eh(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:()=>e_(t),className:"text-indigo-600 hover:text-indigo-900",children:(0,l.jsx)(d.G,{icon:H.includes(t)?c.mTx:c.ptq})})})]}),H.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,r,o,n,c,d,u,x,g,p;let v=ek(null==t?void 0:t.code),m=(0,h.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.title,auction:Number(ew(String(null==t?void 0:t.code))),code:null==t?void 0:t.code,auctiontype:v,type:(null==t?void 0:null===(s=t.code)||void 0===s?void 0:s.toString().startsWith("10"))?1:(null==t?void 0:null===(r=t.code)||void 0===r?void 0:r.toString().startsWith("20"))?2:(null==t?void 0:null===(o=t.code)||void 0===o?void 0:o.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)(i(),{href:m,target:"_blank",className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:(0,f.Z)(t.datetime,"dd MMM yyyy")})}):(0,l.jsx)("td",{className:"px-4 py-2 whitespace-nowrap text-xs text-gray-500",children:(0,f.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(eb(t.code)," #").concat("1"===t.code.toString().slice(0,1)?"e-":"2"===t.code.toString().slice(0,1)?"P":"").concat(eN(t.code.toString().slice(1,4))):""}),(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===(n=e.rtcRecords)||void 0===n?void 0:n.length)>0?"Unsold \n RTC \n ".concat((0,f.Z)(null===(c=null==e?void 0:e.rtcRecords[0])||void 0===c?void 0:c.datetime,"dd MMM yyyy")):(null==e?void 0:null===(d=e.final_status)||void 0===d?void 0:null===(u=d.status)||void 0===u?void 0:u.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,f.Z)(null==e?void 0:null===(p=e.final_status)||void 0===p?void 0:p.datetime,"dd MMM yyyy")):"Unsold":"Unsold"})]},a)})})]})})})})]},e._id)}),0===p.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,r=e.page,i=Math.ceil(t/s),o=[],n=r-2<1?1:r-2,u=r+2<=i?r+2:i;o.push({pageNo:1});for(let e=n;e<=u;e++)e>1&&e<i&&o.push({pageNo:e});let x=e=>{e>0&&g(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 -sp
1ace-x-px h-4 text-sm lining-nums",children:[r>1&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{x(r-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)(d.G,{icon:c.EyR,className:"w-2.5 h-2.5"})})}),o.map((e,t)=>(0,l.jsx)(l.Fragment,{children:e.pageNo<=i&&(0,l.jsx)("li",{onClick:()=>{var t;x(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===r?"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=>{x(e.target.value)},value:i,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(r==i?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:i}),r<i&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("li",{onClick:()=>{x(r+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)(d.G,{icon:c.yOZ,className:"w-2.5 h-2.5"})})})]})})})})},{total_count:r,per_page:y,page:x})}),er&&(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:()=>{ei(!1),es(null)},children:(0,l.jsxs)("div",{className:"relative w-full max-w-md p-4 bg-white rounded-md",onClick:e=>e.stopPropagation(),children:[el&&(0,l.jsx)(N.Z,{smallImage:{alt:"Product",isFluidWidth:!0,src:el},largeImage:{src:el,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=p[ec])||void 0===t?void 0:t.records[0])||void 0===e?void 0:e.imagesArr;a&&eo>0&&(en(eo-1),es("".concat(n.Z.CDN_URL_PUBLIC,"/uploads/").concat(eh(a[eo-1]))))},className:"absolute left-[-2px] top-1/2 transform -translate-y-1/2",disabled:0===eo,children:(0,l.jsx)(d.G,{icon:c.EyR,size:"2x"})}),(0,l.jsx)("button",{onClick:()=>{var e,t;let a=null===(e=null===(t=p[ec])||void 0===t?void 0:t.records[0])||void 0===e?void 0:e.imagesArr;a&&eo<a.length-1&&(en(eo+1),es("".concat(n.Z.CDN_URL_PUBLIC,"/uploads/").concat(eh(a[eo+1]))))},className:"absolute right-[-2px] top-1/2 transform -translate-y-1/2 ",disabled:eo===(null===(e=null===(t=p[ec])||void 0===t?void 0:t.records[0])||void 0===e?void 0:e.imagesArr.length)-1,children:(0,l.jsx)(d.G,{icon:c.yOZ,size:"2x"})})]})})]})})]})},_=()=>{let[e,t]=(0,s.useState)(!1),[a,r]=(0,s.useState)(!1),[o,n]=(0,s.useState)(!1);return(0,l.jsx)("div",{className:"lg:mx-28",children:(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)(i(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,l.jsx)(i(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,l.jsx)(i(),{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.jsxs)("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{t(!0),r(!1),n(!1)}catch(e){}},children:"Auction Wise"})}),(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{r(!0),t(!1),n(!1)}catch(e){}},children:"All Products"})}),(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-[100px]",onClick:()=>{try{n(!0),t(!1),r(!1)}catch(e){}},children:"Other"})})]})})}),e&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(j,{})}),a&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(w,{})})]})})}},11719:function(e,t,a){"use strict";var l=a(85893),s=a(59417),r=a(99603),i=a(41664),o=a.n(i);a(67294);let n=e=>e.replace(/[^\w\s]/g," ").toLowerCase().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"");t.Z=e=>{let t=[];try{let a="";switch(e.type){case"p-auction-archive":a="printed-auction";break;case"e-auction-archive":a="e-auction";break;case"live-p-auction":a="live-printed-auction";break;case"live-e-auction":a="live-e-auction";break;case"e-shop":a="e-shop";break;case"search":a="/search"}for(let l of e.category)if(Array.isArray(l)&&l.length>0){let s=l[0];if("number"==typeof(null==s?void 0:s.id)&&"string"==typeof(null==s?void 0:s.category)){if("search"!=e.type){let e=n(null==s?void 0:s.cat_url);t.push({category:s.category,cat_url:"/".concat(a,"/").concat(e,"/").concat(null==s?void 0:s.id)})}if("search"===e.type){let e=s.category;t.push({category:s.category,cat_url:e})}}}}catch(e){}return(0,l.jsx)(l.Fragment,{children:null==t?void 0:t.map((a,i)=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("span",{children:["search"!==e.type&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(o(),{href:a.cat_url,className:"hover:text-red-900 ",children:a.category})}),"search"===e.type&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(o(),{href:{pathname:"/search",query:{q:"".concat(a.cat_url)}},className:"hover:text-red-900 ",children:a.category})}),(0,l.jsx)("span",{children:i+1===t.length?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(r.G,{icon:s.yOZ,size:"lg",className:"h-4 w-4 mt-auto"})})},i)]},i)}))})}},22632:function(e,t){"use strict";let a=e=>{var t,a,l;let s=null==e?void 0:e.replace(/[^\w\s]/g," "),r=null===(t=null==s?void 0:s.toLowerCase())||void 0===t?void 0:t.replace(/\s+/g,"-");return null===(a=null===(l=null==r?void 0:r.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 r="",i="",o=e.code,n=e.isLive,c=null==o?void 0:o.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==o?void 0:o.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),p=i.substring(0,(null==i?void 0:i.length)-1);switch(g){case"p-auction-archive":r="/printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(h);break;case"e-auction-archive":r="/e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(h);break;case"live-p-auction":r="/live-printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(h);break;case"live-e-auction":r="/live-e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(h);break;case"e-shop":r="/e-shop/pid-no-".concat(u,"/").concat(p,"/").concat(h)}return r}catch(e){console.error(e)}return""}},88754:function(e,t,a){"use strict";a.d(t,{b:function(){return l}});let l=e=>{try{let t="";if("number"==typeof e?t=e.toString():"string"==typeof e&&(t=e),t.includes("-")){let[e,a]=t.split("-");return s(e)+"-"+s(a)}return s(t)}catch(e){return console.error("Error formatting number:",e),"-"}},s=e=>{try{let t="",a=0,[l,s]=e.split(".");for(let e=l.length-1;e>=0;e--)t=l[e]+t,a++,3===a&&e>0?t=","+t:a>3&&(a-3)%2==0&&e>0&&(t=","+t);return s&&(t+="."+s),t}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},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 r={year:a.getUTCFullYear(),month:a.getUTCMonth(),date:a.getUTCDate(),hours:a.getUTCHours(),minutes:a.getUTCMinutes(),seconds:a.getUTCSeconds()},i=l.ou.fromObject({year:r.year,month:r.month+1,day:r.date,hour:r.hours,minute:r.minutes,second:r.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=53629)}),_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.