1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9508,6088],{17839:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/components/home/news_and_event",function(){return a(56088)}])},56088:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return o}});var n=a(85893),s=a(41664),r=a(11163),i=a(67294),l=a(86896),c=a(36005),d=(a(75904),a(25675));function o(e){var t=(0,l.Z)().formatMessage,a=(0,r.useRouter)(),o=(0,i.useCallback)((function(e){if(e&&e.startsWith("http"))return e;if(!(0,c.xb)(a.query)){var t=(0,c.U2)(a,["query","domainLocale"],"sg-en");return e?"/".concat(t).concat(e):"/".concat(t)}return e}),[a]);return e.data&&0!==e.data.length?(0,n.jsx)("section",{id:"news",className:"flex backdrop py-16 bg-white bg-opacity-50 px-2",children:(0,n.jsxs)("div",{className:"container border-0 border-black m-auto",children:[(0,n.jsx)("div",{className:"text-center pb-10",children:(0,n.jsx)("h2",{className:"section-heading text-gray-500 ",children:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t({id:e,defaultMessage:a||e})}("front.newsAndEvents.title")})}),(0,n.jsx)("div",{className:"border-0 border-black grid grid-cols-1 lg:grid-cols-3 gap-2",children:(0,c.U2)(e,"data",[]).map((function(e,t){return(0,n.jsx)("div",{className:"news-box bg-gray-100 border-0 border-black",children:(0,n.jsx)(s.default,{href:o("/news-exhibition/news-detail/".concat(e.id)),passHref:!0,children:(0,n.jsxs)("a",{target:"_self",className:"cursor-pointer","aria-label":"Open news ".concat(e.title," page"),children:[(0,n.jsx)("div",{className:"w-full relative",children:(0,n.jsx)(d.default,{src:e.media.url,layout:"responsive",width:600,height:360,sizes:"(max-width: 600px) 80vw, (max-width:1024px) 50vw, (max-width:1980px) 30vw",alt:"Image of ".concat(e.title)})}),(0,n.jsxs)("div",{className:"news flex flex-col px-6 py-4",children:[(0,n.jsx)("div",{className:"mb-3",children:(0,n.jsx)("p",{className:"news-date text-left",children:e.newsDate})}),(0,n.jsx)("div",{className:"mb-1 flex-1",children:(0,n.jsx)("h3",{className:"news-title text-left",children:e.title})}),(0,n.jsx)("div",{className:"mb-4 h-auto news-content text-left",style:{overflowWrap:"anywhere"},children:e.brief})]})]})})},e.id)}))})]})}):null}}},function(e){e.O(0,[9774,2888,179],(function(){return t=17839,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.