1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{8266:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return n(737)}])},7755:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(5893),a=n(8420),r=n(6159);function l(e){let{dateString:t}=e,n=(0,a.Z)(t);return(0,s.jsx)("time",{dateTime:t,children:(0,r.Z)(n,"LLLL d, yyyy")})}},737:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return _},default:function(){return j},searchPageData:function(){return f}});var s=n(5893);n(7294);var a=n(1163),r=n(8767),l=n(9008),o=n.n(l),c=n(1664),i=n.n(c),d=n(5675),u=n.n(d),h=n(8442),x=n(3454);let g={wordpressUrl:"https://cms.preemptdisinfectants.ca",gtmId:x.env.NEXT_PUBLIC_API_GTM_ID};var m=n(3951),p=n(3627),v=n(7755),_=!0;let f={content:"content",blogs:"blogs",noDataFound:"No data found !!!",readMore:"READ MORE",loading:"Loading...",searchResults:"Search Results for",loadMore:"LOAD MORE"};function j(e){var t,n,l,c;let{preview:d,menuItems:x}=e,_=(0,a.useRouter)(),{query:j}=_.query,N=async()=>{let e=await fetch("".concat(g.wordpressUrl)+"/wp-json/home/v1/search-posts?cpage=1&search_text=".concat(j));return e.json()},{data:w,isLoading:y}=(0,r.useQuery)([j],N);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(p.Z,{preview:d,menuItems:x,children:[(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{children:"Search Results - ".concat(h.jG?h.jG:"PREempt⢠Disinfectants")}),(0,s.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,s.jsx)(m.Z,{children:(0,s.jsx)("div",{className:"relative bg-white",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl px-6",children:(0,s.jsxs)("section",{children:[(0,s.jsx)("h1",{className:"text-6xl font-bold text-center tracking-tighter leading-tight mb-4 mt-10",children:"Search Results"}),(0,s.jsx)("p",{className:"text-xl text-center",children:"".concat(f.searchResults,' "').concat(j,'"')}),(null==w?void 0:null===(t=w.data)||void 0===t?void 0:t.length)===0&&(0,s.jsx)("p",{children:f.noDataFound}),(null==w?void 0:null===(n=w.data)||void 0===n?void 0:n.length)>0&&(0,s.jsxs)("p",{children:[null==w?void 0:null===(l=w.data)||void 0===l?void 0:l.length," Post(s) found"]}),y&&(0,s.jsx)("p",{children:f.loading}),(0,s.jsx)("div",{className:"grid md:grid-cols-3 gap-8 mb-20",children:(null==w?void 0:null===(c=w.data)||void 0===c?void 0:c.length)>0&&(null==w?void 0:w.data.map((e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{children:(0,s.jsxs)(i(),{href:"".concat((null==e?void 0:e.post_category_slug)?null==e?void 0:e.post_category_slug:"/news","/").concat(e.post_name),passHref:!0,children:[(0,s.jsx)(u(),{src:null==e?void 0:e.image_url,alt:"Featured image",height:400,width:400,className:"blog-featured-image"}),(0,s.jsx)("div",{className:"text-base my-4 text-gray-500 font-gothamMedium",children:(0,s.jsx)(v.Z,{dateString:e.post_date})}),(0,s.jsx)("h3",{className:"text-2xl mb-3 leading-snug font-orpheuspro text-everGreen",children:(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:e.post_title||""},className:"cursor-pointer"})})]})}),(0,s.jsx)("div",{children:(0,s.jsx)(i(),{href:"".concat((null==e?void 0:e.post_category_slug)?null==e?void 0:e.post_category_slug:_.pathname,"/").concat(e.post_name),passHref:!0})})]},t)))})]})})})})]})})}},1163:function(e,t,n){e.exports=n(880)}},function(e){e.O(0,[726,664,358,627,774,888,179],function(){return e(e.s=8266)}),_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.