vendor: 5,115 bytes, lines 1-2
1/*! For license information please see ArticleGrid-chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4633],{1946:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});r(5374),r(3238),r(5849),r(1418),r(8217),r(7471),r(2077),r(911),r(5163),r(9785),r(5901),r(2189),r(1047),r(5769),r(7460),r(4078),r(8521),r(6798),r(2923),r(1897),r(4374),r(2274),r(3352),r(987),r(190),r(2410);var n=r(4360),i=r(9357);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return T()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var l=C(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function h(){}function f(){}function v(){}var m={};s(m,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(_([])));g&&g!==t&&r.call(g,i)&&(m=g);var L=v.prototype=h.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,a,l,c){var s=d(e[i],e,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==o(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(p).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function C(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,p;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return f.prototype=v,s(L,"constructor",v),s(v,"constructor",f),f.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(L),s(L,c,"Generator"),s(L,i,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=_,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function l(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,c,"next",e)}function c(e){l(o,n,i,a,c,"throw",e)}a(void 0)}))}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const p=u((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"handleSorter",(function(){r.filterList=r.$el.querySelectorAll(".filter-tags--sortoptions>li"),r.filterList&&r.filterList.forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.valueSortOrder,n=e.dataset.valueSortby;r.sortOrder=t,r.sortBy=n,r.filterSel.textContent=null==e?void 0:e.textContent,r.articleApi()}))}))})),d(this,"handleDeleteContent",function(){var e=c(a().mark((function e(t){var n,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={itemids:[t],language:(0,i.pJ)()},o="",1!==i.gT.showMockData){e.next=8;break}return e.next=5,fetch("../../assets/article-data.json",{method:"GET",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"}});case 5:o=e.sent,e.next=11;break;case 8:return e.next=10,fetch(r.deleteContentApiUrl,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 10:o=e.sent;case 11:return e.next=13,o.json();case 13:e.sent&&(window.itemids.splice(window.itemids.indexOf(t)),r.articleApi());case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),d(this,"articleApi",c(a().mark((function e(){var t,n,o,l,c,s,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l={search:"",currentPage:r.currentPage,pageSize:r.pageSize,sortBy:r.sortBy,sortOrder:r.sortOrder,filters:r.selectedFilters,language:(0,i.pJ)()},window.itemids&&(l.itemids=window.itemids),c="",1!==i.gT.showMockData){e.next=9;break}return e.next=6,fetch("../../assets/article-data.json",{method:"GET",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"}});case 6:c=e.sent,e.next=12;break;case 9:return e.next=11,fetch(r.articleApiUrl,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});case 11:c=e.sent;case 12:return e.next=14,c.json();case 14:s=e.sent,r.paging=s.paging,r.results=s.results,r.totalRecord=null===(t=r.paging)||void 0===t?void 0:t.totalRecord,r.results&&r.totalRecord>r.pageSize?r.paginator.classList.add("display-element"):r.paginator.classList.remove("display-element"),r.results&&r.totalRecord>0?r.filterTags.classList.add("enabled"):r.filterTags.classList.remove("enabled"),r.emitObj={eventSource:i.Jw.ARTICLE_GRID,eventType:i.GM.PAGE_CONFIG,pageSize:r.pageSize,totalRecord:r.totalRecord,currentPage:r.currentPage},i.Xk.next(r.emitObj),u=null===(n=r.peopleHeaderCount)||void 0===n?void 0:n.dataset.peopleCountPlaceholder,u=null===(o=u)||void 0===o?void 0:o.replace("{0}",r.totalRecord),r.peopleHeaderCount.textContent=u,r.articleGridUl.replaceChildren(),r.results.forEac
2h((function(e,t,n){var i=document.createElement("div"),o=document.createElement("div");!0!==e.isFeature||0!==t&&4!==t?i.classList.add("articlecard"):i.classList.add("articlecard--fullwidth"),i.setAttribute("itemId",null==e?void 0:e.itemId);var a=document.createElement("div");a.classList.add("articlecard--imgwrap"),i.append(a);var l=document.createElement("a");l.classList.add("articlecard__img-link"),l.href=null==e?void 0:e.itemurl;var c=document.createElement("img");if(c.src="".concat(e.image),c.setAttribute("alt",null==e?void 0:e.sector),l.append(c),a.append(l),i.append(a),"true"===r.isSaveContent){var s=document.createElement("button");s.classList.add("articlecard--cross"),s.classList.add("hide-element"),s.addEventListener("click",(function(){r.handleRemoveConfirmationPopup(i.getAttribute("itemId"))})),i.append(s)}var u=document.createElement("div");u.classList.add("articlecard__label");var d=document.createElement("p");d.classList.add("articlecard__label--cat"),d.textContent=e.sector,u.append(d);var p=document.createElement("p");p.classList.add("articlecard__label--divider"),u.append(p);var h=document.createElement("p");h.classList.add("articlecard__label--duration"),h.textContent="Published: "+e.bannerpublishdate_s,u.append(h);var f=document.createElement("div"),v=document.createElement("h4");f.classList.add("articlecard__detail"),v.textContent=null==e?void 0:e.title,f.append(v);var m=document.createElement("div");m.classList.add("articlecard__cta");var y=document.createElement("a");y.classList.add("articlecard__cta--href"),y.href=null==e?void 0:e.itemurl,y.textContent=r.ctaLabel,m.append(y),"true"!==e.isFeature||0!==t&&4!==t?(i.append(u),i.append(f),i.append(m)):(o.append(u),o.append(f),o.append(m),i.append(o)),r.articleGridUl.append(i)})),r.handleEditContent();case 28:case"end":return e.stop()}}),e)})))),d(this,"handleEditContent",(function(){i.gT.checkForElement(r.clearFilter)&&(r.articleCards=r.$el.querySelectorAll(".articlecard"),"true"===r.isSaveContent&&(r.editContentTxt=r.clearFilter.dataset.editcontentLabel,r.finishContentTxt=r.clearFilter.dataset.finishcontentLabel,r.clearFilter.textContent=r.editContentTxt,r.clearFilter.classList.remove("visible-hidden"),r.clearFilter.addEventListener("click",(function(){r.clearFilter.textContent===r.finishContentTxt?(r.clearFilter.textContent=r.editContentTxt,r.articleCards.forEach((function(e){e.querySelector(".articlecard--cross").classList.add("visible-hidden")}))):(r.clearFilter.textContent=r.finishContentTxt,r.articleCards.forEach((function(e){e.querySelector(".articlecard--cross").classList.remove("visible-hidden")})))}))))})),d(this,"handleRemoveConfirmationPopup",(function(e){r.removePopup.classList.add("display-element"),r.removePopupBg.classList.add("display-element"),i.gT.checkForElement(r.popupCross)&&r.popupCross.addEventListener("click",(function(){r.removePopup.classList.remove("display-element"),r.removePopupBg.classList.remove("display-element")})),i.gT.checkForElement(r.popupCta)&&r.popupCta.addEventListener("click",(function(){r.handleDeleteContent(e),r.removePopup.classList.remove("display-element"),r.removePopupBg.classList.remove("display-element")}))})),this.$el=t,this.articleGridUl=this.$el.querySelector(".article__grid"),this.peopleHeaderCount=this.$el.querySelector(".people__header--count"),this.filterCta=this.$el.querySelector(".filter__filsort--ctafilter"),this.sortCta=this.$el.querySelector(".filter__filsort--ctasort"),this.sortContainer=this.$el.querySelector(".sorting-container"),this.sortContainerOverlay=this.$el.querySelector(".sorting-container--overlay"),this.clearFilter=this.$el.querySelector(".filter-tags__clear"),this.filterSel=this.$el.querySelector(".filter-tags--sortsel"),this.filterOptions=this.$el.querySelector(".filter-tags--sortoptions"),this.filterTagOptionLi=this.$el.querySelectorAll(".filter-tags--sortoptions>li")[0],this.paginator=this.$el.querySelector(".paginator"),this.filterTags=this.$el.querySelector(".filter-tags"),i.gT.checkForElement(this.filterTagOptionLi)&&(this.sortOrder=this.filterTagOptionLi.dataset.valueSortOrder,this.sortBy=this.filterTagOptionLi.dataset.valueSortby),this.selectedFilters=[],this.currentPage=1,(0,n.PC)(this.selectedFilters,this.clearFilter),i.gT.checkForElement(this.articleGridUl)&&(this.isSaveContent=this.articleGridUl.dataset.saveContent||"false",this.articleApiUrl=this.articleGridUl.dataset.articleApiUrl||"".concat(window.location.origin,"/api/article/"),this.deleteContentApiUrl=this.articleGridUl.dataset.deleteContentApiUrl,this.pageSize=Number(this.articleGridUl.dataset.pageSize),this.ctaLabel=this.articleGridUl.dataset.ctaLabel),this.filterContainer=this.$el.querySelector(".filter-container"),this.filterContainerOverlay=this.$el.querySelector(".filter-container--overlay"),this.filterAside=this.$el.querySelector("#filterContainer"),i.gT.checkForElement(this.filterCta)&&this.filterCta.addEventListener("click",(function(){(0,n.wE)(r.filterAside,r.filterContainer,r.filterContainerOverlay)})),i.gT.checkForElement(this.sortCta)&&this.sortCta.addEventListener("click",(function(){(0,n.Og)(r.sortContainer,r.sortContainerOverlay)})),this.emitObj={eventSource:i.Jw.ARTICLE_GRID,eventType:i.GM.PAGE_CONFIG,pageSize:this.pageSize,totalRecord:this.totalRecord,currentPage:this.currentPage},window.addEventListener("load",(function(){i.Xk.next(r.emitObj)})),i.Xk.subscribe({next:function(e){e.eventType===i.GM.APPLY_SORTING&&(r.sortBy=e.selectedSorting,r.sortOrder=e.selectedSortOrder,r.articleApi()),e.eventType===i.GM.PAGINATION&&(r.currentPage=e.currentPage,r.articleApi()),e.eventType!==i.GM.APPLY_FILTER&&e.eventType!==i.GM.CLEAR_FILTER||(r.selectedFilters=e.selectedFilters,(0,n.PC)(r.selectedFilters,r.clearFilter),r.articleApi())}}),this.articleApi(),this.removePopupBg=this.$el.querySelector(".article__popupbg"),this.removePopup=this.$el.querySelector(".article__remove-popup"),this.popupCross=this.$el.querySelector(".article__remove-popup__cross"),this.popupCta=this.$el.querySelector(".article__remove-popup--cta"),this.handleSorter()}))}}]);
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.