1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9195],{7801:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return s(3931)}])},3931:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return b},default:function(){return Blog}});var n=s(5893),r=s(2962),i=s(7294),l=s(7614),o=s(967),d=s(8878),a=s(356),c=s(4710),h=s(8008),x=s(4410),m=s(1506),g=s(3078),u=s(8207),j=s(1906),p=s(4957),f=s(7198),w=s(1664),_=s.n(w);function BlogPostCard(e){let{title:t,excerpt:s,imageUrl:r,date:l,categories:m,slug:g}=e,[u,j]=i.useState("");return i.useEffect(()=>{j(new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}))},[l]),(0,n.jsx)(_(),{href:"/".concat(g),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(o.e,{style:{textDecoration:"none",color:"inherit"},children:(0,n.jsxs)(d.Z,{shadow:"sm",padding:"lg",radius:"md",withBorder:!0,style:{cursor:"pointer",height:"100%"},children:[r&&(0,n.jsx)(d.Z.Section,{children:(0,n.jsx)("img",{src:r,alt:t,style:{width:"100%",height:"200px",objectFit:"cover"}})}),(0,n.jsx)(a.Z,{mt:"md",mb:"xs",children:m.filter(e=>!e.toLowerCase().includes("english")&&!e.toLowerCase().includes("deutsch")).map(e=>(0,n.jsx)(c.C,{color:"blue",children:e},e))}),(0,n.jsx)(h.D,{order:3,size:"h4",mb:"md",children:t}),(0,n.jsx)(x.x,{size:"sm",c:"dimmed",mt:"xs",children:u||l}),(0,n.jsx)(x.x,{size:"sm",mt:"sm",component:"div",children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})})]})})})}function BlogPostSkeleton(){return(0,n.jsxs)(d.Z,{shadow:"sm",padding:"lg",radius:"md",withBorder:!0,children:[(0,n.jsx)(d.Z.Section,{children:(0,n.jsx)(m.O,{height:200})}),(0,n.jsx)(m.O,{height:20,mt:"md",width:"30%"}),(0,n.jsx)(m.O,{height:30,mt:"xs"}),(0,n.jsx)(m.O,{height:15,mt:"sm"}),(0,n.jsx)(m.O,{height:15,mt:"xs"}),(0,n.jsx)(m.O,{height:15,mt:"xs",width:"80%"})]})}var b=!0;function Blog(e){let{initialPosts:t,initialPageInfo:s}=e,[o,d]=i.useState(t),[a,c]=i.useState(!1),[m,w]=i.useState(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.PB,{title:"Blog",description:"Read the latest articles and insights from Emplibot."}),(0,n.jsx)(f.A,{children:(0,n.jsx)(g.W,{size:"lg",children:(0,n.jsxs)(u.K,{gap:"xl",mt:120,children:[(0,n.jsx)(h.D,{order:1,children:"Blog"}),(0,n.jsx)(x.x,{size:"lg",children:"Read the latest articles and insights from our team."}),(0,n.jsx)(j.r,{mt:"xl",style:{position:"relative"},children:a&&0===o.length?Array(6).fill(0).map((e,t)=>(0,n.jsx)(j.r.Col,{span:{base:12,sm:6,md:4},children:(0,n.jsx)(BlogPostSkeleton,{})},t)):m?(0,n.jsx)(j.r.Col,{span:12,children:(0,n.jsx)(x.x,{c:"red",children:"Error loading blog posts. Please try again later."})}):o.length?(0,n.jsxs)(n.Fragment,{children:[o.map(e=>{var t,s,r;return(0,n.jsx)(j.r.Col,{span:{base:12,sm:6,md:4},children:(0,n.jsx)(BlogPostCard,{title:e.title,excerpt:e.excerpt,imageUrl:null===(r=e.featuredImage)||void 0===r?void 0:null===(s=r.node)||void 0===s?void 0:null===(t=s.sourceUrl)||void 0===t?void 0:t.replace("https://emplibot.com",l.CT),date:e.date,categories:e.categories.nodes.map(e=>e.name),slug:e.slug})},e.id)}),(0,n.jsx)(j.r.Col,{span:12,mt:"xl",mb:"xl",style:{textAlign:"center"},children:(0,n.jsx)(_(),{href:"/blog-english-sitemap",passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(p.z,{component:"a",size:"md",variant:"subtle",children:"Show all"})})})]}):(0,n.jsx)(j.r.Col,{span:12,children:(0,n.jsx)(x.x,{children:"No blog posts found."})})})]})})})]})}}},function(e){e.O(0,[6342,949,6210,7198,9774,2888,179],function(){return e(e.s=7801)}),_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.