PageSourceSearch

https://www.wpa.org.uk/_next/static/chunks/0pjgjn4mp7o2w.js

js wpa.org.uk collected 2026-09-24 10:05:17 UTC 13,537 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69227,e=>{"use strict";let t=["sacmsmedia.blob.core.windows.net","cdn.wpa.org.uk","dev.wpa.org.uk"];e.s(["isValidImageSrc",0,e=>{if(!e)return!1;if(e.startsWith("/"))return!0;try{let a=new URL(e);return t.includes(a.hostname)}catch{return!1}}])},92904,60776,e=>{"use strict";var t=e.i(69279),a=e.i(13272),s=e.i(62323),i=e.i(10940);function l(e){let s,l=(0,a.c)(2),{children:r}=e;return l[0]!==r?(s=(0,t.jsx)(i.default,{src:"/images/icons/standard-icons/chevron-left-white.svg",alt:"Back arrow",focusSrc:"/images/icons/standard-icons/chevron-left-black.svg",hoverSrc:"/images/icons/standard-icons/chevron-left-blue.svg",size:"sm",imgClassName:"min-w-6 w-6! flex-shrink-0",eager:!0,children:r}),l[0]=r,l[1]=s):s=l[1],s}e.s(["default",0,l],60776),e.s(["default",0,function(e){let i,r,n,c=(0,a.c)(7),{className:d}=e,o=(0,s.useRouter)(),m=(0,s.usePathname)();c[0]!==m||c[1]!==o?(i=e=>{if(e.preventDefault(),window.history.length>2)o.back();else{let e=m.split("/").filter(Boolean),t=`/${e.slice(0,-1).join("/")}`;m.includes("/health-wellbeing/articles/")&&(t="/health-wellbeing"),o.push(t||"/")}},c[0]=m,c[1]=o,c[2]=i):i=c[2];let u=i,h=`${void 0===d?"btn standard-btn-blue px-10":d} group leading-none transition-none! `;return c[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(l,{children:(0,t.jsx)("span",{children:"Back"})}),c[3]=r):r=c[3],c[4]!==u||c[5]!==h?(n=(0,t.jsx)("button",{onClick:u,className:h,children:r}),c[4]=u,c[5]=h,c[6]=n):n=c[6],n}],92904)},84530,e=>{"use strict";var t=e.i(69279),a=e.i(13272);e.i(7865),e.s(["default",0,function(e){let s,i,l=(0,a.c)(8),{directUrl:r,trackingLabel:n,label:c,className:d,dataTestId:o}=e,m=void 0===r?"":r,u=void 0===c?"Get a quote":c;return l[0]!==m?(s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`https://my-i.wpa.org.uk/get-quote${e}`}(m),l[0]=m,l[1]=s):s=l[1],l[2]!==d||l[3]!==o||l[4]!==u||l[5]!==s||l[6]!==n?(i=(0,t.jsx)("a",{href:s,"data-track-quote":n,className:d,"data-testid":o,children:u}),l[2]=d,l[3]=o,l[4]=u,l[5]=s,l[6]=n,l[7]=i):i=l[7],i}],84530)},35521,e=>{"use strict";var t=e.i(69279),a=e.i(13272),s=e.i(94675),i=e.i(53832),l=e.i(92904),r=e.i(84530),n=e.i(60776);function c(e){let i,l,r=(0,a.c)(3),{className:c}=e,d=`${void 0===c?"btn standard-btn-blue px-10":c} group leading-none transition-none! inline-block`;return r[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(n.default,{children:(0,t.jsx)("span",{children:"News"})}),r[0]=i):i=r[0],r[1]!==d?(l=(0,t.jsx)(s.default,{href:"/news",className:d,children:i}),r[1]=d,r[2]=l):l=r[2],l}var d=e.i(95634);function o(e){let s,i,l,r=(0,a.c)(9),{data:n,id:c,testId:d}=e;if(r[0]!==n){let e;r[2]===Symbol.for("react.memo_cache_sentinel")?(e=/</g,r[2]=e):e=r[2],s=JSON.stringify(n).replace(e,"\\u003c"),r[0]=n,r[1]=s}else s=r[1];let o=s;return r[3]!==o?(i={__html:o},r[3]=o,r[4]=i):i=r[4],r[5]!==c||r[6]!==i||r[7]!==d?(l=(0,t.jsx)("script",{id:c,type:"application/ld+json","data-testid":d,dangerouslySetInnerHTML:i}),r[5]=c,r[6]=i,r[7]=d,r[8]=l):l=r[8],l}function m(e){let i,l,r,n,c,m,h=(0,a.c)(12),{breadcrumbs:f}=e;if(h[0]!==f)i={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Homepage",item:"https://www.wpa.org.uk/"},...f.map((e,t)=>({"@type":"ListItem",position:t+2,name:e.label,item:e.href?"https://www.wpa.org.uk"+e.href:void 0}))]},h[0]=f,h[1]=i;else i=h[1];let g=i;return h[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(s.default,{href:"/",className:"font-light my-auto hover:opacity-70 group","aria-label":"Go to homepage","data-testid":"breadcrumb-home-link",children:(0,t.jsx)(d.default,{src:"/images/icons/standard-icons/house-fill-white.svg",focusSrc:"/images/icons/standard-icons/house-fill-black.svg",alt:"Homepage",size:"sm",eager:!0})}),h[2]=l):l=h[2],h[3]!==f?(r=f.map(u),h[3]=f,h[4]=r):r=h[4],h[5]!==r?(n=(0,t.jsxs)("nav",{className:"animate-fade-in-up inline-flex flex-wrap gap-1 sm:gap-3 m-bottom text-sm sm:text-base 2xl:text-lg","aria-label":"breadcrumb",children:[l,r]}
1),h[5]=r,h[6]=n):n=h[6],h[7]!==g?(c=(0,t.jsx)(o,{id:"ld-structuredData",data:g,testId:"structured-data"}),h[7]=g,h[8]=c):c=h[8],h[9]!==n||h[10]!==c?(m=(0,t.jsxs)(t.Fragment,{children:[n,c]}),h[9]=n,h[10]=c,h[11]=m):m=h[11],m}function u(e){return(0,t.jsxs)("div",{className:"flex gap-1 sm:gap-3",children:[(0,t.jsx)(d.default,{src:"/images/icons/standard-icons/chevron-right-white.svg",alt:"Chevron",size:"xs",className:"my-auto",eager:!0}),(0,t.jsx)(s.default,{href:e.href,className:"text-white font-light my-auto","data-testid":"breadcrumb"+e.href.split("/").join("-")+"-link",children:e.label},e.href)]},e.href)}e.i(7865);var h=e.i(23368),f=e.i(69227);e.s(["default",0,function(e){let n,o,u,g,x,p,b,v,j,w,N,y,$,k,S=(0,a.c)(43),{backgroundImage:L,breadcrumbs:I,heading:_,subtitle:C,link:T,getQuoteButton:z,logo:R,hasOverlay:D,backButton:B,newsButton:U,publishedDate:F}=e,[O,P]=(0,i.useState)(!1);S[0]!==L.src||S[1]!==O?(n=(0,f.isValidImageSrc)(L.src)&&!O,S[0]=L.src,S[1]=O,S[2]=n):n=S[2];let q=n;S[3]!==L.alt||S[4]!==L.src||S[5]!==q?(o=q?(0,t.jsx)(h.default,{src:L.src,alt:L.alt,width:1920,height:1080,preload:!0,sizes:"100vw",className:"absolute h-full w-full object-cover inset-0 text-transparent",style:{color:""},fetchPriority:"high",onError:()=>P(!0)}):(0,t.jsx)("div",{className:"absolute h-full w-full bg-k40 inset-0"}),S[3]=L.alt,S[4]=L.src,S[5]=q,S[6]=o):o=S[6];let A=`relative text-white pt-16 ${void 0===D||D?"bg-black/40":""}`;S[7]!==I?(u=I&&I.length>0&&(0,t.jsx)(m,{breadcrumbs:I}),S[7]=I,S[8]=u):u=S[8];let E=`animate-fade-in-up ${_.className||""}`;return S[9]!==_.image?(g=_.image&&(0,t.jsx)(d.default,{src:_.image.src,alt:_.image.alt,size:_.image.size||"xl"}),S[9]=_.image,S[10]=g):g=S[10],S[11]!==_.content||S[12]!==E||S[13]!==g?(x=(0,t.jsxs)("h1",{className:E,id:"hero",children:[g,_.content]}),S[11]=_.content,S[12]=E,S[13]=g,S[14]=x):x=S[14],S[15]!==F?(p=F&&(0,t.jsx)("p",{className:"animate-fade-in-up font-medium text-white",children:F}),S[15]=F,S[16]=p):p=S[16],S[17]!==C?(b=C&&(0,t.jsx)("p",{className:`subtitle animate-fade-in-up ${C.className||""}`,children:C.content}),S[17]=C,S[18]=b):b=S[18],S[19]!==B||S[20]!==z||S[21]!==T||S[22]!==U?(v=(z||T||B||U)&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-default",children:[z&&(0,t.jsx)(r.default,{directUrl:z.directUrl,trackingLabel:z.trackingLabel,label:z?.label,className:`animate-fade-in-up ${z.className}`,dataTestId:z.dataTestId}),T&&(0,t.jsx)(s.default,{href:T.href,className:`animate-fade-in-up ${T.className}`,"data-testid":T.dataTestId,children:T.label}),B&&(0,t.jsx)(l.default,{className:"animate-fade-in-up btn standard-btn-blue px-10"}),U&&(0,t.jsx)(c,{className:"animate-fade-in-up btn standard-btn-blue px-10"})]}),S[19]=B,S[20]=z,S[21]=T,S[22]=U,S[23]=v):v=S[23],S[24]!==b||S[25]!==v||S[26]!==x||S[27]!==p?(j=(0,t.jsxs)("div",{className:"md:w-6/12",children:[x,p,b,v]}),S[24]=b,S[25]=v,S[26]=x,S[27]=p,S[28]=j):j=S[28],S[29]!==R?(w=R&&(0,t.jsx)(h.default,{src:R.src,alt:R.alt,width:0,height:0,sizes:"(max-width: 768px) 50vw, 25vw",className:`${R.className} animate-fade-in-up`,style:{color:""}}),S[29]=R,S[30]=w):w=S[30],S[31]!==j||S[32]!==w?(N=(0,t.jsxs)("div",{className:"md:flex md:justify-between",children:[j,w]}),S[31]=j,S[32]=w,S[33]=N):N=S[33],S[34]!==N||S[35]!==u?(y=(0,t.jsxs)("div",{className:"content-container",children:[u,N]}),S[34]=N,S[35]=u,S[36]=y):y=S[36],S[37]!==y||S[38]!==A?($=(0,t.jsx)("div",{className:A,children:y}),S[37]=y,S[38]=A,S[39]=$):$=S[39],S[40]!==$||S[41]!==o?(k=(0,t.jsxs)("section",{className:"relative","aria-labelledby":"hero",children:[o,$]}),S[40]=$,S[41]=o,S[42]=k):k=S[42],k}],35521)},35959,e=>{"use strict";e.s(["formatDate",0,function(e){let t;if(!e)return"";if(4===e.trim().split(/[-\s]/)[0].length)t=new Date(e.trim().split(/\s/)[0]+"T00:00:00Z");else{let[a,s,i]=e.split(/[-\s:]/);t=new Date(Date.UTC(+i,s-1,+a))}return t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})},"hashString",0,function(e){let t=0;for(let a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a),t&=t;return Math.abs(t).toString(36)}])},72725,e=>{"use strict";var t=e.i(13272),a=e.i(53832);e.s(["default",0,function(e,s){let i,l,r,n=(0,t.c)(6);n[0]!==s?(i=void 0===s?{}:s,n[0]=s,n[1]=i):i=n[1];let{once:c}=i,d=void 0===c||c,[o,m]=(0,a.useState)(!1),u=(0,a.useRef)(!1);return n[2]!==d||n[3]!==e?(l=()=>{if(d&&u.current)return;let t=new IntersectionObserver(e=>{for(let a of e){if(d&&(a.isIntersecting||a.boundingClientRect.top<0)){m(!0),u.current=!0,t.disconnect();return}m(a.isIntersecting||a.boundingClientRect.top<0)}},{threshold:.3});return e.current&&t.observe(e.current),()=>t.disconnect()},r=[e,d],n[2]=d,n[3]=e,n[4]=l,n[5]=r):(l=n[4],r=n[5]),(0,a.useEffect)(l,r),o}])},14596,e=>{"use strict";var t=e.i(69279),a=e.i(13272),s=e.i(53832),i=e.i(23368),l=e.i(72725),r=e.i(35959);let n=e=>
1"left"===e?"md:w-1/2 pl-10 md:pl-0 md:pr-10 xl:pr-30":"md:w-1/2 pl-10 xl:pl-30";function c(e){let r,c,d,o,m,u=(0,a.c)(13),{img:h,side:f,isLogo:g,overlay:x}=e,p=(0,s.useRef)(null),b=(0,l.default)(p),v=b?`motion-safe:animate-fade-in-scale-${f}`:"",j=("left"===f?"md:ml-auto":"md:mr-auto")+" "+(g?"h-40 md:h-50 w-auto":"w-full h-auto rounded-lg");u[0]===Symbol.for("react.memo_cache_sentinel")?(r={color:""},u[0]=r):r=u[0],u[1]!==j||u[2]!==h.alt||u[3]!==h.src?(c=(0,t.jsx)(i.default,{src:h.src,alt:h.alt,height:"0",width:"0",sizes:"50vw",loading:"lazy",className:j,style:r}),u[1]=j,u[2]=h.alt,u[3]=h.src,u[4]=c):c=u[4];let w=c;u[5]!==f?(d=n(f),u[5]=f,u[6]=d):d=u[6];let N=`order-2 md:order-0 my-auto ${d} ${v} motion-reduce:animate-fade-in-simple ${b?"opacity-100":"opacity-0"} transition-opacity duration-1000 ease-out`;return u[7]!==w||u[8]!==x?(o=x?(0,t.jsxs)("div",{className:"relative",children:[w,x]}):w,u[7]=w,u[8]=x,u[9]=o):o=u[9],u[10]!==N||u[11]!==o?(m=(0,t.jsx)("div",{ref:p,className:N,children:o}),u[10]=N,u[11]=o,u[12]=m):m=u[12],m}function d(e){let i,r,d,o,m,u,h=(0,a.c)(32),{children:f,isLast:g,side:x,img:p,isLogo:b,overlay:v,textRight:j,showTimeline:w,dotColor:N,lineColor:y,isDashed:$}=e,k=(0,s.useRef)(null),S=(0,l.default)(k),L=S?`motion-safe:animate-fade-in-scale-left${"right"===x?" motion-safe:md:animate-fade-in-scale-right":""}`:"";h[0]!==x?(i=n(x),h[0]=x,h[1]=i):i=h[1];let I=i;if(!w){let e,a,s,i=`relative ${!g?"m-bottom-full":""} ${S?"opacity-100":"opacity-0"} transition-opacity duration-1000 ease-out`,l=`flex flex-col md:flex-row ${L} motion-reduce:animate-fade-in-simple`;return h[2]!==f||h[3]!==x?(e="left"===x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"md:w-1/2 md:pr-10 xl:pr-20 md:text-right",children:f}),(0,t.jsx)("div",{className:"hidden md:block md:w-1/2"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hidden md:block md:w-1/2"}),(0,t.jsx)("div",{className:"md:w-1/2 md:pl-10 xl:pl-20",children:f})]}),h[2]=f,h[3]=x,h[4]=e):e=h[4],h[5]!==l||h[6]!==e?(a=(0,t.jsx)("div",{className:l,children:e}),h[5]=l,h[6]=e,h[7]=a):a=h[7],h[8]!==i||h[9]!==a?(s=(0,t.jsx)("div",{ref:k,className:i,children:a}),h[8]=i,h[9]=a,h[10]=s):s=h[10],s}let _=`relative ${!g&&p?"pb-7 md:pb-10 lg:pb-14 xl:pb-20 2xl:pb-24":""} ${S?"opacity-100":"opacity-0"} transition-opacity duration-1000 ease-out`;h[11]!==N?(r=N&&(0,t.jsx)("div",{className:`absolute w-4 h-4 z-1 ${N} rounded-full md:left-1/2 md:-ml-2`}),h[11]=N,h[12]=r):r=h[12],h[13]!==$||h[14]!==y?(d=y&&(0,t.jsx)("div",{className:`absolute left-1.5 md:left-1/2 top-0 bottom-0 w-px border ${y} md:-ml-px ${$?"border-dashed":"border-solid"}`}),h[13]=$,h[14]=y,h[15]=d):d=h[15];let C=`flex flex-col md:flex-row ${L} motion-reduce:animate-fade-in-simple`;return h[16]!==I||h[17]!==f||h[18]!==p||h[19]!==b||h[20]!==v||h[21]!==x||h[22]!==j?(o="left"===x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`order-1 md:order-0 ${I} ${j?"md:text-right":""}`,children:f}),p?(0,t.jsx)(c,{img:p,side:"right",isLogo:b,overlay:v}):(0,t.jsx)("div",{className:"hidden md:block md:w-1/2"})]}):(0,t.jsxs)(t.Fragment,{children:[p?(0,t.jsx)(c,{img:p,side:"left",isLogo:b,overlay:v}):(0,t.jsx)("div",{className:"hidden md:block md:w-1/2"}),(0,t.jsx)("div",{className:`order-1 md:order-0 ${I}`,children:f})]}),h[16]=I,h[17]=f,h[18]=p,h[19]=b,h[20]=v,h[21]=x,h[22]=j,h[23]=o):o=h[23],h[24]!==C||h[25]!==o?(m=(0,t.jsx)("div",{className:C,children:o}),h[24]=C,h[25]=o,h[26]=m):m=h[26],h[27]!==_||h[28]!==r||h[29]!==d||h[30]!==m?(u=(0,t.jsxs)("div",{ref:k,className:_,children:[r,d,m]}),h[27]=_,h[28]=r,h[29]=d,h[30]=m,h[31]=u):u=h[31],u}let o=[];e.s(["default",0,function(e){let s,i,l=(0,a.c)(19),{items:n,dotColor:c,lineColor:m,textRight:u,dashedLineIndexes:h,className:f,isLogo:g}=e,x=void 0===h?o:h,p=void 0===f?"":f,b=null!=c||null!=m;if(l[0]!==x||l[1]!==c||l[2]!==g||l[3]!==n||l[4]!==m||l[5]!==b||l[6]!==u){let e;l[8]!==x||l[9]!==c||l[10]!==g||l[11]!==n.length||l[12]!==m||l[13]!==b||l[14]!==u?(e=(e,a)=>{let s=a%2==0?"left":"right",i=a===n.length-1,l=`card-${(0,r.hashString)(a.toString())}`,o=x.includes(a),h="string"==typeof c?c:c?.[a%(c?.length||1)];return(0,t.jsx)(d,{isLast:i,side:s,img:e?.img,isLogo:g,overlay:e?.overlay,textRight:u,showTimeline:b,dotColor:h,lineColor:m,isDashed:o,children:e.content},l)},l[8]=x,l[9]=c,l[10]=g,l[11]=n.length,l[12]=m,l[13]=b,l[14]=u,l[15]=e):e=l[15],s=n.map(e),l[0]=x,l[1]=c,l[2]=g,l[3]=n,l[4]=m,l[5]=b,l[6]=u,l[7]=s}else s=l[7];return l[16]!==p||l[17]!==s?(i=(0,t.jsx)("div",{className:p,children:s}),l[16]=p,l[17]=s,l[18]=i):i=l[18],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.