1import{s as S,C as o,n as e,B as s,x as w,X as j,w as k,H as I,q as N,y as B,r as L}from"./index-07449275.js";import{u as z}from"./useFetch-c68bbb1e.js";import{u as R}from"./usePodcastStyles-25cc0d3e.js";const C=S(()=>({gridItemWrapper:{marginTop:"1em",marginBottom:"2em",marginInline:"1em",maxWidth:500},gridItem:{backgroundColor:o.White,boxShadow:`0px 11px 36px ${o.Black}1A`,borderRadius:24,overflow:"hidden",textAlign:"left",extend:"archivo",width:"100%","& p":{overflow:"scroll",maxHeight:160,fontSize:"1em",padding:0},"& .button-wrapper":{paddingLeft:0}},gridItemTitle:{fontSize:"1.3em",paddingTop:"0",fontWeight:500,"& p":{margin:"0",textOverflow:"ellipsis",height:"2.3em",minHeight:"3em",display:"-webkit-box",overflow:"hidden",webkitLineClamp:"2",webkitBoxOrient:"vertical"},height:"2.4em",overflow:"hidden"},gridItemDate:{fontSize:"1.25em",marginBlock:"1em"},gridItemImage:{height:"auto",width:"100%",overflow:"hidden",paddingBottom:"16px","& svg":{display:"block",height:"100%",width:"100%"},borderRadius:"24px 24px 0 0"},descriptionTitleWrapper:{padding:"0em 1em 1em 1em"},gridItemButton:{display:"block",width:"fit-content",height:"fit-content",padding:"1em",border:`1px solid ${o.DarkRed}`,borderRadius:"50px",color:o.DarkRed,backgroundColor:o.White,fontSize:"1.25em",lineHeight:"1.5em",paddingBlock:"0.5em",fontFamily:"archivo,sans-serif",fontWeight:600,"&:hover":{transform:"scale(1.05)",fontWeight:700,boxShadow:`0 5px 10px ${o.Black}33`,backgroundColor:o.White}},pageWrapper:{fontFamily:"Archivo, sans-serif",paddingTop:"140px",paddingBottom:"100px",backgroundImage:'url("https://s3.us-west-2.amazonaws.com/staticfiles.characterstrong.com/media/podcasts/header.svg")',backgroundSize:"cover",backgroundPosition:"top",backgroundRepeat:"no-repeat",paddingInline:"max(6vw, (100vw - 1280px)/2)"},contentWrapper:{display:"flex"},title:{"& p":{fontSize:"3em",fontWeight:400,marginBottom:"0.5em",marginTop:"0em"}},description:{"& p":{fontSize:"1rem",fontWeight:400,lineHeight:"1.5em"}},episode:{fontSize:"1.17em",fontWeight:"bold"},podcastLogo:{width:"100%",borderRadius:"25px",border:`10px solid ${o.White}`,borderWidth:"10px 12px"},titleDescriptionWrapper:{width:"50%",paddingRight:"1em"},logoSocialWrapper:{display:"flex",flexDirection:"column",width:"50%",paddingLeft:"1em"},listenNow:{fontSize:"3em",fontWeight:300,marginInline:"auto",marginTop:"1.5em"},underlineAndBold:{textDecoration:"underline",fontWeight:600,textDecorationColor:o.Green},appleSpotifyGoogle:{display:"flex",justifyContent:"center",marginTop:"1em"},listenOnLogo:{maxWidth:"114px",borderRadius:"57px",border:`10px solid ${o.White}`,borderWidth:"10px 12px",marginInline:".4em",boxShadow:`0px 8px 15px ${o.Black}33`},button:{display:"block",width:"fit-content",height:"fit-content",paddingBlock:"10px",paddingInline:"20px",border:`1px solid ${o.Red}`,borderRadius:"50px",color:o.White,backgroundColor:o.Red,fontSize:"1.25em",lineHeight:"1.5em",fontFamily:"archivo,sans-serif",fontWeight:600,margin:"0 auto","&:hover":{transform:"scale(1.05)",fontWeight:700,boxShadow:`0 5px 10px ${o.Black}33`,backgroundColor:o.Red}}}));function T(l){var d,c,p,m,g,h,x,f,u,b;const{activity:a}=l,{classes:t}=C(),n=(c=(d=a.metadata)==null?void 0:d.find(i=>i.label==="season"))==null?void 0:c.value,r=(m=(p=a.metadata)==null?void 0:p.find(i=>i.label==="episode"))==null?void 0:m.value,v=(h=(g=a.metadata)==null?void 0:g.find(i=>i.label==="spotify"))==null?void 0:h.value,W=(f=(x=a.metadata)==null?void 0:x.find(i=>i.label==="apple"))==null?void 0:f.value,y=(b=(u=a.metadata)==null?void 0:u.find(i=>i.label==="google"))==null?void 0:b.value;return e.jsx(s,{"data-testid":"podcast",className:t.pageWrapper,children:e.jsxs(s,{className:t.contentWrapper,children:[e.jsxs(s,{className:t.titleDescriptionWrapper,children:[e.jsx("div",{className:t.title,dangerouslySetInnerHTML:{__html:a.title||""}}),n&&r&&e.jsxs(w,{className:t.episode,children:["Season ",parseInt(n,10)<10?`0${n}`:n," - Episode"," ",parseInt(r,10)<10?`0${r}`:r]}),e.jsx("div",{className:t.description,dangerouslySetInnerHTML:{__html:a.description||""}})]}),e.jsxs(s,{className:t.logoSocialWrapper,children:[e.jsx("img",{className:t.podcastLogo,src:"https://s3.us-west-2.amazonaws.com/staticfiles.characterstrong.com/media/podcasts/podcast_logo.webp",alt:"characterstrong podcast logo"}),e.jsxs(w,{className:t.listenNow,children:["Listen ",e.jsx("span",{className:t.underlineAndBold,children:"Now"})]}),e.jsxs(s,{className:t.appleSpotifyGoogle,children:[e.jsx("a",{"aria-label":"Listen on Apple Podcasts",href:W,children:e.jsx("img",{className:t.listenOnLogo,src:"https://s3.us-west-2.amazonaws.com/staticfiles.characterstrong.com/media/podcasts/apple-icon.svg",alt:"apple podcast logo"})}),e.jsx("a",{"aria-label":"Listen on Spotify Podcasts",href:v,children:e.jsx("img",{className:t.listenOnLogo,src:"https://s3.us-west-2.amazonaws.com/staticfiles.characterstrong.com/media/podcasts/spotify-icon.svg",alt:"spotify podcast logo"})}),e.jsx("a",{"aria-label":"Listen on Google Podcasts",href:y,children:e.jsx("img",{className:t.listenOnLogo,src:"https://s3.us-west-2.amazonaws.com/staticfiles.characterstrong.com/media/podcasts/google-icon.svg",alt:"google podcast logo"})})]})]})]})})}function D(){const l=j(),{classes:a}=R(),{data:t}=z(k(`/api/curriculum/activity?url=${l.pathname.slice(1)}`));return e.jsxs(s,{"data-testid":"podcastIndividual",children:[e.jsx(I,{initialCurriculum:"PurposeFull People"}),e.jsx(N,{}),t?e.jsx(T,{activity:t}):e.jsx(B,{"data-testid":"loader-ring",className:a.loaderRing,mx:"auto",size:"xl"}),e.jsx(L,{})]})}
1export{D as PodcastIndividual};
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.