PageSourceSearch

https://www.writersdigest.com/_next/static/chunks/pages/domains/nu…/search/[...term]-094661c904f5b8c4.js

js writersdigest.com collected 2026-09-24 08:36:52 UTC 4,607 bytes, 2 lines download raw bytes

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