"use strict";(()=>{(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9724],{98209:(ht,rt,_)=>{_.r(rt),_.d(rt,{default:()=>H});var $=_(13952),z=_(76771),at=_(95945),it=_(38470),ut=_(59230);function et(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */et=function(){return s};var p,s={},m=Object.prototype,g=m.hasOwnProperty,d=Object.defineProperty||function(r,t,e){r[t]=e.value},O=typeof Symbol=="function"?Symbol:{},T=O.iterator||"@@iterator",A=O.asyncIterator||"@@asyncIterator",b=O.toStringTag||"@@toStringTag";function y(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{y({},"")}catch{y=function(e,n,a){return e[n]=a}}function U(r,t,e,n){var a=t&&t.prototype instanceof j?t:j,i=Object.create(a.prototype),v=new l(n||[]);return d(i,"_invoke",{value:o(r,e,v)}),i}function R(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(n){return{type:"throw",arg:n}}}s.wrap=U;var V="suspendedStart",J="suspendedYield",X="executing",W="completed",w={};function j(){}function S(){}function N(){}var C={};y(C,T,function(){return this});var Z=Object.getPrototypeOf,I=Z&&Z(Z(x([])));I&&I!==m&&g.call(I,T)&&(C=I);var Y=N.prototype=j.prototype=Object.create(C);function q(r){["next","throw","return"].forEach(function(t){y(r,t,function(e){return this._invoke(t,e)})})}function c(r,t){function e(a,i,v,L){var E=R(r[a],r,i);if(E.type!=="throw"){var K=E.arg,B=K.value;return B&&typeof B=="object"&&g.call(B,"__await")?t.resolve(B.__await).then(function(Q){e("next",Q,v,L)},function(Q){e("throw",Q,v,L)}):t.resolve(B).then(function(Q){K.value=Q,v(K)},function(Q){return e("throw",Q,v,L)})}L(E.arg)}var n;d(this,"_invoke",{value:function(i,v){function L(){return new t(function(E,K){e(i,v,E,K)})}return n=n?n.then(L,L):L()}})}function o(r,t,e){var n=V;return function(a,i){if(n===X)throw Error("Generator is already running");if(n===W){if(a==="throw")throw i;return{value:p,done:!0}}for(e.method=a,e.arg=i;;){var v=e.delegate;if(v){var L=u(v,e);if(L){if(L===w)continue;return L}}if(e.method==="next")e.sent=e._sent=e.arg;else if(e.method==="throw"){if(n===V)throw n=W,e.arg;e.dispatchException(e.arg)}else e.method==="return"&&e.abrupt("return",e.arg);n=X;var E=R(r,t,e);if(E.type==="normal"){if(n=e.done?W:J,E.arg===w)continue;return{value:E.arg,done:e.done}}E.type==="throw"&&(n=W,e.method="throw",e.arg=E.arg)}}}function u(r,t){var e=t.method,n=r.iterator[e];if(n===p)return t.delegate=null,e==="throw"&&r.iterator.return&&(t.method="return",t.arg=p,u(r,t),t.method==="throw")||e!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),w;var a=R(n,r.iterator,t.arg);if(a.type==="throw")return t.method="throw",t.arg=a.arg,t.delegate=null,w;var i=a.arg;return i?i.done?(t[r.resultName]=i.value,t.next=r.nextLoc,t.method!=="return"&&(t.method="next",t.arg=p),t.delegate=null,w):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,w)}function h(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function f(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function l(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(h,this),this.reset(!0)}function x(r){if(r||r===""){var t=r[T];if(t)return t.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var e=-1,n=function a(){for(;++e=0;--a){var i=this.tryEntries[a],v=i.completion;if(i.tryLoc==="root")return n("end");if(i.tryLoc<=this.prev){var L=g.call(i,"catchLoc"),E=g.call(i,"finallyLoc");if(L&&E){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&g.call(a,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if(a.type==="throw"){var i=a.arg;f(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},this.method==="next"&&(this.arg=p),w}},s}function tt(p,s,m,g,d,O,T){try{var A=p[O](T),b=A.value}catch(y){return void m(y)}A.done?s(b):Promise.resolve(b).then(g,d)}function nt(p){return function(){var s=this,m=arguments;return new Promise(function(g,d){var O=p.apply(s,m);function T(b){tt(O,g,d,T,A,"next",b)}function A(b){tt(O,g,d,T,A,"throw",b)}T(void 0)})}}var ct=function(s,m,g){var d=new z.XK(z.Op.equalTo("sys.contentTypeId",at.Py.news),z.Op.equalTo("sys.dataFormat","entry"),z.Op.exists("sys.uri",!0),z.Op.equalTo("sys.versionStatus",g));return d.where.add(z.Op.contains("searchDataKeywords",s)),d.orderBy=z.mF.desc("originalPublishedDate"),d.pageSize=m,d.pageIndex=0,d},st=function(){var p=nt(et().mark(function s(m,g,d,O){var T,A;return et().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return T=ct(m,g,d),y.next=3,it.cachedÂé¶¹¾«Ñ¡.search(T,3,O);case 3:return A=y.sent,y.abrupt("return",A);case 5:case"end":return y.stop()}},s)}));return function(m,g,d,O){return p.apply(this,arguments)}}(),lt=function(s){var m=(0,ut.G8)(s),g=m.map(function(d,O){return Object.assign({},d,{key:(d.title||"")+"_"+O})});return g},ot=_(32832),P=_(97175),G=_(73226);function F(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */F=function(){return s};var p,s={},m=Object.prototype,g=m.hasOwnProperty,d=Object.defineProperty||function(r,t,e){r[t]=e.value},O=typeof Symbol=="function"?Symbol:{},T=O.iterator||"@@iterator",A=O.asyncIterator||"@@asyncIterator",b=O.toStringTag||"@@toStringTag";function y(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{y({},"")}catch{y=function(e,n,a){return e[n]=a}}function U(r,t,e,n){var a=t&&t.prototype instanceof j?t:j,i=Object.create(a.prototype),v=new l(n||[]);return d(i,"_invoke",{value:o(r,e,v)}),i}function R(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(n){return{type:"throw",arg:n}}}s.wrap=U;var V="suspendedStart",J="suspendedYield",X="executing",W="completed",w={};function j(){}function S(){}function N(){}var C={};y(C,T,function(){return this});var Z=Object.getPrototypeOf,I=Z&&Z(Z(x([])));I&&I!==m&&g.call(I,T)&&(C=I);var Y=N.prototype=j.prototype=Object.create(C);function q(r){["next","throw","return"].forEach(function(t){y(r,t,function(e){return this._invoke(t,e)})})}function c(r,t){function e(a,i,v,L){var E=R(r[a],r,i);if(E.type!=="throw"){var K=E.arg,B=K.value;return B&&typeof B=="object"&&g.call(B,"__await")?t.resolve(B.__await).then(function(Q){e("next",Q,v,L)},function(Q){e("throw",Q,v,L)}):t.resolve(B).then(function(Q){K.value=Q,v(K)},function(Q){return e("throw",Q,v,L)})}L(E.arg)}var n;d(this,"_invoke",{value:function(i,v){function L(){return new t(function(E,K){e(i,v,E,K)})}return n=n?n.then(L,L):L()}})}function o(r,t,e){var n=V;return function(a,i){if(n===X)throw Error("Generator is already running");if(n===W){if(a==="throw")throw i;return{value:p,done:!0}}for(e.method=a,e.arg=i;;){var v=e.delegate;if(v){var L=u(v,e);if(L){if(L===w)continue;return L}}if(e.method==="next")e.sent=e._sent=e.arg;else if(e.method==="throw"){if(n===V)throw n=W,e.arg;e.dispatchException(e.arg)}else e.method==="return"&&e.abrupt("return",e.arg);n=X;var E=R(r,t,e);if(E.type==="normal"){if(n=e.done?W:J,E.arg===w)continue;return{value:E.arg,done:e.done}}E.type==="throw"&&(n=W,e.method="throw",e.arg=E.arg)}}}function u(r,t){var e=t.method,n=r.iterator[e];if(n===p)return t.delegate=null,e==="throw"&&r.iterator.return&&(t.method="return",t.arg=p,u(r,t),t.method==="throw")||e!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),w;var a=R(n,r.iterator,t.arg);if(a.type==="throw")return t.method="throw",t.arg=a.arg,t.delegate=null,w;var i=a.arg;return i?i.done?(t[r.resultName]=i.value,t.next=r.nextLoc,t.method!=="return"&&(t.method="next",t.arg=p),t.delegate=null,w):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,w)}function h(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function f(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function l(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(h,this),this.reset(!0)}function x(r){if(r||r===""){var t=r[T];if(t)return t.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var e=-1,n=function a(){for(;++e=0;--a){var i=this.tryEntries[a],v=i.completion;if(i.tryLoc==="root")return n("end");if(i.tryLoc<=this.prev){var L=g.call(i,"catchLoc"),E=g.call(i,"finallyLoc");if(L&&E){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&g.call(a,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if(a.type==="throw"){var i=a.arg;f(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},this.method==="next"&&(this.arg=p),w}},s}function D(p,s,m,g,d,O,T){try{var A=p[O](T),b=A.value}catch(y){return void m(y)}A.done?s(b):Promise.resolve(b).then(g,d)}function M(p){return function(){var s=this,m=arguments;return new Promise(function(g,d){var O=p.apply(s,m);function T(b){D(O,g,d,T,A,"next",b)}function A(b){D(O,g,d,T,A,"throw",b)}T(void 0)})}}var k=function(s){var m=s.heading,g=s.description,d=s.searchTermProvided,O=s.maximumNewsArticleCount,T=s.theme,A=s.inverse,b=s.titleTag,y=b===void 0?"h2":b,U=s.singleLink,R=(0,ot.d4)(P.ph),V=(0,ot.d4)(P.j7),J=(0,$.useState)([]),X=J[0],W=J[1];(0,$.useEffect)(function(){var j=function(){var S=M(F().mark(function N(){var C;return F().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(!d){I.next=5;break}return I.next=3,st(d,parseInt(O),V,R);case 3:C=I.sent,C&&C.items&&W(lt(C.items));case 5:case"end":return I.stop()}},N)}));return function(){return S.apply(this,arguments)}}();j()},[d,R,V,O]);var w=[];return X.forEach(function(j){var S;if(Object.prototype.toString.call(j.publishedDate)==="[object Date]"){var N=new Date,C=new Date;C.setDate(N.getDate()-1),j.publishedDate&&j.publishedDate.toLocaleDateString()===N.toLocaleDateString()?S="today":j.publishedDate&&j.publishedDate.toLocaleDateString()===C.toLocaleDateString()?S="yesterday":S=j.publishedDate&&j.publishedDate.toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric"})}w.push({title:j.title,copy:j.paragraph,image:{src:{default:j.image+"&w=1440",small:j.image+"&w=576",medium:j.image+"&w=992"}},titleTag:j.headingHtmlElement,href:j.url,publishDate:"Published "+S})}),$.createElement(G.d4,{cards:w,description:g,imageOrientation:"left",inverse:A,theme:T,title:m,titleTag:y,type:"promo",cardTitleTag:"h2",link:U})};const H=k},59230:(ht,rt,_)=>{_.d(rt,{Fd:()=>lt,Y5:()=>st,G8:()=>ot});var $=_(76771),z=_(95945),at=_(38470),it=_(20557),ut=_(99206);const et=Object.assign({},ut.eu);function tt(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return G};var P,G={},F=Object.prototype,D=F.hasOwnProperty,M=Object.defineProperty||function(c,o,u){c[o]=u.value},k=typeof Symbol=="function"?Symbol:{},H=k.iterator||"@@iterator",p=k.asyncIterator||"@@asyncIterator",s=k.toStringTag||"@@toStringTag";function m(c,o,u){return Object.defineProperty(c,o,{value:u,enumerable:!0,configurable:!0,writable:!0}),c[o]}try{m({},"")}catch{m=function(u,h,f){return u[h]=f}}function g(c,o,u,h){var f=o&&o.prototype instanceof U?o:U,l=Object.create(f.prototype),x=new Y(h||[]);return M(l,"_invoke",{value:N(c,u,x)}),l}function d(c,o,u){try{return{type:"normal",arg:c.call(o,u)}}catch(h){return{type:"throw",arg:h}}}G.wrap=g;var O="suspendedStart",T="suspendedYield",A="executing",b="completed",y={};function U(){}function R(){}function V(){}var J={};m(J,H,function(){return this});var X=Object.getPrototypeOf,W=X&&X(X(q([])));W&&W!==F&&D.call(W,H)&&(J=W);var w=V.prototype=U.prototype=Object.create(J);function j(c){["next","throw","return"].forEach(function(o){m(c,o,function(u){return this._invoke(o,u)})})}function S(c,o){function u(f,l,x,r){var t=d(c[f],c,l);if(t.type!=="throw"){var e=t.arg,n=e.value;return n&&typeof n=="object"&&D.call(n,"__await")?o.resolve(n.__await).then(function(a){u("next",a,x,r)},function(a){u("throw",a,x,r)}):o.resolve(n).then(function(a){e.value=a,x(e)},function(a){return u("throw",a,x,r)})}r(t.arg)}var h;M(this,"_invoke",{value:function(l,x){function r(){return new o(function(t,e){u(l,x,t,e)})}return h=h?h.then(r,r):r()}})}function N(c,o,u){var h=O;return function(f,l){if(h===A)throw Error("Generator is already running");if(h===b){if(f==="throw")throw l;return{value:P,done:!0}}for(u.method=f,u.arg=l;;){var x=u.delegate;if(x){var r=C(x,u);if(r){if(r===y)continue;return r}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(h===O)throw h=b,u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);h=A;var t=d(c,o,u);if(t.type==="normal"){if(h=u.done?b:T,t.arg===y)continue;return{value:t.arg,done:u.done}}t.type==="throw"&&(h=b,u.method="throw",u.arg=t.arg)}}}function C(c,o){var u=o.method,h=c.iterator[u];if(h===P)return o.delegate=null,u==="throw"&&c.iterator.return&&(o.method="return",o.arg=P,C(c,o),o.method==="throw")||u!=="return"&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+u+"' method")),y;var f=d(h,c.iterator,o.arg);if(f.type==="throw")return o.method="throw",o.arg=f.arg,o.delegate=null,y;var l=f.arg;return l?l.done?(o[c.resultName]=l.value,o.next=c.nextLoc,o.method!=="return"&&(o.method="next",o.arg=P),o.delegate=null,y):l:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function Z(c){var o={tryLoc:c[0]};1 in c&&(o.catchLoc=c[1]),2 in c&&(o.finallyLoc=c[2],o.afterLoc=c[3]),this.tryEntries.push(o)}function I(c){var o=c.completion||{};o.type="normal",delete o.arg,c.completion=o}function Y(c){this.tryEntries=[{tryLoc:"root"}],c.forEach(Z,this),this.reset(!0)}function q(c){if(c||c===""){var o=c[H];if(o)return o.call(c);if(typeof c.next=="function")return c;if(!isNaN(c.length)){var u=-1,h=function f(){for(;++u=0;--f){var l=this.tryEntries[f],x=l.completion;if(l.tryLoc==="root")return h("end");if(l.tryLoc<=this.prev){var r=D.call(l,"catchLoc"),t=D.call(l,"finallyLoc");if(r&&t){if(this.prev=0;--h){var f=this.tryEntries[h];if(f.tryLoc<=this.prev&&D.call(f,"finallyLoc")&&this.prev=0;--u){var h=this.tryEntries[u];if(h.finallyLoc===o)return this.complete(h.completion,h.afterLoc),I(h),y}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var h=this.tryEntries[u];if(h.tryLoc===o){var f=h.completion;if(f.type==="throw"){var l=f.arg;I(h)}return l}}throw Error("illegal catch attempt")},delegateYield:function(o,u,h){return this.delegate={iterator:q(o),resultName:u,nextLoc:h},this.method==="next"&&(this.arg=P),y}},G}function nt(P,G,F,D,M,k,H){try{var p=P[k](H),s=p.value}catch(m){return void F(m)}p.done?G(s):Promise.resolve(s).then(D,M)}function ct(P){return function(){var G=this,F=arguments;return new Promise(function(D,M){var k=P.apply(G,F);function H(s){nt(k,D,M,H,p,"next",s)}function p(s){nt(k,D,M,H,p,"throw",s)}H(void 0)})}}var st=function(){var G=new $.XK($.Op.equalTo("sys.contentTypeId",z.Py.news),$.Op.equalTo("sys.isPublished",!0),$.Op.equalTo("sys.dataFormat","entry"),$.Op.equalTo("sys.versionStatus","published"),$.Op.equalTo("articleType","Video article"),$.Op.equalTo("featured",!0),$.Op.exists("sys.uri",!0));return G.orderBy=$.mF.desc(z.C8.publishDate),G.pageSize=4,G.pageIndex=0,G},lt=function(){var P=ct(tt().mark(function G(F,D,M){var k;return tt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return F(!0),p.next=3,at.cachedÂé¶¹¾«Ñ¡.search(D,1,M);case 3:return k=p.sent,F(!1),p.abrupt("return",k);case 6:case"end":return p.stop()}},G)}));return function(F,D,M){return P.apply(this,arguments)}}(),ot=function(G){var F,D=(F={},F[z.Py.news]=et,F),M=(0,it.Nn)(G,D);return M.length>0?M.map(function(k){return{title:k.title,url:k.url,publishedDate:k.publishedDate,paragraph:k.paragraph,image:k.image,primaryVideoId:k.primaryVideoId}}):[]}}}]);})();