PageSourceSearch

https://tbxunfiltered.com/assets/LiveNow-CTl7AyMs.js

js tbxunfiltered.com collected 2026-10-09 22:40:39 UTC 3,593 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";var r=e(t(),1),i=n(),a=`https://www.youtube.com/@TBXUnfiltered`;function o(e){return e?new Intl.DateTimeFormat(`en-US`,{timeZone:`America/Chicago`,weekday:`long`,month:`long`,day:`numeric`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`}).format(new Date(e)):null}function s(){let[e,t]=(0,r.useState)(null),[n,s]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=!0,n=async()=>{try{let n=await fetch(`/api/youtube-status`,{cache:`no-store`});if(!n.ok)throw Error(`status unavailable`);let r=await n.json();e&&(t(r),s(!1))}catch{e&&s(!0)}};n();let r=()=>{document.hidden||n()},i=window.setInterval(n,3e4);return document.addEventListener(`visibilitychange`,r),window.addEventListener(`focus`,r),()=>{e=!1,window.clearInterval(i),document.removeEventListener(`visibilitychange`,r),window.removeEventListener(`focus`,r)}},[]);let c=e?.state===`live`?`LIVE NOW`:e?.state===`upcoming`?`NEXT LIVE SHOW`:`LATEST SHOW`,l=o(e?.scheduledStartTime);return(0,i.jsx)(`section`,{className:`live-now ${e?.state===`live`?`is-live`:``}`,"aria-labelledby":`live-now-title`,children:(0,i.jsxs)(`div`,{className:`live-now-inner`,children:[(0,i.jsxs)(`div`,{className:`live-now-heading`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`span`,{className:`live-now-index`,children:`TBX UNFILTERED / YOUTUBE LIVE FEED`}),(0,i.jsxs)(`h2`,{id:`live-now-title`,children:[(0,i.jsx)(`i`,{}),` `,c]})]}),(0,i.jsxs)(`a`,{href:a,target:`_blank`,rel:`noreferrer`,children:[`VIEW CHANNEL `,(0,i.jsx)(`span`,{children:`→`})]})]}),!e&&!n&&(0,i.jsxs)(`div`,{className:`live-now-loading`,"aria-label":`Loading the latest TBX show`,children:[(0,i.jsx)(`span`,{}),(0,i.jsx)(`span`,{}),(0,i.jsx)(`span`,{})]}),n&&(0,i.jsxs)(`a`,{className:`live-now-fallback`,href:a,target:`_blank`,rel:`noreferrer`,children:[(0,i.jsx)(`strong`,{children:`WATCH TBX UNFILTERED ON YOUTUBE`}),(0,i.jsx)(`span`,{children:`The live signal is refreshing. Open the channel directly →`})]}),e&&(0,i.jsxs)(`div`,{className:`live-now-card`,children:[(0,i.jsxs)(`div`,{className:`live-now-media`,children:[e.state===`live`?(0,i.jsx)(`iframe`,{src:`https://www.youtube-nocookie.com/embed/${e.videoId}?rel=0`,title:e.title,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowFullScreen:!0}):(0,i.jsxs)(`a`,{href:e.watchUrl,target:`_blank`,rel:`noreferrer`,"aria-label":`Watch ${e.title} on YouTube`,children:[(0,i.jsx)(`img`,{src:e.thumbnail,alt:``}),(0,i.jsx)(`span`,{className:`live-now-play`,children:(0,i.jsx)(`b`,{children:`▶`})})]}),(0,i.jsxs)(`span`,{className:`live-now-badge`,children:[(0,i.jsx)(`i`,{}),` `,c]})]}),(0,i.jsxs)(`div`,{className:`live-now-copy`,children:[(0,i.jsxs)(`span`,{className:`live-now-kicker`,children:[`TBX UNFILTERED // `,e.state===`upcoming`?`SCHEDULED BROADCAST`:`INDEPENDENT COVERAGE`]}),(0,i.jsx)(`h3`,{children:e.title}),l&&(0,i.jsx)(`p`,{className:`live-now-time`,children:l}),(0,i.jsx)(`p`,{children:e.state===`live`?`The conversation is happening now. Watch here or join the live chat on YouTube.`:e.state===`upcoming`?`Set your reminder and join Glen and Jennifer when TBX goes live.`:`Watch the most recent TBX Unfiltered livestream and continue the conversation.`}),(0,i.jsxs)(`a`,{className:`button button-primary`,href:e.watchUrl,target:`_blank`,rel:`noreferrer`,children:[e.state===`upcoming`?`SET A REMINDER`:e.state===`live`?`JOIN LIVE ON YOUTUBE`:`WATCH THE EPISODE`,` `,(0,i.jsx)(`span`,{children:`→`})]})]})]})]})})}export{s 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.