PageSourceSearch

https://pre-ipohype.lovable.app/assets/PodcastEpisode-DY1rdyM1.js

js pre-ipohype.lovable.app collected 2026-10-03 03:40:09 UTC 12,513 bytes, 16 lines download raw bytes

1import{c as v,n as I,r as $,s as _,j as e,L as w,H as B}from"./app-C1fmbaKW.js";import{u as k,S as h,C as P}from"./skeleton-DtynWYn-.js";import{H as f}from"./Header-CuXRSYS6.js";import{F as y}from"./Footer-CvKlFaeW.js";import{B as S}from"./button-C6IxbuMH.js";import{A as q}from"./arrow-left-1e3F7NKn.js";import{C as D}from"./calendar-BuSScGV9.js";import{M as J}from"./mic-Vgt7pOdi.js";import"./supabase-B5LHefAr.js";import"./mail-Dhg-LZt_.js";import"./phone-CAkGaXyx.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const L=v("Apple",[["path",{d:"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z",key:"3s7exb"}],["path",{d:"M10 2c1 .5 2 2 2 5",key:"fcco2y"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const O=v("Music2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const H=v("Rss",[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]),b="www.preipohype.com",T=[{label:"Apple Podcasts",href:"https://podcasts.apple.com/us/podcast/invst-guru/id1780388410",Icon:L},{label:"Spotify",href:"https://open.spotify.com/show/5KZBWDRoOIyJub6zbiP2NG",Icon:O},{label:"RSS",href:"https://feeds.acast.com/public/shows/673b8adb0f9780339ef0cb02",Icon:H}],U=r=>{const o=r.split(":").map(Number);return o.length===3?o[0]*3600+o[1]*60+o[2]:o[0]*60+o[1]},z=(r,o)=>{let n=r;n=n.replace(/<p[^>]*>(?:\s|&nbsp;|<br\s*\/?>)*<\/p>/gi,""),n=n.replace(/<p[^>]*>\s*([A-Z][A-Z0-9 '&/,.-]{3,60})\s*<\/p>/g,(c,l)=>{const a=String(l).trim();return!/[A-Z]{2,}/.test(a)||/[a-z]/.test(a)?c:`<h2>${a.charAt(0)+a.slice(1).toLowerCase()}</h2>`});const t=c=>{const l=[...c.matchAll(/((?:\d{1,2}:)?\d{1,2}:\d{2})\s+([^]*?)(?=(?:\d{1,2}:)?\d{1,2}:\d{2}\s|$)/g)];return l.length===0?"":l.map(([,a,x])=>{const s=x.replace(/\s+/g," ").trim();return`<li>${o?`<a class="chapter-time" href="https://www.youtube.com/watch?v=${o}&t=${U(a)}s" target="_blank" rel="noopener noreferrer">${a}</a>`:`<span class="chapter-time">${a}</span>`}${s?` ${s}`:""}</li>`}).join("")};return n=n.replace(/(?:<p[^>]*>\s*(?:\d{1,2}:)?\d{1,2}:\d{2}\s+[^<]*<\/p>\s*)+/g,c=>{const l=c.replace(/<\/?p[^>]*>/g," "),a=t(l);return a?`<ul class="chapter-list">${a}</ul>`:c}),n=n.replace(/(^|[\s>])(https?:\/\/[^\s<]+)/g,(c,l,a)=>`${l}<a href="${a}" target="_blank" rel="noopener noreferrer">${a.replace(/^https?:\/\//,"")}</a>`),n.trim()},j={"the-7m-moat-chickie-fitzgerald-on-why-ai-cant-crack-travel-tech":"a5SsgniM7G8","from-corporate-servant-to-startup-founder-dr-deepak-bhootra-on-sales-coaching-career-resilience-raising-on-wefunder":"cB2O2Hn3gy4","embracing-energy-independence-the-journey-of-gigawatt":"NhqNuloJTWw","the-part-of-your-capital-raise-nobody-talks-about":"YrmS1Iq4fws","this-solar-powered-tractor-could-change-how-america-grows-food":"2wyLjYK-Zzw","wall-streets-dirty-secret-who-really-gets-ipo-shares":"AD2phIuCH58","the-uneven-coin-flip":"YC9nhWqB5CE","from-pigweed-to-prototypes-the-story-behind-greenfield-robotics":"TiXqRJsPXas","give-joy-get-joy-how-fureelz-is-building-the-tiktok-for-animal-lovers-with-ashley-quincey":"j81yeOz6Sgk","a-40-year-wall-street-veteran-is-buying-mens-nail-salons-heres-the-math-frank-muller-hammer-nails-texas":"YC9nhWqB5CE","eye-health-revolution-dr-roger-wu-the-eye-drink":"-JRcc6CIgAw","the-gatorade-for-your-eyes-an-optometrist-builds-a-drink-for-screen-time-dr-roger-wu-the-eye-drink":"-JRcc6CIgAw","turning-rice-waste-into-plastic-free-packaging-inside-a-500k-raise":"Ek-2VsHt6nA","rice-waste-to-plastic-free-packaging-bas-bale-of-ecologic-circle":"Ek-2VsHt6nA","he-bootstrapped-a-stock-app-to-13000-customers-in-50-countries-sean-tepper-tykr":"Sx343T29Ms8","green-gray-or-red-a-traffic-light-for-the-stock-market-sean-tepper-tykr":"Sx343T29Ms8","dog-treats-zero-fillers-jackson-jones-of-farm-to-
16pet":"tB1SaiJJyo8","one-ingredient-1003-stores-zero-outside-money-jackson-jones-farm-to-pet":"tB1SaiJJyo8"},se=()=>{const{slug:r}=I(),[o,n]=$.useState(!1),{data:t,isLoading:c,isError:l}=k({queryKey:["podcast-episode",r],queryFn:async()=>{const{data:i,error:g}=await _.from("podcast_episodes").select("*").eq("slug",r).single();if(g)throw g;return i},enabled:!!r}),{data:a}=k({queryKey:["related-episodes",t==null?void 0:t.id],queryFn:async()=>{const{data:i}=await _.from("podcast_episodes").select("id, title, slug, episode_image_url, published_at").neq("id",t.id).order("published_at",{ascending:!1}).limit(3);return i||[]},enabled:!!(t!=null&&t.id)}),x=i=>i?new Date(i).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):null;if(c)return e.jsxs(e.Fragment,{children:[e.jsx(f,{}),e.jsx("main",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl py-16 space-y-6",children:[e.jsx(h,{className:"h-8 w-48"}),e.jsx(h,{className:"h-64 w-full rounded-xl"}),e.jsx(h,{className:"h-10 w-3/4"}),e.jsx(h,{className:"h-4 w-1/3"}),e.jsx(h,{className:"h-96 w-full"})]})}),e.jsx(y,{})]});if(l||!t)return e.jsxs(e.Fragment,{children:[e.jsx(f,{}),e.jsx("main",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsxs("div",{className:"text-center py-20",children:[e.jsx("h1",{className:"text-4xl font-bold text-foreground mb-4",children:"Episode Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The episode you're looking for doesn't exist or has been removed."}),e.jsx(S,{asChild:!0,variant:"outline",children:e.jsx(w,{to:"/podcasts",children:"← Back to Podcast"})})]})}),e.jsx(y,{})]});const s=r?j[r]:void 0,d=z(t.description??"",s),m=d?d.replace(/<[^>]*>/g,"").slice(0,160):t.title,E=s?`https://www.youtube.com/watch?v=${s}`:void 0,p=s?`https://www.youtube.com/embed/${s}`:void 0,u=s?`https://i.ytimg.com/vi/${s}/maxresdefault.jpg`:void 0,C=s?`${t.title} — Video`:void 0,M={"@context":"https://schema.org","@type":"PodcastEpisode",name:t.title,datePublished:t.published_at,description:m,url:`https://${b}/podcasts/${t.slug}`,associatedMedia:t.audio_url?{"@type":"MediaObject",contentUrl:t.audio_url}:void 0,partOfSeries:{"@type":"PodcastSeries",name:"Pre-IPO Hype Podcast",url:`https://${b}/podcasts`}},N=s?{"@context":"https://schema.org","@type":"VideoObject",name:C,description:m,thumbnailUrl:[u],uploadDate:t.published_at,contentUrl:E,embedUrl:p}:null;return e.jsxs(e.Fragment,{children:[e.jsxs(B,{children:[e.jsxs("title",{children:[t.title," | Pre-IPO Hype Podcast"]}),e.jsx("meta",{name:"description",content:m}),e.jsx("meta",{property:"og:title",content:t.title}),e.jsx("meta",{property:"og:description",content:m}),e.jsx("meta",{property:"og:type",content:s?"video.other":"music.song"}),e.jsx("meta",{property:"og:url",content:`https://${b}/podcasts/${t.slug}`}),t.episode_image_url&&e.jsx("meta",{property:"og:image",content:t.episode_image_url}),u&&e.jsx("meta",{property:"og:image",content:u}),s&&e.jsx("meta",{property:"og:video",content:p}),s&&e.jsx("meta",{property:"og:video:url",content:p}),s&&e.jsx("meta",{property:"og:video:secure_url",content:p}),s&&e.jsx("meta",{property:"og:video:type",content:"text/html"}),s&&e.jsx("meta",{property:"og:video:width",content:"1280"}),s&&e.jsx("meta",{property:"og:video:height",content:"720"}),s&&e.jsx("meta",{property:"video:release_date",content:t.published_at??""}),e.jsx("meta",{name:"twitter:card",content:s?"player":"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:t.title}),e.jsx("meta",{name:"twitter:description",content:m}),t.episode_image_url&&e.jsx("meta",{name:"twitter:image",content:t.episode_image_url}),u&&e.jsx("meta",{name:"twitter:image",content:u}),s&&e.jsx("meta",{name:"twitter:player",content:p}),s&&e.jsx("meta",{name:"twitter:player:width",content:"1280"}),s&&e.jsx("meta",{name:"twitter:player:height",content:"720"}),e.jsx("link",{rel:"canonical",href:`https://${b}/podcasts/${t.slug}`}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(M)}),N&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(N)})]}),e.jsx(f,{}),e.jsx("main",{className:"min-h-screen bg-background",children:e.jsxs("article",{className:"container mx-auto px-4 max-w-3xl py-12",children:[e.jsxs(w,{to:"/podcasts",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-primary transition-colors mb-8",children:[e.jsx(q,{className:"w-4 h-4"})," Back to all episodes"]}),t.episode_image_url&&!o&&e.jsx("div",{className:"rounded-xl overflow-hidden mb-8 max-w-md mx-auto",children:e.jsx("img",{src:t.episode_image_url,alt:t.title,className:"w-full h-auto object-cover",onError:()=>n(!0)})}),t.episode_number!==null&&e.jsxs("span",{className:"text-sm font-medium text-primary uppercase tracking-wide mb-2 block",children:[t.season_number?`Season ${t.season_number} · `:"","Episode ",t.episode_number]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-8",children:[x(t.published_at)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(D,{className:"w-4 h-4"})," ",x(t.published_at)]}),t.duration&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(P,{className:"w-4 h-4"})," ",t.duration]})]}),t.audio_url?e.jsx("div",{className:"mb-10 rounded-xl overflow-hidden border border-border bg-card p-4",children:e.jsxs("audio",{controls:!0,preload:"metadata",src:t.audio_url,className:"w-full","aria-label":`${t.title} audio player`,children:["Your browser does not support the audio element.",e.jsx("a",{href:t.audio_url,children:"Download the episode"}),"."]})}):t.embed_url?e.jsx("div",{className:"mb-10 rounded-xl overflow-hidden border border-border bg-card",children:e.jsx("iframe",{src:t.embed_url,title:`${t.title} player`,frameBorder:0,width:"100%",height:"190",allow:"autoplay",className:"w-full"})}):null,e.jsxs("div",{className:"mb-10 flex flex-wrap items-center gap-3",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Subscribe:"}),T.map(({label:i,href:g,Icon:A})=>e.jsx(S,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:e.jsxs("a",{href:g,target:"_blank",rel:"noopener noreferrer","aria-label":`Subscribe on ${i}`,children:[e.jsx(A,{className:"w-4 h-4"}),i]})},i))]}),r&&j[r]&&e.jsx("div",{className:"mb-10 rounded-xl overflow-hidden border border-border bg-card aspect-video",children:e.jsx("iframe",{className:"w-full h-full",src:`https://www.youtube.com/embed/${j[r]}`,title:"YouTube video player",frameBorder:0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;
16 web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}),d&&e.jsx("div",{className:"blog-prose mb-12",dangerouslySetInnerHTML:{__html:d}}),a&&a.length>0&&e.jsxs("section",{className:"border-t border-border pt-10",children:[e.jsx("h2",{className:"text-xl font-bold text-foreground mb-6",children:"More Episodes"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:a.map(i=>e.jsx(R,{episode:i},i.id))})]})]})}),e.jsx(y,{})]})},R=({episode:r})=>{const[o,n]=$.useState(!1);return e.jsxs(w,{to:`/podcasts/${r.slug}`,className:"block rounded-lg border border-border overflow-hidden hover:shadow-medium hover:-translate-y-0.5 transition-all cursor-pointer",children:[r.episode_image_url&&!o?e.jsx("img",{src:r.episode_image_url,alt:r.title,className:"w-full aspect-square object-cover",onError:()=>n(!0),loading:"lazy"}):e.jsx("div",{className:"aspect-square flex items-center justify-center bg-muted",children:e.jsx(J,{className:"w-8 h-8 text-muted-foreground/50"})}),e.jsxs("div",{className:"p-3",children:[e.jsx("h3",{className:"text-sm font-medium text-foreground line-clamp-2 mb-1",children:r.title}),r.published_at&&e.jsx("p",{className:"text-xs text-muted-foreground",children:new Date(r.published_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})]})};export{se 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.