1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[679],{5161:function(t,e,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/posts",function(){return s(7964)}])},3073:function(t,e,s){"use strict";s.d(e,{Z:function(){return n}});var a=s(5893),i=s(1664),r=s.n(i);function n(){return(0,a.jsx)("section",{className:"page_404",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("div",{className:"col-sm-12",children:(0,a.jsxs)("div",{className:"col-sm-10 col-sm-offset-1 text-center",children:[(0,a.jsx)("div",{className:"four_zero_four_bg"}),(0,a.jsxs)("div",{className:"contant_box_404",children:[(0,a.jsx)("h3",{className:"h2",children:"Looks like you're lost."}),(0,a.jsx)("p",{children:"The Page you are looking for is not Available!"}),(0,a.jsx)(r(),{href:"/",legacyBehavior:!0,children:(0,a.jsx)("a",{className:"link_404",children:"Go to Home"})})]})]})})})})})}},7964:function(t,e,s){"use strict";s.r(e);var a=s(5893),i=s(3073),r=s(1829),n=s(2518),c=s(1664),o=s.n(c),l=s(1163),h=s(7294);class d extends h.Component{async componentDidMount(){setTimeout(async()=>{let{slug:t}=this.props.router.state.query;await this.getData("?populate=*&sort[0]=publishedAt:desc"),await this.handleLink()},500)}render(){return(0,a.jsx)(r.Z,{state:this.props.state,children:null===this.state.data?(0,a.jsx)(a.Fragment,{children:"Loading..."}):(0,a.jsx)(a.Fragment,{children:Object.keys(this.state.data).length>0?(0,a.jsxs)("section",{className:"bg-gray-100",children:[(0,a.jsxs)("div",{className:"page-title",children:[(0,a.jsx)("h1",{children:"Blog Posts"}),null!==this.state.categories&&(0,a.jsx)(a.Fragment,{children:this.state.categories.map((t,e)=>this.state.categories.length>1&&0===e?(0,a.jsxs)("strong",{children:[this.state.categories.length>1?"Categories":"Category"," "]},e):e>0?(0,a.jsx)(o(),{href:"/category/".concat(t.attributes.slug),children:t.attributes.name},e):void 0)})]}),(0,a.jsx)("div",{className:"p-2"}),(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"row",children:null!==this.state.data&&Array.isArray(this.state.data)&&this.state.data.map((t,e)=>(0,a.jsxs)("div",{className:"col-lg-4 col-md-6 col-12",children:[(0,a.jsx)("div",{className:"ratio ratio-16x9",children:(0,a.jsx)("div",{className:"thumb-img",children:(0,a.jsx)(o(),{href:"/post/".concat(t.attributes.slug),style:{backgroundImage:"url('".concat(t.attributes.thumb_url,"')")}})})}),(0,a.jsxs)("div",{className:"box-content no-border",children:[n.Z.categoryTemplate(t.attributes.categories),(0,a.jsxs)("small",{children:["Published On ",n.Z.formatDate(t.attributes.publishedAt)]}),(0,a.jsx)("h6",{className:"m-0",children:(0,a.jsx)(o(),{href:"/post/".concat(t.attributes.slug),children:t.attributes.title})}),(0,a.jsx)("div",{className:"text-gray-200",children:t.attributes.description})]})]},e))})}),(0,a.jsx)("div",{className:"p-2"})]}):(0,a.jsx)(i.Z,{})})})}constructor(t){var e;super(t),e=this,this.getCategory=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=await n.Z.getentry("categories",t);void 0!==s?e.setState({categories:s},()=>{}):e.setState({categories:[]})},this.getData=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=await n.Z.getentries("blog-posts",t);void 0!==s?e.setState({data:s},()=>{}):e.setState({data:[]})},this.handleLink=async()=>{let t=async(t,e)=>{let{shallow:s}=e,{slug:a}=this.props.router.state.query;await this.getData(a)};this.props.router.events.on("routeChangeStart",(t,e)=>{let{shallow:s}=e,{slug:a}=this.props.router.state.query;this.getData(a)}),this.props.router.events.on("routeChangeComplete",t)},this.state={data:null,categories:null}}}e.default=(0,l.withRouter)(d)}},function(t){t.O(0,[192,829,888,774,179],function(){return t(t.s=5161)}),_N_E=t.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.