PageSourceSearch

https://static.wbur.org/app/prod/_next/static/chunks/9104.0143aa6a2daa9fcf.js

js wbur.org collected 2026-09-24 07:32:46 UTC 9,276 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9104,159,6048],{9104:function(e,a,l){l.r(a),l.d(a,{default:function(){return p}});var n=l(5893),i=l(7294),t=l(159),s=l(3279),r=l(3519),c=l(5995);let d=e=>{let{stories:a,limit:l,parentID:i,leadphoto:d}=e;if(!a)return null;let o=0,u=!1;return(0,n.jsx)(n.Fragment,{children:a.map((e,a)=>{if(!e||o+1>l-1||e.id===i)return null;o++;let p=null,h=new c.Z(e);return!u&&d&&o<2&&e.images.length>0&&null!=e.images[0]&&(u=!0,p=(0,n.jsx)(s.Z,{imageData:e.images[0],slot:"inlineInset",navLink:e.relativeURL})),(0,n.jsxs)("article",{className:"card card--stream card--stream--sm",children:[p,(0,n.jsxs)("div",{className:"card-text",children:[(0,n.jsx)(r.default,{id:"inset-card-"+(a+1),track:{event:"engagement",engagement_type:"recirculation",engagement_name:"article inset links",engagement_action:"click"},href:e.relativeURL,className:"card-link",children:(0,n.jsx)("h1",{className:"card-hdr",children:e.headline})}),(0,n.jsx)(t.default,{url:e.channelURL,source:e.channel,date:e.publishDate,contentItem:h})]})]},"inset-card"+a)})})};var o=l(3372);let u=e=>{let{data:a}=e,[l,t]=(0,i.useState)(0),[s,r]=(0,i.useState)([]),{attributes:c}=a,u=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",t=e.replace(/,/g,";"),s=[e?"sources=".concat(t):"","limit=".concat(l),"content=false",i&&n?"".concat(n,"=").concat(i):null,a?"mostviewed=".concat(a):""];try{let e=await fetch("".concat(o.T5,"/stories?").concat(s.filter(Boolean).join("&")));if(!e.ok)return;{let a=await e.json();r(a.body)}}catch(e){return}},p=!0;return(((null==c?void 0:c.leadphoto)==="false"||(null==c?void 0:c.disableleadphoto)==="true")&&(p=!1),(0,i.useEffect)(()=>{if(!c)return;let e=!c.limit||isNaN(parseInt(c.limit))?4:parseInt(c.limit);t(e+1);let{tag:a,topic:l,mostviewed:n,sources:i}=c;a&&u(i,n,"tag",a),l&&u(i,n,"topic",l),a||l||u(i,n)},[]),s.length)?(0,n.jsx)("div",{className:"inset-align",children:(0,n.jsxs)("div",{className:"recirc-inset",children:[(0,n.jsx)("div",{className:"recirc-story-continues",children:"Content continues below"}),(0,n.jsx)("div",{className:"recirc-inset-head",children:(0,n.jsx)("h4",{children:(null==c?void 0:c.title)||"More from WBUR"})}),(0,n.jsx)("div",{className:"recirc-inset-inner",children:(0,n.jsx)("div",{className:"recirc-inset-stories",children:(0,n.jsx)(d,{stories:s,limit:l,parentID:a.parentID,leadphoto:p})})})]})}):null};var p=u},159:function(e,a,l){l.r(a);var n=l(5893),i=l(7294),t=l(7312),s=l(6048),r=l(3519),c=l(6075),d=l(5995),o=l(7464);let u=e=>{let a,l,{children:u,contentItem:p,date:h="",dateFormat:m="",hidePlayer:x,source:f,url:v,playerSize:g,withSourceLabels:w,display:j}=e;if(!f)return null;let{channelSlug:b,routeType:N,relativeURL:y}=(0,i.useContext)(t.Z),k=new d.Z(p);if(!x&&k.hasAudio()){let e=new o.Z(k),i=(0,c.LU)(e.audio().audioLength);a=(0,n.jsx)(s.default,{playableItem:e,renderSize:g}),l=(0,n.jsx)("span",{className:"card-meta-item card-time-duration",children:i})}let S=!1===w?null:((e,a)=>{let l=null==p?void 0:p.newsSection,i="",t="";return("program"===a||"taxonomy"===a||"archive"===a)&&("hereandnow"===e||"onpoint"===e||"cognoscenti"===e)&&"/"!==y?null:((null==l?void 0:l.name)?(i=l.name,t="/news/section/"+l.slug):(i="WBUR News"==f?"Local Coverage":f,t=v||""),(0,n.jsx)("div",{className:"card-meta-item card-source",children:(0,n.jsx)(r.default,{href:t||void 0,className:"card-source-link",children:i})}))})(b,N),q=((e,a)=>{if(!e)return null;let l=(0,c.p6)(e,a);return("/"===y||j&&(null==j?void 0:j.indexOf("disableDate"))>-1)&&(l=""),(0,n.jsx)("span",{className:"card-meta-item card-date",children:l})})(h,m);return a||S||q?(0,n.jsxs)("div",{className:"card-meta",children:[u,a,(0,n.jsxs)("span",{children:[S,l,q]})]}):null};a.default=u},7126:function(e,a,l){l.d(a,{Z:function(){return d}});var n=l(5893);l(7294);var i=l(7968),t=l(3519);let s=e=>{let{id:a,navLink:l,track:i,altText:s,imgSrc:r,srcSet:c,sizes:d,variant:o="default",eager:u,width:p,height:h,css:m}=e,x="square"===o,f="".concat(null!=m?m:""," card-image").trim(),v=(0,n.jsx)("img",{alt:s,src:r,srcSet:c,sizes:d,width:x?1:p,height:x?1:h,style:x?{aspectRatio:"1 / 1",objectFit:"cover"}:void 0,className:f,loading:u?"eager":"lazy"});return l?(0,n.jsx)(t.default,{id:a,track:i,href:l,className:"card-fig-link",children:v}):v}
1,r=["hero","article"],c=e=>{var a,l;let{imageData:t,slot:c,variant:d="default",sizesOverride:o,eager:u,id:p,caption:h,navLink:m,linkAltText:x,cssClass:f="",track:v}=e;if(!t)return null;let g=(0,i.Nd)(t),w=null!=o?o:i.Yj[c],j=null!=u?u:r.includes(c),b=null!==(a=t.alttext||t.caption)&&void 0!==a?a:"";b=b.replace(/"/g,"&quot;");let N={id:p,navLink:m,track:v,altText:x||b,imgSrc:null!==(l=null==g?void 0:g.fallbackSrc)&&void 0!==l?l:t.url,srcSet:null==g?void 0:g.srcSet,sizes:w,variant:d,eager:j,width:t.width,height:t.height};return(null==h?void 0:h.length)?(0,n.jsxs)("figure",{className:"card-fig ".concat(f),children:[(0,n.jsx)(s,{...N}),(0,n.jsx)("figcaption",{className:"article-fig-caption",children:h})]}):(0,n.jsx)(s,{...N,css:"card-fig ".concat(f)})};var d=c},3279:function(e,a,l){l.d(a,{Z:function(){return n.Z}});var n=l(7126)},6048:function(e,a,l){l.r(a);var n=l(5893),i=l(7294),t=l(3572),s=l(6428);let r=e=>{let a,l,{playableItem:r,track:c,renderSize:d="sm",children:o}=e,{activeAudio:u,createActiveAudio:p,playerState:h,setPlayerState:m,togglePlayerState:x}=(0,i.useContext)(t.Z),[f,v]=(0,i.useState)(),g=e=>{var a,l;e.preventDefault(),null===(a=null==document?void 0:document.querySelector("body"))||void 0===a||a.classList.remove("livestream-is-playing"),null==p||p(r);let n=null==document?void 0:document.querySelector(".global-player");null==n||n.classList.remove("close"),null==n||n.classList.add("open"),null==m||m("paused"),null==m||m("loading"),r.isEqual(u)&&"loading"!==h&&(null===(l=null==document?void 0:document.querySelector("body"))||void 0===l||l.classList.add("ondemand-is-playing"),null==x||x())};(0,i.useEffect)(()=>{"loading"!==h&&!c&&r.isEqual(u)&&(0,s.Z)("playing"===h?"Play":"Pause",r)},[h,c]);let w="icon-play icon-play--"+d,j="card-action playable";switch("double-hero"===d&&(j+=" card-action--double-hero"),(0,i.useEffect)(()=>{(null==u?void 0:u.id)===r.id&&v(h)},[u,h]),f){case"loading":r.isEqual(u)?(w+=" icon-play--loading",a=(0,n.jsxs)("span",{className:"icon-pause",children:[(0,n.jsx)("span",{className:"icon-pause-bar icon-pause-bar--1"}),(0,n.jsx)("span",{className:"icon-pause-bar icon-pause-bar--2"}),(0,n.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:"Stop"})]})):a=(0,n.jsx)("span",{className:"icon-play-shape",children:(0,n.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:l})});break;case"playing":w+=" icon-play--playing",l=r.isEqual(u)?"Pause":"Play",a=r.isEqual(u)?(0,n.jsxs)("span",{className:"icon-pause",children:[(0,n.jsx)("span",{className:"icon-pause-bar icon-pause-bar--1"}),(0,n.jsx)("span",{className:"icon-pause-bar icon-pause-bar--2"}),(0,n.jsx)("span",{className:"icon-playing-bar icon-playing-bar--1"}),(0,n.jsx)("span",{className:"icon-playing-bar icon-playing-bar--2"}),(0,n.jsx)("span",{className:"icon-playing-bar icon-playing-bar--3"}),(0,n.jsx)("span",{className:"icon-label",children:l})]}):(0,n.jsx)("span",{className:"icon-play-shape",children:(0,n.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:l})});break;default:l="paused"===f?"Resume":"Play",a=(0,n.jsx)("span",{className:"icon-play-shape",children:(0,n.jsx)("span",{className:"icon-label","data-note":"for-screen-readers",children:l})})}return(0,n.jsxs)("button",{onClick:g,className:j,style:{textDecoration:"none"},"aria-label":l,tabIndex:0,children:[(0,n.jsx)("span",{className:w,children:a}),o&&(0,n.jsx)("span",{className:"button-player-children",children:o})]})};a.default=r},7968:function(e,a,l){l.d(a,{Nd:function(){return s},Yj:function(){return n},fY:function(){return t}});let n={hero:"100vw",article:"(min-width: 1120px) 700px, 100vw",articleBreakout:"(min-width: 1120px) 1100px, 100vw",grid4col:"(min-width: 1024px) 340px, (min-width: 550px) 50vw, 100vw",grid6col:"(min-width: 1024px) 225px, (min-width: 550px) 33vw, 50vw",doubleHero:"(min-width: 1024px) 700px, (min-width: 550px) 50vw, 100vw",horizontal:"(min-width: 800px) 50vw, 100vw",stream:"(min-width: 550px) 140px, 20vw",inlineInset:"(min-width: 1120px) 340px, 100vw",captionedAligned:"(min-width: 1120px) 340px, 50vw",squareSmall:"100px",squareMedium:"245px",squareLarge:"300px"},i=["medium","medium_large","large","1536x1536","breakout","2048x2048","superbreakout"];function t(e){if(!e||0===Object.keys(e).length)return null;let a=[];for(let l of i){let n=e[l];
1(null==n?void 0:n.file)&&n.width&&a.push({file:n.file,width:n.width})}let l=e.full;if((null==l?void 0:l.file)&&l.width&&a.push({file:l.file,width:l.width}),0===a.length)return null;a.sort((e,a)=>e.width-a.width);let n=new Set,t=a.filter(e=>!n.has(e.width)&&(n.add(e.width),!0));return{srcSet:t.map(e=>"".concat(e.file," ").concat(e.width,"w")).join(", "),fallbackSrc:t[t.length-1].file}}function s(e){return t(e.sizes)}}}]);

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.