PageSourceSearch

https://www.tavistock-today.co.uk/_next/static/chunks/2525.6e5bb5bcc0b786e3.js

js tavistock-today.co.uk collected 2026-10-02 07:41:56 UTC 14,534 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2525,3303],{3891:(e,t,o)=>{o.d(t,{A:()=>x});var r=o(66352),n=o(71924);let a=n.Ay.div.withConfig({componentId:"sc-ba6e941c-0"})(["box-shadow:",";border-radius:8px;margin:1rem 0;cursor:pointer;"],({theme:e})=>`0 0  10px ${e.default.color.text.light}`),i=n.Ay.div.withConfig({componentId:"sc-ba6e941c-1"})(["background-color:white;margin-top:auto;text-transform:uppercase;padding:0 1rem;font-family:",";font-size:11px;font-style:normal;font-weight:900;line-height:13px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.fontFamily.secondaryFont),s=n.Ay.div.withConfig({componentId:"sc-ba6e941c-2"})(["padding:0 1rem 1rem 1rem;"]),d=n.Ay.div.withConfig({componentId:"sc-ba6e941c-3"})(["color:",";font-size:12px;display:flex;justify-content:flex-start;font-family:",";font-size:13px;font-style:normal;font-weight:900;line-height:16px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.color.primary,({theme:e})=>e.default.fontFamily.secondaryFont),l=n.Ay.h4.withConfig({componentId:"sc-ba6e941c-4"})(["font-family:",";font-size:18px;font-style:normal;font-weight:700;line-height:20px;letter-spacing:0em;text-align:left;"],({theme:e})=>e.default.fontFamily.primaryFont),c=n.Ay.div.withConfig({componentId:"sc-ba6e941c-5"})(["display:flex;align-items:center;color:",";font-size:12px;padding-top:1rem;font-family:",";font-size:14px;font-style:normal;font-weight:400;line-height:17px;letter-spacing:0em;text-align:left;span{padding-left:0.2rem;}"],({theme:e})=>e.default.color.text.medium,({theme:e})=>e.default.fontFamily.secondaryFont),p=n.Ay.div.withConfig({componentId:"sc-ba6e941c-6"})(["width:100%;height:140px;border-radius:8px 8px 0 0;background-image:",";background-position:center;background-repeat:no-repeat,repeat;background-size:cover;display:flex;"],({$image:e})=>e&&`url(${e})`);var m=o(62373),u=o(72048),f=o(48186),h=o.n(f);let x=({event:e})=>{let t=e.img&&""!==e.img?e.img:`/images/event_types/${({"Car boot and jumble sales":"arts","Clubs / groups / societies":"arts","Charity events":"giving","Family fun days / events":"talking",Film:"theatre",Markets:"food","On stage (music, theatre, performance)":"theatre","Sports / fitness / outdoors activities":"food",Students:"food",Other:"food"})[e.category]}.png`;return(0,r.jsx)(h(),{href:`/whats-on/${e.publication}_${e.createdAt}_${encodeURIComponent(e.name)}`,children:(0,r.jsxs)(a,{children:[(0,r.jsx)(p,{$image:t,children:(0,r.jsx)(i,{children:e.category})}),(0,r.jsxs)(s,{children:[(0,r.jsx)(l,{children:e.name}),(0,r.jsxs)(d,{children:[(0,r.jsx)(u.A,{time:new Date(e.startDate),type:"short"}),e.endDate&&(0,r.jsxs)(r.Fragment,{children:[" ","- ",(0,r.jsx)(u.A,{time:new Date(e.endDate),type:"short"})]})]}),(0,r.jsxs)(c,{children:[(0,r.jsx)(m.q2,{}),(0,r.jsx)("span",{children:e.location})]})]})]})})}},4639:(e,t,o)=>{o.r(t),o.d(t,{default:()=>H});var r=o(66352),n=o(95132),a=o(78901),i=o(4113),s=o(24307),d=o(64028),l=o(89615),c=o(71924);let p=c.Ay.div.withConfig({componentId:"sc-56062029-0"})(["display:grid;grid-template-columns:1fr 1fr 1fr;"]),m=(0,c.AH)(["border-bottom:",";color:",";padding:12px 0;"],({theme:e})=>`1px solid ${e.default.color.primary}`,({theme:e})=>e.default.color.primary),u=(0,c.AH)(["border-bottom:",";padding:12px 0;"],({theme:e})=>`1px solid ${e.default.color.text.light}`),f=c.Ay.div.withConfig({componentId:"sc-56062029-1"})([""," font-family:",";font-size:13px;font-style:normal;font-weight:900;line-height:17px;letter-spacing:0.05em;text-align:left;text-transform:uppercase;cursor:pointer;"],({$active:e})=>e?m:u,({theme:e})=>e.default.fontFamily.primaryFont);var h=o(3891);let x=({events:e})=>e?(0,r.jsx)(r.Fragment,{children:e?.map((e,t)=>(0,r.jsx)("div",{children:(0,r.jsx)(h.A,{event:e},t)},t))}):null;var g=o(28865),w=o(44258);let y=c.Ay.div.withConfig({componentId:"sc-b2986cf3-0"})(["padding:2rem 0;"]),b=c.Ay.div.withConfig({componentId:"sc-b2986cf3-1"})(["max-width:40%;padding:20px 0;@media (max-width:","){max-width:100%;}"],w.KL.medium),v=c.Ay.p.withConfig({componentId:"sc-b2986cf3-2"})(["margin:0;font-family:",";font-size:13px;font-style:normal;font-weight:800;line-height:17px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.fontFamily.secondaryFont);var j=o(23303);let A=({attributes:e,updateUserAttributes:t})=>
1{let[o,a]=(0,n.useState)(e?e[2].Value:"");return(0,r.jsx)(b,{children:(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();try{t(o)}catch(e){console.log(e)}},children:[(0,r.jsx)(j.default,{inputStyles:"frosted",handleChange:e=>a(e.target.value),placeholder:"name",label:"Full Name",required:!1,value:o,name:"name"}),(0,r.jsx)(y,{children:(0,r.jsx)(g.A,{fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:(0,r.jsx)(v,{children:"Save Changes"})})})]})})};var C=o(14),k=o(41957),F=o(37763),I=o(74079);let S=c.Ay.div.withConfig({componentId:"sc-7dc46110-0"})(["padding:2rem 0;"]),_=c.Ay.p.withConfig({componentId:"sc-7dc46110-1"})(["margin:0;font-family:",";font-size:13px;font-style:normal;font-weight:800;line-height:17px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.fontFamily.secondaryFont),$=c.Ay.div.withConfig({componentId:"sc-7dc46110-2"})(["max-width:40%;padding:20px 0;@media (max-width:","){max-width:100%;}.account-pw  span{top:35px;right:5px;}.account-pw{padding:0 0 10px 0;}"],w.KL.medium),z=k.Ik().shape({password:k.Yj().required("Please enter your password").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[!@#\$%\^&\*])(?=.{8,})/,"Must be at least 8 characters, one uppercase, one number."),new_password:k.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:k.Yj().oneOf([k.KR("new_password")],"Passwords must match")}),N=()=>{let{UpdatePassword:e}=(0,n.useContext)(a.cy),[t,o]=(0,n.useState)("");return(0,r.jsx)($,{children:(0,r.jsx)(C.l1,{initialValues:{password:"",new_password:"",password_confirm:""},onSubmit:async t=>{try{e(t.password,t.password_confirm)}catch(e){console.log(e),o(e.message)}},validationSchema:z,children:({values:e,handleChange:t,handleBlur:o,handleSubmit:n,errors:a,touched:i})=>(0,r.jsxs)(C.lV,{children:[(0,r.jsx)(F.A,{className:"account-pw",placeholder:"Current password",label:"Current Password",required:!1,inputType:"password",value:e.password,handleChange:t,onBlur:o,name:"password",bottom_error:i.password&&a.password}),(0,r.jsx)(F.A,{className:"account-pw",placeholder:"New password",label:"New Password",required:!1,inputType:"password",bottom_error:i.new_password&&a.new_password,value:e.new_password,handleChange:t,onBlur:o,name:"new_password"}),(0,r.jsx)(F.A,{className:"account-pw",placeholder:"Confirm new password",label:"Confirm New Password",required:!1,value:e.password_confirm,inputType:"password",bottom_error:i.password_confirm&&a.password_confirm,handleChange:t,onBlur:o,name:"password_confirm"}),(0,r.jsx)(S,{children:(0,r.jsx)(g.A,{disabled:""===e.new_password||""===e.password||""===e.password_confirm||(0,I.I)(a),fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:(0,r.jsx)(_,{children:"Save Changes"})})})]})})})},q=({events:e,attributes:t,updateUserAttributes:o})=>{let[a,i]=(0,n.useState)("Your details");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{children:["Your details","Change password","view your events"].map((e,t)=>(0,r.jsx)(f,{onClick:()=>i(e),$active:a===e,children:e},t))}),"view your events"===a&&(0,r.jsx)(x,{events:e}),"Change password"===a&&(0,r.jsx)(N,{}),"Your details"===a&&(0,r.jsx)(A,{attributes:t,updateUserAttributes:o})]})},H=({publication:e})=>{let{push:t}=(0,l.useRouter)(),{userPool:o,updateUserAttributes:c,attributes:p}=(0,n.useContext)(a.cy),[m,u]=(0,n.useState)([]),[f,h]=(0,n.useState)(),x=(0,n.useCallback)(async()=>{try{let e=await o.current.getCurrentUser();h(e)}catch(e){h(!1)}},[o]);(0,n.useEffect)(()=>{x()},[x]);let g=(0,n.useCallback)(async()=>{try{if(!f)return null;let{data:t}=await d.A.put(`/api/events?publication=${e}`,{type:"my_event",userId:f.username});u(t)}catch(e){}},[f,e]);return((0,n.useEffect)(()=>{g()},[g]),(0,n.useEffect)(()=>{null===f&&t("/")},[f,t]),f)?(0,r.jsxs)(s.A,{children:[(0,r.jsx)(i.A,{type:"account",children:"Account Overview"}),(0,r.jsx)(q,{updateUserAttributes:c,attributes:p,events:m})]}):null}},23303:(e,t,o)=>{o.r(t),o.d(t,{default:()=>h});var r=o(66352);o(95132);var n=o(71924);let a=(0,n.AH)(["border-radius:20px;background-color:",";border:",";box-shadow:"," inset;-webkit-appearance:none;height:40px;"],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>`1px solid ${e.default.color.text.light}`,({theme:e})=>`0 0 0 0 ${e.default.color.text.light}
1`),i=(0,n.AH)(["height:40px;border-radius:20px;"]),s=(0,n.AH)(["height:40px;border-radius:20px;"]),d=n.Ay.input.withConfig({componentId:"sc-742cd590-0"})(["background-color:",";font-family:",";outline:0;width:100%;font-size:16px;font-style:normal;font-weight:600;line-height:24px;border:",";padding:20px;border-radius:20px;box-sizing:border-box;&:focus{border:",";}&:hover{border:",";}&::placeholder{color:grey;}"," "," ",""],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>`1px solid ${e.default.color.text.light}`,({theme:e})=>`2px solid ${e.default.color.primary}`,({theme:e})=>`1px solid ${e.default.color.primary}`,({$inputStyles:e})=>"default"===e&&s,({$inputStyles:e})=>"frosted"===e&&a,({$inputStyles:e})=>"form"===e&&i),l=n.Ay.span.withConfig({componentId:"sc-742cd590-1"})(["color:red;font-size:10px;padding-left:1rem;position:absolute;bottom:5px;"]),c=n.Ay.span.withConfig({componentId:"sc-742cd590-2"})(["color:red;font-size:10px;position:absolute;"]),p=n.Ay.div.withConfig({componentId:"sc-742cd590-3"})(["position:relative;white-space:nowrap;"]),m=n.Ay.p.withConfig({componentId:"sc-742cd590-4"})(["font-weight:bold;font-family:",";span{color:",";}"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.primary),u=n.Ay.div.withConfig({componentId:"sc-742cd590-5"})(["display:flex;align-items:flex-start;flex-direction:column;width:100%;span{margin-right:1rem;}"]),f=n.Ay.div.withConfig({componentId:"sc-742cd590-6"})(["width:100%;"]),h=({inputType:e="text",placeholder:t,handleChange:o,value:n,name:a,error:i,inputStyles:s="default",onBlur:h,label:x,required:g,pattern:w,prefix:y,checkbox:b,bottom_error:v,className:j})=>(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)(p,{children:(0,r.jsx)(l,{children:i})}),(0,r.jsxs)(u,{className:j,children:[(0,r.jsxs)(m,{children:[x,g&&(0,r.jsx)("span",{children:" *"})]}),y&&(0,r.jsx)("span",{children:y}),(0,r.jsx)(d,{$inputStyles:s,type:e,onBlur:h,placeholder:t,onChange:o,autoComplete:"off",value:n,name:a,"data-testid":"input",pattern:w}),b&&(0,r.jsx)(f,{children:b})]}),v&&(0,r.jsx)(p,{children:(0,r.jsx)(c,{children:v})})]})},24307:(e,t,o)=>{o.d(t,{A:()=>s});var r=o(66352),n=o(71924);let a=n.Ay.div.withConfig({componentId:"sc-1ac7a747-0"})([""]),i=n.Ay.div.withConfig({componentId:"sc-1ac7a747-1"})(["max-width:975px;margin:1rem auto;@media (max-width:1150px){max-width:95vw;margin:1rem auto;}&.section-wrapper{margin:250px auto 1rem;@media (max-width:1150px){margin:1rem auto;}}&.section-wrapper--wide{@media (min-width:1151px){max-width:1200px;}}&.section-wrapper--flush-top{@media (min-width:1151px){margin-top:1rem;}}"]),s=({children:e,innerClassName:t})=>(0,r.jsx)(a,{children:(0,r.jsx)(i,{className:t,children:e})})},28865:(e,t,o)=>{o.d(t,{A:()=>u});var r=o(66352),n=o(71924);let a=(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),s=(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;}"]),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;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),l=(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&&a,({$buttonStyle:e})=>"secondary"===e&&i,({$buttonStyle:e})=>"clear"===e&&s,({$buttonStyle:e})=>"frost"===e&&d,({$buttonStyle:e})=>"pagination"===e&&l);var p=o(9027),m=o.n(p);let u=({children:e,handleClick:t,disabled:o,buttonStyles:n,buttonType:a="button",icon:i,fullwidth:s,loading:d,lefticon:l,className:p})=>(0,r.jsxs)(c,{type:a,onClick:t,disabled:o,$buttonStyle:n,role:"button",$fullwidth:s,className:p,children:[l,d?(0,r.jsxs)("span",{children:[(0,r.jsx)(m(),{color:"white",loading:d,size:12})," loading"]}):e,i]})},88283:(e,t,o)=>{o.d(t,{Y0:()=>l,fb:()=>d,zz:()=>s});var r=o(95132),n=o(44258),a=o(62812);let i=()=>()=>{},s=()=>(0,r.useSyncExternalStore)(i,()=>!0,()=>!1),d=e=>{let t=(0,a.Ub)(e);return s()&&t},l=()=>{let e=(0,r.useSyncExternalStore)(i,()=>void 0!==navigator.share,()=>!1);return{screenSize:{extra_large:d({query:`(max-width: ${n.KL.huge})`}),large:d({query:`(max-width: ${n.KL.large})`}),medium:d({query:`(max-width: ${n.KL.medium})`}),small:d({query:`(max-width: ${n.KL.small})`})},nativeSharing:e}}}}]);

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.