1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NativeCrossword-L6BwbfjS.js","assets/index-CYVbSHRc.js","assets/index-DsHMAJ3K.css","assets/tabs-CrLgMZZM.js","assets/index-jSQOaJBL.js","assets/index-CYqnq9aL.js","assets/dropdown-menu-CJ1vu2Z7.js","assets/chevron-right-Dgn5S-NW.js","assets/circle-D75Epj-W.js","assets/sheet-Cefehpu-.js","assets/circle-help-DfFYnsE2.js","assets/trash-2-CV5RSz8a.js","assets/rotate-ccw-Bj00zTp4.js","assets/printer-DtSlwJhz.js","assets/chevron-up-DM6VXonN.js"])))=>i.map(i=>d[i]); 2import{j as e,r as g,D as O,n as R,o as H,p as G,q as M,v as Y,e as U,h as D,w as B,_ as F,x as V,f as q,y as Z,k as J,l as W,L,b as C,B as S,z as X,E as K,m as Q,d as ee}from"./index-CYVbSHRc.js";import{C as se,a as te,b as re}from"./collapsible-DNJ5oHRa.js";import{A as ae}from"./AuthorBox-SdNqYevf.js";import{C as oe}from"./circle-alert-UNyttM6s.js";import{G as le}from"./globe-BHwBAw16.js";import{L as ne}from"./linkedin-rYqbnoXo.js";import{T as ie,C as ce}from"./twitter-BU2wylyL.js";import{A as de}from"./arrow-left-DoXa4rR6.js";import{H as me}from"./headphones-BksMC7-6.js";import{u as ue}from"./useCrosswords-B9Yvptc4.js";import{P as $}from"./puzzle-CXyUnWLJ.js";import{u as pe}from"./useGuests-DMXxamGL.js";import{s as E}from"./sanitizeHtml-D1goPPDs.js";import"./index-vkQRbDzZ.js";import"./about-cooking-CkakIyb6.js";import"./youtube-G2i5KqX6.js";const A=({embedType:t,embedUrl:s,audioUrl:i,youtubeUrl:a,title:r})=>{let n=t,d=s;if(!n&&a&&(n="youtube",d=a),!n||!d)return i?e.jsx("div",{className:"w-full p-4 bg-muted/50 rounded-xl",children:e.jsx("audio",{controls:!0,className:"w-full",preload:"metadata",src:i,children:"Your browser does not support the audio element."})}):null;if(d.trim().startsWith("<iframe"))return e.jsx(xe,{html:d,title:r});const f=l=>{const c=[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\?\/]+)/,/youtube\.com\/v\/([^&\?\/]+)/];for(const m of c){const v=l.match(m);if(v)return v[1]}return null},h=l=>{if(l.includes("embed.podcasts.apple.com"))return l;const c=l.match(/podcasts\.apple\.com\/(\w+)\/podcast\/[^\/]+\/id(\d+)\?i=(\d+)/);return c?`https://embed.podcasts.apple.com/${c[1]}/podcast/id${c[2]}?i=${c[3]}&theme=auto`:null},u=l=>l.includes("open.spotify.com/embed")?l:l.replace("open.spotify.com/","open.spotify.com/embed/");if(n==="youtube"){const l=f(d);return l?e.jsx("div",{className:"w-full aspect-video rounded-xl overflow-hidden bg-black",children:e.jsx("iframe",{src:`https://www.youtube.com/embed/${l}`,title:r,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})}):e.jsx(N,{message:"Invalid YouTube URL. Please check the embed URL."})}if(n==="apple"){const l=h(d);return l?e.jsx("div",{className:"w-full rounded-xl overflow-hidden bg-muted/30",children:e.jsx("iframe",{src:l,title:r,className:"w-full",style:{height:"175px"},allow:"autoplay *; encrypted-media *; fullscreen *",sandbox:"allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"})}):e.jsx(N,{message:"Apple Podcasts requires an embed URL or iframe code. Standard Apple Podcast links cannot be embedded directly.",hint:"Paste the embed iframe code from Apple Podcasts, or use a URL from embed.podcasts.apple.com"})}if(n==="spotify"){const l=u(d);return e.jsx("div",{className:"w-full rounded-xl overflow-hidden",children:e.jsx("iframe",{src:l,title:r,className:"w-full",style:{height:"352px"},allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy"})})}return null},xe=({html:t,title:s})=>{const i=t.match(/src=["']([^"']+)["']/),a=i==null?void 0:i[1];if(!a)return e.jsx(N,{message:"Invalid iframe code. Could not find src attribute."});const r=t.match(/height=["']?(\d+)["']?/),n=r?parseInt(r[1]):175,d=["embed.podcasts.apple.com","youtube.com","www.youtube.com","youtube-nocookie.com","www.youtube-nocookie.com","open.spotify.com","player.simplecast.com","anchor.fm","podbean.com","buzzsprout.com","transistor.fm"];try{const u=new URL(a);if(!d.some(c=>u.hostname.includes(c)))return e.jsx(N,{message:`Embed domain not supported: ${u.hostname}`})}catch{return e.jsx(N,{message:"Invalid embed URL in iframe code."})}const x=a.includes("podcasts.apple.com"),f=a.includes("spotify.com");return a.includes("youtube")?e.jsx("div",{className:"w-full aspect-video rounded-xl overflow-hidden bg-black",children:e.jsx("iframe",{src:a,title:s,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})}):e.jsx("div",{className:"w-full rounded-xl overflow-hidden bg-muted/30",children:e.jsx("iframe",{src:a,title:s,className:"w-full",style:{height:f?352:x?175:n},allow:"autoplay *; encrypted-media *; fullscreen *",sandbox:"allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"})})},N=({message:t,hint:s})=>e.jsx("div",{className:"w-full p-6 bg-muted/50 rounded-xl border border-border",children:e.jsxs("div",{className:"flex items-start gap-3 text-muted-foreground",children:[e.jsx(oe,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:t}),s&&e.jsx("p",{className:"text-xs opacity-80",children:s})]})]})}),he=({guest:t})=>{const[s,i]=g.useState(!1),a=t.website_url||t.linkedin_url||t.x_url;return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>i(!0),className:"group flex flex-col items-center p-6 bg-card rounded-2xl border border-border hover:border-primary/30 hover:shadow-lg transition-all duration-300 text-center focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",children:[e.jsx("div",{className:"relative mb-4",children:t.headshot_url?e.jsx("img",{src:t.headshot_url,alt:t.name,className:"w-24 h-24 md:w-28 md:h-28 rounded-full object-cover ring-4 ring-background shadow-md group-hover:ring-primary/20 transition-all duration-300",loading:"lazy"}):e.jsx("div",{className:"w-24 h-24 md:w-28 md:h-28 rounded-full bg-gradient-to-br from-primary/20 to-secondary/20 flex items-center justify-center text-3xl font-bold text-primary ring-4 ring-background shadow-md",children:t.name.charAt(0)})}),e.jsx("h3",{className:"font-semibold text-foreground group-hover:text-primary transition-colors text-lg mb-1",children:t.name}),t.title&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.title})]}),e.jsx(O,{open:s,onOpenChange:i,children:e.jsxs(R,{className:"sm:max-w-lg",children:[e.jsx(H,{className:"sr-only",children:e.jsx(G,{children:t.name})}),e.jsxs("div",{className:"flex flex-col items-center text-center pt-4",children:[t.headshot_url?e.jsx("img",{loading:"lazy",decoding:"async",src:t.headshot_url,alt:t.name,className:"w-32 h-32 md:w-40 md:h-40 rounded-full object-cover ring-4 ring-primary/20 shadow-xl mb-6"}):e.jsx("div",{className:"w-32 h-32 md:w-40 md:h-40 rounded-full bg-gradient-to-br from-primary/20 to-secondary/20 flex items-center justify-center text-5xl font-bold text-primary ring-4 ring-primary/20 shadow-xl mb-6",children:t.name.charAt(0)}),e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-1",children:t.name}),(t.title||t.company_or_affiliation)&&e.jsxs("p",{className:"text-muted-foreground mb-4",children:[t.title,t.title&&t.company_or_affiliation&&", ",t.company_or_affiliation]}),a&&e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.website_url&&e.jsx("a",{href:t.website_url,target:"_blank",rel:"noopener noreferrer",className:"p-2.5 rounded-full bg-muted hover:bg-primary/10 hover:text-primary transition-colors","aria-label":"Website",children:e.jsx(le,{className:"w-5 h-5"})}),t.linkedin_url&&e.jsx("a",{href:t.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"p-2.5 rounded-full bg-muted hover:bg-primary/10 hover:text-primary transition-colors","aria-label":"LinkedIn",children:e.jsx(ne,{className:"w-5 h-5"})}),t.x_url&&e.jsx("a",{href:t.x_url,target:"_blank",rel:"noopener noreferrer",className:"p-2.5 rounded-full bg-muted hover:bg-primary/10 hover:text-primary transition-colors","aria-label":"X (Twitter)",children:e.jsx(ie,{className:"w-5 h-5"})})]}),t.short_bio&&e.jsx("div",{className:"prose prose-sm max-w-none text-left w-full",children:e.jsx("p",{className:"text-foreground
2/80 leading-relaxed",children:t.short_bio})})]})]})})]})},fe=({guests:t,className:s=""})=>{if(!t||t.length===0)return null;const i=()=>t.length===1?"grid-cols-1 max-w-xs mx-auto":t.length===2?"grid-cols-2 max-w-lg mx-auto":"grid-cols-2 lg:grid-cols-3";return e.jsxs("div",{className:`${s}`,children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-6 text-center",children:"Featured Guests"}),e.jsx("div",{className:`grid ${i()} gap-4 md:gap-6`,children:t.slice(0,5).map(a=>e.jsx(he,{guest:a},a.id))})]})},be="data:image/svg+xml,%3csvg%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_402_95)'%3e%3cpath%20d='M12.4994%200.0412292C5.61712%200.0412292%200.0376587%205.62054%200.0376587%2012.5028C0.0376587%2019.3854%205.61712%2024.9643%2012.4994%2024.9643C19.3825%2024.9643%2024.9613%2019.3854%2024.9613%2012.5028C24.9613%205.62099%2019.3825%200.0418245%2012.4993%200.0418245L12.4994%200.0412292V0.0412292ZM18.2143%2018.0144C17.9911%2018.3805%2017.5119%2018.4966%2017.1458%2018.2719C14.22%2016.4847%2010.5366%2016.0799%206.19882%2017.071C5.78081%2017.1662%205.36415%2016.9043%205.26891%2016.4862C5.17322%2016.068%205.43409%2015.6513%205.85314%2015.5561C10.6002%2014.4711%2014.672%2014.9385%2017.9569%2016.946C18.3229%2017.1707%2018.439%2017.6484%2018.2143%2018.0144V18.0144ZM19.7396%2014.6208C19.4583%2015.0784%2018.8601%2015.2228%2018.4033%2014.9415C15.0536%2012.8821%209.94748%2012.2859%205.98543%2013.4885C5.47159%2013.6438%204.92888%2013.3542%204.77293%2012.8412C4.61816%2012.3274%204.9079%2011.7857%205.42084%2011.6295C9.94659%2010.2563%2015.5729%2010.9214%2019.4197%2013.2853C19.8765%2013.5665%2020.0208%2014.1647%2019.7396%2014.621V14.6208ZM19.8705%2011.0875C15.8542%208.70194%209.22769%208.4826%205.39302%209.64644C4.77724%209.83319%204.12605%209.48557%203.93944%208.8698C3.75284%208.25373%204.10016%207.60298%204.71638%207.41578C9.11831%206.07947%2016.436%206.33766%2021.0601%209.08275C21.6152%209.41147%2021.7967%2010.1268%2021.4679%2010.6799C21.1405%2011.2338%2020.4232%2011.4164%2019.8711%2011.0875H19.8705Z'%20fill='%231ED760'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_402_95'%3e%3crect%20width='25'%20height='25'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ge=({title:t,coverImage:s,publishDate:i,durationSeconds:a,seasonNumber:r,episodeNumber:n,applePodcastsUrl:d,spotifyUrl:x,youtubeUrl:f})=>{const h=new Date(i).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),u=M(a),l=r&&n?`S${r}, E${n}`:null,c=[{name:"Apple Podcasts",url:d,icon:e.jsx("img",{src:Y,alt:"",className:"w-7 h-7",style:{filter:"brightness(0) invert(1)"}})},{name:"Spotify",url:x,icon:e.jsx("img",{src:be,alt:"",className:"w-7 h-7"})}].filter(m=>m.url);return e.jsxs("div",{className:"podcast-hero-wrapper relative w-full overflow-hidden flex items-end",style:{minHeight:"clamp(300px, 45vh, 520px)",height:"45vh",maxHeight:"520px"},children:[e.jsx("style",{children:` 3 @media (min-width: 768px) { 4 .podcast-hero-wrapper { 5 min-height: 360px !important; 6 height: 50vh !important; 7 max-height: 640px !important; 8 } 9 } 10 `}),e.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:s?`url(${s})`:void 0},children:!s&&e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/20 via-muted to-muted"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-black/10"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/40 to-transparent"}),e.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse at center bottom, transparent 0%, rgba(0,0,0,0.2) 100%)"}}),e.jsxs("div",{className:"relative z-10 container-narrow w-full pb-10 md:pb-14",children:[e.jsxs(U,{to:"/your-brain-on",className:"inline-flex items-center gap-2 text-white/80 hover:text-white transition-colors mb-4 text-sm font-medium w-fit",children:[e.jsx(de,{className:"w-4 h-4"}),"Back to Podcasts"]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[e.jsxs(D,{className:"bg-white/20 text-white border-0 backdrop-blur-sm",children:[e.jsx(me,{className:"w-3 h-3 mr-1"}),"Podcast"]}),l&&e.jsx(D,{variant:"outline",className:"text-white border-white/30 bg-white/10 backdrop-blur-sm",children:l})]}),e.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-4 leading-tight max-w-4xl",children:t}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-white/80 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(ce,{className:"w-4 h-4"}),e.jsx("span",{children:h})]}),u&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(B,{className:"w-4 h-4"}),e.jsx("span",{children:u})]})]}),c.length>0&&e.jsx("div",{className:"flex items-center gap-3",children:c.map(m=>e.jsx("a",{href:m.url,target:"_blank",rel:"noopener noreferrer","aria-label":`Listen on ${m.name}`,className:"flex items-center justify-center transition-all duration-200 hover:scale-110 hover:opacity-80",children:m.icon},m.name))})]})]})]})},je=g.lazy(()=>F(()=>import("./NativeCrossword-L6BwbfjS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),we=({episodeId:t,episodeTitle:s})=>{const i=V(),a=g.useRef(null),{data:r,isLoading:n}=ue(t);return g.useEffect(()=>{if(i.hash==="#crossword"&&a.current){const x=setTimeout(()=>{var l,c;const u=(((l=a.current)==null?void 0:l.getBoundingClientRect().top)||0)+window.pageYOffset-100;window.scrollTo({top:u,behavior:"smooth"}),(c=a.current)==null||c.classList.add("ring-2","ring-primary","ring-offset-4"),setTimeout(()=>{var m;(m=a.current)==null||m.classList.remove("ring-2","ring-primary","ring-offset-4")},2e3)},500);return()=>clearTimeout(x)}},[i.hash,r]),!r&&!n?null:n?e.jsx("section",{id:"crossword",ref:a,className:"py-12 scroll-mt-24",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 bg-muted rounded w-1/3 mb-4"}),e.jsx("div",{className:"aspect-video bg-muted rounded-xl"})]})}):!(r!=null&&r.crossword_json)?e.jsxs("section",{id:"crossword",ref:a,className:"py-12 transition-all duration-500 rounded-xl scroll-mt-24",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:e.jsx($,{className:"w-6 h-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"This podcast's crossword puzzle"}),e.jsx("p",{className:"text-muted-foreground",children:"Coming soon!"})]})]}),e.jsxs("div",{className:"bg-muted/30 rounded-xl p-8 text-center",children:[e.jsx(B,{className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),e.jsx("p",{className:"text-lg font-medium text-foreground mb-2",children:"Crossword Coming Soon"}),e.jsx("p",{className:"text-muted-foreground",children:"A puzzle for this episode is being prepared. Check back later!"})]})]}):e.jsxs("section",{id:"crossword",ref:a,className:"py-12 transition-all duration-500 rounded-xl scroll-mt-24",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:e.jsx($,{className:"w-6 h-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"This podcast's crossword puzzle"}),(r==null?void 0:r.title)&&e.jsx("p",{className:"text-muted-foreground",children:r.title})]})]}),e.jsx(g.Suspense,{fallback:e.jsx("div",{className:"animate-pulse aspect-square max-w-2xl bg-muted rounded-xl"}),children:e.jsx(je,{crosswordId:r.id,data:r.crossword_json,title:r.title_override||r.title})})]})},$e=()=>{var c,m,v;const{slug:t}=q(),{data:s,isLoading:i,error:a}=Z(t||""),{data:r}=J({limit:4}),{data:n}=W(),{data:d}=pe((s==null?void 0:s.id)||""),[x,f]=g.useState(!1);g.useEffect(()=>{if(!s)return;const o=s.excerpt||s.summary_text||"",j=`https://brain-docs-preview.lovable.app/podcasts/${t}`,w=`${s.title}
10 | Your Brain On Podcast`,k=s.cover_image?new URL(s.cover_image,window.location.origin).href:null;document.title=w;const P=[],p=(_,T)=>{let b=document.querySelector(_);b?T.content&&(b.content=T.content):(b=document.createElement("meta"),Object.entries(T).forEach(([z,I])=>{z==="content"?b.content=I:b.setAttribute(z,I)}),document.head.appendChild(b),P.push(b))};let y=document.querySelector('link[rel="canonical"]');return y||(y=document.createElement("link"),y.rel="canonical",document.head.appendChild(y),P.push(y)),y.href=j,p('meta[name="description"]',{name:"description",content:o}),p('meta[property="og:title"]',{property:"og:title",content:w}),p('meta[property="og:description"]',{property:"og:description",content:o}),p('meta[property="og:url"]',{property:"og:url",content:j}),k&&(p('meta[property="og:image"]',{property:"og:image",content:k}),p('meta[name="twitter:image"]',{name:"twitter:image",content:k})),p('meta[property="og:type"]',{property:"og:type",content:"article"}),p('meta[name="twitter:card"]',{name:"twitter:card",content:"summary_large_image"}),p('meta[name="twitter:title"]',{name:"twitter:title",content:w}),p('meta[name="twitter:description"]',{name:"twitter:description",content:o}),()=>{P.forEach(_=>{document.head.contains(_)&&document.head.removeChild(_)})}},[s,t]);const h=(r==null?void 0:r.filter(o=>o.slug!==t&&o.podcast_type!=="external").slice(0,3))||[],u=(d==null?void 0:d.map(o=>o.guest))||[];if(i)return e.jsxs(L,{children:[e.jsx(C,{className:"w-full h-[300px]"}
10),e.jsxs("div",{className:"container-narrow section-spacing-sm",children:[e.jsx(C,{className:"h-6 w-1/2 mb-4"}),e.jsx(C,{className:"h-4 w-full mb-2"}),e.jsx(C,{className:"h-4 w-3/4"})]})]});if(a||!s)return e.jsx(L,{children:e.jsxs("div",{className:"container-narrow section-spacing text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground mb-4",children:"Podcast Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"The podcast episode you're looking for doesn't exist or has been moved."}),e.jsx(S,{asChild:!0,children:e.jsx(U,{to:"/your-brain-on",children:"Back to Podcasts"})})]})});(c=s.guest_names)!=null&&c.length?s.guest_names.join(", "):s.guests;const l=o=>({id:o.id,title:o.title,slug:o.slug,publishDate:o.publish_date,excerpt:o.excerpt||o.summary_text||"",coverImage:o.cover_image||void 0,seasonNumber:o.season_number||void 0,episodeNumber:o.episode_number||void 0,guests:o.guests||void 0,guestNames:o.guest_names||void 0,durationSeconds:o.duration_seconds||void 0,episodeType:o.episode_type||void 0});return e.jsxs(L,{children:[e.jsx(ge,{title:s.title,coverImage:s.cover_image,publishDate:s.publish_date,durationSeconds:s.duration_seconds,seasonNumber:s.season_number,episodeNumber:s.episode_number,applePodcastsUrl:s.apple_podcasts_url||(n==null?void 0:n.apple_podcasts_url),spotifyUrl:s.spotify_url||(n==null?void 0:n.spotify_url),youtubeUrl:s.youtube_url}
10),e.jsxs("article",{className:"container-narrow section-spacing-sm",children:[e.jsxs("div",{className:"space-y-6 mb-8",children:[s.embed_youtube_url&&e.jsx(A,{embedType:"youtube",embedUrl:s.embed_youtube_url,title:s.title}),s.embed_apple_url&&e.jsx(A,{embedType:"apple",embedUrl:s.embed_apple_url,title:s.title}),!s.embed_youtube_url&&!s.embed_apple_url&&e.jsx(A,{embedType:s.embed_type,embedUrl:s.embed_url,audioUrl:s.audio_url,title:s.title})]}),e.jsxs("div",{className:"prose prose-lg max-w-none mb-8",children:[e.jsx("h2",{className:"text-xl font-semibold mb-4",children:"About This Episode"}),s.excerpt&&!s.description_html&&e.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:s.excerpt}),(s.description_html||s.content)&&e.jsx("div",{dangerouslySetInnerHTML:{__html:E(s.description_html||s.content||"")}})]}),s.transcript&&e.jsxs(se,{open:x,onOpenChange:f,className:"mb-8",children:[e.jsx(te,{asChild:!0,children:e.jsxs(S,{variant:"outline",className:"w-full justify-between",children:[e.jsx("span",{children:"Transcript"}),e.jsx(X,{className:`w-4 h-4 transition-transform ${x?"rotate-180":""}`})]})}),e.jsx(re,{className:"mt-4",children:e.jsx("div",{className:"p-6 bg-muted/50 rounded-xl prose prose-sm max-w-none max-h-96 overflow-y-auto",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:E(s.transcript)}})})})]}),s.sponsor_segments&&e.jsxs("div",{className:"p-6 bg-secondary/20 rounded-xl mb-8",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Sponsors"}),e.jsx("div",{className:"prose prose-sm",dangerouslySetInnerHTML:{__html:E(s.sponsor_segments)}})]}),u.length>0&&e.jsx(fe,{guests:u,className:"mb-12 py-8 px-6 bg-muted/30 rounded-2xl"}),u.length===0&&(((m=s.guest_names)==null?void 0:m.length)||s.guests)&&e.jsxs("div",{className:"mb-12 p-6 bg-muted/50 rounded-xl",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Featured Guests"}),(v=s.guest_names)!=null&&v.length?e.jsx("ul",{className:"space-y-2",children:s.guest_names.map((o,j)=>{var w;return e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground",children:o}),((w=s.guest_links)==null?void 0:w[j])&&e.jsx("a",{href:s.guest_links[j],target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline text-sm",children:e.jsx(K,{className:"w-3 h-3"})})]},j)})}):e.jsx("p",{className:"text-muted-foreground",children:s.guests})]}),e.jsx(we,{episodeId:s.id,episodeTitle:s.title}),h.length>0&&e.jsxs("div",{className:"mb-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"More Episodes"}),e.jsx(S,{variant:"ghost",asChild:!0,children:e.jsx(U,{to:"/your-brain-on",children:"View All"})})]}),e.jsx("div",{className:"grid sm:grid-cols-3 gap-6",children:h.map(o=>e.jsx(Q,{podcast:l(o)},o.id))})]}),e.jsx(ae,{className:"mt-12"}),e.jsx("div",{className:"mt-8 pt-8 border-t border-border",children:e.jsx(ee,{source:"newsletter-podcast",extraTags:["Podcast CTA Sign-Up"]}
10)})]})]})};export{$e 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.