PageSourceSearch

https://static.wbur.org/app/prod/_next/static/chunks/6048.54120870cb3957cc.js

js wbur.org collected 2026-10-01 07:43:08 UTC 2,748 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6048],{6048:function(a,s,e){e.r(s);var l=e(5893),n=e(7294),c=e(3572),i=e(6428);let o=a=>{let s,e,{playableItem:o,track:r,renderSize:p="sm",children:d}=a,{activeAudio:u,createActiveAudio:t,playerState:b,setPlayerState:m,togglePlayerState:y}=(0,n.useContext)(c.Z),[h,x]=(0,n.useState)(),N=a=>{var s,e;a.preventDefault(),null===(s=null==document?void 0:document.querySelector("body"))||void 0===s||s.classList.remove("livestream-is-playing"),null==t||t(o);let l=null==document?void 0:document.querySelector(".global-player");null==l||l.classList.remove("close"),null==l||l.classList.add("open"),null==m||m("paused"),null==m||m("loading"),o.isEqual(u)&&"loading"!==b&&(null===(e=null==document?void 0:document.querySelector("body"))||void 0===e||e.classList.add("ondemand-is-playing"),null==y||y())};(0,n.useEffect)(()=>{"loading"!==b&&!r&&o.isEqual(u)&&(0,i.Z)("playing"===b?"Play":"Pause",o)},[b,r]);let j="icon-play icon-play--"+p,g="card-action playable";switch("double-hero"===p&&(g+=" card-action--double-hero"),(0,n.useEffect)(()=>{(null==u?void 0:u.id)===o.id&&x(b)},[u,b]),h){case"loading":o.isEqual(u)?(j+=" icon-play--loading",s=(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"})]})):s=(0,l.jsx)("span",{className:"icon-play-shape",children:(0,l.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:e})});break;case"playing":j+=" icon-play--playing",e=o.isEqual(u)?"Pause":"Play",s=o.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:e})]}):(0,l.jsx)("span",{className:"icon-play-shape",children:(0,l.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:e})});break;default:e="paused"===h?"Resume":"Play",s=(0,l.jsx)("span",{className:"icon-play-shape",children:(0,l.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:e})})}return(0,l.jsxs)("button",{onClick:N,className:g,style:{textDecoration:"none"},"aria-label":e,tabIndex:0,children:[(0,l.jsx)("span",{className:j,children:s}),d&&(0,l.jsx)("span",{className:"button-player-children",children:d})]})};s.default=o}}]);

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.