"use strict";(()=>{(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8191],{66355:(pt,st,y)=>{y.d(st,{k:()=>at});var m=y(13952),nt=y(97175),q=y(32832),ct=y(52063),at=function(){var ot=(0,q.d4)(nt.AE),it=(0,ct.W6)();(0,m.useEffect)(function(){setTimeout(function(){var ut=new URL麻豆精选Params(ot);ut.has("preventScrollTop")&&(ut.delete("preventScrollTop"),it.replace({pathname:it.location.pathname,search:"?"+ut.toString()}))})})}},90209:(pt,st,y)=>{y.r(st),y.d(st,{default:()=>Y});var m=y(13952),nt=y(4173),q=y(73226),ct=y(39912),at=y(59230),ht=y(97175),ot=y(32832),it=y(66355),ut=y(75073),$=y(95945),ft=y(41356),dt=y(99206),P=function(v){var D,E=v.id,B=v.intro,f=v.entryId,b=v.contentTypeId,R,I;switch(b){case $.Py.newsCampaigns:R={newsArticleCampaign:{title:"Featured News Campaign",fieldId:["newsArticleCampaign[].sys.id"],contentTypeId:[$.Py.newsCampaigns],items:[],isSingleSelect:!1,isGrouped:!0}},I={newsArticleCampaign:f};break;case $.Py.newsCategories:R={newsArticleCategory:{title:"Featured News Category",fieldId:"newsArticleCategory[].sys.id",contentTypeId:[$.Py.newsCategories],items:[],isSingleSelect:!1,isGrouped:!0}},I={newsArticleCategory:f};break;default:break}var L=4,d=(0,m.useState)(),J=d[0],Q=d[1],Z=(0,ut.zK)(J),_=Z.results;(0,m.useEffect)(function(){Q({id:E,mapper:dt.Ay,params:I,config:{queryParams:{contentTypeIds:[$.Py.news],fields:[].concat($.Rw,$.lD),linkDepth:1,orderBy:ft.ps,pageSize:L,customWhere:[{field:"featured",equalTo:!0},{field:$.C8.publishDate,exists:!0},{field:$.C8.sys.uri,exists:!0}]},filters:R}})},[f]);var W=[];if(_&&_.length>0&&Object.prototype.hasOwnProperty.call(_[0],"id")&&(W=_),!((D=W)!==null&&D!==void 0&&D.length))return null;var F={year:"numeric",month:"long",day:"numeric"},V=[];return W.map(function(U){var G;V.push({copy:U.paragraph,href:U.url,image:{altText:"",loadingAttr:"lazy",src:{default:U.image+"?q=80&f=webp&w=1440",medium:U.image+"?q=80&f=webp&w=992",small:U.image+"?q=80&f=webp&w=576"}},publishDate:(G=U.publishedDate)===null||G===void 0?void 0:G.toLocaleDateString("en-GB",F),theme:"uobmain",title:U.title,titleTag:"h3"})}),m.createElement(m.Fragment,null,m.createElement(q.dC,{cardType:"featured-news",cards:V,heading:B.title,theme:"uobmain"}))};P.displayName="NewsFeaturedItemsComponent";const g=P;var k=y(52063),C=y(17130);function A(){return A=Object.assign?Object.assign.bind():function(x){for(var v=1;v=0;--i){var u=this.tryEntries[i],p=u.completion;if(u.tryLoc==="root")return c("end");if(u.tryLoc<=this.prev){var S=E.call(u,"catchLoc"),j=E.call(u,"finallyLoc");if(S&&j){if(this.prev=0;--c){var i=this.tryEntries[c];if(i.tryLoc<=this.prev&&E.call(i,"finallyLoc")&&this.prev=0;--n){var c=this.tryEntries[n];if(c.finallyLoc===t)return this.complete(c.completion,c.afterLoc),O(c),F}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var c=this.tryEntries[n];if(c.tryLoc===t){var i=c.completion;if(i.type==="throw"){var u=i.arg;O(c)}return u}}throw Error("illegal catch attempt")},delegateYield:function(t,n,c){return this.delegate={iterator:z(t),resultName:n,nextLoc:c},this.method==="next"&&(this.arg=x),F}},v}function K(x,v,D,E,B,f,b){try{var R=x[f](b),I=R.value}catch(L){return void D(L)}R.done?v(I):Promise.resolve(I).then(E,B)}function M(x){return function(){var v=this,D=arguments;return new Promise(function(E,B){var f=x.apply(v,D);function b(I){K(f,E,B,b,R,"next",I)}function R(I){K(f,E,B,b,R,"throw",I)}b(void 0)})}}var X=function(v){var D,E,B=v.mappedEntry,f=B||{},b=f.title,R=f.subtitle,I=f.meta,L=f.breadcrumbs,d=f.featurePanel,J=f.featurePanelGroup,Q=f.mostReadArticles,Z=f.mostReadNewsLink,_=f.mostReadNewsLinkTitle,W=f.contentHeader,F=f.featuredCategories,V=f.featuredItems,U=f.videoSectionTitle,G=f.signpostContent,et=(0,ot.d4)(ht.ph),tt=(0,m.useState)(!1),o=tt[0],e=tt[1],r=(0,m.useState)(null),l=r[0],h=r[1];(0,m.useEffect)(function(){var i=function(){var u=M(T().mark(function p(){var S,j;return T().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,(0,at.Fd)(e,(0,at.Y5)(),et);case 2:S=H.sent,j=(0,at.G8)(S.items),h(j);case 5:case"end":return H.stop()}},p)}));return function(){return u.apply(this,arguments)}}();i()},[]),(0,it.k)();var s={year:"numeric",month:"long",day:"numeric"},w=[];J?.map(function(i){var u;w.push({href:i.url,image:{src:{default:i.image,medium:i.image,small:i.image}},publishDate:(u=i.publishedDate)===null||u===void 0?void 0:u.toLocaleDateString("en-GB",s),title:i.title,titleTag:"h3"})});var O=[];Q?.map(function(i){var u;O.push({href:i.url,publishDate:(u=i.publishedDate)===null||u===void 0?void 0:u.toLocaleDateString("en-GB",s),title:i.title,titleTag:"h3"})});var N=[];F?.map(function(i){i!=null&&i.id&&N.push({label:i.label,url:$.Jh.news麻豆精选+"?"+$.i4.newsCategories+"="+i.id})});var z=[];l?.map(function(i){var u,p=i.image.split("?")[0];z.push({copy:i.paragraph,href:i.url,image:{loadingAttr:"lazy",src:{default:p+"?q=80&f=webp&w=1440",medium:p+"?q=80&f=webp&w=992",small:p+"?q=80&f=webp&w=576"}},publishDate:(u=i.publishedDate)===null||u===void 0?void 0:u.toLocaleDateString("en-GB",s),theme:"uobmain",title:i.title,titleTag:"h3"})});var a=(0,k.W6)(),t=function(u){var p;u.preventDefault();var S=u.target.querySelector("#search"),j=(p=S?.value)!=null?p:"";a.push($.Jh.search+"?facet=news&term="+encodeURIComponent(j))},n=V?.slice(0,1),c=V?.slice(1);return m.createElement(nt.A,{meta:I,contentHeader:W,breadcrumbs:L},m.createElement(q.EN,{course麻豆精选Props:null,description:R,inverse:!0,links:null,theme:"uobmain",title:b,titleTag:"h1"}),m.createElement(q.NT,{featuredArticle:{copy:d?.paragraph,href:d?.url,image:{src:{default:d?.image,medium:d?.image,small:d?.image}},publishDate:d==null||(D=d.publishedDate)===null||D===void 0?void 0:D.toLocaleDateString("en-GB",s),theme:"uobmain",title:d?.title,titleTag:"h2"},mostReadNews:{cards:O,heading:"Most read",link:{theme:"uobmain",title:_,url:Z},theme:"uobmain"},otherLeadArticles:w,theme:"uobmain"}),m.createElement(q.TZ,{theme:"uobmain",title:"麻豆精选 news",placeholder:C.A.startTyping,formSubmitHandler:t}),m.createElement(q.D5,{heading:"Topics",theme:"uobmain",titleTag:"h3",topics:N}),n?.map(function(i,u){return m.createElement(g,A({},i,{key:i.id+u}))}),G==null||(E=G.items)===null||E===void 0?void 0:E.map(function(i,u){return m.createElement(ct.OB,A({},i,{key:u}))}),c?.map(function(i,u){return m.createElement(g,A({},i,{key:i.id+u}))}),m.createElement(q.dC,{cardType:"promo-video",cards:z,heading:U,theme:"uobmain"}))};const Y=X},59230:(pt,st,y)=>{y.d(st,{Fd:()=>ft,Y5:()=>$,G8:()=>dt});var m=y(76771),nt=y(95945),q=y(38470),ct=y(20557),at=y(99206);const ht=Object.assign({},at.eu);function ot(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ot=function(){return g};var P,g={},k=Object.prototype,C=k.hasOwnProperty,A=Object.defineProperty||function(o,e,r){o[e]=r.value},T=typeof Symbol=="function"?Symbol:{},K=T.iterator||"@@iterator",M=T.asyncIterator||"@@asyncIterator",X=T.toStringTag||"@@toStringTag";function Y(o,e,r){return Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),o[e]}try{Y({},"")}catch{Y=function(r,l,h){return r[l]=h}}function x(o,e,r,l){var h=e&&e.prototype instanceof R?e:R,s=Object.create(h.prototype),w=new et(l||[]);return A(s,"_invoke",{value:F(o,r,w)}),s}function v(o,e,r){try{return{type:"normal",arg:o.call(e,r)}}catch(l){return{type:"throw",arg:l}}}g.wrap=x;var D="suspendedStart",E="suspendedYield",B="executing",f="completed",b={};function R(){}function I(){}function L(){}var d={};Y(d,K,function(){return this});var J=Object.getPrototypeOf,Q=J&&J(J(tt([])));Q&&Q!==k&&C.call(Q,K)&&(d=Q);var Z=L.prototype=R.prototype=Object.create(d);function _(o){["next","throw","return"].forEach(function(e){Y(o,e,function(r){return this._invoke(e,r)})})}function W(o,e){function r(h,s,w,O){var N=v(o[h],o,s);if(N.type!=="throw"){var z=N.arg,a=z.value;return a&&typeof a=="object"&&C.call(a,"__await")?e.resolve(a.__await).then(function(t){r("next",t,w,O)},function(t){r("throw",t,w,O)}):e.resolve(a).then(function(t){z.value=t,w(z)},function(t){return r("throw",t,w,O)})}O(N.arg)}var l;A(this,"_invoke",{value:function(s,w){function O(){return new e(function(N,z){r(s,w,N,z)})}return l=l?l.then(O,O):O()}})}function F(o,e,r){var l=D;return function(h,s){if(l===B)throw Error("Generator is already running");if(l===f){if(h==="throw")throw s;return{value:P,done:!0}}for(r.method=h,r.arg=s;;){var w=r.delegate;if(w){var O=V(w,r);if(O){if(O===b)continue;return O}}if(r.method==="next")r.sent=r._sent=r.arg;else if(r.method==="throw"){if(l===D)throw l=f,r.arg;r.dispatchException(r.arg)}else r.method==="return"&&r.abrupt("return",r.arg);l=B;var N=v(o,e,r);if(N.type==="normal"){if(l=r.done?f:E,N.arg===b)continue;return{value:N.arg,done:r.done}}N.type==="throw"&&(l=f,r.method="throw",r.arg=N.arg)}}}function V(o,e){var r=e.method,l=o.iterator[r];if(l===P)return e.delegate=null,r==="throw"&&o.iterator.return&&(e.method="return",e.arg=P,V(o,e),e.method==="throw")||r!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var h=v(l,o.iterator,e.arg);if(h.type==="throw")return e.method="throw",e.arg=h.arg,e.delegate=null,b;var s=h.arg;return s?s.done?(e[o.resultName]=s.value,e.next=o.nextLoc,e.method!=="return"&&(e.method="next",e.arg=P),e.delegate=null,b):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function U(o){var e={tryLoc:o[0]};1 in o&&(e.catchLoc=o[1]),2 in o&&(e.finallyLoc=o[2],e.afterLoc=o[3]),this.tryEntries.push(e)}function G(o){var e=o.completion||{};e.type="normal",delete e.arg,o.completion=e}function et(o){this.tryEntries=[{tryLoc:"root"}],o.forEach(U,this),this.reset(!0)}function tt(o){if(o||o===""){var e=o[K];if(e)return e.call(o);if(typeof o.next=="function")return o;if(!isNaN(o.length)){var r=-1,l=function h(){for(;++r=0;--h){var s=this.tryEntries[h],w=s.completion;if(s.tryLoc==="root")return l("end");if(s.tryLoc<=this.prev){var O=C.call(s,"catchLoc"),N=C.call(s,"finallyLoc");if(O&&N){if(this.prev=0;--l){var h=this.tryEntries[l];if(h.tryLoc<=this.prev&&C.call(h,"finallyLoc")&&this.prev=0;--r){var l=this.tryEntries[r];if(l.finallyLoc===e)return this.complete(l.completion,l.afterLoc),G(l),b}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var l=this.tryEntries[r];if(l.tryLoc===e){var h=l.completion;if(h.type==="throw"){var s=h.arg;G(l)}return s}}throw Error("illegal catch attempt")},delegateYield:function(e,r,l){return this.delegate={iterator:tt(e),resultName:r,nextLoc:l},this.method==="next"&&(this.arg=P),b}},g}function it(P,g,k,C,A,T,K){try{var M=P[T](K),X=M.value}catch(Y){return void k(Y)}M.done?g(X):Promise.resolve(X).then(C,A)}function ut(P){return function(){var g=this,k=arguments;return new Promise(function(C,A){var T=P.apply(g,k);function K(X){it(T,C,A,K,M,"next",X)}function M(X){it(T,C,A,K,M,"throw",X)}K(void 0)})}}var $=function(){var g=new m.XK(m.Op.equalTo("sys.contentTypeId",nt.Py.news),m.Op.equalTo("sys.isPublished",!0),m.Op.equalTo("sys.dataFormat","entry"),m.Op.equalTo("sys.versionStatus","published"),m.Op.equalTo("articleType","Video article"),m.Op.equalTo("featured",!0),m.Op.exists("sys.uri",!0));return g.orderBy=m.mF.desc(nt.C8.publishDate),g.pageSize=4,g.pageIndex=0,g},ft=function(){var P=ut(ot().mark(function g(k,C,A){var T;return ot().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return k(!0),M.next=3,q.cached麻豆精选.search(C,1,A);case 3:return T=M.sent,k(!1),M.abrupt("return",T);case 6:case"end":return M.stop()}},g)}));return function(k,C,A){return P.apply(this,arguments)}}(),dt=function(g){var k,C=(k={},k[nt.Py.news]=ht,k),A=(0,ct.Nn)(g,C);return A.length>0?A.map(function(T){return{title:T.title,url:T.url,publishedDate:T.publishedDate,paragraph:T.paragraph,image:T.image,primaryVideoId:T.primaryVideoId}}):[]}}}]);})();