1import{J as A,c as m,r as E,O as U,G as Z,P as $,g as r,l as t,o as i,v as s,k as B,F as v,C as z,j as b,A as F,Q as L,z as g,T as G,D as H,H as O,x as J,W as P}from"./CBWsEOqF.js";import Q from"./DqLmHZzg.js";import R from"./DNYUb7y-.js";import"./lNqMC8Je.js";import"./CXFhp6QP.js";import"./CKix3Zuh.js";const W={key:0,id:"blocks",class:"~pt-[5rem]/[7.5rem]"},q={class:"content resource-content"},K={id:"resource-hero",class:"resource-hero bg-[#fff] relative overflow-visible no-pd lg:pt-[84px] pt-[64px] xl:pb-[344px] pb-[4rem] xl:mb-[245px]"},X={class:"container lg:pt-[160px] pt-[110px] xl:!pl-[0px] xl:!pr-[0px] !max-w-[69rem] mx-auto relative xl:pb-[18rem]"},Y={class:"flex flex-col gap-y-[42px] xl:gap-y-[70px] justify-center lg:max-w-[1104px] items-start mx-auto"},tt={class:"flex flex-col gap-[16px]"},et={class:"h2 text-black punch-animated-generic bottom-to-top max-w-[870px]"},ot={key:0,class:"text-[18px] font-medium leading-[120%] -tracking-[0.72px] text-black font-bricolage normal-case"},at={class:"flex flex-col lg:flex-row gap-[30px] justify-start w-full items-center"},st={class:"flex flex-row gap-[16px] w-full lg:w-[380px] items-center"},nt={class:"p3 punch-animated-generic bottom-to-top text-[18px] font-bricolage text-black w-full !text-left"},lt={class:"p3 punch-animated-generic bottom-to-top text-[18px] font-barlow text-black w-full lg:w-[350px]"},ct={class:"p3 punch-animated-generic bottom-to-top text-[18px] font-barlow text-black w-full lg:w-[350px] text-left lg:text-right"},it={key:0,class:"p3 punch-animated-generic bottom-to-top text-[18px] font-barlow text-black"},rt={key:1,class:"p3 punch-animated-generic bottom-to-top text-[18px] font-barlow text-black"},dt={class:"resource-img xl:absolute mt-[70px] w-full xl:h-[475px]"},pt={class:"relative h-full"},kt={__name:"BlogBody",props:{data:Object},setup(a){const c=a,l=c.data.post,D=c.data.blocks,{$blockName:V}=A(),I=e=>V(e),N=e=>e.innerBlocks?e.innerBlocks.map(u=>u.innerBlocks||[]):[],d=c.data.settings?.ctas,f=c.data.settings?.banners,p=l.blogs,S=m(()=>!!(p?.overrideCta&&!p?.blogCta));c.data.post?.title;const j=new Date(c.data.post?.dateGmt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),T=m(()=>{const e=[];return l.blogAuthors?.nodes?.forEach(o=>{o?.authorBio?.authorBio?.photo?.node?.mediaItemUrl&&o.description?e.push(`<a target='_blank' class='text-black underline' href="${o.uri}">${o.name}</a>`):e.push(o.name)}),e.join(", ")}),y=E([]),h=m(()=>{const e=[];return l.categories?.nodes?.forEach(o=>{e.push(o.name),y.push(o.databaseId)}),e.join(", ")}),_=m(()=>{const e=l.seo?.readingTime;return e?e>1?e+" minutes":e+" minute":null}),x=m(()=>{const e=[];if(h.value)return p.blogCta&&p.overrideCta&&e.push(p.blogCta),d?.forEach((o,u)=>{o.attachTo[0]=="Categories"&&o.categoriesToAttachTo?.nodes.some(C=>y.includes(C.databaseId))&&e.push(u)}),e.length>0?e[0]:null}),k=m(()=>x.value!==null&&d&&d[x.value]?d[x.value]:null);return U({script:[{type:"application/ld+json",textContent:Z(l.seo?.schema.raw)}]}),$({title:c.data.post.seo?.title,ogTitle:c.data.post.seo?.opengraphTitle,description:c.data.post.seo?.metaDesc,ogDescription:c.data.post.seo?.metaDesc,ogImage:c.data.post.seo?.opengraphImage?.sourceUrl||"https://humanprod.wpenginepowered.com/wp-content/uploads/human-ogimage.png"}),(e,o)=>{const u=P,w=Q,C=R,M=O("sanitize-html");return t(p).template?.includes("Blocks")?(i(),r("div",W,[s("div",q,[a.data.blocks.length>0?(i(!0),r(v,{key:0},z(t(D),(mt,n)=>(i(),b(L(a.data.blocks[n].component),{key:a.data.blocks[n].id,ref_for:!0,ref:a.data.blocks[n].component,fields:a.data.blocks[n].fields,attributes:a.data.blocks[n].attributes,index:n,post:t(l),id:a.data.blocks[n].id,block:{anchor:a.data.blocks[n].anchor,id:a.data.blocks[n].id},class:F(I(a.data.blocks[n].component)),content:a.data.blocks[n].dynamicContent?a.data.blocks[n].dynamicContent:a.data.blocks[n].originalContent,inner_content:N(a.data.blocks[n])},null,8,["fields","attributes","index","post","id","block","class","content","inner_content"]))),128)):B("",!0)])])):(i(),r(v,{key:1},[s("section",K,[s("div",X,[s("div",Y,[s("div",tt,[o[0]||(o[0]=s("small",{class:"items-center flex gap-x-[1rem] eyebrow text-black punch-animated-generic fade-in"},[s("span",null,"HUMAN BLOG")],-1)),s("h1",et,g(t(l).title),1),t(_)?(i(),r("span",ot,"Read time: "+g(t(_)),1)):B("",!0)]),s("div",at,[s("div",st,[o[1]||(o[1]=G('<svg width="45" height="44" viewBox="0 0 45 44" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="22.3359" cy="22" r="22" fill="#2F0045"></circle><path d="M22.3365 38.3327C13.3296 38.3327 6.00391 31.007 6.00391 22.0001C6.00391 12.9999 13.3296 5.66748 22.3365 5.66748C31.3434 5.66748 38.6691 12.9932 38.6691 22.0001C38.6623 31.007 31.3366 38.3327 22.3365 38.3327ZM22.3365 7.99685C14.6124 7.99685 8.32652 14.2828 8.32652 22.0068C8.32652 29.7309 14.6124 36.01 22.3365 36.01C30.0605 36.01 36.3465 29.7241 36.3465 22.0068C36.3397 14.276 30.0538 7.99685 22.3365 7.99685Z" fill="white"></path><path d="M25.841 34.4031V9.60381C24.7269 9.28647 23.5521 9.11768 22.3367 9.11768C21.1079 9.11768 19.9196 9.28647 18.7988 9.61057V34.3964C19.9264 34.7137 21.1079 34.8893 22.3367 34.8893C23.5521 34.8893 24.7269 34.7205 25.841 34.4031Z" fill="white"></path><path d="M30.796 12.2843C29.7561 11.3795 28.5677 10.6368 27.2715 10.0967V33.9035C28.5677 33.3634 29.7561 32.6207 30.796 31.7159V12.2843Z" fill="white"></path><path d="M13.8691 31.7159C14.9089 32.6207 16.0972 33.3634 17.3936 33.9035V10.0967C16.0972 10.6368 14.9089 11.3795 13.8691 12.2843V31.7159Z" fill="white"></path></svg>',1)),H(s("p",nt,null,512),[[M,t(T),"wpEmbed"]])]),s("p",lt,g(t(j)),1),s("div",ct,[t(h)?(i(),r("p",it,g(t(h)),1)):(i(),r("p",rt," No categories found. "))])])]),s("div",dt,[s("div",pt,[J(u,{image:{url:t(l).featuredImage?.node.sourceUrl},alt:t(l).title,imgClass:"object-cover w-full h-full"},null,8,["image","alt"]),o[2]||(o[2]=s("div",{class:"absolute inset-0 mix-blend-soft-light opacity-80"},null,-1))])])])]),t(S)?(i(),b(w,{key:0,blocks:a.data.blocks,cta:null,post:t(l),ctas:null,banners:t(f)},null,8,["blocks","post","banners"])):(i(),r(v,{key:1},[t(k)?.position[0]=="Side"?(i(),b(C,{key:0,blocks:a.data.blocks,cta:t(k),post:t(l),ctas:t(d),banners:t(f)},null,8,["blocks","cta","post","ctas","banners"])):(i(),b(w,{key:1,blocks:a.data.blocks,cta:t(k),post:t(l),ctas:t(d),banners:t(f)},null,8,["blocks","cta","post","ctas","banners"]))],64))],64))}}};export{kt as default};
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.