1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[134],{31360:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news",function(){return a(78141)}])},78141:function(e,s,a){"use strict";a.r(s),a.d(s,{__N_SSP:function(){return x}});var n=a(85893),l=a(86886),i=a(15054),c=a(30381),t=a.n(c),r=a(25675),o=a.n(r),d=a(41664),u=a.n(d),h=a(11163),w=a(67294),m=a(93287),g=a(50154),N=a(40519),x=!0;s.default=e=>{var s,a,c,r,d,x,p,v,_;let[j,k]=(0,w.useState)(e.braking_news[0]),[P,Z]=(0,w.useState)(1),b=(0,h.useRouter)(),getDetailsData=e=>{k(e)},f=Math.ceil((null===(s=e.news)||void 0===s?void 0:s.total)/(null===(a=e.news)||void 0===a?void 0:a.per_page));return(0,n.jsxs)(w.Fragment,{children:[(0,n.jsx)(m.Z,{seo_title:null===(c=e.seo_details)||void 0===c?void 0:c.seo_title,seo_description:null===(r=e.seo_details)||void 0===r?void 0:r.seo_description,seo_keyword:null===(d=e.seo_details)||void 0===d?void 0:d.seo_keyword,url:"news"}),(0,n.jsxs)(g.Z,{user_token:e.user_token,user_info:e.user_info,access:e.access,children:[(0,n.jsx)(l.ZP,{className:"news-archive-braking-area",children:(0,n.jsxs)(l.ZP,{className:"container public-container",children:[(0,n.jsx)("h1",{className:"news-title mb-4",children:"Market and Trading News"}),(0,n.jsxs)(l.ZP,{className:"row",children:[(0,n.jsx)(l.ZP,{className:"col-lg-8 col-12",children:void 0!==j?(0,n.jsx)(l.ZP,{className:"braking-details-wrap",style:{background:"url(".concat((null==j?void 0:j.image)?null==j?void 0:j.image:"/images/braking-news.webp",") no-repeat center center / cover")},children:(0,n.jsxs)(l.ZP,{className:"braking-details-content",children:[(0,n.jsx)(u(),{href:"/news/[slug]",as:"/news/".concat(null==j?void 0:j.slug),className:"title",children:null==j?void 0:j.title}),(0,n.jsx)("span",{className:"time",children:(0,N.T5)(null==j?void 0:j.created_at)})]})}):null}),(0,n.jsx)(l.ZP,{className:"col-lg-4 col-12",children:(0,n.jsxs)(l.ZP,{className:"braking-wrapper",children:[(0,n.jsx)("h4",{className:"news-title",children:"Breaking News"}),(0,n.jsx)("ul",{className:"braking-news",children:e.braking_news.slice(0,3).map(e=>(0,n.jsx)("li",{className:(null==j?void 0:j.id)==e.id?"active":"",onClick:()=>getDetailsData(e),children:(0,n.jsxs)("a",{children:[(0,n.jsx)("span",{className:"title",children:e.title}),(0,n.jsx)("span",{className:"time",children:(0,N.T5)(e.created_at)})]})},e.id))})]})})]})]})}),(0,n.jsx)(l.ZP,{className:"news-archive-area ptb-50",id:"news",children:(0,n.jsx)(l.ZP,{className:"container public-container",children:(0,n.jsxs)(l.ZP,{className:"row",children:[null===(p=e.news)||void 0===p?void 0:null===(x=p.data)||void 0===x?void 0:x.map(e=>{var s;return(0,n.jsx)(l.ZP,{className:"col-md-6 col-lg-4 col-12",children:(0,n.jsxs)(l.ZP,{className:"news-archive-wrap",children:[(0,n.jsx)(u(),{href:"/news/[slug]",as:"/news/".concat(e.slug),className:"news-img",children:(0,n.jsx)(o(),{src:e.image?(0,N.ES)(e.image,"featured"):"/images/no-image.webp",alt:e.title,width:390,height:180})}),(0,n.jsxs)(l.ZP,{className:"news-content",children:[(0,n.jsx)(u(),{href:"/news/[slug]",as:"/news/".concat(e.slug),className:"title",children:(0,N.OD)(e.title,60)}),(0,n.jsx)("p",{className:"text",children:(0,N.OD)(null===(s=e.description)||void 0===s?void 0:s.replace(/^\s+|\s+$/gm,""),200)}),(0,n.jsx)(l.ZP,{className:"text-right",children:(0,n.jsx)("span",{className:"time",children:t()(e.created_at).format("DD MMM, YYYY")})})]})]})},e.id)}),(0,n.jsx)(l.ZP,{className:"col-12",children:(null===(v=e.news)||void 0===v?void 0:v.total)>(null===(_=e.news)||void 0===_?void 0:_.per_page)&&(0,n.jsx)(i.Z,{count:f,page:P,showFirstButton:!0,showLastButton:!0,onChange:(e,s)=>{Z(s),window.scrollTo({top:0}),b.push("/news?page=".concat(s,"#news"))},className:"paginationWrap"})})]})})})]})]})}}},function(e){e.O(0,[885,89,456,141,121,907,774,888,179],function(){return e(e.s=31360)}),_N_E=e.O()}]);
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.