1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{8266:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return r(86960)}])},28530:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return s}});class r{disable(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}getStore(){}run(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}exit(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}enterWith(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}}function s(){return globalThis.AsyncLocalStorage?new globalThis.AsyncLocalStorage:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25182:function(e,t,r){"use strict";function s(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return s}}),r(38754),r(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return x},usePathname:function(){return g},ServerInsertedHTMLContext:function(){return o.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return o.useServerInsertedHTML},useRouter:function(){return m},useParams:function(){return f},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return v},redirect:function(){return c.redirect},notFound:function(){return d.notFound}});let s=r(67294),n=r(24224),i=r(78463),a=r(25182),l=r(72526),o=r(43014),c=r(48781),d=r(78147),u=Symbol("internal for urlsearchparams readonly");function h(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[u][Symbol.iterator]()}append(){throw h()}delete(){throw h()}set(){throw h()}sort(){throw h()}constructor(e){this[u]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function x(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,s.useContext)(i.SearchParamsContext),t=(0,s.useMemo)(()=>e?new p(e):null,[e]);return t}function g(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,s.useContext)(i.PathnameContext)}function m(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,s.useContext)(n.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function f(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,s.useContext)(n.GlobalLayoutRouterContext);return e?function e(t,r){void 0===r&&(r={});let s=t[1];for(let t of Object.values(s)){let s=t[0],n=Array.isArray(s),i=n?s[1]:s;!i||i.startsWith("__PAGE__")||(n&&(r[s[0]]=s[1]),r=e(t,r))}return r}(e.tree):null}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,s.useContext)(n.LayoutRouterContext);return function e(t,r,s,n){let i;if(void 0===s&&(s=!0),void 0===n&&(n=[]),s)i=t[1][r];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return n;let o=i[0],c=(0,l.getSegmentValue)(o);return!c||c.startsWith("__PAGE__")?n:(n.push(c),e(i,r,!1,n))}(t,e)}function v(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78147:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return s},isNotFoundError:function(){return n}});let r="NEXT_NOT_FOUND";function s(){let e=Error(r);throw e.digest=r,e}function n(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48781:function(e,t,r){"use strict";var s,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return s},getRedirectError:function(){return l},redirect:function(){return o},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return u}});let i=r(34505),a="NEXT_REDIRECT";function l(e,t){let r=Error(a);r.digest=a+";"+t+";"+e;let s=i.requestAsyncStorage.getStore();return s&&(r.mutableCookies=s.mutableCookies),r}function o(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,s]=e.digest.split(";",3);return t===a&&("replace"===r||"push"===r)&&"string"==typeof s}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function u(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(n=s||(s={})).push="push",n.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let s=r(28530),n=(0,s.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72526:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43014:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let s=r(61757),n=s._(r(67294)),i=n.default.createContext(null);function a(e){let t=(0,n.useContext)(i);t&&t(e)}},86960:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return E},default:function(){return F}});var s=r(85893),n=r(11163),i=r.n(n),a=r(67294);r(46012);var l=r(41664),o=r.n(l),c=r(99034),d=r(90247),u=r(39332),h=r(29552),p=r(99603),x=r(59417),g=r(22632),m=r(11719),f=r(7745),y=r(61839),v=r(88754),b=e=>{let t=e.auction_no,r=e.auction_type,n=e.auction_name;e.no_of_bids;let a=e.minimum_price,l=e.estimated_price,c=e.eshop_price,d=null==e?void 0:e.discount_price,u=e.user_login_status,h=parseInt(e.code.toString().substring(0,2)),g=e.bid,m=e.date_time,f=(0,y.Z)(m,"dd MMM yyyy "),b=e.views,j=e.isLive,w=e.status,_="Out of Stock";w>0&&(_="In Stock");let N="";switch(h){case 20:1==j?(n="P-Auction Live",r="live-p-auction",N="Current Bid"):(n="P-Auction",r="p-auction-archive",N="Hammered Price");break;case 10:1==j?(n="e-Auction Live",r="live-e-auction",N="Current Bid"):(n="e-Auction",r="e-auction-archive",N="Hammered Price");break;case 30:r="e-shop"}let S="";return u||(S="/login?re_url=".concat(i().asPath)),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex flex-col border border-gray-200 rounded w-full",children:["e-shop"!==r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-2 xxxs:grid-flow-row",children:[(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 text-xs",children:[n," #"," ",(0,s.jsxs)("span",{className:"font-semibold lining-nums ",children:[" ",t]})," "]}),(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-right",children:["Date :"," ",(0,s.jsxs)("span",{className:"font-semibold lining-nums",children:[" ",f]})," "]})]}),(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs"}),(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-right",children:[(0,s.jsx)(p.G,{icon:x.Mdf,className:"h-3 w-3 pr-1",size:"sm"}),"Views"," ",(0,s.jsxs)("span",{className:"font-semibold lining-nums",children:[b," "]})," "]})]})]}),(0,s.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-2 xxxs:grid-flow-row",children:[(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Start Price"}),(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-right font-semibold lining-nums",children:[(0,s.jsx)(p.G,{icon:x.sph,className:"h-3 w-3 ",size:"sm"}),(0,v.b)(a)]})]}),(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Estimated Price"}),(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-right font-semibold lining-nums",children:[(0,s.jsx)(p.G,{icon:x.sph,className:"h-3 w-3 ",size:"sm"}),(0,s.jsx)("span",{className:"text-xs",children:(0,v.b)(l)})]})]})]}),(0,s.jsxs)("div",{className:"overflow-hidden",children:[u&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"md:inline-flex xxxs:inline-block w-full ",children:(0,s.jsx)("div",{className:"px-2 md:py-2 xxxs:pt-2 gap-2 w-full text-center",children:(0,s.jsxs)("span",{children:[N," ",(0,s.jsx)("span",{children:(0,s.jsx)(p.G,{icon:x.sph,className:"h-3 w-3",size:"sm"})}),(0,s.jsx)("span",{className:"lining-nums",children:(0,v.b)(g)})," "]})})})}),!u&&(0,s.jsx)("div",{className:"text-center",children:(0,s.jsxs)("div",{className:"px-2 py-2 text-xs gap-2",children:[(0,s.jsx)("span",{className:"pr-2",children:(0,s.jsx)(o(),{href:S,className:"hover:text-red-900",children:"live-e-auction"===r||"live-p-auction"===r?"login to bid":"login to view"})}),(0,s.jsx)(p.G,{icon:x.JHj,className:"h-3 w-3 font-semibold",size:"sm"})]})})]})]}),"e-shop"===r&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"overflow-hidden grid lg:grid-cols-2 xxxs:grid-flow-row",children:[(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Price"}),c>0&&d>0&&(0,s.jsxs)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-right font-semibold lining-nums flex flex-col",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)(p.G,{icon:x.sph,className:"h-3 w-3 ",size:"sm"}),(0,v.b)(d)]})," ",c>0&&(0,s.jsxs)("div",{className:"font-light",children:[(0,s.jsxs)("span",{className:"lining-nums line-through text-gray-500",children:[(0,s.jsx)(p.G,{icon:x.sph,className:"h-3 w-3 ",size:"sm"}),(0,v.b)(c)]}),(0,s.jsx)(s.Fragment,{children:(0,v.b)((0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:"",children:["(",Math.abs((c-d)/c*100).toFixed(2),"% Off)"]})}))})]})," "]}),c>0&&d<=0&&(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-right font-semibold lining-nums flex flex-col",children:(0,s.jsxs)("span",{children:[(0,s.jsx)(p.G,{icon:x.sph,className:"h-3 w-3 ",size:"sm"}),(0,v.b)(c)]})})]}),(0,s.jsxs)("div",{className:"inline-flex border-b",children:[(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 text-xs",children:"Status"}),(0,s.jsx)("div",{className:"w-1/2 px-2 py-2 border-r text-xs text-right font-semibold lining-nums",children:(0,s.jsx)("span",{className:"text-xs",children:_})})]})]})})]})})},j=r(94543),w=r(48583),_=r(88446),N=r(46066);r(84640),r(19678);var S=r(8916),k=r(4511);let P=e=>{let{direction:t,onClick:r}=e;return(0,s.jsx)("button",{onClick:r,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"})})})};var A=e=>{let{relatedCategoryProducts:t}=e,r=(0,w.Dv)(j.ZP),i=(0,n.useRouter)(),l=Array.isArray(t)?t:[],c={dots:!1,infinite:!1,speed:500,slidesToShow:4,slidesToScroll:1,prevArrow:(0,s.jsx)(P,{direction:"prev",onClick:!0}),nextArrow:(0,s.jsx)(P,{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)(k.SV,{fallback:(0,s.jsx)("p",{children:"Something went wrong. Please refresh the page."}),children:(0,s.jsxs)(a.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"}),(0,s.jsxs)("div",{className:"flex gap-x-2",children:[(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)"})})]})]}),l.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",children:(0,s.jsx)("section",{children:(0,s.jsx)("div",{className:"w-full relative mx-auto",children:(0,s.jsx)(N.Z,{...c,className:"slick-slider w-full",children:l.map((e,t)=>{let n=e.code.toString().slice(0,4),a=e.title,l=parseInt(e.code.toString().substring(2,4)),c=(0,g.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],title:e.title,auction:l>0?l:0,code:e.code,auctiontype:function(e){switch(e.table_name){case"product_1":return"e-auction-archive";case"product_1_live":return"live-e-auction";case"product_2":return"p-auction-archive";case"product_2_live":return"live-p-auction";case"product_3":return"e-shop";default:return"unknown"}}(e),type:1,isLive:0});return(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:c,className:"hover:text-red-600 transition-colors duration-200",children:(0,s.jsxs)("span",{className:"font-semibold text-sm text-gray-700",children:["SKU # ",e.code]})})})}),(0,s.jsx)("div",{className:"flex-grow flex items-center justify-center p-4 bg-gray-50",children:(0,s.jsx)(o(),{href:c,className:"block w-full h-full",children:(0,s.jsx)("img",{src:"".concat(h.Z.CDN_URL_PUBLIC,"/uploads/m/").concat(n,"/").concat(e.code,"12.jpg"),className:"object-contain w-full h-36",alt:a})})}),(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,S.Z)(a)})}),(0,s.jsx)("div",{className:"bg-gray-50 rounded-md p-3 mb-4",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:"product_3"===e.table_name?"Price":["product_1_live","product_2_live"].includes(e.table_name)?0==e.bid?"Minimum Price":"Current Bid":["product_1","product_2"].includes(e.table_name)?r.isLoggedIn?0!==e.bid?"Hammered for":"Minimum Price":(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:"",children:[(0,s.jsx)(o(),{href:"/login?re_url=".concat(i.asPath),className:"hover:text-red-900 px-2",children:"Login to view"}),(0,s.jsx)(p.G,{icon:x.JHj,className:"h-3 w-3 font-semibold",size:"sm"}),(0,s.jsx)("span",{className:"pl-2",children:"Hammer Price"})]})}):null}),(0,s.jsxs)("span",{className:"font-bold text-gray-800 text-sm",children:[["product_1","product_2"].includes(e.table_name)&&!r.isLoggedIn?"":"â¹",(0,v.b)("product_3"===e.table_name?(null==e?void 0:e.discount_price)>0?null==e?void 0:e.discount_price:null==e?void 0:e.eshop_price:["product_1","product_2"].includes(e.table_name)?r.isLoggedIn?e.bi
1d<=0?e.minimum_price:e.bid:null:["product_1_live","product_2_live"].includes(e.table_name)?e.bid<=0?e.minimum_price:e.bid:null)]})]})}),(0,s.jsx)(o(),{href:c,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)})})})})})})})]})})},C=r(74293),L=r(79965),E=!0,F=e=>{let{searchCountByType:t,searchDetailByProduct:r,searchDetailByProductCount:i}=e,[l,y]=(0,a.useState)([]),[v,N]=(0,a.useState)([]),[S,k]=(0,a.useState)([]),P=(0,n.useRouter)(),E=(0,u.usePathname)(),F=(0,w.Dv)(j.ZP),I=!1,O=!1,[Z,D]=(0,a.useState)([]),T=[];"object"==typeof t&&Object.keys(t).length>0&&("number"==typeof t.PrintedAuction_live&&t.PrintedAuction_live>0&&(I=!0),"number"==typeof t.eAuction_live&&t.eAuction_live>0&&(O=!0),I&&T.push({label:"Live Printed Auction",type:"p_auction_live",count:t.PrintedAuction_live}),O&&T.push({label:"Live e-Auction",type:"e_auction_live",count:t.eAuction_live}),T.push({label:"e Store",type:"e_store",count:t.eStore}),T.push({label:"Printed Auction",type:"p_auction",count:t.PrintedAuction}),T.push({label:"e Auction",type:"e_auction",count:t.eAuction}),T.push({label:"All",type:"all",count:t.All})),(0,a.useEffect)(()=>{let e=async()=>{let e=await (0,L.Z)({user_login_status:F.isLoggedIn,auction_type:G});D(e)};e()},[r,F]),(0,a.useEffect)(()=>{y(T)},[t]),(0,a.useEffect)(()=>{N(r)},[r]),(0,a.useEffect)(()=>{B()},[r]),(0,a.useEffect)(()=>{B()},[]);let M={},R=!1;"string"==typeof P.query.q&&P.query.q.length>0&&(M={q:P.query.q});let q="",G="",H="";if("string"==typeof P.query.search_type&&P.query.search_type.length>0)switch(R=!0,P.query.search_type){case"p_auction_live":q="live-p-auction",G="live-printed-auction",H="P-Auction Live";break;case"e_auction_live":q="live-e-auction",G="live-e-auction",H="e-Auction Live";break;case"p_auction":q="p-auction-archive",G="printed-auction",H="P-Auction";break;case"e_auction":q="e-auction-archive",G="e-auction",H="e-Auction";break;case"e_store":q="e-shop",G="e-shop",H="";break;case"all":H="all",q="all"}let z=10;"string"==typeof P.query.perpage&&P.query.perpage.length>0&&(z=parseInt(P.query.perpage));let U=1;"string"==typeof P.query.pn&&P.query.pn.length>0&&(U=parseInt(P.query.pn));let B=()=>{try{V()}catch(e){console.error(e)}},V=()=>new Promise(async(e,t)=>{try{let t=document.getElementById("script-ckeditor");if(t){e(!0);return}let r=document.createElement("script");r.id="script-ckeditor",r.src="".concat(h.Z.FRONTEND_URL,"/assets/script/ckeditor5/ckeditor.js"),r.async=!0,document.body.appendChild(r),r.onload=()=>{e(!0)}}catch(e){console.error(e),t(!0)}}),W=async(e,t)=>{let{q:r,search_type:s,pn:n,perPage:i}=e,a=await t.map(e=>e.code);try{let e=await _.Z.post("/product-recommend/get-related-products?q=".concat(null!=r?r:"","&search_type=").concat(s,"&pn=").concat(null!=n?n:1,"&perPage=").concat(null!=i?i:10),{code:a});k(e.data.data)}catch(e){console.error("Error:",e)}};(0,a.useEffect)(()=>{let e={...P.query},{q:t,search_type:s,pn:n,perPage:i}=e;s&&W(e,r)},[P.query,r]);let K=e=>{if(e.length>390){let t=e.substring(0,390),r=t.lastIndexOf(" "),s=t.substring(0,r);return s}return e},X=(e,t)=>{let r="";return e.length>390&&(r="<a href='".concat(t,"'><span class='text-red-800 font-semibold font-serif text-xs'>...Read more</span></a>")),r},J=(e,t,r,n,i,a)=>{let l=parseInt(e.toString().substring(2,4)),c=parseInt(e.toString().substring(0,2)),d="";switch(c){case 20:1==i?(r="P-Auction Live",n="live-printed-auction"):(r="P-Auction",n="printed-auction"),d="View Lot";break;case 10:1==i?(r="e-Auction Live",n="live-e-auction"):(r="e-Auction",n="e-auction"),d="View Lot";break;case 30:d="SKU",n=""}return(0,s.jsxs)(s.Fragment,{children:[("live-p-auction"===q||"live-e-auction"===q||"e-shop"===q)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"pt-1 pb-1",children:(0,s.jsx)(C.Z,{code:e,loginStatus:F.isLoggedIn,type:"e-shop"===q?1:2,wishlist_code:Z,auction_type:q,view_type:void 0,pageType:"e-shop"===q?"eshopDetail":"printedAuction"})})}),""!==n&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o(),{href:"/".concat(n,"s/auctionno/").concat(l),children:(0,s.jsxs)("button",{className:"px-2 w-full py-1 flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded ",children:[(0,s.jsx)("span",{children:(0,s.jsx)(p.G,{icon:x.nNP,className:"h-4 w-4",size:"lg"})}),(0,s.jsxs)("span",{children:[r," #"," ",(0,s.jsx)("span",{className:"lining-nums",children:l})]})]})})}),(0,s.jsx)(o(),{href:a,children:(0,s.jsx)("div",{className:"pt-1",children:(0,s.jsxs)("button",{className:"px-2 w-full py-1 flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded ",children:[(0,s.jsx)("span",{children:(0,s.jsx)(p.G,{icon:x.nNP,className:"h-4 w-4",size:"lg"})}),(0,s.jsxs)("span",{children:[d," # ",(0,s.jsx)("span",{className:"lining-nums",children:t})]})]})})})]})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("section",{className:"md:mx-8 px-3 lg:mx-28 lg:px-0 md:p-0",children:(0,s.jsxs)("div",{className:"container mx-auto",children:[!R&&(0,s.jsx)("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 sm:gap-6 pt-2",children:(0,s.jsx)(s.Fragment,{children:null==l?void 0:l.map(e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md transition",children:(0,s.jsxs)("div",{className:"py-4 md:px-3",children:[(0,s.jsx)("div",{className:"flex justify-between items-center",children:(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsxs)("div",{className:"ms-3",children:[(0,s.jsx)("h3",{className:"group-hover:text-red-800 font-semibold text-gray-800 ",children:e.label}),(0,s.jsxs)("h3",{className:"group-hover:text-red-800 text-gray-800 ",children:["(Total Records #"," ",(0,s.jsx)("span",{className:"lining-nums",children:e.count}),")"]})]})})}),(0,s.jsx)("div",{className:"pt-3 xxxs:px-2",children:(0,s.jsx)(o(),{href:{pathname:"/search",query:{...M,search_type:"".concat(e.type)}},children:(0,s.jsx)("button",{className:"px-2 md:w-full py-1 flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded",children:"View All"})})})]})})}))})}),R&&(0,s.jsxs)(s.Fragment,{children:[(()=>{let e=e=>{let t=e.target.value,r=(0,c.Z)({query:P.query,type:""}),s={...r,sortby:t,pn:1};P.push({pathname:"/search",query:s})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"grid md:grid-cols-4 xxxs:grid-cols-1 gap-2 py-2",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("p",{className:"font-semibold",children:"Sort By price"}),(0,s.jsxs)("select",{onChange:e,className:"p-1 h-7 text-gray-600 border-gray-200 border-2 rounded-md outline-none focus:border-gray-100 w-full truncate",children:[(0,s.jsxs)("option",{value:"",className:" hidden",children:["Order By"," "]}),[{label:"Start Price: Low to High",value:"l-h"},{label:"Start Price: High to Low",value:"h-l"}].map(e=>(0,s.jsx)("option",{value:e.value,className:"break-all",children:e.label},e.value))]})]}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("p",{className:"font-semibold",children:"Sort By date"}),(0,s.jsxs)("select",{onChange:e,className:"p-1 h-7 text-gray-600 border-gray-200 border-2 rounded-md outline-none focus:border-gray-100 w-full truncate",children:[(0,s.jsxs)("option",{value:"",className:" hidden",children:["Order By"," "]}),[{label:"Oldest to Newest",value:"dl-h"},{label:"Newest to Oldest",value:"dh-l"}].map(e=>(0,s.jsx)("option",{value:e.value,className:"break-all p-3",children:e.label},e.value))]})]}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)("p",{className:"font-semibold",children:"Per Page"}),(0,s.jsxs)("select",{className:"p-1 text-gray-600 w-full border-gray-200 border-2 rounded-md outline-none focus:border-gray-100",onChange:e=>{let t=e.target.value,r=(0,c.Z)({query:P.query,type:""}),s={...r,pn:1,perpage:t};P.push({pathname:"/search",query:s})},children:[(0,s.jsxs)("option",{value:"",className:"selected hidden",children:["Page No"," "]}),(0,s.jsx)("option",{value:"10",children:"10"}),(0,s.jsx)("option",{value:"20",children:"20"}),(0,s.jsx)("option",{value:"25",children:"25"}),(0,s.jsx)("option",{value:"30",children:"30"}),(0,s.jsx)("option",{value:"40",children:"40"}),(0,s.jsx)("option",{value:"50",children:"50"}),(0,s.jsx)("option",{value:"100",children:"100"})]})]}),(0,s.jsx)("div",{className:"md:pt-6",children:(0,s.jsx)("button",{onClick:()=>{let e=P.query;for(let t in e)null==e||delete e.pn,null==e||delete e.sortby,null==e||delete e.perpage;return P.push({pathname:"/search",query:e})},className:"px-2 py-0 bg-gray-200 border-2 border-gray-300 hover:bg-gray-100 active:bg-gray-100 focus:boder-gray-200 rounded",children:"Clear All"})})]})})})(),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"lg:flex lg:flex-row lg:justify-between md:flex md:flex-row md:justify-between xs:flex xs:flex-row xs:justify-between pt-2 ",children:[(0,s.jsxs)("div",{className:"font-semibold py-2",children:["Total Records #"," ",(0,s.jsx)("span",{className:"lining-nums",children:i})]}),(0,s.jsx)("div",{children:(0,s.jsx)(d.Z,{total_count:i,per_page:z,page:U,auction_no:0,current_path:E,type:""})})]}),(0,s.jsx)("div",{className:"md:flex-row xxxs:flex-col",children:null==v?void 0:v.map(e=>{var t,r;let n=e.code.toString().slice(-4),i=n.toString(),a=parseInt(parseInt(i,10).toString()),l=e.code.toString().slice(0,4),c=parseInt(e.code.toString().substring(2,4)),d="";K(e.description),d=(0,g.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],title:e.title,auction:c,code:e.code,auctiontype:q,type:1,isLive:e.productPriorityLive}),X(e.description,d);let u=(0,m.Z)({category:[e.category1Details,e.category2Details,e.category3Details,e.category4Details,e.category5Details],type:"search"});return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"md:flex-row flex border-2 mt-1 rounded xxxs:flex-col",children:[(null==e?void 0:e.status)!==9&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"lg:w-1/4 p-1 xxxs:border-0",children:[(0,s.jsx)("div",{className:"flex flex-col items-center justify-around xxxs:flex-row md:max-w-xl",children:(0,s.jsxs)(o(),{href:d,className:"children:my-2 flex xl:flex-row lg:flex-col md:flex-col xxs:flex-row xxxs:flex-row ",children:[(0,s.jsx)("img",{src:"".concat(h.Z.CDN_URL_PUBLIC,"/uploads/m/").concat(l,"/").concat(e.code,"12.jpg"),className:"object-contain ".concat((null===(t=e.imagesArr)||void 0===t?void 0:t.length)>1?"w-full xl:h-32 xl:w-1/2 lg:h-32 lg:w-full md:h-36 md:w-full xxxs:h-36 xxxs:w-1/2":"w-full xl:h-32 xl:w-full lg:h-32 lg:w-full md:h-36 md:w-full xxxs:h-36 xxxs:w-full")}),(null===(r=e.imagesArr)||void 0===r?void 0:r.length)>1&&(0,s.jsx)("img",{src:"".concat(h.Z.CDN_URL_PUBLIC,"/uploads/m/").concat(l,"/").concat(e.code,"22.jpg"),className:"w-full object-contain xl:h-32 xl:w-1/2 lg:h-32 lg:w-full md:h-36 md:w-full xxxs:h-36 xxxs:w-1/2 "})]})}),(0,s.jsx)("div",{className:"text-center",children:J(e.code,a,H,G,e.productPriorityLive,d)})]}),(0,s.jsx)("div",{className:"lg:w-3/4 md:w-full xxxs:border-0",children:(0,s.jsx)("div",{className:"px-2 pt-1",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:" text-gray-500 pt-3",children:u}),(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"text-base lining-nums",children:(0,s.jsx)(f.Z,{type:"page",description:"".concat(null==e?void 0:e.description).concat("string"==typeof(null==e?void 0:e.description_note)?"<p></p>".concat(e.description_note):""),id:e.id})})}),(0,s.jsx)("div",{className:"py-1",children:(0,s.jsx)(b,{code:e.code,auction_no:c,auction_name:H,auction_type:q,no_of_bids:e.no_of_bids,bid:e.bid,minimum_price:e.minimum_price,estimated_price:e.estimated_price,eshop_price:e.eshop_price,discount_price:e.discount_price,user_login_status:F.isLoggedIn,date_time:e.end_time,isLive:e.productPriorityLive,status:e.quantity,views:e.view})})]})})})]}),9===e.status&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"lg:w-1/4 p-1 xxxs:border-0",children:[(0,s.jsx)("div",{className:"flex flex-col items-center justify-around xxxs:flex-row md:max-w-xl",children:(0,s.jsx)(o(),{href:d,className:"children:my-2",children:(0,s.jsx)("img",{src:"".concat(h.Z.CDN_URL_PUBLIC,"/uploads/s/withdrwan.jpg"),className:"w-full object-contain lg:h-36 lg:w-full md:h-36 md:w-64 xxxs:h-36 "})})}),(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(o(),{href:d,children:(0,s.jsx)("div",{className:"pt-1",children:(0,s.jsxs)("button",{className:"px-2 w-full py-1 flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded ",children:[(0,s.jsx)("span",{children:(0,s.jsx)(p.G,{icon:x.nNP,className:"h-4 w-4",size:"lg"})}),(0,s.jsxs)("span",{children:["View Lot #"," ",(0,s.jsx)("span",{className:"lining-nums",children:a})]})]})})})})]}),(0,s.jsx)("div",{className:"lg:w-3/4 md:w-full xxxs:border-0",children:(0,s.jsx)("div",{className:"flex items-center font-semibold justify-center withdrawn md:mt-20 mb-20",children:(0,s.jsx)(o(),{href:d,className:"hover:text-red-800",children:"Withdrawn Lot"})})})]})]},e.id)})})}),(0,s.jsx)("div",{className:" flex justify-end items-end mt-3",children:(0,s.jsx)(d.Z,{total_count:i,per_page:z,page:U,auction_no:0,current_path:E,type:""})})]}),S.length>0&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("section",{className:"mt-2",children:(0,s.jsx)("div",{className:"container mx-auto",children:(0,s.jsx)(A,{relatedCategoryProducts:S})})})})]})]})})})}},11719:function(e,t,r){"use strict";var s=r(85893),n=r(59417),i=r(99603),a=r(41664),l=r.n(a);r(67294);let o=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 r="";switch(e.type){case"p-auction-archive":r="printed-auction";break;case"e-auction-archive":r="e-auction";break;case"live-p-auction":r="live-printed-auction";break;case"live-e-auction":r="live-e-auction";break;case"e-shop":r="e-shop";break;case"search":r="/search"}for(let s of e.category)if(Array.isArray(s)&&s.length>0){let n=s[0];if("number"==typeof(null==n?void 0:n.id)&&"string"==typeof(null==n?void 0:n.category)){if("search"!=e.type){let e=o(null==n?void 0:n.cat_url);t.push({category:n.category,cat_url:"/".concat(r,"/").concat(e,"/").concat(null==n?void 0:n.id)})}if("search"===e.type){let e=n.category;t.push({category:n.category,cat_url:e})}}}}catch(e){}return(0,s.jsx)(s.Fragment,{children:null==t?void 0:t.map((r,a)=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{children:["search"!==e.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l(),{href:r.cat_url,className:"hover:text-red-900 ",children:r.category})}),"search"===e.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l(),{href:{pathname:"/search",query:{q:"".concat(r.cat_url)}},className:"hover:text-red-900 ",children:r.category})}),(0,s.jsx)("span",{children:a+1===t.length?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(i.G,{icon:n.yOZ,size:"lg",className:"h-4 w-4 mt-auto"})})},a)]},a)}))})}},7745:function(e,t,r){"use strict";var s=r(85893),n=r(67294),i=r(95457),a=r(29552);t.Z=e=>
1{let t=e.type,r=e.description,l=e.id,[o,c]=(0,n.useState)(null),[d,u]=(0,n.useState)(""),h=(0,n.useRef)(!1);(0,n.useEffect)(()=>(!1===h.current&&p(),()=>{h.current=!0}),[]),(0,n.useEffect)(()=>{o&&r&&(null==o||o.setData(r))},[o,r]),(0,n.useEffect)(()=>{if(o){let e=0,t=setInterval(()=>{let s=o.getData();""!==s&&clearInterval(t),r&&(null==o||o.setData(r)),e+=1},2e3);return()=>{console.log("Clean up interval on unmount"),clearInterval(t)}}},[o,r]);let p=async()=>{let e=e=>new Promise(t=>{setTimeout(()=>{t(!0)},e)});try{if(await new Promise(async(t,r)=>{try{await e(20);let r=document.getElementById("script-ckeditor");if(r){t(!0);return}let s=document.createElement("script");s.id="script-ckeditor",s.src="".concat(a.Z.FRONTEND_URL,"/assets/script/ckeditor5/ckeditor.js"),s.async=!0,document.body.appendChild(s),s.onload=()=>{t(!0)}}catch(e){console.error(e),r(!0)}}),await e(250),!(null==window?void 0:window.CKSource))return;let t=document.querySelector("#ckeditor-desc-".concat(l)),r=await window.CKSource.Editor.create(t,i.Z),s=Symbol("feature-read-only");r.enableReadOnlyMode(s);let n=r.ui.view.toolbar.element;n.style.display="none",r.ui.view.editable.element.style.border="none",r.ui.view.editable.element.style.background="none",c(r)}catch(e){console.error(e)}};return(0,s.jsxs)(s.Fragment,{children:["page"!==t&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"p-2 pt-4 border",children:[(0,s.jsx)("span",{className:" text-gray-500",children:"Full Description :"}),(0,s.jsx)("div",{className:" max-h-48 overflow-auto",children:(0,s.jsx)("div",{id:"ckeditor-desc-".concat(l)})})]})}),"page"===t&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{id:"ckeditor-desc-".concat(l)})})]})}},90247:function(e,t,r){"use strict";var s=r(85893),n=r(59417),i=r(99603),a=r(11163),l=r.n(a),o=r(67294),c=r(91132),d=r(99034);t.Z=e=>{let[t,r]=(0,o.useState)(1),a=e.current_path,u=e.total_count,h=e.per_page,p=e.auction_no,x=e.page,g=e.type,m=Math.ceil(u/h),f=[],y=x-2<1?1:x-2,v=x+2<=m?x+2:m;f.push({pageNo:1});for(let e=y;e<=v;e++)e>1&&e<m&&f.push({pageNo:e});let b=e=>{let t=(0,c.Z)({current_path:a,auction_no:p,type:g});if(e>0){r(e);let s=(0,d.Z)({query:l().query,type:g}),n={...s,pn:e};l().push({pathname:t,query:n})}};return(0,s.jsx)(s.Fragment,{children:m>1&&(0,s.jsx)("div",{className:"flex xxxs:pb-5",children:(0,s.jsx)("nav",{children:(0,s.jsxs)("ul",{className:"flex -space-x-px h-4 text-sm lining-nums",children:[x>1&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("li",{onClick:()=>{b(x-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,s.jsx)(i.G,{icon:n.EyR,className:"w-2.5 h-2.5"})})}),f.map((e,t)=>(0,s.jsx)(s.Fragment,{children:e.pageNo<=m&&(0,s.jsx)("li",{onClick:()=>b(e.pageNo),value:e.pageNo,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(e.pageNo===x?"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,s.jsx)("li",{onClick:e=>b(e.target.value),value:m,className:"flex items-center justify-center px-3 h-7 leading-tight cursor-pointer border-gray-300 border ".concat(x==m?"bg-gray-100 hover:text-gray-700 ":" text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 "),children:m}),x<m&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("li",{onClick:()=>{b(x+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,s.jsx)(i.G,{icon:n.yOZ,className:"w-2.5 h-2.5"})})})]})})})})}},22632:function(e,t){"use strict";let r=e=>{var t,r,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===(r=null===(s=null==i?void 0:i.replace(/[^a-zA-Z0-9-]/g,""))||void 0===s?void 0:s.replace(/-{2,}/g,"-"))||void 0===r?void 0:r.replace(/^-+|-+$/g,"")};t.Z=e=>{try{var t,s,n;let i="",a="",l=e.code,o=e.isLive,c=null==l?void 0:l.toString().slice(-4),d=null==c?void 0:c.toString(),u=parseInt(null===(t=parseInt(d,10))||void 0===t?void 0:t.toString()),h=parseInt(null==l?void 0:l.toString().substring(0,2)),p=e.auctiontype;if("all"===p)switch(h){case 10:p=1==o?"live-e-auction":"e-auction-archive";break;case 20:p=1==o?"live-p-auction":"p-auction-archive";break;case 30:p="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=r(null==e?void 0:e.cat_url);a+="".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=r(null==e?void 0:e.cat_url);a+="".concat(t,"/")}}}let x=r(e.title),g=a.substring(0,(null==a?void 0:a.length)-1);switch(p){case"p-auction-archive":i="/printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(g,"/").concat(x);break;case"e-auction-archive":i="/e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(g,"/").concat(x);break;case"live-p-auction":i="/live-printed-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(g,"/").concat(x);break;case"live-e-auction":i="/live-e-auction/auction-no-".concat(e.auction,"/lot-no-").concat(u,"/").concat(g,"/").concat(x);break;case"e-shop":i="/e-shop/pid-no-".concat(u,"/").concat(g,"/").concat(x)}return i}catch(e){console.error(e)}return""}},74293:function(e,t,r){"use strict";var s=r(85893),n=r(67294),i=r(93729),a=r(88446),l=r(99603),o=r(59417),c=r(11163);t.Z=e=>{let t=e.code,r=e.type,d=e.loginStatus,u=e.wishlist_code,h=e.auction_type,p=e.view_type,x=t.toString().slice(-4),g=x.toString(),m=parseInt(parseInt(g,10).toString()),f=null==e?void 0:e.pageType,[y,v]=(0,n.use
1State)(!1),[b,j]=(0,n.useState)([]),w=(0,c.useRouter)(),[_,N]=(0,n.useState)("");(0,n.useEffect)(()=>{N(window.location.href)},[w]),(0,n.useEffect)(()=>{if(d&&2===r){P();return}},[d,t]),(0,n.useEffect)(()=>{Array.isArray(u)&&j(u)},[u]);let S="",k="";switch(h){case"p-auction-archive":case"e-auction-archive":S="";break;case"live-p-auction":S="/pauction-live-wishlist/get-product-2-live-wish-list",k="/pauction-live-wishlist/insert-product-2-live-wish-list";break;case"live-e-auction":S="/eauction-live-wishlist/get-product-1-live-wish-list",k="/eauction-live-wishlist/insert-product-1-live-wish-list";break;case"e-shop":S="/estore-wishlist/get-product-3-wish-list",k="/estore-wishlist/insert-product-3-wish-list"}let P=async()=>{let e=[];2===r&&e.push({basicSearchKey:"code",basicSearchValue:t,basicSearchType:"number"});try{let t=await a.Z.post("".concat(S),{page:1,limit:1,sortDetails:{sortKey:"id",sortType:-1},searchDetails:e,page_enabled:"n"});if(200===t.status&&2===r){var s;let e=null===(s=t.data)||void 0===s?void 0:s.count;v(!1),e>0&&v(!0)}}catch(e){console.error(e)}},A=async e=>{var r,s,n,l;try{let n=await a.Z.post("".concat(k),{code:t},{headers:{frontendurl:_||""}});if(200===n.status){let a=!1;if((null===(r=n.data)||void 0===r?void 0:r.code)>0&&2===e&&(a=!0,v(a)),1===e&&(null===(s=n.data)||void 0===s?void 0:s.code)>0){let e=n.data.code;e>0&&j([...b,e])}"e-shop"===h?(0,i.Z)({msg:"SKU # ".concat(t," is successfully added to your wishlist"),type:"success"}):(0,i.Z)({msg:"Lot # ".concat(m," is successfully added to your wishlist"),type:"success"})}}catch(e){console.error(e),(0,a.I)(e)&&"object"==typeof(null==e?void 0:null===(n=e.response)||void 0===n?void 0:n.data)&&(null==e?void 0:null===(l=e.response)||void 0===l?void 0:l.status)===400&&("e-shop"===h?(0,i.Z)({msg:"SKU # ".concat(t," already exists in your wishlist"),type:"error"}):(0,i.Z)({msg:"Lot # ".concat(m," already exists in your wishlist"),type:"error"}))}},C=()=>{let e=!1;return null==b||b.map(r=>{r===t&&(e=!0)}),e};return(0,s.jsxs)(s.Fragment,{children:[2===r&&"e-shop"!==h&&"printedAuction"===f&&(0,s.jsx)(s.Fragment,{children:y?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{className:"px-2 mt-2 py-1 inline-flex justify-center gap-2 border-2 focus:border-gray-200 border-gray-100 rounded font-normal ",children:(0,s.jsxs)("span",{className:"xxxs:font-thin md:font-normal",children:[(0,s.jsx)(l.G,{icon:o.m6i,type:"far",size:"lg",className:"h-4 w-4 cursor-pointer mx-1 text-red-500","data-tooltip-id":"wish-tooltip"}),"Already In Wishlist"]})})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{onClick:()=>A(2),className:"px-2 mt-2 py-1 inline-flex justify-center gap-2 border-2 focus:border-gray-200 border-gray-100 rounded font-normal ",children:(0,s.jsxs)("span",{className:"font-normal gap-x-24",children:[(0,s.jsx)(l.G,{icon:o.m6i,type:"far",size:"lg",className:"h-4 w-4 cursor-pointer mx-1","data-tooltip-id":"wish-tooltip"}),"Add to Wishlist"]})})})}
1),"e-shop"===h&&1===r&&"eshopDetail"===f&&(0,s.jsx)(s.Fragment,{children:C()?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{className:"px-2 mt-2 font-normal py-1 inline-flex justify-center gap-2 border-2 focus:border-gray-200 border-gray-100 rounded ",children:(0,s.jsxs)("span",{children:[(0,s.jsx)(l.G,{icon:o.m6i,type:"far",size:"lg",className:"h-4 w-4 cursor-pointer mx-1 text-red-500","data-tooltip-id":"wish-tooltip"}),"Already In Wishlist"]})})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{onClick:()=>A(1),className:"px-2 mt-2 py-1 inline-flex justify-center gap-2 border-2 focus:border-gray-200 border-gray-100 rounded font-normal ",children:(0,s.jsxs)("span",{children:[(0,s.jsx)(l.G,{icon:o.m6i,type:"far",size:"lg",className:"h-4 w-4 cursor-pointer mx-1","data-tooltip-id":"wish-tooltip"}),"Add to Wishlist"]})})})}),2===r&&"eshopDetail"!==f&&"printedAuction"!==f&&(0,s.jsx)(s.Fragment,{children:y?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{className:"bg-gray-300 hover:bg-gray-400 focus:border-gray-200 border-gray-100 text-gray-800 font-bold py-1 px-2 rounded-r",children:(0,s.jsx)(l.G,{icon:o.m6i,size:"lg",className:"h-4 w-4 text-red-500"})})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{onClick:()=>A(2),className:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-1 px-2 rounded-r",children:(0,s.jsx)(l.G,{icon:o.m6i,size:"lg",className:"h-4 w-4 text-white"})})})}),1===r&&"e-shop"!==h&&"printedAuction"!==f&&(0,s.jsx)(s.Fragment,{children:C()?(0,s.jsx)("button",{className:"px-2 w-full py-1 flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded ",children:(0,s.jsx)("span",{children:(0,s.jsx)(l.G,{icon:o.m6i,className:"text-red-500"})})}):(0,s.jsx)("button",{onClick:()=>A(1),className:"px-2 w-full py-1 flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded ",children:(0,s.jsx)("span",{children:(0,s.jsx)(l.G,{icon:o.m6i,className:""})})})}),"e-shop"===h&&1===r&&"eshopDetail"!=f&&("list"===p||void 0===p)&&(0,s.jsx)(s.Fragment,{children:C()?(0,s.jsx)("span",{children:(0,s.jsx)(l.G,{icon:o.m6i,type:"far",size:"lg",className:"h-4 w-4 cursor-pointer mx-1 text-red-500","data-tooltip-id":"wish-tooltip"})}):(0,s.jsx)("span",{children:(0,s.jsx)(l.G,{onClick:()=>A(1),icon:o.m6i,type:"far",size:"lg",className:"h-4 w-4 cursor-pointer mx-1","data-tooltip-id":"wish-tooltip"})})}),"e-shop"===h&&1===r&&"grid"===p&&"eshopDetail"!=f&&(0,s.jsx)(s.Fragment,{children:C()?(0,s.jsx)("button",{className:"px-2 mt-2 my-2 py-1 inline-flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded",children:(0,s.jsx)("span",{children:(0,s.jsx)(l.G,{icon:o.m6i,className:" h-3 w-3 text-red-500"})})}):(0,s.jsx)("button",{onClick:()=>A(1),className:"px-2 mt-2 my-2 py-1 inline-flex justify-center gap-2 bg-gray-200 hover:bg-gray-100 border-2 focus:border-gray-200 border-gray-100 rounded",children:(0,s.jsx)("span",{children:(0,s.jsx)(l.G,{icon:o.m6i,className:" h-3 w-3"})})})})]})}},85231:function(e,t,r){"use strict";var s=r(6154),n=r(29552);s.default.create({baseURL:"".concat(n.Z.BACKEND_URL_SERVER,"/api/main"),headers:{"Content-Type":"application/json"},withCredentials:!0})},95457:function(e,t){"use strict";t.Z={toolbar:{items:["exportPDF","exportWord","|","findAndReplace","selectAll","|","heading","|","bold","italic","strikethrough","underline","code","subscript","superscript","removeFormat","|","bulletedList","numberedList","todoList","|","outdent","indent","|","undo","redo","-","fontSize","fontFamily","fontColor","fontBackgroun
1dColor","highlight","|","alignment","|","link","insertImage","blockQuote","insertTable","mediaEmbed","codeBlock","htmlEmbed","|","specialCharacters","horizontalLine","pageBreak","|","textPartLanguage","|","sourceEditing"],shouldNotGroupWhenFull:!0},list:{properties:{styles:!0,startIndex:!0,reversed:!0}},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},title:!1,placeholder:"Write...",fontFamily:{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!0},fontSize:{options:[10,12,14,"default",18,20,22],supportAllValues:!0},htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},htmlEmbed:{showPreviews:!0},link:{decorators:{addTargetToExternalLinks:!0,defaultProtocol:"https://",toggleDownloadable:{mode:"manual",label:"Downloadable",attributes:{download:"file"}}}},mention:{feeds:[{marker:"@",feed:["@apple","@bears","@brownie","@cake","@cake","@candy","@canes","@chocolate","@cookie","@cotton","@cream","@cupcake","@danish","@donut","@drag\xe9e","@fruitcake","@gingerbread","@gummi","@ice","@jelly-o","@liquorice","@macaroon","@marzipan","@oat","@pie","@plum","@pudding","@sesame","@snaps","@souffl\xe9","@sugar","@sweet","@topping","@wafer"],minimumCharacters:1}]}}},46012:function(e,t,r){"use strict";r(85231)},88754:function(e,t,r){"use strict";r.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,r]=t.split("-");return n(e)+"-"+n(r)}return n(t)}catch(e){return console.error("Error formatting number:",e),"-"}},n=e=>{try{let t="",r=0,[s,n]=e.split(".");for(let e=s.length-1;e>=0;e--)t=s[e]+t,r++,3===r&&e>0?t=","+t:r>3&&(r-3)%2==0&&e>0&&(t=","+t);return n&&(t+="."+n),t}catch(e){return console.error("Error formatting part of the number:",e),"-"}}},61839:function(e,t,r){"use strict";var s=r(30120);t.Z=(e,t)=>{try{if(!e)return"Date does not exist";let r=new Date(e),n=r.valueOf();if("number"!=typeof n||isNaN(n))return"Invalid Date";let i={year:r.getUTCFullYear(),month:r.getUTCMonth(),date:r.getUTCDate(),hours:r.getUTCHours(),minutes:r.getUTCMinutes(),seconds:r.getUTCSeconds()},a=s.ou.fromObject({year:i.year,month:i.month+1,day:i.date,hour:i.hours,minute:i.minutes,second:i.seconds});if(t.length>0)return a.setZone("Asia/Kolkata").toFormat(t).toString();return a.setZone("Asia/Kolkata").toString()}catch(e){return console.error(e),"Invalid Date"}}},91132:function(e,t){"use strict";t.Z=e=>{let t=e.auction_no,r=e.type,s=e.current_path,n="",i="",a="",l="";switch(r){case"p-auction-archive":n="printed-auctions/auctionno/",i="printed-auction-master-categories/",a="printed-auction/",l="printed-auction-master-categories/";break;case"e-auction-archive":n="e-auctions/auctionno/",i="e-auction-master-categories/",a="e-auction/",l="e-auction-master-categories/";break;case"live-p-auction":n="live-printed-auctions/auctionno/",i="live-printed-auction-master-categories/",a="live-printed-auction/",l="live-printed-auction-master-categories/";break;case"live-e-auction":n="live-e-auctions/auctionno/",i="live-e-auction-master-categories/",a="live-e-auction/",l="live-e-auction-master-categories/"}let o="",c=s.split("/");return"auctionno"===c[c.length-2]?(c.pop(),o=c="".concat(c.join("/"),"/").concat(t.toString())):o=s.includes("auctionno")?s.replace("".concat(n),"".concat(i)):s.replace("".concat(a),"".concat(l)),o}},8916:function(e,t,r){"use strict";r(67294),t.Z=e=>(null==e?void 0:e.length)>=60?"".concat(e.substring(0,55)," ..."):e},99034:function(e,t){"use strict";t.Z=e=>{let t=e.query;for(let e in t)null==t||delete t.aid,null==t||delete t.pid;return t}},79965:function(e,t,r){"use strict";r(67294);var s=r(88446);let n=async e=>{let t=[];if(e.user_login_status){try{let n="";switch(e.auction_type){case"p-auction-archive":case"e-auction-archive":n="";break;case"live-p-auction":n="/pauction-live-wishlist/get-product-2-live-wish-list";break;case"live-e-auction":n="/eauction-live-wishlist/get-product-1-live-wish-list";break;case"e-shop":n="/estore-wishlist/get-product-3-wish-list"}let i=await s.Z.post("".concat(n),{page:1,limit:100,sortDetails:{sort
1Key:"id",sortType:1},searchDetails:[],page_enabled:"y"});if(200===i.status){var r;let e=null===(r=i.data)||void 0===r?void 0:r.data;if(Array.isArray(e)&&e.length>0)for(let r of e)t.push(r.code)}}catch(e){console.error(e)}return t}return[]};t.Z=n},39332:function(e,t,r){e.exports=r(31414)}},function(e){e.O(0,[120,4153,9774,2888,179],function(){return e(e.s=8266)}),_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.