1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8196],{37507:function(e,t,r){var n={"./asset-hyperlink.json":25994,"./blockquote.json":62559,"./document.json":51734,"./embedded-asset-block.json":1220,"./embedded-entry-block.json":72258,"./embedded-entry-inline.json":92204,"./embedded-resource-block.json":20546,"./embedded-resource-inline.json":8242,"./entry-hyperlink.json":6502,"./heading-1.json":92813,"./heading-2.json":45080,"./heading-3.json":86423,"./heading-4.json":34942,"./heading-5.json":95579,"./heading-6.json":50705,"./hr.json":37121,"./hyperlink.json":13165,"./list-item.json":38094,"./ordered-list.json":28122,"./paragraph.json":38986,"./resource-hyperlink.json":3105,"./table-cell.json":79924,"./table-header-cell.json":91787,"./table-row.json":75531,"./table.json":39269,"./text.json":63022,"./unordered-list.json":58500};function i(e){return r(l(e))}function l(e){if(!r.o(n,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=l,e.exports=i,i.id=37507},37245:function(e,t,r){"use strict";r.d(t,{$:function(){return o}});var n=r(47710),i=r(8371),l=r(35944);function o(e){var t=e.categories;return t&&0!==t.length?(0,l.tZ)(n.E,{spacing:2,children:t.map(function(e){return(0,l.tZ)(n.U,{children:(0,l.BX)(i.Vp,{size:"sm",colorScheme:"blue",borderRadius:"full",children:["#",e.fields.name]})},e.sys.id)})}):null}},89757:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return z}});var n=r(59499),i=r(11163),l=r(67294),o=r(25675),s=r.n(o),c=r(41664),a=r.n(c),d=r(3443),u=r(74129),h=r(86437),f=r(45161),g=r(57747),p=r(71293),b=r(22757),m=r(22338),Z=r(14225),x=r(48783),y=r(93717),v=r(34292),O=r(87874),j=r(49289),B=r(72177),X=r(46941),w=r(18948),k=r(5907),C=r(14468),S=r(96854),E=r(43214),_=r(35944);function L(){var e=(0,f.ff)("gray.900","gray.900"),t=(0,f.ff)("gray.700","gray.700"),r=(0,f.ff)("gray.800","gray.800");return(0,_.tZ)(g.xu,{bg:e,minHeight:"100vh",py:8,children:(0,_.tZ)(m.W,{maxW:"4xl",children:(0,_.BX)(x.g,{spacing:8,align:"stretch",children:[(0,_.tZ)(S.O,{height:"40px",width:"150px",startColor:t,endColor:r}),(0,_.tZ)(S.O,{height:"400px",startColor:t,endColor:r}),(0,_.BX)(x.g,{spacing:4,align:"stretch",children:[(0,_.BX)(v.U,{children:[(0,_.tZ)(S.O,{height:"24px",width:"80px",startColor:t,endColor:r}),(0,_.tZ)(S.O,{height:"24px",width:"80px",startColor:t,endColor:r})]}),(0,_.tZ)(S.O,{height:"40px",startColor:t,endColor:r}),(0,_.BX)(v.U,{children:[(0,_.tZ)(S.O,{height:"20px",width:"150px",startColor:t,endColor:r}),(0,_.tZ)(S.O,{height:"20px",width:"100px",startColor:t,endColor:r})]})]}),(0,_.tZ)(E.N,{noOfLines:10,spacing:"4",skeletonHeight:"4",startColor:t,endColor:r})]})})})}var N=r(36948);function M(){var e=(0,f.ff)("gray.900","gray.900"),t=(0,f.ff)("gray.100","gray.100");return(0,_.tZ)(g.xu,{bg:e,color:t,minHeight:"100vh",display:"flex",alignItems:"center",children:(0,_.tZ)(m.W,{maxW:"4xl",children:(0,_.BX)(x.g,{spacing:8,align:"center",textAlign:"center",children:[(0,_.tZ)(b.X,{as:"h1",size:"4xl",color:"blue.400",children:"404"}),(0,_.tZ)(b.X,{as:"h2",size:"2xl",children:"Blog Post Not Found"}),(0,_.tZ)(p.x,{fontSize:"xl",children:"Oops! The blog post you're looking for doesn't exist or has been moved."}),(0,_.tZ)(a(),{href:"/blogs",passHref:!0,children:(0,_.tZ)(Z.z,{leftIcon:(0,_.tZ)(N.J,{as:X.w}),colorScheme:"blue",size:"lg",children:"Back to All Blogs"})})]})})})}var D=r(37245);function z(){var e,t,r,o,c,S=(0,i.useRouter)(),E=S.query.slug,N=(0,l.useMemo)(function(){return E?{"fields.slug":E,limit:1,include:10}:null},[E]),z=(0,C.G)("pageBlogPost",N),A=z.data,I=z.loading,P=z.error,R=(0,f.ff)("gray.900","gray.900"),K=(0,f.ff)("gray.100","gray.100"),T=(0,f.ff)("gray.400","gray.400"),H=(0,l.useMemo)(function(){if(!(null!=A&&null!==(e=A.fields)&&void 0!==e&&e.content))return"5 min";var e,t,r=(null===(t=A.fields.content.content)||void 0===t?void 0:t.length)||0;return"".concat(Math.max(1,Math.ceil(.5*r))," min")},[A]),U={renderNode:(e={},(0,n.Z)(e,h.BLOCKS.EMBEDDED_ENTRY,function(e){console.log(e);var t,r=e.data.target.fields.image;return r&&null!==(t=r.fields)&&void 0!==t&&t.file?(0,_.tZ)(g.xu,{my:8,children:(0,_.tZ)(s(),{src:"https:".concat(r.fields.file.url),alt:r.caption,width:800,height:600,layout:"responsive",className:"rounded-lg"})}):null}),(0,n.Z)(e,h.BLOCKS.PARAGRAPH,function(e,t){return(0,_.tZ)(p.x,{mb:4,children:t})}),(0,n.Z)(e,h.BLOCKS.HEADING_1,function(e,t){return(0,_.tZ)(b.X,{as:"h1",size:"2xl",mb:4,mt:8,children:t})}),(0,n.Z)(e,h.BLOCKS.HEADING_2,function(e,t){return(0,_.tZ)(b.X,{as:"h2",size:"xl",mb:3,mt:6,children:t})}),(0,n.Z)(e,h.BLOCKS.HEADING_3,function(e,t){return(0,_.tZ)(b.X,{as:"h3",size:"lg",mb:2,mt:4,children:t})}),(0,n.Z)(e,h.BLOCKS.UL_LIST,function(e,t){return(0,_.tZ)(g.xu,{as:"ul",styleType:"disc",pl:6,mb:4,children:t})}),(0,n.Z)(e,h.BLOCKS.OL_LIST,function(e,t){return(0,_.tZ)(g.xu,{as:"ol",styleType:"decimal",pl:6,mb:4,children:t})}),(0,n.Z)(e,h.BLOCKS.LIST_ITEM,function(e,t){return(0,_.tZ)(g.xu,{as:"li",mb:1,children:t})}),(0,n.Z)(e,h.INLINES.HYPERLINK,function(e,t){return(0,_.tZ)(a(),{href:e.data.uri,color:"blue.400",_hover:{textDecoration:"underline"},children:t})}),e),renderMark:(t={},(0,n.Z)(t,h.MARKS.BOLD,function(e){return(0,_.tZ)(p.x,{as:"strong",children:e})}),(0,n.Z)(t,h.MARKS.ITALIC,function(e){return(0,_.tZ)(p.x,{as:"em",children:e})}),(0,n.Z)(t,h.MARKS.UNDERLINE,function(e){return(0,_.tZ)(p.x,{as:"u",children:e})}),(0,n.Z)(t,h.MARKS.CODE,function(e){return(0,_.tZ)(p.x,{as:"code",bg:"gray.700",px:1,borderRadius:"sm",children:e})}),t)};if(!S.isReady||I)return(0,_.tZ)(L,{});if(P)return(0,_.BX)(p.x,{color:"red.500",children:["Error loading blog post: ",P.message]});if(!A)return(0,_.tZ)(M,{});var W=new Date(A.fields.publishedDate?A.fields.publishedDate:A.sys.createdAt),G=A.fields.author;return(0,_.tZ)(g.xu,{bg:R,color:K,height:"100vh",overflowY:"scroll",children:(0,_.BX)(m.W,{maxW:"4xl",py:8,children:[(0,_.tZ)(a(),{href:"/blogs",passHref:!0,children:(0,_.tZ)(Z.z,{leftIcon:(0,_.tZ)(X.w,{}),variant:"ghost",color:"blue.400",mb:6,_hover:{color:"blue.300"},children:"Back to all posts"})}),(0,_.BX)(x.g,{as:"article",spacing:8,align:"stretch",children:[(0,_.tZ)(g.xu,{position:"relative",height:"400px",borderRadius:"lg",overflow:"hidden",boxShadow:"xl",children:(0,_.tZ)(s(),{src:"https:".concat(null===(r=A.fields.featuredImage.fields.file)||void 0===r?void 0:r.url),alt:A.fields.title,layout:"fill",objectFit:"cover"})}),(0,_.BX)(x.g,{spacing:4,align:"stretch",children:[(0,_.tZ)(D.$,{categories:A.fields.categories}),(0,_.tZ)(b.X,{as:"h1",size:"2xl",color:"blue.400",children:A.fields.title}),(0,_.BX)(y.k,{direction:{base:"column",md:"row"}
1,justify:"space-between",align:"flex-start",gap:4,children:[G&&(0,_.BX)(v.U,{spacing:3,children:[(0,_.tZ)(O.q,{size:"md",name:G.fields.name,src:G.fields.avatar?"https:".concat(null===(o=G.fields.avatar.fields.file)||void 0===o?void 0:o.url):void 0}),(0,_.BX)(g.xu,{children:[(0,_.tZ)(p.x,{fontWeight:"medium",children:G.fields.name}),G.fields.bio&&(0,_.tZ)(p.x,{fontSize:"sm",color:T,noOfLines:1,children:G.fields.bio})]})]}),(0,_.BX)(v.U,{spacing:6,color:T,children:[(0,_.BX)(y.k,{align:"center",children:[(0,_.tZ)(w.Q,{mr:2}),(0,_.tZ)(p.x,{children:(0,d.WU)(W,"MMMM d, yyyy")})]}),(0,_.BX)(y.k,{align:"center",children:[(0,_.tZ)(k.w,{mr:2}),(0,_.BX)(p.x,{children:[H," read"]})]})]})]})]}),(0,_.tZ)(j.i,{my:6,borderColor:"gray.600"}),(0,_.tZ)(g.xu,{className:"blog-content",children:(0,u.h)(A.fields.content,U)}),G&&G.fields.bio&&(0,_.tZ)(g.xu,{mt:12,p:6,bg:"gray.800",borderRadius:"lg",children:(0,_.BX)(y.k,{align:"start",gap:4,children:[(0,_.tZ)(O.q,{size:"xl",name:G.fields.name,src:G.fields.avatar?"https:".concat(null===(c=G.fields.avatar.fields.file)||void 0===c?void 0:c.url):void 0}),(0,_.BX)(g.xu,{children:[(0,_.BX)(b.X,{as:"h3",size:"lg",mb:2,children:["About ",G.fields.name]}),(0,_.tZ)(p.x,{children:G.fields.bio})]})]})}),A.fields.relatedBlogPosts&&A.fields.relatedBlogPosts.length>0&&(0,_.BX)(g.xu,{mt:12,children:[(0,_.tZ)(b.X,{as:"h2",size:"xl",mb:6,children:"Related Articles"}),(0,_.tZ)(B.M,{columns:{base:1,md:2},spacing:6,children:A.fields.relatedBlogPosts.map(function(e){var t;return(0,_.tZ)(a(),{href:"/blogs/".concat(e.fields.slug),passHref:!0,children:(0,_.BX)(y.k,{gap:4,align:"start",_hover:{bg:"gray.800"},p:2,borderRadius:"md",children:[(0,_.tZ)(g.xu,{position:"relative",w:"100px",h:"100px",flexShrink:0,children:(0,_.tZ)(s(),{src:"https:".concat(null===(t=e.fields.featuredImage.fields.file)||void 0===t?void 0:t.url),alt:e.fields.title,layout:"fill",objectFit:"cover",className:"rounded-md"})}),(0,_.BX)(g.xu,{children:[(0,_.tZ)(p.x,{fontWeight:"medium",color:"blue.400",noOfLines:2,children:e.fields.title}),(0,_.tZ)(p.x,{fontSize:"sm",color:T,mt:1,noOfLines:2,children:e.fields.shortDescription})]})]})},e.sys.id)})})]}),(0,_.tZ)(y.k,{justify:"center",mt:12,children:(0,_.tZ)(a(),{href:"/blogs",passHref:!0,children:(0,_.tZ)(Z.z,{colorScheme:"blue",size:"lg",children:"Read More Articles"})})})]})]})})}},14468:function(e,t,r){"use strict";r.d(t,{G:function(){return h}});var n=r(59499),i=r(50029),l=r(64687),o=r.n(l),s=r(67294),c=r(80954),a=r.n(c);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var u=r(55248).e({space:"qepoqtrvg764",accessToken:"ASxAsGEXBW4j22hMOQM4i9CUc94sFJb_jnXhkEiZe1c"}),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,s.useState)([]),l=r[0],c=r[1],h=(0,s.useState)(!0),f=h[0],g=h[1],p=(0,s.useState)(null),b=p[0],m=p[1],Z=(0,s.useState)(0),x=Z[0],y=Z[1],v=(0,s.useMemo)(function(){var e;return a()((e=(0,i.Z)(o().mark(function e(t,r){var i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),m(null),e.prev=2,e.next=5,u.getEntries(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({content_type:t},r));case 5:c((i=e.sent).items),y(i.total),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),m(e.t0);case 13:return e.prev=13,g(!1),e.finish(13);case 16:case"end":return e.stop()}},e,null,[[2,10,13,16]])})),function(t,r){return e.apply(this,arguments)}),500)},[]);return((0,s.useEffect)(function(){return v(e,t),function(){v.cancel()}},[e,t,v]),(null==t?void 0:t.limit)===1)?{data:l[0],loading:f,error:b}:{data:l,loading:f,error:b,total:x}}},46438:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogs/[slug]",function(){return r(89757)}])},24654:function(){}},function(e){e.O(0,[3443,397,3183,2888,9774,179],function(){return e(e.s=46438)}),_N_E=e.O()}]); 2//# sourceMappingURL=[slug]-a9e1d088b173c673.js.map
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.