PageSourceSearch

https://www.okehampton-today.co.uk/_next/static/chunks/1480.c1e7de9612c6be49.js

js okehampton-today.co.uk collected 2026-09-26 07:03:47 UTC 12,202 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1480],{1480:(e,o,r)=>{r.r(o),r.d(o,{default:()=>B});var a=r(66352),n=r(95132),t=r(28865),i=r(37763),l=r(71924);let s=l.Ay.div.withConfig({componentId:"sc-3945fc26-0"})([""]),d=l.Ay.div.withConfig({componentId:"sc-3945fc26-1"})(["padding:1rem 0;text-align:center;color:#b11319;font-family:",";font-size:13px;font-style:normal;font-weight:400;line-height:15px;letter-spacing:0em;"],({theme:e})=>e.default.fontFamily.secondaryFont),c=l.Ay.p.withConfig({componentId:"sc-3945fc26-2"})(["font-family:",";font-size:18px;font-style:normal;font-weight:400;line-height:24px;margin-bottom:12px;"],({theme:e})=>e.default.fontFamily.secondaryFont),m=l.Ay.div.withConfig({componentId:"sc-3945fc26-3"})(["display:flex;justify-content:space-between;"]),p=l.Ay.div.withConfig({componentId:"sc-3945fc26-4"})(["font-size:12px;font-style:normal;font-weight:600;line-height:16px;cursor:pointer;&:hover{color:",";}"],({theme:e})=>e.default.color.primary);var u=r(78901),h=r(14),f=r(41957),x=r(25338),g=r(74079),y=r(49843);let w=f.Ik().shape({email:(0,x.E)("Invalid email").required("Required"),password:f.Yj().required("Please enter your password").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[!@#\$%\^&\*])(?=.{8,})/,"Must be at least 8 characters, one uppercase, one number.")}),b=({setState:e})=>{let{Login:o,loginError:r,loginErrorMessage:l,signupSuccess:f,isUnconfirmed:x,resendConfirmationCode:b}
1=(0,n.useContext)(u.cy),[j,v]=(0,n.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[f&&(0,a.jsx)(d,{children:"Thanks for creating an account. Please check your email to verify your account"}),(0,a.jsx)(c,{children:"To leave a comment or submit an event you need to create an account."}),(0,a.jsx)(h.l1,{initialValues:{password:"",email:"",news_letter:!1,remember_me:!1},onSubmit:async e=>{try{await o(e.email,e.password)}catch(e){console.log(e)}},validationSchema:w,children:({values:o,handleChange:n,handleBlur:d,handleSubmit:c,touched:u,errors:f,isSubmitting:w})=>(0,a.jsxs)(h.lV,{onSubmit:c,children:[(0,a.jsx)(i.A,{placeholder:"Email address",required:!0,name:"email",bottom_error:u.email&&f.email,value:o.email,handleChange:n,onBlur:d}),(0,a.jsx)(i.A,{placeholder:"Password",required:!0,inputType:"password",bottom_error:u.password&&f.password,value:o.password,name:"password",handleChange:n,onBlur:d}),(0,a.jsxs)(m,{children:[(0,a.jsx)(y.A,{label:"Remember me",value:o.remember_me,name:"remember_me",handleChange:n}),(0,a.jsx)(p,{onClick:()=>e({form:"ForgotPassword"}),children:"Forgot Password"})]}),r&&(0,a.jsx)("div",{children:l}),x&&(0,a.jsx)("div",{style:{paddingTop:12,fontSize:13},children:j?(0,a.jsx)("span",{style:{color:"green"},children:"Verification email sent — please check your inbox."}):(0,a.jsx)("span",{style:{cursor:"pointer",textDecoration:"underline"},onClick:()=>{b(o.email),v(!0)},children:"Resend verification email"})}),(0,a.jsx)(s,{children:(0,a.jsx)(t.A,{disabled:w||(0,g.I)(f)||""===o.email||""===o.password,fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:"Login"})})]})})]})},j=l.Ay.div.withConfig({componentId:"sc-e9919100-0"})([""]);l.Ay.div.withConfig({componentId:"sc-e9919100-1"})(["padding:1rem 0;text-align:center;"]);let v=l.Ay.p.withConfig({componentId:"sc-e9919100-2"})(["font-family:",";font-size:18px;font-style:normal;font-weight:400;line-height:24px;margin-bottom:12px;"],({theme:e})=>e.default.fontFamily.secondaryFont);var C=r(83736);let A=f.Ik().shape({name:f.Yj().required("Required"),email:(0,x.E)("Invalid email").required("Required"),password:f.Yj().required("Please enter your password").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[!@#\$%\^&\*])(?=.{8,})/,"Must be at least 8 characters, one uppercase, one number."),password_confirm:f.Yj().oneOf([f.KR("password")],"Passwords must match")}),S=({setState:e})=>{let{SignUp:o,signUpError:r,signupSuccess:l,setSignUpError:s,setSignupSuccess:d}=(0,n.useContext)(u.cy);return(0,n.useEffect)(()=>{s(null),l&&e({form:"login"})},[l,s,e]),(0,n.useEffect)(()=>{d(!1)},[d]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{children:"To leave a comment or submit an event you need to create an account."}),(0,a.jsx)(h.l1,{initialValues:{password:"",email:"",name:"",password_confirm:"",remember_me:!1},onSubmit:async e=>{try{if(function(e){let o=C.en,r=e.toLowerCase().split(/\s+/),a=[];for(let e of r)for(let r of o)e===r.match.toLowerCase()&&a.push(`Match found for word '${e}' (ID: '${r.id}') with tags: ${r.tags.join(", ")}.`);return{isProfane:a.length>0,reasons:a}}(e.name).isProfane)s("Please enter a valid name");else{let r={username:e.email,password:e.password,attributes:{name:e.name}};await o(r)}}catch(e){console.log(e)}},validationSchema:A,children:({values:e,handleChange:o,handleBlur:n,handleSubmit:l,errors:s,touched:d})=>(0,a.jsxs)(h.lV,{onSubmit:l,children:[(0,a.jsx)(i.A,{placeholder:"Full name",required:!0,value:e.name,handleChange:o,onBlur:n,name:"name",bottom_error:d.name&&s.name}),(0,a.jsx)(i.A,{placeholder:"Email address",required:!0,bottom_error:d.email&&s.email,value:e.email,handleChange:o,onBlur:n,name:"email"}),(0,a.jsx)(i.A,{placeholder:"Password",required:!0,value:e.password,inputType:"password",bottom_error:d.password&&s.password,handleChange:o,onBlur:n,name:"password"}),(0,a.jsx)(i.A,{placeholder:"Confirm password",inputType:"password",value:e.password_confirm,required:!0,bottom_error:d.password_confirm&&s.password_confirm,handleChange:o,onBlur:n,name:"password_confirm"}),(0,a.jsx)("div",{children:(0,a.jsx)(y.A,{label:"Remember me",value:e.remember_me,name:"remember_me",handleChange:o})}),r&&(0,a.jsx)("div",{style:{paddingTop:20,color:"red"},children:r}),(0,a.jsx)(j,{children:(0,a.jsx)(t.A,{disabled:""===e.name||""===e.email||""===e.password||""===e.password_confirm||(0,g.I)(s),fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:"Sign up"})})]})})]})},_=l.Ay.div.withConfig({componentId:"sc-aa526f47-0"})(["display:flex;border-bottom:1px solid ",";padding-bottom:12px;margin-bottom:12px;"],({theme:e})=>e.default.color.text.light),k=l.Ay.div.withConfig({componentId:"sc-aa526f47-1"})(["width:340px;form{display:grid;row-gap:12px;}"]),I=l.Ay.button.withConfig({componentId:"sc-aa526f47-2"})(["cursor:pointer;text-transform:uppercase;background:none;border:0;color:",";text-decoration:",";font-size:12px;font-style:normal;font-weight:800;line-height:12px;"],({theme:e,$selected:o})=>o?e.default.color.primary:e.default.color.text.dark,({theme:e,$selected:o})=>o?"underline":"none"),q=l.Ay.p.withConfig({componentId:"sc-aa526f47-3"})(["font-family:",";font-size:12px;font-style:normal;font-weight:400;line-height:16px;margin-top:12px;a{text-decoration:underline;}"],({theme:e})=>e.default.fontFamily.secondaryFont),F=l.Ay.div.withConfig({componentId:"sc-aa526f47-4"})(["margin:11px 0;"]),P=f.Ik().shape({email:(0,x.E)("Invalid email").required("Required")}),T=({setState:e})=>{let{forgotPassword:o}=(0,n.useContext)(u.cy);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h.l1,{initialValues:{password:"",email:"",news_letter:!1,remember_me:!1},onSubmit:async r=>{try{await o(r.email),e({form:"ConfirmPassword"})}catch(e){console.log(e)}},validationSchema:P,children:({values:e,handleChange:o,handleBlur:r,handleSubmit:n,touched:l,errors:s,isSubmitting:d})=>(0,a.jsxs)(h.lV,{onSubmit:n,children:[(0,a.jsx)(i.A,{placeholder:"email",label:"Email",required:!0,name:"email",bottom_error:l.email&&s.email,value:e.email,handleChange:o,onBlur:r}),(0,a.jsx)(F,{children:(0,a.jsx)(t.A,{disabled:d||(0,g.I)(s)||""===e.email,fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:"reset"})})]})})})},z=f.Ik().shape({email:(0,x.E)("Invalid email").required("Required")}),E=({setState:e})=>{let{confirmPassword:o,confirmError:r}=(0,n.useContext)(u.cy);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h.l1,{initialValues:{password:"",email:"",code:""},onSubmit:async r=>{try{await o(r.email,r.password,r.code),e({form:"login"})}catch(e){console.log(e)}},validationSchema:z,children:({values:e,handleChange:o,handleBlur:n,handleSubmit:l,touched:s,errors:d,isSubmitting:c})=>(0,a.jsxs)(h.lV,{onSubmit:l,children:[(0,a.jsx)("p",{children:"please check your email and enter your verification code"}),(0,a.jsx)(i.A,{placeholder:"email",label:"Email",required:!0,name:"email",bottom_error:s.email&&d.email,value:e.email,handleChange:o,onBlur:n}
1),(0,a.jsx)(i.A,{placeholder:"code",label:"code",required:!0,name:"code",bottom_error:s.code&&d.code,value:e.code,handleChange:o,onBlur:n}),(0,a.jsx)(i.A,{placeholder:"New password",label:"New password",required:!0,name:"password",inputType:"password",bottom_error:s.password&&d.password,value:e.password,handleChange:o,onBlur:n}),""!==r&&(0,a.jsx)("p",{children:r}),(0,a.jsx)(F,{children:(0,a.jsx)(t.A,{disabled:c||(0,g.I)(d)||""===e.email,fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:"Submit"})})]})})})},B=({type:e})=>{let[o,r]=(0,n.useState)({form:e});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(_,{children:[(0,a.jsx)(I,{onClick:()=>r({...o,form:"login"}),$selected:"login"===o.form,children:"login"}),(0,a.jsx)(I,{onClick:()=>r({...o,form:"signup"}),$selected:"signup"===o.form,children:"sign up"})]}),(0,a.jsxs)(k,{children:["signup"===o.form&&(0,a.jsx)(S,{setState:r}),"login"===o.form&&(0,a.jsx)(b,{setState:r}),"ForgotPassword"===o.form&&(0,a.jsx)(T,{setState:r}),"ConfirmPassword"===o.form&&(0,a.jsx)(E,{setState:r}),(0,a.jsxs)(q,{children:["By creating an account you confirm that you have read and agree to our"," "," ",(0,a.jsx)("a",{href:"/terms",children:"Terms and Conditions"}),"  and ",(0,a.jsx)("a",{href:"/privacy",children:"Privacy Policy"}),"."]})]})]})}},28865:(e,o,r)=>{r.d(o,{A:()=>u});var a=r(66352),n=r(71924);let t=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:",";text-decoration:none;color:",";background-color:",";&:disabled{cursor:not-allowed;opacity:0.6;font-weight:bold;}width:",";"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.text.white,({theme:e})=>e.default.color.primary,({$fullwidth:e})=>e?"100%":"150px"),i=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;border-radius:20px;color:white;font-family:",";background-color:red;text-decoration:none;&:disabled{cursor:not-allowed;background-color:gray;}"],({theme:e})=>e.default.fontFamily.primaryFont),l=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;border-radius:20px;font-size:1.2rem;font-family:Standard Sans,sans-serif;background-color:white;text-decoration:none;&:disabled{cursor:not-allowed;background-color:gray;}"]),s=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:Standard Sans,sans-serif;text-decoration:none;color:",";background-color:",";&:disabled{cursor:not-allowed;background-color:#e7e7e7;font-weight:bold;}"],({disabled:e})=>e?"#858585":"white",({theme:e})=>e.default.color.text.light),d=(0,n.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:Standard Sans,sans-serif;text-decoration:none;text-transform:uppercase;background-color:white;border:1px solid gray;&:disabled{cursor:not-allowed;border:1px solid #d4d4d4;&:hover{background-color:white;}}&:hover{background-color:#f3f3f3;}"]),c=n.Ay.button.withConfig({componentId:"sc-af7f5b26-0"})(["outline:0;border-radius:24px;white-space:nowrap;svg{vertical-align:text-top;font-size:20px;}&:hover{cursor:pointer;&:disabled{cursor:not-allowed;}}width:",";"," "," "," "," ",""],({$fullwidth:e})=>e?"100%":"150px",({$buttonStyle:e})=>"primary"===e&&t,({$buttonStyle:e})=>"secondary"===e&&i,({$buttonStyle:e})=>"clear"===e&&l,({$buttonStyle:e})=>"frost"===e&&s,({$buttonStyle:e})=>"pagination"===e&&d);var m=r(9027),p=r.n(m);let u=({children:e,handleClick:o,disabled:r,buttonStyles:n,buttonType:t="button",icon:i,fullwidth:l,loading:s,lefticon:d,className:m})=>(0,a.jsxs)(c,{type:t,onClick:o,disabled:r,$buttonStyle:n,role:"button",$fullwidth:l,className:m,children:[d,s?(0,a.jsxs)("span",{children:[(0,a.jsx)(p(),{color:"white",loading:s,size:12})," loading"]}):e,i]})}}]);

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.