1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="33e2109e-c3b8-e386-3a7b-1a9ba5c9769b")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32242,e=>{"use strict";var r=e.i(843476),a=e.i(271645),t=e.i(447209),i=e.i(100532);function s({heading:e,description:s,source:n,showNameField:m=!1}){let[l,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1);async function p(e){if(e.preventDefault(),c)return;o(!1),d(!0);let r=new FormData(e.currentTarget);try{await (0,i.captureLead)({email:(0,i.formField)(r,"email")??"",name:(0,i.formField)(r,"name"),source:n}),x(!0)}catch{o(!0)}finally{d(!1)}}return(0,r.jsx)("section",{className:"bg-secondary/50 py-16 md:py-20",children:(0,r.jsx)("div",{className:"mx-auto max-w-container px-4 md:px-8",children:(0,r.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[(0,r.jsx)("h2",{className:"font-display mb-4 text-2xl font-semibold tracking-tight text-primary md:text-3xl",children:e}),(0,r.jsx)("p",{className:"mb-8 text-tertiary",children:s}),l&&(0,r.jsx)("p",{role:"alert",className:"mb-3 text-sm text-error-primary",children:"We couldnât save your details. Please try again."}),u?(0,r.jsx)("p",{className:"text-sm font-medium text-fg-brand-primary",children:"Thanks â your details have been received."}):(0,r.jsxs)("form",{onSubmit:p,className:"mx-auto flex max-w-md flex-col items-center gap-3 sm:flex-row",children:[m&&(0,r.jsx)("input",{name:"name",type:"text",className:"w-full rounded-lg border border-primary bg-primary px-3.5 py-2.5 text-sm text-primary shadow-xs outline-none transition focus:border-brand-primary focus:ring-1 focus:ring-brand-primary",placeholder:"Your name"}),(0,r.jsx)("input",{name:"email",type:"email",required:!0,className:"w-full rounded-lg border border-primary bg-primary px-3.5 py-2.5 text-sm text-primary shadow-xs outline-none transition focus:border-brand-primary focus:ring-1 focus:ring-brand-primary",placeholder:"[email protected]"}),(0,r.jsx)(t.Button,{type:"submit",color:"primary",size:"md",isLoading:c,className:"w-full shrink-0 sm:w-auto",children:"Subscribe"})]})]})})})}e.s(["EmailCaptureBanner",()=>s])}]); 3 4//# debugId=33e2109e-c3b8-e386-3a7b-1a9ba5c9769b 5//# sourceMappingURL=1ef54b9619e8867f.js.map
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.