1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3415],{22632:function(e,t){let l=e=>{var t,l,s;let n=null==e?void 0:e.replace(/[^\w\s]/g," "),i=null===(t=null==n?void 0:n.toLowerCase())||void 0===t?void 0:t.replace(/\s+/g,"-");return null===(l=null===(s=null==i?void 0:i.replace(/[^a-zA-Z0-9-]/g,""))||void 0===s?void 0:s.replace(/-{2,}/g,"-"))||void 0===l?void 0:l.replace(/^-+|-+$/g,"")};t.Z=e=>{try{var t,s,n;let i="",o="",r=e.code,c=e.isLive,a=null==r?void 0:r.toString().slice(-4),d=null==a?void 0:a.toString(),u=parseInt(null===(t=parseInt(d,10))||void 0===t?void 0:t.toString()),h=parseInt(null==r?void 0:r.toString().substring(0,2)),x=e.auctiontype;if("all"===x)switch(h){case 10:x=1==c?"live-e-auction":"e-auction-archive";break;case 20:x=1==c?"live-p-auction":"p-auction-archive";break;case 30:x="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===(s=e.cat_url)||void 0===s?void 0:s.length)>0){let t=l(null==e?void 0:e.cat_url);o+="".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===(n=e.cat_url)||void 0===n?void 0:n.length)>0){let t=l(null==e?void 0:e.cat_url);o+="".concat(t,"/")}}}let g=l(e.title),m=o.substring(0,(null==o?void 0:o.length)-1);switch(x){case"p-auction-archive":i="/printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(g);break;case"e-auction-archive":i="/e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(g);break;case"live-p-auction":i="/live-printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(g);break;case"live-e-auction":i="/live-e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(m,"/").concat(g);break;case"e-shop":i="/e-shop/pid-no-".concat(u,"/").concat(m,"/").concat(g)}return i}catch(e){console.error(e)}return""}},13415:function(e,t,l){var s=l(85893),n=l(29552),i=l(41664),o=l.n(i),r=l(67294),c=l(46066);l(84640),l(19678);var a=l(22632),d=l(8916),u=l(4511),h=l(88754),x=l(48583),g=l(94543),m=l(99603),v=l(59417),p=l(11163);let f=e=>{let{direction:t,onClick:l}=e;return(0,s.jsx)("button",{onClick:l,className:"absolute top-1/2 -translate-y-1/2 z-10 w-10 h-10 bg-white bg-opacity-50 rounded-full flex items-center justify-center text-gray-800 hover:bg-opacity-75 transition duration-300 ease-in-out ".concat("prev"===t?"left-0":"right-0"),children:"prev"===t?(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-24 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}):(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-24 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})};t.Z=e=>{let{relatedCategoryProducts:t,auctionType:l,page:i,show_more:j,eshopRandomProductShowBtnThisWeek:y}=e,b=(0,x.Dv)(g.ZP),w=(0,p.useRouter)(),N=[];Array.isArray(t)&&t[0].length>=1&&(N=t[0]);let k={dots:!1,infinite:!1,speed:500,slidesToShow:"detail"===i?4:3,slidesToScroll:1,prevArrow:(0,s.jsx)(f,{direction:"prev",onClick:!0}),nextArrow:(0,s.jsx)(f,{direction:"next",onClick:!0}),responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};return(0,s.jsx)(u.SV,{fallback:(0,s.jsx)("p",{children:"Something went wrong . Please Refresh the Page ."}),children:(0,s.jsx)(r.Fragment,{children:(null==N?void 0:N.length)>0&&(0,s.jsx)("section",{className:"lg:px-0 md:p-0",children:(0,s.jsx)("div",{className:"container mx-auto",children:(0,s.jsx)("div",{className:"w-full flex md:flex-row xxxs:flex-col",children:(0,s.jsx)("div",{className:"".concat("list"===i?"w-full lg:w-full md:hidden lg:block":"w-full lg:w-full"),children:(0,s.jsx)("section",{className:"",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex xxxs:flex-col sm:flex-col md:flex-row md:justify-between lg:flex-row lg:justify-between py-2 px-2 bg-gray-100 w-full border-b border-gray-200 mb-3 ",children:[(0,s.jsx)("div",{className:"font-bold",children:"Related Products"}),j&&(0,s.jsxs)("div",{className:"flex gap-x-2",children:[y&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o(),{href:"/e-shop/all-products?viewBy=this_week",children:(0,s.jsx)("h1",{children:"(This Week)"})})}),(0,s.jsx)(o(),{href:"/e-shop/all-products?viewBy=last_week",children:(0,s.jsx)("h1",{children:"(Last Week)"})}),(0,s.jsx)(o(),{href:"/e-shop/all-products?viewBy=this_month",children:(0,s.jsx)("h1",{children:"(This Month)"})}),(0,s.jsx)(o(),{href:"/e-shop/all-products",children:(0,s.jsx)("h1",{children:"(View All)"})})]})]}),(0,s.jsx)("div",{className:"w-full relative mx-auto ",children:(0,s.jsx)(c.Z,{...k,className:"slick-slider w-full ",children:null==N?void 0:N.map((e,t)=>{var i,r,c;let u;let x=0,g="",p="",f=0,j=parseInt(e.code.toString().substring(2,4));return p=(0,a.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],title:e.title,auction:"e-shop"===l?0:j,code:e.code,auctiontype:l,type:1,isLive:0}),f=e.code,g=e.title,x=null==e?void 0:null===(i=e.code)||void 0===i?void 0:i.toString().slice(0,4),Array.isArray(e.categoryHpList)&&e.categoryHpList,"object"==typeof e.productListCount&&Object.keys((null==e?void 0:null===(r=e.productListCount)||void 0===r?void 0:r.length)>0)&&(null===(c=null==e?void 0:e.productListCount[0])||void 0===c||c.productListCount),(0,s.jsx)("div",{className:"px-1",children:(0,s.jsxs)("div",{className:"bg-white border border-gray-200 overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300 h-full flex flex-col",children:[(0,s.jsx)("div",{className:"bg-gray-50 p-3 border-b border-gray-200",children:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(o(),{href:p,className:"hover:text-red-600 transition-colors duration-200",children:(0,s.jsx)("span",{className:"font-semibold text-sm text-gray-700",children:"e-shop"===l?"SKU # ".concat(f):"Auct # ".concat(f.toString().slice(2,4),", Lot No.").concat(""===(u=String(f).slice(-4).replace(/^0+/,""))?"0":u)})})})}),(0,s.jsx)("div",{className:"flex-grow flex items-center justify-center p-4 bg-gray-50",children:(0,s.jsx)(o(),{href:p,className:"block w-full h-full",children:(0,s.jsx)("img",{src:"".concat(n.Z.CDN_URL_PUBLIC,"/uploads/m/").concat(x,"/").concat(f,"12.jpg"),className:"object-contain w-full h-36",alt:g})})}),(0,s.jsxs)("div",{className:"p-4 flex-grow flex flex-col justify-between",children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("h3",{className:"text-xs font-medium text-gray-800 text-center h-10 overflow-hidden",children:(0,d.Z)(g)})}),(0,s.jsx)("div",{className:"bg-gray-50 rounded-md p-3 mb-4",children:"e-shop"===l?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex justify-between text-xs",children:[(0,s.jsx)("span",{className:"font-medium text-gray-600 text-sm",children:"Price"}),":",(0,s.jsxs)("span",{className:"font-bold text-gray-800 text-sm",children:["â¹ ",(null==e?void 0:e.discount_price)>0?(0,h.b)(null==e?void 0:e.discount_price):(0,h.b)(null==e?void 0:e.eshop_price)]})]})}):"p-auction-archive"===l||"e-auction-archive"===l?(0,s.jsxs)(s.Fragment,{children:[(null==b?void 0:b.isLoggedIn)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex justify-between text-md",children:[(0,s.jsx)("span",{className:"font-medium text-gray-600 text-md",children:"Hammered For"}),":",(0,s.jsxs)("span",{className:"font-bold text-gray-800 text-md",children:["â¹ ",(0,h.b)(null==e?void 0:e.b
1id)]})]})}),!(null==b?void 0:b.isLoggedIn)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex justify-center text-xs",children:(0,s.jsxs)("span",{className:"",children:[(0,s.jsx)(o(),{href:"/login?re_url=".concat(w.asPath),className:"hover:text-red-900 px-2",children:"Login to view"}),(0,s.jsx)(m.G,{icon:v.JHj,className:"h-3 w-3 font-semibold",size:"sm"}),(0,s.jsx)("span",{className:"pl-2",children:"Hammer Price"})]})})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-between text-xs",children:[(0,s.jsx)("span",{className:"font-medium text-gray-600 text-xs",children:"Current Bid"}),(0,s.jsxs)("span",{className:"font-bold text-gray-800 text-xs",children:["â¹ ",(0,h.b)(null==e?void 0:e.bid)]})]}),(0,s.jsxs)("div",{className:"flex justify-between text-xs mt-2",children:[(0,s.jsx)("span",{className:"font-medium text-gray-600 text-xs",children:"Estimate"}),(0,s.jsxs)("span",{className:"font-bold text-gray-800 text-xs",children:["â¹ ",(0,h.b)(null==e?void 0:e.estimated_price)]})]})]})}),(0,s.jsx)(o(),{href:p,children:(0,s.jsx)("button",{className:"w-full py-2 bg-gray-200 text-black hover:bg-gray-100 rounded-md transition duration-300 ease-in-out text-sm font-medium",children:"View Details"})})]})]})},t)})})})]})})})})})})})})}},88754:function(e,t,l){l.d(t,{b:function(){return s}});let s=e=>{try{let t="";if("number"==typeof e?t=e.toString():"string"==typeof e&&(t=e),t.includes("-")){let[e,l]=t.split("-");return n(e)+"-"+n(l)}return n(t)}catch(e){return console.error("Error formatting number:",e),"-"}},n=e=>{try{let t="",l=0,[s,n]=e.split(".");for(let e=s.length-1;e>=0;e--)t=s[e]+t,l++,3===l&&e>0?t=","+t:l>3&&(l-3)%2==0&&e>0&&(t=","+t);return n&&(t+="."+n),t}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},8916:function(e,t,l){l(67294),t.Z=e=>(null==e?void 0:e.length)>=60?"".concat(e.substring(0,55)," ..."):e}}]);
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.