1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9783,8885],{8087:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/home/news",function(){return s(6805)}])},6805:function(e,i,s){"use strict";s.r(i);var n=s(5893),a=s(7294),l=s(7066),t=s(9734),c=s(3108),r=s(549),d=s(1664),h=s.n(d),m=s(8533),o=s(5675),x=s.n(o),u=function(e){var i=(0,t.ZP)("".concat("https://stock.cumicumi.com/api/v3","/latest?perpage=").concat(e),function(e){return l.Z.get(e).then(function(e){return e.data.data})}),s=i.data,n=i.error;return{data:s,loading:!s&&!n,error:n}};i.default=function(){var e=(0,a.useState)(5),i=e[0],s=e[1],t=(0,a.useState)(!0),d=t[0],o=t[1],j=u(i),g=j.data,N=j.loading,p=j.error,f=function(e){return function(i){l.Z.post("".concat("https://stock.cumicumi.com/api/v3","/articles/").concat(e)).then(function(e){}).catch(function(e){console.log("Error",e)})}},v=function(){s(function(e){return e+5})};return((0,a.useEffect)(function(){g&&g.length>=30&&o(!1)},[g]),N)?(0,n.jsxs)("div",{children:[(0,n.jsxs)("article",{className:"headline-main",children:[(0,n.jsx)("figure",{className:"headline-main-image-wrap",children:(0,n.jsx)("div",{className:"headline-main-image-link",children:(0,n.jsx)("picture",{className:"headline-main-image",children:(0,n.jsx)(r.Z,{height:300})})})}),(0,n.jsxs)("div",{className:"headline-main-wrapper",children:[(0,n.jsx)("div",{children:(0,n.jsx)(r.Z,{count:2})}),(0,n.jsxs)("ul",{className:"list-unstyled meta d-flex align-items-center",children:[(0,n.jsx)("li",{children:(0,n.jsx)(r.Z,{width:100})}),(0,n.jsx)("li",{children:(0,n.jsx)(r.Z,{width:100})})]})]})]}),(0,n.jsx)("div",{className:"row",children:[1,2,3].map(function(e){return(0,n.jsx)("div",{className:"col-lg-4",children:(0,n.jsxs)("article",{className:"headline-main-bottom",children:[(0,n.jsx)("figure",{className:"headline-main-image-wrap",children:(0,n.jsx)("div",{className:"headline-main-image-link",children:(0,n.jsx)("picture",{className:"headline-main-image",children:(0,n.jsx)(r.Z,{height:150})})})}),(0,n.jsxs)("div",{className:"headline-main-wrapper",children:[(0,n.jsx)("div",{children:(0,n.jsx)(r.Z,{count:2})}),(0,n.jsxs)("ul",{className:"list-unstyled meta d-flex align-items-center",children:[(0,n.jsx)("li",{children:(0,n.jsx)(r.Z,{width:100})}),(0,n.jsx)("li",{children:(0,n.jsx)(r.Z,{width:100})})]})]})]})},e)})}),(0,n.jsx)("div",{children:[1,2,3,4,5].map(function(e){return(0,n.jsx)("article",{children:(0,n.jsxs)("div",{className:"single-article-post align-items-center",children:[(0,n.jsx)("div",{className:"post-left",children:(0,n.jsx)("div",{className:"feature-img position-relative",children:(0,n.jsx)(r.Z,{width:334,height:162})})}),(0,n.jsxs)("div",{className:"post-right mt-3 mt-lg-0",children:[(0,n.jsx)("div",{children:(0,n.jsx)(r.Z,{height:50})}),(0,n.jsx)(r.Z,{count:3}),(0,n.jsxs)("ul",{className:"list-unstyled meta d-flex align-items-center",children:[(0,n.jsx)("li",{children:(0,n.jsx)(r.Z,{width:100})}),(0,n.jsx)("li",{children:(0,n.jsx)(r.Z,{width:100})})]})]})]})},e)})})]}):p?(0,n.jsx)(a.Fragment,{children:(0,n.jsx)("section",{className:"single-post-headline",children:(0,n.jsx)("div",{className:"main-error text-center",children:(0,n.jsx)("span",{className:"error",children:"Tidak ada artikel ditemukan"})})})}):(0,n.jsx)("div",{children:(0,n.jsx)(m.Z,{dataLength:(null==g?void 0:g.lenghth)||0,loader:N,next:v,hasMore:d,endMessage:(0,n.jsx)("p",{style:{textAlign:"center"}}),children:(0,n.jsxs)("section",{className:"area-content",children:[(0,n.jsx)("div",{className:"section-heading",children:(0,n.jsx)("h2",{className:"title-section-none-decorative new-title-section",children:(0,n.jsx)("span",{children:"Index Berita"})})}),(0,n.jsx)("div",{className:"section-body",children:g.map(function(e,i){return(0,n.jsx)("article",{children:(0,n.jsxs)("div",{className:"row single-content-post align-items-center",children:[(0,n.jsx)("div",{className:"col-lg-5 post-left",children:(0,n.jsx)("div",{className:"feature-img position-relative",children:(0,n.jsx)(h(),{href:"/"+e.content_type+"/"+e.rubrik.slug+"/"+e.id+"/"+e.slug,children:(0,n.jsxs)("a",{className:"feature-img position-relative",onClick:f(e.id),children:[(0,n.jsx)(x(),{className:"img-fluid",src:e.thumbnail.medium,alt:e.title,width:350,height:200}),"articles"===e.content_type?"":(0,n.jsx)("div",{className:"btn-play",children:(0,n.jsx)("i",{className:"fas fa-play"})})]})})})}),(0,n.jsxs)("div",{className:"col-lg-7 post-right mt-3 mt-lg-0",children:[(0,n.jsx)(h(),{href:"/"+e.content_type+"/"+e.rubrik.slug+"/"+e.id+"/"+e.slug,children:(0,n.jsx)("a",{onClick:f(e.id),children:(0,n.jsx)(c.ZP,{className:"title",tagName:"h6",content:e.title})})}),(0,n.jsx)("ul",{className:"list-unstyled meta d-flex align-items-center",children:(0,n.jsx)("li",{className:"ml-5",children:e.published_human})})]})]})},i)})})]})})})}}},function(e){e.O(0,[1664,7066,3108,9734,5675,7636,9774,2888,179],function(){return e(e.s=8087)}),_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.