PageSourceSearch

https://www.smokedirect.com/_next/static/chunks/pages/all/search/[id]-6745294cd8758a07.js

js smokedirect.com collected 2026-10-04 17:14:00 UTC 3,690 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[756],{59679:function(n,e,t){"use strict";t.r(e);var l=t(27812),o=t(67294),i=t(9473);t(25675);var d=t(5152),c=t.n(d),r=t(9008),u=t.n(r),s=t(11163);t(30933),t(92),t(68770),t(13390);var a=t(32150),v=t(89514),h=t(58533),f=t(63880),x=t(1629),g=t(71100),j=t(51233),p=t(63104),m=t(76242);t(65178);var S=t(99622),_=t(83828),y=t(64399),w=t(85893);c()(function(){return t.e(764).then(t.bind(t,90764))},{ssr:!1,loadableGenerated:{webpack:function(){return[90764]}}});var E=function(n){n.businessId;var e,t,d,c,r,E,I,b=(0,s.useRouter)(),q=(0,v.i)("/ecommerce/product/listAllSearchedProduct?searchInput=".concat(null==b?void 0:null===(e=b.query)||void 0===e?void 0:e.id,"&page=0&size=20&sort=").concat(null==b?void 0:null===(t=b.query)||void 0===t?void 0:t.sort,"&sortDirection=").concat(null==b?void 0:null===(d=b.query)||void 0===d?void 0:d.order,"&storeIds=2"),!0,{stateId:!0}),P=q.data,Z=q.loading,k=(0,o.useState)(0),C=k[0],N=k[1],D=(0,i.I0)(),z=(0,o.useState)(-1),T=z[0],A=z[1],L=(0,o.useState)(!0),M=L[0],O=L[1],X=(0,o.useState)(0),F=X[0],G=X[1],Q=(0,o.useState)(!0),R=Q[0],$=Q[1],B=(0,o.useState)(null==P?void 0:P.content),H=B[0],J=B[1],K=(0,m.Z)().width,U=(0,v.i)("/ecommerce/product/listAllSearchedProduct?searchInput=".concat(null==b?void 0:null===(c=b.query)||void 0===c?void 0:c.id,"&page=").concat(C,"&size=20&sort=").concat((null==b?void 0:null===(r=b.query)||void 0===r?void 0:r.sort)||"date","&sortDirection=").concat((null==b?void 0:null===(E=b.query)||void 0===E?void 0:E.order)||"DESC","&storeIds=2"),C>0||!M,{stateId:!0}),V=U.data,W=U.loading;(0,o.useEffect)(function(){J(null==P?void 0:P.content),G(null==P?void 0:P.totalElements),N(0),(null==P?void 0:P.totalPages)<=C+1?$(!1):$(!0)},[P]),(0,o.useEffect)(function(){var n,e;C>0&&(null==V?void 0:null===(n=V.content)||void 0===n?void 0:n.length)>0?(J(function(n){return[].concat((0,l.Z)(n),(0,l.Z)(null==V?void 0:V.content))}),G(null==V?void 0:V.totalElements),(null==V?void 0:V.totalPages)<=C+1?$(!1):$(!0)):!M&&(null==V?void 0:null===(e=V.content)||void 0===e?void 0:e.length)>0&&(J(null==V?void 0:V.content),G(null==V?void 0:V.totalElements),(null==P?void 0:P.totalPages)<=C+1?$(!1):$(!0),O(!0))},[V]);var Y=(null==b?void 0:null===(I=b.query)||void 0===I?void 0:I.id)||"",nn=Y?'Search results for "'.concat(Y,'" | ').concat(_.px):"Search | ".concat(_.px);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(u(),{children:[(0,w.jsx)("title",{children:nn}),(0,w.jsx)("meta",{name:"robots",content:"noindex,follow"})]}),(0,w.jsxs)(a.Qb,{children:[(0,w.jsx)(p.Z,{length:null==H?void 0:H.length,setInitial:O,setPageable:$,total:F,query:null==b?void 0:b.query,search:!0}),(0,w.jsxs)(a.$6,{children:[K>1280&&(0,w.jsx)(x.Z,{}),(0,w.jsxs)(j.Z,{flexDirection:"column",style:{background:"#ffffff",padding:"0",width:"100%"},children:[K<1280&&(0,w.jsxs)(a.qM,{onClick:function(){D((0,S.dl)(!0))},children:[(0,w.jsx)(y.toC,{style:{color:"#ffffff",fontSize:"1.8rem"}}),(0,w.jsx)("p",{children:"categories"})]}),(0,w.jsxs)("div",{style:{width:"100%"},children:[Z||W||H&&H.length>0?(0,w.jsx)(h.Z,{dataLength:(null==H?void 0:H.length)||0,hasMore:Z||W||R,next:function(){N(C+1)},scrollThreshold:"70%",children:(0,w.jsx)(a.n2,{children:null==H?void 0:H.map(function(n,e){return(0,w.jsx)("div",{children:(0,w.jsx)(f.Z,{product:n,setSelectedId:A,selectedId:T,onListPage:!0})},e)})})}):(0,w.jsx)(a._3,{children:"products not found!"}),(Z||W)&&(0,w.jsx)(g.Z,{})]})]})]})]})]})};e.default=E},93589:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/all/search/[id]",function(){return t(59679)}])}},function(n){n.O(0,[653,880,26,774,888,179],function(){return n(n.s=93589)}),_N_E=n.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.