1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63209,e=>{"use strict";let t=(0,e.i(75254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",()=>t],63209)},80074,87652,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(46932),n=e.i(49652);let i={some:0,all:1};function r(e,{root:t,margin:s,amount:l,once:c=!1,initial:u=!1}={}){let[o,d]=(0,a.useState)(u);return(0,a.useEffect)(()=>{if(!e.current||c&&o)return;let a={root:t&&t.current||void 0,margin:s,amount:l};return function(e,t,{root:a,margin:s,amount:r="some"}={}){let l=(0,n.resolveElements)(e),c=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let a=c.get(e.target);if(!!a!==e.isIntersecting)if(e.isIntersecting){let a=t(e.target,e);"function"==typeof a?c.set(e.target,a):u.unobserve(e.target)}else"function"==typeof a&&(a(e),c.delete(e.target))})},{root:a,rootMargin:s,threshold:"number"==typeof r?r:i[r]});return l.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(d(!0),c?void 0:()=>d(!1)),a)},[t,e,s,c,l]),o}function l({children:e,className:n="",delay:i=0}){let l=(0,a.useRef)(null),c=r(l,{once:!0,margin:"-80px"});return(0,t.jsx)(s.motion.div,{ref:l,initial:{opacity:0,y:40},animate:c?{opacity:1,y:0}:{opacity:0,y:40},transition:{duration:.7,delay:i,ease:"easeOut"},className:n,children:e})}e.s(["useInView",()=>r],87652),e.s(["default",()=>l],80074)},95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>t],95468)},63488,e=>{"use strict";let t=(0,e.i(75254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",()=>t],63488)},59099,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(63209),n=e.i(95468),i=e.i(63488),r=e.i(18566),l=e.i(80074),c=e.i(72188);function u({id:e,title:u="Stay informed",description:o="Evidence-based health insights delivered to your inbox. No spam, just science.",className:d="",audience:p="general",buttonLabel:m="Subscribe",successMessage:x="Thanks, you're subscribed.",showConsent:h=!1,consentLabel:y="I agree to be contacted by the Public Health Collaboration about this signup.",captureMode:f,captureStep:b,sourceLabel:g,bundleKey:v,bundleLabel:j,emailFulfilment:k="none",offerNewsletterOptIn:w=!1}){let N=(0,r.usePathname)(),C=g||N||"/",[_,S]=(0,a.useState)("idle");async function P(e){e.preventDefault();let t=e.currentTarget,a=new FormData(t);a.set("source",C),f&&a.set("captureMode",f),b&&a.set("captureStep",b),"pdf_link"===k&&a.set("emailFulfilment","pdf_link");let s={audience:p,source_path:C,capture_mode:f,capture_step:b};v&&(s.email_bundle=v),"pdf_link"===k&&(s.email_fulfilment=k),(0,c.trackPlausibleClient)("newsletter_signup_start",s),S("submitting");try{(await fetch("/api/newsletter/",{method:"POST",body:a,headers:{Accept:"application/json"}})).ok?(S("success"),t.reset(),(0,c.trackPlausibleClient)("newsletter_signup",s),"lifestyle"===p&&(0,c.trackPlausibleClient)("lifestyle_resources_signup",{source_path:C,capture_mode:f})):S("error")}catch{S("error")}}return(0,t.jsx)("section",{id:e,className:`py-16 bg-phc-cyan ${d}`,children:(0,t.jsx)("div",{className:"max-w-3xl mx-auto px-4 text-center",children:(0,t.jsxs)(l.default,{children:[(0,t.jsx)(i.Mail,{className:"w-10 h-10 text-phc-navy-dark/30 mx-auto mb-4"}),(0,t.jsx)("h2",{className:"font-heading font-bold text-2xl sm:text-3xl text-phc-navy-dark mb-3",children:u}),(0,t.jsx)("p",{className:"text-phc-navy-dark/70 mb-8 text-lg",children:o}),(0,t.jsxs)("form",{onSubmit:P,className:h||w?"grid gap-3 max-w-xl mx-auto sm:grid-cols-[1fr_auto]":"flex flex-col sm:flex-row gap-3 max-w-lg mx-auto",noValidate:!0,children:[(0,t.jsx)("input",{type:"hidden",name:"audience",value:p}),(0,t.jsx)("input",{type:"hidden",name:"source",value:C}),f&&(0,t.jsx)("input",{type:"hidden",name:"captureMode",value:f}),b&&(0,t.jsx)("input",{type:"hidden",name:"captureStep",value:b}),v&&(0,t.jsx)("input",{type:"hidden",name:"bundleKey",value:v}),v&&(0,t.jsx)("input",{type:"hidden",name:"bundleLabel",value:j??""}),(0,t.jsx)("input",{name:"email",type:"email",required:!0,autoComplete:"email",placeholder:"Enter your email address",className:"flex-1 px-5 py-3.5 rounded-full bg-white/90 border-0 text-dark-grey placeholder:text-warm-grey/60 focus:outline-none focus:ring-2 focus:ring-phc-navy/30"}),(0,t.jsx)("input",{type:"text",name:"_gotcha",tabIndex:-1,autoComplete:"off",className:"hidden","aria-hidden":"true"}),h&&(0,t.jsxs)("label",{className:"sm:col-span-2 flex items-start gap-3 rounded-2xl bg-white/30 p-4 text-left text-sm text-phc-navy-dark/75",children:[(0,t.jsx)("input",{type:"checkbox",name:"gdprConsent",value:"1",required:!0,className:"mt-1 h-4 w-4 roun
1ded border-phc-navy/30 text-phc-navy focus:ring-phc-navy/30"}),(0,t.jsx)("span",{children:y})]}),w&&(0,t.jsxs)("label",{className:"sm:col-span-2 flex items-start gap-3 rounded-2xl bg-white/30 p-4 text-left text-sm text-phc-navy-dark/75",children:[(0,t.jsx)("input",{type:"checkbox",name:"newsletterOptIn",value:"1",defaultChecked:!0,className:"mt-1 h-4 w-4 rounded border-phc-navy/30 text-phc-navy focus:ring-phc-navy/30"}),(0,t.jsx)("span",{children:"Also email me the PHC newsletter â occasional evidence-based updates. Untick to opt out."})]}),(0,t.jsx)("button",{type:"submit",disabled:"submitting"===_,className:"px-8 py-3.5 bg-phc-navy hover:bg-phc-navy-light text-white font-bold rounded-full transition-colors whitespace-nowrap",children:"submitting"===_?"Subscribing...":m})]}),"error"===_&&(0,t.jsxs)("p",{className:"inline-flex items-center justify-center gap-2 text-phc-navy-dark/60 text-xs mt-4",children:[(0,t.jsx)(s.AlertCircle,{className:"w-3.5 h-3.5"}),"Sorry, signup is not available right now."]}),"success"===_&&(0,t.jsxs)("p",{className:"inline-flex items-center justify-center gap-2 text-phc-navy-dark/60 text-xs mt-4",children:[(0,t.jsx)(n.CheckCircle2,{className:"w-3.5 h-3.5"}),x]}),"idle"===_&&(0,t.jsx)("p",{className:"text-phc-navy-dark/40 text-xs mt-4",children:"We respect your privacy. Unsubscribe at any time."})]})})})}e.s(["default",()=>u])}]);
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.