PageSourceSearch

https://content.www.wellcomecollection.org/_next/static/chunks/pages/newsletter-54be856df6d949c4.js

js wellcomecollection.org collected 2026-10-01 08:31:32 UTC 7,630 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8265],{27727:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>S,default:()=>A});var r=s(6029),i=s(94451),n=s(4812),o=s(86796),a=s(9455),l=s(48465),c=s(49337),d=s(55729),u=s(79945),m=s(21571),h=s(92881),p=s(17096),g=s(23583),x=s(22254),b=s(60139),y=s(59383);let f=u.Ay.ul.withConfig({componentId:"sc-25e1fe2f-0"})(["list-style:none;padding:0;margin-top:0;"]),j=u.Ay.fieldset.withConfig({componentId:"sc-25e1fe2f-1"})(["border:1px solid ",";padding:",";margin:0;"],e=>e.$hasError?e.theme.color("validation.red"):"transparent",e=>e.$hasError?"1rem":"0"),v=e=>{let{isSuccess:t,isError:s,isConfirmed:i}=e,[n,o]=(0,d.useState)([]),[a,c]=(0,d.useState)(!1),[u,v]=(0,d.useState)(!1),[w,S]=(0,d.useState)(!1),[A,k]=(0,d.useState)(!1),[N,E]=(0,d.useState)(""),[I,_]=(0,d.useState)(""),[T,V]=(0,d.useState)(""),$=(0,p.A)(),M=(0,p.A)(),P=(0,p.A)(),z=(0,d.useRef)(null),C=(0,d.useRef)(null),R=(0,d.useRef)(null);function Y(e){let t=e.currentTarget.checked,s=e.currentTarget.id;o(t?n.concat(s):n.filter(e=>e!==s)),t&&k(!1)}return(0,d.useEffect)(()=>{S(!0)},[]),(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsxs)("div",{className:"body-text",children:[(0,r.jsx)("p",{className:(0,g.I)("body","xl","strong"),children:"Thank you for confirming your email address"}),(0,r.jsx)("p",{children:"We’re looking forward to keeping you up-to-date on the topics you’re interested in. You are seeing this page because you clicked on a confirmation link in an email from us, but you can unsubscribe or change your subscription preferences at any time using the link in the emails you receive."}),(0,r.jsxs)("p",{children:[(0,r.jsx)("a",{href:"/".concat(h.po.whatsOn),children:"Browse our current and upcoming exhibitions and events"}),"."]})]}),t&&(0,r.jsxs)("div",{className:"body-text",children:[(0,r.jsx)("p",{className:(0,g.I)("body","xl","strong"),children:"You’re signed up"}),(0,r.jsx)("p",{children:"If this is the first time you’ve subscribed to updates from us, you will receive an email asking you to confirm. Please check your email and click the button. Thank you!"})]}),s&&(0,r.jsxs)("div",{className:"body-text",children:[(0,r.jsx)("p",{className:(0,g.I)("body","xl","strong"),children:"Sorry, there’s been a problem"}),(0,r.jsx)("p",{children:"Please try again."})]}),!i&&!t&&!s&&(0,r.jsxs)(l.A,{className:"body-text",$v:{size:"sm",properties:["margin-bottom"]},children:[(0,r.jsx)("p",{className:(0,g.I)("body","xl","strong"),style:{marginBottom:"1rem"},children:"Want to hear more from us?"}),(0,r.jsx)("p",{children:"Sign up to our regular newsletters to explore health and the human experience."})]}),!i&&!t&&(0,r.jsxs)("form",{noValidate:w,onSubmit:function(e){e.preventDefault();let t=0===n.length;if(k(t),M.isValid||M.setShowValidity(!0),P.isValid||P.setShowValidity(!0),$.isValid||$.setShowValidity(!0),t||!M.isValid||!P.isValid||!$.isValid){var s,r,i,o;t?null==(s=document.getElementById(m.p.slug))||s.focus():M.isValid?P.isValid?null==(o=R.current)||o.focus():null==(i=C.current)||i.focus():null==(r=z.current)||r.focus();return}e.currentTarget.submit()},name:"newsletter-signup",id:"newsletter-signup",action:"https://r1-t.trackedlink.net/signup.ashx",method:"post",children:[(0,r.jsx)("input",{type:"hidden",name:"userid",value:"225683"}),(0,r.jsx)("input",{type:"hidden",name:"ReturnURL",value:"https://wellcomecollection.org/newsletter"}),(0,r.jsx)("input",{type:"hidden",name:"SIG22a9ece3ebe9b2e10e328f234fd10b3f5686b9f4d45f628f08852417032dc990",value:""}),(0,r.jsxs)(j,{$hasError:A,children:[(0,r.jsx)(l.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,r.jsx)("legend",{className:(0,g.I)("body","lg","strong"),children:"Select each newsletter you'd like to receive:"})}),(0,r.jsxs)(f,{style:{marginBottom:"0"},children:[(0,r.jsx)(l.A,{as:"li",$v:{size:"sm",properties:["margin-bottom"]},children:(0,r.jsx)(b.A,{id:m.p.slug,type:"checkbox",text:m.p.label,value:"addressbooK_".concat(m.p.id),name:"addressbooK_".concat(m.p.id),checked:n.includes(m.p.slug),onChange:Y})}),m.P.map((e,t)=>(0,r.jsx)(l.A,{as:"li",$v:t<m.P.length-1?{size:"sm",properties:["margin-bottom"]}:void 0,children:(0,r.jsx)(b.A,{id:e.slug,type:"checkbox",text:e.label,value:"addressbooK_".concat(e.id),name:"addressbooK_".concat(e.id),checked:n.includes(e.slug),onChange:Y})},e.slug))]}),A&&(0,r.jsx)(l.A,{$v:{size:"xs",properties:["margin-top"]},children:(0,r.jsx)(y.YQ,{errorMessage:"Select at least one newsletter"})})]}),(0,r.jsxs)(l.A,{$v:{size:"lg",properties:["margin-top","margin-bottom"]},children:[(0,r.jsx)(l.A,{$v:{size:"md",properties:["margin-bottom"]},children:(0,r.jsx)(y.Ay,{ref:z,id:"FIRSTNAME",label:"Your first name",name:"cd_FIRSTNAME",type:"text",value:I,setValue:_,errorMessage:"Enter your first name",required:!0,...M})}),(0,r.jsx)(l.A,{$v:{size:"md",properties:["margin-bottom"]},children:(0,r.jsx)(y.Ay,{ref:C,id:"LASTNAME",label:"Your last name",name:"cd_LASTNAME",type:"text",value:T,setValue:V,errorMessage:"Enter your last name",required:!0,...P})}),(0,r.jsx)(y.Ay,{ref:R,id:"email",label:"Your email address",name:"Email",type:"email",value:N,setValue:E,errorMessage:"Enter an email address in the correct format, like [email protected]",required:!0,...$})]}),(0,r.jsxs)(l.A,{$v:{size:"md",properties:["margin-top","margin-bottom"]},children:[(0,r.jsx)(b.A,{id:"MARKETINGPERMISSIONS",name:"cd_MARKETINGPERMISSIONS",type:"checkbox",checked:a,onChange:()=>{c(e=>!e)}
1,text:(0,r.jsx)("p",{className:(0,g.I)("body","sm","regular"),children:"Tick this box if you’re happy to receive other emails about Wellcome Collection, upcoming events and exhibitions and/or other relevant opportunities."})}),(0,r.jsx)(b.A,{id:"AUDIENCEPERMISSIONS",name:"cd_AUDIENCEPERMISSIONS",type:"checkbox",checked:u,onChange:()=>{v(e=>!e)},text:(0,r.jsx)("p",{className:(0,g.I)("body","sm","regular"),children:"Tick this box if you’d be happy for us to use your information to help us understand our audience, and show you relevant adverts about Wellcome Collection on social networks (such as Facebook, Instagram and LinkedIn)."})}),(0,r.jsxs)("p",{className:(0,g.I)("body","sm","regular"),children:["By clicking subscribe, you agree to receive this newsletter. You can unsubscribe any time. For information about how we handle your data,"," ",(0,r.jsx)("a",{href:"https://wellcome.org/who-we-are/privacy-and-terms",target:"_blank",rel:"noopener noreferrer",children:"please read our privacy notice"}),"."]})]}),(0,r.jsx)(l.A,{$v:{size:"md",properties:["margin-bottom"]},children:(0,r.jsx)(x.Ay,{variant:"ButtonSolid",text:"Subscribe to your newsletter".concat(n.length>1?"s":""),dataGtmProps:{trigger:"newsletter_signup_subscribe"}})})]})]})},w=e=>{let{result:t}=e;return(0,r.jsxs)(c.A,{title:"Sign up to our newsletter",description:i.W_,url:{pathname:"/newsletter"},jsonLd:{"@type":"WebPage"},openGraphType:"website",image:{contentUrl:"https://iiif.wellcomecollection.org/image/V0019283.jpg/full/800,/0/default.jpg",width:800,height:662,alt:""},hideNewsletterPromo:!0,children:[(0,r.jsx)(a.A,{variant:"basic",breadcrumbs:{items:[]},title:"Newsletters",backgroundTexture:n.Yh,highlightHeading:!0}),(0,r.jsx)(l.A,{$v:{size:"xl",properties:["margin-top"]},children:(0,r.jsx)(l.A,{$v:{size:"xl",properties:["padding-bottom"]},children:(0,r.jsx)(o.Bf,{gridSizes:(0,o.We)(),children:(0,r.jsx)(v,{isSuccess:"success"===t,isError:"error"===t,isConfirmed:"confirmed"===t})})})})]})};var S=!0;let A=e=>(0,r.jsx)(w,{...e})},41271:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/newsletter",function(){return s(27727)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=41271)),_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.