PageSourceSearch

https://www.rewildyourcampus.org/_next/static/chunks/pages/domains…/search/[...term]-01ebe26e219b3cc7.js

js rewildyourcampus.org collected 2026-09-24 10:08:05 UTC 5,627 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[987],{93252:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/domains/rewildyourcampus.org/search/[...term]",function(){return t(7627)}])},96455:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return q},default:function(){return z}});var o=t(85893),r=t(935),i=t(11163),s=t(22350),a=t(37340),l=t(94076),c=t(36492),d=t(75903),u=t(86033),g=t(58747),f=t(41748),h=t(43169),m=t(97924);function x(){let e=(0,a._)(["\n  query search($term: String!) {\n    posts: contentNodes(where: { search: $term }, first: 48) {\n      nodes {\n        id\n        databaseId\n        contentTypeName\n        uri\n        date\n        modified\n        ... on NodeWithTitle {\n          title\n        }\n        ... on NodeWithExcerpt {\n          excerpt\n        }\n        ... on NodeWithFeaturedImage {\n          featuredImage {\n            node {\n              ...MediaFragment\n            }\n          }\n        }\n        ... on Post {\n          authorTags {\n            nodes {\n              id\n              ...AuthorTagsNodeFragment\n            }\n          }\n          categories {\n            nodes {\n              id\n              ...CategoryLinkFragment\n            }\n          }\n          primaryCategory {\n            id\n            ...CategoryLinkFragment\n          }\n        }\n      }\n    }\n  }\n  ","\n  ","\n  ","\n"]);return x=function(){return e},e}let p={first:20,last:null,before:null,after:null},v=(0,l.Ps)(x(),d.Z,u.Z,g.Z),j=(e,n)=>["SearchContent",e,...Object.values(n).filter(m.Z)].map(e=>e.toString()),b=(e,n)=>{let t=(0,h.nC)();return(0,c.a)(j(e,n),()=>(0,f.ZP)(v,{term:e,...n},"SearchContent",t),{enabled:!!e})};var y=t(67294),Z=t(39385),N=t(86886),P=t(87357),_=t(26447),S=t(15861),k=t(17140),w=t(17515),O=t(33100),C=t(87573);let I=e=>{let{posts:n,renderPost:t}=e;return(0,o.jsx)(N.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,o.jsx)(N.ZP,Object.assign({lg:3,md:4,sm:6,xs:12,item:!0},{children:t(e)}),e.uri))}))},F=e=>{let{fetchMore:n,handleOnSubmit:t,isFetching:r,pageInfo:i,posts:s,term:a}=e;return(0,o.jsxs)(P.Z,Object.assign({sx:{background:"#f6f6f6"}},{children:[(0,o.jsxs)(_.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,o.jsx)(S.Z,Object.assign({component:"h1",sx:{fontSize:"1.6rem",fontWeight:700}},{children:"Search"})),(0,o.jsx)(C.Z,{handleOnSubmit:t,initialValues:{term:a},placeholder:"Search..."})]})),(0,o.jsxs)(P.Z,Object.assign({sx:{maxWidth:"1110px",mx:"auto",px:{xs:1,sm:2}}},{children:[r&&(0,o.jsx)(I,{posts:Array.from({length:20},(e,n)=>({uri:n.toString()})),renderPost:()=>(0,o.jsx)(O.$,{})}),!r&&s&&(0,o.jsx)(I,{posts:s,renderPost:e=>{var n;let{featuredImage:t}=(0,k.Z)(e);return(null==e?void 0:e.uri)?(0,o.jsx)(O.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,{})}}),!r&&!(null==s?void 0:s.length)&&(0,o.jsxs)(S.Z,Object.assign({textAlign:"center"},{children:["Sorry, your search for",(0,o.jsx)(S.Z,Object.assign({component:"span",sx:{fontWeight:600}},{children:' "'.concat(a,'" ')})),"did not return any results."]}))]})),(0,o.jsx)(_.Z,Object.assign({alignItems:"center",justifyContent:"center",py:2},{children:!!(null==s?void 0:s.length)&&i&&(0,o.jsx)(w.Z,{hasNextPage:i.hasNextPage,hasPreviousPage:i.hasPreviousPage,onNextClick:()=>n(!0),onPreviousClick:()=>n(!1)})}))]}))};var T=t(9008),E=t.n(T);let W=e=>{var n,t;let{facebookVerification:r,logos:i,site:s,term:a}=e;return(0,o.jsxs)(E(),{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=i.favicon)||void 0===n?void 0:n.sourceUrl)&&(0,o.jsx)("link",{href:null===(t=i.favicon)||void 0===t?void 0:t.sourceUrl,rel:"icon",type:"image/x-icon"}),r?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("meta",{content:r,name:"facebook-domain-verification"},"facebook")}):(0,o.jsx)(o.Fragment,{})]})};var $=t(47018);let A=e=>{var n,t,a,l;let{term:c}=e,d=(0,i.useRouter)(),u=null!==(l=(0,r.Z)(null==d?void 0:null===(n=d.query)||void 0===n?void 0:n.term))&&void 0!==l?l:c,[g,f]=(0,y.useState)(p),{facebookVerification:m,logos:x,site:v}=(0,h.$Y)(),{data:j,isFetching:N}=b(u,g);(0,y.useEffect)(()=>{f(p)},[u]);let P={...g,...(null==j?void 0:null===(t=j.posts)||void 0===t?void 0:t.pageInfo)&&j.posts.pageInfo.hasNextPage?(0,s.No)(j.posts.pageInfo,!0,20):void 0};return b(u,P),(0,o.jsxs)(Z.Z,{ogTemplateInfo:{contentType:$.z.search},children:[(0,o.jsx)(W,{facebookVerification:m,logos:x,site:v,term:u}),(0,o.jsx)(F,{fetchMore:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=(null==j?void 0:j.posts)?(0,s.No)(j.posts.pageInfo,e,20):void 0;f(e=>({...e,...n})),window.scrollTo(0,0)},handleOnSubmit:e=>{e.term.length&&d.push("/search/".concat(e.term),void 0,{shallow:!0})},isFetching:N,pageInfo:null==j?void 0:j.posts.pageInfo,posts:null==j?void 0:null===(a=j.posts)||void 0===a?void 0:a.nodes.map(e=>{var n;return{...e,title:(null===(n=e.seo)||void 0===n?void 0:n.title)||e.title||"",uri:e.ur
1i||""}}),term:u})]})};var q=!0,z=A},7627:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return r}});var o=t(96455),r=!0;n.default=o.default}},function(e){e.O(0,[9385,9774,2888,179],function(){return e(e.s=93252)}),_N_E=e.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.