1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4285],{34285:(e,t,o)=>{o.r(t),o.d(t,{default:()=>I});var i=o(66352),l=o(95132),a=o(49843),r=o(71924),n=o(44258);let s=r.Ay.div.withConfig({componentId:"sc-1d85b2d2-0"})(["margin-bottom:auto;margin-top:20px;width:95%;align-self:flex-start;display:flex;flex-direction:column;"]);r.Ay.h4.withConfig({componentId:"sc-1d85b2d2-1"})(["text-transform:uppercase;font-family:",";font-size:13px;font-style:normal;font-weight:900;line-height:30px;letter-spacing:0.05em;text-align:left;margin:0;color:",";"],({theme:e})=>e.default.fontFamily.secondaryFont,({theme:e})=>e.default.color.primary);let d=r.Ay.div.withConfig({componentId:"sc-1d85b2d2-2"})(["margin-bottom:auto;width:50%;position:relative;align-self:flex-start;display:flex;flex-direction:column;input[type=text],#selectLocation{max-width:90%;}#selectLocation{font-family:",";font-size:15px;padding:0 12px;}#error{bottom:unset;top:15px;right:35px;}@media (max-width:","){width:100%;input[type=text],#selectLocation{max-width:100%;}#selectLocation{font-size:18px;}}"],({theme:e})=>e.default.fontFamily.secondaryFont,n.KL.medium),c=r.Ay.div.withConfig({componentId:"sc-1d85b2d2-3"})(["width:100%;font-family:",";font-size:15px;font-style:normal;font-weight:700;line-height:20px;letter-spacing:0em;text-align:left;#eventSignup{width:100%;display:flex;flex-wrap:wrap;}"],({theme:e})=>e.default.fontFamily.secondaryFont),m=r.Ay.div.withConfig({componentId:"sc-1d85b2d2-4"})(["width:100%;display:flex;flex-direction:column;align-items:flex-start;"]),h=r.Ay.button.withConfig({componentId:"sc-1d85b2d2-5"})(["background-color:",";height:38px;align-items:center;margin:20px 0;border:0;width:80px;border-radius:8px;cursor:pointer;color:#fff;svg{color:white;font-size:1rem;transform:translate(0,10%);}&:hover{background-color:#216CA8;}&:focus{background-color:#014984;}&:disabled{cursor:not-allowed;background-color:#dadada;}"],({theme:e})=>e.default.color.primary),p=r.Ay.img.withConfig({componentId:"sc-1d85b2d2-6"})(["max-width:300px;width:100%;margin:20px 20px 20px 0;@media (max-width:","){max-width:100%;}"],n.KL.small),f=r.Ay.div.withConfig({componentId:"sc-1d85b2d2-7"})(["display:flex;align-items:flex-start;@media (max-width:","){flex-direction:column;}"],n.KL.small);var u=o(64028),x=o(14),g=o(41957),w=o(25338),y=o(37763),b=o(74079),v=o(40551),k=o(59085),j=o(40019),C=o(47452);let A=g.Ik().shape({email:(0,w.E)("Invalid email").required("Required")}),I=({type:e="",hideNewsLetter:t=!1})=>{let{publication:o,config:r}=(0,l.useContext)(k.I),[n,g]=(0,l.useState)({error:"",success:!1});return!(0,j.g)()||t||"Commercial"===e?null:(0,i.jsx)(v.A,{title:"Sign up Full ThroTTle newsletter",children:(0,i.jsxs)(m,{children:[(0,i.jsx)("strong",{children:n.success?"Thanks for signing up to our Full ThroTTle newsletter!":"Sign up to our Full ThroTTle newsletter for full coverage of the Isle of Man TT festival."}),(0,i.jsxs)(f,{children:[(0,i.jsx)(p,{src:"/images/full-throttle.png",alt:"Full Throttle logo with motorcycle next to it"}),(0,i.jsx)(c,{children:!n.success&&(0,i.jsx)(x.l1,{initialValues:{email:"",firstName:"",lastName:"",location:""},onSubmit:async e=>{try{await u.A.post("/api/event_newsletter",{email:e.email,firstName:e.firstName,lastName:e.lastName,location:e.location}),g({error:"",success:!0})}catch(e){console.log(e),g({error:"Sorry, something went wrong. Please try again later.",success:!1})}},validationSchema:A,children:({values:e,handleChange:t,handleBlur:o,handleSubmit:l,touched:r,errors:c,isSubmitting:m})=>(0,i.jsxs)(x.lV,{onSubmit:l,id:"eventSignup",children:[(0,i.jsx)(d,{children:(0,i.jsx)(y.A,{inputStyles:"form",name:"firstName",label:"First Name",value:e.firstName,handleChange:t,onBlur:o,placeholder:"Enter your first name",error:r.firstName&&c.firstName||""!==n.error&&n.error,required:!0})}),(0,i.jsx)(d,{children:(0,i.jsx)(y.A,{inputStyles:"form",name:"lastName",label:"Last Name",value:e.lastName,handleChange:t,onBlur:o,placeholder:"Enter your last name",error:r.lastName&&c.lastName||""!==n.error&&n.error,required:!0})}),(0,i.jsx)(d,{children:(0,i.jsx)(y.A,{inputStyles:"form",name:"email",label:"Email",value:e.email,handleChange:t,onBlur:o,placeholder:"Enter your email",error:r.email&&c.email||""!==n.error&&n.error,required:!0})}),(0,i.jsx)(d,{children:(0,i.jsx)(C.A,{id:"selectLocation",label:"Where do you live?",options:["United Kingdom","Isle of Man","Rest of World"],name:"location",value:e.location,onChange:t,required:!0})}),(0,i.jsxs)(s,{children:[!n.success&&(0,i.jsx)(a.A,{label:`Please tick the box to confirm you would like to hear from Full ThroTTle. 2 You can unsubscribe at any time by clicking the link in the footer of our emails. 3 We use Mailchimp as our marketing platform. 4 By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices <a href="https://mailchimp.com/legal/terms" target="_blank">here.</a></p> 5 `}),(0,i.jsx)(h,{type:"submit",disabled:(0,b.I)(c)||""===e.email||m,children:"Subscribe"})]})]})})})]})]})})}},47452:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(66352),l=o(71924);let a=l.Ay.select.withConfig({componentId:"sc-359fda70-0"})(["max-width:250px;width:100%;flex-grow:1;height:40px;background:",";color:",";padding:4px 24px;font-size:16px;border-radius:32px;border:1px solid ",';&:focus{outline:none;}background:url(\'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke="%23272727" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>\') #fff no-repeat 99% 50%;-moz-appearance:none;-webkit-appearance:none;appearance:none;option{color:',";background:",";display:flex;white-space:pre;min-height:20px;padding:0px 2px 1px;}"],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>e.default.color.text.dark,({theme:e})=>e.default.color.text.light,({theme:e})=>e.default.color.text.dark,({theme:e})=>e.default.color.backgrounds.white),r=l.Ay.p.withConfig({componentId:"sc-359fda70-1"})(["font-weight:bold;font-family:",";span{color:",";}"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.primary),n=l.Ay.div.withConfig({componentId:"sc-359fda70-2"})(["width:100%;"]),s=l.Ay.div.withConfig({componentId:"sc-359fda70-3"})(["display:flex;width:100%;"]),d=({options:e,onChange:t,name:o,value:l,label:d,id:c,required:m,checkbox:h,placeholderOverWrite:p})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r,{children:[d,m&&(0,i.jsx)("span",{children:" *"})]}),(0,i.jsxs)(s,{children:[(0,i.jsxs)(a,{defaultValue:"",name:o,value:l,onCh
5ange:t,id:c,children:[(0,i.jsx)("option",{value:"",disabled:!0,children:p||"Please select"}),e.map((e,t)=>(0,i.jsx)("option",{value:e,children:e},t))]}),h&&(0,i.jsxs)(n,{children:[" ",h]})]})]})}}]);
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.