PageSourceSearch

https://constructionchampionspodcast.com/assets/BlogPost-CwzKXr0r.js

js constructionchampionspodcast.com collected 2026-10-02 15:19:10 UTC 32,147 bytes, 1 lines download raw bytes

1import{l as te,u as b,j as e,h,C as G,f as k,s as x,m as re,r as I,e as E,d as v,Q as ae,L as u,n as oe,o as ne,H as ie,N as le,B as ce,A as de,c as me,i as H,k as U,p as pe,F as xe}from"./index-Bir8wyl1.js";import{B as T}from"./badge-pWj4rKxt.js";import{C as L,c as P}from"./card-DxXvY32Y.js";import{c as he,f as ue}from"./reading-time-D3rH24xZ.js";import{L as ge}from"./list-FRnX4tKU.js";import{e as fe,a as be}from"./schema-detection-e-wfoAZh.js";import{p as je}from"./quote-utils-BlGOBgzV.js";import{M as J}from"./mic-CO4jsAvB.js";import{L as ye}from"./lightbulb-B3lc5Izr.js";import{C as Ne}from"./circle-help-vDPYjCO3.js";import{G as we}from"./GuestWebsiteButtons-gDIVs0aO.js";import{C as ve}from"./ConstructionChampionsChatCTA-BQ9WWRw1.js";import{H as _e}from"./hash-DiRuPsVG.js";import{H as Ce}from"./house-DtYcwxiH.js";import{C as O}from"./chevron-right-CwZRG0g_.js";import{U as ke}from"./user-D9C6tbWh.js";import{T as K}from"./twitter-BOVnrInB.js";import{C as Q}from"./check-BlTGLeh8.js";import{L as D}from"./link-2-bygBnYRM.js";const Le=({currentPostId:o,categoryIds:r})=>{const t=te(),c=a=>{window.scrollTo(0,0),t(`/blog/${a}`)},{data:i,isLoading:p}=b({queryKey:["related-posts",o,r],queryFn:async()=>{if(r.length===0)return[];const{data:a}=await x.from("blog_post_categories").select("post_id").in("category_id",r).neq("post_id",o);if(!a||a.length===0)return[];const d=[...new Set(a.map(f=>f.post_id))],{data:m,error:s}=await x.from("blog_posts").select("id, title, slug, excerpt, featured_image, published_at, created_at").in("id",d).eq("status","published").order("published_at",{ascending:!1}).limit(3);if(s)throw s;return m},enabled:r.length>0});return p?e.jsx("section",{className:"py-12 lg:py-16 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsx("h2",{className:"text-2xl font-display font-bold mb-8",children:"Related Posts"}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[1,2,3].map(a=>e.jsxs(L,{className:"bg-card/50 border-border",children:[e.jsx(h,{className:"h-40 w-full rounded-t-lg"}),e.jsxs(P,{className:"p-4",children:[e.jsx(h,{className:"h-5 w-full mb-2"}),e.jsx(h,{className:"h-4 w-3/4"})]})]},a))})]})})}):!i||i.length===0?null:e.jsx("section",{className:"py-12 lg:py-16 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsx("h2",{className:"text-2xl font-display font-bold mb-8",children:"Related Posts"}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:i.map(a=>e.jsx("div",{onClick:()=>c(a.slug),className:"cursor-pointer",children:e.jsxs(L,{className:"bg-card/50 border-border hover:border-primary/50 transition-colors h-full overflow-hidden group",children:[a.featured_image?e.jsx("div",{className:"h-40 overflow-hidden",children:e.jsx("img",{src:a.featured_image,alt:a.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}):e.jsx("div",{className:"h-40 bg-muted flex items-center justify-center",children:e.jsx(T,{variant:"outline",children:"Blog"})}),e.jsxs(P,{className:"p-4",children:[e.jsx("h3",{className:"font-display font-semibold text-lg mb-2 line-clamp-2 group-hover:text-primary transition-colors",children:a.title}),a.excerpt&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:a.excerpt}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(G,{className:"w-3 h-3"}),a.published_at?k(new Date(a.published_at),"MMM d, yyyy"):k(new Date(a.created_at),"MMM d, yyyy")]})]})]})},a.id))})]})})})},Pe=({authorName:o})=>{const r=o||"Ron Nussbaum",t=r.toLowerCase().includes("ron")||!o;return e.jsx("section",{className:"py-12 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"max-w-3xl mx-auto",children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 items-start",children:[e.jsx("div",{className:"shrink-0",children:e.jsx("img",{src:re,alt:r,className:"w-20 h-20 sm:w-24 sm:h-24 rounded-full object-cover ring-2 ring-primary/20"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("span",{className:"text-xs uppercase tracking-widest text-primary font-medium mb-1 block",children:"About the Author"}),e.jsx("h3",{className:"font-display text-xl font-bold mb-3",children:r}),t?e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed mb-3",children:["Ron Nussbaum is a construction industry veteran, United States Marine, and the co-founder of"," ",e.jsx("a",{href:"https://askashopowner.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Ask A Shop Owner"}),", an AI platform built for skilled trades and shop owners. He is the host of the Construction Champions Podcast, a mentor for construction founders, speaker, and a recognized voice in the construction industry."]}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-4",children:"Ron has been a guest on over 250 podcasts sharing his expertise on construction business growth, leadership, and technology. Through the Construction Champions Podcast, he brings together the brightest minds in the industry to share their stories, strategies, and secrets to success."}),e.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 mb-4",children:[e.jsx("li",{children:"United States Marine Veteran"}),e.jsx("li",{children:"Co-founder, Ask A Shop Owner"}),e.jsx("li",{children:"Host, Construction Champions Podcast"}),e.jsx("li",{children:"Featured on 250+ Podcasts"}),e.jsx("li",{children:"Mentor, Speaker, and Industry Leader"})]})]}):e.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed mb-4",children:[r," is a contributor to Construction Champions, sharing insights and expertise with our community of construction professionals."]}),e.jsx("a",{href:"https://www.linkedin.com/in/ron-nussbaum/",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:text-primary/80 font-medium transition-colors",children:"Learn more about the host →"})]})]})})})})};function qe(o){if(!o)return[];const r=[],t=/<h([2-4])[^>]*>(.*?)<\/h\1>/gi;let c;for(;(c=t.exec(o))!==null;){const i=parseInt(c[1],10),p=c[2].replace(/<[^>]*>/g,"").trim(),a=p.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");p&&a&&r.push({id:a,text:p,level:i})}return r}function $e(o){return o?o.replace(/<h([2-4])([^>]*)>(.*?)<\/h\1>/gi,(r,t,c,i)=>{const a=i.replace(/<[^>]*>/g,"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");return/id\s*=/i.test(c)?r:`<h${t}${c} id="${a}">${i}</h${t}>`}):""}function z({content:o,className:r}){const[t,c]=I.useState(""),i=qe(o);if(I.useEffect(()=>{if(i.length===0)return;const a=new IntersectionObserver(d=>{d.forEach(m=>{m.isIntersecting&&c(m.target.id)})},{rootMargin:"-80px 0px -80% 0px",threshold:0});
1return i.forEach(({id:d})=>{const m=document.getElementById(d);m&&a.observe(m)}),()=>a.disconnect()},[i]),i.length<3)return null;const p=(a,d)=>{a.preventDefault();const m=document.getElementById(d);if(m){const f=m.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:f,behavior:"smooth"}),c(d)}};return e.jsxs("nav",{className:E("rounded-lg border border-border bg-card/50 p-4",r),"aria-label":"Table of contents",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3 text-sm font-semibold text-foreground",children:[e.jsx(ge,{className:"w-4 h-4"}),e.jsx("span",{children:"Table of Contents"})]}),e.jsx("ul",{className:"space-y-1 text-sm",children:i.map(({id:a,text:d,level:m})=>e.jsx("li",{style:{paddingLeft:`${(m-2)*12}px`},children:e.jsx("a",{href:`#${a}`,onClick:s=>p(s,a),className:E("block py-1 text-muted-foreground hover:text-primary transition-colors line-clamp-2",t===a&&"text-primary font-medium"),children:d})},a))})]})}const Se=({postId:o})=>{const{data:r}=b({queryKey:["post-insights",o],queryFn:async()=>{const{data:n}=await x.from("blog_post_insights").select("id, insight_type, content, sort_order").eq("post_id",o).order("sort_order");return n||[]}}),{data:t}=b({queryKey:["post-questions",o],queryFn:async()=>{const{data:n}=await x.from("blog_post_questions").select("id, question, answer, category").eq("post_id",o).order("sort_order");return n||[]}});if((!r||r.length===0)&&(!t||t.length===0))return null;const c=r?.find(n=>n.insight_type==="tldr"),i=r?.find(n=>n.insight_type==="ai_summary"),p=r?.find(n=>n.insight_type==="who_its_for"),a=r?.find(n=>n.insight_type==="problems_discussed"),d=r?.find(n=>n.insight_type==="solutions_offered"),m=r?.filter(n=>n.insight_type==="key_takeaway")||[],s=r?.filter(n=>n.insight_type==="key_quote")||[],f=r?.filter(n=>n.insight_type==="key_lesson")||[];return e.jsx("section",{className:"py-10 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[c&&e.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-lg p-5",children:[e.jsx("h3",{className:"font-display text-sm uppercase tracking-wide text-primary mb-2",children:"TLDR"}),e.jsx("p",{className:"text-foreground",children:c.content}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2 italic",children:"Featured insight from the Construction Champions Podcast"})]}),i&&e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(J,{className:"w-4 h-4 text-primary"}),e.jsx("span",{className:"text-xs uppercase tracking-widest text-primary font-medium",children:"Expert Insight from the Construction Champions Podcast"})]}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:i.content}),e.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:"Source: Construction Champions Podcast"})]}),(p||a||d)&&e.jsxs("div",{className:"space-y-4",children:[p&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-display text-sm uppercase tracking-wide text-primary mb-2",children:"Who This Is For"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:p.content})]}),a&&e.jsxs("div",{className:"bg-card border border-border rounded-lg p-5",children:[e.jsx("h3",{className:"font-display text-sm uppercase tracking-wide text-primary mb-2",children:"Construction Industry Insight"}),e.jsxs("p",{className:"text-muted-foreground text-sm",children:["According to the Construction Champions Podcast, ",a.content.charAt(0).toLowerCase(),a.content.slice(1)]})]}),d&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-display text-sm uppercase tracking-wide text-primary mb-2",children:"Advice Shared on the Construction Champions Podcast"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:d.content})]})]}),f.length>0&&e.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[e.jsx("h3",{className:"font-display text-lg font-bold mb-4",children:"Key Lessons for Contractors"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-4 italic",children:"Lessons discu
1ssed on the Construction Champions Podcast"}),e.jsx("div",{className:"space-y-4",children:f.map((n,j)=>e.jsxs("div",{children:[e.jsxs("span",{className:"text-xs uppercase tracking-wide text-primary font-bold",children:["Lesson ",j+1]}),e.jsx("p",{className:"text-sm text-foreground mt-1",children:n.content})]},n.id))})]}),m.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"font-display text-lg font-bold mb-4 flex items-center gap-2",children:[e.jsx(ye,{className:"w-5 h-5 text-primary"})," Key Takeaways"]}),e.jsx("ul",{className:"space-y-2",children:m.map(n=>e.jsxs("li",{className:"flex gap-3 items-start text-sm",children:[e.jsx(v,{className:"w-3 h-3 text-primary mt-1 flex-shrink-0"}),e.jsx("span",{className:"text-muted-foreground",children:n.content})]},n.id))})]}),s.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"font-display text-lg font-bold mb-4 flex items-center gap-2",children:[e.jsx(ae,{className:"w-5 h-5 text-primary"})," Expert Quotes"]}),e.jsx("div",{className:"space-y-4",children:s.map(n=>{const j=je(n.content);return e.jsxs("div",{className:"border-l-2 border-primary/50 pl-4",children:[e.jsxs("p",{className:"text-sm italic text-foreground mb-1",children:['"',j.text,'"']}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[j.speaker,", Construction Champions Podcast"]})]},n.id)})})]}),t&&t.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"font-display text-lg font-bold mb-4 flex items-center gap-2",children:[e.jsx(Ne,{className:"w-5 h-5 text-primary"})," Questions Answered in This Article"]}),e.jsx("div",{className:"space-y-4",children:t.map(n=>e.jsxs("div",{className:"border border-border rounded-lg p-5",children:[e.jsx("span",{className:"text-xs uppercase tracking-wide text-primary font-bold",children:"Question"}),e.jsx("h4",{className:"font-display font-bold text-sm mt-1 mb-2",children:n.question}),e.jsx("span",{className:"text-xs uppercase tracking-wide text-primary font-bold",children:"Answer"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1 mb-2",children:n.answer}),e.jsx("span",{className:"text-xs text-muted-foreground italic",children:"Source: Construction Champions Podcast"})]},n.id))}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-4",children:[e.jsxs(u,{to:"/contractor-questions",className:"text-primary text-sm hover:underline inline-flex items-center gap-1",children:["View All Contractor Questions ",e.jsx(v,{className:"w-3 h-3"})]}),e.jsxs(u,{to:"/construction-knowledge",className:"text-primary text-sm hover:underline inline-flex items-center gap-1",children:["Browse Knowledge Library ",e.jsx(v,{className:"w-3 h-3"})]})]})]})]})})})},W=o=>b({queryKey:["blog-post-guests",o],queryFn:async()=>{const{data:r}=await x.from("episode_blog_posts").select("episode_id").eq("blog_post_id",o).limit(1);if(!r?.length)return null;const t=r[0].episode_id,{data:c}=await x.from("episode_guests").select("guest_id").eq("episode_id",t).order("guest_order");let i=[];if(c?.length)i=c.map(a=>a.guest_id);else{const{data:a}=await x.from("episodes").select("guest_id").eq("id",t).single();if(!a?.guest_id)return null;i=[a.guest_id]}const{data:p}=await x.from("guests").select("name, slug, headshot_url, short_bio, job_title, company, website").in("id",i);return p},staleTime:300*1e3}),Ie=({postId:o})=>{const{data:r}=W(o);return e.jsx(we,{guests:r,className:"mt-6"})},Te=({postId:o})=>{const{data:r}=W(o);return r?.length?e.jsx("section",{className:"py-8 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"max-w-3xl mx-auto space-y-4",children:r.map(t=>e.jsx(L,{className:"bg-card border-primary/20",children:e.jsxs(P,{className:"p-6 flex items-center gap-6",children:[t.headshot_url&&e.jsx("img",{src:t.headshot_url,alt:t.name,className:"w-20 h-20 rounded-full object-cover flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Featured Guest"}),e.jsx("h3",{className:"font-display text-xl font-semibold",children:t.name}),(t.job_title||t.company)&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-0.5",children:[t.job_title,t.job_title&&t.company?" at ":"",t.company]}),t.short_bio&&e.jsx("p",{className:"text-muted-foreground text-sm mt-1 line-clamp-2",children:t.short_bio}),e.jsxs(u,{to:`/guests/${t.slug}`,className:"text-primary hover:underline text-sm mt-2 inline-flex items-center gap-1",children:["View full profile ",e.jsx(v,{className:"w-3 h-3"})]})]})]})},t.slug))})})}):null},Ae=({postId:o})=>{const{data:r}=b({queryKey:["blog-post-topics",o],queryFn:async()=>{const{data:t}=await x.from("blog_post_topics").select("topic_slug, relevance_score").eq("post_id",o).order("relevance_score",{ascending:!1});return t||[]},enabled:!!o});return!r||r.length===0?null:e.jsx("section",{className:"py-8 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs("h3",{className:"font-display text-lg font-bold mb-4 flex items-center gap-2",children:[e.jsx(_e,{className:"w-4 h-4 text-primary"})," Related Topics"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:r.map(t=>e.jsx(u,{to:`/topics/${t.topic_slug}`,className:"px-3 py-1.5 text-xs border border-border rounded-full hover:border-primary/50 hover:text-primary transition-colors capitalize",children:t.topic_slug.replace(/-/g," ")},t.topic_slug))})]})})})},Re=({postId:o})=>{const{data:r}=b({queryKey:["appearance-for-blog",o],queryFn:async()=>{const{data:t,error:c}=await x.from("podcast_appearances").select("id, title, slug, show_name, external_link, youtube_url, audio_url").eq("blog_post_id",o).eq("status","published").maybeSingle();if(c)throw c;return t}});return r?e.jsx("section",{className:"py-8 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"max-w-3xl mx-auto",children:e.jsx(u,{to:`/appearances/${r.slug}`,className:"block group",children:e.jsx(L,{className:"bg-primary/5 border-primary/20 hover:border-primary/40 transition-colors",children:e.jsxs(P,{className:"p-5 flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:e.jsx(J,{className:"w-6 h-6 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-xs uppercase tracking-widest text-primary font-medium block mb-1",children:"Listen to this Episode"}),e.jsx("h3",{className:"font-display font-bold group-hover:text-primary transition-colors truncate",children:r.title}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:r.show_name})]}),e.jsx(v,{className:"w-5 h-5 text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0"})]})})})})})}):null},Be=o=>o&&o.replace(/<a\s+([^>]*?)href=/gi,(r,t)=>
1/rel\s*=/i.test(t)?r:`<a ${t}rel="noopener noreferrer nofollow" target="_blank" href=`),ts=()=>{const{slug:o}=oe(),r=ne(),[t,c]=I.useState(!1),i="https://constructionchampionspodcast.com",p=`${i}${r.pathname}`,d=`https://gajrixtvecdpvasztnzo.supabase.co/functions/v1/share-prerender?slug=${o}`,m=async()=>{try{await navigator.clipboard.writeText(g),c(!0),setTimeout(()=>c(!1),2e3)}catch(l){console.error("Failed to copy link:",l)}},{data:s,isLoading:f,error:n}=b({queryKey:["blog-post",o],queryFn:async()=>{const{data:l,error:N}=await x.from("blog_posts").select("id, title, slug, content, excerpt, featured_image, published_at, created_at, author_id, author_name, meta_description, meta_keywords").eq("slug",o).eq("status","published").maybeSingle();if(N)throw N;if(!l&&o&&o.length>20){const w=o.substring(0,30),{data:S}=await x.from("blog_posts").select("id, title, slug, content, excerpt, featured_image, published_at, created_at, author_id, author_name, meta_description, meta_keywords").like("slug",`${w}%`).eq("status","published").limit(1).maybeSingle();if(S)return window.history.replaceState(null,"",`/blog/${S.slug}`),{...S,profiles:null,categories:[]}}if(!l)return null;let M=null;if(l.author_id){const{data:w}=await x.from("profiles").select("full_name, avatar_url").eq("user_id",l.author_id).maybeSingle();M=w}const{data:ee}=await x.from("blog_post_categories").select("blog_categories(id, name, slug)").eq("post_id",l.id),se=ee?.map(w=>w.blog_categories).filter(Boolean)||[];return{...l,profiles:M,categories:se}}}),{data:j}=b({queryKey:["blog-post-episode-twin",s?.slug],enabled:!!s?.slug,queryFn:async()=>{const{data:l}=await x.from("episodes").select("slug").eq("slug",s.slug).maybeSingle();return l?.slug??null}}),g=s?j?`${i}/podcast/${j}`:`${i}/blog/${s.slug}`:p,V=s?`${s.title} | Construction Champions`:"Construction Champions Podcast",y=s?.meta_description||(s?.excerpt?s.excerpt.length>160?s.excerpt.substring(0,157)+"...":s.excerpt:null)||`Read ${s?.title} on the Construction Champions Podcast blog. Expert insights from construction industry leaders.`,_=s?.featured_image||`${i}/og-image.png`,q=s?.author_name||s?.profiles?.full_name||"Ron Nussbaum",Y=he(s?.content||null),X=s?{"@context":"https://schema.org","@type":"Article",headline:s.title,description:y,image:_,author:{"@type":"Person",name:q,jobTitle:"Host of the Construction Champions Podcast",description:"Construction industry veteran, United States Marine, co-founder of Ask A Shop Owner, and host of the Construction Champions Podcast. Featured on 250+ podcasts.",sameAs:["https://www.linkedin.com/in/ron-nussbaum/"],url:`${i}/ron-nussbaum`},publisher:{"@type":"Organization",name:"Construction Champions Podcast",logo:{"@type":"ImageObject",url:`${i}/favicon.png`},url:i},url:g,mainEntityOfPage:{"@type":"WebPage","@id":g},datePublished:s.published_at||s.created_at,dateModified:s.published_at||s.created_at,isPartOf:{"@type":"WebSite",name:"Construction Champions Podcast",url:i},...s.categories.length>0&&{articleSection:s.categories.map(l=>l.name).join(", "),keywords:s.meta_keywords||s.categories.map(l=>l.name).join(", ")}}:null,Z=s?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:i},{"@type":"ListItem",position:2,name:"Blog",item:`${i}/blog`},{"@type":"ListItem",position:3,name:s.title,item:g}]}:null,A=s?.content?fe(s.content):[],C=s?.published_at||s?.created_at||void 0,R={"@type":"Person",name:q,url:`${i}/about-ron-nussbaum`},B=A.length>0?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:A.map((l,N)=>({"@type":"Question",name:l.question,url:`${g}#faq-${N+1}`,author:R,...C&&{datePublished:C},acceptedAnswer:{"@type":"Answer",text:l.answer,url:`${g}#faq-${N+1}`,author:R,...C&&{datePublished:C}}}))}:null,$=s?.content?be(s.content):{steps:[],title:null},F=$.steps.length>=2?{"@context":"https://schema.org","@type":"HowTo",name:$.title||s?.title||"How-To Guide",description:y,image:_,step:$.steps.map(l=>({"@type":"HowToStep",position:l.position,name:l.name,text:l.text}))}:null;return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[s&&e.jsxs(ie,{children:[e.jsx("title",{children:V}),e.jsx("meta",{name:"description",content:y}),s.meta_keywords&&e.jsx("meta",{name:"keywords",content:s.meta_keywords}),e.jsx("link",{rel:"canonical",href:g}),e.jsx("meta",{property:"og:type",content:"article"}),e.jsx("meta",{property:"og:url",content:g}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:y}),e.jsx("meta",{property:"og:image",content:_}),e.jsx("meta",{property:"og:site_name",content:"Construction Champions Podcast"}),e.jsx("meta",{property:"article:published_time",content:s.published_at||s.created_at}),e.jsx("meta",{property:"article:author",content:q}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:url",content:g}),e.jsx("meta",{name:"twitter:title",content:s.title}),e.jsx("meta",{name:"twitter:description",content:y}),e.jsx("meta",{name:"twitter:image",content:_}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(X)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(Z)}),B&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(B)}),F&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(F)})]}),e.jsx(le,{}),e.jsx("main",{className:"flex-1 pt-16",children:f?e.jsxs("div",{className:"container mx-auto px-4 py-20",children:[e.jsx(h,{className:"h-8 w-32 mb-8"}),e.jsx(h,{className:"h-12 w-3/4 mb-4"}),e.jsx(h,{className:"h-6 w-1/4 mb-8"}),e.jsx(h,{className:"h-96 w-full mb-8"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(h,{className:"h-4 w-full"}),e.jsx(h,{className:"h-4 w-full"}),e.jsx(h,{className:"h-4 w-3/4"})]})]}):n||!s?e.jsxs("div",{className:"container mx-auto px-4 py-20 text-center",children:[e.jsx("h1",{className:"text-3xl font-display font-bold mb-4",children:"Post Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"The blog post you're looking for doesn't exist."}),e.jsx(ce,{asChild:!0,children:e.jsxs(u,{to:"/blog",children:[e.jsx(de,{className:"w-4 h-4 mr-2"})," Back to Blog"]})})]}):e.jsxs("article",{children:[e.jsx("section",{className:"relative py-16 lg:py-20 border-b border-border",children:e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("nav",{"aria-label":"Breadcrumb",className:"mb-8",children:e.jsxs("ol",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[e.jsx("li",{children:e.jsxs(u,{to:"/",className:"flex items-center gap-1 hover:text-primary transition-colors",children:[e.jsx(Ce,{className:"w-4 h-4"}),e.jsx("span",{className:"sr-only sm:not-sr-only",children:"Home"})]})}),e.jsx("li",{children:e.jsx(O,{className:"w-4 h-4"})}),e.jsx("li",{children:e.jsx(u,{to:"/blog",className:"hover:text-primary transition-colors",children:"Blog"})}),e.jsx("li",{children:e.jsx(O,{className:"w-4 h-4"})}),e.jsx("li",{className:"text-foreground font-medium truncate max-w-[200px] sm:max-w-xs",children:s.title})]})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[e.jsx(T,{variant:"outline",className:"border-primary/50 text-primary",children:"Blog"}),s.categories.map(l=>e.jsx(u,{to:"/blog",children:e.jsx(T,{variant:"secondary",className:"hover:bg-secondary/80 transition-colors",children:l.name})},l.id))]}),e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-display font-bold mb-6",children:s.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(G,{className:"w-4 h-4"}),s.published_at?k(new Date(s.published_at),"MMMM d, yyyy"):k(new Date(s.created_at),"MMMM d, yyyy")]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{className:"w-4 h-4"}),ue(Y)]}),(s.author_name||s.profiles?.full_name)&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ke,{className:"w-4 h-4"}),s.author_name||s.profiles?.full_name]})]}),e.jsx(Ie,{postId:s.id}),e.jsxs("div",{className:"flex items-center gap-3 mt-6",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Share:"}),e.jsx("a",{href:`https://twitter.com/intent/tweet?text=${encodeURIComponent(s.title)}&url=${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors","aria-label":"Share on Twitter",children:e.jsx(K,{className:"w-4 h-4"})}),e.jsx("a",{href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors","aria-label":"Share on LinkedIn",children:e.jsx(H,{className:"w-4 h-4"})}),e.jsx("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors","aria-label":"Share on Facebook",children:e.jsx(U,{className:"w-4 h-4"})}),e.jsx("button",{onClick:m,className:"p-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors","aria-label":"Copy link",children:t?e.jsx(Q,{className:"w-4 h-4 text-green-500"}):e.jsx(D,{className:"w-4 h-4"})})]})]})})}),e.jsx("section",{className:"py-12 lg:py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-4xl mx-auto lg:flex lg:gap-8",children:[e.jsx("aside",{className:"hidden lg:block lg:w-64 lg:flex-shrink-0",children:e.jsx("div",{className:"sticky top-24",children:e.jsx(z,{content:s.content})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-8",children:e.jsx(z,{content:s.content})}),e.jsx("div",{className:"prose dark:prose-invert prose-lg prose-headings:font-display prose-a:text-primary prose-headings:scroll-mt-24",children:s.content?e.jsx("div",{dangerouslySetInnerHTML:{__html:$e(Be(s.content))}}):e.jsx("p",{className:"text-muted-foreground",children:"No content available."})})]})]})})}),e.jsx(Te,{postId:s.id}),e.jsx(Re,{postId:s.id}),e.jsx(ve,{eyebrow:"Still researching?",title:"Ask Construction Champions Chat about this topic",description:"If this article sparked a question, open Construction Champions Chat for a faster answer pulled from related episodes, articles, and expert conversations across the site.",primaryLabel:"Open the Chat",secondaryLabel:"Explore More Knowledge",className:"border-t border-border"}),e.jsx("section",{className:"py-8 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsx("p",{className:"text-muted-foreground font-medium",children:"Enjoyed this article? Share it with your network"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("a",{href:`https://twitter.com/intent/tweet?text=${encodeURIComponent(s.title)}&url=${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors text-sm","aria-label":"Share on Twitter",children:[e.jsx(K,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Twitter"})]}),e.jsxs("a",{href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors text-sm","aria-label":"Share on LinkedIn",children:[e.jsx(H,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"LinkedIn"})]}),e.jsxs("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(d)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors text-sm","aria-label":"Share on Facebook",children:[e.jsx(U,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Facebook"})]}),e.jsxs("button",{onClick:m,className:"flex items-center gap-2 px-4 py-2 rounded-full bg-muted/50 hover:bg-primary hover:text-primary-foreground transition-colors text-sm","aria-label":"Copy link",children:[t?e.jsx(Q,{className:"w-4 h-4 text-green-500"}):e.jsx(D,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:t?"Copied!":"Copy"})]})]})]})})}),e.jsx(Se,{postId:s.id}),e.jsx(Ae,{postId:s.id}),e.jsx("section",{className:"py-8 border-t border-border",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("h3",{className:"font-display text-lg font-bold mb-4",children:"Explore More"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:[{label:"Construction Business Advice",url:"/construction-business-advice"},{label:"Construction Leadership",url:"/construction-leadership"},{label:"Construction Technology",url:"/construction-technology"},{label:"How to Grow a Construction Company",url:"/how-to-grow-a-construction-company"},{label:"Contractor Questions",url:"/contractor-questions"},{label:"All Guests",url:"/guests"},{label:"All Episodes",url:"/episodes"}].map(l=>e.jsx(u,{to:l.url,className:"px-3 py-1.5 text-xs border border-border rounded-full hover:border-primary/50 hover:text-primary transition-colors",children:l.label},l.url))})]})})}),e.jsx(Pe,{authorName:s.author_name||s.profiles?.full_name||void 0}),e.jsx(Le,{currentPostId:s.id,categoryIds:s.categories.map(l=>l.id)}),e.jsx(pe,{})]})}),e.jsx(xe,{})]})};export{ts 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.