PageSourceSearch

https://www.unexplained.co/_next/static/immutable/chunks/0v3etuaaww3-z.js

js unexplained.co collected 2026-09-24 20:10:31 UTC 16,619 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35433,e=>{"use strict";var r=e.i(43476),t=e.i(67881),i=e.i(23750),a=e.i(71645),l=e.i(13192);e.s(["default",0,function({source:e="homepage_briefing",variant:n="default",hideMarketingCopy:o=!1,formClassName:s}){let[d,u]=(0,a.useState)(""),[c,f]=(0,a.useState)(""),[m,h]=(0,a.useState)("idle"),[p,x]=(0,a.useState)(""),[b,g]=(0,a.useState)(!0),v=async r=>{r.preventDefault(),(0,l.trackNewsletterCtaClick)(e),h("loading"),x("");try{let r=await fetch("/api/mailchimp/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d,source:e,website:c})}),t=await r.json();if(!r.ok)throw Error(t.error||"Failed to subscribe");g(!1!==t.confirmationRequired),(0,l.trackSignUp)(e),h("success"),u(""),f("")}catch(e){h("error"),x(e instanceof Error?e.message:"Something went wrong. Please try again.")}};if("success"===m)return(0,r.jsxs)("div",{className:"content-card content-card--p-md",children:[(0,r.jsx)("p",{className:"section-kicker",children:"Weekly briefing"}),(0,r.jsx)("p",{className:"display-heading mt-2 text-xl font-semibold text-foreground",children:b?"Confirm your email.":"You're on the list."}),(0,r.jsx)("p",{className:"mt-2 text-[14px] leading-[1.55] text-foreground-muted",children:b?"Check your inbox for a confirmation link to finish subscribing to the Unexplained Weekly Briefing.":"Watch your inbox for the next Unexplained Weekly Briefing."})]});let y="green"===n,j=(0,r.jsx)("p",{className:"text-[11px] font-mono uppercase tracking-[0.16em] text-foreground-subtle",children:"Free • Quick to read • Unsubscribe anytime"}),w=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"absolute -left-[9999px] h-0 w-0 overflow-hidden","aria-hidden":"true",children:[(0,r.jsx)("label",{htmlFor:"inline-signup-website",children:"Website"}),(0,r.jsx)("input",{id:"inline-signup-website",type:"text",name:"website",tabIndex:-1,autoComplete:"off",value:c,onChange:e=>f(e.target.value)})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,r.jsx)(i.Input,{type:"email",placeholder:"Enter your email",value:d,onChange:e=>u(e.target.value),required:!0,disabled:"loading"===m,className:"editorial-control h-[42px] flex-1 px-4 text-[13px]","aria-label":"Email address"}),(0,r.jsx)(t.Button,{type:"submit",disabled:"loading"===m,variant:"default",className:y?"h-[42px] rounded-[var(--radius-home)] border-0 bg-brand px-6 text-[13px] font-semibold text-white hover:bg-brand-hover":"accent-button shrink-0 px-6",children:"loading"===m?"Submitting...":"Join the Briefing"})]}),j,"error"===m&&(0,r.jsx)("p",{className:"rounded-[var(--radius-home)] border border-red-500/35 bg-red-500/10 px-3 py-2 text-[13px] text-red-700 dark:text-red-300",role:"alert",children:p})]});return o?(0,r.jsx)("form",{onSubmit:v,className:["relative space-y-3",s].filter(Boolean).join(" "),children:w}):(0,r.jsxs)("div",{className:`editorial-widget p-5 transition-colors md:p-6 ${y?"border-brand-border bg-brand-subtle":""}`,children:[(0,r.jsx)("p",{className:"section-kicker",children:"Weekly briefing"}),(0,r.jsx)("h2",{className:"display-heading mt-2 max-w-[20ch] text-xl font-semibold text-foreground md:text-2xl md:leading-[0.98]",children:"The Unexplained Weekly Briefing"}),(0,r.jsx)("p",{className:"mt-3 text-[14px] leading-[1.55] text-foreground-muted md:text-[15px]",children:"The best new episodes, videos, investigations, and strange developments—curated once a week."}),(0,r.jsx)("form",{onSubmit:v,className:"relative mt-5 space-y-3",children:w})]})}])},94159,e=>{"use strict";var r=e.i(43476),t=e.i(52561),i=e.i(47163),a=e.i(95242),l=e.i(31343);e.s(["default",0,function({episode:e,className:n,size:o="md",label:s,showLabel:d=!1,tone:u="teal"}){let{setTrack:c,currentTrack:f,isPlaying:m,togglePlayPause:h}=(0,t.useAudioPlayer)();if(!e.audioUrl)return null;let p=f?.id===e.id,x=p&&m,b=x?`Pause ${e.title}`:`Play ${e.title}`,g="lg"===o?"h-7 w-7":"h-4 w-4";return(0,r.jsxs)("button",{type:"button",onClick:r=>{(r.preventDefault(),r.stopPropagation(),p)?h():c({id:e.id,title:e.title,artist:e.showName,url:e.audioUrl,coverArtUrl:e.imageUrl,slug:e.slug},!0)},"aria-label":b,className:(0,i.cn)("inline-flex items-center justify-center gap-2 rounded-full border transition-colors focus-visible:outline-none focus-visible:ring-2","brass"===u?"border-[color:var(--home-brass)]/60 bg-background-elevated text-[color:var(--home-brass)] hover:bg-[color:var(--home-brass-soft)] focus-visible:ring-[color:var(--home-brass)]/50":"border-[color:var(--home-teal)]/50 bg-background-elevated text-[color:var(--home-teal)] hover:bg-[color:var(--home-teal-soft)] focus-visible:ring-[color:var(--home-teal)]/50","lg"===o?"h-16 w-16":"sm"===o?"h-10 w-10":"h-11 w-11",d&&"w-auto rounded-[var(--radius-home)] px-4",n),children:[x?(0,r.jsx)(a.Pause,{className:g,"aria-hidden":!0}):(0,r.jsx)(l.Play,{className:(0,i.cn)(g,"ml-0.5"),"aria-hidden":!0}),d?(0,r.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-[0.12em]",style:{fontFamily:"var(--font-condensed), 'Roboto Condensed', sans-serif"},children:s||(x?"Pause":"Listen")}
1):null]})}])},35376,e=>{"use strict";var r=e.i(43476),t=e.i(94159),i=e.i(94447),a=e.i(57688),l=e.i(22016);e.s(["default",0,function({episodes:e,heading:n="Listen Now",headingId:o="listen-now-heading",actionLabel:s="All episodes →",actionHref:d="/episodes"}){return e.length?(0,r.jsx)("section",{className:"py-9 md:py-12","aria-labelledby":o,children:(0,r.jsxs)("div",{className:"homepage-section",children:[(0,r.jsxs)("div",{className:"mb-5 flex items-center gap-4 border-b border-[color:var(--home-border-warm)] pb-3",children:[(0,r.jsx)("h2",{id:o,className:"homepage-section-heading min-w-0",children:n}),(0,r.jsx)("span",{className:"flex-1"}),(0,r.jsx)(l.default,{href:d,className:"homepage-section-link shrink-0",children:s})]}),(0,r.jsx)("div",{className:"grid gap-x-6 gap-y-5 sm:grid-cols-2 xl:grid-cols-4",children:e.slice(0,4).map((e,n)=>(0,r.jsxs)("article",{className:`grid min-w-0 grid-cols-[112px_1fr] gap-4 ${n>0?"xl:border-l xl:border-[color:var(--home-border-warm)] xl:pl-6":""}`,children:[(0,r.jsx)(l.default,{href:e.href,className:"relative aspect-square overflow-hidden bg-background-elevated focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/50",children:(0,r.jsx)(a.default,{src:e.imageUrl,alt:e.imageAlt,fill:!0,sizes:"112px",className:"homepage-image-grade object-cover"})}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-col py-0.5",children:[(0,r.jsx)("p",{className:"homepage-meta truncate text-[color:var(--home-teal)]",children:e.showName||"Podcast"}),(0,r.jsx)("h3",{className:"homepage-editorial-title mt-1.5 line-clamp-2 text-[1.25rem] leading-[1.08]",children:(0,r.jsx)(l.default,{href:e.href,className:"hover:text-[color:var(--home-brass)]",children:e.title})}),(0,r.jsx)("p",{className:"homepage-meta mt-2",children:[(0,i.formatHomeDateLabel)(e.date),e.duration].filter(Boolean).join(" · ")}),e.audioUrl?(0,r.jsx)("div",{className:"mt-auto pt-3",children:(0,r.jsx)(t.default,{episode:e,size:"sm",tone:"brass"})}):null]})]},e.id))})]})}):null}])},9257,e=>{"use strict";var r=e.i(43476),t=e.i(47163),i=e.i(10980),a=e.i(32253),l=e.i(75254);let n=(0,l.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),o=(0,l.default)("podcast",[["path",{d:"M16.85 18.58a9 9 0 1 0-9.7 0",key:"d71mpg"}],["path",{d:"M8 14a5 5 0 1 1 8 0",key:"fc81rn"}],["circle",{cx:"12",cy:"11",r:"1",key:"1gvufo"}],["path",{d:"M13 17a1 1 0 1 0-2 0l.5 4.5a.5.5 0 1 0 1 0Z",key:"za5kbj"}]]);var s=e.i(55436),d=e.i(22016),u=e.i(18566);let c=[{label:"Home",href:"/",icon:(0,r.jsx)(n,{className:"h-5 w-5","aria-hidden":!0})},{label:"Podcasts",href:"/shows",icon:(0,r.jsx)(o,{className:"h-5 w-5","aria-hidden":!0}),matchPrefixes:["/shows","/episodes"]},{label:"Videos",href:"/videos",icon:(0,r.jsx)(a.Clapperboard,{className:"h-5 w-5","aria-hidden":!0}),matchPrefixes:["/videos"]},{label:"Stories",href:"/news",icon:(0,r.jsx)(i.BookOpen,{className:"h-5 w-5","aria-hidden":!0}),matchPrefixes:["/news","/category"]},{label:"Search",href:"/search",icon:(0,r.jsx)(s.Search,{className:"h-5 w-5","aria-hidden":!0})}];e.s(["default",0,function(){let e=(0,u.usePathname)();return(0,r.jsx)("nav",{className:"mobile-bottom-nav md:hidden","aria-label":"Mobile navigation",children:(0,r.jsx)("ul",{className:"flex w-full items-stretch",children:c.map(i=>{let a="/"===i.href?"/"===e:i.matchPrefixes?i.matchPrefixes.some(r=>e.startsWith(r)):e.startsWith(i.href);return(0,r.jsx)("li",{className:"flex flex-1",children:(0,r.jsxs)(d.default,{href:i.href,className:(0,t.cn)("flex flex-1 flex-col items-center justify-center gap-1 py-3 text-center transition-colors duration-200",a?"text-[color:var(--gold)]":"text-foreground-subtle hover:text-foreground"),style:a?{color:"var(--gold)"}:void 0,"aria-current":a?"page":void 0,children:[i.icon,(0,r.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.08em]",style:{fontFamily:"var(--font-condensed), 'Roboto Condensed', sans-serif"},children:i.label})]})},i.href)})})})}],9257)},67881,e=>{"use strict";var r=e.i(43476),t=e.i(47163),i=e.i(91918),a=e.i(25913),l=e.i(71645);let n=(0,a.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-[background-color,border-color,color,box-shadow,transform,filter] duration-[var(--duration-normal)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/25 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"h-[42px] rounded-full border border-brand bg-brand px-[18px] text-[13px] font-semibold tracking-[-0.01em] text-white shadow-none hover:-translate-y-
1px hover:border-brand-hover hover:bg-brand-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 rounded-full h-[42px] px-4",outline:"h-[42px] rounded-full border border-border bg-background-float px-4 text-[13px] font-medium text-foreground hover:-translate-y-px hover:border-border-strong hover:bg-background-surface",secondary:"h-[42px] rounded-full border border-border bg-background-float px-4 text-[13px] font-medium text-foreground hover:-translate-y-px hover:border-border-strong hover:bg-background-surface",ghost:"text-foreground-muted hover:bg-background-float hover:text-foreground rounded-full h-[42px] px-4",link:"text-primary underline-offset-4 hover:underline h-auto px-0 py-0"},size:{default:"h-[42px] px-[18px]",sm:"h-9 rounded-full px-3 text-xs",lg:"h-11 rounded-full px-6 text-sm",icon:"h-[42px] w-[42px] p-0"}},defaultVariants:{variant:"default",size:"default"}}),o=l.forwardRef(({className:e,variant:a,size:l,asChild:o=!1,...s},d)=>{let u=o?i.Slot:"button";return(0,r.jsx)(u,{className:(0,t.cn)(n({variant:a,size:l,className:e})),ref:d,...s})});o.displayName="Button",e.s(["Button",0,o])},23750,e=>{"use strict";var r=e.i(43476),t=e.i(47163);e.s(["Input",0,function({className:e,type:i,...a}){return(0,r.jsx)("input",{type:i,"data-slot":"input",className:(0,t.cn)("file:text-foreground placeholder:text-foreground-soft selection:bg-primary selection:text-primary-foreground border-border-strong flex h-11 w-full min-w-0 rounded-[1.1rem] border bg-[linear-gradient(180deg,rgba(255,255,255,0.045),rgba(255,255,255,0.02))] px-4 py-2 text-base text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] transition-[border-color,box-shadow,background-color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/35 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}])},94447,e=>{"use strict";var r=e.i(62275),t=e.i(66143);let i="/images/placeholder.png";function a(e){if(!e||"string"!=typeof e)return null;let r=e.trim();if(!r)return null;let t=Date.parse(r);return Number.isFinite(t)?t:null}function l(e){if(null==e||""===e)return;if("number"==typeof e){if(!Number.isFinite(e)||e<0)return;return n(Math.floor(e))}let r=e.trim();if(!r)return;if(r.includes(":")){let e=r.split(":").map(e=>Number(e));if(e.some(e=>!Number.isFinite(e)||e<0))return;if(3===e.length){let[r,t,i]=e;return r>0?`${r}:${String(t).padStart(2,"0")}:${String(i).padStart(2,"0")}`:`${t}:${String(i).padStart(2,"0")}`}if(2===e.length){let[r,t]=e;return`${r}:${String(t).padStart(2,"0")}`}return}let t=Number(r);
1if(Number.isFinite(t)&&!(t<0))return t>=60||r.includes(".")?n(Math.floor(t)):`${Math.floor(t)}:00`}function n(e){let r=Math.floor(e/3600),t=Math.floor(e%3600/60),i=e%60;return r>0?`${r}:${String(t).padStart(2,"0")}:${String(i).padStart(2,"0")}`:`${t}:${String(i).padStart(2,"0")}`}e.s(["HOME_FALLBACK_IMAGE",0,i,"formatHomeDateLabel",0,function(e){let r=a(e);if(null===r)return"";try{return new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return""}},"formatHomeDuration",0,l,"normalizeEpisode",0,function(e,a){let n=(0,t.sanitizePlainText)(e.title||"")||"Untitled episode",o=(0,t.sanitizePlainText)(e.meta?.subtitle||e.content||""),s=(0,t.sanitizePlainText)(e.show?.name||"")||"Unexplained",d=e.featured_image?.sizes?.full?.[0]||e.featured_image?.url||a||i,u=(0,r.getPublicEpisodeAudioUrl)(e)??void 0,c=l(e.meta?.duration),f=e.show?.slug?`/shows/${e.show.slug}/episode/${e.slug}`:"/episodes";return{kind:"episode",id:e.id,date:e.date||"",title:n,description:o,imageUrl:d,imageAlt:n,href:f,showName:s,duration:c,audioUrl:u,slug:e.slug,source:e}},"parseHomeDate",0,a])},62275,e=>{"use strict";function r(e){if("string"!=typeof e)return null;let r=e.trim();return r&&function(e){try{let r=new URL(e);return"http:"===r.protocol||"https:"===r.protocol}catch{return!1}}(r)?r:null}e.s(["getPublicEpisodeAudioUrl",0,function(e){if(!e)return null;let t=r(e.audio_url)??r(e.meta?.audio_url);return t||(r(e.premium_mp3_url)??r(e.meta?.premium_mp3_url))}])},91918,e=>{"use strict";var r=e.i(71645);function t(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}var i=e.i(43476),a=r.forwardRef((e,t)=>{let{children:a,...n}=e,s=r.Children.toArray(a),d=s.find(o);if(d){let e=d.props.children,a=s.map(t=>
1t!==d?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(l,{...n,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,a):null})}return(0,i.jsx)(l,{...n,ref:t,children:a})});a.displayName="Slot";var l=r.forwardRef((e,i)=>{let{children:a,...l}=e;if(r.isValidElement(a)){var n;let e,o,s=(n=a,(o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(o=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),d=function(e,r){let t={...r};for(let i in r){let a=e[i],l=r[i];/^on[A-Z]/.test(i)?a&&l?t[i]=(...e)=>{l(...e),a(...e)}:a&&(t[i]=a):"style"===i?t[i]={...a,...l}:"className"===i&&(t[i]=[a,l].filter(Boolean).join(" "))}return{...e,...t}}(l,a.props);return a.type!==r.Fragment&&(d.ref=i?function(...e){return r=>{let i=!1,a=e.map(e=>{let a=t(e,r);return i||"function"!=typeof a||(i=!0),a});if(i)return()=>{for(let r=0;r<a.length;r++){let i=a[r];"function"==typeof i?i():t(e[r],null)}}}}(i,s):s),r.cloneElement(a,d)}return r.Children.count(a)>1?r.Children.only(null):null});l.displayName="SlotClone";var n=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function o(e){return r.isValidElement(e)&&e.type===n}e.s(["Slot",0,a],91918)},25913,e=>{"use strict";var r=e.i(7670);let t=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.clsx;e.s(["cva",0,(e,r)=>a=>{var l;if((null==r?void 0:r.variants)==null)return i(e,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:n,defaultVariants:o}=r,s=Object.keys(n).map(e=>{let r=null==a?void 0:a[e],i=null==o?void 0:o[e];if(null===r)return null;let l=t(r)||t(i);return n[e][l]}),d=a&&Object.entries(a).reduce((e,r)=>{let[t,i]=r;return void 0===i||(e[t]=i),e},{});return i(e,s,null==r||null==(l=r.compoundVariants)?void 0:l.reduce((e,r)=>{let{class:t,className:i,...a}=r;return Object.entries(a).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...o,...d}[r]):({...o,...d})[r]===t})?[...e,t,i]:e},[]),null==a?void 0:a.class,null==a?void 0:a.className)}])}]);

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.