1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5894,6978],{11139:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s,l=t(61060);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var s in t)({}).hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e}).apply(null,arguments)}let r=function(e){return l.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 30 30",role:"none","aria-hidden":!0,focusable:!1},e),s||(s=l.createElement("path",{d:"m23.71 22.187-3.4-3.39a7.92 7.92 0 0 0 1.69-4.9 8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1.004 1.004 0 1 0 1.42-1.42M8 13.897a6 6 0 1 1 6 6 6 6 0 0 1-6-6"})))}},23614:(e,a,t)=>{"use strict";t.d(a,{A:()=>j});var s=t(86152),l=t(74004),n=t(63911),r=t(90010),o=t.n(r),c=t(32697),i=t(65123),h=t.n(i);let u=function(e,a){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return Array.from(Array(a).keys()).map((e,a)=>a+1).reduce((s,l)=>1===l||l===a||l-t<=e&&l+t>=e?[...s,l]:s[s.length-1].toString().includes("ellipses")?s:[...s,"ellipses-".concat(l)],[])},p=function(e,a,t){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/page/",l="https://www.example.com",n=new URL(e,l);if(1===a)n.pathname=n.pathname.replace("".concat(s).concat(t),"");else{let e=n.pathname.includes(s)?n.pathname:"".concat(n.pathname).concat(s,"1");n.pathname=e.replace("".concat(s).concat(t),"".concat(s).concat(a))}return n.toString().replace(l,"")},d=function(e,a,t){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/page/";if("object"==typeof e){let t=new URL(e),l=null==e?void 0:e.pathname.slice(0,null==e?void 0:e.pathname.lastIndexOf(s));return a>1?t.pathname="".concat(l).concat(s).concat(a):t.pathname=l,t.toString()}return p(e,a,t,s)};var m=t(20093);let g=e=>{let a,{className:t,currentPage:l,currentPagePath:n,nextAriaLabel:r,nextIcon:o,nextLabel:c,pageAriaLabel:i,paginationDelta:p=2,previousAriaLabel:g,previousIcon:f,previousLabel:v,style:b,totalPages:j}=e,x=u(l,j,p);try{a=new URL(n)}catch(e){a=n}return(0,s.jsx)("nav",{className:h()("pagination",t),style:b,children:(0,s.jsxs)("ul",{className:"pagination__list",children:[l>1&&(0,s.jsx)("li",{className:"pagination__previous",children:(0,s.jsx)(m.A,{"aria-label":null!=g?g:v,href:d(a,l-1,l),children:null!=f?f:v})}),1===l&&(0,s.jsx)("li",{className:"pagination__previous --is-disabled",children:null!=f?f:v}),x.map(e=>(0,s.jsx)("li",{className:h()("pagination__page",{"is-current":l===e}),children:Number.isInteger(e)&&l!==e?(0,s.jsx)(m.A,{"aria-label":i?"".concat(i," ").concat(e):e,href:d(a,e,l),children:e}):(0,s.jsx)("span",{"aria-current":l===e?"page":void 0,children:l===e?e:"..."})},e)),l<j&&(0,s.jsx)("li",{className:"pagination__next",children:(0,s.jsx)(m.A,{"aria-label":null!=r?r:c,href:d(a,l+1,l),children:null!=o?o:c})}),l>=j&&(0,s.jsx)("li",{className:"pagination__next --is-disabled",children:null!=o?o:c})]})})};var f=t(57203);let v=(0,c.I)(e=>(0,s.jsx)(g,{nextIcon:(0,s.jsx)(f.A,{height:14,width:14}),previousIcon:(0,s.jsx)(f.A,{height:14,width:14}),...e}))({name:"Pagination",class:"pcs668f",propsAsIs:!0});t(50033);let b=e=>{let{pageInfo:a}=e,{asPath:t,defaultLocale:r,locale:o}=(0,n.useRouter)(),{page:c,totalItems:i,totalPages:h}=a,{t:u}=(0,l.A)("common");return 1===h||0===i?null:(0,s.jsx)(v,{currentPage:c,currentPagePath:"/".concat(o!==r?"".concat(o,"/"):"").concat(t.replace(/^\//,"")),nextLabel:u("page-next"),prevLabel:u("page-prev"),totalPages:h})};b.propTypes={pageInfo:o().shape({page:o().number,totalItems:o().number,totalPages:o().number}).isRequired};let j=b},28326:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>W,default:()=>J});var s=t(86152),l=t(61060),n=t(63451),r=t.n(n),o=t(1616),c=t(97508),i=t(36840),h=t(8947),u=t(76984),p=t(24800),d=t(23200),m=t(32027),g=t(95803);class f extends g.e{constructor(){super(...arguments),this.path="",this.locale="",this.optimizeYoastPayload=!1}getDefaultEndpoint(){return u.v.search}getDefaultParams(){return Object.assign({_embed:!0},super.getDefaultParams())}getParamsFromURL(e,a={}){var t,s,l,n;let r=(0,i.vd)(this.baseURL);return this.locale=(null==(s=null==(t=r.integrations)?void 0:t.polylang)?void 0:s.enable)&&a.lang?a.lang:"",this.optimizeYoastPayload=!!(null==(n=null==(l=r.integrations)?void 0:l.yoastSEO)?void 0:n.optimizeYoastPayload),(0,m.R)(d.y9,e)}buildEndpointURL(e){let a=Object.assign({},e);return Array.isArray(a.subtype)&&(a.subtype=a.subtype.join(",")),super.buildEndpointURL(a)}async fetcher(e,a,t={}){var s,l,n,r,o,c,d;let{burstCache:m=!1}=t,g=null,f="",{integrations:v}=(0,i.vd)(this.baseURL);if((null==(s=null==v?void 0:v.yoastSEO)?void 0:s.enable)===!0)try{let e=this.baseURL.replace(/\/$/,""),s=this.locale?`&lang=${this.locale}`:"",o=a.page?`/page/${a.page}
1`:"",c=await (0,p.V)((0,h.FS)(`${e}${u.v.yoast}`,{url:`${e}${o}/?s=${null!=(l=a.search)?l:""}${s}`}),{headers:null!=(n=t.headers)?n:{},cache:null==t?void 0:t.cache},m);f=null!=(r=c.json.html)?r:null,g=Object.assign({},c.json.json)}catch(e){}let b={search:{searchedValue:null!=(o=a.search)?o:"",type:null!=(c=a.type)?c:"post",subtype:null!=(d=a.subtype)?d:"post",yoast_head:f}};return g&&b.search&&(b.search.yoast_head_json=g),this.optimizeYoastPayload&&(a.optimizeYoastPayload=!0),Object.assign(Object.assign({},await super.fetcher(e,a,Object.assign(Object.assign({},t),{throwIfNotFound:!1}))),{queriedObject:b})}}var v=t(6113);function b(e={},a={},t=""){let{data:s,error:l,isMainQuery:n,mutate:r}=(0,o.st)(e,b.fetcher(),a,t);if(l||!s)return{error:l,loading:!s,data:{searchResults:(0,v.O)("posts"),pageInfo:(0,v.O)("pageInfo"),queriedObject:(0,v.O)("queriedObject")},isMainQuery:n,mutate:r};let{result:i,pageInfo:h,queriedObject:u}=s;return{data:{searchResults:i.map(e=>("subtype"in e&&(e.author=(0,c.wO)(e),e.terms=(0,c.gp)(e)),e)),pageInfo:h,queriedObject:u},loading:!1,isMainQuery:n,mutate:r}}(b||(b={})).fetcher=(e,a)=>new f(null!=e?e:(0,i.BS)(),a);var j=t(92706);function x(e={},a={}){let t=(0,j.$)(e,a);return b(t.params,t.options,t.path)}(x||(x={})).fetcher=b.fetcher;var _=t(92185),y=t(63911),w=t(74004),N=t(24980),A=t(88845),I=t.n(A),O=t(77521),R=t(33845),P=t(98955),S=t(63005),L=t(94907),E=t(32697),T=t(65123),U=t.n(T),k=t(94821);let C=(0,E.I)(e=>{let{ButtonComponent:a=k.A,allowEmptySubmit:t=!1,className:n,focusInput:r=!1,initialSearchTerm:o,label:c="Search",onFormSubmit:i,placeholder:h="Search...",searchButtonIcon:u,searchButtonLabel:p="Search",searchInputIcon:d,showLabel:m=!1,style:g}=e,f=(0,l.useRef)(null),[v,b]=(0,l.useState)(""),j=(0,l.useId)(),x=(0,l.useCallback)(e=>{e.preventDefault(),(v||t)&&i(v)},[i,v,t]),_=(0,l.useCallback)(e=>{b(e.target.value)},[b]);(0,l.useEffect)(()=>{b(o||"")},[o]),(0,l.useEffect)(()=>{if(r){var e;null==(e=f.current)||e.focus()}},[r]);let y=(0,s.jsx)("input",{"aria-label":m?void 0:c,className:"search-form__input",id:j,name:"searchTerm",onChange:_,placeholder:h,ref:f,type:"search",value:v,required:!0});return(0,s.jsx)("div",{className:U()("search-form",n),style:g,children:(0,s.jsxs)("form",{className:"search-form__form",onSubmit:x,role:"search",children:[m&&(0,s.jsx)("label",{className:"search-form__label",htmlFor:j,children:c}),d&&(0,s.jsxs)("div",{className:"search-form__input-wrapper",children:[(0,s.jsx)("div",{className:"search-form__icon",children:d}),y]}),!d&&y,(0,s.jsx)("div",{className:"search-form__actions",children:(0,s.jsx)(a,{className:"search-form__button",disabled:!v&&!t,icon:u,onClick:x,type:"submit",children:p})})]})})})({name:"SearchForm",class:"so6zauz",propsAsIs:!0});t(64707);var $=t(86919),F=t(57203),z=t(11139);let B=e=>{let{className:a,initialSearchTerm:t,onFormSubmit:l,resultsLabel:n,searchButtonLabel:r,searchLabel:o,style:c}=e;return(0,s.jsxs)("div",{className:U()("search-form-results",a),style:c,children:[(0,s.jsx)(C,{searchButtonIcon:(0,s.jsx)("span",{className:"button__icon",children:(0,s.jsx)(F.A,{height:12,width:12})}),ButtonComponent:$.$n,initialSearchTerm:t,onFormSubmit:l,placeholder:"Type what you need to search",searchButtonLabel:r,searchInputIcon:(0,s.jsx)(z.A,{})}),t&&(0,s.jsxs)("div",{"aria-live":"polite",className:"search-form-results__meta",children:[t&&(0,s.jsxs)("p",{children:[o,": ",(0,s.jsx)("b",{children:t})]}),n]})]})};var Y=t(8183),q=t(78876);q.A.spacing["scale-4"],q.A.spacing[80],q.A.fontWeight.semibold,Y.K.p3;let D=(0,E.I)(e=>(0,s.jsx)(B,{...e}))({name:"SearchFormResults",class:"s1r88emz",propsAsIs:!0});t(93563);var V=t(82840),M=t(11980),X=t(3545),G=t(98887),H=t(23614);let K=r()(()=>Promise.all([t.e(2864),t.e(7499),t.e(9551),t.e(2931),t.e(6029),t.e(8980),t.e(8670),t.e(8296),t.e(2824)]).then(t.bind(t,28296)),{loadableGenerated:{webpack:()=>[28296]}});var W=!0;let J=e=>{var a,t;let{params:n,searchPageContentParams:r}=e,o=(0,y.useRouter)(),{t:c}=(0,w.A)("common"),{data:i,loading:h}=x(n),{data:u}=(0,_.Y)(r,{fetchStrategyOptions:{throwIfNotFound:!1}}),p=(0,N.t)(),d="",m=(null==u||null==(t=u.post)||null==(a=t.content)?void 0:a.rendered)||"",g=(0,l.useCallback)(e=>{let a="/search/".concat(encodeURIComponent(e));o.push(a,a,{locale:o.locale})},[o]);if(h)return(0,s.jsx)(S.R,{});let{totalItems:f}=i.pageInfo;
1d=i.queriedObject.search.searchedValue;let v=[{page:c("page")}];(null==p?void 0:p.customPostTypes)&&p.customPostTypes.forEach(e=>{v.push({[e.slug]:c(e.slug)})});let b=(null==i?void 0:i.searchResults)?(0,M.Lt)(null==i?void 0:i.searchResults,{showCTA:!1,showDate:!1,showExcerpt:!0},"app"):[];return b.forEach(e=>{let a=(0,O.NU)(null==e?void 0:e.titleURL,(null==p?void 0:p.hostUrl)||"https://www.globaluniversitysystems.com",(null==p?void 0:p.sourceUrl)||"https://wp.globaluniversitysystems.com/gus-corporate");e.className="card--search",e.extraBeforeContent=(0,s.jsx)(X.A,{className:"card__url",href:a,children:a})}),(0,s.jsxs)(R.P,{tag:"main",children:[(0,s.jsx)(G.A,{}),(0,s.jsxs)(P.Y,{className:"search-results__container is-layout-constrained",children:[(0,s.jsx)(V.q,{className:"fancy-heading--search",headline:c("corporate:what-are-you"),highlightText:c("corporate:looking-for"),level:1}),(0,s.jsx)(D,{resultsLabel:(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:I()(c("corporate:we-found-n-results",{total:f}))}}),initialSearchTerm:d,onFormSubmit:g,searchButtonLabel:c("search"),searchLabel:c("you-searched-for"),searchTerm:d}),d&&f>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L.n,{className:"--is-list",columns:1,content:b,showDate:!1,showMedia:!1,showTags:!1,showTaxonomy:!1,showTerms:!1,typographyVariant:"m",showURL:!0}),(0,s.jsx)(H.A,{pageInfo:null==i?void 0:i.pageInfo})]})]}),m&&(0,s.jsx)(K,{html:m})]})}},34851:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/search/[[...path]]",function(){return t(28326)}])},50033:()=>{},64707:()=>{},93563:()=>{}},e=>{e.O(0,[9345,7955,8162,5712,1336,6385,439,7301,3190,4907,3862,5388,636,6593,8792],()=>e(e.s=34851)),_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.