PageSourceSearch

https://www.woodshopnews.com/assets/production/nextjs/103/_next/st…/search/[...term]-44310dd2b03e66c5.js

js woodshopnews.com collected 2026-10-02 09:55:13 UTC 4,449 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6945],{81919:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/domains/woodshopnews.com/search/[...term]",function(){return t(1348)}])},52469:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return N},default:function(){return k}});var o=t(85893),i=t(5547),r=t(11163),s=t(67294),a=t(50021),l=t(68573),c=t(90642),d=t(53145),u=t(96788),f=t(15143),h=t(13753),x=t(2386),g=t(36084);let m=e=>{let{posts:n,renderPost:t}=e;return(0,o.jsx)(l.ZP,{flexDirection:"row",pb:{xs:2,sm:3},pt:{xs:1,sm:2},spacing:2.5,container:!0,children:n.map(e=>(0,o.jsx)(l.ZP,{lg:3,md:4,sm:6,xs:12,item:!0,children:t(e)},e.uri))})};var p=e=>{let{fetchMore:n,handleOnSubmit:t,isFetching:i,pageInfo:r,posts:s,term:a}=e;return(0,o.jsxs)(c.Z,{sx:{background:"#f6f6f6"},children:[(0,o.jsxs)(d.Z,{alignItems:"center",direction:"column",justifyContent:"center",spacing:1.5,sx:{background:"#f3f3f3",height:"150px",borderBottom:"1px solid #ddd;"},width:"100%",children:[(0,o.jsx)(u.Z,{component:"h1",sx:{fontSize:"1.6rem",fontWeight:700},children:"Search"}),(0,o.jsx)(g.Z,{handleOnSubmit:t,initialValues:{term:a},placeholder:"Search..."})]}),(0,o.jsxs)(c.Z,{sx:{maxWidth:"1110px",mx:"auto",px:{xs:1,sm:2}},children:[i&&(0,o.jsx)(m,{posts:Array.from({length:20},(e,n)=>({uri:n.toString()})),renderPost:()=>(0,o.jsx)(x.$,{})}),!i&&s&&(0,o.jsx)(m,{posts:s,renderPost:e=>{var n;let{featuredImage:t}=(0,f.Z)(e);return(null==e?void 0:e.uri)?(0,o.jsx)(x.Z,{category:e.primaryCategory||void 0,date:e.date,featuredImage:t,href:e.uri,id:e.id,title:null!==(n=e.title)&&void 0!==n?n:""}):(0,o.jsx)(o.Fragment,{})}}),!i&&!(null==s?void 0:s.length)&&(0,o.jsxs)(u.Z,{textAlign:"center",children:["Sorry, your search for",(0,o.jsx)(u.Z,{component:"span",sx:{fontWeight:600},children:' "'.concat(a,'" ')}),"did not return any results."]})]}),(0,o.jsx)(d.Z,{alignItems:"center",justifyContent:"center",py:2,children:!!(null==s?void 0:s.length)&&r&&(0,o.jsx)(h.Z,{hasNextPage:r.hasNextPage,hasPreviousPage:r.hasPreviousPage,onNextClick:()=>n(!0),onPreviousClick:()=>n(!1)})})]})},v=t(10568),j=t(1004),b=t(44493),P=t(68117),Z=t(9008),_=t.n(Z),y=e=>{var n,t;let{facebookVerification:i,logos:r,site:s,term:a}=e;return(0,o.jsxs)(_(),{children:[(0,o.jsx)("title",{children:"You searched for ".concat(a," | ").concat(s.name)}),(0,o.jsx)("meta",{content:s.description,name:"description"}),(0,o.jsx)("meta",{content:"noindex, nofollow",name:"robots"}),(null===(n=r.favicon)||void 0===n?void 0:n.sourceUrl)&&(0,o.jsx)("link",{href:null===(t=r.favicon)||void 0===t?void 0:t.sourceUrl,rel:"icon",type:"image/x-icon"}),i?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("meta",{content:i,name:"facebook-domain-verification"},"facebook")}):(0,o.jsx)(o.Fragment,{})]})};t(58316),t(56210);let w=e=>{var n;return Array.isArray(e)?null!==(n=(0,i.Z)(e))&&void 0!==n?n:"":null!=e?e:""};var N=!0,k=e=>{var n,t,i,l;let{term:c}=e,d=(0,r.useRouter)(),u=w(null===(n=null==d?void 0:d.query)||void 0===n?void 0:n.term)||c,[f,h]=(0,s.useState)({pagination:b.E9,term:u}),x=f.term===u?f.pagination:b.E9,{facebookVerification:g,logos:m,site:Z}=(0,j.Z)(),{data:_,isFetching:N}=(0,b.ZP)(u,x);(0,s.useEffect)(()=>{h(e=>e.term===u?e:{pagination:b.E9,term:u})},[u]);let k=Object.assign(Object.assign({},x),(null===(i=null===(t=null==_?void 0:_.posts)||void 0===t?void 0:t.pageInfo)||void 0===i?void 0:i.hasNextPage)?(0,P.No)(_.posts.pageInfo,!0,b.ro):void 0);return(0,b.ZP)(u,k),(0,o.jsxs)(a.Z,{ogTemplateInfo:{contentType:v.z.search},children:[(0,o.jsx)(y,{facebookVerification:g,logos:m,site:Z,term:u}),(0,o.jsx)(p,{fetchMore:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];h(n=>({pagination:Object.assign(Object.assign({},n.term===u?n.pagination:b.E9),(null==_?void 0:_.posts)?(0,P.No)(_.posts.pageInfo,e,b.ro):void 0),term:u})),window.scrollTo(0,0)},handleOnSubmit:e=>{let n=e.term.trim();n.length&&d.push("/search/".concat(encodeURIComponent(n)))},isFetching:N,pageInfo:null==_?void 0:_.posts.pageInfo,posts:null===(l=null==_?void 0:_.posts)||void 0===l?void 0:l.nodes.map(e=>Object.assign(Object.assign({},e),{title:e.seo.title||e.title})),term:u})]})}},1348:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return i}});var o=t(52469),i=!0;n.default=o.default},23016:function(){}},function(e){e.O(0,[9323,2888,9774,179],function(){return e(e.s=81919)}),_N_E=e.O()}]);
2//# sourceMappingURL=[...term]-44310dd2b03e66c5.js.map

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.