PageSourceSearch

https://www.truck2hand.com/_next/static/chunks/pages/index-eebfaa5274f8c291.js

js truck2hand.com collected 2026-10-08 09:56:40 UTC 120,011 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405,2435,3873,9528],{21746:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(79241)}])},48780:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=a(42430),l=a(11778),i=a(52676),n=l._(a(75271)),s=r._(a(30967)),o=r._(a(81453)),c=a(52365),u=a(4719),h=a(35761);a(83042);let d=a(33841),p=r._(a(95271)),g={deviceSizes:[320,375,414,768,1024,1440],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,a,r,l,i,n){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&l(!0),null==a?void 0:a.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,l=!1;a.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>l,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{l=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function x(e){return n.use?{fetchPriority:e}:{fetchpriority:e}}let f=(0,n.forwardRef)((e,t)=>{let{src:a,srcSet:r,sizes:l,height:s,width:o,decoding:c,className:u,style:h,fetchPriority:d,placeholder:p,loading:g,unoptimized:f,fill:b,onLoadRef:y,onLoadingCompleteRef:k,setBlurComplete:N,setShowAltText:v,sizesInput:j,onLoad:w,onError:_,...I}=e;return(0,i.jsx)("img",{...I,...x(d),loading:g,width:o,height:s,decoding:c,"data-nimg":b?"fill":"1",className:u,style:h,sizes:l,srcSet:r,src:a,ref:(0,n.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(_&&(e.src=e.src),e.complete&&m(e,p,y,k,N,f,j))},[a,p,y,k,N,_,f,j,t]),onLoad:e=>{m(e.currentTarget,p,y,k,N,f,j)},onError:e=>{v(!0),"empty"!==p&&N(!0),_&&_(e)}})});function b(e){let{isAppRouter:t,imgAttributes:a}=e,r={as:"image",imageSrcSet:a.srcSet,imageSizes:a.sizes,crossOrigin:a.crossOrigin,referrerPolicy:a.referrerPolicy,...x(a.fetchPriority)};return t&&s.default.preload?(s.default.preload(a.src,r),null):(0,i.jsx)(o.default,{children:(0,i.jsx)("link",{rel:"preload",href:a.srcSet?void 0:a.src,...r},"__nimg-"+a.src+a.srcSet+a.sizes)})}let y=(0,n.forwardRef)((e,t)=>{let a=(0,n.useContext)(d.RouterContext),r=(0,n.useContext)(h.ImageConfigContext),l=(0,n.useMemo)(()=>{var e;let t=g||r||u.imageConfigDefault,a=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),l=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:a,deviceSizes:l,qualities:i}},[r]),{onLoad:s,onLoadingComplete:o}=e,m=(0,n.useRef)(s);(0,n.useEffect)(()=>{m.current=s},[s]);let x=(0,n.useRef)(o);(0,n.useEffect)(()=>{x.current=o},[o]);
1let[y,k]=(0,n.useState)(!1),[N,v]=(0,n.useState)(!1),{props:j,meta:w}=(0,c.getImgProps)(e,{defaultLoader:p.default,imgConf:l,blurComplete:y,showAltText:N});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{...j,unoptimized:w.unoptimized,placeholder:w.placeholder,fill:w.fill,onLoadRef:m,onLoadingCompleteRef:x,setBlurComplete:k,setShowAltText:v,sizesInput:e.sizes,ref:t}),w.priority?(0,i.jsx)(b,{isAppRouter:!a,imgAttributes:j}):null]})});("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)},52365:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),a(83042);let r=a(76687),l=a(4719);function i(e){return void 0!==e.default}function n(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var a,s;let o,c,u,{src:h,sizes:d,unoptimized:p=!1,priority:g=!1,loading:m,className:x,quality:f,width:b,height:y,fill:k=!1,style:N,overrideSrc:v,onLoad:j,onLoadingComplete:w,placeholder:_="empty",blurDataURL:I,fetchPriority:C,decoding:S="async",layout:T,objectFit:E,objectPosition:H,lazyBoundary:O,lazyRoot:Z,...R}=e,{imgConf:A,showAltText:P,blurComplete:B,defaultLoader:F}=t,z=A||l.imageConfigDefault;if("allSizes"in z)o=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t),r=null==(a=z.qualities)?void 0:a.sort((e,t)=>e-t);o={...z,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===F)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let L=R.loader||F;delete R.loader,delete R.srcSet;let D="__next_img_default"in L;if(D){if("custom"===o.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=L;L=t=>{let{config:a,...r}=t;return e(r)}}if(T){"fill"===T&&(k=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(N={...N,...e});let t={responsive:"100vw",fill:"100vw"}[T];t&&!d&&(d=t)}let U="",$=n(b),W=n(y);if("object"==typeof(s=h)&&(i(s)||void 0!==s.src)){let e=i(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(c=e.blurWidth,u=e.blurHeight,I=I||e.blurDataURL,U=e.src,!k){if($||W){if($&&!W){let t=$/e.width;W=Math.round(e.height*t)}else if(!$&&W){let t=W/e.height;$=Math.round(e.width*t)}}else $=e.width,W=e.height}}let M=!g&&("lazy"===m||void 0===m);(!(h="string"==typeof h?h:U)||h.startsWith("data:")||h.startsWith("blob:"))&&(p=!0,M=!1),o.unoptimized&&(p=!0),D&&h.endsWith(".svg")&&!o.dangerouslyAllowSVG&&(p=!0),g&&(C="high");let q=n(f),Y=Object.assign(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:H}:{},P?{}:{color:"transparent"},N),G=B||"empty"===_?null:"blur"===_?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:$,heightInt:W,blurWidth:c,blurHeight:u,blurDataURL:I||"",objectFit:Y.objectFit})+'")':'url("'+_+'")',V=G?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:G}:{},X=function(e){let{config:t,src:a,unoptimized:r,width:l,quality:i,sizes:n,loader:s}=e;if(r)return{src:a,srcSet:void 0,sizes:void 0};let{widths:o,kind:c}=function(e,t,a){let{deviceSizes:r,allSizes:l}=e;if(a){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(a);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:l.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:l,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>l.find(t=>t>=e)||l[l.length-1]))],kind:"x"}}(t,l,n),u=o.length-1;return{sizes:n||"w"!==c?n:"100vw",srcSet:o.map((e,r)=>s({config:t,src:a,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:s({config:t,src:a,quality:i,width:o[u]})}}({config:o,src:h,unoptimized:p,width:$,quality:q,sizes:d,loader:L});return{props:{...R,loading:M?"lazy":m,fetchPriority:C,width:$,height:W,decoding:S,className:x,style:{...Y,...V},sizes:X.sizes,srcSet:X.srcSet,src:v||X.src},meta:{unoptimized:p,priority:g,placeholder:_,fill:k}}}},76687:function(e,t){"use strict";function a(e){let{widthInt:t,heightInt:a,blurWidth:r,blurHeight:l,blurDataURL:i,objectFit:n}=e,s=r?40*r:t,o=l?40*l:a,c=s&&o?"viewBox='0 0 "+s+" "+o+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
1ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===n?"xMidYMid":"cover"===n?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return a}})},7641:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{default:function(){return o},getImageProps:function(){return s}});let r=a(42430),l=a(52365),i=a(48780),n=r._(a(95271));function s(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[320,375,414,768,1024,1440],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let o=i.Image},95271:function(e,t){"use strict";function a(e){var t;let{config:a,src:r,width:l,quality:i}=e,n=i||(null==(t=a.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return a.path+"?url="+encodeURIComponent(r)+"&w="+l+"&q="+n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),a.__next_img_default=!0;let r=a},48695:function(e,t,a){"use strict";a.d(t,{$:function(){return g},z:function(){return m}});var r=a(52676),l=a(75271),i=a(75922),n=a.n(i),s=a(93177),o=a(34859),c=a(19127),u=a(18085),h=a(11247);async function d(e){if(!o.L7)return{contents:[],page:{size:0,totalElements:0,totalPages:0,number:0}};let{page:t=1,perPage:a,q:r,itemIds:l}=e,i=(0,h.Z)((0,c.Z)({page:t-1,per_page:a,q:r,itemIds:l})),n=await (0,u.Z)(`/auth/user-item-bookmarked?${i}`,{target:o.uE,fetchOptions:{method:"GET"}});return{contents:(n.data?.contents||[]).filter((e,t,a)=>t===a.findIndex(t=>t.itemHashId===e.itemHashId))||[],page:n.data?.page||{size:0,totalElements:0,totalPages:0,number:0}}}let p=n()(()=>Promise.all([a.e(7794),a.e(1246)]).then(a.bind(a,96645)),{loadableGenerated:{webpack:()=>[96645]},ssr:!1}),g=(0,l.createContext)({rootCategorySlug:void 0,selectedItemViewGallery:void 0,setSelectedItemViewGallery:()=>null,openBadgeInfoPopup:void 0,setOpenBadgeInfoPopup:()=>null,bookmarkedItems:{},getFavoritesData:()=>Promise.resolve(),updateFavoritesData:()=>null,selectedItemTrackingParams:void 0,setSelectedItemTrackingParams:()=>null,totalSections:0,cardClickTrackingParams:void 0}),m=({children:e,rootCategorySlug:t,totalSections:a=0,cardClickTrackingParams:i})=>{let[n,o]=(0,l.useState)(void 0),[c,u]=(0,l.useState)(void 0),h=(0,l.useCallback)((e,t)=>{o(e),u(void 0!==e?t:void 0)},[]),[m,x]=(0,l.useState)(void 0),[f,b]=(0,l.useState)(void 0),[y,k]=(0,l.useState)({}),N=(0,l.useCallback)(e=>{k(t=>({...t,...e}))},[]),v=(0,l.useCallback)(async e=>{(await d({itemIds:e})).contents},[]),j=(0,l.useMemo)(()=>({rootCategorySlug:t,selectedItemViewGallery:n,setSelectedItemViewGallery:h,openBadgeInfoPopup:f,setOpenBadgeInfoPopup:b,bookmarkedItems:y,getFavoritesData:v,updateFavoritesData:N,selectedItemTrackingParams:m,setSelectedItemTrackingParams:x,totalSections:a,cardClickTrackingParams:i}),[t,n,h,f,y,v,N,m,a,i]);return(0,r.jsxs)(g.Provider,{value:j,children:[e,n?.hashId&&n.user&&n.user?.hashId&&(0,r.jsx)(p,{position:"gallery",initActiveSlideIndex:c,itemData:{hashId:n.hashId,title:n.title??"",displayPrice:n.displayPrice??"",itemSoldWorkflow:n.itemSoldWorkflow,shortDetails:n.shortDetails,boostLevel:n.boostLevel||0},galleryImages:new s.Z(n).galleryImages,sellerData:{userHashId:n.user.hashId,displayName:n.user.displayName??null,lineUrl:n.user.lineUrl??null,mobilePhone:n.user.mobilePhone??null,shopOtherTelephoneNumbers:n.user.shopOtherTelephoneNumbers??[],sellerTypeDisplay:n.user.sellerTypeDisplay??"NONE",profileImageUrl:n.user.profileImageFullUrl,userRoleStateWorkflow:n.user.userRoleStateWorkflow??"W3_SELLER_STATE"},onClickClose:()=>{h(void 0),x(void 0)}})]})}},52040:function(e,t,a){"use strict";var r=a(52676);a(75271);var l=a(61807);t.Z=e=>(0,r.jsx)(l.Z,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0s-.39-1.02 0-1.41L10.59 12 7.7 9.11c-.39-.39-.39-1.02 0-1.41s1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41z"})})},26331:function(e,t,a){"use strict";var r=a(52676);a(75271);var l=a(61807);t.Z=e=>(0,r.jsx)(l.Z,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 2C9.236 4 7 6.348 7 9.25 7 13.188 12 19 12 19s5-5.812 5-9.75C17 6.348 14.764 4 12 4zM9.5 9a2.5 2.5 0 1 0 5 0 2.5 2.5 0 1 0-5 0z"})})},22460:function(e,t,a){"use strict";var r=a(52676);a(75271);var l=a(61807);t.Z=e=>(0,r.jsx)(l.Z,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M6.182 19.523c-.742 0-1.375-.261-1.898-.784
1S3.5 17.583 3.5 16.841H2V6.364c0-.364.136-.682.409-.955S3 5 3.364 5h13.159v3.795h2.386L22 12.909v3.932h-1.614c0 .742-.261 1.375-.784 1.898s-1.155.784-1.898.784-1.375-.261-1.898-.784-.784-1.155-.784-1.898H8.864c0 .742-.261 1.375-.784 1.898s-1.155.784-1.898.784zm0-1.364a1.27 1.27 0 0 0 .932-.386 1.27 1.27 0 0 0 .386-.932 1.27 1.27 0 0 0-.386-.932 1.27 1.27 0 0 0-.932-.386 1.27 1.27 0 0 0-.932.386 1.27 1.27 0 0 0-.386.932 1.27 1.27 0 0 0 .386.932 1.27 1.27 0 0 0 .932.386zm-2.818-2.682h.5a3.01 3.01 0 0 1 .977-.977c.394-.242.833-.364 1.318-.364s.928.125 1.33.375.731.572.989.966h6.682V6.364H3.364v9.114zm14.341 2.682a1.27 1.27 0 0 0 .932-.386 1.27 1.27 0 0 0 .386-.932 1.27 1.27 0 0 0-.386-.932 1.27 1.27 0 0 0-.932-.386 1.27 1.27 0 0 0-.932.386 1.27 1.27 0 0 0-.386.932 1.27 1.27 0 0 0 .386.932 1.27 1.27 0 0 0 .932.386zm-1.182-4.636h4.227l-2.523-3.364h-1.705v3.364z"})})},98264:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var r=a(52676);a(75271);var l=a(90879),i=a(98559),n=a(60183);function s({sx:e}){return(0,r.jsxs)(l.x,{sx:e,children:[(0,r.jsx)(i.O,{sx:{height:["32px",null,null,null,"42px"],width:"50%",borderRadius:"6px",...n.ZW},className:"alt-skeleton-style"}),(0,r.jsxs)(l.x,{sx:{display:"grid",gridTemplateColumns:["1fr",null,"repeat(2, 1fr)","repeat(3, 1fr)","repeat(4, 1fr)"],gap:"8px",mt:"16px"},children:[(0,r.jsx)(i.O,{sx:{height:["357px",null,null,null,"372px"],borderRadius:"8px",...n.ZW}}),(0,r.jsx)(i.O,{sx:{height:["357px",null,null,null,"372px"],borderRadius:"8px",...n.ZW}}),(0,r.jsx)(i.O,{sx:{height:["357px",null,null,null,"372px"],borderRadius:"8px",...n.ZW}}),(0,r.jsx)(i.O,{sx:{height:["357px",null,null,null,"372px"],borderRadius:"8px",...n.ZW}})]})]})}s.displayName="ListingCardSectionPlaceholder"},85700:function(e,t,a){"use strict";a.d(t,{Z:function(){return g}});var r=a(52676),l=a(75271),i=a(90879),n=a(94528),s=a(3457),o=a(13149),c=a(79809),u=a(37368),h=a.n(u),d=a(49338);let p=(0,l.memo)(({url:e,className:t,sectionType:a})=>(0,r.jsx)(h(),{href:e,passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,r.jsx)(c.z,{as:"a",variant:"outlined",size:"small",sx:{fontSize:["12px",null,null,null,"14px"],fontWeight:700,color:"primary.500",borderColor:"neutral.200",":hover":{color:"primary.700",svg:{fill:"primary.700"}}},endIcon:(0,r.jsx)(d.Z,{size:22,sx:{display:"flex",transformOrigin:"center",fill:"primary.500",transform:"rotateZ(-90deg)",mb:"-2px"}}),className:t,"data-testid":`home-${a}-all-button`,onClick:()=>
1{(0,o.Z)({ga:{eventName:"button-click-see-all",eventParams:{sectionName:a}}})},children:"ดูทั้งหมด"})}));function g({viewMoreUrl:e,title:t,iconUrl:a,iconEl:c,sx:u,className:h,sectionType:d,isDisplayViewAllButton:g}){let m=(0,l.useRef)(null),x=(0,l.useRef)(!1),f=(0,s.useRouter)();return(0,l.useEffect)(()=>{let e=()=>{!x.current&&null!=m.current&&window.scrollY>m.current.offsetTop-window.innerHeight&&((0,o.Z)({ga:{eventName:"section-impression",eventParams:{sectionName:d}}}),x.current=!0)};return window.addEventListener("scroll",e),e(),()=>{x.current=!1,window.removeEventListener("scroll",e)}},[f.asPath]),(0,r.jsxs)(i.x,{ref:m,sx:{display:"grid",gridTemplateColumns:"1fr auto",...u},children:[(0,r.jsxs)(i.x,{sx:{display:"grid",gridTemplateColumns:a||c?["24px 1fr auto",null,null,null,"auto 1fr auto"]:"1fr",alignItems:"center","& .section-icon":{width:"gold"===d?"auto":["24px",null,null,null,"32px"],height:"gold"===d?"32px":"auto"}},"data-testid":`home-${d}-title`,children:["string"==typeof a&&(0,r.jsx)("img",{src:a,width:"24",height:"24",className:"section-icon",alt:t,loading:"eager"}),"object"==typeof a&&(0,r.jsx)("img",{className:"section-icon",src:a.x2,srcSet:`${a.x1} 1x, ${a.x2} 2x`,width:"24",height:"24",alt:t,loading:"eager"}),!a&&c?c:null,(0,r.jsx)(n.Z,{as:"h3",sx:{color:"neutral.800",fontWeight:700,pl:"8px",fontSize:["14px",null,null,null,"16px"]},numberOfLines:1,children:t})]}),e&&g&&(0,r.jsx)(p,{url:e,className:h,sectionType:d})]})}p.displayName="ViewAllButton",g.displayName="SectionTitle"},29158:function(e,t,a){"use strict";var r=a(52676),l=a(75271),i=a(90879),n=a(79809),s=a(94528),o=a(37368),c=a.n(o),u=a(18154);let h=(0,l.memo)(({sx:e,buttonText:t,buttonUrl:a,title:o,titleSub:h,titleIcon:d,description:p,className:g,sectionType:m,platform:x,onButtonClick:f})=>{let{setIsPopupSignInSignUpOpen:b}=(0,l.useContext)(u.I);return(0,r.jsxs)(i.x,{sx:{borderRadius:"8px",display:"grid",gridTemplateColumns:"1fr auto",gridTemplateRows:"repeat(2, auto)",p:"16px",gap:"2px",position:"relative",overflow:"hidden",border:"1px solid",borderColor:"transparent",...e,"& .banner-bg-icon":{position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:1,right:["16px",null,null,"164px"],width:["80px",null,null,"44px"],height:["110px",null,null,"60px"]}},"data-testid":`home-${m}-banner`,children:[(0,r.jsx)(i.x,{sx:{display:"flex",alignItems:"center",position:"relative",zIndex:2},children:(0,r.jsx)(s.Z,{as:"h6",className:"title-banner",sx:{fontSize:["14px",null,null,"16px"],fontWeight:700,color:"neutral.800",span:{display:"inline-flex",mr:"4px","@media screen and (max-width: 320px)":{display:"inline",variant:"text.xs"}}},children:"mobile"===x?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:o}),(0,r.jsx)("br",{}),(0,r.jsx)("span",{children:h}),d]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{children:[o,h]}),d]})})}),t&&(0,r.jsx)(i.x,{children:"open-popup-login"===a?(0,r.jsx)(n.z,{onClick:()=>{b({open:!0,mode:"sign-in",onAfterSignIn:()=>{window.location.href="/listing/add/"}}),"function"==typeof f&&f()},variant:"outlined",sx:{backgroundColor:"white",borderColor:"neutral.200",height:["24px",null,null,null,"32px"],fontSize:["12px",null,null,null,"14px"],minWidth:[null,null,null,null,"107px"],position:"relative",zIndex:2,gridArea:"1 / 3 / 2 / 4",bottom:[null,null,null,"-10px"]},className:g,"data-testid":`home-${m}-banner-button`,children:t}):(0,r.jsx)(c(),{href:a||"/",passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,r.jsx)(n.z,{as:"a",variant:"outlined",sx:{backgroundColor:"white",borderColor:"neutral.200",height:["24px",null,null,null,"32px"],fontSize:["12px",null,null,null,"14px"],minWidth:[null,null,null,null,"107px"],position:"relative",zIndex:2,gridArea:"1 / 3 / 2 / 4",bottom:[null,null,null,"-10px"]},className:g,"data-testid":`home-${m}-banner-button`,onClick:()=>{"function"==typeof f&&f()},children:t})})}),(0,r.jsx)(s.Z,{sx:{position:"relative",zIndex:2,gridArea:"2 / 1 / 3 / 4",fontSize:["12px",null,null,null,"14px"],color:"neutral.500"},children:p})]})});h.displayName="BaseBanner",t.Z=h},9811:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var r=a(52676),l=a(75271),i=a(90879),n=a(79809),s=a(37095);function o(e){let{btnClassName:t,layoutStyle:a="normal",showDetail:o=!1,showBtnCreateItem:c=!1,sx:u,isSellerApplicationValid:h=!1,onClick:d}=e,{isDataLoading:p,applicationType:g,formStatus:m,sellerApplicationType:x,dataFirstItemApplication:f,sellerApplicationErrorList:b}=(0,l.useContext)(s.SellerApplicationContext),y="";"quick-post"===x&&(y="ผู้ขายใหม่"),"seller"===x&&(y="ผู้ขายยืนยันตัวตน"),"tent"===x&&(y="เต็นท์รถ");let k=h?`vector-${x}-approve`:`vector-${x}-${m}
1`,N=!f?.isValidItemApplication&&b.length<=0,v=null;return"rejected"===m&&(v=N?"แก้ไขประกาศ":"แก้ไขใบสมัคร"),c&&"registration"===g&&null===f&&(v="สร้างประกาศ"),!1===p&&x&&m&&"normal"!==m?(0,r.jsxs)(i.x,{className:`${m} ${h?"approved":""}`,sx:{p:"16px",border:"1px solid",borderRadius:"8px",boxShadow:"light",display:"flex",gap:"16px",alignItems:!1===o?"center":"flex-start",img:{flex:"none",mb:"auto"},"&.in-review":{borderColor:"yellow.500",".status":{bg:"yellow.100",color:"yellow.900",".circle":{bg:"yellow.500"}}},"&.rejected":{borderColor:"error.500",".status":{bg:"error.100",color:"error.500",".circle":{bg:"error.500"}}},"&.approved":{borderColor:"success.500",".status":{bg:"success.100",color:"success.500",".circle":{bg:"success.500"}}},...u},children:[(0,r.jsx)("img",{className:"block",src:`/static/v3/images/${k}-1x.png`,srcSet:`/static/v3/images/${k}-1x.png 1x, /static/v3/images/${k}-2x.png 2x`,alt:k,width:48,height:48}),(0,r.jsxs)(i.x,{sx:{flex:1,".label":{fontSize:"14px",fontWeight:700},".detail":{mt:"8px",fontSize:"12px",color:"neutral.500"},".status":{px:"8px",py:"4px",width:"max-content",fontSize:"14px",borderRadius:"16px",display:"flex",alignItems:"center",gap:"8px",".circle":{width:"6px",height:"6px",borderRadius:"6px"}}},children:[(0,r.jsxs)(i.x,{sx:{flex:1,display:"flex",gap:["8px",null,null,null,"16px"],alignItems:"normal"===a&&!1===o||!1===o?["flex-start",null,null,null,"center"]:"flex-start",flexDirection:"compact"===a?"column":["column",null,null,null,"row"]},children:[(0,r.jsxs)(i.x,{sx:{flex:1,span:{display:"inline-block"}},children:[(0,r.jsxs)("div",{className:"label",children:["in-review"===m&&`ใบสมัคร “${y}” `,"in-review"===m&&(0,r.jsx)("span",{children:h?"อนุมัติแล้ว":"กำลังรออนุมัติ"}),"rejected"===m&&(0,r.jsx)(r.Fragment,{children:N?(0,r.jsx)(r.Fragment,{children:"คุณเป็นผู้ขายแล้ว! แต่มีประกาศรอแก้ไข"}):(0,r.jsxs)(r.Fragment,{children:[`ใบสมัคร “${y}” `,(0,r.jsx)("span",{children:"ไม่อนุมัติ"})]})})]}),!0===o&&(0,r.jsxs)("div",{className:"detail",children:["in-review"===m&&`ใบสมัคร “${y}” ของคุณกำลังอยู่ในขั้นตอนการตรวจสอบจะได้รับการอนุมัติภายใน 24 ชั่วโมง ในวันดำเนินการ`,"rejected"===m&&(0,r.jsx)(r.Fragment,{children:!f?.isValidItemApplication&&b.length<=0?(0,r.jsx)(r.Fragment,{children:"ประกาศของคุณต้องแก้ไขอีกเล็กน้อย ให้พร้อมลงขาย และใช้งานฟีเจอร์สำหรับผู้ขายได้เต็มที่"}):(0,r.jsx)(r.Fragment,{children:"ใบสมัครของคุณต้องการข้อมูลเพิ่มเติม กรุณาตรวจสอบ แก้ไข และดำเนินการส่งใบสมัครอีกครั้ง"})})]})]}),"in-review"===m&&(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"status",children:[(0,r.jsx)("div",{className:"circle"}),h?"สถานะ: อนุมัติ":"สถานะ: รออนุมัติ"]})}),"rejected"===m&&b.length>0&&(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"status",children:[(0,r.jsx)("div",{className:"circle"}),"สถานะ: รอการแก้ไข"]})})]}),v&&(0,r.jsx)(n.z,{href:"/seller-application/",className:t,size:"small",variant:"outlined",sx:{mt:"8px",width:"max-content"},"data-testid":`${a}-button-go-to-seller-application-page`,onClick:()=>{d?.()},children:v})]})]}):null}o.displayName="InfoStatusSellerApplicationForm"},22435:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var r=a(52676),l=a(75271),i=a(90879),n=a(18154),s=a(79809),o=a(94528),c=a(75922),u=a.n(c),h=a(37368),d=a.n(h),p=a(49338),g=
1a(82136);let m=u()(()=>Promise.all([a.e(4331),a.e(5122)]).then(a.bind(a,45122)),{loadableGenerated:{webpack:()=>[45122]},ssr:!1});function x({sx:e,isLargeMode:t}){let{customValues:a}=(0,l.useContext)(n.I),c=a?a.rootCategoryData:void 0,[u,h]=(0,l.useState)(!1),[x,f]=(0,l.useState)(!1);return(0,l.useEffect)(()=>(x?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[x]),(0,r.jsxs)(i.x,{sx:{position:"relative",".dropdown-category":{display:"none"},":hover":{".dropdown-category":{display:"block"}},...e},children:[(0,r.jsxs)(i.x,{sx:{position:"relative"},onMouseOver:()=>{h(!0)},children:[(0,r.jsx)(s.z,{title:"หมวดหมู่ทั้งหมด",variant:"outlined",endIcon:(0,r.jsx)(p.Z,{size:24,sx:{flex:"none",fill:"primary.700",ml:"4px"}}),sx:{pl:"16px",pr:"8px",borderColor:"neutral.300",borderRight:0,borderTopRightRadius:0,borderBottomRightRadius:0,height:t?[null,null,"40px","58px"]:"40px",":hover":{"::before":{opacity:0}}},"data-testid":"desktop-category-selection-button",className:"button-category-selection",children:(0,r.jsx)(o.Z,{as:"div",numberOfLines:1,sx:{minWidth:"88px"},children:c?c.thaiName:"หมวดหมู่ทั้งหมด"})}),void 0===c&&(0,r.jsx)(d(),{className:`position-cover block ${(0,g.Z)("AppHeader","ButtonCategoryMenu","Desktop")}`,href:"/category/",prefetch:!1,style:{opacity:0},onClick:()=>{h(!1),f(!1)},children:"หมวดหมู่ทั้งหมด"})]}),u&&(0,r.jsx)(i.x,{className:"dropdown-category",sx:{pt:"4px",maxWidth:["800px",null,null,null,null,"1000px"],width:"calc(100vw - 32px)",position:"absolute",left:0,zIndex:100},onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),children:(0,r.jsx)(m,{selectSubCatMode:"hover",enabledScroll:!0,onClickLinkRootCat:()=>{h(!1),f(!1)},onClickSubCat:()=>{h(!1),f(!1)},isCustomScrollHeight:t})})]})}var f=a(79195),b=a(86763),y=a.n(b),k=a(3457),N=a(92529),v=a(52040),j=a(74543),w=a(34100),_=a(28720),I=a(13149),C=a(45843),S=a(57995),T=a(20901);let E=u()(()=>Promise.all([a.e(9582),a.e(6303),a.e(1782)]).then(a.bind(a,81782)),{loadableGenerated:{webpack:()=>[81782]},ssr:!1});function H(e){let{sx:t,isLargeMode:a=!1}=e,{query:c,asPath:u}=(0,k.useRouter)(),{customValues:h}=(0,l.useContext)(n.I),d=h?h.rootCategoryData:void 0,[p,m]=(0,l.useState)(!1),x=(0,C.Z)(decodeURIComponent(c[T.u.Q]||""),/[[\]]/,""),b=(0,l.useRef)(null),H=(0,l.useRef)(null),[O,Z]=(0,l.useState)(null),{openSuggestion:R,isLoading:A,searchResultV3:P,tagSearchResultV3:B,userSearchResultV3:F,histories:z,setOpenSuggestion:L,getDataSuggestionHandler:D,getHistorySuggestHandler:U,setHistorySuggestHandler:$,removeHistoryItemHandler:W,clearAllHistoryHandler:M,submitSearchValue:q}=(0,S.Z)(),{handleSubmit:Y,control:G,setValue:V,watch:X}=(0,N.cI)({defaultValues:{q:x||""}}),K=X("q"),J=(0,l.useCallback)(async(e,t)=>{let a=t.trim();a.length>1&&(await D(a,d),L(!0))},[D,d,L]),Q=(0,l.useMemo)(()=>y()((e,t)=>J(e,t),_.gP),[J]),ee=(0,l.useCallback)(async e=>{let t=e.target.value.replace(/[[\]]/g,"");Z(e.target),t?t.length>1&&Q(e,t):(await U()).length?L(!0):L(!1),V("q",t)},[U,Q,L,V]),et=(0,l.useCallback)(e=>{H?.current?.blur(),L(!1),Q.cancel();let t="ใน หมวดหมู่ทั้งหมด",a="/search/",r=e?.q.trim()||"",l=`${a}${r?`?q=${encodeURIComponent(r)}`:""}`;if(d){a=`/category/cat_${d.slug}/`;let r=d?.thaiName||d?.name||"";t=`ใน ${r}`,l=`${a}?q=${encodeURIComponent(e?.q||"")}`}q({selectedRootCategory:d,searchQ:e?.q.trim()||"",label:r,typeLabel:t,link:l}),V("q",e.q.trim()),L(!1)},[L,Q,d,q,V]);return(0,l.useEffect)(()=>{V("q",x)},[x,u]),(0,l.useEffect)(()=>{let e=e=>{b.current&&(b.current?.contains(e.target)||b.current.isSameNode(e.target))||L(!1)};return O&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),Q.cancel()}},[O,Q,L]),(0,l.useEffect)(()=>{!1===p&&L(!1)},[p,L]),(0,r.jsxs)(i.x,{className:(0,g.Z)("AppHeader","SearchForm"),as:"form",sx:{flex:1,display:"grid",gridTemplateColumns:"1fr auto",border:"solid 1px",borderColor:"neutral.300",borderTopRightRadius:"8px",borderBottomRightRadius:"8px",...t},onSubmit:Y(et),noValidate:!0,autoComplete:"off",children:[(0,r.jsxs)(i.x,{sx:{position:"relative"},ref:b,children:[(0,r.jsx)(N.Qr,{name:"q",control:G,render:({field:e})=>(0,r.jsx)(f.n,{...e,ref:H,placeholder:d?`ค้นหาใน ${d.description||d.thaiName}`:"ค้นหาโดยชื่อสินค้า รุ่น หรือประเภท",maxLength:_._b,onFocus:async e=>{m(!0),ee(e),e.target.select()},onChange:async e=>{ee(e)},sx:{pr:"32px",borderRadius:0,border:0,minHeight:"38px",lineHeight:2,fontSize:a?["14px",null,null,"16px"]:"14px","&::placeholder":{overflow:"visible"},"&:focus":{boxShadow:"inset 0px 0px 0px 2px #497FD5"}},"data-testid":"desktop-category-search-input"})}),A&&(0,r.jsx)(i.x,{sx:{display:"flex",position:"absolute",top:"50%",right:"8px",transform:"translateY(-50%)"},children:(0,r.jsx)(j.Z,{className:"animation-spinner",size:24,sx:{fill:"neutral.300"}})}),!A&&K&&(0,r.jsx)(s.z,{variant:"none","aria-label":"ss-remove-all-text",onClick:()=>{V("q","",{shouldValidate:!0}),setTimeout(()=>{H.current?.focus(),U(),(0,I.Z)({ga:{eventName:"remove-search-text"}})},100)},children:(0,r.jsx)(v.Z,{size:24,sx:{fill:"primary.500",position:"absolute",top:"50%",right:"8px",transform:"translateY(-50%)"}})}),(0,r.jsx)(E,{openSuggestion:R,anchorEl:O,searchValue:K,searchResultV3:P,tagSearchResultV3:B,userSearchResultV3:F,histories:z,
1setOpenSuggestion:L,onSetHistory:$,onRemoveAllHistory:()=>{L(!1),M()},onRemoveHistoryItem:e=>{W(e).length||L(!1)}})]}),a?(0,r.jsxs)(s.z,{"data-testid":"desktop-header-search-button",type:"submit","aria-label":"ss-submit",sx:{px:0,width:["32px",null,null,"100px"],height:"40px",borderRadius:["0 6px 6px 0",null,null,"8px"],bg:"#E1F0FF",color:"primary.500",m:["0",null,null,"8px 8px 0 0"],"& span":{display:["none",null,null,"block"]}},children:[(0,r.jsx)(w.Z,{sx:{fill:"primary.500"}}),(0,r.jsx)(o.Z,{as:"span",children:"ค้นหา"})]}):(0,r.jsx)(s.z,{"data-testid":"desktop-header-search-button",type:"submit","aria-label":"ss-submit",variant:"none",sx:{px:0,width:"40px",height:"38px",justifyContent:"center",bg:"#E1F0FF",borderRadius:"0 8px 8px 0",borderLeft:"1px solid",borderColor:"neutral.300"},children:(0,r.jsx)(w.Z,{sx:{fill:"primary.500"}})})]})}var O=e=>{let{sx:t,isLargeMode:a=!1}=e,{device:s}=(0,l.useContext)(n.I);return(0,r.jsxs)(r.Fragment,{children:[s?.platform==="desktop"&&(0,r.jsx)(x,{isLargeMode:a}),(0,r.jsx)(i.x,{sx:{flex:1,height:"40px"},children:(0,r.jsx)(H,{isLargeMode:a,sx:{maxWidth:"400px",...t}})})]})}},65716:function(e,t,a){"use strict";a.d(t,{Z:function(){return h}});var r=a(52676);a(75271);var l=a(38543),i=a.n(l),n=a(34859),s=a(28932);let o={"@id":`${n.FX}/#organization`,"@type":"OnlineMarketplace",logo:`${n.FX}/static/v3/app-icon.png`,description:"แหล่งซื้อขายรถบรรทุกมือสอง เครื่องจักรกลหนัก และรถเชิงพาณิชย์ อันดับ 1 ในไทย",sameAs:[s.tm,s.A_,s.sb],address:{"@type":"PostalAddress",addressLocality:"Bangkok",addressCountry:"TH",streetAddress:"1494 ถนน เพชรบุรีตัดใหม่ มักกะสัน ราชเทวี กรุงเทพมหานคร",postalCode:"10400"}},c={"@type":"WebSite","@id":`${n.FX}/#website`,url:`${n.FX}/`,name:n.jG,description:n.vk,publisher:{"@id":`${n.FX}/#organization`},inLanguage:"th",potentialAction:{"@type":"SearchAction",target:`${n.FX}/search/?q={search_term_string}`,query:"required name=search_term_string"}},u={"@type":"Organization","@id":`${n.FX}/#organization`,name:n.jG,url:`${n.FX}/`,logo:{"@type":"ImageObject",inLanguage:"th","@id":`${n.FX}/#/schema/logo/image/`,url:`${n.FX}/static/images/favicon/favicon-512x512.png`,contentUrl:`${n.FX}/static/images/favicon/favicon-512x512.png`,width:{"@type":"QuantitativeValue",value:512},height:{"@type":"QuantitativeValue",value:512},caption:n.jG},image:{"@id":`${n.FX}/#/schema/logo/image/`},sameAs:[s.tm,s.sY,s.A_,s.sb,s.eW],contactPoint:{"@type":"ContactPoint",telephone:s.mt,contactType:"customer service"}};function h(e){let{breadcrumbItems:t=[],canonicalPath:a="/",thingList:l}=e,s=t.length>0?function(e,t="/"){return e.length>0?{"@type":"BreadcrumbList","@id":`${n.FX}${t}#breadcrumb`,itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@type":"WebPage","@id":e.link,url:e.link,name:e.title}}))}:null}(t,a):null,h=[o,c,u];return s&&h.push(s),l&&l.length&&h.push(...l),(0,r.jsx)(i(),{children:(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@graph":h}).replace(/</g,"\\u003c")}})})}},67231:function(e,t,a){"use strict";var r=a(52676);let l=(0,a(75271).forwardRef)(({fetchPriority:e,...t},a)=>(0,r.jsx)("img",{...t,ref:a,fetchpriority:e}));l.displayName="ImageElement",t.Z=l},5263:function(e,t,a){"use strict";a.d(t,{LP:function(){return r},Qe:function(){return i},jb:function(){return n},qF:function(){return l}});let r={newest:"createdAt|DESC",oldest:"createdAt|ASC",newestUpdated:"updatedAt|DESC",oldestUpdated:"updatedAt|ASC",recommended:"boostedUntil|DESC,createdAt|DESC",lowestPrice:"currentPrice|ASC",highestPrice:"currentPrice|DESC",lowerFirstRegistrationYear:"firstRegistrationYear|ASC",upperFirstRegistrationYear:"firstRegistrationYear|DESC"},l={newest:"newest",oldest:"oldest",newestUpdated:"newest-updated",oldestUpdated:"oldest-updated",highestPrice:"highest-price",lowestPrice:"lowest-price",recommended:"recommended",lowerFirstRegistrationYear:"lower-first-registration-year",upperFirstRegistrationYear:"upper-first-registration-year"},i={any:"any",gold:"seller_gold"},n={any:"any",published:"published",sold:"sold",booked:"booked",pending:"pending",submitted:"submitted",rejected:"rejected"}},81407:function(e,t,a){"use strict";a.d(t,{N:function(){return r},v:function(){return l}});let r=[{thaiName:"กรุงเทพ",englishName:"Bangkok",slug:"bangkok",uid:30,hashId:"8QoZDjqeNp"},{thaiName:"กระบี่",englishName:"Krabi",slug:"krabi",uid:64,hashId:"W83YoreZRx"},{thaiName:"กาญจนบุรี",englishName:"Kanchanaburi",slug:"kanchanaburi",uid:59,hashId:"37Kq1W2ZRb"},{thaiName:"กาฬสินธุ์",englishName:"Kalasin",slug:"kalasin",uid:10,hashId:"9r8Ym7n3BV"},{thaiName:"กำแพงเพชร",englishName:"Kamphaeng Phet",slug:"kamphaeng-phet",uid:31,hashId:"5wWY4kZ47X"},{thaiName:"ขอนแก่น",englishName:"Khon Kaen",slug:"khon-kaen",uid:11,hashId:"G6MnR6nw5J"},{thaiName:"จันทบุรี",englishName:"Chantaburi",slug:"chantaburi",uid:52,hashId:"53Gn95bnOB"},{thaiName:"ฉะเชิงเทรา",englishName:"Chachoengsao",slug:"chachoengsao",uid:53,hashId:"EWNn0o8q9b"},{thaiName:"ชลบุรี",englishName:"Chonburi",slug:"chonburi",uid:54,hashId:"9r8YmX7Z3B"}
1,{thaiName:"ชัยนาท",englishName:"Chai Nat",slug:"chai-nat",uid:32,hashId:"43mqdVZyXE"},{thaiName:"ชัยภูมิ",englishName:"Chaiyaphum",slug:"chaiyaphum",uid:12,hashId:"x1eqlJZB9y"},{thaiName:"ชุมพร",englishName:"Chumphon",slug:"chumphon",uid:65,hashId:"PWxqw2PYKL"},{thaiName:"ตรัง",englishName:"Trang",slug:"trang",uid:66,hashId:"oLmnGbBqWE"},{thaiName:"ตราด",englishName:"Trat",slug:"trat",uid:55,hashId:"G6MnRM6qw5"},{thaiName:"ตาก",englishName:"Tak",slug:"tak",uid:60,hashId:"v4KY3POqaE"},{thaiName:"นครนายก",englishName:"Nakhon Nayok",slug:"nakhon-nayok",uid:33,hashId:"M1PZQlnEBX"},{thaiName:"นครปฐม",englishName:"Nakhon Pathom",slug:"nakhon-pathom",uid:34,hashId:"x3bn7MYewp"},{thaiName:"นครพนม",englishName:"Nakhon Phanom",slug:"nakhon-phanom",uid:13,hashId:"DPvn81ZN70"},{thaiName:"นครราชสีมา",englishName:"Nakhon Ratchasima",slug:"nakhon-ratchasima",uid:14,hashId:"gEBYyaYkN9"},{thaiName:"นครศรีธรรมราช",englishName:"Nakhon Si Thammarat",slug:"nakhon-si-thammarat",uid:67,hashId:"redZOdVY72"},{thaiName:"นครสวรรค์",englishName:"Nakhon Sawan",slug:"nakhon-sawan",uid:35,hashId:"LO7ZKBn4b1"},{thaiName:"นนทบุรี",englishName:"Nonthaburi",slug:"nonthaburi",uid:36,hashId:"W7pqLzZ5DQ"},{thaiName:"นราธิวาส",englishName:"Narathiwat",slug:"narathiwat",uid:68,hashId:"Pg7Z6MonRv"},{thaiName:"น่าน",englishName:"Nan",slug:"nan",uid:3,hashId:"WQ9nN3ZLlv"},{thaiName:"บึงกาฬ",englishName:"Bueng Kan",slug:"bueng-kan",uid:29,hashId:"LPxnp3q2Xw"},{thaiName:"บุรีรัมย์",englishName:"Buriram",slug:"buriram",uid:15,hashId:"37Kq12nRbB"},{thaiName:"ปทุมธานี",englishName:"Pathum Thani",slug:"pathum-thani",uid:37,hashId:"9E6ZEAZ1Qk"},{thaiName:"ประจวบคีรีขันธ์",englishName:"Prachuap Khiri Khan",slug:"prachuap-khiri-khan",uid:61,hashId:"lbgZe3Oqda"},{thaiName:"ปราจีนบุรี",englishName:"Prachinburi",slug:"prachinburi",uid:56,hashId:"x1eqloJYB9"},{thaiName:"ปัตตานี",englishName:"Pattani",slug:"pattani",uid:69,hashId:"B2aYJ9bZJp"},{thaiName:"พระนครศรีอยุธยา",englishName:"Ayutthaya",slug:"ayutthaya",uid:38,hashId:"bJMq2WnlB3"},{thaiName:"พะเยา",englishName:"Phayao",slug:"phayao",uid:4,hashId:"J7KYWpqGbW"},{thaiName:"พังงา",englishName:"Phang Nga",slug:"phang-nga",uid:70,hashId:"Q0rqjX6ZWe"},{thaiName:"พัทลุง",englishName:"Phattalung",slug:"phattalung",uid:71,hashId:"reRnb9Aqa1"},{thaiName:"พิจิตร",englishName:"Phichit",slug:"phichit",uid:39,hashId:"e1JYX0YkAa"},{thaiName:"พิษณุโลก",englishName:"Phitsanulok",slug:"phitsanulok",uid:40,hashId:"GdeqxzZ8mK"},{thaiName:"ภูเก็ต",englishName:"Phuket",slug:"phuket",uid:72,hashId:"pMaYkzgZyg"},{thaiName:"มหาสารคาม",englishName:"Maha Sarakham",slug:"maha-sarakham",uid:16,hashId:"v4KY3OYaEV"},{thaiName:"มุกดาหาร",englishName:"Mukdahan",slug:"mukdahan",uid:17,hashId:"lbgZeOqdao"},{thaiName:"ยะลา",englishName:"Yala",slug:"yala",uid:77,hashId:"M1PZQzlYEB"},{thaiName:"ยโสธร",englishName:"Yasothon",slug:"yasothon",uid:18,hashId:"BWrngGnlJR"},{thaiName:"ระนอง",englishName:"Ranong",slug:"ranong",uid:73,hashId:"LPxnpM3Z2X"},{thaiName:"ระยอง",englishName:"Rayong",slug:"rayong",uid:57,hashId:"DPvn8W1qN7"},{thaiName:"ราชบุรี",englishName:"Ratchaburi",slug:"ratchaburi",uid:63,hashId:"6mLnzk1ZrX"},{thaiName:"ร้อยเอ็ด",englishName:"Roi Et",slug:"roi-et",uid:19,hashId:"6mLnz1qrXJ"},{thaiName:"ลพบุรี",englishName:"Lop Buri",slug:"lop-buri",uid:42,hashId:"rjOqVEYpaN"},{thaiName:"ลำปาง",englishName:"Lampang",slug:"lampang",uid:7,hashId:"Nb7nBXYDX5"},{thaiName:"ลำพูน",englishName:"Lamphun",slug:"lamphun",uid:8,hashId:"53Gn9bZOB0"},{thaiName:"ศรีสะเกษ",englishName:"Si Sa Ket",slug:"si-sa-ket",uid:23,hashId:"redZOVn724"}
1,{thaiName:"สกลนคร",englishName:"Sakon Nakhon",slug:"sakon-nakhon",uid:21,hashId:"PWxqwPnKLb"},{thaiName:"สงขลา",englishName:"Songkhla",slug:"songkhla",uid:75,hashId:"5wWY4Ekq47"},{thaiName:"สตูล",englishName:"Satun",slug:"satun",uid:74,hashId:"8QoZD7jneN"},{thaiName:"สมุทรปราการ",englishName:"Samut Prakan",slug:"samut-prakan",uid:43,hashId:"amgqAaqdKr"},{thaiName:"สมุทรสงคราม",englishName:"Samut Songkhram",slug:"samut-songkhram",uid:44,hashId:"95XZvMLnK4"},{thaiName:"สมุทรสาคร",englishName:"Samut Sakhon",slug:"samut-sakhon",uid:45,hashId:"BKkZaXXnRl"},{thaiName:"สระบุรี",englishName:"Saraburi",slug:"saraburi",uid:49,hashId:"QOPZ59QZey"},{thaiName:"สระแก้ว",englishName:"Sa Kaeo",slug:"sa-kaeo",uid:58,hashId:"gEBYyLaZkN"},{thaiName:"สิงห์บุรี",englishName:"Sing Buri",slug:"sing-buri",uid:46,hashId:"PxzYMp1ZGy"},{thaiName:"สุพรรณบุรี",englishName:"Suphan Buri",slug:"suphan-buri",uid:48,hashId:"J7KYWmpnGb"},{thaiName:"สุราษฎร์ธานี",englishName:"Surat Thani",slug:"surat-thani",uid:76,hashId:"43mqdDVqyX"},{thaiName:"สุรินทร์",englishName:"Surin",slug:"surin",uid:22,hashId:"oLmnGBqWED"},{thaiName:"สุโขทัย",englishName:"Sukhothai",slug:"sukhothai",uid:47,hashId:"WQ9nN13qLl"},{thaiName:"หนองคาย",englishName:"Nong Khai",slug:"nong-khai",uid:24,hashId:"Pg7Z6oYRvO"},{thaiName:"หนองบัวลำภู",englishName:"Nong Bua Lamphu",slug:"nong-bua-lamphu",uid:25,hashId:"B2aYJbYJpA"},{thaiName:"อำนาจเจริญ",englishName:"Amnat Charoen",slug:"amnat-charoen",uid:28,hashId:"pMaYkgYyg6"},{thaiName:"อุดรธานี",englishName:"Udon Thani",slug:"udon-thani",uid:26,hashId:"Q0rqj6qWeb"},{thaiName:"อุตรดิตถ์",englishName:"Uttaradit",slug:"uttaradit",uid:9,hashId:"EWNn08n9bo"},{thaiName:"อุทัยธานี",englishName:"Uthai Thani",slug:"uthai-thani",uid:51,hashId:"Nb7nB1XqDX"},{thaiName:"อุบลราชธานี",englishName:"Ubon Ratchathani",slug:"ubon-ratchathani",uid:27,hashId:"reRnbAqa1w"},{thaiName:"อ่างทอง",englishName:"Ang Thong",slug:"ang-thong",uid:50,hashId:"o3bZPjmqO1"},{thaiName:"เชียงราย",englishName:"Chiang Rai",slug:"chiang-rai",uid:1,hashId:"BKkZaXnRld"},{thaiName:"เชียงใหม่",englishName:"Chiang Mai",slug:"chiang-mai",uid:2,hashId:"PxzYM1YGyv"},{thaiName:"เพชรบุรี",englishName:"Phetchaburi",slug:"phetchaburi",uid:62,hashId:"BWrnggGnlJ"},{thaiName:"เพชรบูรณ์",englishName:"Phetchabun",slug:"phetchabun",uid:41,hashId:"EwrYryZvX1"},{thaiName:"เลย",englishName:"Loei",slug:"loei",uid:20,hashId:"W83YoenRx2"},{thaiName:"แพร่",englishName:"Phrae",slug:"phrae",uid:5,hashId:"QOPZ5QZeyX"},{thaiName:"แม่ฮ่องสอน",englishName:"Mae Hong Son",slug:"mae-hong-son",uid:6,hashId:"o3bZPmYO15"}],l=r.reduce((e,t)=>(void 0===e[t.slug]&&(e[t.slug]=t),e),{})},28720:function(e,t,a){"use strict";a.d(t,{$P:function(){return n},QY:function(){return o},_b:function(){return u},aF:function(){return h},dl:function(){return s},fL:function(){return i},gP:function(){return c},kB:function(){return d},tf:function(){return l}});var r=a(5263);let l=[{name:r.qF.newest,value:r.LP.newest},{name:r.qF.recommended,value:r.LP.recommended},{name:r.qF.lowestPrice,value:r.LP.lowestPrice},{name:r.qF.highestPrice,value:r.LP.highestPrice},{name:r.qF.lowerFirstRegistrationYear,value:r.LP.lowerFirstRegistrationYear},{name:r.qF.upperFirstRegistrationYear,value:r.LP.upperFirstRegistrationYear}];Array.from(Array(100)).map((e,t)=>{let a=1e4+1e4*t;return{name:a.toLocaleString(),value:a}});let i=Array.from(Array(99)).map((e,t)=>{let a=new Date().getFullYear()-t;return{name:`ค.ศ. ${a} / พ.ศ. ${a+543}`,value:a}}),n=[{name:"ภาคเหนือ",value:"The+Northern"},{name:"ภาคอีสาน",value:"The+Northeastern+(Isarn)"},{name:"ภาคกลาง",value:"The+Central"},{name:"ภาคตะวันออก",value:"The+Eastern"},{name:"ภาคตะวันตก",value:"The+Western"},{name:"ภาคใต้",value:"The+Southern"}],s={published:{name:"กำลังขาย",value:void 0},sold:{name:"ขายแล้ว",value:r.jb.sold}},o=[{name:"100",value:100},{name:"500",value:500},{name:"1,000",value:1e3},{name:"5,000",value:5e3},{name:"10,000",value:1e4},{name:"50,000",value:5e4},...Array.from(Array(100)).map((e,t)=>{let a=1e5+1e5*t;
1return{name:a.toLocaleString(),value:a}}),{name:"15,000,000",value:15e6},{name:"20,000,000",value:2e7}],c=700,u=50,h=166,d={newest:"latest","highest-price":"high-to-low","lowest-price":"low-to-high","newest-updated":"new-to-old","oldest-updated":"old-to-new"}},88998:function(e,t,a){"use strict";a.d(t,{s:function(){return s},z:function(){return o}});var r=a(10114);class l{constructor(e){this.id=0,this.createdAt=null,this.version=null,Object.assign(this,e)}}class i extends l{constructor(e){super(e),this.hashId="",this.name="",this.thaiName="",this.legacySlug=void 0,this.legacyDataType=void 0,this.dataType="TEXT",this.rootCategoryType="OTHER";let{image:t,...a}=e;Object.assign(this,a);let l="string"==typeof t?(0,r.Z)(t):t||void 0;void 0!==l&&(this.image=l)}}class n extends i{constructor(e){super(e),this.rootCategory="ROOT",this.rootCategory=e.rootCategory||"ROOT"}get rootType(){return this.rootCategoryType.toLowerCase()}toJson(){return JSON.parse(JSON.stringify(this))}}let s={truck:new n({hashId:"XGZmW1eVvW",name:"Truck",thaiName:"รถบรรทุก",legacySlug:"root-category",slug:"truck",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-truck-2x.png",fileHashId:""},description:"รถบรรทุก",rootCategoryType:"TRUCK",createdAt:"1721710052000",updatedAt:"1721710052000"}),"passenger-car":new n({hashId:"X4k9w2xeqb",name:"Passenger Car",thaiName:"รถมือสอง",legacySlug:"root-category",slug:"passenger-car",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-passenger-car-2x.png",fileHashId:""},description:"รถยนต์",rootCategoryType:"PCAR",createdAt:"1721710054000",updatedAt:"1721710054000"}),pickup:new n({hashId:"93wbQo74WV",name:"Pickup",thaiName:"รถกระบะ",legacySlug:"root-category",slug:"pickup",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-pickup-2x.png",fileHashId:""},description:"รถกระบะ",rootCategoryType:"PICKUP",createdAt:"1721710055000",updatedAt:"1721710055000"}),motorbike:new n({hashId:"akbPBYQwKW",name:"Motorbike",thaiName:"มอเตอร์ไซค์",legacySlug:"root-category",slug:"motorbike",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-motorbike-2x.png",fileHashId:""},description:"มอเตอร์ไซค์",rootCategoryType:"MOTORBIKE",createdAt:"1721710058000",updatedAt:"1721710058000"}),"heavy-machinery":new n({hashId:"2m9w9b7kYj",name:"Heavy & Construction Machinery",thaiName:"เครื่องจักรกลหนัก เครื่องจักรกลก่อสร้าง",legacySlug:"root-category",slug:"heavy-machinery",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-heavy-machinery-2x.png",fileHashId:""},description:"เครื่องจักร",rootCategoryType:"HEAVY_MACHINERY",createdAt:"1721710063000",updatedAt:"1721710063000"}),"agricultural-machinery":new n({hashId:"48r9Wg9aWm",name:"Agricultural Machinery",thaiName:"เครื่องจักรกลการเกษตร",legacySlug:"root-category",slug:"agricultural-machinery",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-agricultural-machinery-2x.png",fileHashId:""},description:"เครื่องจักรเกษตร",rootCategoryType:"AGRICULTURAL_MACHINERY",createdAt:"1721710062000",updatedAt:"1721710062000"}),boat:new n({hashId:"P2lAEGZL1N",name:"Boat",thaiName:"เรือ",legacySlug:"root-category",slug:"boat",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-boat-2x.png",fileHashId:""},description:"เรือ",rootCategoryType:"BOAT",createdAt:"1721710060000",updatedAt:"1721710060000"}),"truck-body-trailer":new n({hashId:"bN5rJGDRQG",name:"Body and Trailer",thaiName:"หางพ่วง\nตัวถัง รถบรรทุก",legacySlug:"root-category",slug:"truck-body-trailer",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-truck-body-trailer-2x.png",f
1ileHashId:""},description:"หางพ่วง ตัวถัง รถบรรทุก",rootCategoryType:"TRUCK_BODY_TRAILER",createdAt:"1721710784000",updatedAt:"1721710784000"}),bus:new n({hashId:"kYRy59ylXM",name:"Bus",thaiName:"รถบัส",legacySlug:"root-category",slug:"bus",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-bus-2x.png",fileHashId:""},description:"รถบัส",rootCategoryType:"BUS",createdAt:"1721710786000",updatedAt:"1721710786000"}),van:new n({hashId:"82d7yJPEp1",name:"Van",thaiName:"รถตู้",legacySlug:"root-category",slug:"van",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-van-2x.png",fileHashId:""},description:"รถตู้",rootCategoryType:"VAN",createdAt:"1721710783000",updatedAt:"1721710783000"}),"wheel-tire":new n({hashId:"AwD02B0qMW",name:"Wheel & Tire",thaiName:"ล้อ และ ยาง",legacySlug:"root-category",slug:"wheel-tire",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-wheel-tire-2x.png",fileHashId:""},description:"ล้อแม็ก และ ยาง",rootCategoryType:"WHEEL_TIRE",createdAt:"1721710816000",updatedAt:"1721710816000"}),"part-engine":new n({hashId:"o8wKYvngeX",name:"Part & Engine",thaiName:"อะไหล่ และ เครื่องยนต์",legacySlug:"root-category",slug:"part-engine",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-part-engine-2x.png",fileHashId:""},description:"อะไหล่",rootCategoryType:"PART_ENGINE",createdAt:"1721710818000",updatedAt:"1721710818000"}),equipment:new n({hashId:"m3QwRbw8Py",name:"Equipment",thaiName:"เครื่องมือและอุปกรณ์ช่าง",legacySlug:"root-category",slug:"equipment",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-equipment-2x.png",fileHashId:""},description:"เครื่องมือและอุปกรณ์ช่าง",rootCategoryType:"EQUIPMENT",createdAt:"1721710820000",updatedAt:"1721710820000"}),service:new n({hashId:"nRgLW0y5W1",name:"Service",thaiName:"บริการ",legacySlug:"root-category",slug:"service",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-service-2x.png",fileHashId:""},description:"ซื้อ ขาย เช่า บริการอื่นๆ",rootCategoryType:"SERVICE",createdAt:"1736220954000",updatedAt:"1736220954000"}),other:new n({hashId:"4WJ3MLw61e",name:"Other",thaiName:"ของมือสอง อื่นๆ",legacySlug:"root-category",slug:"other",legacyDataType:"ATTRIBUTE_CHOICE",dataType:"CHOICE",image:{fullUrl:"/static/v3/images/icon-cat-others-2x.png",fileHashId:""},description:"ของมือสอง อื่นๆ",rootCategoryType:"OTHER",createdAt:"1736220974000",updatedAt:"1736220974000"})},o=[s.truck,s["truck-body-trailer"],s["heavy-machinery"],s["agricultural-machinery"],s.pickup,s["passenger-car"],s.van,s.bus,s.motorbike,s.boat,s["part-engine"],s.equipment,s["wheel-tire"],s.service,s.other]},53873:function(e,t,a){"use strict";function r(e){{let t=document.getElementById(e.id);if(t){let a=t.getBoundingClientRect(),r=document.body.getBoundingClientRect(),l=a.top-r.top,i=a.left-r.left;window.scroll({top:l-(e?.offsetTop||0),left:i-r.left-(e?.offsetLeft||0),behavior:e?.behavior||"smooth"})}}}a.d(t,{Z:function(){return r}})},96386:function(e,t){"use strict";t.Z=(e,t)=>e.includes("/public/v2/item/")&&e.includes(".jpeg")&&t?e.replace(".jpeg",`_${t}.jpeg`):e},10114:function(e,t,a){"use strict";function r(e){try{if(!e.trim())return null;return JSON.parse(e)}catch{return null}}a.d(t,{Z:function(){return r}})},22565:function(e,t,a){"use strict";var r=a(75271),l=a(3457),i=a(18154),n=a(86340),s=a(34859),o=a(13149),c=a(20108);let u=new Set(["/listing/[hashId]","/category/[slug]","/search","/shop/[hashId]","/","/video-listing"]),h=new Map([["/listing/[hashId]","page_detail"],["/category/[slug]","category"],["/search","search"],["/shop/[hashId]","shop_page"],["/","homepage"],["/video-listing","video_page"]]);s.ry||u.add("/u/[hashId]"),t.Z=(e,t=!1)=>{let{pathname:a}=(0,l.useRouter)(),d=(0,r.useRef)(new Map),p=(0,r.useRef)([]),g=(0,r.useRef)(null),{authUser:m}=(0,r.useContext)(i.I),x=(0,r.useRef)([]),f=(0,r.useCallback)(()=>{let e=document.querySelectorAll(".track-imp-listing-card");
1x.current=[],e.length&&e.forEach(e=>{let t=e.getAttribute("data-item-id");t&&x.current.push(t)})},[]),b=(0,r.useCallback)((e=[])=>{e.length>0&&(x.current=e)},[]),y=(0,r.useCallback)(async()=>{let e=new Map([...d.current].filter(([e,t])=>!1===t)),t=h.get(a);if(e.size>0&&t){let a=[...e.keys()];if(await (0,c.Z)(a,{actionType:"view",page:t,userHashId:m?.userHashId})){"uat"===s.Gv&&(f(),console.log(`[TOTAL_LIST_IDS](${x.current.length}) - ${x.current.join(", ")}`),console.log(`[IMP_SENT_ID](${d.current.size}/${x.current.length} sent) - ${a.join(", ")}`));let t=new Map([...e]);for(let[e]of t)t.set(e,!0);d.current=new Map([...d.current,...t])}}},[m?.userHashId,f,a]),k=(0,r.useCallback)(()=>{t||(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{y()},500))},[t,y]);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{let{itemId:t,itemSeller:a,itemSection:r,itemPosition:l,itemBoost:i,rootCategory:s,subCategory:c}=e.target.dataset,u=r?n.XF[r]:void 0;e.isIntersecting&&t&&!p.current.includes(t)&&(p.current.push(t),d.current.has(t)||d.current.set(t,!1),(0,o.Z)({ga:{eventName:"listing-impression",eventParams:{itemHashId:t,sellerHashId:a,boostLevel:void 0!==i?Number(i):void 0,sectionName:u,position:l,rootCategory:s,subCategory:c}}}),k())})},{threshold:.5}),r=new WeakSet,l=null,i=()=>{u.has(a)&&!t&&document.querySelectorAll(".track-imp-listing-card").forEach(t=>{r.has(t)||(e.observe(t),r.add(t))})};i();let s=new MutationObserver(()=>{l&&clearTimeout(l),l=setTimeout(()=>{i()},200)});return u.has(a)&&!t&&s.observe(document.body,{childList:!0,subtree:!0}),()=>{l&&clearTimeout(l),e.disconnect(),s.disconnect()}},[t,a]),{collectAllCardHashIds:b}}},65928:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var r=a(75271),l=a(18154),i=a(30702);function n(e){let{op:t=">=",breakpoint:a="mobile"}=e,{viewport:n}=(0,r.useContext)(l.I),[s,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{n?o(function(e,t,a){let r=i.Z[a];if("<"===t)return e.width<r;if(">"===t)return e.width>r;if("<="===t)return e.width<=r;if(">="===t||"widescreen"===a)return e.width>=r;let l=Object.keys(i.Z).reduce((e,t)=>i.Z[t]>=r&&a!==t?{...e,max:i.Z[t]}:e,{min:r,max:0});return e.width>=l.min&&e.width<l.max}(n,t,a)):o(!1)},[a,t,n]),s}},57995:function(e,t,a){"use strict";a.d(t,{Z:function(){return h}});var r=a(75271),l=a(3457),i=a(42716),n=a(13149),s=a(3438),o=a(34859),c=a(18085);async function u(e,t,a){let r="";t&&(r+=`&rootCategory=${encodeURIComponent(t)}`);let l=await (0,c.Z)(`/api/es/search-suggestions?page=0&per_page=5&keyword=${encodeURIComponent(e)}${r}`,{target:o.uE,fetchOptions:{signal:a}}),i=l.data?l.data:null;return{...l,data:i}}var h=()=>{let{push:e,pathname:t,query:a,asPath:o}=(0,l.useRouter)(),c=(0,r.useRef)(null),[h,d]=(0,r.useState)(!1),[p,g]=(0,r.useState)(!1),[m,x]=(0,r.useState)([]),[f,b]=(0,r.useState)([]),[y,k]=(0,r.useState)([]),[N,v]=(0,r.useState)([]),j=(0,r.useCallback)(async(e,t)=>{c.current=new AbortController;let a=c.current.signal;d(!0);let r=await u(e,t?.slug||"",a);x(r.data?.searchSuggestions||[]),b(r.data?.tags||[]),k(r.data?.users||[]),d(!1)},[]),w=(e,t)=>{if((0,s.Z)()){let e=JSON.parse(localStorage.getItem(i.t7)||"[]")||[];localStorage.setItem(i.t7,JSON.stringify([t,...e.filter(e=>JSON.stringify(e)!==JSON.stringify(t)).slice(0,9)]))}g(!1)},_=(0,r.useCallback)(()=>{if((0,s.Z)()){let e=JSON.parse(localStorage.getItem(i.t7)||"[]")||[];return v(e),e}return[]},[]),I=(0,r.useCallback)(e=>{if((0,s.Z)()){let t=(JSON.parse(localStorage.getItem(i.t7)||"[]")||[]).filter(t=>JSON.stringify(t)!==JSON.stringify(e));return localStorage.setItem(i.t7,JSON.stringify(t)),v(t),t}return N},[N]),C=(0,r.useCallback)(()=>{(0,s.Z)()&&localStorage.setItem(i.t7,JSON.stringify([])),v([])},[]);return{openSuggestion:p,setOpenSuggestion:g,isLoading:h,setIsLoading:d,searchResultV3:m,tagSearchResultV3:f,userSearchResultV3:y,histories:N,setHistories:v,getDataSuggestionHandler:j,getHistorySuggestHandler:_,setHistorySuggestHandler:w,removeHistoryItemHandler:I,clearAllHistoryHandler:C,submitSearchValue:r=>{if(r?.searchQ){let a=[];if((0,s.Z)()&&(a=JSON.parse(localStorage.getItem(i.t7)||"[]")||[]),a.length>0&&a[0].label===r?.searchQ&&decodeURIComponent(a[0].link)===decodeURIComponent(o))e(a[0].link);else{let a="ใน หมวดหมู่ทั้งหมด";if(r.selectedRootCategory){let e=r.selectedRootCategory?.thaiName||r.selectedRootCategory?.name||"";a=`ใน ${e}`}w(r?.searchQ,{label:r.label||"",link:r?.link,typeLabel:a}
1),(0,n.Z)({ga:{eventName:"button-click-search",eventParams:{searchQ:r.searchQ,...r.selectedRootCategory?.slug?{rootCategory:r.selectedRootCategory.slug}:null}}}),r.selectedRootCategory?e({pathname:t,query:{q:r.searchQ,slug:`cat_${r.selectedRootCategory.slug}`}}):e({pathname:"/search/",query:{q:r.searchQ}})}}else delete a?.q,e({pathname:t,query:a})}}}},93177:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var r=a(96386);class l{constructor(e){this.itemHashId="",this.userHashId="",this.title="",this.shortDetails=[],this.itemSoldWorkflow="W8_START_STATE",this.maxBoostLevel=4,this.boostLevel=0,this.jkke=!1,this.isExpired=!1,Object.assign(this,e),this.userHashId=e?.user?.hashId||"",this.itemHashId=e?.hashId||""}get status(){return"W8_ITEM_BOOKED_STATE"===this.itemSoldWorkflow?"booked":"W8_ITEM_SOLD_STATE"===this.itemSoldWorkflow?"sold":!0===this.isExpired?"expired":"published"}get formattedTitle(){return this.title?.replace(/(?:\r\n|\r|\n|\s+)/g," ").slice(0,100)??""}get properties(){return this.categoryPathSlugs&&0!==this.categoryPathSlugs.length?(this.categoryPathSlugs||[]).reduce((e,t)=>{let a=t.value||t.valueNumber||null;return e[t.slug]={slug:t.slug,name:t.name,thaiName:t.thaiName,value:a},e},{}):{}}get rootCategorySlug(){let e=(this.breadcrumbPaths||[]).find(({categoryMasterIndexSlug:e})=>"root-category"===e);return e?.slug?e.slug:(this.categoryPathSlugs||[]).find(({slug:e})=>"root-category"===e)?.value||void 0}get galleryImages(){return(this.gallery||[]).reduce((e,t)=>{let{hashId:a,fullUrl:l,fileType:i,coverImageUrl:n}=t,s={x1:"",x2:""},o={x1:"",x2:""};if("IMAGE"===i&&(s={x1:(0,r.Z)(l,"md"),x2:l},o={x1:(0,r.Z)(l,"sm"),x2:(0,r.Z)(l,"sm")}),"VIDEO"===i){if(n)o={x1:n,x2:n};else{let e=(this.gallery||[]).length>0?(this.gallery??[])[0].fullUrl:"";o={x1:(0,r.Z)(e,"sm"),x2:(0,r.Z)(e,"sm")}}}return e.push({uniqueId:a,type:"IMAGE"===i?"image":"video",src:s.x1,src2x:s.x2,fullSizeUrl:l,title:this.title,srcThumbnail:o.x1,srcThumbnail2x:o.x2}),e},[])}}},29242:function(e,t,a){"use strict";a.d(t,{V:function(){return r}});let r={homepage1:null,homepage2:null,homepage3:null,homepage4:null,listingList1:null,listingList2:null,listingDetail1:null,listingDetail2:null,listingDetail3:null}},79241:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return e_},default:function(){return eI}});var r=a(52676),l=a(75922),i=a.n(l),n=a(65716),s=a(29242),o=a(75271),c=a(90879),u=a(92232),h=a(18154);a(424),a(57233);var d=a(7652),p=a.n(d);let g=i()(()=>Promise.all([a.e(6069),a.e(975),a.e(7625)]).then(a.bind(a,47625)),{loadableGenerated:{webpack:()=>[47625]},ssr:!1});function m(e){let{data:t=[]}=e,{device:a}=(0,o.useContext)(h.I),[l,i]=(0,o.useState)(!1);return(0,r.jsxs)(c.x,{id:"hero-banner-slider",sx:{height:["200px",null,null,null,"320px"],position:"relative",".item":{display:"flex",height:["200px",null,null,null,"320px"],".banner-container":{mx:"auto",position:"relative",width:"100%",height:"100%",maxWidth:"1512px",".banner-image":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}},".swiper-pagination":{width:"max-content",position:"absolute",bottom:["32px",null,null,null,"56px"],left:"50%",right:0,transform:"translateX(-50%)",".swiper-pagination-bullet":{width:"8px",height:"8px",opacity:1,bg:"#F6F6F6"},".swiper-pagination-bullet-active":{bg:"primary.500"}},".temp-image":{display:"block",margin:"0 auto",height:"100%",objectPosition:"center",objectFit:"cover"}},children:[!l&&(0,r.jsxs)(r.Fragment,{children:[a?.platform==="mobile"&&(0,r.jsx)(p(),{unoptimized:!0,className:"banner-image temp-image",src:`${t[0].imageMobile}?tr=w-375,h-200,q-100`,width:375,height:200,title:t[0].title,alt:t[0].title||"hero banner mobile",fetchPriority:"high",loading:"eager",priority:!0}),a?.platform!=="mobile"&&(0,r.jsx)(p(),{unoptimized:!0,className:"banner-image temp-image",src:`${t[0].imageDesktop}?tr=w-1512,h-320,q-100`,width:1512,height:320,title:t[0].title,alt:t[0].title||"hero banner desktop",fetchPriority:"high",loading:"eager",priority:!0})]}),(0,r.jsx)(g,{data:t,onInit:()=>{i(!0)}}),(0,r.jsx)(c.x,{className:"swiper-pagination"})]})}
1m.displayName="HeroBanner";var x=a(39157),f=a(22435),b=a(53047),y=a(14054),k=a(2675);function N(e){let{heroBannerList:t=[],displayFreeCoin:a}=e,{device:l}=(0,o.useContext)(h.I);return(0,r.jsxs)(r.Fragment,{children:[l?.platform==="desktop"?(0,r.jsx)(x.Z,{isHomepage:!0,sx:{transition:"ease background 150ms"}}):(0,r.jsx)(b.Z,{isHomepage:!0,sx:{transition:"ease background 150ms"}}),(0,r.jsxs)(c.x,{sx:{position:"relative",bg:"primary.500",overflow:"hidden",height:["200px",null,null,null,"320px"]},children:[(0,r.jsx)(c.x,{className:"position-cover",children:(0,r.jsx)(m,{data:t})}),(0,r.jsx)(k.Z,{displayFreeCoin:a,sx:{py:0,bg:"transparent",position:"relative",zIndex:1}})]}),(0,r.jsx)(c.x,{sx:{backgroundColor:"neutral.100"},children:(0,r.jsx)(u.W,{children:(0,r.jsx)(c.x,{sx:{mx:"24px",display:"flex",flex:1,borderRadius:"12px",boxShadow:"light",backgroundColor:"#fff",p:["12px",null,null,null,"16px"],m:["-32px auto 0 auto",null,null,null,"-44px auto 0 auto"],zIndex:11,position:"relative",transition:"opacity 200ms ease-in-out"},children:l?.platform==="desktop"?(0,r.jsx)(f.default,{isLargeMode:!0,sx:{maxWidth:"100%",borderRadius:["8px",null,null,"0 8px 8px 0","0 8px 8px 0"],"& input":{borderRadius:["8px",null,null,"0 8px 8px 0","0 8px 8px 0"],minHeight:["40px",null,null,"56px"],"&:focus":{boxShadow:"unset"}}}}):(0,r.jsx)(y.Z,{sx:{width:"100%"}})})})})]})}N.displayName="HeaderHomePage";var v=a(94528),j=a(37095),w=a(9811),_=a(88998),I=a(76554),C=a(13149),S=a(53873),T=a(60183),E=a(37368),H=a.n(E),O=a(67231);let Z={willChange:"box-shadow",transition:"box-shadow 200ms ease-out","&:hover":{boxShadow:"0 0 14px rgba(32, 82, 179, 0.16)"}},R=(0,o.memo)(({url:e,label:t,iconUrl:a,imageElement:l,className:i,slug:n,onClick:s})=>(0,r.jsx)(H(),{href:e,passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,r.jsxs)(c.x,{as:"a",alt:t,sx:{width:["30%",null,"22.3%","18.6%",null,"128px"],height:["67px",null,"82px",null,"99px"],borderRadius:"6px",border:"1px solid",borderColor:["white",null,null,"neutral.200"],backgroundColor:"white",py:["6px",null,null,null,"12px"],px:["4px",null,"4px",null,"6px"],display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",".icon":{height:["16px",null,null,null,"24px"],width:["16px",null,null,null,"24px"],borderRadius:"100%",backgroundColor:"neutral.400"},img:{height:["16px",null,"24px"],width:"auto"},"@media screen and (max-width: 320px)":{width:"30%"},...Z},className:i,"data-testid":n&&`menu-category-${n}-button`,onClick:s,children:[!l&&!a&&(0,r.jsx)("span",{className:"icon"}),!l&&a&&(0,r.jsx)(O.Z,{src:a,alt:t,height:"24",loading:"eager",fetchPriority:"auto"}),l,(0,r.jsx)(v.Z,{as:"span",numberOfLines:2,sx:{mt:["3px",null,null,null,"8px"],fontSize:["12px",null,null,"14px"],fontWeight:700,textAlign:"center",color:"primary.500",lineHeight:[1.2,null,null,1.4],p:"2px 0",whiteSpace:"pre-line"},children:t})]})}));R.displayName="RootCategoryLink";let A=[_.s.truck,_.s["truck-body-trailer"],_.s["heavy-machinery"],_.s["agricultural-machinery"],_.s.pickup,_.s["passenger-car"],_.s.van,_.s.bus,_.s.motorbike,_.s.boat,_.s["part-engine"],_.s.equipment,_.s["wheel-tire"]],P=[{id:"goldMemberSection",label:"สมาชิกเหรียญทอง",dataTestId:"menu-gold-member-button",iconUrl:"/static/v3/images/icon-gold-ribbon-2x.png",zone:"GOLD_MEMBERSHIP_ZONE",positionName:"gold"},{id:"boostedSection",label:"ประกาศ HOT",dataTestId:"menu-boosted-button",iconUrl:"/static/v3/images/icon-badge-boost.svg",zone:"HOT_ZONE",positionName:"hot"},{id:"rodBaanSection",label:"เจ้าของขายเอง",dataTestId:"menu-rodbaan-button",iconUrl:"/static/v3/images/icon-badge-jkke.svg",zone:"JKKE_ZONE",positionName:"jkke"},{id:"fakkaiSection",label:"ฝากขาย",dataTestId:"menu-fakkai-button",iconUrl:"/static/v3/images/logo-t2h-tiny.svg",zone:"CONSIGNMENT_ZONE",positionName:"fakkai"}];function B({sx:e,platform:t="mobile",zoneCountList:a}){let{formStatus:l,sellerApplicationType:i}=(0,o.useContext)(j.SellerApplicationContext),n=(0,o.useRef)(null),s=(0,o.useRef)(0),[h,d]=(0,o.useState)(!0),[p,g]=(0,o.useState)(!1),m=i&&l&&"normal"!==l,[x,f]=(0,o.useState)(""),b=(0,o.useRef)(),y=(0,o.useCallback)((e,a,r)=>{(0,S.Z)({id:e,offsetTop:"mobile"===t?100:150,behavior:"smooth"}
1),(0,C.Z)({ga:{eventName:a,eventParams:{...r}}}),f(e)},[t]),k=P.map(e=>{let t=(a||[]).find(t=>t.zone===e.zone);return{...e,count:t?t.count:0}}).filter(e=>e.count>0);return(0,o.useEffect)(()=>{let e=()=>{let e=null;P.forEach(a=>{let r=document.getElementById(a.id);if(r){let l=r.getBoundingClientRect();l.top<=("mobile"===t?100:170)&&l.bottom>=("mobile"===t?100:170)&&(e=a.id)}}),e?(f(e),b.current&&b.current.scrollTo({left:"fakkaiSection"===e||"rodBaanSection"===e?b.current.scrollWidth:0,behavior:"smooth"})):f("")};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)},[t]),(0,o.useEffect)(()=>{let e=()=>{g(window.scrollY>=s.current),s.current=window.scrollY;let e=m?720:560,a=m?690:600;d(window.scrollY<=("mobile"===t?e:"desktop"===t?a:780))};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[m,t]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.x,{sx:{...e,backgroundColor:"neutral.100",p:"16px 0"},children:(0,r.jsx)(u.W,{children:(0,r.jsxs)(c.x,{sx:{display:"flex",flexWrap:"wrap",gap:"12px",justifyContent:"center"},children:[A.map(e=>(0,r.jsx)(R,{url:`/category/cat_${e.slug}`,label:"heavy-machinery"===e.slug?"เครื่องจักร":e.thaiName,iconUrl:e.image?.fullUrl,slug:e.slug,onClick:()=>{(0,C.Z)({ga:{eventName:"button-click-root-category",eventParams:{sectionName:"category-zone",rootCategory:e.slug}}})}},`root-cat_${e.slug}`)),(0,r.jsx)(R,{url:"/category/cat_service",label:"บริการ",imageElement:(0,r.jsx)(O.Z,{src:"/static/v3/images/icon-cat-service-1x.png",srcSet:"/static/v3/images/icon-cat-service-1x.png 1x, /static/v3/images/icon-cat-service-2x.png 2x",alt:"บริการ",height:"24",loading:"eager",fetchPriority:"auto"}),slug:"service",onClick:()=>{(0,C.Z)({ga:{eventName:"button-click-root-category",eventParams:{sectionName:"category-zone",rootCategory:"service"}}})}}),(0,r.jsx)(R,{url:"/category/cat_other",label:"ของมือสองอื่นๆ",imageElement:(0,r.jsx)(O.Z,{src:"/static/v3/images/icon-cat-others-1x.png",srcSet:"/static/v3/images/icon-cat-others-1x.png 1x, /static/v3/images/icon-cat-others-2x.png 2x",alt:"ของมือสองอื่นๆ",height:"24",loading:"eager",fetchPriority:"auto"}),"data-testid":"menu-category-other-button",slug:"other",onClick:()=>{(0,C.Z)({ga:{eventName:"button-click-root-category",eventParams:{sectionName:"category-zone",rootCategory:"other"}}})}})]})})}),m&&(0,r.jsx)(u.W,{children:(0,r.jsx)(w.Z,{showDetail:!0,sx:{mt:"16px"},btnClassName:(0,I.Z)("home-click-update-seller-application"),onClick:()=>{(0,C.Z)({ga:{eventName:"notification-click"}})}})}),k.length>0&&(0,r.jsx)(c.x,{sx:{position:"sticky",top:p?[0,null,null,null,"64px"]:["100px",null,null,null,"64px"],zIndex:10,px:h?["16px",null,null,"40px",0]:["16px",null,null,"40px","0"],py:h?"16px":0,transition:"opacity 200ms ease-in-out",opacity:1,boxShadow:h?"unset":"0 4px 8px -2px rgba(0,0,0,0.1)",borderTop:"1px solid",borderBottom:"1px solid",borderColor:h?"#fff":"#E3EAF3",bg:"#fff","@media screen and (min-width: 820px)":{top:"64px"}},children:(0,r.jsx)(c.x,{sx:{width:["100%",null,null,null,"100%","1108px"],margin:"0 auto"},children:(0,r.jsx)(c.x,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",overflowX:h?"hidden":["auto",null,null,null,"hidden"]},className:"hide-scrollbar",ref:b,children:(0,r.jsxs)(c.x,{sx:{flex:"none",width:h?"100%":[null,null,null,"100%"],display:"flex",justifyContent:"space-between",borderRadius:"8px",border:h?"1px solid":"unset",borderColor:h?"#E3EAF3":"transparent",".item":{width:h?"100%":["unset",null,null,"100%"],transition:"height 300ms ease-out",height:h?["76px",null,null,"62px","56px"]:"44px",backgroundColor:"white",borderLeft:"1px solid",borderLeftColor:h?"#E3EAF3":["transparent",null,null,null,"#E3EAF3"],borderBottom:"3px solid",borderBottomColor:"white",flexDirection:h?["column",null,null,null,"row"]:"row",alignItems:"center",justifyContent:"center",px:["4px",null,null,null,"unset"],cursor:"pointer","&:hover":{backgroundColor:["#fff",null,null,null,"#F2F6FD"],borderBottomColor:"#F2F6FD"},"& img":{width:"auto",height:"24px"},".title":{fontSize:["10px",null,null,null,"14px"],fontWeight:700,lineHeight:[1.5,null,null,null,1.4],color:"primary.500",textAlign:"center",px:h?["4px",null,null,"10px"]:"8px",pt:h?["4px",null,null,null,"initial"]:0,"@media screen and (max-width: 390px)":{px:h?"6px":"8px"},"@media screen and (max-width: 320px)":{px:h?0:"8px"}},...T.gr},".item:first-of-type":{borderRadius:h?"8px 0 0 8px":"unset",borderLeft:"none"},".item:last-child":{borderRadius:"0 8px 8px 0"},"& .active":{borderBottomColor:"primary.500","&:hover":{borderBottomColor:"primary.500"}},".overlay":{position:"absolute",top:0,bottom:0,right:0,width:"60px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",pointerEvents:"none"}},children:[k.map(e=>(0,r.jsxs)(c.x,{className:`item ${x===e.id?"active":""}`,onClick:()=>y(e.id,"button-click-shortcut",{elementName:e.positionName}),children:["fakkaiSection"===e.id?(0,r.jsx)("img",{src:e.iconUrl,alt:e.label,width:32,height:34}):(0,r.jsx)("img",{src:e.iconUrl,alt:e.label,width:24,height:24}),(0,r.jsx)(v.Z,{className:"title",children:e.label})]},e.id)),!h&&(0,r.jsx)("div",{className:"overlay"})]})})})}),(0,r.jsx)(c.x,{sx:{display:["block",null,null,null,"none"],height:"4px",backgroundColor:"neutral.100"}}),(0,r.jsx)("div",{ref:n})]})}B.displayName="PrimaryStaticSection";var F=a(48695),z=a(3457),L=a(89497),D=a(22565),U=a(34859),$=a(18085);async function W(e){let t=e&&"production"!==U.Gv?{headers:{"t-cache":"bypass"}}:void 0;return(await (0,$.Z)("/api/item/homepage/hot-zone",{target:U.uE,fetchOptions:t})).data||null}async function M(){return(await (0,$.Z)("/api/item/homepage/vdo-zone",{target:U.uE})).data||null}var q=a(29158);let Y=(0,o.memo)(({sx:e,platform:t="mobile"})=>(0,r.jsx)(q.Z,{sx:{background:"linear-gradient(89.83deg, rgba(252, 191, 6, 0.05) 5.04%, rgba(255, 246, 148, 0.05) 52.01%, rgba(252, 190, 6, 0.05) 99.97%)",borderColor:"#FFFAEC",".title-banner span":{background:"linear-gradient(89.83deg, #FCBF06 5.04%, #EBD000 99.97%)",WebkitBackgroun
1dClip:"text",WebkitTextFillColor:"transparent"},".benefit-link":{color:"primary.500",display:"inline-block",ml:"3px",textDecoration:"underline"},...e},title:"อัปเกรดสมาชิกเหรียญทองกับเรา ",titleSub:"รับประโยชน์พิเศษกว่าใคร",titleIcon:"\uD83C\uDFC5",description:(0,r.jsxs)("span",{children:["สมัครสมาชิกเหรียญทองเพื่อแสดงประกาศที่นี่ และรับสิทธิ ประโยชน์อื่น ๆ มากมาย",(0,r.jsx)(H(),{href:"/product/membership",passHref:!0,prefetch:!1,className:`${(0,I.Z)("home-click-upgrade-gold")} benefit-link`,onClick:()=>{(0,C.Z)({ga:{eventName:"button-click-upgrad-membership",eventParams:{sectionName:"gold",elementName:"see-more"}}})},children:"ดูสิทธิประโยชน์"})]}),buttonText:"อัปเกรดสมาชิก",buttonUrl:"/product/membership",className:(0,I.Z)("home-click-upgrade-gold"),sectionType:"gold",platform:t,onButtonClick:()=>{(0,C.Z)({ga:{eventName:"button-click-upgrad-membership",eventParams:{sectionName:"gold",elementName:"upgrade-membership"}}})}}));Y.displayName="GoldMemberListBanner";let G=(0,o.memo)(({sx:e,userHashId:t,platform:a="mobile"})=>(0,r.jsx)(q.Z,{sx:{background:"linear-gradient(90deg, rgba(249, 129, 32, 0.05) 6.69%, rgba(238, 5, 5, 0.05) 85.98%)",borderColor:"#FCE7E6",".title-banner span":{background:"linear-gradient(90deg, #F98120 6.69%, #EE0505 85.98%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},...e},title:"ขายสินค้าได้รวดเร็วยิ่งขึ้นด้วย",titleSub:"การดันประกาศ",titleIcon:"\uD83D\uDD25",description:"ดันประกาศสูงสุด เพื่อแสดงประกาศของคุณเป็นประกาศแรกใน หมวดหมู่การขายที่ต้องการ",buttonText:"ดันประกาศ",buttonUrl:`/u/${t}/`,className:(0,I.Z)("home-click-boost-hot"),sectionType:"hot",platform:a,onButtonClick:()=>
1{(0,C.Z)({ga:{eventName:"button-click-boost",eventParams:{sectionName:"hot"}}})}}));G.displayName="HotItemsBanner";var V=a(98264),X=a(86763),K=a.n(X),J=a(49338),Q=a(85700);function ee({data:e,sx:t,imageIndex:a}){let l=(0,o.useRef)(null),[i,n]=(0,o.useState)(0),s=(0,o.useCallback)(()=>{if(l.current){let e=l.current,t=0;for(let a=0;a<e.children.length;a+=1){let r=e.children.item(a);if(r&&r.getBoundingClientRect().left>0){t=a;break}}n(t)}},[]),u=(0,o.useMemo)(()=>K()(()=>s(),10),[s]),h=(0,o.useCallback)(u,[u]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z,{title:`สินค้ามาใหม่วันนี้ ${e.totalCount} รายการ`,iconUrl:"/static/v3/images/icon-badge-new.svg",viewMoreUrl:"/search/?withIn=24",className:(0,I.Z)("button-click-see-all"),sectionType:"new-product-today",isDisplayViewAllButton:e.items.length>0}),(0,r.jsxs)(c.x,{sx:{...t,position:"relative",pb:["24px",null,null,null,"unset"]},children:[(0,r.jsx)(c.x,{sx:{display:["flex",null,null,null,"grid"],flexFlow:["row nowrap",null,null,null,"unset"],gridTemplateColumns:[null,null,null,null,"repeat(5, 1fr)"],scrollSnapType:"x mandatory",ml:["16px",null,null,null,"unset"],gap:"12px",p:["16px",null,null,null,"16px 0"],overflowX:["auto",null,null,null,"unset"]},onScroll:h,ref:l,children:e.items.map(e=>{let t=["truck","agricultural-machinery","heavy-machinery","pickup","truck-body-trailer"].includes(e.rootCategorySlug||"");return(0,r.jsx)(c.x,{sx:{flex:["1 0 166px",null,null,null,"unset"],borderRadius:"8px",display:"flex",gridTemplateColumns:"100px 1fr",scrollSnapAlign:"start"},children:(0,r.jsx)(H(),{href:`/category/cat_${e.rootCategorySlug}/?withIn=24`,passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,r.jsxs)(c.x,{as:"a",sx:{position:"relative",overflow:"hidden",borderRadius:"8px",cursor:"pointer",height:["120px",null,null,null,"150px"],img:{objectFit:"cover",objectPosition:"center",width:"100%",height:"auto",borderRadius:"8px"},"&:hover img":{transform:"scale(1.1)",transition:"transform 400ms"}},onClick:()=>
1{(0,C.Z)({ga:{eventName:"button-click-new-product",eventParams:{sectionName:"new-product-today",rootCategory:e.rootCategorySlug}}})},"data-testid":"home-new-product-today-more-button",children:[t?(0,r.jsx)("img",{src:`/static/v3/images/home-page-new-arrival/${e.rootCategorySlug}-${a}.png`,alt:`${e.rootCategorySlug}-${a}`,width:"215",height:"150"}):(0,r.jsx)("img",{src:`/static/v3/images/home-page-new-arrival/${e.rootCategorySlug}.png`,alt:`${e.rootCategorySlug}`,width:"215",height:"150"}),(0,r.jsxs)(c.x,{sx:{position:"absolute",left:0,bottom:0,p:["12px",null,null,null,"16px"],width:"100%",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",background:"linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%)"},children:[(0,r.jsxs)(v.Z,{as:"div",sx:{fontWeight:700,color:"white",lineHeight:1.3,fontSize:["12px",null,null,null,"14px"],display:"inline-flex",alignItems:"center"},numberOfLines:2,children:[_.s[e.rootCategorySlug]?.thaiName,(0,r.jsx)(J.Z,{size:20,sx:{display:"flex",transformOrigin:"center",fill:"white",transform:"rotateZ(-90deg)",mt:"2px"}})]}),(0,r.jsx)(v.Z,{as:"div",sx:{variant:"text.xs",color:"white"},numberOfLines:1,children:`${e.count} ประกาศ`})]})]})})},e.rootCategorySlug)})}),(0,r.jsx)(c.x,{sx:{position:"absolute",bottom:"16px",left:"50%",transform:"translateX(-50%)",display:["flex",null,null,null,"none"],gap:"4px",alignItems:"center",span:{width:"6px",height:"6px",borderRadius:"3px",backgroundColor:"#E1F0FF",willChange:"background-color, width",transformOrigin:"center",transition:"background-color 200ms ease-out, width 200ms ease-out","&.active":{backgroundColor:"primary.500",width:"16px"}}},children:e.items.map((e,t)=>(0,r.jsx)("span",{className:t===i?"active":void 0},e.rootCategorySlug))})]})]})}ee.displayName="NewArrivalList";var et=a(79809),ea=a(26331),er=a(22460),el=a(81407),ei=a(65928);function en({tag:e="",tags:t,iconUrl:a,sx:l}){return(0,r.jsxs)(v.Z,{as:"span",numberOfLines:1,sx:{userSelect:"none",p:"2px 4px",height:"20px",display:"flex",alignItems:"center",borderRadius:"12px",color:"primary.500",fontSize:"12px",cursor:"default",".icon-tag":{mr:"4px",width:"auto",height:"16px"},backgroundColor:"#D7E4FF",...l},onClick:e=>e.stopPropagation(),children:[a&&(0,r.jsxs)(r.Fragment,{children:["string"==typeof a&&(0,r.jsx)("img",{src:a,width:"12",height:"12",className:"icon-tag",alt:e,loading:"eager"}),"object"==typeof a&&(0,r.jsx)("img",{className:"icon-tag",src:a.x2,srcSet:`${a.x1} 1x, ${a.x2} 2x`,width:"16",height:"16",alt:e,loading:"eager"})]}),e||"",t?.length&&t.map((e,t)=>(0,r.jsxs)(v.Z,{as:"span",children:[0!==t&&(0,r.jsx)("span",{style:{padding:"0 6px"},children:"|"}),e]},`tag-${e.replaceAll(" ","-")}`))]})}en.displayName="SellerTags";var es=a(15763);let eo={SELLER:{title:"ผู้ขายยืนยันตัวตน",badge:"icon-badge-seller-verify.svg",textColor:"#107D6D",badgeColor:"#DBF2EE"},TENT:{title:"เต็นท์รถ",badge:"icon-badge-tent.svg",textColor:"#503ECB",badgeColor:"#EFEDFF"},"quick-post":{title:"ผู้ขายใหม่",badge:"icon-badge-quick-post.svg",textColor:"#FF7740",badgeColor:"#FFE7DD"}},ec=(0,o.memo)(({data:e,suffix:t,hideImageList:a=!1})=>{let l=(0,ei.Z)({op:"<",breakpoint:"desktop"}),i=e.user?.sellerTypeDisplay?eo[e.user.sellerTypeDisplay]:void 0,n=e.user?.userRoleStateWorkflow?e.user.userRoleStateWorkflow.replace(/W3_SELLER_/gi,"").replace(/_STATE/gi,""):null,s=e.user?.province?el.N.find(t=>t.slug===e.user?.province):void 0;return(0,r.jsx)(H(),{href:(0,es.Z)(e.user?.hashId,e.user.displayName),passHref:!0,prefetch:!1,legacyBehavior:!0,title:e.user?.displayName?e.user.displayName:"",children:(0,r.jsxs)(c.x,{as:"a",sx:{display:"grid",gridTemplateColumns:[a?"1fr":"auto 1fr auto",null,null,"1fr"],gridTemplateRows:[a?"repeat(5, auto)":"repeat(3, auto)",null,null,"repeat(5, auto)"],boxShadow:"gold"===t?"none":"light",bg:"#fff",borderRadius:"8px",overflow:"hidden",p:"gold"===t?"12px":"24px",placeContent:[null,null,null,"center"],position:"relative",cursor:"pointer"},"data-testid":`section-${t}-card-item`,onClick:()=>
1{(0,C.Z)({ga:{eventName:"card-click-seller-shop",eventParams:{sectionName:t,sellerHashId:e.user.hashId}}})},children:["gold"===t&&(0,r.jsxs)(c.x,{sx:{".bg-desktop":{display:"block",width:"100%",height:"auto",pointerEvents:"none",position:"absolute",top:0,left:0},".bg-mobile":{display:"none",pointerEvents:"none",position:"absolute",top:0,left:0},".bg-tablet":{position:"absolute",top:0,left:0,width:"100%",display:"none",pointerEvents:"none"},"@media screen and (min-width: 768px) and (max-width: 1023px)":{".bg-tablet":{display:"block"},".bg-desktop":{display:"none"}},"@media screen and (max-width: 767px)":{".bg-mobile":{display:"block"},".bg-desktop":{display:"none"},".bg-tablet":{display:"none"}}},children:[(0,r.jsx)("img",{src:"/static/v3/images/bg-card-gold-member-desktop-1x.png",srcSet:"/static/v3/images/bg-card-gold-member-desktop-1x.png 1x, /static/v3/images/bg-card-gold-member-desktop-2x.png 2x",alt:"bg-card-gold-member-desktop",className:"bg-desktop"}),(0,r.jsx)("img",{src:"/static/v3/images/bg-card-gold-member-tablet-1x.png",srcSet:"/static/v3/images/bg-card-gold-member-tablet-1x.png 1x, /static/v3/images/bg-card-gold-member-tablet-2x.png 2x",alt:"bg-card-gold-member-tablet",className:"bg-tablet"}),(0,r.jsx)("img",{src:"/static/v3/images/bg-card-gold-member-mobile-1x.png",srcSet:"/static/v3/images/bg-card-gold-member-mobile-1x.png 1x, /static/v3/images/bg-card-gold-member-mobile-2x.png 2x",alt:"bg-card-gold-member-mobile",className:"bg-mobile"})]}),(0,r.jsx)(c.x,{sx:{gridArea:[a?"1 / 1 / 2 / 2":"1 / 1 / 3 / 2",null,null,"1 / 1 / 2 / 2"],pr:["8px",null,null,null,"unset"],display:"flex",justifyContent:"center"},children:(0,r.jsxs)(c.x,{sx:{width:"72px",height:"72px",borderRadius:"100%",background:"gold"===t?"linear-gradient(89.83deg, #FCE1A1 5.04%, #FFFAE6 52.01%, #DCB662 99.97%)":"unset",p:"gold"===t?"2px":"0",margin:"gold"===t?"12px 0 12px 0":"0",position:"relative",boxShadow:"light",".seller-image":{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",border:"2px solid",borderColor:"gold"===t?"#fff":"transparent",borderRadius:"100%"},".membership-icon":{position:"absolute",right:"0px",bottom:"-8px",zIndex:2,img:{width:"18px",height:"24px"}}},children:[e.user?.profileImageFullUrl?(0,r.jsx)("img",{className:"seller-image",src:e.user.profileImageFullUrl,alt:`user-${e.user.hashId}`,width:"64",height:"64",loading:"eager"}):(0,r.jsx)("img",{className:"seller-image",src:"/static/v3/images/default-profile.png",alt:`user-${e.user?.hashId}`,width:"64",height:"64",loading:"eager"}),n&&(0,r.jsx)(c.x,{className:"membership-icon",children:(0,r.jsx)("img",{src:`/static/v3/images/icon-${n.toLowerCase()}-ribbon-1x.png`,srcSet:`/static/v3/images/icon-${n.toLowerCase()}-ribbon-1x.png 1x, /static/v3/images/icon-${n.toLowerCase()}-ribbon-2x.png 2x`,width:"18",height:"24",alt:`user-${e.user.hashId}-role`,loading:"eager"})})]})}),(0,r.jsxs)(c.x,{sx:{gridArea:[a?"2 / 1 / 3 / 2":"1 / 2 / 2 / 3",null,null,"2 / 1 / 3 / 2"],zIndex:2},children:[(0,r.jsxs)(c.x,{sx:{display:"flex",alignItems:"center",justifyContent:[a?"center":"flex-start",null,null,"center"]},children:[(0,r.jsx)(v.Z,{as:"div",sx:{variant:"text.sm",color:"primary.500",fontWeight:700,textAlign:[null,null,null,null,"center"],py:"4px",lineHeight:1.75},numberOfLines:1,className:"title-section",children:e.user?.displayName}),(0,r.jsx)(J.Z,{size:22,sx:{transformOrigin:"center",fill:"primary.500",transform:"rotateZ(-90deg)"}})]}),(0,r.jsxs)(c.x,{sx:{display:"flex",alignItems:"center",justifyContent:[a?"center":"flex-start",null,null,"center"]},children:[i?(0,r.jsx)(c.x,{sx:{cursor:"default"},onClick:e=>e.stopPropagation(),children:(0,r.jsx)(en,{tag:i.title,iconUrl:`/static/v3/images/${i.badge}`,sx:{backgroundColor:`${i?.badgeColor}`,color:`${i?.textColor}`,p:"4px 8px",height:"24px"}})}):(0,r.jsx)(c.x,{sx:{height:"24px"}}),e.user?.userTags&&(0,r.jsx)(en,{tag:e.user.userTags[0],sx:{ml:"4px",p:"4px 8px",height:"24px"}})]})]}),(0,r.jsxs)(c.x,{sx:{gridArea:[a?"4 / 1 / 5 / 2":"2 / 2 / 3 / 4",null,null,"4 / 1 / 5 / 2"],display:"flex",alignItems:"center",flexFlow:"row wrap",justifyContent:[a?"center":"flex-start",null,null,"center"],mt:"4px",zIndex:2,"& span":{color:"neutral.500",fontSize:"12px",display:"flex",flexFlow:"row nowrap",alignItems:"center"}},children:[(0,r.jsxs)(c.x,{as:"span",sx:{"&:after":{content:'"|"',color:"neutral.200",display:[a?"none":"inline-flex",null,null,"inline-flex"],mx:"3px",transformOrigin:"center",transform:"scaleY(1.3)"}},children:[(0,r.jsx)(ea.Z,{size:16,sx:{fill:"neutral.500",flex:"0 0 16px"}}),(0,r.jsx)(v.Z,{as:"span",numberOfLines:1,sx:{pl:"2px"},children:s?s.thaiName:"ไม่ระบุ"})]}),l&&a?(0,r.jsxs)(v.Z,{as:"span",sx:{mx:"6px"},children:[(0,r.jsx)(er.Z,{size:16,sx:{fill:"neutral.500",flex:"0 0 16px",mr:"2px"}}),`${e.totalPublishedItems} ประกาศ`]}):(0,r.jsxs)(v.Z,{as:"span",children:[(0,r.jsx)(er.Z,{size:16,sx:{fill:"neutral.500",flex:"0 0 16px",mr:"2px",display:a?"none":"inline-flex"}}),`${e.totalPublishedItems} ประกาศ`]})]}
1),!a&&e.items&&e.items.length>0?(0,r.jsx)(c.x,{sx:{gridArea:[a?"5 / 1 / 6 / 2":"3 / 1 / 4 / 4",null,null,"5 / 1 / 6 / 2"],display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"8px",pt:["8px",null,null,"12px"],position:"relative",img:{aspectRatio:"4 / 3",width:"100%",height:["100%",null,null,"48px"],objectFit:"cover",objectPosition:"center",borderRadius:"8px"}},children:e.items.map((a,l)=>(0,r.jsx)("img",{src:a.imageUrl,alt:`item-${a.hashId}-${l}`,loading:"lazy"},`${e.user?.hashId}_${a.hashId}_${t}`))}):(0,r.jsx)(c.x,{sx:{gridArea:[a?"5 / 1 / 6 / 2":"3 / 1 / 4 / 4",null,null,"5 / 1 / 6 / 2"],display:"grid",gridTemplateColumns:"repeat(3, 1fr)",height:"60px",pt:["8px",null,null,"12px"]}})]})})});function eu({title:e,sx:t,data:a,banner:l,iconUrl:i,sectionType:n,viewAllUrl:s,className:u,isDisableSection:d=!1}){let{device:p}=(0,o.useContext)(h.I),g=p?.platform==="desktop"?8:p?.platform==="tablet"?6:4,[m,x]=(0,o.useState)(g),f=(0,o.useMemo)(()=>{if(!a)return[];let e=m>a.length?a.length:m;return a.slice(0,e)},[m,a]),b=(0,o.useCallback)(()=>{if(a&&a.length>m){let e=m+g;e>a.length&&(e=a.length),x(e)}},[m,g,a]);return(0,r.jsx)(c.x,{sx:{...t},children:!d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Q.Z,{title:e,iconUrl:i,viewMoreUrl:s,className:u,sectionType:n,isDisplayViewAllButton:a?.length>0}),"gold"===n&&a&&a.length>0&&(0,r.jsx)(c.x,{sx:{display:"grid",gridTemplateColumns:["1fr",null,null,"repeat(3, 1fr)","repeat(4, 1fr)"],gap:"12px",mt:"16px",".card-item a:hover":{backgroundColor:"neutral.100"},"& :hover .title-section":{textDecoration:"underline"}},children:a.map((e,t)=>(0,r.jsx)(c.x,{className:"card-item",sx:{background:"linear-gradient(89.83deg, #E5C379 5.04%, #F9F0DD 52.01%, #E4C379 99.97%)",p:"1px",borderRadius:"8px"},children:(0,r.jsx)(ec,{data:e,suffix:n})},`shop_${e.user?.hashId}_${n}_${t}`))}),"recommended"===n&&a&&a.length>0&&(0,r.jsxs)(c.x,{sx:{position:"relative"},children:[(0,r.jsx)(c.x,{sx:{display:"grid",gridTemplateColumns:["repeat(2, 1fr)",null,null,"repeat(3, 1fr)","repeat(4, 1fr)"],gap:"12px",mt:"16px"},children:f.map((e,t)=>(0,r.jsx)(ec,{data:e,suffix:n,hideImageList:!0},`shop_${e.user?.hashId}_${n}_${t}`))}),a.length>8&&m<a.length&&(0,r.jsx)(c.x,{sx:{display:["block",null,null,null,"none"],height:"180px",background:"linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 60%, rgb(255, 255, 255) 100%)",position:"absolute",bottom:0,left:0,width:"100%"}}),a.length>8&&m<a.length&&(0,r.jsxs)(et.z,{variant:"contained",color:"primary.500",sx:{backgroundColor:"#E1F0FF",mt:"16px",mx:"auto",fontSize:"14px",fontWeight:700,":hover":{color:"primary.700",svg:{fill:"primary.700"}}},onClick:b,className:(0,I.Z)("home-click-view-more-tent-item"),"data-testid":`home-${n}-more-button`,children:["ดูเพิ่มเติม",(0,r.jsx)(J.Z,{sx:{transformOrigin:"center",fill:"primary.500"}})]})]}),l]})})}ec.displayName="ShopCard",eu.displayName="ShopCardListSection";let eh=i()(()=>a.e(9442).then(a.bind(a,9442)),{loadableGenerated:{webpack:()=>[9442]},ssr:!1}),ed=i()(()=>a.e(4993).then(a.bind(a,14993)),{loadableGenerated:{webpack:()=>[14993]},ssr:!0}),ep=i()(()=>Promise.all([a.e(7774),a.e(9587)]).then(a.bind(a,16822)),{loadableGenerated:{webpack:()=>[16822]},ssr:!1,loading:()=>(0,r.jsx)(V.Z,{sx:{mt:["32px",null,null,null,"40px"]}})}),eg=async({cache:e=!1})=>{let[t,a]=await Promise.all([W(e),M()]);return{hotDataFetcher:t,vdoDataFetcher:a}};function em({sx:e,platform:t="mobile",adsData:a,newArrivalData:l,goldSellerItems:i,imageIndex:n}){let{authUser:s}=(0,o.useContext)(h.I),{query:u}=(0,z.useRouter)(),[d,p]=(0,o.useState)([]),[g,m]=(0,o.useState)([]),{collectAllCardHashIds:x}=(0,D.Z)([]);(0,L.ZP)({cache:"1"===u.nc},eg,{revalidateOnFocus:!1,onSuccess:e=>{p(e.hotDataFetcher||[]),m(e.vdoDataFetcher||[]),x([...e.hotDataFetcher||[],...e.vdoDataFetcher||[]].map(({hashId:e})=>e).filter(e=>!!e))}});let f=s?.isSeller&&"W13_QUICKPOST_STATE"!==s.quickpostUserWorkflow;return(0,r.jsxs)(c.x,{sx:{...e},children:[l?.totalCount>0&&(0,r.jsx)(ee,{data:l,sx:{mx:["-16px",null,null,"unset"],mb:["16px",null,null,null,"24px"]},imageIndex:n}),(0,r.jsx)(ed,{adsName:"homepage1",adsData:a?.homepage1||null,width:{mobile:320,desktop:970},height:{mobile:100,desktop:90},isSkeletonShow:!1,sx:{mb:["32px",null,null,null,"40px"]}}),(0,r.jsx)(c.x,{id:"goldMemberSection",children:(0,r.jsx)(eu,{title:"ร้านค้าสมาชิกเหรียญทอง",iconUrl:{x1:"/static/v3/images/icon-gold-ribbon-1x.png",x2:"/static/v3/images/icon-gold-ribbon-2x.png"},data:i,banner:f&&(0,r.jsx)(Y,{sx:{mt:"16px"},platform:t}),sx:{mb:["32px",null,null,null,"40px"]},sectionType:"gold",viewAllUrl:"/search/?role=seller_gold",className:(0,I.Z)("home-click-view-all-gold-item"),isDisableSection:i?.length<1&&!s?.isSellerVerify})}),(0,r.jsx)(ed,{adsName:"homepage2",adsData:a?.homepage2||null,width:{mobile:320,desktop:970},height:{mobile:100,desktop:90},isSkeletonShow:!1}),(0,r.jsx)(c.x,{id:"boostedSection",children:(0,r.jsx)(ep,{title:"ประกาศ HOT",iconUrl:"/static/v3/images/icon-badge-boost.svg",items:d,banner:s?.isSeller&&(0,r.jsx)(G,{sx:{mt:"16px"},userHashId:s?.userHashId,platform:t}),sx:{mt:["32px",null,null,null,"40px"]},viewAllUrl:"/search/?hotItem=true",className:(0,I.Z)("home-click-view-all-hot-item"),classNameLoadMore:(0,I.Z)("home-click-view-more-hot-item"),sectionType:"hot",isDisableSection:d?.length<1&&!s?.isSeller})}),(0,r.jsx)(eh,{data:g})]})}function ex({sx:e}){return(0,r.jsxs)(c.x,{sx:{display:"flex",flexFlow:"row wrap",...e,"& .item-link":{display:"inline-flex",alignItems:"center",fontSize:"14px",color:"neutral.500",letterSpacing:.3,"&:not(:last-of-type):after":{content:'"|"',display:"inline-flex",mx:"8px",color:"neutral.300",lineHeight:1,transform:"translateY(-2px) scaleY(1.3)"},"&:hover":{color:"primary.700",textDecoration:"underline"}}},children:[(0,r.jsx)(H(),{href:"/category/cat_truck/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก",className:"item-link",children:"รถบรรทุก"}),(0,r.jsx)(H(),{href:"/category/cat_truck/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุกมือสอง",className:"item-link",children:"รถบรรทุกมือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_10wheel-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"สิบล้อมือสอง",className:"item-link",children:"สิบล้อมือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_6wheel-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"หกล้อมือสอง",className:"item-link",children:"หกล้อมือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_4wheel-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก 4 ล้อ",className:"item-link",children:"รถบรรทุก 4 ล้อ"}),(0,r.jsx)(H(),{href:"/category/cat_truck_6wheel-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก 6 ล้อ",className:"item-link",children:"รถบรรทุก 6 ล้อ"}),(0,r.jsx)(H(),{href:"/category/cat_truck_10wheel-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก 10 ล้อ",className:"item-link",children:"รถบรรทุก 10 ล้อ"}),(0,r.jsx)(H(),{href:"/category/cat_truck_4wheel-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"4 ล้อ มือสอง",className:"item-link",children:"4 ล้อ มือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_6wheel-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"6 ล้อ มือสอง",className:"item-link",children:"6 ล้อ มือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_6wheel-truck%2Bbrand_brand-1-isuzu/",target:"_blank",passHref:!0,prefetch:!1,title:"6 ล้อ ISUZU",className:"item-link",children:"6 ล้อ ISUZU"}),(0,r.jsx)(H(),{href:"/category/cat_truck_6wheel-truck%2Bbrand_brand-7-hino/",target:"_blank",passHref:!0,prefetch:!1,title:"6 ล้อ HINO",className:"item-link",children:"6 ล้อ HINO"}),(0,r.jsx)(H(),{href:"/category/cat_truck_10wheel-truck%2Bbrand_brand-1-isuzu/",target:"_blank",passHref:!0,prefetch:!1,title:"10 ล้อ ISUZU",className:"item-link",children:"10 ล้อ ISUZU"}),(0,r.jsx)(H(),{href:"/category/cat_truck_10wheel-truck%2Bbrand_brand-7-hino/",target:"_blank",passHref:!0,prefetch:!1,title:"10 ล้อ HINO",className:"item-link",children:"10 ล้อ HINO"}),(0,r.jsx)(H(),{href:"/category/cat_truck_truck-body-dump/",target:"_blank",passHref:!0,prefetch:!1,title:"รถดั๊มพ์",className:"item-link",children:"รถดั๊มพ์"}),(0,r.jsx)(H(),{href:"/category/cat_truck_truck-body-dump/",target:"_blank",passHref:!0,prefetch:!1,title:"รถดั้มพ์มือสอง",className:"item-link",children:"รถดั้มพ์มือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_10wheel-tractor-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"หัวลากมือสอง",className:"item-link",children:"หัวลากมือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_10wheel-tractor-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"เทรลเลอร์มือสอง",className:"item-link",children:"เทรลเลอร์มือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_truck_10wheel-tractor-truck/",target:"_blank",passHref:!0,prefetch:!1,title:"หัวลาก",className:"item-link",children:"หัวลาก"}),(0,r.jsx)(H(),{href:"/category/cat_truck_truck-body-full-trailer-body/",target:"_blank",passHref:!0,prefetch:!1,title:"รถพ่วงแม่ลูก",className:"item-link",children:"รถพ่วงแม่ลูก"}),(0,r.jsx)(H(),{href:"/category/cat_truck_truck-body-flat-bed/",target:"_blank",passHref:!0,prefetch:!1,title:"พื้นเรียบ",className:"item-link",children:"พื้นเรียบ"}
1),(0,r.jsx)(H(),{href:"/category/cat_truck_truck-body-slide-on/",target:"_blank",passHref:!0,prefetch:!1,title:"รถสไลด์",className:"item-link",children:"รถสไลด์"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery_hvmc-type-backhoe/",target:"_blank",passHref:!0,prefetch:!1,title:"แบคโฮ",className:"item-link",children:"แบคโฮ"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery_hvmc-type-motor-graders-scrapers/",target:"_blank",passHref:!0,prefetch:!1,title:"รถเกรด",className:"item-link",children:"รถเกรด"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery_hvmc-type-dozers/",target:"_blank",passHref:!0,prefetch:!1,title:"รถดันดิน",className:"item-link",children:"รถดันดิน"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery_hvmc-type-smooth-wheel-road-roller/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบด",className:"item-link",children:"รถบด"}),(0,r.jsx)(H(),{href:"/category/cat_agricultural-machinery_agricultural-type-tractor/",target:"_blank",passHref:!0,prefetch:!1,title:"รถไถ",className:"item-link",children:"รถไถ"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery_hvmc-type-crane_crane-type-truck-crane/",target:"_blank",passHref:!0,prefetch:!1,title:"รถเครน",className:"item-link",children:"รถเครน"}),(0,r.jsx)(H(),{href:"/category/cat_agricultural-machinery_agricultural-type-combine-harvesters/",target:"_blank",passHref:!0,prefetch:!1,title:"รถเกี่ยวข้าว",className:"item-link",children:"รถเกี่ยวข้าว"}),(0,r.jsx)(H(),{href:"/category/cat_agricultural-machinery_agricultural-type-e-taen-tractor/",target:"_blank",passHref:!0,prefetch:!1,title:"รถอีแต๋น",className:"item-link",children:"รถอีแต๋น"}),(0,r.jsx)(H(),{href:"/category/cat_agricultural-machinery_agricultural-type-mower/",target:"_blank",passHref:!0,prefetch:!1,title:"รถตัดหญ้า",className:"item-link",children:"รถตัดหญ้า"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ",className:"item-link",children:"รถกระบะ"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะมือสอง",className:"item-link",children:"รถกระบะมือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_pickup_pickup-double-cab/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ 4 ประตู",className:"item-link",children:"รถกระบะ 4 ประตู"}),(0,r.jsx)(H(),{href:"/category/cat_pickup_pickup-space-cab/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะตอนครึ่ง",className:"item-link",children:"รถกระบะตอนครึ่ง"}),(0,r.jsx)(H(),{href:"/category/cat_pickup_pickup-single-cab/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะตอนเดียว",className:"item-link",children:"รถกระบะตอนเดียว"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-1-isuzu/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ ISUZU",className:"item-link",children:"รถกระบะ ISUZU"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-3-toyota/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ TOYOTA",className:"item-link",children:"รถกระบะ TOYOTA"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-543-ford/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ Ford",className:"item-link",children:"รถกระบะ Ford"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสองกระบะ",className:"item-link",children:"รถมือสองกระบะ"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง",className:"item-link",children:"รถมือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car%2Bbrand_brand-1-isuzu/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง ISUZU",className:"item-link",children:"รถมือสอง ISUZU"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-3-toyota/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง TOYOTA",className:"item-link",children:"รถมือสอง TOYOTA"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-5-honda/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง HONDA",className:"item-link",children:"รถมือสอง HONDA"}),(0,r.jsx)(H(),{href:"/category/cat_van/",target:"_blank",passHref:!0,prefetch:!1,title:"รถตู้มือสอง",className:"item-link",children:"รถตู้มือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_motorbike/",target:"_blank",passHref:!0,prefetch:!1,title:"มอเตอร์ไซค์มือสอง",className:"item-link",children:"มอเตอร์ไซค์มือสอง"}),(0,r.jsx)(H(),{href:"/category/cat_other/?sortBy=newest",target:"_blank",passHref:!0,prefetch:!1,title:"ของมือสอง",className:"item-link",children:"ของมือสอง"})]})}function ef({sx:e}){return(0,r.jsxs)(c.x,{sx:{display:"flex",flexFlow:"row wrap",...e,"& .item-link":{display:"inline-flex",alignItems:"center",fontSize:"14px",color:"neutral.500",letterSpacing:.3,"&:not(:last-of-type):after":{content:'"|"',display:"inline-flex",mx:"8px",color:"neutral.300",lineHeight:1,transform:"translateY(-2px) scaleY(1.3)"},"&:hover":{color:"primary.700",textDecoration:"underline"}}},children:[(0,r.jsx)(H(),{href:"/category/cat_truck%2Bprovince_กรุงเทพ/",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถบรรทุกมือสอง กรุงเทพฯ",children:"ซื้อขายรถบรรทุกมือสอง กรุงเทพฯ"}),(0,r.jsx)(H(),{href:"/category/cat_truck/?area=The+Central",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถบรรทุกมือสอง ภาคกลาง",children:"ซื้อขายรถบรรทุกมือสอง ภาคกลาง"}),(0,r.jsx)(H(),{href:"/category/cat_truck/?area=The+Northern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถบรรทุกมือสอง ภาคเหนือ",children:"ซื้อขายรถบรรทุกมือสอง ภาคเหนือ"}),(0,r.jsx)(H(),{href:"/category/cat_truck/?area=The+Northeastern+(Isarn)",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถบรรทุกมือสอง ภาคอีสาน",children:"ซื้อขายรถบรรทุกมือสอง ภาคอีสาน"}),(0,r.jsx)(H(),{href:"/category/cat_truck/?area=The+Eastern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถบรรทุกมือสอง ภาคตะวันออก",children:"ซื้อขายรถบรรทุกมือสอง ภาคตะวันออก"}),(0,r.jsx)(H(),{href:"/category/cat_truck/?area=The+Western",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถบรรทุกมือสอง ภาคตะวันตก",children:"ซื้อขายรถบรรทุกมือสอง ภาคตะวันตก"}),(0,r.jsx)(H(),{href:"/category/cat_truck/?area=The+Southern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถบรรทุกมือสอง ภาคใต้",children:"ซื้อขายรถบรรทุกมือสอง ภาคใต้"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car%2Bprovince_กรุงเทพ/",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถยนต์มือสอง กรุงเทพฯ",children:"ซื้อขายรถยนต์มือสอง กรุงเทพฯ"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car/?area=The+Central",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถยนต์มือสอง ภาคกลาง",children:"ซื้อขายรถยนต์มือสอง ภาคกลาง"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car/?area=The+Northern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถยนต์มือสอง ภาคเหนือ",children:"ซื้อขายรถยนต์มือสอง ภาคเหนือ"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car/?area=The+Northeastern+(Isarn)",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถยนต์มือสอง ภาคอีสาน",children:"ซื้อขายรถยนต์มือสอง ภาคอีสาน"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car/?area=The+Eastern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถยนต์มือสอง ภาคตะวันออก",children:"ซื้อขายรถยนต์มือสอง ภาคตะวันออก"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car/?area=The+Western",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถยนต์มือสอง ภาคตะวันตก",children:"ซื้อขายรถยนต์มือสอง ภาคตะวันตก"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car/?area=The+Southern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถยนต์มือสอง ภาคใต้",children:"ซื้อขายรถยนต์มือสอง ภาคใต้"}),(0,r.jsx)(H(),{href:"/category/cat_pickup%2Bprovince_กรุงเทพ/",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถก
1ระบะมือสอง กรุงเทพฯ",children:"ซื้อขายรถกระบะมือสอง กรุงเทพฯ"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/?area=The+Central",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถกระบะมือสอง ภาคกลาง",children:"ซื้อขายรถกระบะมือสอง ภาคกลาง"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/?area=The+Northern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถกระบะมือสอง ภาคเหนือ",children:"ซื้อขายรถกระบะมือสอง ภาคเหนือ"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/?area=The+Northeastern+(Isarn)",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถกระบะมือสอง ภาคอีสาน",children:"ซื้อขายรถกระบะมือสอง ภาคอีสาน"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/?area=The+Eastern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถกระบะมือสอง ภาคตะวันออก",children:"ซื้อขายรถกระบะมือสอง ภาคตะวันออก"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/?area=The+Western",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถกระบะมือสอง ภาคตะวันตก",children:"ซื้อขายรถกระบะมือสอง ภาคตะวันตก"}),(0,r.jsx)(H(),{href:"/category/cat_pickup/?area=The+Southern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายรถกระบะมือสอง ภาคใต้",children:"ซื้อขายรถกระบะมือสอง ภาคใต้"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery%2Bprovince_กรุงเทพ/",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายเครื่องจักรกลมือสอง กรุงเทพฯ",children:"ซื้อขายเครื่องจักรกลมือสอง กรุงเทพฯ"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery/?area=The+Central",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายเครื่องจักรกลมือสอง ภาคกลาง",children:"ซื้อขายเครื่องจักรกลมือสอง ภาคกลาง"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery/?area=The+Northern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายเครื่องจักรกลมือสอง ภาคเหนือ",children:"ซื้อขายเครื่องจักรกลมือสอง ภาคเหนือ"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery/?area=The+Northeastern+(Isarn)",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายเครื่องจักรกลมือสอง ภาคอีสาน",children:"ซื้อขายเครื่องจักรกลมือสอง ภาคอีสาน"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery/?area=The+Eastern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายเครื่องจักรกลมือสอง ภาคตะวันออก",children:"ซื้อขายเครื่องจักรกลมือสอง ภาคตะวันออก"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery/?area=The+Western",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายเครื่องจักรกลมือสอง ภาคตะวันตก",children:"ซื้อขายเครื่องจักรกลมือสอง ภาคตะวันตก"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery/?area=The+Southern",target:"_blank",passHref:!0,prefetch:!1,className:"item-link",title:"ซื้อขายเครื่องจักรกลมือสอง ภาคใต้",children:"ซื้อขายเครื่องจักรกลมือสอง ภาคใต้"})]})}function eb({sx:e}){return(0,r.jsxs)(c.x,{sx:{display:"flex",flexFlow:"row wrap",...e,"& .item-link":{display:"inline-flex",alignItems:"center",fontSize:"14px",color:"neutral.500",letterSpacing:.3,"&:not(:last-of-type):after":{content:'"|"',display:"inline-flex",mx:"8px",color:"neutral.300",lineHeight:1,transform:"translateY(-2px) scaleY(1.3)"},"&:hover":{color:"info.500"}}},children:[(0,r.jsx)(H(),{href:"/category/cat_truck+brand_brand-1-isuzu/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก ISUZU",className:"item-link",children:"รถบรรทุก ISUZU"}),(0,r.jsx)(H(),{href:"/category/cat_truck+brand_brand-7-hino/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก HINO",className:"item-link",children:"รถบรรทุก HINO"}),(0,r.jsx)(H(),{href:"/category/cat_truck+brand_brand-1105-mitsubishi-fuso/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก FUSO",className:"item-link",children:"รถบรรทุก FUSO"}),(0,r.jsx)(H(),{href:"/category/cat_truck+brand_brand-1813-ud/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก UD",className:"item-link",children:"รถบรรทุก UD"}),(0,r.jsx)(H(),{href:"/category/cat_truck+brand_brand-1874-volvo/",target:"_blank",passHref:!0,prefetch:!1,title:"รถบรรทุก VOLVO",className:"item-link",children:"รถบรรทุก VOLVO"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-1-isuzu/",target:"_blank",passHref:!0,prefetch:!1,title:"รถก
1ระบะ ISUZU",className:"item-link",children:"รถกระบะ ISUZU"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-3-toyota/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ TOYOTA",className:"item-link",children:"รถกระบะ TOYOTA"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-543-ford/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ FORD",className:"item-link",children:"รถกระบะ FORD"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-1199-nissan/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ NISSAN",className:"item-link",children:"รถกระบะ NISSAN"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-1046-mazda/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ MAZDA",className:"item-link",children:"รถกระบะ MAZDA"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-285-chevrolet/",target:"_blank",passHref:!0,prefetch:!1,title:"รถกระบะ CHEVROLET",className:"item-link",children:"รถกระบะ CHEVROLET"}),(0,r.jsx)(H(),{href:"/category/cat_pickup+brand_brand-1-isuzu/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง ISUZU",className:"item-link",children:"รถมือสอง ISUZU"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-3-toyota/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง TOYOTA",className:"item-link",children:"รถมือสอง TOYOTA"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-5-honda/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง HONDA",className:"item-link",children:"รถมือสอง HONDA"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-1199-nissan/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง NISSAN",className:"item-link",children:"รถมือสอง NISSAN"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-1104-mitsubishi/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง MITSUBISHI",className:"item-link",children:"รถมือสอง MITSUBISHI"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car%2Bbrand_brand-543-ford/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง FORD",className:"item-link",children:"รถมือสอง FORD"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-1046-mazda/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง MAZDA",className:"item-link",children:"รถมือสอง MAZDA"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car+brand_brand-1070-mercedes-benz/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง BENZ",className:"item-link",children:"รถมือสอง BENZ"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car%2Bbrand_brand-195-bmw/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง BMW",className:"item-link",children:"รถมือสอง BMW"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car%2Bbrand_brand-1874-volvo/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง VOLVO",className:"item-link",children:"รถมือสอง VOLVO"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car%2Bbrand_brand-1083-mg/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง MG",className:"item-link",children:"รถมือสอง MG"}),(0,r.jsx)(H(),{href:"/category/cat_passenger-car%2Bbrand_brand-1715-tesla/",target:"_blank",passHref:!0,prefetch:!1,title:"รถมือสอง TESLA",className:"item-link",children:"รถมือสอง TESLA"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery+brand_brand-868-komatsu/",target:"_blank",passHref:!0,prefetch:!1,title:"เครื่องจักร KOMATSU",className:"item-link",children:"เครื่องจักร KOMATSU"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery%2Bbrand_brand-260-cat/",target:"_blank",passHref:!0,prefetch:!1,title:"เครื่องจักร CAT",className:"item-link",children:"เครื่องจักร CAT"}),(0,r.jsx)(H(),{href:"/category/cat_heavy-machinery+brand_brand-863-kobelco/",target:"_blank",passHref:!0,prefetch:!1,title:"เครื่องจักร KOBELCO",className:"item-link",children:"เครื่องจักร KOBELCO"})]})}em.displayName="PrimarySection",ex.displayName="PopularItemsSection",ef.displayName="SearchByAreaSection",eb.displayName="SearchByBrandSection";let ey=i()(()=>a.e(4993).then(a.bind(a,14993)),{loadableGenerated:{webpack:()=>[14993]},ssr:!0}),ek=({text:e,sx:t})=>
1(0,r.jsx)(v.Z,{as:"h4",sx:{fontSize:["14px",null,null,null,"20px"],fontWeight:700,color:"primary.700",mb:"16px",...t},children:e});function eN({adsData:e}){let{device:t}=(0,o.useContext)(h.I);return(0,r.jsxs)(r.Fragment,{children:[t?.platform!=="mobile"&&(0,r.jsx)("img",{className:"symbol-membership",src:"/static/v3/images/t2h-bottom-banner-desktop-1x.png",srcSet:"/static/v3/images/t2h-bottom-banner-desktop-1x.png 1x, /static/v3/images/t2h-bottom-banner-desktop-2x.png 2x",width:"1109",height:"100",alt:"bottom-banner",loading:"eager"}),t?.platform==="mobile"&&(0,r.jsx)("img",{className:"symbol-membership",src:"/static/v3/images/t2h-bottom-banner-mobile-1x.png",srcSet:"/static/v3/images/t2h-bottom-banner-mobile-1x.png 1x, /static/v3/images/t2h-bottom-banner-mobile-2x.png 2x",width:"343",height:"100",alt:"bottom-banner",loading:"eager",style:{width:"100%"}}),(0,r.jsx)(ek,{text:"สินค้ายอดนิยม",sx:{mt:["16px",null,null,null,"24px"]}}),(0,r.jsx)(ex,{sx:{mb:["16px",null,null,null,"24px"]}}),(0,r.jsx)(ek,{text:"หารถมือสองตามพื้นที่"}),(0,r.jsx)(ef,{sx:{mb:["16px",null,null,null,"24px"]}}),(0,r.jsx)(ek,{text:"ค้นหาตามยี่ห้อ"}),(0,r.jsx)(eb,{sx:{mb:["16px",null,null,null,"40px"]}}),(0,r.jsx)(ey,{adsName:"homepage4",adsData:e?.homepage4||null,width:{mobile:320,desktop:970},height:{mobile:100,desktop:90},isSkeletonShow:!1})]})}eN.displayName="LowerStaticContent";let ev=i()(()=>Promise.all([a.e(4174),a.e(6873)]).then(a.bind(a,16747)),{loadableGenerated:{webpack:()=>[16747]},ssr:!1}),ej=i()(()=>a.e(7271).then(a.bind(a,27271)),{loadableGenerated:{webpack:()=>[27271]},ssr:!1}),ew=(i()(()=>a.e(6812).then(a.bind(a,46812)),{loadableGenerated:{webpack:()=>[46812]},ssr:!1}),i()(()=>a.e(1519).then(a.bind(a,31519)),{loadableGenerated:{webpack:()=>[31519]}}));var e_=!0,eI=({platform:e="mobile",adsData:t=s.V,zoneCountData:a,newArrivalData:l,goldMemberShipData:i,randomImageArray:o,heroBannerList:c=[]})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Z,{canonicalPath:"/"}),(0,r.jsx)(N,{heroBannerList:c}),(0,r.jsx)(B,{platform:e,zoneCountList:a}),(0,r.jsxs)(u.W,{children:[(0,r.jsxs)(F.z,{children:[(0,r.jsx)(em,{platform:e,sx:{mt:["16px",null,null,null,"24px"]},adsData:t,newArrivalData:l,goldSellerItems:i,imageIndex:o}),(0,r.jsx)(ew,{platform:e})]}),(0,r.jsx)(ev,{adsData:t}),(0,r.jsx)(eN,{adsData:t})]}),(0,r.jsx)(ej,{}),!1]})},20108:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});var r=a(34859),l=a(18085);async function i(e,t){let a={hashIds:e,actionType:t.actionType,page:t.page};return t.userHashId&&(a.userHashId=t.userHashId),200===(await (0,l.Z)("/api/item/impression/count",{target:r.ef,fetchOptions:{method:"POST",body:JSON.stringify(a),headers:new Headers({"Content-Type":"application/json",Accept:"application/json"})}})).statusCode}},57233:function(){},424:function(){},7652:function(e,t,a){e.exports=a(7641)}},function(e){e.O(0,[2529,9497,2888,9774,179],function(){return e(e.s=21746)}),_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.