PageSourceSearch

https://www.emersoncollective.com/_next/static/chunks/pages/newsletters-92197b73eecb1810.js

js emersoncollective.com collected 2026-10-02 03:22:17 UTC 8,623 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3639],{68213:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/newsletters",function(){return s(96299)}])},80420:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});var i=s(85893);function a(e){let{className:t}=e;return(0,i.jsx)("svg",{className:t,viewBox:"0 0 25 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:(0,i.jsx)("path",{d:"M1 9.83637L23.6549 9.83638M23.6549 9.83638L14.387 19.1042M23.6549 9.83638L14.387 0.568359",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}},96299:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return v},default:function(){return k}});var i=s(85893),a=s(67294),r=s(10708),l=s(26412);async function n(e){try{let t=await fetch("https://ec-dot-com-pardot-webhooks.herokuapp.com/lists",{body:JSON.stringify({visitorId:e}),headers:{"x-api-key":"9e7ceca8-fc33-4fb3-bbf1-05a8f8d24706","Content-Type":"application/json"},method:"POST"}),s=await t.json();return JSON.parse(s)}catch(e){return console.error("Error: ",e),[]}}var c=s(70153),o=s.n(c),d=s(25675),m=s.n(d),u=s(94184),h=s.n(u),_=s(74075),p=s(80420),A=s(29455),g=s.n(A);let b=["ec featured newsletters"],x=[{filterTitle:"ec featured newsletters",checkboxName:"feature-ec-digest",img:{src:"/_next/static/media/newsletter1.15af79a8.png",height:282,width:370,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAElBMVEXhBgLkIhznPjn4z8jvgnvufncNOYaZAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAG0lEQVR4nGNgQAKMjFCahZkJwmCFMhigMlAAAALGABm/PuowAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6},contentTitle:"Emerson Collective Updates",content:"Get the latest on Emerson Collective initiatives, opportunities, and events, plus an in-depth look at the issues we’re supporting —and how to get involved.",externalLink:""},{filterTitle:"ec featured newsletters",checkboxName:"feature-fellows",img:{src:"/_next/static/media/Newsletters-FellowsForward.83f41bda.png",height:406,width:528,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAABlBMVEUANlgAMVQv5EH7AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGklEQVR4nGNgYGBkhGAIQGZA2CCSEQxgUgwAAbAAD1rrOTIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},contentTitle:"Fellows Forward",content:"Receive updates from our Fellows who are advancing important new work in education, immigration, the environment, social justice, media, and health.",externalLink:""}],f=e=>{let{isUserAlreadySubscribed:t,checkboxes:s,email:r,isSubmitting:l}=e,[n,c]=(0,a.useState)(!1),[o,d]=(0,a.useState)(""),u=Object.entries(s).filter(e=>{let[t,s]=e;return s&&!t.includes("_id")}),_=u.map(e=>x.filter(t=>{let{checkboxName:s}=t;return s===e[0]})),p=e=>{d(e.target.value)};return(0,a.useEffect)(()=>{r&&d(r)},[r]),(0,a.useEffect)(()=>{c(u.length>0)},[u]),(0,i.jsx)("div",{className:h()("site-padding",g().signup,n&&g().open),children:(0,i.jsxs)("div",{className:g().inner,children:[(0,i.jsxs)("div",{className:g().selectedNewsletters,children:[(0,i.jsxs)("div",{className:"sans-caption-sm",children:[u.length," interest",1===u.length?"":"s"," ","selected"]}),(0,i.jsx)("ul",{className:g().newsletterItems,children:_.map((e,t)=>e.map(e=>{let{img:s}=e;return(0,i.jsx)("li",{className:g().newsletterImageItem,style:{left:t?30*t:0},children:(0,i.jsx)(m(),{src:s,width:40,height:40,alt:""})},t)}))})]}),(0,i.jsxs)("div",{className:g().inputWrapper,children:[(0,i.jsx)("input",{type:"email",name:"email",required:!0,onChange:p,value:o,placeholder:"Your email",className:h()(g().input,l&&g().inputSubmitting)}),(0,i.jsx)("button",{type:"submit",className:h()("sans-caption","button button--active",g().submitButton,l&&g().submitting),disabled:""===o||l,children:l?"Confirmed":t?"Update":"Sign Up"})]})]})})},y={"feature-ec-digest":"Public_Interest_EC_Digest__c","feature-fellows":"Public_Interest_Fellowships__c","feature-immigration":"Public_Interest_Immigration__c"},w=e=>{let{data:t}=e,s=t[0],r=!!(null==s?void 0:s.prospectId),[l,n]=(0,a.useState)({}),[c,d]=(0,a.useState)(!1);(0,a.useEffect)(()=>
1{Object.entries(y).forEach(e=>{let[t,i]=e;n(e=>({...e,[t]:!!r&&"on"===s[i]}))})},[s,r]),(0,a.useMemo)(()=>Object.values(l).every(e=>e),[l]);let u=e=>{let{name:t,checked:s}=e.target;n(e=>({...e,[t]:s}))},A=()=>{d(!0),setTimeout(()=>{d(!1)},5e3)};return(0,i.jsxs)("div",{className:h()("site-padding topper-padding-lg"),children:[(0,i.jsx)("h1",{className:h()("display-xl","hero-title-width"),children:"Stay informed with the latest from us."}),(0,i.jsx)("iframe",{name:"dummyframe",id:"dummyframe",style:{display:"none"}}),(0,i.jsxs)("form",{action:"https://pages.emersoncollective.com/l/539672/2018-07-13/2y9ycs",method:"post",target:"dummyframe",onSubmit:A,children:[(0,i.jsx)("div",{children:r&&(0,i.jsxs)("div",{className:o().alreadySubscribed,children:[(0,i.jsx)("p",{children:"Looks like you’re already subscribed."}),(0,i.jsx)("p",{children:"You may update your subscriptions below."})]})}),b.map((e,t)=>(0,i.jsxs)("section",{className:o().cardGridSection,children:[(0,i.jsx)("h2",{className:h()("condensed-lg",o().cardGridTitle,0===t&&"sr-only"),children:e}),(0,i.jsx)("ul",{className:o().cardGrid,children:x.filter(t=>e===t.filterTitle).map((e,t)=>{let s=l[e.checkboxName]||!1;return(0,i.jsxs)("li",{className:h()(o().card),children:[(0,i.jsxs)("div",{className:o().cardTop,children:[(0,i.jsx)("h3",{className:h()("display-md",o().cardTitle),children:e.contentTitle}),(0,i.jsx)("p",{className:h()("serif-md",o().cardSubtitle),children:e.content})]}),(0,i.jsxs)("div",{className:o().cardBottom,children:[(0,i.jsx)("div",{className:o().cardImg,children:(0,i.jsx)(m(),{src:e.img,sizes:"200px",fill:!0,alt:""})}),e.externalLink?(0,i.jsxs)(_.Z,{href:e.externalLink,className:h()(o().cardBottomRight,o().cardExternalLink),children:[(0,i.jsx)("span",{className:h()("sans-caption-sm",o().cardBottomRightLabel),children:"Visit Site"}),(0,i.jsx)("div",{className:o().cardBottomRightButton,children:(0,i.jsx)(p.Z,{className:o().cardBottomRightIcon})})]}):(0,i.jsxs)("div",{className:o().cardBottomRight,children:[(0,i.jsx)("label",{htmlFor:e.checkboxName,"aria-label":"Select ".concat(e.contentTitle),className:h()("sans-caption-sm",o().cardBottomRightLabel),children:s?"Selected":"Select"}),(0,i.jsx)("input",{className:o().cardBottomRightButton,type:"checkbox",id:e.checkboxName,name:e.checkboxName,checked:s,onChange:u}),!s&&(0,i.jsx)("input",{type:"hidden",value:"off",name:e.checkboxName})]})]})]},t)})})]},t)),(0,i.jsxs)("p",{className:h()(o().bottomText),children:["Your subscriptions with us are subject to Emerson Collective’s"," ",(0,i.jsx)(_.Z,{href:"/legal/privacy-policy",children:"Privacy Policy"})," and"," ",(0,i.jsx)(_.Z,{href:"/legal/terms-and-conditions",children:"Terms and Conditions"}),"."]}),(0,i.jsx)(f,{isUserAlreadySubscribed:r,email:r&&s.email,checkboxes:l,isSubmitting:c})]})]})};var j=s(48763);let N=e=>{let{global:t}=e,[s,c]=(0,a.useState)([]),[o]=(0,r.Z)();return(0,a.useEffect)(()=>{let e=Object.keys(o).find(e=>e.includes("visitor_id")&&!e.endsWith("-hash"))||"",t=o[e],s=async()=>{if(!t)return;let e=await n(t);c(e)};s()},[o]),(0,i.jsxs)(l.Z,{global:t,children:[(0,i.jsx)(j.Z,{title:"Stay Informed"}),(0,i.jsx)(w,{data:s})]})};var v=!0,k=N},70153:function(e){e.exports={alreadySubscribed:"styles_alreadySubscribed__gjx9_",selectAll:"styles_selectAll__G58bZ",cardGridSection:"styles_cardGridSection__Y7gaS",cardGridTitle:"styles_cardGridTitle__CpD_A",cardGrid:"styles_cardGrid__wPOGV",card:"styles_card__DCF_R",cardTop:"styles_cardTop___HLr6",cardTitle:"styles_cardTitle__xGljK",cardSubtitle:"styles_cardSubtitle__Wwl6v",cardBottom:"styles_cardBottom__9mVBQ",cardImg:"styles_cardImg__H157A",cardBottomRight:"styles_cardBottomRight__Z2q5j",cardExternalLink:"styles_cardExternalLink__4u7Kh",cardBottomRightButton:"styles_cardBottomRightButton__aHwxZ",cardBottomRightLabel:"styles_cardBottomRightLabel__6CNYl",cardBottomRightIcon:"styles_cardBottomRightIcon__3Jp4k",bottomText:"styles_bottomText__i3diT"}},29455:function(e){e.exports={signup:"styles_signup__WZxQt",open:"styles_open__MrJf4",inner:"styles_inner__QTpj3",selectedNewsletters:"styles_selectedNewsletters__Kf9Vk",newsletterItems:"styles_newsletterItems__Gw0Zs",newsletterImageItem:"styles_newsletterImageItem__X7VeV",moveInLeft:"styles_moveInLeft__U_pg4",inputWrapper:"styles_inputWrapper__WKD9P",input:"styles_input__esvp6",inputSubmitting:"styles_inputSubmitting__bMkl_",submitButton:"styles_submitButton__N7rIT",submitting:"styles_submitting__obwQ8"}}},function(e){e.O(0,[1083,5675,8662,9774,2888,179],function(){return e(e.s=68213)}),_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.