const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BOWdhGJm.js","./DkVc8ml1.js","./entry.B-9imJDP.css","./Bee4vcvU.js","./z5_2blRh.js","./HorizontalDrag.BhXVECmz.css"])))=>i.map(i=>d[i]); import{t as R,c as ae,d as L,a as v,o as d,b as f,_ as ue,r as y,w as Oe,e as o,f as h,u as n,F as D,g as I,h as Fe,i as S,j as Ve,s as ie,k as He,l as P,m as me,n as je,p as w,q as B,v as ge,x as _e,y as pe,z as G,A as fe,B as he,C as qe,D as ze,E as Ye,G as re,H as Qe,I as Xe,J as Je,K as Ke,L as Ze,M as et,N as tt,O as W,P as st,Q as nt,R as ce,S as ot,T as lt,U as at,V as it,W as rt,X as ct,Y as dt,Z as ut,$ as mt,a0 as gt,a1 as _t,a2 as pt,a3 as ft}from"./DkVc8ml1.js";import{_ as ht,a as bt,b as vt}from"./CRyMimcY.js";import{_ as be}from"./cryux7xx.js";import{_ as ve}from"./Chj2qhWx.js";import{u as wt}from"./By4flpf1.js";import{_ as kt}from"./CyFZTX-x.js";import{C as de}from"./oUysOG0k.js";import{u as yt,a as xt,b as Ct}from"./DCsHOHvH.js";import{u as St,a as $t}from"./DL8n8LuM.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="88399586-37c9-401d-94d1-3f2dbade82a4",t._sentryDebugIdIdentifier="sentry-dbid-88399586-37c9-401d-94d1-3f2dbade82a4")}catch{}})();function Tt(t,s){const l=R(t);if(isNaN(s))return ae(t,NaN);const r=l.getDate(),i=ae(t,l.getTime());i.setMonth(l.getMonth()+s+1,0);const a=i.getDate();return r>=a?i:(l.setFullYear(i.getFullYear(),i.getMonth(),r),l)}function At(t,s){const l=R(t),r=R(s),i=l.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Nt(t,s){return Tt(t,-6)}const Dt={class:"newsletter-article"},Lt=L({__name:"NewsletterArticle",emits:["submit"],setup(t,{emit:s}){const l=s;return(r,i)=>{const a=ue;return d(),v("div",Dt,[f(a,{source:"gothamist_articleBody",small:"","show-blurb":!1,"alt-design":"",outlined:"","submit-button-icon":"pi-arrow-right",onSubmit:i[0]||(i[0]=g=>l("submit"))})])}}}),Mt={class:"regwall"},It={class:"regwall-wrapper mt-5 mb-4"},Wt={class:"regwall-form-wrapper"},Et={key:0,class:"regwall-form-error"},Pt={class:"regwall-success-buttons"},Rt={class:"regwall-decline-buttons"},Bt=L({__name:"NewsletterContentWall",emits:["signUp","wallCleared"],setup(t,{emit:s}){const l=s,r=y("");function i(){r.value="declined"}function a(){r.value=""}function g(){l("wallCleared")}const p=y(!0),x=y(["Gothamist Membership","Gothamist - Early Addition"]),k=y(null),e=wt({email:k,selectedLists:x,consent:p,source:"gothamist_archive_regWall"});function b(_){k.value=_,e.submitForm()}return Oe(e.isSuccess,_=>{_&&(l("signUp"),setTimeout(()=>{var u;(u=document.querySelector(".regwall-success-buttons button"))==null||u.focus()},1),setTimeout(g,5e3))}),(_,u)=>{const T=Ve,A=He;return d(),v("div",Mt,[o("div",It,[u[10]||(u[10]=o("hr",{class:"black mb-4"},null,-1)),!n(e).isSuccess.value&&n(r)!=="declined"?(d(),v(D,{key:0},[u[3]||(u[3]=o("h2",{class:"regwall-header"}," Read this story completely free ",-1)),u[4]||(u[4]=o("div",{class:"regwall-text mb-4"},[I(" To continue reading, sign up for our daily newsletter and get unlimited access to Gothamist.com. "),o("a",{class:"regwall-link",href:"https://gothamist.com/archived-stories-faq"},"Why am I seeing this?")],-1)),o("form",{class:"gtm__click-tracking regwall-form",onSubmit:u[0]||(u[0]=Fe(()=>{},["prevent"]))},[u[2]||(u[2]=o("label",{for:"newsletter",class:"sr-only"}," newsletter signup ",-1)),o("div",Wt,[f(T,{class:"mt-2","show-no-thanks":!0,"submit-button-text":"Sign Up","is-submitting":n(e).isSubmitting.value,"submission-status":n(e).isError.value?"error":n(e).isSuccess.value?"success":"","alt-design":!1,outlined:!1,small:!1,onNoThanksClick:i,onSubmit:b},{default:S(()=>u[1]||(u[1]=[I(" By submitting your information, you're agreeing to receive communications from New York Public Radio in accordance with our "),o("a",{href:"https://www.wnyc.org/terms/",target:"_blank",rel:"noopener noreferrer"},"Terms",-1),I(". ")])),_:1},8,["is-submitting","submission-status"])]),n(e).isError.value?(d(),v("div",Et," Sorry, there was an error with your submission. Please try again! ")):h("",!0)],32)],64)):h("",!0),n(e).isSuccess.value?(d(),v(D,{key:1},[u[5]||(u[5]=o("h2",{class:"regwall-header"}," Thanks for subscribing! ",-1)),u[6]||(u[6]=o("div",{class:"regwall-text mb-4"}," You just got yourself access to all our articles, old and new. ",-1)),o("div",Pt,[f(n(ie),{class:"regwall-button regwall-start-button p-button-rounded",label:"Start Reading",onClick:g})])],64)):h("",!0),n(r)==="declined"?(d(),v(D,{key:2},[u[8]||(u[8]=o("h2",{class:"regwall-header"}," No hard feelings... ",-1)),u[9]||(u[9]=o("div",{class:"regwall-text mb-4"}," You can still read the latest and greatest stories on Gothamist.com ",-1)),o("div",Rt,[f(n(ie),{class:"regwall-button regwall-back-button p-button-rounded",label:"Go back to sign up",onClick:a}),f(A,{to:"/",class:"regwall-link"},{default:S(()=>u[7]||(u[7]=[I(" Back to home ")])),_:1})])],64)):h("",!0)])])}}}),Ut=L({__name:"ContentWall",emits:["signUp","dismissed"],setup(t,{emit:s}){const l=s,r=y(!1);function i(){l("signUp")}function a(){r.value=!0,l("dismissed")}return(g,p)=>(d(),v("div",null,[n(r)?P(g.$slots,"full",{key:0}):h("",!0),n(r)?h("",!0):P(g.$slots,"leadin",{key:1}),n(r)?h("",!0):P(g.$slots,"wall",{key:2,dismiss:a,signUp:i})]))}});function Gt(t,s){const l={threshold:[0,.75]},r=(a,g)=>{a.some(p=>p.isIntersecting&&p.intersectionRatio>=.75)&&(g.disconnect(),s())};let i;me(()=>{i=new IntersectionObserver(r,l),t.value&&i.observe(t.value)}),je(()=>{i.disconnect()})}const Ot=L({__name:"GothamistWalledArticle",props:{article:{}},emits:["wallDismissed","wallSeen","allBlocksMounted"],setup(t,{emit:s}){const l=s;function r(){l("wallSeen")}function i(){l("wallDismissed")}function a(){l("allBlocksMounted")}const g=y();return Gt(g,r),(p,x)=>{const k=ve,e=Bt,b=Ut;return d(),w(b,{class:"content-wall",onDismissed:i},{full:S(()=>[f(k,{class:"article-body","streamfield-blocks":p.article.body,onAllBlocksMounted:a},null,8,["streamfield-blocks"])]),leadin:S(()=>[f(k,{class:"article-body leadin","streamfield-blocks":p.article.body},null,8,["streamfield-blocks"])]),wall:S(_=>[o("div",{ref_key:"contentWallRef",ref:g,class:"wall-wrapper"},[f(e,{onWallCleared:_.dismiss,onSignUp:_.signUp},null,8,["onWallCleared","onSignUp"])],512)]),_:1})}}}),Ft={key:0,class:"tags flex align-items-start mb-4 md:mb-6"},Vt={key:0,class:"type-caption mr-3"},Ht={class:"flex gap-1 align-items-center flex-wrap"},jt={__name:"ArticleTags",props:{tags:{type:Array,default:null},label:{type:String,default:"Tagged"}},emits:["tag-click"],setup(t,{emit:s}){const l=s;return(r,i)=>t.tags?(d(),v("div",Ft,[t.label?(d(),v("p",Vt,B(t.label),1)):h("",!0),o("div",Ht,[(d(!0),v(D,null,ge(t.tags,a=>(d(),w(_e,{key:a.name,class:"tag-small",name:a.name,slug:`/tags/${a.slug}`,onClick:g=>l("tag-click",a)},null,8,["name","slug","onClick"]))),128))])])):h("",!0)}},qt={class:"comments-section"},zt=["data-post-url","data-article-tags","data-post-id"],Yt={__name:"CommentsSection",props:{article:{type:Object,default:null}},setup(t){const s=t,l=G();function r(){return(s.article.tags||[]).map(g=>g.name).join(", ")}function i(){return s.article.url}return pe({script:[{src:`https://launcher.spot.im/spot/${l.public.OPENWEB_SPOT_ID}`,"data-spotim-module":"spotim-launcher",body:!0}]}),(a,g)=>(d(),v("div",qt,[o("div",{"data-spotim-module":"conversation","data-post-url":i(),"data-article-tags":r(),"data-post-id":String(t.article.legacyId||t.article.uuid)},null,8,zt)]))}},Qt={class:"article-footer"},Xt={class:"grid gutter-x-30"},Jt={class:"profile-col"},Kt={class:"block mx-auto block lg:hidden mb-6",style:{width:"300px"}},Zt={key:0,id:"comments",class:"mb-4 md:mb-6"},es={class:"col-fixed mx-auto hidden lg:block"},ts={__name:"ArticleFooter",props:{article:{type:Object,default:null}},setup(t){var x,k,e;const s=t,{$analytics:l}=fe(),r=y(s.article.tags),i=y(((x=s.article)==null?void 0:x.sponsoredContent)??!1),a=y(((k=s.article)==null?void 0:k.disableComments)??!1),g=i.value?(e=s.article)==null?void 0:e.sponsors:s.article.authors;function p(b){b&&l.scheduleEvent("click_tracking",{event_category:"Click Tracking",component:"Article Tags",event_label:b.name})}return(b,_)=>{const u=jt,T=kt,A=be,M=Yt;return d(),v("div",Qt,[n(r).length?(d(),w(u,{key:0,tags:n(r),onTagClick:p},null,8,["tags"])):h("",!0),_[1]||(_[1]=o("hr",{class:"black mb-4 md:mb-6"},null,-1)),o("div",Xt,[o("div",Jt,[(d(!0),v(D,null,ge(n(g),N=>(d(),w(T,{key:N.id,"profile-data":N,sponsored:n(i),class:"mb-4 md:mb-6"},null,8,["profile-data","sponsored"]))),128)),o("div",Kt,[f(A,{"slot-name":"htlad-gothamist_interior_rectangle_article_bio",layout:"rectangle",fineprint:"Gothamist is funded by sponsors and member donations"})]),n(a)?h("",!0):(d(),v("div",Zt,[_[0]||(_[0]=o("hr",{class:"black mb-4 md:mb-6"},null,-1)),f(M,{article:s.article},null,8,["article"])]))]),o("div",es,[f(A,{"slot-name":"htlad-gothamist_interior_rectangle_article_bio",layout:"rectangle",fineprint:"Gothamist is funded by sponsors and member donations"})])])])}}};function ss(t){var r;const s=G(),l=he();{if(!t.updatedDate&&!t.publicationDate||l.query.preview)return!1;const i=Nt(new Date);if(At(t.updatedDate||t.publicationDate,i)>0||t.sponsoredContent)return!1;const a=((r=s.public.WALL_ALLOW_LIST)==null?void 0:r.split(","))||[];return t.tags.some(p=>a.includes(p.slug))?!1:typeof qe("__gothamistNewsletterMember",{path:"/"}).value>"u"}}const ns=["iframe","embed","video","twitter-widget","center","div"],os="rte-text",ls=50;function we(t){return!(["#text","P"].includes(t.nodeName)&&t.textContent.replace(/\s/g,"").length===0)}function ke(t){return t.nodeName!=="#comment"}function as(t){return t.textContent.replace(/[^\w ]/g,"").split(/\s+/).length}function U(t){const s=t.nodeName.toLowerCase();let l=as(t);return ns.includes(s)&&(l=Math.max(l,ls)),l}const is=function(t,s){var a,g;const l=[];let r=s??0;const i=[...t.childNodes].filter(we).filter(ke);for(const p of i)p.nextSibling?(r+=U(p),l.push({node:p,wordWeight:r,type:p.nodeName.toLowerCase(),nextType:(a=p.nextSibling)==null?void 0:a.nodeName.toLowerCase()})):(r+=U(p),l.push({node:t,wordWeight:r,type:t.nodeName.toLowerCase(),nextType:(g=t.nextSibling)==null?void 0:g.nodeName.toLowerCase()}));return l},rs=function(t,s){const l=s.parentNode;s!=null&&s.nextSibling?l.insertBefore(t,s.nextSibling):l.appendChild(t)},cs=function(t){var i;let s=0;const l=[],r=[...t.childNodes].filter(we).filter(ke);for(const a of r)if([...a.classList].includes(os)){const g=is(a,s);l.push(...g),{wordWeight:s}=l[l.length-1]}else s+=U(a),l.push({node:a,wordWeight:s,type:a.nodeName.toLowerCase(),nextType:(i=a.nextSibling)==null?void 0:i.nodeName.toLowerCase()});return l},ds=gt(()=>ft(()=>import("./BOWdhGJm.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(t=>t.default||t)),us={key:1,class:"top-section"},ms={class:"content"},gs={class:"grid gutter-x-30"},_s={class:"col"},ps={class:"mt-4 mb-3 h2"},fs={class:"grid gutter-x-30"},hs={class:"col-fixed hidden xxl:block"},bs={id:"pinned-newsletter",style:{"min-width":"300px"}},vs={key:0,class:"col overflow-hidden"},ws={class:"mb-4 xxl:mb-6 relative"},ks={class:"block xxl:hidden mb-5"},ys={class:"col-fixed hidden lg:block"},xs={class:"grid gutter-x-30"},Cs={class:"col overflow-hidden article-column"},Ss=["id"],$s={id:"pinned-newsletter-end",class:"content"},Ts={class:"grid gutter-x-30"},As={class:"col w-full"},Ns={key:0,role:"heading","aria-level":"2",class:"type-label3 mt-2 mb-4"},Ds={class:"mt-6 mb-5"},Gs=L({__name:"[articleSlug]",async setup(t){var j,q,z,Y,Q;let s,l;const r=ze(),i=Ye(),a=he(),g=!!a.query.preview,p=G(),{$analytics:x,$htlbid:k}=fe(),e=g?r.value.data:([s,l]=re(()=>Qe(`${a.params.sectionSlug}/${a.params.articleSlug}`).then(({data:m})=>Xe(m)).catch(()=>{throw Je({statusCode:404,statusMessage:"Page Not Found",fatal:!0})})),s=await s,l(),s);if(!g&&e.publicationDate){const m=e.publicationDate,c=new Date,C=72*60*60*1e3;c.getTime()-m.getTime()>C?i.value=de.QUARTER:i.value=de.HOUR}let b;e.leadGallery&&(b=([s,l]=re(()=>Ke(e.leadGallery.gallery).then(({data:m})=>Ze(m.value))),s=await s,l(),s));const _=e.leadImage??((q=(j=b==null?void 0:b.slides)==null?void 0:j[0])==null?void 0:q.image)??null,u=e.leadImageCaption??(_==null?void 0:_.caption)??((Y=(z=b==null?void 0:b.slides)==null?void 0:z[0])==null?void 0:Y.image.caption)??null,T=((Q=b==null?void 0:b.slides)==null?void 0:Q.length)??0,A=yt(e),M=xt(e),N=et(),ye=tt();Ct(e);const xe=W(()=>{var m;return(m=a==null?void 0:a.params)==null?void 0:m.sectionSlug}),O=y(!1),F=y(!1);pe({title:e.seoTitle?`${e.seoTitle} - Gothamist`:`${e.title} - Gothamist`,link:[{rel:"canonical",href:e==null?void 0:e.url}]}),_&&st(ce(_,{width:700,height:467,quality:70}),nt(_,[2,3],{width:700,height:467,quality:70})),St({sections:e.tags.map(m=>m.name).join(","),authors:e.authors.map(m=>m.name).join(",")}),$t(),me(()=>{x.schedulePageView(A),k.setTargeting(M),N.value=e.sensitiveContent,ot([e]),O.value=ss(e),F.value=!0}),lt(()=>{k.clearTargeting(M),N.value=!1});function Ce(m){const c=m.value;let C=cs(c);do{const $=C[Math.min(C.length-1,5)].node;Se($),C=C.slice(6)}while(C.length>6);Array.from(c.querySelectorAll("[data-optin-monster-id]")).forEach($=>{$.parentElement&&($.parentElement.id=$.dataset.optinMonsterId)})}function Se(m){if(e&&!e.sensitiveContent){const c=document.createElement("DIV");c.classList.add("htlad-gothamist_interior_midpage_repeating","wide-module","mb-5"),rs(c,m)}}function V(m){x.scheduleEvent("click_tracking",{event_category:`Click Tracking - ${m} - Newsletter`,component:m,event_label:"Newsletter"})}function $e(){x.scheduleEvent("view_promotion",{creative_slot:"article-registration-wall",location_id:"",promotion_name:`Registration Wall - ${e.title}`,creative_name:"Archived_Story"})}function Te(){x.scheduleEvent("select_promotion",{creative_slot:"article-registration-wall",location_id:"",promotion_name:`Registration Wall - ${e.title}`,creative_name:"Archived_Story"})}const Ae=W(()=>b.url.replace(/^https:\/\/[^/]*/,"")),H=W(()=>{var m;return e!=null&&e.sponsoredContent?"Sponsored":(m=e==null?void 0:e.section)==null?void 0:m.name}),Ne=W(()=>{var m;return e!=null&&e.sponsoredContent?"":`/${(m=e==null?void 0:e.section)==null?void 0:m.slug}`});return(m,c)=>{var J,K,Z,ee,te,se,ne,oe;const C=ht,$=bt,X=dt,De=Lt,Le=at("Button"),Me=vt,Ie=be,We=Ot,Ee=ve,Pe=ds,Re=pt,Be=ts,Ue=_t,Ge=ue;return d(),v("div",null,[n(F)?(d(),w(rt,{key:0,name:"teleport",to:"#article-header"},[f(,ドル{"scroll-target":".article-body"},{default:S(E=>[f(it,{name:"article-page-header"},{default:S(()=>{var le;return[n(ye)?(d(),w(C,{key:0,class:"article-page-header","donate-url-base":n(p).public.donateUrlBase,"utm-campaign":"goth_header",progress:E.scrollPercentage,title:(le=n(e))==null?void 0:le.title,"share-url":n(e).url,"share-title":n(e).socialTitle},null,8,["donate-url-base","progress","title","share-url","share-title"])):h("",!0)]}),_:2},1024)]),_:1})])):h("",!0),n(e)?(d(),v("section",us,[o("div",ms,[o("div",gs,[c[2]||(c[2]=o("div",{class:"col-fixed hidden xxl:block"},null,-1)),o("div",_s,[H.value?(d(),w(_e,{key:0,class:ct(((J=n(e))==null?void 0:J.sponsoredContent)&&"sponsored"),name:H.value,slug:Ne.value},null,8,["class","name","slug"])):h("",!0),o("h1",ps,B(n(e).title),1)]),c[3]||(c[3]=o("div",{class:"col-fixed hidden lg:block"},null,-1))]),o("div",fs,[o("div",hs,[c[5]||(c[5]=o("hr",{class:"black"},null,-1)),f(X,{class:"mb-3 pt-4",article:n(e)},null,8,["article"]),o("div",null,[o("div",bs,[c[4]||(c[4]=o("hr",{class:"mb-4"},null,-1)),f(De,{class:"pb-8","trigger-i-d":"pinned-newsletter","pin-end-trigger-i-d":"pinned-newsletter-end",onSubmit:c[0]||(c[0]=E=>V("pinned"))})])])]),n(e)?(d(),v("div",vs,[o("div",ws,[n(_)?(d(),w(ut,{key:0,loading:"eager",image:("useImageUrl"in m?m.useImageUrl:n(ce))(n(_)),"image-url":n(e).imageLink,width:700,height:467,"alt-text":(K=n(_))==null?void 0:K.alt,"max-width":(Z=n(_))==null?void 0:Z.width,"max-height":(ee=n(_))==null?void 0:ee.height,credit:(te=n(_))==null?void 0:te.credit,"credit-url":(se=n(_))==null?void 0:se.creditLink,sizes:[2,3],ratio:[3,2],caption:n(u)},null,8,["image","image-url","alt-text","max-width","max-height","credit","credit-url","caption"])):h("",!0),n(T)?(d(),w(mt,{key:1,class:"view-gallery-button",to:Ae.value,raw:""},{default:S(()=>[f(Le,{class:"p-button-rounded p-button-sm p-button-raised p-button-secondary",label:`View all ${n(T)}`},null,8,["label"])]),_:1},8,["to"])):h("",!0)]),o("div",ks,[c[6]||(c[6]=o("hr",{class:"black"},null,-1)),f(X,{class:"pt-4",article:n(e)},null,8,["article"]),c[7]||(c[7]=o("hr",{class:"mt-3 mb-5"},null,-1))]),f(Me,{"donate-url-base":n(p).public.donateUrlBase,"utm-campaign":"article-top"},null,8,["donate-url-base"])])):h("",!0),o("div",ys,[f(Ie,{"slot-name":"htlad-gothamist_interior_rectangle_topper",layout:"rectangle",fineprint:"Gothamist is funded by sponsors and member donations"})])]),o("div",xs,[c[8]||(c[8]=o("div",{class:"col-fixed hidden xxl:block"},null,-1)),o("div",Cs,[n(O)?(d(),w(We,{key:0,article:n(e),onSignUp:Te,onWallSeen:$e},null,8,["article"])):(d(),w(Ee,{key:1,class:"article-body","streamfield-blocks":n(e).body,onAllBlocksMounted:Ce},null,8,["streamfield-blocks"])),(ne=n(e).relatedLinks)!=null&&ne.length?(d(),w(Re,{key:2},{default:S(()=>[f(Pe,{article:n(e),class:"below-body","tracking-component-location":"Article Page Related Links"},null,8,["article"])]),_:1})):h("",!0),o("div",{id:n(p).public.OPTIN_MONSTER_ARTICLE_CAMPAIGN_ID},null,8,Ss)])])])])):h("",!0),o("section",null,[o("div",$s,[o("div",Ts,[c[9]||(c[9]=o("div",{class:"col-fixed hidden xxl:block"},null,-1)),o("div",As,[f(Be,{article:n(e)},null,8,["article"])])]),c[11]||(c[11]=o("hr",{class:"black"},null,-1)),(oe=n(e))!=null&&oe.section?(d(),v("p",Ns," MORE "+B(n(e).section.slug),1)):h("",!0),f(Ue,{slug:xe.value,article:n(e),"tracking-component-location":"Article Page Recirculation Module","nativo-id":"ntv-article-1"},null,8,["slug","article"]),o("div",Ds,[c[10]||(c[10]=o("hr",{class:"black mb-4"},null,-1)),f(Ge,{source:"gothamist_footer",onSubmit:c[1]||(c[1]=E=>V("footer"))})])])])])}}});export{Gs as default}; //# sourceMappingURL=ZmxuUiQU.js.map

AltStyle によって変換されたページ (->オリジナル) /