1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1646,1133,6180],{10467:function(e,a,r){r.d(a,{j:function(){return m},I:function(){return u}});var t=r(31549),s=r(44194),l=r(65651),n=r(52287),i=r(14517),o=r(36958),c=r(7727);r(77507);let d=e=>{let{children:a,content:r,asQuestionmark:s}=e;return(0,t.jsx)(o.ZP,{interactive:!0,className:(0,i.Z)("!text-gray-100 ",{"ml-1":s}),content:r,popperOptions:{placement:"top"},children:(0,t.jsxs)("span",{children:[s?(0,t.jsx)(c.Z,{className:"cursor-pointer opacity-50 h-5 w-5 inline-block ml-1 align-text-bottom","aria-hidden":"true"}):void 0,a]})})},m=e=>{let{error:a,name:r}=e;return(0,t.jsx)(l.u,{as:s.Fragment,show:!!a,enter:"duration-800 ease-out",enterFrom:"opacity-0 -translate-y-4",enterTo:"opacity-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100",leaveTo:"opacity-0 translate-y-4",children:(0,t.jsx)("p",{className:"r-text-caption my-1 text-red-400",id:"".concat(r,"-error"),children:a})})},u=e=>{let{label:a,inputProps:r={},name:s,error:l,tooltip:o}=e,{className:c,...u}=r;return(0,t.jsxs)("div",{className:"w-full",children:[a&&(0,t.jsxs)("label",{htmlFor:s,className:"block mb-1 text-gray-900 dark:text-gray-100 text-sm font-medium",children:[a,o&&(0,t.jsx)(d,{content:o,asQuestionmark:!0})]}),(0,t.jsxs)("div",{className:"relative rounded-md shadow-sm",children:[(0,t.jsx)("input",{type:"text",name:s,className:(0,i.Z)("disabled:opacity-50 block w-full bg-gray-900 rounded-md shadow-sm focus:ring-blue-400",l?"border-red-400 focus:border-red-300 border-1 mb-0":"border-1 border-transparent mb-6",c),"aria-invalid":"true","aria-describedby":"".concat(s,"-error"),...u,"data-cy":"input-".concat(s)}),l&&(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",children:(0,t.jsx)(n.Z,{className:"w-5 h-5 text-red-400","aria-hidden":"true"})})]}),(0,t.jsx)(m,{error:l,name:s})]})}},51133:function(e,a,r){r.r(a),r.d(a,{Background:function(){return x},FormSection:function(){return p}});var t=r(31549),s=r(99068),l=r(96910),n=r(75910),i=r(64749),o=r(31827),c=r(5070),d=r(10467);let m=s.Ry().shape({email:s.Z_().email("Please specify a valid email").required("Please enter an email")}),u=async e=>fetch("/api/marketing_subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),p=e=>{let{formSection:a}=e,{isLoading:r,mutateAsync:s,isSuccess:p}=(0,n.useMutation)("subscriptions",u),x=(0,i.useParams)(),b=a.formId,h=(null==x?void 0:x.slug)||"",y=(0,o.U0)(),{handleChange:f,handleSubmit:g,values:j,errors:v}=(0,l.TA)({validationSchema:m,initialValues:{email:""},onSubmit:async e=>{try{let{personId:a}=await s({...e,form_id:b,page_slug:h}).then(async e=>e.json());y.capture("subscribeForm",{formId:b,personId:a,pageSlug:h,...e})}catch(e){}}});return(0,t.jsxs)("form",{noValidate:!0,className:"flex flex-col items-center w-full lg:flex-row",onSubmit:g,children:[(0,t.jsx)(d.I,{name:"email",inputProps:{disabled:r||p,type:"email",onChange:f,value:j.email,className:"!bg-black mt-6 p-3",placeholder:null==a?void 0:a.placeholder},error:v.email}),(0,t.jsx)(c.z,{isLoading:r,disabled:r||p,type:"submit",size:"lg",className:"z-10 mb-4 w-full lg:mb-0 lg:ml-2 lg:w-auto",label:p?"Successfully subscribed":a.button})]})},x=e=>{let{children:a}=e;return(0,t.jsx)("div",{className:"px-4 bg-gray-900 rounded-lg sm:px-8 sm:py-2",children:a})}},81646:function(e,a,r){r.r(a),r.d(a,{SectionNewsletter:function(){return l}});var t=r(31549),s=r(51133);let l=e=>{var a;let{section:r}=e;return(0,t.jsx)("section",{className:"r-container-section",children:(0,t.jsxs)("div",{className:"px-6 py-6 w-full bg-gray-800 rounded-lg md:px-12 md:py-12 lg:px-16 lg:py-16",children:[(0,t.jsxs)("div",{className:"xl:flex-1",children:[(0,t.jsx)("h2",{className:"r-text-heading-2 font-extrabold",children:r.primary}),(0,t.jsx)("p",{className:"r-text-subtitle-2 mt-3 max-w-3xl text-gray-200",children:r.secondary})]}),(0,t.jsxs)("div",{className:"sm:mt-4 sm:w-full sm:max-w-md",children:[(0,t.jsx)("label",{htmlFor:"email-address",className:"sr-only",children:null===(a=r.form)||void 0===a?void 0:a.placeholder}),(0,t.jsx)(s.FormSection,{formSection:r.form}),(0,t.jsxs)("p",{className:"text-gray-400 text-sm",children:["We care about the protection of your data. Read our"," ",(0,t.jsx)("a",{href:"/privacy",className:"r-link underline",children:"privacy policy."})]})]})]})})}}}]);
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.