PageSourceSearch

https://www.rewildyourcampus.org/assets/production/nextjs/56/_next…/search/[...term]-bef3fb1f50a59df0.js

js rewildyourcampus.org collected 2026-10-01 12:32:43 UTC 5,469 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3891],{42906:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/domains/kawari.earth/search/[...term]",function(){return t(73727)}])},73727: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},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),d=t(36492),c=t(75903),u=t(86033),h=t(58747),f=t(41748),m=t(43169),g=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(),c.Z,u.Z,h.Z),j=(e,n)=>["SearchContent",e,...Object.values(n).filter(g.Z)].map(e=>e.toString()),Z=(e,n)=>{let t=(0,m.nC)();return(0,d.a)(j(e,n),()=>(0,f.ZP)(v,{term:e,...n},"SearchContent",t),{enabled:!!e})};var y=t(67294),N=t(71718),P=t(86886),_=t(87357),b=t(26447),S=t(15861),k=t(17140),w=t(17515),C=t(33100),I=t(87573);let F=e=>{let{posts:n,renderPost:t}=e;return(0,o.jsx)(P.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)(P.ZP,{lg:3,md:4,sm:6,xs:12,item:!0,children:t(e)},e.uri))})},T=e=>{let{fetchMore:n,handleOnSubmit:t,isFetching:r,pageInfo:i,posts:s,term:a}=e;return(0,o.jsxs)(_.Z,{sx:{background:"#f6f6f6"},children:[(0,o.jsxs)(b.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)(S.Z,{component:"h1",sx:{fontSize:"1.6rem",fontWeight:700},children:"Search"}),(0,o.jsx)(I.Z,{handleOnSubmit:t,initialValues:{term:a},placeholder:"Search..."})]}),(0,o.jsxs)(_.Z,{sx:{maxWidth:"1110px",mx:"auto",px:{xs:1,sm:2}},children:[r&&(0,o.jsx)(F,{posts:Array.from({length:20},(e,n)=>({uri:n.toString()})),renderPost:()=>(0,o.jsx)(C.$,{})}),!r&&s&&(0,o.jsx)(F,{posts:s,renderPost:e=>{var n;let{featuredImage:t}=(0,k.Z)(e);return(null==e?void 0:e.uri)?(0,o.jsx)(C.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,{textAlign:"center",children:["Sorry, your search for",(0,o.jsx)(S.Z,{component:"span",sx:{fontWeight:600},children:' "'.concat(a,'" ')}),"did not return any results."]})]}),(0,o.jsx)(b.Z,{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 E=t(9008),W=t.n(E);let O=e=>{var n,t;let{facebookVerification:r,logos:i,site:s,term:a}=e;return(0,o.jsxs)(W(),{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:d}=e,c=(0,i.useRouter)(),u=null!==(l=(0,r.Z)(null==c?void 0:null===(n=c.query)||void 0===n?void 0:n.term))&&void 0!==l?l:d,[h,f]=(0,y.useState)(p),{facebookVerification:g,logos:x,site:v}=(0,m.$Y)(),{data:j,isFetching:P}=Z(u,h);(0,y.useEffect)(()=>{f(p)},[u]);let _={...h,...(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 Z(u,_),(0,o.jsxs)(N.Z,{ogTemplateInfo:{contentType:$.z.search},children:[(0,o.jsx)(O,{facebookVerification:g,logos:x,site:v,term:u}),(0,o.jsx)(T,{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&&c.push("/search/".concat(e.term),void 0,{shallow:!0})},isFetching:P,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}},function(e){e.O(0,[1718,9774,2888,179],function(){return e(e.s=42906)}),_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.