1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5318],{25318:(e,t,s)=>{s.r(t),s.d(t,{default:()=>b});var r=s(67684),a=s(62701),c=s(20294),n=s(37876),i=s(4758),l=s(89099),o=s(14232),u=s(10997),d=s(79514),p=s(56849),g=s(28341),f=s(50075),h=s(66523),m=s(84367),x=s(52015),_=s(18361),v=s(62157),y=s(40808),j=s(50423);let b=function(){var e,t=(0,c._)((0,f.Bd)("common"),1)[0],s=(0,l.useRouter)(),b=s.asPath,N=s.query,w=null!=(e=N.q)?e:"",k=(0,c._)((0,o.useState)(null),2),P=k[0],T=k[1],E=(0,c._)((0,o.useState)(""),2),q=E[0],I=E[1],C=function(){A.items&&A.items.length&&m.Pw.getInstance().trackProductListView(A.items.slice(0,20).map(function(e,t){return{id:e.objectID,name:e.title,category:e.subcategory.title,category_slug:e.subcategory.slug,category_group:e.category.title,category_group_slug:e.category.slug,price:e.base_price||0,position:t+1,brand:e.user.username,list:"".concat(s.query.source||"search")}}))},S=function(){m.Pw.getInstance().trackFilterUse({category:"",category_slug:"",category_group:"",category_group_slug:"",filter:(0,g.Tw)(s.asPath.split("?")[1]||""),page:"search"})};(0,o.useEffect)(function(){s.query.filter_used&&S()},[b]),(0,o.useEffect)(function(){var e=s.query.subcategory;if(e!==q){var t=e?"".concat(e).toUpperCase():"SEARCH";I("".concat(e)),m.HO.fetchByTemplateName(t).then(function(e){T(m.HO.filterByDynamicFilter(e))})}},[b]);var B=(0,_.H0)((0,a._)((0,r._)({filters:P},(null==N?void 0:N.sort)&&(null==N?void 0:N.sort)!==p.x&&{sort:[null==N?void 0:N.sort]}),{enabled:!!P})),A=B.data,F=B.isFetching,G=B.isFetched;return(0,o.useEffect)(function(){var e=(0,g.m1)();return e.init(".section-dynamic-filter-wrapper"),function(){e.cleanup()}},[]),(0,o.useEffect)(function(){A&&C()},[A]),(0,o.useEffect)(function(){w&&G&&m.Pw.getInstance().trackSearchResult({search_key:w,search_results_count:(null==A?void 0:A.totalItem)||0,result_type:A.controlGroup})},[w,G,A]),(0,n.jsx)(d.w7,{children:(0,n.jsxs)("div",{className:"search-page",children:[(0,n.jsx)(u.Dr.TopPageBanner,{page:"plpTopBanner"}),(0,n.jsx)("div",{className:"lo-desktop-responsive-container _pdbt-32px _mgt-32px",children:(0,n.jsx)("div",{className:"_dp-f",children:(0,n.jsxs)("h1",{className:"_fs-900",children:[t("search-page.text.search-result")," â",(0,g.Tw)(w),"â"]})})}),(0,n.jsx)("div",{className:"lo-desktop-responsive-container section-dynamic-filter-wrapper",children:F?(0,n.jsx)(j.A,{}):(0,n.jsx)(v.nq,{filters:P})}),(0,n.jsx)("div",{className:"search-page-card-list",children:(0,n.jsxs)("div",{className:"lo-desktop-responsive-container",children:[(0,n.jsxs)("div",{className:"u-halign-split _mgbt-16px",children:[(0,n.jsxs)("h2",{className:"_ffml-primary _fs-400 _fw-400",children:[t("product-list.text.product-found"),(0,n.jsxs)("strong",{children:[" â",(0,g.Tw)(w),"â "]}),t("product-search.text.item",{total_item:i.GP.count((null==A?void 0:A.totalItem)||0)})]}),(0,h.uN)({default:(0,n.jsxs)("div",{children:[t("product-list.text.page")," ",s.query.page||1," ",t("product-list.text.from")," ",A.totalPage]}),vn:(0,n.jsxs)("div",{children:[t("product-list.text.page")," ",N.page||1,"/",null==A?void 0:A.totalPage]})})]}),(0,n.jsx)("br",{}),G&&!A.items.length&&(0,n.jsx)(y.A,{source:"searchpage",dataSelenium:"search.button.job-board"}),(0,n.jsx)(v.JT,{adsSectionType:x.e.serchResult,isLoading:F,products:A.items,controlGroup:A.controlGroup,prefixImageAlt:"".concat((0,g.Tw)(w))}),(0,n.jsx)("div",{className:"u-halign-center _mgt-48px",children:(0,n.jsx)(u.dK,{total:A.totalPage})})]})}),(0,n.jsx)("div",{className:"lo-desktop-responsive-container _pdv-48px _bgcl-neutral-100 _mgt-48px",children:(0,n.jsx)(v.CC,{})})]})})}}}]);
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.