1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{5301:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(5886)}])},9123:function(e,t,s){"use strict";s.d(t,{Z:function(){return r},v:function(){return i}});var a=s(3288),n=(s(2466),s(8082)),l=s(5624);function r(){var e=(0,n.Z)("common").t;return(0,a.jsxs)("div",{className:"mx-auto flex-grow",children:[(0,a.jsxs)("span",{className:"mb-2 block text-center font-source-sans text-sm text-gray-400",children:["- ",e("general.advertisement")," -"]}),(0,a.jsx)("div",{className:"flex min-w-0 justify-center",children:(0,a.jsx)("div",{children:(0,a.jsx)(l.Z,{slotName:"articleLeftSideMidRect"})})})]})}function i(){var e=(0,n.Z)("common").t;return(0,a.jsxs)("div",{className:"mx-auto flex-grow",children:[(0,a.jsxs)("span",{className:"mb-2 block text-center font-source-sans text-sm text-gray-400",children:["- ",e("general.advertisement")," -"]}),(0,a.jsx)("div",{className:"flex min-w-0 justify-center",children:(0,a.jsx)("div",{children:(0,a.jsx)(l.Z,{slotName:"articleRightSideMidRect"})})})]})}},6331:function(e,t,s){"use strict";var a=s(3288),n=(s(2466),s(8082));t.Z=function(){var e=(0,n.Z)("common").t;return(0,a.jsx)("div",{className:"rounded-md bg-gray-50 px-5 py-10",children:(0,a.jsx)("p",{className:"text-center text-gray-500",children:e("general.no-articles-found")})})}},9551:function(e,t,s){"use strict";var a=s(3288),n=(s(2466),s(3234));t.Z=function(e){var t=e.title,s=e.url;return(0,a.jsxs)("div",{className:"flex space-x-3 overflow-x-scroll",children:[(0,a.jsx)("div",{className:"cursor-pointer rounded-full transition duration-200 hover:opacity-70",onClick:function(){return window.open("https://www.facebook.com/share.php?u=".concat(s),"popup","width=800,height=600"),!1},children:(0,a.jsx)(n.tBk,{className:"text-gray-500"})}),(0,a.jsx)("div",{className:"cursor-pointer rounded-full transition duration-200 hover:opacity-70",onClick:function(){return window.open("https://telegram.me/share/url?url=".concat(s,"&text=").concat(t),"popup","width=800,height=600"),!1},children:(0,a.jsx)(n.LCd,{className:"text-gray-500"})}),(0,a.jsx)("div",{className:"cursor-pointer rounded-full transition duration-200 hover:opacity-70",onClick:function(){return window.open("https://api.whatsapp.com/send?text=".concat(t,"%0A%0A").concat(s),"popup","width=800,height=600"),!1},children:(0,a.jsx)(n.xpo,{className:"text-gray-500"})}),(0,a.jsx)("div",{className:"cursor-pointer rounded-full transition duration-200 hover:opacity-70",onClick:function(){return window.open("https://twitter.com/intent/tweet?text=".concat(t,"&url=").concat(s,"&via=MNowNews"),"popup","width=800,height=600"),!1},children:(0,a.jsx)(n.Ww5,{className:"text-gray-500"})}),(0,a.jsx)("div",{className:"cursor-pointer rounded-full transition duration-200 hover:opacity-70",onClick:function(){return window.open("https://www.linkedin.com/shareArticle?mini=true&url=".concat(s,"&title=").concat(t),"popup","width=800,height=600"),!1},children:(0,a.jsx)(n.BUd,{className:"text-gray-500"})})]})}},5886:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return te},default:function(){return se}});var a=s(3288),n=s(2466),l=s(1395),r=s(3296),i=s(7037),c=s.n(i),o=s(2493),d=s.n(o),m=s(8082),u=s(4430),x=s(6331),h=function(e){var t,s,n=e.leadArticle,l=e.highlightArticles,r=(0,m.Z)("common").t;return(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-4 pt-10 pb-8 sm:px-6",children:(0,a.jsxs)("div",{className:"space-y-8 lg:grid lg:grid-cols-4 lg:gap-8 lg:space-y-0",children:[(0,a.jsx)("div",{className:"lg:col-span-2",children:n?(0,a.jsx)(u.Z,{href:n.url,children:(0,a.jsxs)("div",{className:"group space-y-4",children:[(0,a.jsxs)("div",{className:"space-x-2",children:[(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-brand-blue-900 px-2 py-0.5 text-xs font-medium leading-5 text-white",children:n.label.name}),c()().diff(c()(n.publishedAt),"hours",!0)<=1&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:r("general.recently-published")}),c()().diff(c()(n.publishedAt),"hours",!0)>1&&c()().diff(c()(n.updatedAt),"minutes",!0)<=30&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:r("general.recently-updated")})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"font-georgia text-4xl transition duration-200 group-hover:text-brand-red-900",children:n.title}),(0,a.jsx)("div",{className:"font-source-sans text-sm",children:(0,a.jsx)("time",{dateTime:c()(n.publishedAt).format(),children:c()(n.publishedAt).format("MMMM D, YYYY h:mm A")})})]}),(0,a.jsx)("div",{className:"aspect-w-4 aspect-h-3",children:(0,a.jsx)(d(),{className:"rounded-md bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:n.featuredImage.url,alt:null!==(t=n.featuredImage.altText)&&void 0!==t?t:"Story image",layout:"fill",priority:!0})}),(0,a.jsx)("div",{className:"font-source-sans text-base",children:(0,a.jsx)("p",{className:"text-gray-500 line-clamp-4",children:n.excerpt})}),(0,a.jsx)("button",{className:"inline-flex items-center rounded-md border border-transparent bg-brand-blue-900 px-3 py-2 text-sm font-medium leading-4 text-white shadow-sm transition duration-200 hover:bg-brand-red-900 focus:outline-none focus:ring-2 focus:ring-brand-red-900 focus:ring-offset-2",children:r("general.read-more")})]})}):(0,a.jsx)(x.Z,{})}),(0,a.jsx)("div",{className:"lg:col-span-2",children:l&&l.length>0?(0,a.jsx)("div",{className:"space-y-8 sm:grid sm:grid-cols-2 sm:gap-x-6 sm:gap-y-8 sm:space-y-0 lg:gap-x-6 lg:gap-y-6",children:l.map((function(e,t){return(0,a.jsx)("div",{className:"group",children:(0,a.jsx)(u.Z,{href:e.url,children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("div",{className:"aspect-w-5 aspect-h-3",children:(0,a.jsx)(d(),{className:"rounded-md bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:e.featuredImage.url,alt:null!==(s=e.featuredImage.altText)&&void 0!==s?s:"Story image",layout:"fill",priority:!0})}),(0,a.jsxs)("div",{className:"space-x-2",children:[(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-brand-blue-900 px-2 py-0.5 text-xs font-medium leading-5 text-white",children:e.label.name}),c()().diff(c()(e.publishedAt),"hours",!0)<=1&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:r("general.recently-published")}),c()().diff(c()(e.publishedAt),"hours",!0)>1&&c()().diff(c()(e.updatedAt),"minutes",!0)<=30&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:r("general.recently-updated")})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"font-georgia text-xl leading-6 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("div",{className:"font-source-sans text-sm",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]}),(0,a.jsx)("div",{className:"font-source-sans text-base",children:(0,a.jsx)("p",{className:"text-gray-500 line-clamp-3",children:e.excerpt})})]})})},t)}))}):(0,a.jsx)(x.Z,{})})]})})})},g=s(8565),p=s.n(g),f=s(2852),v=s.n(f),j=s(1752),y=s(2962),b=function(){var e=(0,m.Z)("common").t;return(0,a.jsx)("div",{className:"rounded-md bg-gray-50 px-5 py-10",children:(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsxs)("div",{className:"inline-flex items-center font-source-sans font-semibold not-italic leading-6 text-gray-500 transition duration-200 ease-in-out",children:[(0,a.jsxs)("svg",{className:"-ml-1 mr-3 h-5 w-5 animate-spin text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e("general.loading"),"..."]})})})};function N(e,t,s,a,n,l,r){try{var i=e[l](r),c=i.value}catch(o){return void s(o)}i.done?t(c):Promise.resolve(c).then(a,n)}function w(e){return function(){var t=this,s=arguments;return new Promise((function(a,n){var l=e.apply(t,s);function r(e){N(l,a,n,r,i,"next",e)}function i(e){N(l,a,n,r,i,"throw",e)}r(void 0)}))}}var M=function(e){var t=e.columnArticles,s=(0,m.Z)("home").t,r=(0,l.useRouter)(),i=(0,n.use
1State)("COLUMN"),o=i[0],h=i[1],g=(0,n.useState)(!1),f=g[0],N=g[1],M=(0,n.useState)([]),A=M[0],k=M[1],Z=(0,n.useState)(!1),S=Z[0],T=Z[1],C=(0,n.useState)([]),Y=C[0],E=C[1],_=[{id:"COLUMN",name:s("column.tab-column")},{id:"MOST_READ",name:s("column.tab-most-read")},{id:"MOST_RECENT",name:s("column.tab-most-recent")}];(0,n.useEffect)((function(){h("COLUMN"),N(!1),k([]),T(!1),E([])}),[t]);var O,P,I=function(){var e=w(p().mark((function e(){var t,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),t="EN",t=r.locale&&"my"===r.locale?"BM":"EN",e.next=5,y.$K.mostReadArticles(t);case 5:(s=e.sent.data)&&k(s),N(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=w(p().mark((function e(){var t,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),t="EN",t=r.locale&&"my"===r.locale?"BM":"EN",e.next=5,y.$K.mostRecentArticles(t);case 5:(s=e.sent.data)&&E(s),T(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl py-8 px-4 sm:px-6",children:(0,a.jsx)("div",{className:"border-t-2 border-gray-100 py-8",children:(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsx)("nav",{className:"flex space-x-4 overflow-x-scroll whitespace-nowrap","aria-label":"Tabs",children:_.map((function(e){return(0,a.jsx)("button",{className:v()(o===e.id?"bg-brand-blue-900 text-white":"bg-gray-100 text-gray-500 hover:bg-brand-red-900 hover:text-white","rounded-md px-3 py-2 font-georgia text-xl font-medium transition duration-200"),"aria-current":o===e.id?"page":void 0,onClick:function(){h(e.id),"MOST_READ"===e.id&&0===A.length&&I(),"MOST_RECENT"===e.id&&0===Y.length&&F()},children:e.name},e.name)}))}),"COLUMN"===o&&(0,a.jsx)(j.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:t&&t.length>0?(0,a.jsx)("ul",{role:"list",className:"space-y-8 sm:grid sm:grid-cols-2 sm:gap-x-6 sm:gap-y-8 sm:space-y-0 lg:grid-cols-3 lg:gap-x-8",children:t.map((function(e,t){return(0,a.jsx)("li",{children:(0,a.jsx)(u.Z,{className:"group",href:e.url,children:(0,a.jsxs)("div",{className:"group grid grid-cols-3 items-start gap-6 space-y-0",children:[(0,a.jsx)("div",{className:"aspect-w-2 aspect-h-2",children:"COLUMN"===e.type?(0,a.jsx)(n.Fragment,{children:e.authors[0]&&e.authors[0].thumbnail&&"string"===typeof e.authors[0].thumbnail?(0,a.jsx)(d(),{className:"rounded-md bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:e.authors[0].thumbnail,alt:"Columnist",layout:"fill"}):(0,a.jsx)("svg",{className:"rounded-md object-cover text-gray-400",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})}):(0,a.jsx)(d(),{className:"rounded-md bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:e.featuredImage.url,alt:null!==(O=e.featuredImage.altText)&&void 0!==O?O:"Story image",layout:"fill"})}),(0,a.jsxs)("div",{className:"col-span-2 flex h-full flex-col justify-center space-y-1 align-middle",children:[(0,a.jsx)("h3",{className:"font-georgia text-xl leading-6 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("div",{className:"truncate pt-1 font-source-sans text-base font-medium text-gray-500",children:e.authors.map((function(t,s){return(0,a.jsxs)(n.Fragment,{children:[e.authors.length>1?0===s?"":e.authors.length-1===s?" & ":", ":"",(0,a.jsx)(n.Fragment,{children:t.name})]},s)}))})]})]})})},t)}))}):(0,a.jsx)(x.Z,{})}),"MOST_READ"===o&&(0,a.jsx)(j.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:f?(0,a.jsx)(b,{}):(0,a.jsx)(n.Fragment,{children:A&&A.length>0?(0,a.jsx)("ul",{role:"list",className:"space-y-8 sm:grid sm:grid-cols-2 sm:gap-x-6 sm:gap-y-8 sm:space-y-0 lg:grid-cols-3 lg:gap-x-8",children:A.map((function(e,t){return(0,a.jsx)("li",{children:(0,a.jsx)(u.Z,{className:"group",href:e.url,children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-6",children:[(0,a.jsx)("div",{className:"min-w-[65px] p-3",children:(0,a.jsx)("h1",{className:"font-georgia text-7xl leading-none text-gray-300",children:t+1})}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"font-georgia text-xl leading-6 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("div",{className:"font-source-sans text-sm",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})]})})},t)}))}):(0,a.jsx)(x.Z,{})})}),"MOST_RECENT"===o&&(0,a.jsx)(j.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:S?(0,a.jsx)(b,{}):(0,a.jsx)(n.Fragment,{children:Y&&Y.length>0?(0,a.jsx)("ul",{role:"list",className:"space-y-8 sm:grid sm:grid-cols-2 sm:gap-x-6 sm:gap-y-8 sm:space-y-0 lg:grid-cols-3 lg:gap-x-8",children:Y.map((function(e,t){return(0,a.jsx)("li",{children:(0,a.jsx)(u.Z,{className:"group",href:e.url,children:(0,a.jsxs)("div",{className:"group grid grid-cols-3 items-start gap-6 space-y-0",children:[(0,a.jsx)("div",{className:"aspect-w-2 aspect-h-2",children:(0,a.jsx)(d(),{className:"rounded-md bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:e.featuredImage.url,alt:null!==(P=e.featuredImage.altText)&&void 0!==P?P:"Story image",layout:"fill"})}),(0,a.jsxs)("div",{className:"col-span-2 flex h-full flex-col justify-center space-y-1 align-middle",children:[(0,a.jsx)("h3",{className:"font-georgia text-xl leading-6 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("div",{className:"font-source-sans text-sm",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})]})})},t)}))}):(0,a.jsx)(x.Z,{})})})]})})})})},A=s(9123),k=s(5953),Z=function(e){var t,s=e.readersPickArticles,n=(e.covidStatistics,e.covidNewsArticles,e.latestNewsArticles),l=(e.weeklyFuelPrice,e.editorsPickArticles,e.externalPublisherWorldFeed),r=(0,m.Z)(),i=r.t,o=r.lang;return(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl py-8 px-4 sm:px-6",children:(0,a.jsxs)("div",{className:"items-stretch space-y-8 lg:flex lg:flex-1 lg:space-x-6 lg:space-y-0",children:[(0,a.jsx)("div",{className:"w-full space-y-8 lg:sticky lg:top-40 lg:h-full lg:w-[300px]",children:(0,a.jsxs)("div",{className:"space-y-8 sm:grid sm:grid-cols-1 sm:gap-x-6 sm:gap-y-8 sm:space-y-0 lg:gap-x-6 lg:gap-y-6",children:[(0,a.jsxs)("div",{className:"rounded-md border-2 border-gray-100 p-6",children:[(0,a.jsx)("h3",{className:"font-georgia text-2xl font-bold text-brand-blue-900",children:i("home:latest-news.readers-pick.title")}),s&&s.length>0?(0,a.jsx)("div",{className:"divide-y divide-gray-200",children:s.map((function(e,t){return(0,a.jsx)("div",{className:v()(t+1===s.length?"pt-4":"py-4","group"),children:(0,a.jsx)(u.Z,{href:e.url,children:(0,a.jsx)("div",{className:"space-y-3",children:(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"font-georgia text-xl leading-6 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("div",{className:"font-source-sans text-sm",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})})})},t)}))}):(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(x.Z,{})})]}),(0,a.jsx)(A.Z,{})]})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("div",{className:"pb-6",children:(0,a.jsx)(u.Z,{href:k.H.section({slug:"news"}),children:(0,a.jsx)("h2",{className:"font-georgia text-5xl font-semibold text-brand-blue-900 transition duration-200 hover:text-brand-red-900",children:i("home:latest-news.latest-news.title")})})}),n&&n.length>0?(0,a.jsx)("div",{className:"space-y-12 sm:-mt-8 sm:space-y-0 sm:divide-y sm:divide-gray-200 lg:gap-x-8 lg:space-y-0",children:n.map((function(e,s){return(0,a.jsx)("div",{className:"sm:py-8",children:(0,a.jsx)(u.Z,{href:e.url,children:(0,a.jsxs)("div",{className:"group space-y-4 sm:grid sm:grid-cols-5 sm:items-start sm:gap-6 sm:space-y-0",children:[(0,a.jsx)("div",{className:"aspect-w-5 aspect-h-3 sm:aspect-w-3 sm:aspect-h-3 sm:col-span-2",children:(0,a.jsx)(d(),{className:"rounded-md bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:e.featuredImage.url,alt:null!==(t=e.featuredImage.altText)&&void 0!==t?t:"Story image",layout:"fill"})}),(0,a.jsx)("div",{className:"sm:col-span-3",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-x-2",children:[(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-brand-blue-900 px-2 py-0.5 text-xs font-medium leading-5 text-white",children:e.label.name}),c()().diff(c()(e.publishedAt),"hours",!0)<=1&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:i("common:general.recently-published")}),c()().diff(c()(e.publishedAt),"hours",!0)>1&&c()().diff(c()(e.updatedAt),"minutes",!0)<=30&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:i("common:general.recently-updated")})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"font-georgia text-xl leading-6 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("div",{className:"font-source-sans text-sm",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]}),(0,a.jsx)("div",{className:"font-source-sans text-base",children:(0,a.jsx)("p",{className:"text-gray-500 line-clamp-3",children:e.excerpt})})]})})]})})},s)}))}):(0,a.jsx)(x.Z,{})]}),(0,a.jsx)("div",{className:"w-full space-y-8 lg:sticky lg:top-40 lg:h-full lg:w-[300px]",children:(0,a.jsxs)("div",{className:"space-y-8 sm:grid sm:grid-cols-1 sm:gap-x-6 sm:gap-y-8 sm:space-y-0 lg:gap-x-6 lg:gap-y-6",children:["en"===o&&(0,a.jsxs)("div",{className:"rounded-md border-2 border-gray-100 p-6",children:[(0,a.jsx)("h3",{className:"font-georgia text-2xl font-bold text-brand-blue-900",children:i("home:out-there-now.title")}),l&&l.length>0?(0,a.jsx)("div",{className:"divide-y divide-gray-200",children:l.map((function(e,t){return(0,a.jsx)("div",{className:v()(t+1===l.length?"pt-4":"py-4","group"),children:(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",children:(0,a.jsx)("div",{className:"space-y-3",children:(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"font-georgia text-xl leading-6 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("div",{className:"font-source-sans text-sm",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})})})},t)}))}):(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(x.Z,{})})]}),(0,a.jsx)(A.v,{})]})})]})})})};function S(e,t,s,a,n,l,r){try{var i=e[l](r),c=i.value}catch(o){return void s(o)}i.done?t(c):Promise.resolve(c).then(a,n)}var T=function(e){var t,s=e.videos,l=e.videoPlaylists,r=(0,m.Z)().t,i=(0,n.use
1State)("VIDEOS_JUST_IN"),o=i[0],x=i[1],h=(0,n.useState)(null),g=h[0],f=h[1],b=(0,n.useState)([]),N=b[0],w=b[1],M=(0,n.useState)(!1),A=M[0],Z=M[1],T=(0,n.useState)([]),C=T[0],Y=T[1];(0,n.useEffect)((function(){var e;(x("VIDEOS_JUST_IN"),Z(!1),Y([]),s&&s.length>0)&&(f(null!==(e=s[0])&&void 0!==e?e:null),w(s))}),[s]);var E,_=function(){var e,t=(e=p().mark((function e(t){var s,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z(!0),!(s=C.find((function(e){return e.id===t})))){e.next=6;break}f(s.videos[0]),w(s.videos),e.next=10;break;case 6:return e.next=8,y.sR.videosByPlaylist(t);case 8:(a=e.sent.data)?(Y((function(e){if(e&&e.length>0){var s=!1,n=[];return e.map((function(e){e.id===t?(s=!0,n.push({id:e.id,videos:a})):n.push(e)})),s||n.push({id:t,videos:a}),n}return[{id:t,videos:a}]})),f(a[0]),w(a)):(f(null),w([]));case 10:Z(!1);case 11:case"end":return e.stop()}}),e)})),function(){var t=this,s=arguments;return new Promise((function(a,n){var l=e.apply(t,s);function r(e){S(l,a,n,r,i,"next",e)}function i(e){S(l,a,n,r,i,"throw",e)}r(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,a.jsx)("div",{id:"home-videos",className:"scroll-m-32 bg-slate-900",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl py-8 px-4 sm:px-6",children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{children:(0,a.jsx)(u.Z,{href:k.H.section({slug:"videos"}),children:(0,a.jsx)("h2",{className:"font-georgia text-5xl font-semibold text-white transition duration-200 hover:text-brand-red-900",children:r("home:videos.title")})})}),(0,a.jsxs)("nav",{className:"flex space-x-4 overflow-x-scroll whitespace-nowrap","aria-label":"Tabs",children:[(0,a.jsx)("button",{className:v()("VIDEOS_JUST_IN"===o?"bg-brand-red-900":"bg-slate-800 hover:opacity-75","rounded-md px-3 py-2 font-georgia text-xl font-medium text-white transition duration-200"),"aria-current":"VIDEOS_JUST_IN"===o?"page":void 0,onClick:function(){var e;(Z(!1),x("VIDEOS_JUST_IN"),s&&s.length>0)&&(f(null!==(e=s[0])&&void 0!==e?e:null),w(s))},children:r("home:videos.tab-just-in")}),l&&l.length>0&&(0,a.jsx)(n.Fragment,{children:l.map((function(e){return(0,a.jsx)("button",{className:v()(o===e.slug.toUpperCase()?"bg-brand-red-900":"bg-slate-800 hover:opacity-75","rounded-md px-3 py-2 font-georgia text-xl font-medium text-white transition duration-200"),"aria-current":o===e.slug.toUpperCase()?"page":void 0,onClick:function(){x(e.slug.toUpperCase()),_(e.slug)},children:e.name},e.name)}))})]}),(0,a.jsx)(j.E.div,{variants:{hidden:{opacity:0},show:{opacity:1,transition:{delayChildren:.3}}},initial:"hidden",animate:"show",children:A?(0,a.jsx)("div",{className:"rounded-md bg-slate-800 px-5 py-10",children:(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsxs)("div",{className:"inline-flex items-center font-source-sans font-semibold not-italic leading-6 text-gray-300 transition duration-200 ease-in-out",children:[(0,a.jsxs)("svg",{className:"-ml-1 mr-3 h-5 w-5 animate-spin text-gray-300",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),r("common:general.loading"),"..."]})})}):(0,a.jsx)(n.Fragment,{children:g&&N&&N.length>0?(0,a.jsxs)("div",{className:"space-y-8 lg:grid lg:grid-cols-7 lg:gap-8 lg:space-y-0",children:[(0,a.jsx)(j.E.div,{variants:{hidden:{opacity:0},show:{opacity:1}},className:"lg:col-span-5",children:(0,a.jsxs)("div",{className:"rounded-md bg-slate-800",children:[(0,a.jsx)("iframe",{className:"aspect-[16/9] min-h-[250px] w-full sm:min-h-[483px]",src:"https://www.youtube.com/embed/".concat(null===(t=null===g||void 0===g?void 0:g.link.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/))||void 0===t?void 0:t[2]),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),(0,a.jsxs)("div",{className:"space-y-2 p-6",children:[(0,a.jsx)("span",{className:"mb-1 inline-flex items-center rounded-md bg-brand-blue-900 px-2 py-0.5 text-xs font-medium leading-5 text-white",children:null===g||void 0===g?void 0:g.label.name}),(0,a.jsx)("h3",{className:"font-georgia text-xl text-white lg:text-3xl",children:null===g||void 0===g?void 0:g.title}),(0,a.jsx)("p",{className:"font-source-sans text-gray-300 line-clamp-3",children:null===g||void 0===g?void 0:g.excerpt}),(0,a.jsx)("div",{className:"font-source-sans text-sm text-gray-400",children:(0,a.jsx)("time",{dateTime:c()(null===g||void 0===g?void 0:g.publishedAt).format(),children:c()(null===g||void 0===g?void 0:g.publishedAt).format("MMMM D, YYYY h:mm A")})})]})]})}),(0,a.jsx)(j.E.div,{variants:{hidden:{opacity:0}
1,show:{opacity:1}},className:"lg:col-span-2",children:(0,a.jsx)("div",{className:"space-y-0 divide-y divide-gray-700 sm:grid sm:grid-cols-1 sm:gap-x-6 sm:gap-y-8 lg:gap-x-6 lg:gap-y-0",children:N.map((function(e,t){return(0,a.jsx)(j.E.div,{variants:{hidden:{opacity:0},show:{opacity:1}},className:0===t?"pb-4":N.length-1===t?"pt-4 pb-0":"py-4",children:(0,a.jsx)("div",{className:"cursor-pointer",onClick:function(){f(e),document.getElementById("home-videos").scrollIntoView({behavior:"smooth"})},children:(0,a.jsxs)("div",{className:"group grid grid-cols-3 items-start gap-6 space-y-0",children:[(0,a.jsxs)("div",{className:"aspect-w-4 aspect-h-4",children:[(0,a.jsx)(d(),{className:"rounded-md bg-placeholder bg-cover bg-center bg-no-repeat object-cover shadow-md",src:e.featuredImage.url,alt:null!==(E=e.featuredImage.altText)&&void 0!==E?E:"Video thumbnail",layout:"fill"}),(0,a.jsx)("div",{className:"rounded-md bg-black opacity-30"}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"absolute top-2/4 left-2/4 h-10 w-10 -translate-x-1/2 -translate-y-1/2 text-gray-100",viewBox:"0 0 20 20",fill:"currentColor",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"})})]}),(0,a.jsx)("div",{className:"col-span-2",children:(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("span",{className:"mb-1 inline-flex items-center rounded-md bg-brand-blue-900 px-2 py-0.5 text-xs font-medium leading-5 text-white",children:e.label.name}),(0,a.jsx)("div",{className:v()(e.link===(null===g||void 0===g?void 0:g.link)&&"text-brand-red-900","space-y-1 font-georgia text-lg font-medium leading-6 text-white transition duration-200 group-hover:text-brand-red-900"),children:(0,a.jsx)("h3",{children:e.title})}),(0,a.jsx)("div",{className:"font-source-sans text-sm text-gray-400",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})})]})})},t)}))})})]}):(0,a.jsx)(j.E.div,{variants:{hidden:{opacity:0},show:{opacity:1}},className:"rounded-md bg-slate-800 px-5 py-10",children:(0,a.jsx)("p",{className:"text-center text-gray-300",children:r("common:general.no-videos-found")})})})})]})})})},C=function(){var e=(0,m.Z)("common").t;return(0,a.jsx)("div",{className:"rounded-md bg-slate-900 px-5 py-10",children:(0,a.jsx)("p",{className:"text-center text-gray-400",children:e("general.no-articles-found")})})},Y=function(e){e.todaysPicture;var t,s=e.galleries,l=(0,m.Z)().t;return(0,a.jsx)(n.Fragment,{children:(0,a.jsx)("div",{className:"bg-slate-800",children:(0,a.jsxs)("div",{className:"mx-auto max-w-7xl py-8 px-4 sm:px-6",children:[(0,a.jsx)("div",{className:"pb-6",children:(0,a.jsx)(u.Z,{href:k.H.section({slug:"galleries"}),children:(0,a.jsx)("h2",{className:"font-georgia text-5xl font-semibold text-white transition duration-200 hover:text-brand-red-900",children:l("home:pictures.title")})})}),s&&s.length>0?(0,a.jsx)("div",{className:"mx-auto grid gap-5 sm:grid-cols-2 lg:max-w-none lg:grid-cols-4",children:s.map((function(e,s){return(0,a.jsxs)("div",{className:"group flex flex-col overflow-hidden rounded-md border-2 border-transparent",children:[(0,a.jsx)(u.Z,{href:e.url,children:(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(d(),{className:"h-48 w-full bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:e.featuredImage.url,alt:null!==(t=e.featuredImage.altText)&&void 0!==t?t:"Story image",height:192,width:289,layout:"responsive"})})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-between bg-slate-900 p-6",children:[(0,a.jsxs)("div",{className:"mb-1 space-x-2",children:[(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-brand-blue-900 px-2 py-0.5 text-xs font-medium leading-5 text-white",children:e.label.name}),c()().diff(c()(e.publishedAt),"hours",!0)<=1&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:l("common:general.recently-published")}),c()().diff(c()(e.publishedAt),"hours",!0)>1&&c()().diff(c()(e.updatedAt),"minutes",!0)<=30&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:l("common:general.recently-updated")})]}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(u.Z,{href:e.url,className:"mt-2 block",children:[(0,a.jsx)("p",{className:"font-georgia text-xl leading-6 text-white transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("p",{className:"mt-3 font-source-sans text-base text-gray-400 line-clamp-4",children:e.excerpt})]})}),(0,a.jsx)("div",{className:"mt-6 flex space-x-3",children:(0,a.jsxs)("div",{className:"truncate",children:[(0,a.jsx)("div",{className:"truncate text-sm font-medium text-gray-300",children:e.authors.map((function(t,s){return(0,a.jsxs)(n.Fragment,{children:[e.authors.length>1?0===s?"":e.authors.length-1===s?" & ":", ":"",(0,a.jsx)(n.Fragment,{children:t.name})]},s)}))}),(0,a.jsx)("div",{className:"flex space-x-1 font-source-sans text-sm text-gray-400",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})})]})]},s)}))}):(0,a.jsx)(C,{})]})})})},E=function(e){e.outThereNowArticles;
1var t=e.externalPublisherOutThereNowFeed,s=(0,m.Z)().t;return(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsxs)("div",{className:"mx-auto max-w-7xl py-8 px-4 sm:px-6",children:[(0,a.jsx)("div",{className:"pb-6",children:(0,a.jsx)("h2",{className:"font-georgia text-5xl font-semibold text-brand-blue-900 transition duration-200 hover:text-brand-red-900",children:s("home:out-there-now.title")})}),t&&t.length>0?(0,a.jsx)("div",{className:"mx-auto grid gap-5 sm:grid-cols-2 lg:max-w-none lg:grid-cols-4",children:t.map((function(e,t){return(0,a.jsx)("div",{className:"group flex flex-col overflow-hidden rounded-md border-2 border-gray-100",children:(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-between bg-white p-6",children:[(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)("a",{href:e.url,target:"_blank",className:"mt-2 block",rel:"noreferrer",children:[(0,a.jsx)("p",{className:"font-georgia text-xl leading-6 text-gray-900 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("p",{className:"mt-3 font-source-sans text-base text-gray-500 line-clamp-3",children:e.description})]})}),(0,a.jsx)("div",{className:"mt-6 flex space-x-3",children:(0,a.jsxs)("div",{className:"truncate",children:[(0,a.jsx)("div",{className:"truncate text-sm font-medium text-gray-900",children:e.publisher.name}),(0,a.jsx)("div",{className:"flex space-x-1 font-source-sans text-sm text-gray-500",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})})]})},t)}))}):(0,a.jsx)(x.Z,{})]})})},_=function(e){var t,s=e.opinionArticles,l=(0,m.Z)().t;return(0,a.jsx)("div",{className:"bg-white",children:(0,a.jsxs)("div",{className:"mx-auto max-w-7xl px-4 pt-8 pb-10 sm:px-6",children:[(0,a.jsx)("div",{className:"pb-6",children:(0,a.jsx)(u.Z,{href:k.H.section({slug:"opinion"}),children:(0,a.jsx)("h2",{className:"font-georgia text-5xl font-semibold text-brand-blue-900 transition duration-200 hover:text-brand-red-900",children:l("home:opinion.title")})})}),s&&s.length>0?(0,a.jsx)("div",{className:"mx-auto grid gap-5 sm:grid-cols-2 lg:max-w-none lg:grid-cols-4",children:s.map((function(e,s){return(0,a.jsxs)("div",{className:"group flex flex-col overflow-hidden rounded-md border-2 border-gray-100",children:[(0,a.jsx)(u.Z,{href:e.url,children:(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(d(),{className:"h-48 w-full bg-placeholder bg-cover bg-center bg-no-repeat object-cover",src:e.featuredImage.url,alt:null!==(t=e.featuredImage.altText)&&void 0!==t?t:"Story image",height:192,width:289,layout:"responsive"})})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-between bg-white p-6",children:[(0,a.jsxs)("div",{className:"mb-1 space-x-2",children:[(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-brand-blue-900 px-2 py-0.5 text-xs font-medium leading-5 text-white",children:e.label.name}),c()().diff(c()(e.publishedAt),"hours",!0)<=1&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:l("common:general.recently-published")}),c()().diff(c()(e.publishedAt),"hours",!0)>1&&c()().diff(c()(e.updatedAt),"minutes",!0)<=30&&(0,a.jsx)("span",{className:"inline-flex items-center rounded-md bg-gray-100 px-2 py-0.5 text-xs font-medium leading-5 text-gray-800",children:l("common:general.recently-updated")})]}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(u.Z,{href:e.url,className:"mt-2 block",children:[(0,a.jsx)("p",{className:"font-georgia text-xl leading-6 text-gray-900 transition duration-200 group-hover:text-brand-red-900",children:e.title}),(0,a.jsx)("p",{className:"mt-3 font-source-sans text-base text-gray-500 line-clamp-4",children:e.excerpt})]})}),(0,a.jsx)("div",{className:"mt-6 flex space-x-3",children:(0,a.jsxs)("div",{className:"truncate",children:[(0,a.jsx)("div",{className:"truncate text-sm font-medium text-gray-900",children:e.authors.map((function(t,s){return(0,a.jsxs)(n.Fragment,{children:[e.authors.length>1?0===s?"":e.authors.length-1===s?" & ":", ":"",(0,a.jsx)(n.Fragment,{children:t.name})]},s)}))}),(0,a.jsx)("div",{className:"flex space-x-1 font-source-sans text-sm text-gray-500",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})})]})})]})]},s)}))}):(0,a.jsx)(x.Z,{})]})})},O=s(1609),P=s(7113),I=s(7154),F=s(9053);function D(e){var t=e.showModal,s=void 0!==t&&t,i=e.setShowModal,c=(0,m.Z)("common").t,o=(0,l.useRouter)();return(0,a.jsx)(O.u.Root,{show:s,as:n.Fragment,children:(0,a.jsx)(P.V,{as:"div",className:"fixed inset-0 z-50 overflow-y-auto",onClose:i,children:(0,a.jsxs)("div",{className:"flex min-h-screen items-center justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",children:[(0,a.jsx)(O.u.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(P.V.Backdrop,{
1className:"fixed inset-0 z-20 bg-black bg-opacity-70 transition-opacity"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:h-screen sm:align-middle","aria-hidden":"true",children:"\u200b"}),(0,a.jsx)(O.u.Child,{as:n.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,a.jsxs)(P.V.Panel,{className:"inline-block transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left align-middle shadow-xl transition-all sm:m-8 sm:w-full sm:max-w-md sm:p-8",children:[(0,a.jsx)("div",{className:"absolute top-0 right-0 pt-4 pr-4",children:(0,a.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",onClick:function(){return i(!1)},children:[(0,a.jsx)("span",{className:"sr-only",children:"Close"}),(0,a.jsx)(I.Z,{className:"h-6 w-6","aria-hidden":"true"})]})}),(0,a.jsx)("div",{className:"flex flex-col justify-center",children:(0,a.jsxs)("div",{className:"py-2",children:[(0,a.jsxs)("div",{className:"px-6 sm:mx-auto sm:w-full sm:max-w-md",children:[(0,a.jsx)("img",{className:"mx-auto h-14 w-auto",src:"/logo.svg",alt:"MalaysiaNow"}),(0,a.jsx)("p",{className:"mt-8 px-4 text-center font-source-sans text-lg text-gray-600",children:c("general.language-modal.description")})]}),(0,a.jsx)("div",{className:"mt-6 sm:mx-auto sm:w-full sm:max-w-md",children:(0,a.jsx)("div",{className:"px-4 sm:px-10",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{children:(0,a.jsx)("button",{type:"submit",className:"flex w-full justify-center rounded-md border border-transparent bg-brand-blue-900 py-2 px-4 font-source-sans text-lg font-medium text-white shadow-sm transition duration-200 hover:bg-brand-red-900 focus:outline-none focus:ring-2 focus:ring-brand-blue-900 focus:ring-offset-2 disabled:bg-brand-blue-600",onClick:function(){i(!1),r.Z.set("MNOW_FED_LOCALE","en",{httpOnly:!1,secure:!0,expires:3650,sameSite:"lax",domain:"malaysianow.com"}),"en"!==o.locale&&o.push("/","/",{locale:"en"}),F.B({action:"switch_en_locale",category:"engagement",label:"switch_locale",value:1})},children:c("general.language-modal.english-button")})}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{type:"submit",className:"flex w-full justify-center rounded-md border border-transparent bg-brand-blue-900 py-2 px-4 font-source-sans text-lg font-medium text-white shadow-sm transition duration-200 hover:bg-brand-red-900 focus:outline-none focus:ring-2 focus:ring-brand-blue-900 focus:ring-offset-2 disabled:bg-brand-blue-600",onClick:function(){i(!1),r.Z.set("MNOW_FED_LOCALE","my",{httpOnly:!1,secure:!0,expires:3650,sameSite:"lax",domain:"malaysianow.com"}),"my"!==o.locale&&o.push("/","/",{locale:"my"}),F.B({action:"switch_my_locale",category:"engagement",label:"switch_locale",value:1})},children:c("general.language-modal.malay-button")})})]})})})]})})]})})]})})})}var B=s(5624);function U(){var e=(0,m.Z)("common").t;return(0,a.jsxs)("div",{className:"mx-auto max-w-7xl py-6 px-4 sm:px-6",children:[(0,a.jsxs)("span",{className:"mb-2 block text-center font-source-sans text-sm text-gray-400",children:["- ",e("general.advertisement")," -"]}),(0,a.jsx)("div",{className:"flex min-w-0 justify-center",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeMobileBillboard"})}),(0,a.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeTabletBillboard"})}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(B.Z,{slotName:"homeDesktopBillboard"})})]})})]})}function L(){var e=(0,m.Z)("common").t;return(0,a.jsxs)("div",{className:"mx-auto max-w-7xl py-6 px-4 sm:px-6",children:[(0,a.jsxs)("span",{className:"mb-2 block text-center font-source-sans text-sm text-gray-400",children:["- ",e("general.advertisement")," -"]}),(0,a.jsx)("div",{className:"flex min-w-0 justify-center",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeMobileBillboard2"})}),(0,a.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeTabletBillboard2"})}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(B.Z,{slotName:"homeDesktopBillboard2"})})]})})]})}function R(){var e=(0,m.Z)("common").t;return(0,a.jsxs)("div",{className:"mx-auto max-w-7xl py-6 px-4 sm:px-6",children:[(0,a.jsxs)("span",{className:"mb-2 block text-center font-source-sans text-sm text-gray-400",children:["- ",e("general.advertisement")," -"]}),(0,a.jsx)("div",{className:"flex min-w-0 justify-center",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeMobileBillboard3"})}),(0,a.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeTabletBillboard3"})}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(B.Z,{slotName:"homeDesktopBillboard3"})})]})})]})}function V(){var e=(0,m.Z)("common").t;return(0,a.jsxs)("div",{className:"mx-auto max-w-7xl py-6 px-4 sm:px-6",children:[(0,a.jsxs)("span",{className:"mb-2 block text-center font-source-sans text-sm text-gray-400",children:["- ",e("general.advertisement")," -"]}),(0,a.jsx)("div",{className:"flex min-w-0 justify-center",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeMobileBillboard4"})}),(0,a.jsx)("div",{className:"hidden md:block lg:hidden",children:(0,a.jsx)(B.Z,{slotName:"homeTabletBillboard4"})}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(B.Z,{slotName:"homeDesktopBillboard4"})})]})})]})}var W=s(2953),H=s(7680),z=s(4264),J=s(492),K=s(9551),X=function(e){var t=e.currentElection,s=(0,m.Z)(),l=s.t,r=s.lang,i=(0,n.use
1State)(t.result&&t.result.stateSummary.length>1?t.result.stateSummary[0].state.id:null),o=i[0],d=i[1],x=(0,n.useState)(t.result&&t.result.stateSummary.length>1?t.result.stateSummary[0]:null),h=x[0],g=x[1];return(0,n.useEffect)((function(){d(t.result&&t.result.stateSummary.length>1?t.result.stateSummary[0].state.id:null),g(t.result&&t.result.stateSummary.length>1?t.result.stateSummary[0]:null)}),[t]),(0,a.jsx)("div",{className:"bg-gray-50 bg-cover bg-bottom",style:{backgroundImage:'url("https://cdn.malaysianow.com/uploads/images/media/2022/11/16/wavy_yellow_bg.svg")'},children:t.election&&(0,a.jsxs)("div",{className:"mx-auto max-w-7xl px-4 pt-8 pb-10 sm:px-6",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsxs)(u.Z,{href:k.H.election({type:t.election.type.toLowerCase(),slug:t.election.slug}),children:[(0,a.jsx)("h2",{className:"text-center font-georgia text-3xl font-semibold text-brand-blue-900 transition duration-200 hover:text-brand-red-900 sm:text-4xl",children:t.election.title?"my"===r?t.election.title.my:t.election.title.en:t.election.name}),t.election.homeDescription&&t.election.homeDescription.en&&t.election.homeDescription.my&&(0,a.jsx)("p",{className:"text-center font-source-sans italic text-gray-500 sm:mt-1 md:text-lg",children:"my"===r?t.election.homeDescription.my:t.election.homeDescription.en})]})}),"STATE"===t.election.type&&t.result?(0,a.jsx)(n.Fragment,{children:t.result.stateSummary.length>1?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("nav",{className:"space-x-4 overflow-x-scroll whitespace-nowrap text-center","aria-label":"Tabs",children:t.result.stateSummary.map((function(e){return(0,a.jsxs)("button",{className:v()(o===e.state.id?"bg-brand-blue-900 text-white":"bg-[#fbedc7] text-gray-500 hover:bg-brand-red-900 hover:text-white","inline-flex items-center justify-center rounded-md px-3 py-2 font-georgia text-lg font-medium transition duration-200 md:text-xl"),"aria-current":o===e.state.id?"page":void 0,onClick:function(){d(e.state.id),g(e)},children:[(0,a.jsx)("img",{className:"h-4 w-auto pr-2 sm:h-5",src:e.state.stateImage,alt:""}),e.state.name]},e.state.id)}))}),h&&h.coalitions.length>0&&(0,a.jsx)(j.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,a.jsx)(J.Z,{pauseOnHover:!0,speed:50,gradientWidth:50,gradientColor:[254,236,194],children:(0,a.jsx)("div",{className:"flex space-x-4 overflow-scroll",children:h.coalitions.slice().sort((function(e,t){return t.seats-e.seats})).map((function(e,t){return(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-md bg-white p-6",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center border-r border-gray-200 pr-6",children:[e.coalition.coalitionImage?(0,a.jsx)("img",{className:"rounded-md border border-gray-200",src:e.coalition.coalitionImage,alt:"",width:90,height:45}):(0,a.jsx)("img",{className:"rounded-md border border-gray-200",src:"https://media.malaysianow.com/wp-content/uploads/placeholder.png",alt:"",width:90,height:45}),(0,a.jsx)("span",{className:"text-center font-source-sans text-gray-600",children:e.coalition.name})]}),(0,a.jsx)("div",{className:"-mt-2 pl-6",children:(0,a.jsx)("h1",{className:"text-center font-georgia text-4xl leading-none text-brand-blue-900",children:e.seats})})]},t)}))})})})]}):(0,a.jsx)(n.Fragment,{children:t.result.coalitionSummary.length>0&&(0,a.jsx)(J.Z,{pauseOnHover:!0,speed:50,gradientWidth:50,gradientColor:[254,236,194],children:(0,a.jsx)("div",{className:"flex space-x-4 overflow-scroll",children:t.result.coalitionSummary.slice().sort((function(e,t){return t.seats-e.seats})).map((function(e,t){return(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-md bg-white p-6",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center border-r border-gray-200 pr-6",children:[e.coalition.coalitionImage?(0,a.jsx)("img",{className:"rounded-md border border-gray-200",src:e.coalition.coalitionImage,alt:"",width:90,height:45}):(0,a.jsx)("img",{className:"rounded-md border border-gray-200",src:"https://media.malaysianow.com/wp-content/uploads/placeholder.png",alt:"",width:90,height:45}),(0,a.jsx)("span",{className:"text-center font-source-sans text-gray-600",children:e.coalition.name})]}),(0,a.jsx)("div",{className:"-mt-2 pl-6",children:(0,a.jsx)("h1",{className:"text-center font-georgia text-4xl leading-none text-brand-blue-900",children:e.seats})})]},t)}))})})})}):(0,a.jsx)(n.Fragment,{children:t.result&&t.result.coalitionSummary.length>0&&(0,a.jsx)(J.Z,{pauseOnHover:!0,speed:50,gradientWidth:50,gradientColor:[254,236,194],children:(0,a.jsx)("div",{className:"flex space-x-4 overflow-scroll",children:t.result.coalitionSummary.slice().sort((function(e,t){return t.seats-e.seats})).map((function(e,t){return(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-md bg-white p-6",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center border-r border-gray-200 pr-6",children:[e.coalition.coalitionImage?(0,a.jsx)("img",{className:"rounded-md border border-gray-200",src:e.coalition.coalitionImage,alt:"",width:90,height:45}):(0,a.jsx)("img",{className:"rounded-md border border-gray-200",src:"https://media.malaysianow.com/wp-content/uploads/placeholder.png",alt:"",width:90,height:45}),(0,a.jsx)("span",{className:"text-center font-source-sans text-gray-600",children:e.coalition.name})]}),(0,a.jsx)("div",{className:"-mt-2 pl-6",children:(0,a.jsx)("h1",{className:"text-center font-georgia text-4xl leading-none text-brand-blue-900",children:e.seats})})]},t)}))})})}),t.updates&&t.updates.length>0&&(0,a.jsx)(J.Z,{pauseOnHover:!0,speed:50,gradientWidth:50,gradientColor:[254,236,194],children:(0,a.jsx)("div",{className:"mt-6 flex space-x-4 overflow-scroll",children:t.updates.map((function(e,s){var n,l;return(0,a.jsx)("div",{className:"rounded-md bg-white p-4 shadow-sm",children:(0,a.jsxs)("div",{className:"flex h-full min-w-[20rem] max-w-[20rem] flex-col items-start justify-between space-y-2",children:[(0,a.jsx)("h1",{className:"font-georgia text-xl",children:e.title}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("p",{className:"font-source-sans text-sm text-gray-500",children:(0,a.jsx)("time",{dateTime:c()(e.publishedAt).format(),children:c()(e.publishedAt).format("MMMM D, YYYY h:mm A")})}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(K.Z,{title:e.title,url:W.r+("en"===r?"":"/".concat(r))+"/election/"+(null===t||void 0===t||null===(n=t.election)||void 0===n?void 0:n.type.toLowerCase())+"/"+(null===t||void 0===t||null===(l=t.election)||void 0===l?void 0:l.slug)+"/updates/"+e.slug})})]})]})},s)}))})}),t.updates&&t.updates.length>0&&(0,a.jsx)("div",{className:"mt-6 flex w-full items-center justify-center",children:(0,a.jsx)(u.Z,{href:k.H.electionUpdates({type:t.election.type.toLowerCase(),slug:t.election.slug}),className:"inline-flex items-center rounded-md border border-transparent bg-brand-blue-900 px-4 py-2 font-source-sans text-base font-medium text-white shadow-sm transition duration-200 hover:bg-brand-red-900 focus:outline-none focus:ring-2 focus:ring-brand-red-900 focus:ring-offset-2",children:l("common:general.read-more")})})]})})};function Q(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function $(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{},a=Object.keys(s);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(s).filter((function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})))),a.forEach((function(t){Q(e,t,s[t])}))}return e}
1var G=function(e){var t=e.data,s=(0,l.useRouter)(),i=(0,n.useState)(!1),c=i[0],o=i[1];return(0,n.useEffect)((function(){r.Z.get("mnshowlangmdl")||(o(!0),r.Z.set("mnshowlangmdl","true",{httpOnly:!1,secure:!0,expires:3650,sameSite:"lax",domain:"malaysianow.com"}))}),[]),(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(H.lX,$({},z.Z,{languageAlternates:[{hrefLang:"en",href:W.r},{hrefLang:"ms",href:W.Tu+"my"}],canonical:"my"===s.locale?W.Tu+"my":W.r,openGraph:{locale:"my"===s.locale?"ms_MY":"en_MY"},additionalLinkTags:[{rel:"alternate",href:"my"===s.locale?W.Tu+"my/feed":W.r+"/feed",type:"application/rss+xml"}]})),(0,a.jsx)(H.ns,{type:"Organization",id:W.r+"/#organization",logo:"https://media.malaysianow.com/wp-content/uploads/2020/08/30173619/g-logo.png",legalName:"MNow Media Sdn Bhd",name:"MalaysiaNow",email:"[email protected]",address:{streetAddress:"A18-08, Pinnacle PJ, Lorong Utara C",addressLocality:"Petaling Jaya",addressRegion:"Selangor",postalCode:"46200",addressCountry:"Malaysia"},contactPoint:[{telephone:"+60379323811",contactType:"customer service",url:W.r+"/contact-us/",availableLanguage:["English","Malay"]}],sameAs:["https://www.facebook.com/MNowNews/","https://www.instagram.com/MNowNews/","https://www.linkedin.com/company/malaysianow/","https://twitter.com/MNowNews/","https://www.youtube.com/channel/UC315KbRo_fiQ9fbaVUhEK0Q","https://t.me/malaysianow","https://www.tiktok.com/@malaysianow"],url:W.Tu}),(0,a.jsx)(H.VL,{description:"News, views and insights into Malaysian current affairs.",id:"my"===s.locale?W.Tu+"my":W.r}),(null===t||void 0===t?void 0:t.currentElection)&&(null===t||void 0===t?void 0:t.currentElection.election)&&(0,a.jsx)(X,{currentElection:null===t||void 0===t?void 0:t.currentElection}),(0,a.jsx)(h,{leadArticle:null===t||void 0===t?void 0:t.leadStory,highlightArticles:null===t||void 0===t?void 0:t.highlight}),(0,a.jsx)(M,{columnArticles:null===t||void 0===t?void 0:t.column}),(0,a.jsx)("div",{className:"bg-gray-100",children:(0,a.jsx)(U,{})}),(0,a.jsx)(Z,{readersPickArticles:null===t||void 0===t?void 0:t.readersPick,covidStatistics:null===t||void 0===t?void 0:t.covidStatistics,covidNewsArticles:null===t||void 0===t?void 0:t.covidNews,latestNewsArticles:null===t||void 0===t?void 0:t.latestNews,weeklyFuelPrice:null===t||void 0===t?void 0:t.WeeklyFuelPrice,editorsPickArticles:null===t||void 0===t?void 0:t.editorsPick,externalPublisherWorldFeed:null===t||void 0===t?void 0:t.externalPublisherWorldFeed}),(0,a.jsx)("div",{className:"bg-gray-100",children:(0,a.jsx)(L,{})}),(0,a.jsx)(T,{videos:null===t||void 0===t?void 0:t.videos,videoPlaylists:null===t||void 0===t?void 0:t.videoPlaylists}),(0,a.jsx)(Y,{todaysPicture:null===t||void 0===t?void 0:t.todaysPicture,galleries:null===t||void 0===t?void 0:t.galleries}),"en"===s.locale&&(0,a.jsx)("div",{className:"bg-gray-100",children:(0,a.jsx)(R,{})}),"en"===s.locale&&(0,a.jsx)(E,{outThereNowArticles:null===t||void 0===t?void 0:t.outThereNow,externalPublisherOutThereNowFeed:null===t||void 0===t?void 0:t.externalPublisherOutThereNowFeed}),(0,a.jsx)("div",{className:"bg-gray-100",children:(0,a.jsx)(V,{})}),(0,a.jsx)(_,{opinionArticles:null===t||void 0===t?void 0:t.opinion}),(0,a.jsx)(D,{showModal:c,setShowModal:o})]})},q=s(2955);function ee(e){var t=e.data,s=e.error;return(0,a.jsx)(G,{data:t,error:s})}ee.Layout=q.Z;var te=!0,se=ee},5953:function(e,t,s){"use strict";s.d(t,{H:function(){return a}});var a={home:function(){return{href:"/"}},aboutUs:function(){return{href:"/about-us"}},advertiseWithUs:function(){return{href:"/advertise-with-us"}},contactUs:function(){return{href:"/contact-us"}},workWithUs:function(){return{href:"/work-with-us"}},terms:function(){return{href:"/terms-and-disclaimer"}},privacy:function(){return{href:"/privacy-policy"}},search:function(){return{href:"/search"}},tag:function(e){var t=e.slug;return{href:"/tag/[slug]",as:"/tag/".concat(t)}},author:function(e){var t=e.username;return{href:"/author/[username]",as:"/author/".concat(t)}},section:function(e){var t=e.slug;return{href:"/section/[slug]",as:"/section/".concat(t)}},elections:function(){return{href:"/election"}},electionByType:function(e){var t=e.type;return{href:"/election/[type]",as:"/election/".concat(t)}},election:function(e){var t=e.type,s=e.slug;return{href:"/election/[type]/[slug]",as:"/election/".concat(t,"/").concat(s)}},electionUpdates:function(e){var t=e.type,s=e.slug;return{href:"/election/[type]/[slug]/updates",as:"/election/".concat(t,"/").concat(s,"/updates")}},electionUpdatesById:function(e){var t=e.type,s=e.slug,a=e.updateSlug;return{href:"/election/[type]/[slug]/updates/[updateSlug]",as:"/election/".concat(t,"/").concat(s,"/updates/").concat(a)}},electionResults:function(e){var t=e.type,s=e.slug;return{href:"/election/[type]/[slug]/results",as:"/election/".concat(t,"/").concat(s,"/results")}},electionCandidates:function(e){var t=e.type,s=e.slug;return{href:"/election/[type]/[slug]/candidates",as:"/election/".concat(t,"/").concat(s,"/candidates")}},electionNews:function(e){var t=e.type,s=e.slug;return{href:"/election/[type]/[slug]/news",as:"/election/".concat(t,"/").concat(s,"/news")}}}}},function(e){e.O(0,[4885,4396,7739,9022,2955,9774,2888,179],(function(){return t=5301,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.