1/*! For license information please see group-unit-news-grid-f595b7e50ec3b076f170.js.LICENSE.txt */ 2"use strict";(self.webpackChunkwarwick_group_redesign=self.webpackChunkwarwick_group_redesign||[]).push([[4270],{559(e,t,r){r.d(t,{default:()=>d});var n=r.cw(function(e,t){var n=r(6518),o=r(9504),i=r(9306),a=r(8981),c=r(6198),s=r(4606),u=r(655),l=r(9039),f=r(4488),d=r(4598),v=r(3709),p=r(3763),h=r(9519),w=r(3607),y=[],m=o(y.sort),g=o(y.push),b=l(function(){y.sort(void 0)}),S=l(function(){y.sort(null)}),j=d("sort"),k=!l(function(){if(h)return h<70;if(!(v&&v>3)){if(p)return!0;if(w)return w<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)y.push({k:t+n,v:r})}for(y.sort(function(e,t){return t.v-e.v}),n=0;n<y.length;n++)t=y[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}});n({target:"Array",proto:!0,forced:b||!S||!j||!k},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(k)return void 0===e?m(t):m(t,e);var r,n,o=[],l=c(t);for(n=0;n<l;n++)n in t&&g(o,t[n]);for(f(o,function(e){return function(t,r){if(void 0===r)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,r)||0;var n=u(t),o=u(r);return n===o?0:n>o?1:-1}}(e)),r=c(o),n=0;n<r;)t[n]=o[n++];for(;n<l;)s(t,n++);return t}})});r(2675),r(9463),r(2008),r(1629),r(4346),r(3792),r(5086),n(),r(3288),r(4170),r(9904),r(4185),r(875),r(287),r(6099),r(3362),r(7764),r(8992),r(4520),r(3949),r(7550),r(3500),r(2953),r(6031),r(3296),r(7208),r(8408);var o=r(7557),i=r.n(o),a=(r(2206),r(1060)),c=r(4692);function s(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,l=Object.create(s.prototype);return u(l,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,r){return i=t,c=0,s=e,d.n=r,a}};function v(r,n){for(c=r,s=n,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],v=d.p,p=i[2];r>3?(o=p===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=r<2&&v<i[1])?(c=0,d.v=n,d.n=i[1]):v<p&&(o=r<3||i[0]>n||n>p)&&(i[4]=r,i[5]=n,d.n=p,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,p){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&v(l,p),c=l,s=p;(t=c<2?e:s)||!f;){i||(c?c<3?(c>1&&(d.n=-1),v(c,s)):d.n=s:d.v=s);try{if(u=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(f=d.n<0)?s:r.call(n,d))!==a)break}catch(t){i=e,c=1,s=t}finally{u=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function c(){}function l(){}function f(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(u(t={},n,function(){return this}),t),v=f.prototype=c.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=f,u(v,"constructor",f),u(f,"constructor",l),l.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(v),u(v,o,"Generator"),u(v,n,function(){return this}),u(v,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:p}})()}function u(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,r,n){function i(t,r){u(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},u(e,t,r,n)}function l(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}var f=function(){var e,t=(e=s().m(function e(t){var r,n,o,u,l,f,d,v,p,h,w,y,m,g,b,S,j,k,_,T,A,C,O,x,M;return s().w(function(e){for(;;)switch(e.p=e.n){case 0:if(x=function(){new a.default({wrapperEl:t,hideClass:"load-more-hidden",itemClass:"news-card",loadMoreBtnClass:"loadmore-button"}).on("afterLoadMore",function(e){e.forEach(function(e){return e.classList.add("js-smooth-hide")}),setTimeout(function(){e.forEach(function(e){return e.classList.remove("js-smooth-hide")})},10)})},O=function(e,t){var r=e;return"all"!==t.category&&(r=r.filter(function(e){return Array.isArray(e.news_category)&&e.news_category.some(function(e){return String(e.id)===String(t.category)})})),"all"!==t.location&&(r=r.filter(function(e){return Array.isArray(e.country_id)&&e.country_id.some(function(e){return String(e)===String(t.location)})})),r},C=function(e,r,n,o){c(e).on("select2:select",function(e){var i,a=null===(i=e.params)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.id,c=window.innerWidth>1199?138:93;o[n]=a;var s=O(r,o);S(s),A(t,c)})},A=function(e,t){var r=e.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:r-t,behavior:"smooth"})},T=function(e,t){c(e).select2({dropdownParent:c(t),width:"100%",minimumResultsForSearch:1/0,dropdownPosition:"below"})},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=i().compile(h);e.sort(function(e,t){return new Date(t.date_displayed)-new Date(e.date_displayed)});var n=r({items:e});w.innerHTML=n,t.loadMore&&t.loadMore.destroy(),x()},u=null!=t&&null!==(r=t.dataset)&&void 0!==r&&r.hasFilter?t.dataset.hasFilter:"false",l=t.querySelector(".js-filter-select2"),f=t.querySelector(".js-filter-select2-location"),d=null==l?void 0:l.closest(".filter-area-wrap"),v=null==f?void 0:f.closest(".filter-area-wrap"),u&&l&&(l&&T(l,d),f&&T(f,v)),p=null!=t&&null!==(n=t.dataset)&&void 0!==n&&n.json?new URL(t.dataset.json,location.origin).href:null,h=null===(o=t.querySelector(".js-news-template"))||void 0===o?void 0:o.innerHTML,w=t.querySelector(".grid-wrapper"),p&&h&&w){e.n=1;break}return console.warn("Missing JSON path or template in section:",t),e.a(2);case 1:return e.p=1,e.n=2,GalaxyHelpers.staticSearch({url:p});case 2:m=e.v,g=null!==(y=null==m?void 0:m.results)&&void 0!==y?y:[],m&&"results"in m?Array.isArray(m.results)||console.warn("â ï¸ 'results' is not an array:",m.results):console.error("â Invalid API response:",m),S(g),b={category:"all",location:"all"},u&&(l&&C(l,g,"category",b),f&&C(f,g,"location",b)),t.loadMore&&t.loadMore.destroy(),x(),e.n=4;break;case 3:e.p=3,M=e.v,console.error("â Error fetching data:",M);case 4:(j=t.querySelector(".news-loadmore-btn"))&&(k=!1,_=function(){k||(k=!0,j.click(),setTimeout(function(){k=!1},600))},new IntersectionObserver(function(e){e[0].isIntersecting&&setTimeout(function(){return _()},400)},{threshold:0,rootMargin:"-100px"}).observe(j));case 5:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,c,"next",e)}function c(e){l(i,n,o,a,c,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();const d=function(){document.querySelectorAll(".group-unit-news-grid").forEach(function(e){return f(e)})};r.dn(d)},2206(e,t,r){r.d(t,{GU:()=>a});var n=r.cw(function(e,t){var n=r(6518),o=r(9565),i=r(9306),a=r(6043),c=r(1103),s=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{allSettled:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,l=c(function(){var r=i(t.resolve),a=[],c=0,u=1;s(e,function(e){var i=c++,s=!1;u++,o(r,t,e).then(function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--u||n(a))},function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--u||n(a))})}),--u||n(a)});return l.error&&u(l.value),r.promise}})});r(2675),r(9463),r(8706),r(113),r(1629),r(4423),r(3792),r(9089),r(4170),r(9904),r(4185),r(875),r(287),r(6099),r(3362),n(),r(7495),r(906),r(1699),r(7764),r(5440),r(8992),r(2577),r(3949),r(3500),r(2953),r(6031);var o=r(4692),i=r.n(o);function a(e,t,r){i()(e).on("select2:open",function(e){i()(t).find(".select2-dropdown").hide(),i()(t).find(".select2-dropdown").finish(),i()(t).find(".select2-selection--single").addClass("select2-custom-expand"),i()(t).find(".select2-dropdown").addClass("dropdown-open-custom-ani"),setTimeout(function(){i()(t).find(".select2-dropdown").stop().hide().fadeIn({duration:200,queue:!1})},1)}),i()(e).on("select2:closing",function(n){n.preventDefault(),i()(t).find(".select2-selection--single").removeClass("select2-custom-expand"),i()(t).find(".select2-dropdown").removeClass("dropdown-open-custom-ani"),i()(t).find(".select2-dropdown").fadeOut(200,function(){i()(e).select2("destroy"),r()})})}r(4353),i()(window)},3709(e,t,r){var n=r(2839).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},3763(e,t,r){var n=r(2839);e.exports=/MSIE|Trident/.test(n)}
2,3607(e,t,r){var n=r(2839).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]}}]);
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.