PageSourceSearch

https://living-corporate.com/assets/podcast-episode-CDVdwZmg.js

js living-corporate.com collected 2026-10-02 04:59:58 UTC 15,051 bytes, 7 lines download raw bytes

1import{D as S,u as E,r as f,f as j,j as e,H as d,L as m,B as a,m as b,E as i,G as N}from"./index-QiiZ-xPT.js";import{N as p}from"./Navigation-r93ZBuy6.js";import{F as u}from"./Footer-3JNsJayo.js";import{R as C,F as P,i as I,S as L,C as R,a as A,E as F}from"./SubscriberWall-B9MLjZEy.js";import{e as M,S as B}from"./SEOHead-C3CEQXNM.js";import{B as H}from"./Breadcrumbs-B_3LsZvC.js";import{g as x}from"./podcast-categories-CsqE0hE_.js";import{s as v}from"./sanitize-DKP1LTNb.js";import{M as U}from"./MerchCTA-Bif5hpHI.js";import{D as G}from"./DiscordCTA-BQ2Dzcaf.js";import{B as $}from"./BrandSponsor-DEW6i_On.js";import{u as q}from"./use-gamification-BYrS7MHh.js";import{A as O}from"./arrow-left-B-CeY16K.js";import{S as D}from"./share-2-hqok4cMh.js";import{M as K}from"./message-square-D5hWyMEX.js";import{C as Q}from"./chevron-right-f4G5e4zR.js";import"./label-BA9Xin3m.js";import"./checkbox-CrGTwbPu.js";import"./index-DqZlRfV5.js";import"./check-KTa2Xihg.js";import"./select-B1P2Vx_w.js";import"./index-BMyKsIJE.js";import"./Combination-TP2Egp2x.js";import"./chevron-down-BWOHa16b.js";import"./dialog-D2VXyQJN.js";import"./save-BsB7cS8F.js";import"./dropdown-menu-D4zjGRmc.js";import"./index-Bj3iuRQR.js";import"./circle-2nw1jhuN.js";import"./useTranslation-XedzLvcK.js";import"./globe-3tsuvpPT.js";import"./log-out-CqAuLeet.js";import"./building-2-Bz-h5bHH.js";import"./mail-Cr62Xklx.js";import"./twitter-BzZd48jL.js";import"./use-favorites-BCYzSaDB.js";import"./article-categories-B10WQW6s.js";import"./play-F_iIYdsj.js";import"./star-DmzWJ34G.js";import"./textarea-Bd1mcSz8.js";import"./radio-group-h2QOEjuw.js";import"./thumbs-up-DkH1MmEp.js";import"./lightbulb-C5iibd-m.js";import"./circle-alert-BZ1suj-l.js";import"./lock-NaFetfNF.js";import"./sparkles-C108-045.js";import"./card-DkXabqFf.js";import"./confetti.module-oQXWb4Lk.js";function n(r){const s=document.createElement("textarea");return s.innerHTML=r,s.value}function c(r){if(!r)return"";let s=r.replace(/<[^>]*>/g,"");return s=s.replace(/&nbsp;/g," "),s=s.replace(/&amp;/g,"&"),s=s.replace(/&lt;/g,"<"),s=s.replace(/&gt;/g,">"),s=s.replace(/&quot;/g,'"'),s=s.replace(/&#8217;/g,"'"),s=s.replace(/&#8216;/g,"'"),s=s.replace(/&#8220;/g,'"'),s=s.replace(/&#8221;/g,'"'),s=s.replace(/&#8230;/g,"..."),s=s.replace(/&#\d+;/g,""),s=s.replace(/\s+/g," "),s.trim()}function qe(){const{slug:r}=S(),{user:s}=E(),{trackPodcastListen:h,trackRatingGiven:y}=q(),g=f.useRef(null),{data:t,isLoading:w,error:k}=j({queryKey:["/api/wp/podcasts",r],queryFn:async()=>{const o=await fetch(`/api/wp/podcasts/${r}`);if(!o.ok)throw o.status===404?new Error("Podcast not found"):new Error("Failed to fetch podcast");return o.json()},enabled:!!r}),{data:l}=j({queryKey:["/api/megaphone/match",r],queryFn:async()=>{const o=await fetch(`/api/megaphone/match/${r}`);return o.ok?o.json():{matched:!1,wpTitle:""}},enabled:!!r});f.useEffect(()=>{s&&t&&r&&g.current!==r&&(g.current=r,h(r,n(t.title)))},[s,t,r,h]);const z=async()=>{navigator.share?await navigator.share({title:t?.title,url:window.location.href}):await navigator.clipboard.writeText(window.location.href)};if(w)return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(p,{}),e.jsx("div",{className:"pt-32 pb-16 max-w-4xl mx-auto px-6",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 bg-muted rounded w-3/4 mb-4"}),e.jsx("div",{className:"h-4 bg-muted rounded w-1/4 mb-8"}),e.jsx("div",{className:"h-64 bg-muted rounded-2xl mb-8"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"h-4 bg-muted rounded w-full"}),e.jsx("div",{className:"h-4 bg-muted rounded w-full"}),e.jsx("div",{className:"h-4 bg-muted rounded w-3/4"})]})]})}),e.jsx(u,{})]});if(k||!t)return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(p,{}),e.jsxs("div",{className:"pt-32 pb-16 max-w-4xl mx-auto px-6 text-center",children:[e.jsx(d,{size:48,className:"mx-auto text-muted-foreground/50 mb-4"}),e.jsx("h1",{className:"text-3xl font-bold mb-4","data-testid":"text-error-title",children:"Episode Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-8","data-testid":"text-error-message",children:"The podcast episode you're looking for doesn't exist or has been removed."}),e.jsx(m,{href:"/podcasts",children:e.jsxs(a,{"data-testid":"button-back-to-po
1dcasts",children:[e.jsx(O,{size:16,className:"mr-2"}),"Back to Podcasts"]})})]}),e.jsx(u,{})]});const T=M({title:n(t.title),description:c(t.excerpt||t.content).slice(0,300),image:l?.imageUrl||(typeof t.featuredImage=="string"?t.featuredImage:t.featuredImage?.url)||"",url:`/podcasts/${t.slug}`,datePublished:t.publishedAt,audioUrl:t.acf?.url_podcast,transcript:t.acf?.transcription?"Available":void 0});return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(B,{title:`${n(t.title)} | Podcast`,description:c(t.excerpt||t.content).slice(0,160),canonicalUrl:`https://www.living-corporate.com/podcasts/${t.slug}`,image:l?.imageUrl||(typeof t.featuredImage=="string"?t.featuredImage:t.featuredImage?.url),jsonLd:T}),e.jsx(C,{}),e.jsx(p,{}),e.jsx("article",{className:"pt-32 pb-16",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[e.jsx(H,{items:[{name:"Podcasts",url:"/podcasts"},{name:n(t.title).slice(0,40),url:`/podcasts/${t.slug}`}],className:"mb-6"}),e.jsxs(b.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[e.jsx(d,{size:20}),e.jsx("span",{className:"text-sm font-medium",children:"Podcast Episode"})]}),(()=>{const o=x(t.slug,t.title);return e.jsx("span",{className:`text-xs px-2 py-1 rounded-full ${o.color}`,children:o.name})})()]}),e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-6","data-testid":"text-podcast-title",children:n(t.title)}),e.jsx("div",{className:"flex flex-wrap items-center gap-6 text-muted-foreground mb-8",children:e.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[e.jsx(P,{contentType:"podcast",contentSlug:t.slug,contentTitle:n(t.title),contentImage:l?.imageUrl||(typeof t.featuredImage=="string"?t.featuredImage:t.featuredImage?.url),contentCategory:x(t.slug,t.title).key,variant:"full"}),e.jsxs(a,{variant:"ghost",size:"sm",onClick:z,"data-testid":"button-share",children:[e.jsx(D,{size:16,className:"mr-2"}),"Share"]})]})}),e.jsx($,{zone:"podcast"}),e.jsx("div",{className:"rounded-2xl overflow-hidden mb-8",children:e.jsx("img",{src:l?.imageUrl||(typeof t.featuredImage=="string"?t.featuredImage:t.featuredImage?.url),alt:typeof t.featuredImage=="object"?t.featuredImage?.alt:t.title,className:"w-full h-auto","data-testid":"img-featured"})}),t.content&&c(t.content).length>0&&e.jsx("div",{className:"mb-8",children:e.jsx("div",{className:`prose prose-lg dark:prose-invert max-w-none
2                    prose-p:text-muted-foreground prose-p:leading-relaxed
3                    prose-a:text-primary prose-a:no-underline hover:prose-a:underline
4                    prose-strong:text-foreground
5                    prose-span:text-muted-foreground`,dangerouslySetInnerHTML:{__html:v(t.content)},"data-testid":"podcast-content"})}),(()=>{const o=I(t.publishedAt),_=s&&(s.membershipTier==="premium"||s.membershipTier==="enterprise"||s.membershipTier==="admin");return o&&!_?e.jsx("div",{className:"relative",children:e.jsx(L,{articleTitle:n(t.title)})}):e.jsxs(e.Fragment,{children:[l?.matched&&l.embedUrl?e.jsxs("div",{className:"bg-card rounded-xl p-6 border border-border mb-8",children:[e.jsxs("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[e.jsx(d,{size:20,className:"text-primary"}),"Listen Now"]}),e.jsx("iframe",{frameBorder:"0",height:"200",scrolling:"no",src:l.embedUrl,width:"100%","data-testid":"megaphone-player",className:"rounded-lg",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"})]}):t.acf?.url_podcast?e.jsxs("div",{className:"bg-card rounded-xl p-6 border border-border mb-8",children:[e.jsxs("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[e.jsx(d,{size:20,className:"text-primary"}),"Listen Now"]}),e.jsxs("audio",{controls:!0,preload:"metadata",className:"w-full h-12","data-testid":"audio-player",children:[e.jsx("source",{src:t.acf.url_podcast,type:"audio/mpeg"}),"Your browser does not support the audio element."]})]}):e.jsxs("div",{className:"bg-card rounded-xl p-6 border border-border mb-8",children:[e.jsxs("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[e.jsx(d,{size:20,className:"text-primary"}),"Listen to This Episode"]}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"This episode is available on your favorite podcast platforms."}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx("a",{href:"https://open.spotify.com/show/2mRmf9FpyH8GfhRNSQ1ZV9",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{className:"gap-2",children:[e.jsx(i,{size:16}),"Spotify"]})}),e.jsx("a",{href:"https://podcasts.apple.com/us/podcast/living-corporate/id1358453989",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2",children:[e.jsx(i,{size:16}),"Apple Podcasts"]})}),e.jsx("a",{href:"https://music.amazon.com/podcasts/6baa0626-024c-411b-a459-1fed4ded244e/living-corporate",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2",children:[e.jsx(i,{size:16}),"Amazon Music"]})}),e.jsx("a",{href:"https://soundcloud.com/living-corporate",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2",children:[e.jsx(i,{size:16}),"SoundCloud"]})}),e.jsx("a",{href:"https://player.fm/series/series-2410563",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2",children:[e.jsx(i,{size:16}),"Player FM"]})}),e.jsx("a",{href:"https://www.listennotes.com/podcasts/living-corporate-living-corporate-llc-X6K_olBO4k8/",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2",children:[e.jsx(i,{size:16}),"Listen Notes"]})})]})]}),t.acf?.description_a&&e.jsxs("div",{className:"bg-card rounded-xl p-6 border border-border mb-8",children:[e.jsx("h2",{className:"text-lg font-semibold mb-3",children:"About This Episode"}),e.jsx("p",{className:"text-muted-foreground",children:c(t.acf.description_a)})]}),t.acf?.featuring_a&&e.jsxs("div",{className:"bg-primary/5 rounded-xl p-6 mb-8",children:[e.jsx("h2",{className:"text-lg font-semibold mb-3",children:"Featuring"}),e.jsx("p",{className:"text-muted-foreground",children:c(t.acf.featuring_a)})]}),t.acf?.transcription&&e.jsxs("div",{className:"bg-card rounded-xl p-6 border border-border mb-8",children:[e.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Transcript"}),e.jsx("div",{className:`prose prose-sm dark:prose-invert max-w-none max-h-96 overflow-y-auto
6                    prose-p:text-muted-foreground prose-p:leading-relaxed
7                    prose-span:text-muted-foreground`,dangerouslySetInnerHTML:{__html:v(t.acf.transcription)},"data-testid":"podcast-transcript"})]}),e.jsxs("div",{className:"flex flex-wrap gap-3 mb-8",children:[e.jsx("a",{href:"https://open.spotify.com/show/2mRmf9FpyH8GfhRNSQ1ZV9",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{className:"gap-2","data-testid":"button-listen-spotify",children:[e.jsx(i,{size:16}),"Spotify"]})}),e.jsx("a",{href:"https://podcasts.apple.com/us/podcast/living-corporate/id1358453989",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2","data-testid":"button-listen-apple",children:[e.jsx(i,{size:16}),"Apple Podcasts"]})}),e.jsx("a",{href:"https://music.amazon.com/podcasts/6baa0626-024c-411b-a459-1fed4ded244e/living-corporate",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2","data-testid":"button-listen-amazon",children:[e.jsx(i,{size:16}),"Amazon Music"]})}),e.jsx("a",{href:"https://soundcloud.com/living-corporate",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2","data-testid":"button-listen-soundcloud",children:[e.jsx(i,{size:16}),"SoundCloud"]})}),e.jsx("a",{href:"https://player.fm/series/series-2410563",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2","data-testid":"button-listen-playerfm",children:[e.jsx(i,{size:16}),"Player FM"]})}),e.jsx("a",{href:"https://www.listennotes.com/podcasts/living-corporate-living-corporate-llc-X6K_olBO4k8/",target:"_blank",rel:"noopener noreferrer",children:e.jsxs(a,{variant:"outline",className:"gap-2","data-testid":"button-listen-listennotes",children:[e.jsx(i,{size:16}),"Listen Notes"]})})]}),e.jsx("div",{className:"mt-12","data-testid":"podcast-merch-cta",children:e.jsx(U,{variant:"compact",source:"podcast-episode",title:"Rep Living Corporate",subt
7itle:"Wear your values. Check out our merch."})}),e.jsxs("div",{className:"mt-12 pt-8 border-t border-border",children:[e.jsxs("h3",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[e.jsx(K,{size:20,className:"text-primary"}),"Rate This Episode"]}),e.jsx(R,{contentType:"podcast",contentSlug:t.slug,contentTitle:n(t.title),onRatingSubmitted:()=>y(t.slug,n(t.title))})]}),e.jsx(A,{contentType:"podcast",currentSlug:t.slug,currentCategory:x(t.slug,t.title).key})]})})(),e.jsx("div",{className:"mt-12",children:e.jsx(F,{variant:"inline"})}),e.jsxs(b.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 p-8 rounded-2xl bg-gradient-to-br from-primary/10 to-accent/10 border border-primary/20","data-testid":"learning-modules-cta",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/20 flex items-center justify-center",children:e.jsx(N,{size:24,className:"text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Deepen Your Learning"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Continue with Learning Corporate"})]})]}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"Ready to take the next step? Explore 1,700+ learning modules on leadership, people & culture, career development, and professional growth with Learning Corporate."}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx(m,{href:"/learning-modules",children:e.jsxs(a,{className:"rounded-full","data-testid":"button-explore-modules",children:[e.jsx(N,{size:16,className:"mr-2"}),"Explore Modules",e.jsx(Q,{size:16,className:"ml-1"})]})}),e.jsx(m,{href:"/learning/enterprise-pricing",children:e.jsx(a,{variant:"outline",className:"rounded-full","data-testid":"button-enterprise-link",children:"Enterprise Plans"})})]})]}),e.jsx("div",{className:"mt-8",children:e.jsx(G,{variant:"inline"})})]})]})}),e.jsx(u,{})]})}export{qe 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.