PageSourceSearch

https://ripplemind.com/_next/static/chunks/pages/customers/my-lotlist-auction-wise-84d0b71415503412.js

js ripplemind.com collected 2026-10-06 13:15:48 UTC 17,344 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6180],{64587:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customers/my-lotlist-auction-wise",function(){return a(32032)}])},32032:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return f}});var r=a(85893),o=a(41664),i=a.n(o),l=a(67294),s=a(88446),c=a(29552),n=a(59417),d=a(99603),u=a(11163),h=a(48583),g=a(94543),v=a(22632),p=a(11719),x=a(9008),y=a.n(x),m=a(88754),b=()=>{var e;let t=(0,l.useRef)(null),a=(0,h.Dv)(g.ZP),o=null==a?void 0:null===(e=a.userDetails)||void 0===e?void 0:e.status,[x,b]=(0,l.useState)(-1),[j,f]=(0,l.useState)(0),[_,N]=(0,l.useState)(0),[w,S]=(0,l.useState)(0),[A,D]=(0,l.useState)(1),[L,k]=(0,l.useState)([]),[Z,C]=(0,l.useState)([]),[E,F]=(0,l.useState)([]),[P,T]=(0,l.useState)(10),[I,K]=(0,l.useState)({loading:!1,success:"",error:""}),[R,G]=(0,l.useState)({loading:!1,success:"",error:""}),[V,O]=(0,l.useState)({status:""}),z=(0,u.useRouter)(),B=e=>{let t=e.target.value;D(1),T(Number(t))},H=e=>{let a=e.total_count,o=e.per_page,i=e.page,l=Math.ceil(a/o),s=[],c=i-2<1?1:i-2,u=i+2<=l?i+2:l;s.push({pageNo:1});for(let e=c;e<=u;e++)e>1&&e<l&&s.push({pageNo:e});let h=e=>{e>0&&D(e)};return(0,r.jsx)(r.Fragment,{children:l>1&&(0,r.jsx)("div",{className:"flex xxxs:pb-5",children:(0,r.jsx)("nav",{children:(0,r.jsxs)("ul",{className:"flex -space-x-px h-4 text-sm lining-nums",children:[i>1&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("li",{onClick:()=>{h(i-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,r.jsx)(d.G,{icon:n.EyR,className:"w-2.5 h-2.5"})})}),s.map((e,a)=>(0,r.jsx)(r.Fragment,{children:e.pageNo<=l&&(0,r.jsx)("li",{onClick:()=>{var a;h(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===i?"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,r.jsx)("li",{onClick:e=>{h(e.target.value)},value:l,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(i==l?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:l}),i<l&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("li",{onClick:()=>{h(i+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,r.jsx)(d.G,{icon:n.yOZ,className:"w-2.5 h-2.5"})})})]})})})})},M=async()=>{try{K({loading:!0,success:"",error:""});let t=await s.Z.get("/user/viewuser");if(200===t.status){var e;b(t.data.id),O(null==t?void 0:t.data),(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.consignor_user)===128||z.push("/customers")}K({loading:!1,success:"success",error:""})}catch(e){console.error(e),K({loading:!1,success:"",error:"something went wrong"})}},q=async()=>{try{var e,t,a;G({loading:!0,success:"",error:""});let r=await s.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==r?void 0:null===(e=r.data)||void 0===e?void 0:e.data)){let e=null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a.filter(e=>1===e.status);e.length>0&&C(e)}G({loading:!1,success:"success",error:""})}catch(e){console.error(e)}},U=async e=>{try{var t,a;G({loading:!0,success:"",error:""});let r=await s.Z.post("/auction_no_archive/get-auction-list-public",e);Array.isArray(null==r?void 0:null===(t=r.data)||void 0===t?void 0:t.data)&&k(null==r?void 0:null===(a=r.data)||void 0===a?void 0:a.data),G({loading:!1,success:"success",error:""})}catch(e){console.error(e)}},X=async e=>{try{var t,a,r;K({loading:!0,success:"",error:""});let o=await s.Z.post(e,{page_enabled:"y",page:A,limit:P,sortDetails:{sort
1Key:"code",sortType:1},searchDetails:[{basicSearchKey:"consignor_uid",basicSearchValue:x,basicSearchType:"number"}],auction_id:Z.length>0?Z[0].auction_no:_});Array.isArray(null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.data)&&(f(null==o?void 0:null===(a=o.data)||void 0===a?void 0:a.count),F(null==o?void 0:null===(r=o.data)||void 0===r?void 0:r.data),K({loading:!1,success:"success",error:""}))}catch(e){console.error(e),K({loading:!1,success:"",error:"something went wrong"})}},$=async e=>{try{var t,a,r;K({loading:!0,success:"",error:""});let o=await s.Z.post(e,{page_enabled:"y",page:A,limit:P,sortDetails:{sortKey:"code",sortType:1},searchDetails:[{basicSearchKey:"consignor_uid",basicSearchValue:x,basicSearchType:"number"}],auction_id:w});Array.isArray(null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.data)&&(f(null==o?void 0:null===(a=o.data)||void 0===a?void 0:a.count),F(null==o?void 0:null===(r=o.data)||void 0===r?void 0:r.data),K({loading:!1,success:"success",error:""}))}catch(e){console.error(e),K({loading:!1,success:"",error:"something went wrong"})}};return(0,l.useEffect)(()=>{M(),q()},[]),(0,l.useEffect)(()=>{var e,t;(null===(e=Z[0])||void 0===e?void 0:e.auction_type)===2&&U({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&&U({page_enabled:"y",page:1,limit:100,sortDetails:{sortKey:"auction_no",sortType:-1},searchDetails:[{basicSearchKey:"auction_type",basicSearchValue:1,basicSearchType:"number"}]})},[Z]),(0,l.useEffect)(()=>{var e,t;(null===(e=Z[0])||void 0===e?void 0:e.auction_type)===2&&X("/product_2_live/get-product-2-live-list-public"),(null===(t=Z[0])||void 0===t?void 0:t.auction_type)===1&&X("/product_1_live/get-product-1-live-list-public")},[_,x,A,P]),(0,l.useEffect)(()=>{var e;(null===(e=Z[0])||void 0===e?void 0:e.auction_type)===2&&X("/product_2_live/get-product-2-live-list-public")},[Z]),(0,l.useEffect)(()=>{var e,t;(null===(e=Z[0])||void 0===e?void 0:e.auction_type)===2&&$("/product_2/getProduct_2List_public"),(null===(t=Z[0])||void 0===t?void 0:t.auction_type)===1&&$("/product_1/getProduct_1List_public")},[w,x,A,P]),(0,r.jsxs)("div",{className:"lg:mx-28",children:[(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(y(),{children:(0,r.jsx)("title",{children:"Lot List"})})}),(0,r.jsxs)("div",{className:"container mx-auto",children:[(0,r.jsxs)("div",{className:"container mx-auto bg-gray-200 h-10 lg:my-3 rounded-md p-2 text-gray-500",children:[(0,r.jsx)(i(),{className:"hover:text-red-700",href:"/",children:"Home"}),"\xa0/\xa0",(0,r.jsx)(i(),{className:"hover:text-red-700",href:"/customers",children:"Dashboard"}),"\xa0/\xa0",(0,r.jsx)(i(),{className:"hover:text-red-700",href:"/customers/my-lotlist-auction-wise",children:"My Lot List"})]}),o.split(",").includes("128")&&(null==Z?void 0:Z.length)>0?(()=>{var e,a,o;let l=Math.ceil(j/P);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl mt-3",children:"Listed Lots"}),(0,r.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,r.jsxs)("div",{className:"p-3 space-x-2 ",children:[(0,r.jsx)("label",{htmlFor:"auction",children:"Auction #No"}),(0,r.jsxs)("select",{className:"border p-1 outline-none ",name:"auction",id:"",disabled:null==R?void 0:R.loading,onChange:e=>{let t=e.target.value,a=e.target.options[e.target.selectedIndex].getAttribute("data-name");"1"===a?(N(parseInt(t)),S(0),D(1),T(10)):(S(parseInt(t)),N(0),D(1),T(10))},children:[(0,r.jsx)("option",{value:"0",children:Array.isArray(Z)&&(null==Z?void 0:Z.length)>0&&(null===(e=Z[0])||void 0===e?void 0:e.auction_no)?null===(a=Z[0])||void 0===a?void 0:a.auction_no:"Select"}),(Array.isArray(Z)&&Z.length>0?L.filter(e=>{var t;return(null==e?void 0:e.auction_no)!==(null===(t=Z[0])||void 0===t?void 0:t.auction_no)}):L).map((e,t)=>(0,r.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,r.jsxs)("label",{htmlFor:"auction",children:[(0,r.jsx)("strong",{className:"text-red-500",children:"*"}),"Please select Auction No"]})]}),(0,r.jsx)("div",{className:" py-2",children:l>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("select",{className:"text-gray-600 border-gray-200 border-2 rounded-md outline-none focus:border-gray-100",onChange:B,value:P>=10?P:"",children:[(0,r.jsxs)("option",{value:"",className:"selected hidden",children:["Page No"," "]}),(0,r.jsx)("option",{value:"10",children:"10"}),(0,r.jsx)("option",{value:"20",children:"20"}),(0,r.jsx)("option",{value:"25",children:"25"}),(0,r.jsx)("option",{value:"30",children:"30"}),(0,r.jsx)("option",{value:"40",children:"40"}),(0,r.jsx)("option",{value:"50",children:"50"}),(0,r.jsx)("option",{value:"100",children:"100"})]}),(0,r.jsx)("span",{children:"Per Page"})]})})]}),(0,r.jsxs)("div",{className:"flex  justify-between md:p-3",children:[(0,r.jsxs)("h1",{className:"font-bold  px-1 md:px-3",children:["Total Records # ",j]}),(0,r.jsx)("div",{ref:t,className:"flex  md:space-x-3",children:(0,r.jsx)(H,{total_count:j,per_page:P,page:A})})]})]}),I.loading?(0,r.jsx)("h1",{className:"text-center text-green-500",children:"Loading Data......"}):null,(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)("table",{className:"w-full table-auto overflow-scroll border mb-5",children:[(0,r.jsx)("thead",{className:"h-14",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"border ",children:"Title"}),(0,r.jsx)("th",{className:"border",children:"Lot No"}),(0,r.jsx)("th",{className:"border",children:"Images"}),(0,r.jsx)("th",{className:"border ",children:"Estimated Price"}),(0,r.jsx)("th",{className:"border",children:"Current Bid"}),(0,r.jsx)("th",{className:"border",children:"Total Bid"})]})}),(0,r.jsx)("tbody",{className:" text-center ",children:0!==E.length?E.map((e,t)=>{let a;2===parseInt(e.code.toString().substring(0,1))&&(a="p-auction-archive",Z.length>0&&1==e.status&&(a="live-p-auction")),1===parseInt(e.code.toString().substring(0,1))&&(a="e-auction-archive",Z.length>0&&1==e.status&&(a="live-e-auction"));let o=parseInt(e.code.toString().substring(2,4)),l="";return l=(0,v.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],title:e.title,auction:o,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,r.jsxs)("tr",{className:" md:h-20 odd:bg-gray-100",children:[(0,r.jsx)("td",{className:"border md:w-[30%]   text-start p-3",children:(0,r.jsx)(i(),{href:l,children:null==e?void 0:e.title})}),(0,r.jsx)("td",{className:"border w-[10%] ",children:(0,r.jsx)(i(),{href:l,children:null==e?void 0:e.code})}),(0,r.jsx)("td",{className:"border  grid grid-rows-1 md:grid-cols-2  justify-around p-2 gap-3",children:(0,r.jsx)(i(),{className:"  flex lg:flex-row xxxs:flex-col  gap-2",href:l,children:Array.isArray(null==e?void 0:e.imagesArr)?null==e?void 0:e.imagesArr.slice(0,2).map((e,t)=>{let a="",o=[...e],i=o.slice(0,4).join("").toString(),l=o.splice(9,1).toString();return"0"===l&&(a="t"),"1"===l&&(a="s"),"2"===l&&(a="m"),"3"===l&&(a="l"),"9"===l&&(a="o"),(0,r.jsx)("img",{className:" rounded-md object-contain",src:"".concat(c.Z.CDN_URL_PUBLIC,"/uploads/").concat(a,"/").concat(i,"/").concat(e)},t)}):""})}),(0,r.jsxs)("td",{className:"border w-[10%]  ",children:[(0,r.jsx)(d.G,{icon:n.H0g})," ",(0,m.b)(null==e?void 0:e.minimum_price)]}),(0,r.jsxs)("td",{className:"border w-[10%]   ",children:[(0,r.jsx)(d.G,{icon:n.H0g}
1)," ",(0,m.b)(null==e?void 0:e.bid)]}),(0,r.jsx)("td",{className:"border w-[10%] ",children:null==e?void 0:e.no_of_bids})]},t)}):(0,r.jsx)("tr",{children:(0,r.jsx)("th",{colSpan:8,className:" bg-gray-200 p-3",children:(0,r.jsxs)("h1",{className:"font-thin ",children:["Sorry, you have not any bid history for Live"," ",(null===(o=Z[0])||void 0===o?void 0:o.auction_type)===1?"e-Auction":"Printed Auction"]})})})})]})}),(0,r.jsx)("div",{className:"flex justify-end md:p-3",children:(0,r.jsx)(H,{total_count:j,per_page:P,page:A})})]})})():(0,r.jsx)("h1",{className:"text-xl text-center text-red-500",children:"No Live Auction "})]})]})},j=a(28646),f=()=>{let e=(0,h.Dv)(g.ZP);return e.loading?(0,r.jsx)("p",{className:"md:mx-28 text-center p-5",children:"Loading..."}):e.isLoggedIn?(0,r.jsx)(b,{}):(0,r.jsx)(j.Z,{})}},11719:function(e,t,a){"use strict";var r=a(85893),o=a(59417),i=a(99603),l=a(41664),s=a.n(l);a(67294);let c=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 r of e.category)if(Array.isArray(r)&&r.length>0){let o=r[0];if("number"==typeof(null==o?void 0:o.id)&&"string"==typeof(null==o?void 0:o.category)){if("search"!=e.type){let e=c(null==o?void 0:o.cat_url);t.push({category:o.category,cat_url:"/".concat(a,"/").concat(e,"/").concat(null==o?void 0:o.id)})}if("search"===e.type){let e=o.category;t.push({category:o.category,cat_url:e})}}}}catch(e){}return(0,r.jsx)(r.Fragment,{children:null==t?void 0:t.map((a,l)=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("span",{children:["search"!==e.type&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s(),{href:a.cat_url,className:"hover:text-red-900 ",children:a.category})}),"search"===e.type&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s(),{href:{pathname:"/search",query:{q:"".concat(a.cat_url)}},className:"hover:text-red-900 ",children:a.category})}),(0,r.jsx)("span",{children:l+1===t.length?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.G,{icon:o.yOZ,size:"lg",className:"h-4 w-4 mt-auto"})})},l)]},l)}))})}},28646:function(e,t,a){"use strict";var r=a(85893),o=a(41664),i=a.n(o),l=a(11163);a(67294),t.Z=()=>{let e=(0,l.useRouter)(),t=e.asPath;return(0,r.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,r.jsx)("br",{}),(0,r.jsx)(i(),{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,r;let o=null==e?void 0:e.replace(/[^\w\s]/g," "),i=null===(t=null==o?void 0:o.toLowerCase())||void 0===t?void 0:t.replace(/\s+/g,"-");return null===(a=null===(r=null==i?void 0:i.replace(/[^a-zA-Z0-9-]/g,""))||void 0===r?void 0:r.replace(/-{2,}/g,"-"))||void 0===a?void 0:a.replace(/^-+|-+$/g,"")};t.Z=e=>{try{var t,r,o;let i="",l="",s=e.code,c=e.isLive,n=null==s?void 0:s.toString().slice(-4),d=null==n?void 0:n.toString(),u=parseInt(null===(t=parseInt(d,10))||void 0===t?void 0:t.toString()),h=parseInt(null==s?void 0:s.toString().substring(0,2)),g=e.auctiontype;if("all"===g)switch(h){case 10:g=1==c?"live-e-auction":"e-auction-archive";break;case 20:g=1==c?"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===(r=e.cat_url)||void 0===r?void 0:r.length)>0){let t=a(null==e?void 0:e.cat_url);l+="".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===(o=e.cat_url)||void 0===o?void 0:o.length)>0){let t=a(null==e?void 0:e.cat_url);l+="".concat(t,"/")}}}let v=a(e.title),p=l.substring(0,(null==l?void 0:l.length)-1);switch(g){case"p-auction-archive":i="/printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(v);break;case"e-auction-archive":i="/e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(v);break;case"live-p-auction":i="/live-printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(v);break;case"live-e-auction":i="/live-e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(p,"/").concat(v);break;case"e-shop":i="/e-shop/pid-no-".concat(u,"/").concat(p,"/").concat(v)}return i}catch(e){console.error(e)}return""}},88754:function(e,t,a){"use strict";a.d(t,{b:function(){return r}});let r=e=>{try{let t="";if("number"==typeof e?t=e.toString():"string"==typeof e&&(t=e),t.includes("-")){let[e,a]=t.split("-");return o(e)+"-"+o(a)}return o(t)}catch(e){return console.error("Error formatting number:",e),"-"}},o=e=>{try{let t="",a=0,[r,o]=e.split(".");for(let e=r.length-1;e>=0;e--)t=r[e]+t,a++,3===a&&e>0?t=","+t:a>3&&(a-3)%2==0&&e>0&&(t=","+t);return o&&(t+="."+o),t}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},9008:function(e,t,a){e.exports=a(42636)}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=64587)}),_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.