1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[307],{56:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/advanced-search",function(){return t(3128)}])},3128:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSG:()=>N,default:()=>j});var l=t(7876),s=t(6618),i=t(4232),n=t(2051),r=t(8992),c=t(2677),o=t(9889),d=t(4380);let u=({searchSection:e,filtersSection:a,submitButton:t})=>{let{searchDispatch:s,searchState:i,setIsSearching:n}=(0,c.A)(),u=(0,r.mN)({defaultValues:{searchForm:e.searchFields,filters:a.filters},mode:"onBlur"}),p=async e=>{let a=e.searchForm;a&&a.forEach(e=>{switch("recruiting_upcoming"===e.uniqueId&&s({type:"setStatus",value:{"RECSTATUS_NOT_YET_REC~RECSTATUS_RECRUITING":!!e.value}}),e.type){case"location":let a=e.value;a&&(s({type:"setLocationName",value:a.locationName}),s({type:"setLongitude",value:a.lng.toString()}),s({type:"setLatitude",value:a.lat.toString()}),s({type:"setSortField",value:"Location_Distance"}),s({type:"setSortOrder",value:"asc"}));break;case"distance":let t=e.value;t&&s({type:"setMileRadius",value:t});break;case"keyword-autocomplete":let l=e.value;l&&s({type:"setSearchTerm",value:l})}});let t=e.filters;t&&t.forEach(e=>{if(e.idPayload&&e.value)if("select"!==e.type)s({type:`set${e.idPayload}`,value:{[`${Array.isArray(e.value)?e.value.join("~"):e.value}`]:!0}});else{let a=e.value;if(a){let t=Array.isArray(a)?a[0]:void 0;t&&("Yes"===t||"No"===t)&&s({type:`set${e.idPayload}`,value:"Yes"===t})}}}),s({type:"setPageIndex",value:"0"}),n(!0)};return(0,l.jsx)("div",{className:"",children:(0,l.jsx)(r.Op,{...u,children:(0,l.jsxs)("form",{onSubmit:u.handleSubmit(p),children:[(0,l.jsxs)("div",{className:"divide-y",children:[(0,l.jsx)(d.A,{stepName:"searchForm",heading:e.searchSectionHeadline}),(0,l.jsx)(o.A,{stepName:"filters",heading:a.filtersSectionHeadline})]}),(0,l.jsx)("div",{className:"flex justify-end mt-8",children:(0,l.jsx)("button",{type:"submit",className:"w-full md:w-auto bg-primary-claret group text-white pt-4 pb-[15px] px-[25px] font-bold italic text-base leading-[19px] focus-visible:outline-1 focus-visible:outline-primary-claret focus-visible:outline-offset-2",children:(0,l.jsx)("span",{className:"inline-block after:block after:content-[''] after:border-b-[3px] after:scale-x-0 after:border-[#D0006F] after:transition-all after:duration-300 group-focus-visible:after:scale-x-100 group-hover:after:scale-x-100",children:t})})})]})})})};var p=t(5277),h=t(9880),x=t(4982),m=t(104),f=t(6952),v=t(4854),y=t(6570),b=t(7328),g=t.n(b),N=!0;let j=({staticData:e,header:a,footer:t})=>{let[r,c]=(0,i.useState)(!0),[o,d]=(0,i.useState)(),b=(0,s.A)(),{parsedData:N}=(0,f.A)(v.FD,v.EK,(0,v._R)((0,m.getKeystoneWebsiteId)())),{parsedData:j}=(0,f.A)(h.zS,h.dn,(0,h.BI)((0,m.getKeystoneWebsiteId)())),{parsedData:S}=(0,f.A)(x.zT,x.pC,(0,x.DU)((0,m.getKeystoneWebsiteId)())),_=N||e;return(0,i.useEffect)(()=>{if(b){let e=_.filtersSection,a=e.filters.map(e=>e.options&&e.options.length>0?{...e,options:e.options.map(e=>({label:e.label,value:e.value}))}:{...e,options:(e=>{let a=b[e];if(!a)return[];let t=[];return a.forEach(e=>{t.push({value:e.InternalValue,label:e.DisplayValue}),e.Children&&e.Children.length>0&&e.Children.forEach(e=>{t.some(a=>a.label===e.DisplayValue)||t.push({value:e.InternalValue,label:e.DisplayValue})})}),t})(e.uniqueId)});e.filters=a.filter(e=>e.options&&e.options.length>0),d(e),c(!1)}},[b]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g(),{children:(0,l.jsx)(y.e,{path:"/advanced-search/"})}),(0,l.jsx)(p.P,{headerContent:S||a,footerContent:j||t,lightTheme:!0,seo:_.seo,canonicalUrl:"/advanced-search",children:(0,l.jsxs)("main",{className:"font-light advanced-search-page font-secondary",children:[(0,l.jsx)("div",{className:"bg-primary-claret",children:(0,l.jsx)("div",{className:"flex items-center py-8 md:pt-16 md:pb-[120px] container-content max-w-container mx-auto px-6 xl:px-0",children:(0,l.jsx)("h1",{className:"text-white italic text-[40px] md:text-5xl leading-[56px] md:leading-[56px]",children:_.heroHeadline})})}),(0,l.jsx)("div",{className:"bg-transparent xl:-mt-20",children:(0,l.jsx)("div",{className:"px-5 mx-auto bg-white container-content max-w-container xl:px-0",children:(0,l.jsx)("div",{className:"py-6 md:py-12 xl:p-12",children:r||!o?(0,l.jsxs)("div",{className:"flex items-center justify-center py-12",children:[(0,l.jsx)(n.FaSpinner,{className:"mr-1 text-lg animate-spin "}),(0,l.jsx)("span",{className:"text-base ",children:"Loading..."})]}):(0,l.jsx)(u,{..._,filtersSection:o})})})})]})})]})}}},e=>{e.O(0,[956,371,826,43,113,627,636,593,792],()=>e(e.s=56)),_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.