PageSourceSearch

https://www.truck2hand.com/_next/static/chunks/1621-227cad4b4d83ffb8.js

js truck2hand.com collected 2026-10-08 09:56:49 UTC 13,379 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1621],{62963:function(e,t,n){n.d(t,{J:function(){return h}});var r=n(75271),a=n(30967),i=n(21373),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}var s=(0,r.forwardRef)(function(e,t){var n=l(e,[]);return r.createElement(i.xu,o({ref:t},n))}),c=function(e){var t=e.open,n=e.sx,a=e.onOpened,i=e.onClosed,c=e.onTransitionEnd,u=e.onClick,d=e.disabled,p=e.children,h=l(e,["open","sx","onOpened","onClosed","onTransitionEnd","onClick","disabled","children"]);return!0===(void 0!==d&&d)?r.createElement(r.Fragment,null,p):r.createElement(s,o({},h,{sx:o({position:"fixed",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(13,22,47,.6)",transition:"opacity 150ms linear",opacity:t?1:0,pointerEvents:t?"fill":"none",zIndex:t?"modal":"-1"},n),onTransitionEnd:function(e){void 0!==c&&c(e),e.currentTarget===e.target&&(!0===t&&void 0!==a&&a(),!1===t&&void 0!==i&&i())},onClick:function(e){e.currentTarget===e.target&&void 0!==u&&u(e)}}),p)},u=function(e){var t=e.open,n=e.disabledPortal,i=void 0!==n&&n,s=e.disabled,u=void 0!==s&&s,d=l(e,["open","disabledPortal","disabled"]),p=(0,r.useState)(null),h=p[0],f=p[1];return(0,r.useEffect)(function(){return!0===t&&!1===u?document.body.classList.add("disabled-scroll"):document.body.classList.remove("disabled-scroll"),function(){document.body.classList.remove("disabled-scroll")}},[t,u]),(0,r.useEffect)(function(){var e="open-ui-backdrop-portal",t=document.getElementById(e);return t||((t=document.createElement("div")).id=e,document.body.appendChild(t)),t&&f(t),function(){null==t||t.remove(),document.body.classList.remove("disabled-scroll")}},[]),r.createElement(r.Fragment,null,i&&r.createElement(c,o({open:t,disabled:u},d)),!i&&!!h&&(0,a.createPortal)(r.createElement(c,o({open:t,disabled:u},d)),h))},d=function(e){switch(void 0===e&&(e="bottom"),e){case"top":return"translateY(-100%)";case"center":return"translateY(-50%)";default:return""}},p=function(e){switch(void 0===e&&(e="center"),e){case"left":return"";case"center":default:return"translateX(-50%)";case"right":return"translateX(-100%)"}},h=(0,r.forwardRef)(function(e,t){var n=e.open,a=void 0!==n&&n,i=e.children,c=e.onOpened,h=e.onClosed,f=e.backdropProps,m=e.anchorEl,g=e.positionVertical,v=void 0===g?"bottom":g,b=e.positionHorizontal,y=void 0===b?"center":b,x=e.sxPopoverContainer,I=e.sx,w=l(e,["open","children","onOpened","onClosed","backdropProps","anchorEl","positionVertical","positionHorizontal","sxPopoverContainer","sx"]),k=(0,r.useState)(!1),E=k[0],j=k[1],O=m?function(e,t){void 0===t&&(t="bottom");var n=e.offsetTop,r=e.clientHeight;switch(t){case"top":return{top:n};case"center":return{top:n+r/2};default:return{top:n+r}}}(m,v):{},$=m?function(e,t){void 0===t&&(t="center");var n=e.offsetLeft,r=e.clientWidth;switch(t){case"left":return{left:n};case"center":default:return{left:n+r/2};case"right":return{left:n+r}}}(m,y):{};(0,r.useEffect)(function(){a&&j(!0)},[a]);var S=r.createElement(s,{ref:t,onTransitionEnd:function(e){e.currentTarget===e.target&&(a?"function"==typeof c&&c():("function"==typeof h&&h(),j(!1)))},sx:o(o(o({position:"absolute",zIndex:!0===(null==f?void 0:f.disabled)?"popover":"modal",transition:"fast",opacity:a?1:0,pointerEvents:a?void 0:"none",transform:"".concat(d(v)," ").concat(p(y))},O),$),x)},E&&r.createElement(s,o({sx:o({backgroundColor:"#ffffff",padding:"16px",borderRadius:"8px",boxShadow:"middle",zIndex:"popover"},I)},w),i));return r.createElement(r.Fragment,null,r.createElement(u,o({open:a,disabledPortal:!0,sx:o({bg:"transparent"},null==f?void 0:f.sx)},f)),S)})},68371:function(e,t,n){var r=n(52676);n(75271);var a=n(61807);t.Z=e=>(0,r.jsx)(a.Z,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"})})},97880:function(e,t,n){n.d(t,{D:function(){return h},Z:function(){return f}});var r=n(52676),a=n(75271),i=n(90879),o=n(92232),l=n(37368),s=n.n(l),c=n(3457),u=n(61807),d=n(34859),p=n(82136);let h={title:d.px,label:(0,r.jsx)(e=>(0,r.jsx)(u.Z,{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M10.215 19.859v-5.704h4.565v5.704c0 .627.514 1.141 1.141 1.141h3.424c.628 0 1.141-.513 1.141-1.141v-7.986h1.94c.525 0 .776-.65.377-.992l-9.541-8.59a1.15 1.15 0 0 0-1.529 0l-9.541 8.59a.57.57 0 0 0 .377.992h1.94v7.986c0 .627.514 1.141 1.141 1.141h3.424c.628 0 1.141-.513 1.141-1.141z"})}),{size:18,sx:{fill:"primary.700",display:"flex"}}),link:`${d.FX}/`};var f=e=>{let{items:t=[],sx:n}
1=e,l=(0,c.useRouter)(),u=(0,a.useMemo)(()=>l.pathname.includes("/search")||l.pathname.includes("/category"),[l.pathname]);return(0,r.jsxs)(o.W,{sx:{position:"relative",display:"flex",alignItems:"center",".overlay":{position:"absolute",top:0,bottom:0,right:0,width:"80px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",pointerEvents:"none"},...n},children:[(0,r.jsx)(i.x,{as:"ol",className:"list-style-none hide-scrollbar",sx:{minHeight:u?"unset":["44px",null,null,null,"52px"],margin:u?"12px 0 6px 0":"unset",display:"flex",alignItems:"center",flexWrap:"nowrap",overflowX:["scroll",null,null,null,"hidden"],width:"100%",variant:"text.xs","li:last-child":{pr:"40px"}},children:t.map((e,n)=>{let a=`item-key-${n}`,o=t.length===n+1;return(0,r.jsxs)(i.x,{as:"li",sx:{display:"flex",alignItems:"center",flexShrink:0,a:{maxWidth:"180px",px:"6px",color:"primary.700",textDecoration:"underline",position:"relative",display:"block",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden","&.is-last-item":{color:"neutral.500",textDecoration:"none"}}},children:[n>0&&(0,r.jsx)("div",{children:"/"}),e.link?(0,r.jsx)(s(),{href:e.link,passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,r.jsx)(i.x,{as:"a",className:`${o?"is-last-item":""} ${(0,p.Z)("AppBreadcrumb","Item")}`,title:e.title,"aria-label":e.title,children:e.label||e.title})}):(0,r.jsx)(s(),{href:l.asPath,passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,r.jsx)(i.x,{as:"a",className:`${o?"is-last-item":""} ${(0,p.Z)("AppBreadcrumb","Item")}`,title:e?.title,"aria-label":e.title,children:e.label||e.title})})]},a)})}),(0,r.jsx)("div",{className:"overlay"})]})}},65716:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(52676);n(75271);var a=n(38543),i=n.n(a),o=n(34859),l=n(28932);let s={"@id":`${o.FX}/#organization`,"@type":"OnlineMarketplace",logo:`${o.FX}/static/v3/app-icon.png`,description:"แหล่งซื้อขายรถบรรทุกมือสอง เครื่องจักรกลหนัก และรถเชิงพาณิชย์ อันดับ 1 ในไทย",sameAs:[l.tm,l.A_,l.sb],address:{"@type":"PostalAddress",addressLocality:"Bangkok",addressCountry:"TH",streetAddress:"1494 ถนน เพชรบุรีตัดใหม่ มักกะสัน ราชเทวี กรุงเทพมหานคร",postalCode:"10400"}},c={"@type":"WebSite","@id":`${o.FX}/#website`,url:`${o.FX}/`,name:o.jG,description:o.vk,publisher:{"@id":`${o.FX}/#organization`},inLanguage:"th",potentialAction:{"@type":"SearchAction",target:`${o.FX}/search/?q={search_term_string}`,query:"required name=search_term_string"}},u={"@type":"Organization","@id":`${o.FX}/#organization`,name:o.jG,url:`${o.FX}/`,logo:{"@type":"ImageObject",inLanguage:"th","@id":`${o.FX}/#/schema/logo/image/`,url:`${o.FX}/static/images/favicon/favicon-512x512.png`,contentUrl:`${o.FX}/static/images/favicon/favicon-512x512.png`,width:{"@type":"QuantitativeValue",value:512},height:{"@type":"QuantitativeValue",value:512},caption:o.jG},image:{"@id":`${o.FX}/#/schema/logo/image/`},sameAs:[l.tm,l.sY,l.A_,l.sb,l.eW],contactPoint:{"@type":"ContactPoint",telephone:l.mt,contactType:"customer service"}};function d(e){let{breadcrumbItems:t=[],canonicalPath:n="/",thingList:a}=e,l=t.length>0?function(e,t="/"){return e.length>0?{"@type":"BreadcrumbList","@id":`${o.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,n):null,d=[s,c,u];return l&&d.push(l),a&&a.length&&d.push(...a),(0,r.jsx)(i(),{children:(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@graph":d}).replace(/</g,"\\u003c")}})})}},63556:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(52676),a=n(75271),i=n(65716),o=n(34859);function l({breadcrumb:e,path:t,collectionLd:n}){let l=(0,a.useMemo)(()=>n?function(e){let{pageHeader:t,headline:n,itemCount:r,listingSections:a=[],listingItems:i,webPageType:l="CollectionPage"}=e,s=t?.pageMeta?.url||t?.canonical;if(!s)return;let c=t?.pageMeta?.description??o.vk,u=(void 0!==i&&i.length>0?i:function(e){let t=[],n=new Set;for(let r of e)for(let e of r.rows??[])for(let r of e.items??[]){let e=r.hashId;!e||n.has(e)||(n.add(e),t.push(r))}return t}(a)).map((e,t)=>{let n=`${o.FX}/listing/${e.hashId}`,r=function(e){if(e.imageUrl)return e.imageUrl;let t=e.gallery?.find(e=>e.fullUrl||e.coverImageFullUrl);return t?.fullUrl??t?.coverImageFullUrl}(e),a=e.title?.trim()||"รายการประกาศ",i=e.displayPrice?.replace(/[^\d]/g,"")??"",l="W8_ITEM_SOLD_STATE"===e.itemSoldWorkflow?"https://schema.org/SoldOut":"https://schema.org/InStock",s=i.length>0?{"@type":"Offer",url:n,price:i,priceCurrency:"THB",availability:l}:{"@type":"Offer",url:n,availability:l},c=e.shortDetails?.map(e=>
1e.trim()).filter(Boolean).join(", "),u=`${a} ${c}`;return{"@type":"ListItem",position:t+1,item:{"@type":"Product",name:a,url:n,description:u,offers:s,...r?{image:r}:{},...c?{keywords:c}:{}}}});return[{"@type":l,"@id":`${s}#${"SearchResultsPage"===l?"searchresultspage":"collectionpage"}`,name:n,headline:n,description:c,url:s,inLanguage:"th",isPartOf:{"@id":`${o.FX}/#website`},mainEntity:{"@type":"ItemList",numberOfItems:r,...u.length>0?{itemListElement:u}:{}},speakable:{"@type":"SpeakableSpecification",xpath:["/html/head/title","/html/head/meta[@name='description']/@content"]}}]}(n):void 0,[n]);return(0,r.jsx)(i.Z,{breadcrumbItems:e,canonicalPath:t,thingList:l})}l.displayName="AppListingPageLdJson"},22565:function(e,t,n){var r=n(75271),a=n(3457),i=n(18154),o=n(86340),l=n(34859),s=n(13149),c=n(20108);let u=new Set(["/listing/[hashId]","/category/[slug]","/search","/shop/[hashId]","/","/video-listing"]),d=new Map([["/listing/[hashId]","page_detail"],["/category/[slug]","category"],["/search","search"],["/shop/[hashId]","shop_page"],["/","homepage"],["/video-listing","video_page"]]);l.ry||u.add("/u/[hashId]"),t.Z=(e,t=!1)=>{let{pathname:n}=(0,a.useRouter)(),p=(0,r.useRef)(new Map),h=(0,r.useRef)([]),f=(0,r.useRef)(null),{authUser:m}=(0,r.useContext)(i.I),g=(0,r.useRef)([]),v=(0,r.useCallback)(()=>{let e=document.querySelectorAll(".track-imp-listing-card");g.current=[],e.length&&e.forEach(e=>{let t=e.getAttribute("data-item-id");t&&g.current.push(t)})},[]),b=(0,r.useCallback)((e=[])=>{e.length>0&&(g.current=e)},[]),y=(0,r.useCallback)(async()=>{let e=new Map([...p.current].filter(([e,t])=>!1===t)),t=d.get(n);if(e.size>0&&t){let n=[...e.keys()];if(await (0,c.Z)(n,{actionType:"view",page:t,userHashId:m?.userHashId})){"uat"===l.Gv&&(v(),console.log(`[TOTAL_LIST_IDS](${g.current.length}) - ${g.current.join(", ")}`),console.log(`[IMP_SENT_ID](${p.current.size}/${g.current.length} sent) - ${n.join(", ")}`));let t=new Map([...e]);for(let[e]of t)t.set(e,!0);p.current=new Map([...p.current,...t])}}},[m?.userHashId,v,n]),x=(0,r.useCallback)(()=>{t||(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{y()},500))},[t,y]);return(0,r.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{let{itemId:t,itemSeller:n,itemSection:r,itemPosition:a,itemBoost:i,rootCategory:l,subCategory:c}=e.target.dataset,u=r?o.XF[r]:void 0;e.isIntersecting&&t&&!h.current.includes(t)&&(h.current.push(t),p.current.has(t)||p.current.set(t,!1),(0,s.Z)({ga:{eventName:"listing-impression",eventParams:{itemHashId:t,sellerHashId:n,boostLevel:void 0!==i?Number(i):void 0,sectionName:u,position:a,rootCategory:l,subCategory:c}}}),x())})},{threshold:.5}),r=new WeakSet,a=null,i=()=>{u.has(n)&&!t&&document.querySelectorAll(".track-imp-listing-card").forEach(t=>{r.has(t)||(e.observe(t),r.add(t))})};i();let l=new MutationObserver(()=>{a&&clearTimeout(a),a=setTimeout(()=>{i()},200)});return u.has(n)&&!t&&l.observe(document.body,{childList:!0,subtree:!0}),()=>{a&&clearTimeout(a),e.disconnect(),l.disconnect()}},[t,n]),{collectAllCardHashIds:b}}},20108:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(34859),a=n(18085);async function i(e,t){let n={hashIds:e,actionType:t.actionType,page:t.page};return t.userHashId&&(n.userHashId=t.userHashId),200===(await (0,a.Z)("/api/item/impression/count",{target:r.ef,fetchOptions:{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json",Accept:"application/json"})}})).statusCode}}}]);

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.