1import{w as N,r as c,j as s,a as r}from"./components-DuIiJFoz.js";import{b as d,g as x,d as i,y as T,B as w,u as I,P as $,h as C,H as a,S as A,l as L,z as u,A as p,D as k,e as h,f as m,I as P,E,F,G as q,J as _}from"./index-CzxLBsFn.js";import{S as G}from"./index-mRQgHjvX.js";import{g as z}from"./typography.web-DoG5p3A6.js";import{R as O}from"./index-BPTHyijx.js";import{N as j}from"./fetchNewsFeed-BOzfNGO6.js";import"./errorBoundaries-CjdKa6Dq.js";import"./index-CBQirLM9.js";import"./whiteLabel-B4Tkv2bM.js";const U=i(T,`${d(w)} { 2 display: flex; 3 align-items: center; 4 } 5 flex-wrap: wrap;`),W=e=>i` 6 > * { 7 display: flex; 8 } 9 li { 10 margin-top: 0; 11 12 a { 13 padding: 0.75rem; 14 } 15 } 16 align-items: center; 17 font-family: ${e.body.value}; 18`,B=(e,l=!1)=>i` 19 li > span { 20 width: 100%; 21 } 22 li:not(:first-of-type) { 23 margin-top: 1rem; 24 } 25 ${l?"li":"li:not(:last-child)"} { 26 padding-bottom: 1rem; 27 border-bottom: 1px solid ${e.divider.value}; 28 } 29`,M=e=>i` 30 display: flex; 31 width: 100%; 32 justify-content: space-between; 33 gap: 0.5rem; 34 :hover { 35 h3 { 36 color: ${e.icon.brand.value}; 37 text-decoration: underline; 38 } 39 .nn-icon-circled { 40 border-color: ${e.icon.brand.value}; 41 svg { 42 color: ${e.icon.brand.value}; 43 } 44 } 45 } 46`,V=()=>i` 47 ${d(x)} { 48 width: 50%; 49 } 50`,te=()=>[{title:"NN Group Search Function - Find What You Need",description:"Use the NN Group search function to quickly and easily find information and services. Discover everything youâre looking for with ease."}],H=({loaderData:e})=>{const[l,o]=c.useState(e.query),{borderColorTokens:g,colorTokens:v,fontFamilyTokens:y}=I(()=>({borderColorTokens:_(),colorTokens:q(),fontFamilyTokens:z()})),[S,f]=c.useState(e.results?.pageSize.toString()??"10");function b(t){o(t.target.value)}function R(){o("")}return s("main",{id:"main",children:s($,{children:r(F,{children:[s(C,{numberOfItems:2,children:r("div",{children:[s(a,{variant:"AttentionalFourXl",htmlTag:"h1",isFirstSection:!0,children:e.query?"Search results":"Search"}),s(A,{name:"query",labelText:e.results?`We found ${e.results.totalResults} result${e.results.totalResults!==1?"s":""} for the search 51 term â${e.query}â`:"Search NN Group",onChange:b,onEmptySearchInput:R,value:l??"",mb:"1rem"})]})}),e.results?.totalResults?r("div",{css:L,children:[r("div",{id:"search-results",css:B(g),children:[s(a,{variant:"XS",htmlTag:"h2",mb:"1rem",children:"All results"}),s(u,{variant:"NoListStyleType",htmlTag:"ol",children:e.results.items.map(t=>s(p,{variant:"NoListStyleType",children:s(k,{reloadDocument:t.url.startsWith("/news"),to:t.url,prefetch:"intent",css:i` 52 text-decoration: none; 53 display: block; 54 `,children:r("div",{css:M(v),children:[r("div",{css:V(),children:[s(a,{htmlTag:"h3",variant:"XL",isFirstSection:!0,children:t.title}),s(h,{variant:m.variants.VARIANT_LARGE,children:t.description})]}),s("div",{css:i` 55 display: flex; 56 align-items: center; 57 `,children:s(P,{name:"ChevronRight"})})]})})},t.url))})]}),e.newsResults&&e.newsResults.totalItems>0&&e.newsResults?.member?s(E,{link:j,linkText:"View all articles",title:"Search results for News & Press Releases",cards:e.newsResults.member.map(t=>({title:t.title,link:t.releaseURL,guid:t.id.toString(),caseid:t.id.toString(),description:"",category:t.tag_labels.join(","),pubDate:t.publish_date,ppImage:t.featured_image_url}))}):null,r("div",{css:U,children:[s(G,{name:"pageSize",value:S,onChange:t=>{f(t.target.value)},labelText:"Results per page",options:[{value:"10",text:"10"},{value:"20",text:"20"},{value:"50",text:"50"},{value:"100",text:"100"}]}),e.results.totalPages>1?s("nav",{css:W(y),children:s(u,{variant:"NoListStyleType",htmlTag:"ul",children:new Array(e.results.totalPages).fill(null).map((t,n)=>s(p,{variant:"NoListStyleType",children:s("div",{"aria-controls":"search-results","aria-label":`Go to page ${n+1} of search results`,children:s(O,{text:`${n+1}`,variant:n+1===e.results.pageNumber?"PrimaryStandAlone":"Primary",to:{pathname:"/search",search:`?query=${e.query}&page=${n+1}&pageSize=${e.results.pageSize}`},rel:n+1===e.results.pageNumber?void 0:n>=e.results.pageNumber?"next":"prev"})})},`pagination-${n}`))})}):null]})]}):e.query?r(h,{variant:m.variants.VARIANT_LARGE,mb:"2rem",children:["No results found for '",e.query,"'"]}):null]})})})},re=N(H);export{re as default,te as meta};
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.