PageSourceSearch

https://static.wbur.org/app/prod/_next/static/chunks/2967.266372a7041776c8.js

js wbur.org collected 2026-10-01 07:42:10 UTC 4,712 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2967,6048],{2967:function(a,e,s){"use strict";s.r(e),s.d(e,{default:function(){return b}});var l=s(5893),n=s(7294),c=s(6048),i=s(3519),r=s(5995),d=s(7464),t=s(6075);let o=a=>{let e,{stories:s,livestream:n}=a,o=new r.Z(s[0]);if(n||(e=new d.Z(o)),n&&(e=(0,t.SF)()),!(null==e?void 0:e.audio()))return null;let u=(0,t.LU)(e.audio().audioLength),p=(0,t.p6)(o.publishDate,"MMMM DD, YYYY"),m=o.channelURL,h=o.headline;return(0,l.jsxs)(l.Fragment,{children:[m?(0,l.jsx)(i.default,{href:o.relativeURL,className:"card-link",children:(0,l.jsx)("h2",{className:"card-hdr card-hdr--md--scale",children:h})}):(0,l.jsx)("h2",{className:"card-hdr card-hdr--md--scale",children:h}),(0,l.jsxs)("div",{className:"card-meta",children:[(0,l.jsx)(c.default,{playableItem:e,renderSize:"sm"}),u&&(0,l.jsx)("span",{className:"card-meta-item card-time-duration",children:u}),p&&(0,l.jsx)("span",{className:"card-meta-item card-date",children:p})]})]})};var u=s(3372),p=s(6019),m=s.n(p);let h=a=>{let{data:e}=a,{attributes:s}=e,{url:c,title:i,livestream:r}=s,[d,t]=(0,n.useState)(),p=async a=>{let e=new URL("".concat(u.T5,"/audio"));Object.entries(a).filter(a=>a[1]).forEach(a=>{let[s,l]=a;return e.searchParams.append(s,l)});try{let a=await fetch(e);if(a.ok)return await a.json()}catch(a){throw Error("Error fetching audio from API.")}};return((0,n.useEffect)(()=>{let a=/(\d{4})\/(\d{2})\/((?:[^_]+)_(?:\d{2})(\d{2})_(?:.+))$/g.exec(c||"")||"";a.length>=4&&p({fileName:a[3],date:"".concat(a[1],"-").concat(a[2],"-").concat(a[4])}).then(a=>{t([{headline:i||a.body[0].wordpressTitle||"",audio:[a.body[0]],publishDate:a.body[0].airDate}])}),r&&t([{headline:i||"Listen Live",audio:[],publishDate:""}])},[]),null==d?void 0:d.length)?(0,l.jsx)("div",{className:"".concat(m().embed," ").concat(r&&"live"),children:(0,l.jsx)("article",{className:m().card,children:(0,l.jsx)(o,{stories:d,livestream:r})})}):null};var b=h},6048:function(a,e,s){"use strict";s.r(e);var l=s(5893),n=s(7294),c=s(3572),i=s(6428);let r=a=>{let e,s,{playableItem:r,track:d,renderSize:t="sm",children:o}=a,{activeAudio:u,createActiveAudio:p,playerState:m,setPlayerState:h,togglePlayerState:b}=(0,n.useContext)(c.Z),[x,y]=(0,n.useState)(),j=a=>{var e,s;a.preventDefault(),null===(e=null==document?void 0:document.querySelector("body"))||void 0===e||e.classList.remove("livestream-is-playing"),null==p||p(r);let l=null==document?void 0:document.querySelector(".global-player");null==l||l.classList.remove("close"),null==l||l.classList.add("open"),null==h||h("paused"),null==h||h("loading"),r.isEqual(u)&&"loading"!==m&&(null===(s=null==document?void 0:document.querySelector("body"))||void 0===s||s.classList.add("ondemand-is-playing"),null==b||b())};(0,n.useEffect)(()=>{"loading"!==m&&!d&&r.isEqual(u)&&(0,i.Z)("playing"===m?"Play":"Pause",r)},[m,d]);let f="icon-play icon-play--"+t,N="card-action playable";switch("double-hero"===t&&(N+=" card-action--double-hero"),(0,n.useEffect)(()=>{(null==u?void 0:u.id)===r.id&&y(m)},[u,m]),x){case"loading":r.isEqual(u)?(f+=" icon-play--loading",e=(0,l.jsxs)("span",{className:"icon-pause",children:[(0,l.jsx)("span",{className:"icon-pause-bar icon-pause-bar--1"}),(0,l.jsx)("span",{className:"icon-pause-bar icon-pause-bar--2"}),(0,l.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:"Stop"})]})):e=(0,l.jsx)("span",{className:"icon-play-shape",children:(0,l.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:s})});break;case"playing":f+=" icon-play--playing",s=r.isEqual(u)?"Pause":"Play",e=r.isEqual(u)?(0,l.jsxs)("span",{className:"icon-pause",children:[(0,l.jsx)("span",{className:"icon-pause-bar icon-pause-bar--1"}),(0,l.jsx)("span",{className:"icon-pause-bar icon-pause-bar--2"}),(0,l.jsx)("span",{className:"icon-playing-bar icon-playing-bar--1"}),(0,l.jsx)("span",{className:"icon-playing-bar icon-playing-bar--2"}),(0,l.jsx)("span",{className:"icon-playing-bar icon-playing-bar--3"}),(0,l.jsx)("span",{className:"icon-label",children:s})]}):(0,l.jsx)("span",{className:"icon-play-shape",children:(0,l.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:s})});break;default:s="paused"===x?"Resume":"Play",e=(0,l.jsx)("span",{className:"icon-play-shape",children:(0,l.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:s})})}return(0,l.jsxs)("button",{onClick:j,className:N,style:{textDecoration:"none"},"aria-label":s,tabIndex:0,children:[(0,l.jsx)("span",{className:f,children:e}),o&&(0,l.jsx)("span",{className:"button-player-children",children:o})]})};e.default=r},6019:function(a){a.exports={embed:"Audio_embed__wBXgw",card:"Audio_card__deSAr"}}}]);

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.