1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[892],{437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>x,default:()=>f});var l=n(7876);n(6508);var r=n(7328),s=n.n(r),i=n(4232),a=n(8230),o=n.n(a),c=n(9099),d=n(1898),u=n.n(d);function m(e){var t;let{posts:n}=e,r=(0,c.useRouter)();(0,i.useEffect)(()=>{window.scrollTo(0,0)},[]);let s=null!=(t=null==n?void 0:n.items)?t:[],a=(0,i.useMemo)(()=>s.map((e,t)=>{var n,s,i,a,o,c,d,m,g;let{fields:h,sys:x}=e,f=h.slug,p=h.title,b=h.author||"Blue Planit",v=u().generateMDYDate(x.createdAt);(null==(i=h.mainImage)||null==(s=i.fields)||null==(n=s.file)?void 0:n.url)?h.mainImage.fields.file.url:h.mainImageSeoFriendly&&h.mainImageSeoFriendly;let j="";try{if((j=(null!=(g=null==(m=h.blogPost)||null==(d=m.content)||null==(c=d[0])||null==(o=c.content)||null==(a=o[0])?void 0:a.value)?g:"").replace(/,\s*$/,"")).length>200){let e=j.substring(0,200).trim().split(" ");e.pop(),j=e.join(" ")}}catch(e){j=""}let N="/blog/".concat(encodeURIComponent(f)),y=e=>{var t;null==e||null==(t=e.preventDefault)||t.call(e),r.push({pathname:"/blog/[post]",query:{postId:x.id,slug:f}},N)};return(0,l.jsx)("article",{className:"group relative flex flex-col overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm transition hover:shadow-md",children:(0,l.jsxs)("div",{className:"flex flex-1 flex-col p-5",children:[(0,l.jsx)("h3",{className:"line-clamp-2 text-lg font-semibold tracking-tight !text-gray-900",children:(0,l.jsx)("a",{href:N,onClick:y,className:"hover:underline !text-gray-900",children:p})}),(0,l.jsxs)("div",{className:"mt-1 text-sm text-gray-500",children:[b," \xb7 ",v]}),j&&(0,l.jsxs)("p",{className:"mt-3 line-clamp-3 text-sm leading-6 text-gray-700",children:[j,"â¦"]}),(0,l.jsx)("div",{className:"mt-auto flex justify-end",children:(0,l.jsx)("a",{href:N,onClick:y,className:"inline-flex items-center rounded-lg bg-indigo-600 px-3 py-2 text-sm font-semibold !text-white shadow-sm ring-1 ring-indigo-600 transition hover:bg-indigo-700",children:"Continue Reading"})})]})},"blogPost_".concat(t))}),[s,r]);return(0,l.jsx)("main",{className:"bg-white mt-8 sm:mt-0",children:(0,l.jsxs)("section",{className:"mx-auto max-w-7xl px-4 pb-10 pt-8 sm:px-6 lg:px-8",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,l.jsx)("h1",{className:"text-2xl font-bold tracking-tight text-gray-900 sm:text-3xl",children:"All posts"}),(0,l.jsx)(o(),{href:"/",className:"hidden rounded-lg px-3 py-2 text-sm font-medium text-gray-600 ring-1 ring-gray-200 hover:bg-gray-50 sm:inline-flex",children:"Home"})]}),(0,l.jsx)("div",{className:"mt-4 h-px w-full bg-gray-200"}),a.length>0?(0,l.jsx)("div",{className:"mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:a}):(0,l.jsx)("div",{className:"mt-12 rounded-2xl border border-dashed border-gray-300 bg-gray-50 p-10 text-center text-gray-600",children:"No blog posts available. Check back later!"})]})})}var g=n(7354),h=n.n(g),x=!0;function f(e){let t={metaDescText:h().WEBSITE_NAMES.tv+" Blog",titleStr:h().WEBSITE_NAMES.tv+" - Blog"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s(),{children:[(0,l.jsx)("title",{children:t.titleStr}),(0,l.jsx)("meta",{name:"description",content:t.metaDescText})]}),(0,l.jsx)(m,{posts:e.posts})]})}},1898:e=>{"use strict";e.exports={isRunningOnClientSide:function(){return"undefined"!=typeof window},isRunningOnServerSide:function(){return"undefined"==typeof window},generateMDYDate:function(e){if(e){let t=new Date(e);return t.toLocaleString("default",{month:"long"})+" "+t.getDate()+", "+t.getFullYear()}return""},calculateAnnualSavings:function(e,t){let n=12*e.month[t];return Math.round((1-e.year[t]/n)*100)},isObjEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},round2NearestHundredth:function(e){return Math.round(100*e)/100},round2NearestTenth:function(e){return Math.round(10*e)/10},capFirstLetter:function(e){return e&&null!=e||(e=""),e=e.charAt(0).toUpperCase()+e.substr(1)},randomIntFromInterval:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},replaceGooglePhotosDimension:function(e,t){let n=e;if(e){let e=n.indexOf("=");-1!==e&&(n=(n=n.substring(0,e))+"=s"+t)}return n},generateDataToServer:function(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{email:e,addOnPurchaseTier:t,app:n,preventAddingUserToDb:l}},processFeatureStrAndExtractURL:function(e){let t=/<link url="(https:\/\/[^"]+)">/,n=e.match(t);return{url:n&&n[1]?n[1]:null,modifiedString:e.replace(t,"").trim()}}}},3937:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return n(437)}])},6508:(e,t,n)=>{n(9151),e.exports=self.fetch.bind(self)}
1,9099:(e,t,n)=>{e.exports=n(8253)},9151:(e,t)=>{"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch}},e=>{e.O(0,[636,593,792],()=>e(e.s=3937)),_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.