vendor: 5,099 bytes, lines 1-2
1/*! For license information please see Collections-chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6749],{7588:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});r(5374),r(3238),r(5849),r(1418),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 p?t:p,o=Object.create(i.prototype),a=new S(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 O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var l=C(a,r);if(l){if(l===h)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===h)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 h={};function p(){}function f(){}function v(){}var y={};s(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&r.call(g,i)&&(y=g);var b=v.prototype=p.prototype=Object.create(y);function L(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,h=u.value;return h&&"object"==o(h)&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(h).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 h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;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,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function x(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:O}}function O(){return{value:void 0,done:!0}}return f.prototype=v,s(b,"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(b),e},e.awrap=function(e){return{__await:e}},L(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()}))},L(b),s(b,c,"Generator"),s(b,i,(function(){return this})),s(b,"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,S.prototype={constructor:S,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(_),!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,h):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),h},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),_(r),h}},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;_(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},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 h=u((function e(t){var r,o,l=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"handleSorter",(function(){l.filterList=l.$el.querySelectorAll(".filter-tags--sortoptions>li"),l.filterList&&l.filterList.forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.valueSortOrder,r=e.dataset.valueSortby;l.sortOrder=t,l.sortBy=r,l.filterSel.textContent=null==e?void 0:e.textContent,l.articleApi()}))}))})),d(this,"articleApi",c(a().mark((function e(){var t,r,n,o,c,s,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={search:"",currentPage:l.currentPage,pageSize:l.pageSize,sortBy:l.sortBy,sortOrder:l.sortOrder,filters:l.selectedFilters,language:(0,i.pJ)()},window.itemids&&(r.itemids=window.itemids),n="",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:n=e.sent,e.next=12;break;case 9:return e.next=11,fetch(l.articleApiUrl,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});case 11:n=e.sent;case 12:return e.next=14,n.json();case 14:o=e.sent,l.paging=o.paging,l.results=o.results,l.totalRecord=null===(t=l.paging)||void 0===t?void 0:t.totalRecord,l.results&&l.totalRecord>l.pageSize?l.paginator.classList.add("display-element"):l.paginator.classList.remove("display-element"),l.results&&l.totalRecord>0?l.filterTags.classList.add("enabled"):l.filterTags.classList.remove("enabled"),l.emitObj={eventSource:i.Jw.ARTICLE_GRID,eventType:i.GM.PAGE_CONFIG,pageSize:l.pageSize,totalRecord:l.totalRecord,currentPage:l.currentPage},i.Xk.next(l.emitObj),l.peopleHeaderCount&&(u=null===(c=l.peopleHeaderCount)||void 0===c?void 0:c.dataset.peopleCountPlaceholder,u=null===(s=u)||void 0===s?void 0:s.replace("{0}",l.totalRecord),l.peopleHeaderCount.textContent=u),l.articleGridUl.replaceChildren(),l.results.forEac
2h((function(e,t,r){var n=document.createElement("div");n.classList.add("articlecard"),n.setAttribute("itemId",null==e?void 0:e.itemId);var i=document.createElement("div");i.classList.add("articlecard--imgwrap");var o=document.createElement("a");if(o.href=null==e?void 0:e.itemurl,o.classList.add("articlecard__img-link"),""!==e.image&&null!==e.image){var a=document.createElement("img");a.src="".concat(e.image),a.setAttribute("alt",null==e?void 0:e.sector),o.append(a),i.append(o)}else{var c=document.createElement("div");i.classList.add("articlecard__placeholder"),o.append(c),i.append(o)}if(n.append(i),"true"===l.isSaveContent){var s=document.createElement("button");s.classList.add("articlecard--cross"),s.classList.add("hide-element"),s.addEventListener("click",(function(){l.handleRemoveConfirmationPopup(n.getAttribute("itemId"))})),n.append(s)}var u=document.createElement("div");if((e.sector||e.bannerpublishdate_s)&&u.classList.add("articlecard__label"),e.sector){var d=document.createElement("p");d.classList.add("articlecard__label--cat"),d.textContent=e.sector,u.append(d)}if(e.sector&&e.bannerpublishdate_s){var h=document.createElement("p");h.classList.add("articlecard__label--divider"),u.append(h)}if(e.bannerpublishdate_s){var p=document.createElement("p");p.classList.add("articlecard__label--duration"),p.textContent="Published: "+e.bannerpublishdate_s,u.append(p)}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 y=document.createElement("div");y.classList.add("articlecard__cta");var m=document.createElement("a");m.classList.add("articlecard__cta--href"),m.href=null==e?void 0:e.itemurl,m.textContent=e.ctaLabel,y.append(m),n.append(u),n.append(f),n.append(y),l.articleGridUl.append(n)})),l.handleEditContent();case 26:case"end":return e.stop()}}),e)})))),d(this,"handleEditContent",(function(){i.gT.checkForElement(l.clearFilter)&&(l.articleCards=l.$el.querySelectorAll(".articlecard"),"true"===l.isSaveContent&&(l.editContentTxt=l.clearFilter.dataset.editcontentLabel,l.finishContentTxt=l.clearFilter.dataset.finishcontentLabel,l.clearFilter.textContent=l.editContentTxt,l.clearFilter.classList.remove("visible-hidden"),l.clearFilter.addEventListener("click",(function(){l.clearFilter.textContent===l.finishContentTxt?(l.clearFilter.textContent=l.editContentTxt,l.articleCards.forEach((function(e){e.querySelector(".articlecard--cross").classList.add("visible-hidden")}))):(l.clearFilter.textContent=l.finishContentTxt,l.articleCards.forEach((function(e){e.querySelector(".articlecard--cross").classList.remove("visible-hidden")})))}))))})),d(this,"handleRemoveConfirmationPopup",(function(e){l.removePopup.classList.add("display-element"),l.removePopupBg.classList.add("display-element"),i.gT.checkForElement(l.popupCross)&&l.popupCross.addEventListener("click",(function(){l.removePopup.classList.remove("display-element"),l.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=null===(r=this.filterTagOptionLi)||void 0===r?void 0:r.dataset.valueSortOrder,this.sortBy=null===(o=this.filterTagOptionLi)||void 0===o?void 0:o.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.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)(l.filterAside,l.filterContainer,l.filterContainerOverlay)})),i.gT.checkForElement(this.sortCta)&&this.sortCta.addEventListener("click",(function(){(0,n.Og)(l.sortContainer,l.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(l.emitObj)})),i.Xk.subscribe({next:function(e){e.eventType===i.GM.APPLY_SORTING&&(l.sortBy=e.selectedSorting,l.sortOrder=e.selectedSortOrder,l.articleApi()),e.eventType===i.GM.PAGINATION&&(l.currentPage=e.currentPage,l.articleApi()),e.eventType!==i.GM.APPLY_FILTER&&e.eventType!==i.GM.CLEAR_FILTER||(l.selectedFilters=e.selectedFilters,(0,n.PC)(l.selectedFilters,l.clearFilter),l.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.