PageSourceSearch

https://static.wbur.org/app/prod/_next/static/chunks/pages/[channe…/[section]/archive-b14b36c512ac3b89.js

js wbur.org collected 2026-09-24 07:31:19 UTC 10,712 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7977],{285:function(e){var t,n,r,a,i,s,o,c,l,u,d,h;e.exports=(t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},o=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var a=1;a<=24;a+=1)if(e.indexOf(r(a,0,t))>-1){n=a>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=o(e)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l},function(e,r,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var i=r.prototype,c=i.parse;i.parse=function(e){var r=e.date,i=e.utc,o=e.args;this.$u=i;var l=o[1];if("string"==typeof l){var u=!0===o[2],d=!0===o[3],f=o[2];d&&(f=o[2]),s=this.$locale(),!u&&f&&(s=a.Ls[f]),this.$d=function(e,r,a){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*e);var i=(function(e){var r,a;r=e,a=s&&s.formats;for(var i=(e=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var i=r&&r.toUpperCase();return n||a[r]||t[r]||a[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(n),o=i.length,c=0;c<o;c+=1){var l=i[c],u=h[l],d=u&&u[0],f=u&&u[1];i[c]=f?{regex:d,parser:f}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<o;n+=1){var a=i[n];if("string"==typeof a)r+=a.length;else{var s=a.regex,c=a.parser,l=e.slice(r),u=s.exec(l)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(e),o=i.year,c=i.month,l=i.day,u=i.hours,d=i.minutes,f=i.seconds,m=i.milliseconds,v=i.zone,M=new Date,x=l||(o||c?1:M.getDate()),w=o||M.getFullYear(),p=0;o&&!c||(p=c>0?c-1:M.getMonth());var y=u||0,Y=d||0,g=f||0,D=m||0;return v?new Date(Date.UTC(w,p,x,y,Y,g,D+60*v.offset*1e3)):a?new Date(Date.UTC(w,p,x,y,Y,g,D)):new Date(w,p,x,y,Y,g,D)}catch(e){return new Date("")}}(r,l,i),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),(u||d)&&r!=this.format(l)&&(this.$d=new Date("")),s={}}else if(l instanceof Array)for(var m=l.length,v=1;v<=m;v+=1){o[1]=l[v-1];var M=a.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}v===m&&(this.$d=new Date(""))}else c.call(this,e)}})},6036:function(e){e.exports=function(e,t,n){var r=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var s=e.name?e:e.$locale(),o=a(s[t]),c=a(s[n]),l=o||c.map(function(e){return e.slice(0,r)});if(!i)return l;var u=s.weekStart;return l.map(function(e,t){return l[(t+(u||0))%7]})},s=function(){return n.Ls[n.locale()]},o=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return o(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return o(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(s(),"months")},n.monthsShort=function(){return i(s(),"monthsShort","months",3)},n.weekdays=function(e){return i(s(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(s(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(s(),"weekdaysMin","weekdays",2,e)}}},6688:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[channel]/section/[section]/archive",function(){return n(8019)}])},2596:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(5893),a=n(7294),i=n(1163),s=n(3372),o=n(6075),c=n(5357),l=n(4345),u=n(8420),d=n(963),h=n(6681),f=n(907),m=n.n(f),v=n(7484),M=n.n(v),x=n(6036),w=n.n(x);M().extend(w());let p=e=>{let{setDate:t,filterDate:n,channelURL:s}=e,o=(0,i.useRouter)(),{query:c}=o,{date:l}=c,[u,d]=(0,a.useState)([]),[h,f]=(0,a.useState)(""),[v,x]=(0,a.useState)(""),[w,p]=(0,a.useState)("");(0,a.useEffect)(()=>
1{if(!l)return;let e=l.toString().split("-");f(e[0]),x(e[1]),p(e[2])},[l]),(0,a.useEffect)(()=>{let e=[h,v,w].filter(Boolean).join("-");t(e);let n=M()(e).format("YYYY-MM");M()(n).isValid()&&d(y(n))},[h,v,w]);let y=e=>{let t=M()(e,"YYYY-MM").daysInMonth();return Array.from(Array(t).keys()).map(e=>{let t=String(e+1).padStart(2,"0");return(0,r.jsx)("option",{value:t,children:t},"df-dd-"+t)})},Y=e=>{"year"===e.target.name&&f(e.target.value),"month"===e.target.name&&(x(e.target.value),p("")),"day"===e.target.name&&p(e.target.value)},g=e=>{e.preventDefault();let t="".concat(s,"/archive?date=").concat(n);o.push(t,void 0,{shallow:!0})},D=()=>{let e=M()().year(),t=[];for(let n=e;n>=2014;n--)t.push(n.toString());return(0,r.jsxs)("select",{defaultValue:h,id:"archiveYear",name:"year",onChange:Y,children:[(0,r.jsx)("option",{value:"",children:"Year"}),t.map(e=>(0,r.jsx)("option",{value:e,children:e},"df-y"+e))]})},j=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("select",{defaultValue:v,id:"archiveMonth",name:"month",onChange:Y,children:[(0,r.jsx)("option",{value:"",children:"Month"}),M().months().map((e,t)=>(0,r.jsx)("option",{value:String(t+1).padStart(2,"0"),children:e},"df-mm-"+(t+1)))]})}),S=!0;return h&&(S=!1),(0,r.jsx)("section",{className:m()["date-filter"],children:(0,r.jsxs)("form",{children:[(0,r.jsxs)("div",{className:"form-select",children:[(0,r.jsx)(D,{}),(0,r.jsx)("div",{className:"form-select-arrow"})]}),(0,r.jsxs)("div",{className:"form-select",children:[(0,r.jsx)(j,{}),(0,r.jsx)("div",{className:"form-select-arrow"})]}),(0,r.jsxs)("div",{className:"form-select",children:[(0,r.jsxs)("select",{value:w,id:"archiveDay",name:"day",onChange:Y,children:[(0,r.jsx)("option",{value:"",children:"Day"}),u]}),(0,r.jsx)("div",{className:"form-select-arrow"})]}),(0,r.jsx)("button",{className:"form-button button-primary",onClick:g,disabled:S,children:"Filter"})]})})};var y=n(285),Y=n.n(y),g=n(8734),D=n.n(g),j=n(7600),S=n.n(j);M().extend(Y()),M().extend(D());let k=e=>{let{title:t,date:n,page:a}=e;if(a&&a>1)return null;let i="The latest from ".concat(t);return n&&M()(n,"YYYY-MM-DD",!0).isValid()&&(i=M()(n,"YYYY-MM-DD").format("dddd, MMMM Do YYYY")),(0,r.jsx)(u.default,{css:S()["section--subhead"],children:(0,r.jsx)("div",{className:"row row--river row--centered",children:(0,r.jsx)("div",{id:"zone",className:"zone",children:(0,r.jsx)("p",{children:i})})})})},_=e=>{let{channel:t}=e,{query:n}=(0,i.useRouter)(),{date:f}=n,[m,v]=(0,a.useState)(!0),[M,x]=(0,a.useState)(1),[w,y]=(0,a.useState)(""),[Y,g]=(0,a.useState)([]),[D,j]=(0,a.useState)(),_=null==t?void 0:t.source,N=(null==n?void 0:n.section)&&"cognoscenti"!==n.section?"newsSection":"source",L=async()=>{try{let e=await fetch("".concat(s.T5,"/stories?limit=20&").concat(N,"=").concat(_,"&page=").concat(M,"&ctx=archive"));if(e.ok){let t=await e.json();g(t.body),j(t.links),v(!1)}else v(!1)}catch(e){v(!1)}},$=async()=>{try{let e=await fetch("".concat(s.T5,"/stories?limit=20&").concat(N,"=").concat(_,"&date=").concat(f,"&page=").concat(M));if(e.ok){let t=await e.json();g(t.body),j(t.links),v(!1)}else v(!1),g([])}catch(e){v(!1),g([])}};(0,a.useEffect)(()=>{f||(v(!0),L()),f&&(v(!0),$()),(0,o.k3)()},[f,M]);let b=null==D?void 0:D.previous,T=null==D?void 0:D.next;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(d.Z,{className:S().archive,children:[(0,r.jsx)("header",{className:"article-section--title article-section--title--archive",children:(0,r.jsx)("div",{className:"row row--river row--centered",children:(0,r.jsx)("div",{className:"row--inner",children:(0,r.jsxs)("div",{id:"zone",className:"zone",children:[(0,r.jsx)("h1",{className:"page-hdr",children:"Archives"}),(0,r.jsx)(p,{channelURL:null==t?void 0:t.relativeURL,filterDate:w,setDate:y})]})})})}),m?(0,r.jsx)(h.Z,{type:"box"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{title:null==t?void 0:t.title,date:null==f?void 0:f.toString(),page:M}),(0,r.jsx)(l.default,{index:1,contentItems:Y,adPosition:10,endsWith:"adBanner",routeType:"archive",source:null==t?void 0:t.title,name:"channel-archive"})]}),(0,r.jsx)(u.default,{children:(0,r.jsx)(c.Z,{previousUrl:b,nextUrl:T,setPage:x,classes:"row row--river row--centered"})})]})})};var N=_},8019:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return o}});var r=n(5893),a=n(2596),i=n(6075);let s=e=>{let{channels:t,section:n}=e,s=(0,i.mN)(t,n);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Z,{channel:s})})};var o=!0;t.default=s}
1,7600:function(e){e.exports={archive:"Archive_archive__v5Txs","section--subhead":"Archive_section--subhead__3AYnw"}},907:function(e){e.exports={"date-filter":"DateFilter_date-filter___17__"}}},function(e){e.O(0,[5761,5945,8977,9774,2888,179],function(){return e(e.s=6688)}),_N_E=e.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.