PageSourceSearch

https://fastlance.vn/_next/static/chunks/7174.c23c2a585446b313.js

js fastlance.vn collected 2026-09-24 13:09:27 UTC 8,069 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7174],{26236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(20294),c=n(85993),i=n(37876),o=n(14678),l=n(15039),s=n.n(l),a=n(80782),u=n.n(a),d=n(89099),_=n(14232),p=n(69050),f=n(79514),v=n(28341),h=n(50075),m=n(57010);let g=function(e){var t,n,c=e.intention,o=e.isCloseAppBar,l=(0,r._)((0,_.useState)([]),2),a=l[0],d=l[1],p=(0,r._)((0,_.useState)(""),2),h=p[0],g=p[1],b=function(e){var t=document.querySelector('[id="section-menu-bar"]'),n=document.querySelector('[id="button-to-'.concat(e,'"]')),r=Number(window.getComputedStyle(t).paddingLeft.replace("px","")),c=n.offsetLeft-r;t.scrollLeft!==c&&(t.scrollLeft=c)},j=function(){var e=c.sections.map(function(e){return{top:document.querySelector('[id="'.concat(e.sort_order,'"]')).offsetTop,id:"".concat(e.sort_order)}}),t=function(){var t=e.filter(function(e){return(0,v.$V)('[id="'.concat(e.id,'"]'),300)}).slice(-1);(null==t?void 0:t.length)&&h!==t[0].id?(g(t[0].id),b(t[0].id)):""!==h&&g("")};return window.addEventListener("scroll",u()(t,300)),function(){window.removeEventListener("scroll",t)}};return(0,_.useEffect)(function(){(0,m.V)(c).then(d)},[]),(0,_.useLayoutEffect)(function(){return j()},[]),(0,i.jsx)(f.wW,{isCloseAppBar:o,children:(0,i.jsxs)("div",{className:"intention-page-mobile _pdbt-48px",children:[(0,i.jsx)("section",{className:"_dp-f _jtfct-ct _alit-ct _bgcl-neutral-500 _pdh-16px",style:{height:"300px",backgroundImage:"url(".concat(c.banner_background_mobile,")")},children:(0,i.jsxs)("div",{style:{color:"white"},children:[(0,i.jsx)("div",{className:"_fs-600 _fw-600 _tal-ct _ffml-secondary",children:c.banner_title}),(0,i.jsx)("div",{className:"_tal-ct _mgt-12px",children:c.banner_description})]})}),(0,i.jsx)("div",{id:"section-menu-bar",className:"section-menu-bar _dp-f _alit-ct _ovf-at _pdh-16px",children:(0,i.jsx)("div",{className:"lo-grid-span-horizontal _gg-8px _pdr-16px",children:c.sections.sort(function(e,t){return e.sort_order-t.sort_order}).map(function(e,t){return(0,i.jsx)("a",{id:"button-to-".concat(e.sort_order),onClick:function(){return g("".concat(e.link_title))},href:"#".concat(e.sort_order),className:s()("section-link tb-button -secondary -small _wsp-nw _pdh-12px",{"_cl-primary-500 _bdcl-primary-400":h==="".concat(e.sort_order),"_cl-text-default-200":h!=="".concat(e.sort_order)}),children:e.link_title},t)})})}),c.sections.sort(function(e,t){return e.sort_order-t.sort_order}).map(function(e,t){return(0,i.jsx)(x,{section:e,products:a},t)}),(0,i.jsx)("hr",{className:"_h-8px"}),(0,i.jsx)("section",{className:"lo-container _pdv-32px",children:(0,i.jsxs)("div",{className:"lo-6 _gg-16px",children:[(0,i.jsx)("div",{style:{height:"96px",color:"white",background:"#0045aa"},className:"_cl-white-100 _pd-12px _bdrd-8px _dp-f _alit-fe _ffml-secondary _fw-600",children:"คุณมองหาผู้ช่วย ในเรื่องเหล่านี้อยู่หรือไม่?"}),null==c||null==(n=c.related_intentions)||null==(t=n.filter(function(e,t){return t<5}))?void 0:t.map(function(e,t){return(0,i.jsx)("a",{"data-selenium":"intention.related.".concat(e.title),href:e.link,target:"_blank",rel:"noreferrer",children:(0,i.jsx)("div",{style:{height:"96px",color:"white",backgroundImage:"url(".concat(e.image,")")},className:"_bgcl-neutral-300 _cl-white-100 _pd-12px _bdrd-8px _dp-f _alit-fe _ffml-secondary _fs-300 _fw-600 _bgs-cv _bgpst-ct",children:e.title},t)},t)})]})})]})})};var x=function(e){var t,n=e.section,l=e.products,s=(0,r._)((0,h.Bd)("common"),1)[0],a=(0,d.useRouter)().query;return(0,i.jsxs)("div",{className:"intention-section _pdbt-24px _pst-rlt",children:[(0,i.jsx)("div",{id:"".concat(n.sort_order),className:"_pst-asl",style:{top:"-100px"}}),(0,i.jsx)("hr",{className:"_h-8px"}),(0,i.jsxs)("div",{className:"_pd-24px",children:[(0,i.jsxs)("div",{className:"_fw-600 _ffml-secondary",children:[null==n?void 0:n.title," ",(0,i.jsx)("a",{href:"".concat(n.url,"?source=intention_").concat(null==a?void 0:a.intentionSlug),target:"_blank","data-selenium":"intention-section.".concat(null==n?void 0:n.link_title,".link"),rel:"noreferrer",children:(0,i.jsx)("span",{className:"_cl-primary-500",children:null==n?void 0:n.link_title})})]}),(0,i.jsx)("p",{className:"_fs-300 _mgt-16px",children:null==n?void 0:n.description})]}),(0,i.jsxs)("div",{className:"lo-12",children:[(t=null==l?void 0:l.filter(function(e){return null==n?void 0:n.product_ids.includes(e.objectID)}),0===l.length?(0,i.jsx)("div",{className:"lo-12 _gg-8px _pdh-8px _jtfs-ct _w-100pct",children:(0,c._)([,,]).map(function(e,t){return(0,i.jsx)(o.Rl,{},"skeleton-card-product-".concat(t))})}):(0,i.jsx)("div",{className:"lo-6 _gg-8px _pdh-8px _jtfs-ct",children:t.filter(function(e,t){return t<2}).map(function(e,t){var r,c;return(0,i.jsx)(p.c,{tabIndex:t,category:e.category,subcategory:e.subcategory,titleSubCate:null==a?void 0:a.intentionSlug,productId:e.objectID,className:"card-product",purchaseCount:null==e?void 0:e.purchase_count,title:e.title,coverPhoto:e.image||"",basePrice:e.base_price,slug:e.slug,rating:e.rating,badges:e.badges,user:e.user,fallbackSource:"intention_".concat(null==a?void 0:a.intentionSlug),reviewCount:e.review_count,responseTime:null==e||null==(c=e.user)||null==(r=c.stats)?void 0:r.response_time,productCardDecor:null==e?void 0:e.product_card_decor,variant:"horizontal",productImageAlt:"".concat(null==n?void 0:n.title," ").concat(null==n?void 0:n.link_title," - ").concat(t+1)},e.objectID)})})),(0,i.jsx)("div",{className:"_pdh-24px _mgt-24px",children:(0,i.jsx)("a",{href:"".concat(null==n?void 0:n.url,"?source=intention_").concat(null==a?void 0:a.intentionSlug),target:"_blank",rel:"noopener noreferrer","data-selenium":"intention-category.".concat(null==n?void 0:n.link_title,".see-more"),children:(0,i.jsx)("span",{className:"tb-button -secondary",children:s("intention.see-more")})})})]})]})}},57010:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(16927),c=n(85993),i=n(4902);n(76757);var o=n(78735),l=function(e){return(0,r._)(function(){var t;return(0,i.YH)(this,function(n){return t=[],e.sections.forEach(function(e){t=(0,c._)(t).concat((0,c._)(e.product_ids))}),[2,(0,o.zh)(t)]})})()}},71260:(e,t,n)=>{"use strict";n.d(t,{DS:()=>v,Rq:()=>h,SJ:()=>x,_3:()=>m,pU:()=>f,qf:()=>g});var r=n(16927),c=n(67684),i=n(62701),o=n(65699),l=n(4902),s=n(42252),a=n(79819),u=n(15526),d=n(66002),_=n(84367),p=n(93661),f=function(){var e=(0,u.n)(function(e){return(0,r._)(function(){return(0,l.YH)(this,function(t){switch(t.label){case 0:return[4,_.jU.createProductActionLog(e)];case 1:return[2,t.sent().createProductActionLog]}})})()});return(0,c._)({referenceUserId:(0,p.Tv)()},e)},v=function(e){var t=[d.g1,e],n=(0,s.I)({queryKey:t,queryFn:function(){return(0,r._)(function(){var t,n;return(0,l.YH)(this,function(r){switch(r.label){case 0:return[4,_.jU.getRelatedProduct(e)
1];case 1:return[2,(null==(n=r.sent())||null==(t=n.getRelatedProducts)?void 0:t.related_products)||[]]}})})()},cacheTime:1/0,staleTime:1/0,enabled:!!e});return(0,c._)({queryKey:t},n)},h=function(e){var t={id:e,page:1,limit:5};return(0,a.q)({queryKey:[d.QV,e],queryFn:function(e){var n=e.pageParam,c=void 0===n?t:n;return(0,r._)(function(){return(0,l.YH)(this,function(e){switch(e.label){case 0:return[4,_.jU.getSellerReviews(c)];case 1:return[2,e.sent().getSellerReviews]}})})()},getNextPageParam:function(e){if((null==e?void 0:e.page)!==(null==e?void 0:e.total_pages))return(0,i._)((0,c._)({},t),{page:(null==e?void 0:e.page)+1})}})},m=function(){return(0,u.n)(function(e){return _.jU.setFavoriteById(e)})},g=function(e,t){var n=t.isMobile,a=(0,o._)(t,["isMobile"]),u=[d.sj,e],p=(0,s.I)((0,c._)({queryKey:u,queryFn:function(){return(0,r._)(function(){return(0,l.YH)(this,function(t){switch(t.label){case 0:return[4,_.jU.getProductDetailV2("".concat(e),{isMobile:n})];case 1:return[2,t.sent()]}})})()}},a));return(0,i._)((0,c._)({},p),{queryKey:u})},x=function(e){return(0,s.I)((0,c._)({queryKey:[d._],queryFn:_.jU.getMyServices},e))}},99342:e=>{e.exports=function(e){return void 0===e}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.