PageSourceSearch

https://www.sja.org.uk/_next/static/chunks/9712-2979eb0393e2bdd3.js?dpl=dpl_89WaVK5MHYmatDUG3eSP5vpNeiwg

js sja.org.uk collected 2026-10-02 02:49:06 UTC 157,199 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9712],{7332:(e,t,n)=>{n.d(t,{_:()=>s});var a=n(95155),i=n(45073),l=n(78971),o=n(4189);function s(e){let{data:t}=e,{fullName:n,websiteUrl:s,bio:r,jobTitle:d,teams:c,profileImage:u}=t.fields;return(0,a.jsx)("section",{"data-contentful-entry-id":t.sys.id,className:"mx-auto mb-4 w-full",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 py-6 px-10 bg-white w-full",children:[(0,a.jsxs)("div",{className:"flex justify-start items-center gap-4",children:[u?(0,a.jsx)(i._c,{data:u,className:"rounded-full size-20 overflow-hidden",sizes:"80px"}):null,(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("div",{className:"text-contrast-five text-2xl/tight font-bold",children:n}),d||c&&c.length>0&&(0,a.jsxs)("div",{className:"text-contrast-five text-base/snug font-normal",children:[d," ",c&&c.length>0&&", ".concat(null==c?void 0:c.join(", "))]})]})]}),r&&(0,a.jsx)(o.r,{content:r}),s&&(0,a.jsx)(l.gH,{url:s,label:s,openInNewTab:!0,relAttributes:["nofollow","noopener"],icon:"info",iconPosition:"left",style:"primary alternative",animateUnderline:!0,className:"",children:"Website"})]})})}},11952:(e,t,n)=>{n.d(t,{f:()=>d});var a=n(95155),i=n(78971),l=n(85423),o=n(12115),s=n(72671);function r(e){let{title:t,text:n,url:i,image:l,className:o}=e,r=e=>{if(!e)return"";if(e.startsWith("//"))return"https:".concat(e);if(e.startsWith("http://")||e.startsWith("https://"))return e;try{return new URL(e,window.location.origin).toString()}catch(t){return e}},d=async e=>{try{var t,n;let{file:a}=e.fields,i=r(a.url);if(!i)return null;let l=await fetch(i,{cache:"no-store"});if(!l.ok)return null;let o=await l.blob();return new File([o],null!=(t=a.fileName)?t:"share",{type:null!=(n=a.contentType)?n:o.type})}catch(e){return null}},c=async()=>{if("undefined"==typeof navigator||!("share"in navigator))return void console.error("Web Share not supported");let e={title:t,text:n,url:i};try{if(l&&"canShare"in navigator&&"function"==typeof navigator.canShare){let t=await d(l);if(t&&navigator.canShare({files:[t]}))return void await navigator.share({...e,files:[t]})}await navigator.share(e)}catch(e){var a;if((null==e?void 0:e.name)==="AbortError")return;console.error("Error: ".concat(null!=(a=null==e?void 0:e.message)?a:String(e)))}};return(0,a.jsx)(s.Q,{onClick:c,label:"Share",icon:"share",iconPosition:"top",type:"text",style:"primary alternative",className:o})}function d(e){let{previewData:t,title:n,text:s,url:d,image:c}=e,{cardHeadline:u,cardSummary:p}=(null==t?void 0:t.fields)||{},m=p||s||"Teaching and providing first aid and medical services across the UK. Get advice, volunteer, donate, or fundraise with St John Ambulance.",y=(null==t?void 0:t.fields)&&t.sys.id?(0,l.BS)(t.fields,t.sys.id):void 0,[g,f]=(0,o.useState)("https://www.sja.org.uk/");(0,o.useEffect)(()=>{null==d&&f(window.location.href)},[d]);let x=null!=d?d:g,b="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(x),v="https://x.com/intent/tweet?url="+encodeURIComponent(x)+"&text="+encodeURIComponent(m);return(0,a.jsxs)("div",{className:"flex flex-col gap-6 py-6 align-center justify-center bg-white w-full",children:[(0,a.jsx)("h3",{className:"color-contrast-five text-center text-md/6 font-bold",children:"Share"}),(0,a.jsxs)("div",{className:"flex gap-10 align-center justify-center",children:[(0,a.jsx)(r,{title:u||n||"St John Ambulance: England's First Aid Charity",text:m,url:x,image:y||c||void 0,className:"[&_svg]:text-contrast-five! hover:[&_svg]:text-primary!"}),(0,a.jsx)(i.gH,{url:b,icon:"facebook",iconPosition:"top",type:"text",label:"Facebook",style:"primary alternative",openInNewTab:!0,className:"[&_svg]:text-contrast-five! hover:[&_svg]:text-primary!"}),(0,a.jsx)(i.gH,{url:v,icon:"x",iconPosition:"top",type:"text",label:"X",style:"primary alternative",openInNewTab:!0,className:"[&_svg]:text-contrast-five! hover:[&_svg]:text-primary!"})]})]})}}
1,19733:(e,t,n)=>{n.d(t,{default:()=>$});var a=n(95155),i=n(28404),l=n(7936),o=n(12115),s=n(86975),r=n(37532),d=n(80412);let c=e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return Math.abs(t).toString(36).substring(0,7)},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"studio";return"".concat(t,"-").concat(c(e))};function p(e){return"object"==typeof e&&null!==e&&"sys"in e&&"fields"in e}function m(e){var t,n,a;return p(e)&&(null==(a=e.sys)||null==(n=a.contentType)||null==(t=n.sys)?void 0:t.id)==="brandfolderImage"}function y(e){var t;return p(e)&&(null==(t=e.sys.contentType)?void 0:t.sys.id)==="brandfolderImageAsset"}function g(e){let{url:t,fitType:n="fill",focusArea:a="center"}=e;return{sys:{id:u("placeholder-image-".concat(t),"placeholder-image"),type:"Entry",contentType:{sys:{id:"image"}}},fields:{image:f({url:t}),focusArea:a,fitType:n,internalName:"Placeholder Image"}}}function f(e){let{url:t}=e;return{sys:{id:"placeholderId",type:"Asset",contentType:{sys:{id:"image"}}},fields:{title:"Placeholder Image",file:{url:t,details:{size:0,image:{width:3840,height:3840}}}}}}let x=e=>{var t,n,a;let i=null!=(a=e.profileImage)?a:e.profilePicture,l=i&&"object"==typeof i&&(null==(t=i.sys)?void 0:t.type)==="Entry"?i:void 0,o=e.profilePicture,s=o&&"object"==typeof o&&(null==(n=o.sys)?void 0:n.type)==="Asset"?o:"string"==typeof o?f({url:o}):void 0,r="person-".concat(e.fullName,"-").concat(e.jobTitle);return{sys:{id:u(r,"studio-person-info"),type:"Entry",contentType:{sys:{id:u(r,"person-info")}}},fields:{internalName:"Studio Person Info",fullName:e.fullName,jobTitle:e.jobTitle,teams:e.teams,bio:e.bio,profilePicture:s,profileImage:l,websiteUrl:e.websiteUrl}}},b=e=>{var t,n,a;return{sys:{id:u("link-".concat(e.url,"-").concat(e.label),"link"),type:"Link"},fields:{label:e.label,url:e.url,openInNewTab:e.openInNewTab,relAttributes:e.relAttributes,type:e.type,style:e.style,icon:e.icon,customIcon:e.customIcon,brandfolderCustomIcon:e.brandfolderCustomIcon,iconPosition:e.iconPosition,hideLabel:e.hideLabel,size:e.size,isDownload:null!=(t=e.isDownload)&&t,fileToDownload:null!=(n=e.fileToDownload)?n:void 0,brandfolderFileToDownload:null!=(a=e.brandfolderFileToDownload)?a:void 0}}},v={IMAGE:{focusAreas:[{value:"center",displayName:"Center"},{value:"top",displayName:"Top"},{value:"right",displayName:"Right"},{value:"left",displayName:"Left"},{value:"bottom",displayName:"Bottom"},{value:"top_right",displayName:"Top Right"},{value:"top_left",displayName:"Top Left"},{value:"bottom_right",displayName:"Bottom Right"},{value:"bottom_left",displayName:"Bottom Left"},{value:"face",displayName:"Face"},{value:"faces",displayName:"Faces"}],fitTypes:[{value:"pad",displayName:"Pad"},{value:"fill",displayName:"Fill"},{value:"scale",displayName:"Scale"},{value:"crop",displayName:"Crop"},{value:"thumb",displayName:"Thumb"}]},LINK:{sizes:[{value:"small",displayName:"Small"},{value:"medium",displayName:"Medium"},{value:"large",displayName:"Large"}],relAttributes:[{value:"",displayName:"None"},{value:"nofollow",displayName:"No Follow"},{value:"noopener",displayName:"No Opener"},{value:"noreferrer",displayName:"No Referer"}],types:[{value:"text",displayName:"Text"},{value:"button",displayName:"Button"}],styles:[{value:"primary",displayName:"Primary"},{value:"primary alternative",displayName:"Primary Alternative"},{value:"secondary",displayName:"Secondary"},{value:"secondary alternative",displayName:"Secondary Alternative"},{value:"highlight",displayName:"Highlight"}],icons:[{value:"",displayName:"None"},{value:"support",displayName:"Support"},{value:"security",displayName:"Security"},{value:"chevron-right",displayName:"Chevron Right"},{value:"chevron-left",displayName:"Chevron Left"},{value:"chevron-up",displayName:"Chevron Up"},{value:"chevron-down",displayName:"Chevron Down"},{value:"arrow-right",displayName:"Arrow Right"},{value:"arrow-left",displayName:"Arrow Left"},{value:"arrow-up",displayName:"Arrow Up"},{value:"arrow-down",displayName:"Arrow Down"},{value:"plus",displayName:"Plus"},{value:"minus",displayName:"Minus"},{value:"times",displayName:"Times"}
1,{value:"divide",displayName:"Divide"},{value:"equals",displayName:"Equals"},{value:"greater-than",displayName:"Greater Than"},{value:"less-than",displayName:"Less Than"},{value:"heart",displayName:"Heart"},{value:"star",displayName:"Star"},{value:"award",displayName:"Award"},{value:"speed",displayName:"Speed"},{value:"phone",displayName:"Phone"},{value:"location",displayName:"Location"},{value:"x",displayName:"X"},{value:"linkedin",displayName:"LinkedIn"},{value:"facebook",displayName:"Facebook"},{value:"home",displayName:"Home"},{value:"download",displayName:"Download"},{value:"mail",displayName:"Mail"},{value:"pin-outline",displayName:"Pin Outline"},{value:"open-book",displayName:"Open Book"},{value:"forms",displayName:"Forms"}],iconPositions:[{value:"left",displayName:"Left"},{value:"top",displayName:"Top"},{value:"right",displayName:"Right"}]},COMPONENT:{horisontalPositions:[{value:"left",displayName:"Left"},{value:"centre",displayName:"Centre"},{value:"right",displayName:"Right"}],verticalPositions:[{value:"top",displayName:"Top"},{value:"centre",displayName:"Centre"},{value:"bottom",displayName:"Bottom"}],callToActionStyles:[{value:"split",displayName:"Split"},{value:"overlay",displayName:"Overlay"},{value:"icon",displayName:"Icon"}],heroStyles:[{value:"overlay",displayName:"Overlay"},{value:"floating",displayName:"Floating"},{value:"split",displayName:"Split"}],colourways:[{value:"primary",displayName:"Primary"},{value:"secondary",displayName:"Secondary"},{value:"tertiary",displayName:"Tertiary"},{value:"quaternary",displayName:"Quaternary"}],embeddedFormStyles:[{value:"inline",displayName:"Inline"},{value:"toggle",displayName:"Toggle"},{value:"modal",displayName:"Modal"},{value:"drawer (left)",displayName:"Drawer (Left)"},{value:"drawer (right)",displayName:"Drawer (Right)"}]}},h={component:e=>{var t;let n,i,l=[];e.linkTitle1&&e.linkUrl1&&l.push(b({label:e.linkTitle1,url:e.linkUrl1,openInNewTab:e.linkOpenInNewTab1,relAttributes:e.linkRelAttributes1,type:e.linkType1,style:e.linkStyle1,icon:e.linkIcon1,customIcon:e.linkCustomIcon1,iconPosition:e.linkIconPosition1,hideLabel:e.linkHideLabel1,size:e.linkSize1,isDownload:e.linkIsDownload1,fileToDownload:e.linkFileToDownload1})),e.linkTitle2&&e.linkUrl2&&l.push(b({label:e.linkTitle2,url:e.linkUrl2,openInNewTab:e.linkOpenInNewTab2,relAttributes:e.linkRelAttributes2,type:e.linkType2,style:e.linkStyle2,icon:e.linkIcon2,customIcon:e.linkCustomIcon2,iconPosition:e.linkIconPosition2,hideLabel:e.linkHideLabel2,size:e.linkSize2,isDownload:e.linkIsDownload2,fileToDownload:e.linkFileToDownload2})),e.linkTitle3&&e.linkUrl3&&l.push(b({label:e.linkTitle3,url:e.linkUrl3,openInNewTab:e.linkOpenInNewTab3,relAttributes:e.linkRelAttributes3,type:e.linkType3,style:e.linkStyle3,icon:e.linkIcon3,customIcon:e.linkCustomIcon3,iconPosition:e.linkIconPosition3,hideLabel:e.linkHideLabel3,size:e.linkSize3,isDownload:e.linkIsDownload3,fileToDownload:e.linkFileToDownload3}));let o=null!=(t=e.image)?t:e.mediaImage;m(o)?n=o:y(o)?n={sys:{id:u("cta-brandfolder-image-".concat(o.sys.id),"studio-image"),type:"Entry",contentType:{sys:{id:"brandfolderImage"}}},fields:{internalName:"Studio CTA Brandfolder Image",brandfolderImage:o}}:i="object"==typeof o&&"Asset"===o.sys.type?{sys:{id:u("cta-image-".concat(o.sys.id),"studio-image"),type:"Entry",contentType:{sys:{id:"image"}}},fields:{internalName:"Studio CTA Image",image:o,focusArea:e.imageFocusArea,fitType:e.imageFitType}}:p(o)?o:g({url:null!=o?o:"",focusArea:e.imageFocusArea,fitType:e.imageFitType});let c={sys:{id:u("cta-".concat(e.heading||"","-").concat(e.style||""),"studio-cta"),type:"Entry",contentType:{sys:{id:"callToAction"}}},fields:{internalName:"Studio CTA",heading:e.heading,subtitle:e.subtitle,text:e.text,links:l,image:i,brandfolderImage:n,style:e.style||"split",colourway:e.colourway||"primary",alignment:e.alignment||"left"}};return"overlay"===e.style?(0,a.jsx)(r.G,{data:c}):"icon"===e.style?(0,a.jsx)(s.b,{data:c}):(0,a.jsx)(d.i,{data:c})},definition:{id:"contentful-cta",name:"Call to Action",category:"SJA Build",variables:{heading:{displayName:"Heading",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},subtitle:{displayName:"Subtitle",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},text:{displayName:"Text",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},image:{displayName:"Image Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},mediaImage:{displayName:"Contentful Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},focusArea:{displayName:"Focus Area",type:"Text",group:"content",defaultValue:"center",validations:{bindingSourceType:["manual","entry"],in:v.IMAGE.focusAreas}},fitType:{displayName:"Fit Type",type:"Text",group:"content",defaultValue:"fill",validations:{bindingSourceType:["manual","entry"],in:v.IMAGE.fitTypes}}
1,linkTitle1:{displayName:"Link 1 Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkUrl1:{displayName:"Link 1 URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkOpenInNewTab1:{displayName:"Link 1 Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkRelAttributes1:{displayName:"Link 1 Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}},linkType1:{displayName:"Link 1 Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},linkStyle1:{displayName:"Link 1 Style",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},linkIcon1:{displayName:"Link 1 Icon",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},linkCustomIcon1:{displayName:"Link 1 Custom Icon",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset","entry"]}},linkIconPosition1:{displayName:"Link 1 Icon Position",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},linkHideLabel1:{displayName:"Link 1 Hide Label",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}}
1,linkSize1:{displayName:"Link 1 Size",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},linkIsDownload1:{displayName:"Link 1 Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},linkFileToDownload1:{displayName:"Link 1 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},linkTitle2:{displayName:"Link 2 Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkUrl2:{displayName:"Link 2 URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkOpenInNewTab2:{displayName:"Link 2 Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkRelAttributes2:{displayName:"Link 2 Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}},linkType2:{displayName:"Link 2 Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},linkStyle2:{displayName:"Link 2 Style",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},linkIcon2:{displayName:"Link 2 Icon",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},linkCustomIcon2:{displayName:"Link 2 Custom Icon",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset","entry"]}},linkIconPosition2:{displayName:"Link 2 Icon Position",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},linkHideLabel2:{displayName:"Link 2 Hide Label",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkSize2:{displayName:"Link 2 Size",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},linkIsDownload2:{displayName:"Link 2 Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},linkFileToDownload2:{displayName:"Link 2 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},linkTitle3:{displayName:"Link 3 Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkUrl3:{displayName:"Link 3 URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkOpenInNewTab3:{displayName:"Link 3 Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkRelAttributes3:{displayName:"Link 3 Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}},linkType3:{displayName:"Link 3 Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},linkStyle3:{displayName:"Link 3 Style",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},linkIcon3:{displayName:"Link 3 Icon",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},linkCustomIcon3:{displayName:"Link 3 Custom Icon",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset","entry"]}},linkIconPosition3:{displayName:"Link 3 Icon Position",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},linkHideLabel3:{displayName:"Link 3 Hide Label",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkSize3:{displayName:"Link 3 Size",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},linkIsDownload3:{displayName:"Link 3 Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},linkFileToDownload3:{displayName:"Link 3 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},style:{displayName:"Style",type:"Text",defaultValue:"split",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.callToActionStyles}},colourway:{displayName:"Colourway",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.colourways}}
1,alignment:{displayName:"Alignment",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.horisontalPositions}}},builtInStyles:["cfMargin","cfPadding","cfBackgroundColor","cfBorder","cfWidth","cfMaxWidth"]}};var N=n(66628),T=n(46416);function S(e,t){if(m(e))return e;if(y(e))return{sys:{id:u("section-brandfolder-image-".concat(t,"-").concat(e.sys.id),"studio-image"),type:"Entry",contentType:{sys:{id:"brandfolderImage"}}},fields:{internalName:"Studio Section Brandfolder Image ".concat(t),brandfolderImage:e}};let n="string"==typeof e?f({url:e}):e;return{sys:{id:u("image-".concat("string"==typeof e?e:"media".concat(t)),"studio-image".concat(t)),type:"Entry",contentType:{sys:{id:"image"}}},fields:{image:n,caption:"",link:void 0,internalName:"Studio Image"}}}let k=e=>{var t,n,a,i,l;let o=[];return(null!=(t=e.media1)?t:e.mediaAsset1)&&o.push(S(null!=(n=e.media1)?n:e.mediaAsset1,"1")),(null!=(a=e.media2)?a:e.mediaAsset2)&&o.push(S(null!=(i=e.media2)?i:e.mediaAsset2,"2")),{sys:{id:u("section-".concat(e.heading||"","-").concat(e.desktopLayout||""),"studio-custom-section"),type:"Entry",contentType:{sys:{id:"custom-section"}}},fields:{internalName:"Studio Custom Section",heading:e.heading,content:function(e,t){var n,a,i,l,o;let s=t.filter(e=>!!(null==e?void 0:e.url));if(0===s.length)return(null==e||null==(n=e.content)?void 0:n.length)?{nodeType:T.nA.DOCUMENT,data:null!=(a=e.data)?a:{},content:[...null!=(i=e.content)?i:[]]}:{nodeType:T.nA.DOCUMENT,data:{},content:[]};let r=s.map((e,t)=>{var n,a,i,l,o,s,r;return{sys:{id:u("link-".concat(e.url,"-").concat(null!=(n=e.label)?n:"","-").concat(t),"studio-link"),type:"Entry",contentType:{sys:{id:"link"}}},fields:{internalName:e.label||"Link",label:e.label||"Click here",url:e.url||"#",type:null!=(a=e.type)?a:"text",style:null!=(i=e.style)?i:"primary",iconPosition:"left",size:null!=(l=e.size)?l:"medium",isDownload:null!=(o=e.isDownload)&&o,fileToDownload:null!=(s=e.fileToDownload)?s:void 0,brandfolderFileToDownload:null!=(r=e.brandfolderFileToDownload)?r:void 0,icon:e.icon}}}),d={nodeType:T.nA.PARAGRAPH,data:{paragraphVariant:"links-row"},content:r.map(e=>({nodeType:T.XD.EMBEDDED_ENTRY,data:{target:e},content:[]}))},c=null!=(l=null==e?void 0:e.content)?l:[];return{nodeType:T.nA.DOCUMENT,data:null!=(o=null==e?void 0:e.data)?o:{},content:[...c,d]}}(e.content,null!=(l=e.links)?l:[]),media:o,desktopLayout:e.desktopLayout||"left",mobileLayout:e.mobileLayout||"top",contentAlignment:e.contentAlignment||"left",style:e.style||"primary"}}},L={component:e=>{let t=k(e);return(0,a.jsx)(N.n,{data:t,locale:"en-GB"})},definition:{id:"contentful-custom-section",name:"Section (Component - Custom)",category:"SJA Build",variables:{heading:{displayName:"Heading",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},content:{displayName:"Content",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},media1:{displayName:"Media 1 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},mediaAsset1:{displayName:"Media 1 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},media2:{displayName:"Media 2 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},mediaAsset2:{displayName:"Media 2 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},desktopLayout:{displayName:"Desktop Layout",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"left",displayName:"Left"},{value:"right",displayName:"Right"}]}},mobileLayout:{displayName:"Mobile Layout",type:"Text",defaultValue:"top",group:"style",validations:{bindingSourceType:["manual"],in:[{value:"top",displayName:"Top"},{value:"bottom",displayName:"Bottom"}]}},contentAlignment:{displayName:"Content Alignment",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.horisontalPositions}},style:{displayName:"Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.colourways}}}
1,builtInStyles:["cfMargin","cfPadding","cfBackgroundColor","cfBorder","cfWidth","cfMaxWidth"]}};var w=n(39884),j=n(24586),I=n(5418);let C={component:e=>{var t;if(!e.image)return(0,a.jsx)("p",{children:"Please add an image to this hero component"});let{heading:n,subtitle:i,text:l,style:o,colourway:s,horizontalPosition:r,verticalPosition:d,headingLevel:c,overlayShadow:p,id:f,link1Title:x,link1Url:v,link1OpenInNewTab:h,link1RelAttributes:N,link1Type:T,link1Style:S,link1Icon:k,link1CustomIcon:L,link1IconPosition:C,link1HideLabel:A,link1Size:P,link1IsDownload:D,link1FileToDownload:F,link2Title:E,link2Url:M,link2OpenInNewTab:V,link2RelAttributes:B,link2Type:z,link2Style:H,link2Icon:R,link2CustomIcon:U,link2IconPosition:O,link2HideLabel:q,link2Size:K,link2IsDownload:W,link2FileToDownload:_,link3Title:G,link3Url:X,link3OpenInNewTab:J,link3RelAttributes:Q,link3Type:Z,link3Style:Y,link3Icon:$,link3CustomIcon:ee,link3IconPosition:et,link3HideLabel:en,link3Size:ea,link3IsDownload:ei,link3FileToDownload:el}=e,eo=[];x&&v&&eo.push(b({label:x,url:v,openInNewTab:h,relAttributes:N,type:T,style:S,icon:k,customIcon:L,iconPosition:C,hideLabel:A,size:P,isDownload:D,fileToDownload:F})),E&&M&&eo.push(b({label:E,url:M,openInNewTab:V,relAttributes:B,type:z,style:H,icon:R,customIcon:U,iconPosition:O,hideLabel:q,size:K,isDownload:W,fileToDownload:_})),G&&X&&eo.push(b({label:G,url:X,openInNewTab:J,relAttributes:Q,type:Z,style:Y,icon:$,customIcon:ee,iconPosition:et,hideLabel:en,size:ea,isDownload:ei,fileToDownload:el}));let es=null!=(t=e.image)?t:e.mediaImage,er=(m(es)?es:y(es)?{sys:{id:u("hero-brandfolder-image-".concat(es.sys.id),"studio-image"),type:"Entry",contentType:{sys:{id:"brandfolderImage"}}},fields:{internalName:"Studio Hero Brandfolder Image",brandfolderImage:es}}:void 0)||("object"==typeof es?es:g({url:null!=es?es:"",focusArea:e.imageFocusArea,fitType:e.imageFitType}));return"split"===o?(0,a.jsx)(I.Z,{id:f,text:l,image:er,heading:n,headingLevel:c,subtitle:i,links:eo,colourway:s,horizontalPosition:r,verticalPosition:d}):"floating"===o?(0,a.jsx)(w.Z,{id:f,text:l,image:er,heading:n,headingLevel:c,subtitle:i,links:eo,colourway:s,horizontalPosition:r,verticalPosition:d}):"overlay"===o?(0,a.jsx)(j.F,{id:f,text:l,image:er,heading:n,headingLevel:c,subtitle:i,links:eo,colourway:s,horizontalPosition:r,verticalPosition:d,overlayShadow:p}):void 0},definition:{id:"contentful-hero",name:"Hero",category:"SJA Build",variables:{heading:{displayName:"Heading",type:"Text",validations:{bindingSourceType:["manual","entry"]},group:"content"},headingLevel:{displayName:"Heading Level",type:"Number",validations:{bindingSourceType:["manual","entry"]},defaultValue:2,group:"style"},subtitle:{displayName:"Subtitle",type:"Text",validations:{bindingSourceType:["manual","entry"]},group:"content"},text:{displayName:"Text",validations:{bindingSourceType:["manual","entry"]},type:"RichText",group:"content"},image:{displayName:"Image Entry",type:"Link",validations:{bindingSourceType:["manual","entry"]},group:"content"},mediaImage:{displayName:"Contentful Asset",type:"Media",validations:{bindingSourceType:["manual","asset"]},group:"content"},imageFocusArea:{displayName:"Image Focus Area",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.IMAGE.focusAreas}},imageFitType:{displayName:"Image Fit Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.IMAGE.fitTypes}},style:{displayName:"Style",type:"Text",defaultValue:"overlay",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.heroStyles}},link1Title:{displayName:"Link 1 Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},link1Url:{displayName:"Link 1 URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},link1OpenInNewTab:{displayName:"Link 1 Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},link1RelAttributes:{displayName:"Link 1 Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}},link1Type:{displayName:"Link 1 Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},link1Style:{displayName:"Link 1 Style",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},link1Icon:{displayName:"Link 1 Icon",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},link1CustomIcon:{displayName:"Link 1 Custom Icon",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset","entry"]}},link1IconPosition:{displayName:"Link 1 Icon Position",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},link1HideLabel:{displayName:"Link 1 Hide Label",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},link1Size:{displayName:"Link 1 Size",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}}
1,link1IsDownload:{displayName:"Link 1 Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},link1FileToDownload:{displayName:"Link 1 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},link2Title:{displayName:"Link 2 Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},link2Url:{displayName:"Link 2 URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},link2OpenInNewTab:{displayName:"Link 2 Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},link2RelAttributes:{displayName:"Link 2 Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}},link2Type:{displayName:"Link 2 Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},link2Style:{displayName:"Link 2 Style",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},link2Icon:{displayName:"Link 2 Icon",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},link2CustomIcon:{displayName:"Link 2 Custom Icon",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset","entry"]}},link2IconPosition:{displayName:"Link 2 Icon Position",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},link2HideLabel:{displayName:"Link 2 Hide Label",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},link2Size:{displayName:"Link 2 Size",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},link2IsDownload:{displayName:"Link 2 Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},link2FileToDownload:{displayName:"Link 2 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},link3Title:{displayName:"Link 3 Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},link3Url:{displayName:"Link 3 URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},link3OpenInNewTab:{displayName:"Link 3 Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},link3RelAttributes:{displayName:"Link 3 Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}},link3Type:{displayName:"Link 3 Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},link3Style:{displayName:"Link 3 Style",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},link3Icon:{displayName:"Link 3 Icon",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},link3CustomIcon:{displayName:"Link 3 Custom Icon",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset","entry"]}},link3IconPosition:{displayName:"Link 3 Icon Position",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},link3HideLabel:{displayName:"Link 3 Hide Label",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},link3Size:{displayName:"Link 3 Size",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},link3IsDownload:{displayName:"Link 3 Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},link3FileToDownload:{displayName:"Link 3 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},colourway:{displayName:"Colourway",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.colourways}},horizontalPosition:{displayName:"Horizontal Position",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.horisontalPositions}},verticalPosition:{displayName:"Vertical Position",type:"Text",defaultValue:"top",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.verticalPositions}}
1,overlayShadow:{displayName:"Overlay Shadow",type:"Number",defaultValue:100,group:"style"}},builtInStyles:["cfMargin","cfPadding","cfWidth","cfMaxWidth"]}};var A=n(45073);let P={component:e=>{var t;let n,i=null!=(t=e.image)?t:e.mediaImage;if(m(i))return(0,a.jsx)(A.hw,{data:i,className:"w-full",locale:"en-GB"});if(y(i)){let e={sys:{id:u("image-brandfolder-asset-".concat(i.sys.id),"studio-image"),type:"Entry",contentType:{sys:{id:"brandfolderImage"}}},fields:{internalName:"Studio Image Brandfolder Asset",brandfolderImage:i}};return(0,a.jsx)(A.hw,{data:e,className:"w-full",locale:"en-GB"})}if(p(i))return(0,a.jsx)(A.hw,{data:i,className:"w-full",locale:"en-GB"});if(!i&&!e.mediaImage)return(0,a.jsx)("p",{children:"Please add an image to this content block"});let{linkUrl:l,linkTitle:o,linkIsDownload:s,linkFileToDownload:r,linkOpenInNewTab:d,linkRelAttributes:c}=e;l&&o&&(n=b({url:l,label:o,isDownload:s,fileToDownload:r,openInNewTab:d,relAttributes:c,type:"text",style:"primary",iconPosition:"left",hideLabel:!1,size:"medium"}));let g="object"==typeof i?i:f({url:null!=i?i:""}),x={sys:{id:u("image-".concat("string"==typeof i?i:"image-object"),"studio-image"),type:"Entry",contentType:{sys:{id:"image"}}},fields:{internalName:"Studio Image",image:g,caption:e.caption,link:n,focusArea:e.imageFocusArea,fitType:e.imageFitType}};return(0,a.jsx)(A.hw,{data:x,className:"w-full",locale:"en-GB"})},options:{wrapComponent:!1},definition:{id:"contentful-image",name:"Image",category:"SJA Build",variables:{image:{displayName:"Image Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},mediaImage:{displayName:"Contentful Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},imageFocusArea:{displayName:"Image Focus Area",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.IMAGE.focusAreas}},imageFitType:{displayName:"Image Fit Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.IMAGE.fitTypes}},caption:{displayName:"Caption",type:"Text",group:"content",validations:{bindingSourceType:["manual"]}},linkTitle:{displayName:"Link Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkUrl:{displayName:"Link URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkIsDownload:{displayName:"Link Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},linkFileToDownload:{displayName:"Link File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},linkOpenInNewTab:{displayName:"Link Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkRelAttributes:{displayName:"Link Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}}},builtInStyles:["cfMargin","cfPadding","cfWidth","cfMaxWidth"]}};var D=n(78971);let F={component:e=>(0,a.jsx)(D.gH,{url:e.url,label:e.label,openInNewTab:e.openInNewTab,titleAttribute:e.titleAttribute,relAttributes:e.relAttributes,icon:e.icon,customIcon:e.customIcon,brandfolderCustomIcon:e.brandfolderCustomIcon,type:e.type,style:e.style,iconPosition:e.iconPosition,hideLabel:e.hideLabel,size:e.size,isDownload:e.isDownload,fileToDownload:e.fileToDownload,brandfolderFileToDownload:e.brandfolderFileToDownload}),definition:{id:"contentful-link",name:"Link",category:"SJA Build",variables:{url:{displayName:"URL",type:"Text",defaultValue:"",group:"content"},label:{displayName:"Label",type:"Text",defaultValue:"Click here",group:"content"},openInNewTab:{displayName:"Open in new tab",type:"Boolean",defaultValue:!1,group:"content"},titleAttribute:{displayName:"Title attribute",type:"Text",group:"content"},type:{displayName:"Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},style:{displayName:"Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},icon:{displayName:"Icon",type:"Text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},customIcon:{displayName:"Custom Icon",type:"Media",group:"style",validations:{bindingSourceType:["manual","asset","entry"]}},brandfolderCustomIcon:{displayName:"Brandfolder Custom Icon",type:"Media",group:"style",validations:{bindingSourceType:["entry"]}},iconPosition:{displayName:"Icon Position",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},hideLabel:{displayName:"Hide Label",type:"Boolean",defaultValue:!1,group:"style"},size:{displayName:"Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}}
1,isDownload:{displayName:"Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},fileToDownload:{displayName:"File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},brandfolderFileToDownload:{displayName:"Brandfolder File to Download",type:"Media",group:"content",validations:{bindingSourceType:["entry"]}}},builtInStyles:["cfMargin","cfPadding"]}};var E=n(44341);let M={component:e=>{var t,n,i,l,o,s,r,d;let c=[],p=[{url:e.item1Link1Url,label:e.item1Link1Label,type:e.item1Link1Type,style:e.item1Link1Style,size:e.item1Link1Size,isDownload:e.item1Link1IsDownload,fileToDownload:e.item1Link1FileToDownload,icon:e.item1Link1Icon},{url:e.item1Link2Url,label:e.item1Link2Label,type:e.item1Link2Type,style:e.item1Link2Style,size:e.item1Link2Size,isDownload:e.item1Link2IsDownload,fileToDownload:e.item1Link2FileToDownload,icon:e.item1Link2Icon}].filter(e=>!!(null==e?void 0:e.url)),m=[{url:e.item2Link1Url,label:e.item2Link1Label,type:e.item2Link1Type,style:e.item2Link1Style,size:e.item2Link1Size,isDownload:e.item2Link1IsDownload,fileToDownload:e.item2Link1FileToDownload,icon:e.item2Link1Icon},{url:e.item2Link2Url,label:e.item2Link2Label,type:e.item2Link2Type,style:e.item2Link2Style,size:e.item2Link2Size,isDownload:e.item2Link2IsDownload,fileToDownload:e.item2Link2FileToDownload,icon:e.item2Link2Icon}].filter(e=>!!(null==e?void 0:e.url)),y=[{url:e.item3Link1Url,label:e.item3Link1Label,type:e.item3Link1Type,style:e.item3Link1Style,size:e.item3Link1Size,isDownload:e.item3Link1IsDownload,fileToDownload:e.item3Link1FileToDownload,icon:e.item3Link1Icon},{url:e.item3Link2Url,label:e.item3Link2Label,type:e.item3Link2Type,style:e.item3Link2Style,size:e.item3Link2Size,isDownload:e.item3Link2IsDownload,fileToDownload:e.item3Link2FileToDownload,icon:e.item3Link2Icon}].filter(e=>!!(null==e?void 0:e.url)),g=[{url:e.item4Link1Url,label:e.item4Link1Label,type:e.item4Link1Type,style:e.item4Link1Style,size:e.item4Link1Size,isDownload:e.item4Link1IsDownload,fileToDownload:e.item4Link1FileToDownload,icon:e.item4Link1Icon},{url:e.item4Link2Url,label:e.item4Link2Label,type:e.item4Link2Type,style:e.item4Link2Style,size:e.item4Link2Size,isDownload:e.item4Link2IsDownload,fileToDownload:e.item4Link2FileToDownload,icon:e.item4Link2Icon}].filter(e=>!!(null==e?void 0:e.url));e.item1Heading&&c.push(k({heading:e.item1Heading,content:e.item1Content,links:p,media1:null!=(t=e.item1media1)?t:e.item1mediaAsset1,media2:null!=(n=e.item1media2)?n:e.item1mediaAsset2,desktopLayout:e.item1desktopLayout,mobileLayout:e.item1mobileLayout,contentAlignment:e.item1contentAlignment,style:e.item1style})),e.item2Heading&&c.push(k({heading:e.item2Heading,content:e.item2Content,links:m,media1:null!=(i=e.item2media1)?i:e.item2mediaAsset1,media2:null!=(l=e.item2media2)?l:e.item2mediaAsset2,desktopLayout:e.item2desktopLayout,mobileLayout:e.item2mobileLayout,contentAlignment:e.item2contentAlignment,style:e.item2style})),e.item3Heading&&c.push(k({heading:e.item3Heading,content:e.item3Content,links:y,media1:null!=(o=e.item3media1)?o:e.item3mediaAsset1,media2:null!=(s=e.item3media2)?s:e.item3mediaAsset2,desktopLayout:e.item3desktopLayout,mobileLayout:e.item3mobileLayout,contentAlignment:e.item3contentAlignment,style:e.item3style})),e.item4Heading&&c.push(k({heading:e.item4Heading,content:e.item4Content,links:g,media1:null!=(r=e.item4media1)?r:e.item4mediaAsset1,media2:null!=(d=e.item4media2)?d:e.item4mediaAsset2,desktopLayout:e.item4desktopLayout,mobileLayout:e.item4mobileLayout,contentAlignment:e.item4contentAlignment,style:e.item4style}));let f={sys:{id:u("listing","studio-listing"),type:"Entry",contentType:{sys:{id:"listing"}}},fields:{internalName:u("listing","studio-listing"),heading:e.heading,summary:e.summary,items:c,style:e.style||"unordered list",headingWeight:e.headingWeight||"semibold"}};return(0,a.jsx)(E.A,{data:f,className:"true"===e.customItemHeading?"my-8 [&_h2]:text-4xl [&_h2]:text-contrast-five ":"",locale:"en-GB",headingWeight:e.headingWeight})},definition:{id:"contentful-listing",name:"Listing",category:"SJA Build",variables:{heading:{displayName:"Heading",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},headingWeight:{displayName:"Heading Weight",type:"Text",group:"style",defaultValue:"semibold",validations:{bindingSourceType:["manual"],in:[{value:"semibold",displayName:"Semibold"},{value:"bold",displayName:"Bold"}]}},summary:{displayName:"Summary",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},customItemHeading:{displayName:"Items Heading Style",type:"Text",group:"style",defaultValue:"false",validations:{bindingSourceType:["manual"],in:[{value:"false",dis
1playName:"Default"},{value:"true",displayName:"Custom"}]}},item1Heading:{displayName:"Item 1 Heading",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},item1Content:{displayName:"Item 1 Content",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},item1media1:{displayName:"Item 1 Media 1 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item1mediaAsset1:{displayName:"Item 1 Media 1 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},item1media2:{displayName:"Item 1 Media 2 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item1mediaAsset2:{displayName:"Item 1 Media 2 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},item1desktopLayout:{displayName:"Item 1 Desktop Layout",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"left",displayName:"Left"},{value:"right",displayName:"Right"}]}},item1mobileLayout:{displayName:"Item 1 Mobile Layout",type:"Text",defaultValue:"top",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"top",displayName:"Top"},{value:"bottom",displayName:"Bottom"}]}},item1contentAlignment:{displayName:"Item 1 Content Alignment",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.horisontalPositions}},item1style:{displayName:"Item 1 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.colourways}},item1Link1Url:{displayName:"Item 1 Link 1 URL",type:"Text",defaultValue:"",group:"content"},item1Link1Label:{displayName:"Item 1 Link 1 Label",type:"Text",defaultValue:"Click here",group:"content"},item1Link1Type:{displayName:"Item 1 Link 1 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item1Link1Style:{displayName:"Item 1 Link 1 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item1Link1Size:{displayName:"Item 1 Link 1 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},item1Link1IsDownload:{displayName:"Item 1 Link 1 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item1Link1FileToDownload:{displayName:"Item 1 Link 1 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item1Link1Icon:{displayName:"Item 1 Link 1 Icon",type:"Text",defaultValue:"",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},item1Link2Url:{displayName:"Item 1 Link 2 URL",type:"Text",defaultValue:"",group:"content"},item1Link2Label:{displayName:"Item 1 Link 2 Label",type:"Text",defaultValue:"Click here",group:"content"},item1Link2Type:{displayName:"Item 1 Link 2 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item1Link2Style:{displayName:"Item 1 Link 2 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item1Link2Size:{displayName:"Item 1 Link 2 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},item1Link2IsDownload:{displayName:"Item 1 Link 2 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item1Link2FileToDownload:{displayName:"Item 1 Link 2 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item1Link2Icon:{displayName:"Item 1 Link 2 Icon",type:"Text",defaultValue:"",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},item2Heading:{displayName:"Item 2 Heading",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},item2Content:{displayName:"Item 2 Content",type:"RichText",group:"content",validations:{bindingSourceType:["manual"]}},item2media1:{displayName:"Item 2 Media 1 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item2mediaAsset1:{displayName:"Item 2 Media 1 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},item2media2:{displayName:"Item 2 Media 2 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item2mediaAsset2:{displayName:"Item 2 Media 2 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}}
1,item2desktopLayout:{displayName:"Item 2 Desktop Layout",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"left",displayName:"Left"},{value:"right",displayName:"Right"}]}},item2mobileLayout:{displayName:"Item 2 Mobile Layout",type:"Text",defaultValue:"top",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"top",displayName:"Top"},{value:"bottom",displayName:"Bottom"}]}},item2contentAlignment:{displayName:"Item 2 Content Alignment",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.horisontalPositions}},item2style:{displayName:"Item 2 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.colourways}},item2Link1Url:{displayName:"Item 2 Link 1 URL",type:"Text",defaultValue:"",group:"content"},item2Link1Label:{displayName:"Item 2 Link 1 Label",type:"Text",defaultValue:"Click here",group:"content"},item2Link1Type:{displayName:"Item 2 Link 1 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item2Link1Style:{displayName:"Item 2 Link 1 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item2Link1Size:{displayName:"Item 2 Link 1 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},item2Link1IsDownload:{displayName:"Item 2 Link 1 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item2Link1FileToDownload:{displayName:"Item 2 Link 1 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item2Link1Icon:{displayName:"Item 2 Link 1 Icon",type:"Text",defaultValue:"",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},item2Link2Url:{displayName:"Item 2 Link 2 URL",type:"Text",defaultValue:"",group:"content"},item2Link2Label:{displayName:"Item 2 Link 2 Label",type:"Text",defaultValue:"Click here",group:"content"},item2Link2Type:{displayName:"Item 2 Link 2 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item2Link2Style:{displayName:"Item 2 Link 2 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item2Link2Size:{displayName:"Item 2 Link 2 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},item2Link2IsDownload:{displayName:"Item 2 Link 2 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item2Link2FileToDownload:{displayName:"Item 2 Link 2 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item2Link2Icon:{displayName:"Item 2 Link 2 Icon",type:"Text",defaultValue:"",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},item3Heading:{displayName:"Item 3 Heading",type:"Text",group:"content",validations:{bindingSourceType:["manual"]}},item3Content:{displayName:"Item 3 Content",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},item3media1:{displayName:"Item 3 Media 1 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item3mediaAsset1:{displayName:"Item 3 Media 1 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},item3media2:{displayName:"Item 3 Media 2 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item3mediaAsset2:{displayName:"Item 3 Media 2 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},item3desktopLayout:{displayName:"Item 3 Desktop Layout",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"left",displayName:"Left"},{value:"right",displayName:"Right"}]}},item3mobileLayout:{displayName:"Item 3 Mobile Layout",type:"Text",defaultValue:"top",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"top",displayName:"Top"},{value:"bottom",displayName:"Bottom"}]}},item3contentAlignment:{displayName:"Item 3 Content Alignment",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.horisontalPositions}},item3style:{displayName:"Item 3 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.colourways}},item3Link1Url:{displayName:"Item 3 Link 1 URL",type:"Text",defaultValue:"",group:"content"},item3Link1Label:{displayName:"Item 3 Link 1 Label",type:"Text",defaultValue:"Click here",group:"content"},item3Link1Type:{displayName:"Item 3 Link 1 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item3Link1Style:{displayName:"Item 3 Link 1 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item3Link1Size:{displayName:"Item 3 Link 1 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}}
1,item3Link1IsDownload:{displayName:"Item 3 Link 1 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item3Link1FileToDownload:{displayName:"Item 3 Link 1 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item3Link1Icon:{displayName:"Item 3 Link 1 Icon",type:"Text",defaultValue:"",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},item3Link2Url:{displayName:"Item 3 Link 2 URL",type:"Text",defaultValue:"",group:"content"},item3Link2Label:{displayName:"Item 3 Link 2 Label",type:"Text",defaultValue:"Click here",group:"content"},item3Link2Type:{displayName:"Item 3 Link 2 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item3Link2Style:{displayName:"Item 3 Link 2 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item3Link2Size:{displayName:"Item 3 Link 2 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},item3Link2IsDownload:{displayName:"Item 3 Link 2 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item3Link2FileToDownload:{displayName:"Item 3 Link 2 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item3Link2Icon:{displayName:"Item 3 Link 2 Icon",type:"Text",defaultValue:"",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},item4Heading:{displayName:"Item 4 Heading",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},item4Content:{displayName:"Item 4 Content",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},item4media1:{displayName:"Item 4 Media 1 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item4mediaAsset1:{displayName:"Item 4 Media 1 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},item4media2:{displayName:"Item 4 Media 2 Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},item4mediaAsset2:{displayName:"Item 4 Media 2 Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}}
1,item4desktopLayout:{displayName:"Item 4 Desktop Layout",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"left",displayName:"Left"},{value:"right",displayName:"Right"}]}},item4mobileLayout:{displayName:"Item 4 Mobile Layout",type:"Text",defaultValue:"top",group:"style",validations:{bindingSourceType:["manual","entry"],in:[{value:"top",displayName:"Top"},{value:"bottom",displayName:"Bottom"}]}},item4contentAlignment:{displayName:"Item 4 Content Alignment",type:"Text",defaultValue:"left",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.horisontalPositions}},item4style:{displayName:"Item 4 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.COMPONENT.colourways}},item4Link1Url:{displayName:"Item 4 Link 1 URL",type:"Text",defaultValue:"",group:"content"},item4Link1Label:{displayName:"Item 4 Link 1 Label",type:"Text",defaultValue:"Click here",group:"content"},item4Link1Type:{displayName:"Item 4 Link 1 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item4Link1Style:{displayName:"Item 4 Link 1 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item4Link1Size:{displayName:"Item 4 Link 1 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},item4Link1IsDownload:{displayName:"Item 4 Link 1 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item4Link1FileToDownload:{displayName:"Item 4 Link 1 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item4Link1Icon:{displayName:"Item 4 Link 1 Icon",type:"Text",defaultValue:"",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},item4Link2Url:{displayName:"Item 4 Link 2 URL",type:"Text",defaultValue:"",group:"content"},item4Link2Label:{displayName:"Item 4 Link 2 Label",type:"Text",defaultValue:"Click here",group:"content"},item4Link2Type:{displayName:"Item 4 Link 2 Type",type:"Text",defaultValue:"text",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},item4Link2Style:{displayName:"Item 4 Link 2 Style",type:"Text",defaultValue:"primary",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},item4Link2Size:{displayName:"Item 4 Link 2 Size",type:"Text",defaultValue:"medium",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},item4Link2IsDownload:{displayName:"Item 4 Link 2 Is Download",type:"Boolean",defaultValue:!1,group:"content",validations:{bindingSourceType:["manual"]}},item4Link2FileToDownload:{displayName:"Item 4 Link 2 File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},item4Link2Icon:{displayName:"Item 4 Link 2 Icon",type:"Text",defaultValue:"",group:"style",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},style:{displayName:"Style",type:"Text",defaultValue:"unordered list",group:"style",validations:{in:[{value:"accordion",displayName:"Accordion"},{value:"ordered list",displayName:"Ordered List"},{value:"unordered list",displayName:"Unordered List"}]}}},builtInStyles:["cfMargin","cfPadding","cfBackgroundColor","cfBorder","cfWidth","cfMaxWidth"]}};var V=n(7332);let B={component:e=>{var t;let n=null!=(t=e.profilePicture)?t:e.profilePictureAsset,i=n;y(n)&&(i={sys:{id:u("person-brandfolder-asset-".concat(n.sys.id),"studio-image"),type:"Entry",contentType:{sys:{id:"brandfolderImage"}}},fields:{internalName:"Studio Person Brandfolder Image",brandfolderImage:n}});let l=x({fullName:e.fullName,jobTitle:e.jobTitle,teams:e.teams,bio:e.bio,profilePicture:i,websiteUrl:e.websiteUrl,internalName:"Studio Person Info"});return(0,a.jsx)(V._,{data:l})},options:{wrapComponent:!1},definition:{id:"contentful-person-info",name:"Person Info",category:"SJA Build",variables:{fullName:{displayName:"Full Name",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},jobTitle:{displayName:"Job Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},teams:{displayName:"Teams",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},bio:{displayName:"Bio",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},profilePicture:{displayName:"Profile Picture Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},profilePictureAsset:{displayName:"Profile Picture Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},websiteUrl:{displayName:"Website URL",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}}}
1,builtInStyles:["cfMargin","cfPadding","cfBackgroundColor","cfBorder"]}};var z=n(44044);let H={component:e=>{var t,n;let i=null!=(t=e.profilePicture)?t:e.profilePictureAsset,l=i;y(i)&&(l={sys:{id:u("published-by-brandfolder-asset-".concat(i.sys.id),"studio-image"),type:"Entry",contentType:{sys:{id:"brandfolderImage"}}},fields:{internalName:"Studio Published By Brandfolder Image",brandfolderImage:i}});let o=x({fullName:e.fullName,jobTitle:e.jobTitle,teams:e.teams,bio:e.bio,profilePicture:l,websiteUrl:e.websiteUrl,internalName:"Studio Published By"});return(0,a.jsx)(z.U,{data:o,datePublished:null!=(n=e.datePublished)?n:""})},options:{wrapComponent:!1},definition:{id:"contentful-published-by",name:"Published By",category:"SJA Build",variables:{fullName:{displayName:"Full Name",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},jobTitle:{displayName:"Job Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},teams:{displayName:"Teams",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},bio:{displayName:"Bio",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},profilePicture:{displayName:"Profile Picture Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},profilePictureAsset:{displayName:"Profile Picture Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}},websiteUrl:{displayName:"Website URL",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},datePublished:{displayName:"Date Published",type:"Date",group:"content",validations:{bindingSourceType:["manual","entry"]}}},builtInStyles:["cfMargin","cfPadding"]}};var R=n(91325);let U={component:e=>{let t,{quote:n,sourceLabel:i,sourceUrl:l,displayAuthor:o,authorName:s,authorTitle:r,authorWebsiteUrl:d}=e;s&&r&&(t={sys:{id:"studio-person",type:"Entry"},fields:{fullName:s,jobTitle:r,websiteUrl:d,internalName:"Studio Person"}});let c={sys:{id:u("quote-".concat(s||"","-").concat(i||""),"studio-quote"),type:"Entry",contentType:{sys:{id:"quote"}}},fields:{internalName:"Studio Quote",quote:n,author:"",personReference:t,sourceLabel:i,sourceUrl:l,displayAuthor:null==o||o}};return(0,a.jsx)(R.w,{data:c,locale:"en-GB"})},options:{wrapComponent:!1},definition:{id:"contentful-quote",name:"Quote",category:"SJA Build",variables:{quote:{displayName:"Quote",type:"RichText",group:"content",validations:{bindingSourceType:["manual"]}},authorName:{displayName:"Author Name",type:"Text",group:"content",validations:{bindingSourceType:["manual"]}},authorTitle:{displayName:"Author Title",type:"Text",group:"content",validations:{bindingSourceType:["manual"]}},authorWebsiteUrl:{displayName:"Author Website URL",type:"Text",group:"content",validations:{bindingSourceType:["manual"]}},sourceLabel:{displayName:"Source Label",type:"Text",group:"content",validations:{bindingSourceType:["manual"]}},sourceUrl:{displayName:"Source URL",type:"Text",group:"content",validations:{bindingSourceType:["manual"]}},displayAuthor:{displayName:"Display Author",type:"Boolean",defaultValue:!0,group:"style",validations:{bindingSourceType:["manual"]}}},builtInStyles:["cfMargin","cfPadding","cfBackgroundColor","cfBorder"]}};var O=n(99766);let q={component:e=>{let t={sys:{id:u("script-".concat(e.script),"studio-script"),type:"Entry",contentType:{sys:{id:"script"}}},fields:{internalName:"Studio Script",script:e.script}};return(0,a.jsx)(O.d,{data:t,locale:"en-GB"})},definition:{id:"contentful-script",name:"Script",category:"SJA Build",variables:{script:{displayName:"Script",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}}}}};var K=n(11952);let W={component:e=>{var t;let n="object"==typeof e.image?e.image:f({url:null!=(t=e.image)?t:""});return(0,a.jsx)(K.f,{title:e.title,text:e.text,url:e.url,image:n})},options:{wrapComponent:!1},definition:{id:"contentful-share-block",name:"Share Block",category:"SJA Build",variables:{title:{displayName:"Title",type:"Text",defaultValue:"",validations:{bindingSourceType:["manual"]},group:"content"},text:{displayName:"Text",type:"Text",defaultValue:"",validations:{bindingSourceType:["manual"]},group:"content"},url:{displayName:"URL",type:"Text",defaultValue:"",validations:{bindingSourceType:["manual"]},group:"content"},image:{displayName:"Image",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}}},builtInStyles:["cfMargin","cfPadding"]}};var _=n(98402);let G={component:e=>{var t,n,i,l,o,s;let r;if(!e.videoFileUrl&&!e.youTubeVideoId&&!e.brandfolderVideo)return(0,a.jsx)("div",{className:"border border-red-200 bg-red-50 p-4 rounded-lg",children:(0,a.jsx)("p",{className:"text-red-800",children:"Please add a video source or YouTube video ID to this content block"})});let d=e.thumbnailImage;
1if(!d&&e.thumbnailImageEntry){let t,n=e.thumbnailImageEntry;if(m(n)){let e=null==(l=n.fields.brandfolderImage)||null==(i=l.fields)?void 0:i.assetJson,a=Array.isArray(e)?e[0]:e;t=(null==a?void 0:a.cdn_url)||(null==a?void 0:a.url)}else if(y(n)){let e=n.fields.assetJson,a=Array.isArray(e)?e[0]:e;t=(null==a?void 0:a.cdn_url)||(null==a?void 0:a.url)}t&&(d=f({url:t}))}let{linkUrl:c,linkTitle:p,linkType:g,linkStyle:x,linkIcon:b,linkCustomIcon:v,linkIconPosition:h,linkHideLabel:N,linkSize:T,linkIsDownload:S,linkFileToDownload:k,linkOpenInNewTab:L,linkRelAttributes:w}=e;c&&p&&(r={sys:{id:u("link-".concat(c,"-").concat(p),"studio-link"),type:"Entry"},fields:{url:c,label:p,type:g,style:x,icon:b,customIcon:v,iconPosition:h,hideLabel:N,size:T,isDownload:null!=S&&S,fileToDownload:k,openInNewTab:L,relAttributes:w,internalName:"Studio Link"}});let j={sys:{id:u("video-".concat(e.youTubeVideoId||e.videoFileUrl||(null==(n=e.brandfolderVideo)||null==(t=n.sys)?void 0:t.id)||"","-").concat(e.title||""),"studio-video"),type:"Entry",contentType:{sys:{id:"video"}}},fields:{internalName:"Studio Video",title:e.title,youTubeVideoId:e.youTubeVideoId,videoFileUrl:e.videoFileUrl,brandfolderVideo:e.brandfolderVideo,description:e.description,subtitle:e.subtitle,link:r,autoplay:null!=(o=e.autoplay)&&o,muted:null!=(s=e.muted)&&s,thumbnailImage:d}};return(0,a.jsx)(_.VideoComponent,{data:j,locale:"en-GB"})},definition:{id:"contentful-video",name:"Video",category:"SJA Build",variables:{title:{displayName:"Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},youTubeVideoId:{displayName:"YouTube Video ID",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},videoFileUrl:{displayName:"Video File URL",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},brandfolderVideo:{displayName:"Brandfolder Video",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},description:{displayName:"Description",type:"RichText",group:"content",validations:{bindingSourceType:["manual","entry"]}},subtitle:{displayName:"Subtitle",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkTitle:{displayName:"Link Title",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkUrl:{displayName:"Link URL",type:"Hyperlink",group:"content",validations:{bindingSourceType:["manual","entry"]}},linkOpenInNewTab:{displayName:"Link Open in New Tab",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkRelAttributes:{displayName:"Link Rel Attributes",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.relAttributes}},linkType:{displayName:"Link Type",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.types}},linkStyle:{displayName:"Link Style",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.styles}},linkIcon:{displayName:"Link Icon",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.icons}},linkCustomIcon:{displayName:"Link Custom Icon",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset","entry"]}},linkIconPosition:{displayName:"Link Icon Position",type:"Text",group:"content",defaultValue:"left",validations:{bindingSourceType:["manual","entry"],in:v.LINK.iconPositions}},linkHideLabel:{displayName:"Link Hide Label",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual","entry"]}},linkSize:{displayName:"Link Size",type:"Text",group:"content",validations:{bindingSourceType:["manual","entry"],in:v.LINK.sizes}},linkIsDownload:{displayName:"Link Is Download",type:"Boolean",group:"content",defaultValue:!1,validations:{bindingSourceType:["manual"]}},linkFileToDownload:{displayName:"Link File to Download",type:"Media",group:"content",validations:{bindingSourceType:["asset"]}},autoplay:{displayName:"Autoplay",type:"Boolean",defaultValue:!1,group:"style",validations:{bindingSourceType:["manual","entry"]}},muted:{displayName:"Muted",type:"Boolean",defaultValue:!1,group:"style",validations:{bindingSourceType:["manual","entry"]}}
1,thumbnailImageEntry:{displayName:"Thumbnail Image Entry",type:"Link",group:"content",validations:{bindingSourceType:["manual","entry"]}},thumbnailImage:{displayName:"Thumbnail Image Asset",type:"Media",group:"content",validations:{bindingSourceType:["manual","asset"]}}},builtInStyles:["cfMargin","cfPadding","cfWidth","cfMaxWidth"]}};(0,i.Yi)([G,P,F,C,L,U,h,M,W,q,B,H]),(0,i.Wb)([{id:"mobile",query:"*",displayName:"All Sizes",displayIcon:"mobile",previewSize:"390px"},{id:"small-mobile",query:">480px",displayName:"Small Mobile",displayIcon:"mobile",previewSize:"480px"},{id:"large-mobile",query:">640px",displayName:"Large Mobile",displayIcon:"mobile",previewSize:"640px"},{id:"tablet-portrait",query:">768px",displayName:"Tablet Portrait",displayIcon:"tablet",previewSize:"768px"},{id:"tablet-landscape",query:">1024px",displayName:"Tablet Landscape",displayIcon:"tablet",previewSize:"1024px"},{id:"laptop",query:">1280px",displayName:"Laptop",displayIcon:"desktop",previewSize:"1280px"},{id:"widescreen",query:">1536px",displayName:"Widescreen",displayIcon:"desktop",previewSize:"100%"}]);let X={Primary:"#007a4e",PrimaryLight:"#dcefe6",PrimaryDark:"#015033",Secondary:"#ede822",SecondaryLight:"#fbf9c8",SecondaryDark:"#b2ae19",StatusError:"#af1818",StatusWarning:"#af1818",StatusSuccess:"#4e8b43",ContrastOne:"#fafafa",ContrastTwo:"#f7f7f7",ContrastThree:"#dbdbdb",ContrastFour:"#767676",ContrastFive:"#020202"},J={XS:"0.75rem",S:"0.875rem",M:"1rem",L:"1.125rem",XL:"1.25rem","2XL":"1.5rem","3XL":"1.875rem","4XL":"2.25rem","5XL":"3rem","6XL":"3.75rem","7XL":"4.5rem"},Q={Thin:"100",ExtraLight:"200",Light:"300",Regular:"400",Medium:"500",Semibold:"600",Bold:"700",ExtraBold:"800",Black:"900"},Z={None:"1",Tight:"1.25",Snug:"1.375",Normal:"1.5",Relaxed:"1.625",Loose:"2"},Y={Card:{width:"1px",color:X.ContrastOne},"Card Bold":{width:"2px",color:X.ContrastOne},Primary:{width:"2px",color:X.Primary},Secondary:{width:"2px",color:X.Secondary},Error:{width:"1px",color:X.StatusError},Contrast:{width:"2px",color:X.ContrastThree},"Contrast Bold":{width:"4px",color:X.ContrastThree}};(0,i.Qm)({borderRadius:{None:"0px",XS:"0.125rem",S:"0.25rem",M:"0.375rem",L:"0.5rem",XL:"0.75rem","2XL":"1rem",Full:"9999px"},lineHeight:Z,letterSpacing:{Normal:"0em",Wide:"0.025em"},fontWeight:Q,fontSize:J,textColor:X,color:{Primary:X.Primary,PrimaryLight:X.PrimaryLight,PrimaryDark:X.PrimaryDark,Secondary:X.Secondary,SecondaryLight:X.SecondaryLight,SecondaryDark:X.SecondaryDark,StatusError:X.StatusError,StatusWarning:X.StatusWarning,StatusSuccess:X.StatusSuccess,ContrastOne:X.ContrastOne,ContrastTwo:X.ContrastTwo,ContrastThree:X.ContrastThree,ContrastFour:X.ContrastFour,ContrastFive:X.ContrastFive},spacing:{XXS:"0.25rem",XS:"0.5rem",S:"0.75rem",M:"1rem",L:"1.25rem",XL:"1.5rem","2XL":"2rem","3XL":"2.5rem","4XL":"3rem"},sizing:{Layout:"960px","Content Block":"480px","Container Max":"1400px","Container Padding":"1rem","Container Padding SM":"2rem","Container Padding LG":"4rem"},border:Y,shadow:{None:"none",SM:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",MD:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",LG:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",XL:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",Custom:"2px 2px 2px 0px rgba(32, 33, 37, 0.16), 0px 4px 8px 0px rgba(32, 33, 37, 0.16)"},text:{H1:{fontSize:J["4XL"],fontWeight:Q.Bold,lineHeight:Z.Loose,color:X.ContrastFive},H2:{fontSize:J["3XL"],fontWeight:Q.Bold,lineHeight:Z.Loose,color:X.ContrastFive},H3:{fontSize:J["2XL"],fontWeight:Q.Bold,lineHeight:Z.Loose,color:X.ContrastFive},H4:{fontSize:J.XL,fontWeight:Q.Bold,lineHeight:Z.Loose,color:X.ContrastFive},H5:{fontSize:J.XL,fontWeight:Q.Bold,lineHeight:Z.Loose,color:X.ContrastFive},Paragraph:{fontSize:J.M,fontWeight:Q.Regular,lineHeight:Z.Normal,color:X.ContrastFive},"Paragraph Large":{fontSize:J.L,fontWeight:Q.Regular,lineHeight:Z.Normal,color:X.ContrastFive},Link:{fontSize:J.M,fontWeight:Q.Bold,lineHeight:Z.Normal,color:X.Primary},"Link Large":{fontSize:J.L,fontWeight:Q.Bold,lineHeight:Z.Normal,color:X.Primary},"Link Small":{fontSize:J.S,fontWeight:Q.Bold,lineHeight:Z.Normal,color:X.Primary}}});let $=e=>{let{experienceJSON:t,locale:n}=e,s=(0,l.pn)();return(0,o.useEffect)(()=>
1{if(!s)return;let e=function(){let e={traits:{}};try{let t=localStorage.getItem("userId"),n=localStorage.getItem("userEmail"),a=localStorage.getItem("userName");t&&(e.traits={...e.traits,id:t}),n&&(e.traits={...e.traits,email:n}),a&&(e.traits={...e.traits,name:a}),Object.keys(localStorage).forEach(t=>{if(t.startsWith("ninetailed_"))try{let n=t.replace("ninetailed_",""),a=localStorage.getItem(t);a&&(e.traits={...e.traits,[n]:JSON.parse(a)})}catch(i){let n=t.replace("ninetailed_",""),a=localStorage.getItem(t);a&&(e.traits={...e.traits,[n]:a}),console.debug("Could not store trait ".concat(n,":"),i)}})}catch(e){console.debug("Could not access localStorage for user context:",e)}return e}();if(e.traits&&Object.keys(e.traits).length>0){var t;s.identify(null!=(t=e.traits.id)?t:"")}},[s]),(0,o.useEffect)(()=>{if(t&&s)try{var e;let n=JSON.parse(t);(null==n||null==(e=n.sys)?void 0:e.id)&&s.trackComponentView({experience:n,variant:{id:n.sys.id},variantIndex:0,element:document.getElementById(n.sys.id)})}catch(e){console.debug("Could not parse experience JSON for tracking:",e)}},[t,s]),(0,a.jsx)(i.lS,{experience:t,locale:n})}},44044:(e,t,n)=>{n.d(t,{U:()=>o});var a=n(95155),i=n(45073),l=n(78971);function o(e){var t,n,o,s;let{data:r,datePublished:d}=e,c=null==r||null==(t=r.fields)?void 0:t.fullName,u=null==r||null==(n=r.fields)?void 0:n.websiteUrl,p=null==r||null==(o=r.fields)?void 0:o.profileImage;return(0,a.jsxs)("section",{"data-contentful-entry-id":null==r||null==(s=r.sys)?void 0:s.id,className:"mx-auto bg-white px-4 py-6 md:px-10 md:py-6 flex items-start justify-start gap-2 w-full rounded-lg",children:[p?(0,a.jsx)(i._c,{data:p,className:"rounded-full size-14 overflow-hidden",sizes:"56px"}):null,(0,a.jsxs)("div",{className:"flex flex-col gap-2 items-start justify-start",children:[r&&(u?(0,a.jsx)(l.gH,{url:u,label:c||"",openInNewTab:!0,style:"primary alternative",animateUnderline:!0,className:"text-contrast-five text-base font-normal no-underline md:underline",children:c||""}):(0,a.jsx)("span",{className:"text-contrast-five text-base font-normal no-underline",children:c||""})),d&&(0,a.jsxs)("span",{className:"text-base font-normal text-contrast-five text-left",children:["Published on:"," ",new Date(d).toLocaleDateString("en-GB",{year:"numeric",month:"numeric",day:"numeric"})]})]})]})}},51294:(e,t,n)=>{n.d(t,{S:()=>i});var a=n(95155);n(12115);let i=e=>{let{id:t,name:n,value:i,label:l,required:o=!1,description:s,onChange:r,checked:d,className:c="",containerClassName:u=""}=e;return(0,a.jsxs)("label",{htmlFor:t,className:"\n      group flex items-start gap-3 p-1 rounded-sm border-2 border-transparent cursor-pointer transition-all duration-200\n      hover:bg-transparent\n      has-focus-visible:bg-bright-green has-focus-visible:border-primary\n      ".concat(u," \n    "),children:[(0,a.jsx)("input",{type:"checkbox",id:t,name:n,value:i,required:o,checked:d,onChange:r,className:"\n        mt-0.5 h-5 w-5 rounded border-2 border-contrast-five\n        text-contrast-five accent-primary focus-visible:accent-secondary\n        focus:ring-0 focus:outline-none focus:ring-offset-0\n        group-hover:border-contrast-five\n        checked:border-2 checked:border-primary\n        transition-colors cursor-pointer\n        ".concat(c,"\n      ")}),(0,a.jsxs)("span",{className:"flex-1",children:[(0,a.jsx)("span",{className:"leading-[22px] block text-base text-contrast-five group-hover:text-contrast-five group-hover:underline transition-colors",children:l}),s&&(0,a.jsx)("p",{className:"text-sm text-contrast-five mt-0.5",children:s})]})]})}},59500:(e,t,n)=>{n.d(t,{StandardPage:()=>eB});var a=n(95155),i=n(6236),l=n(9413),o=n(87762),s=n(44341),r=n(91325),d=n(39884),c=n(59434),u=n(23478),p=n(74466),m=n(12115),y=n(72671),g=n(78971),f=n(36534);function x(e){let{id:t,name:n,value:i,checked:l,onChange:o,label:s,className:r}=e;return(0,a.jsxs)("div",{className:(0,c.cn)("flex items-start justify-start gap-1 relative group px-2",r),children:[(0,a.jsx)("input",{type:"radio",name:n,value:i,id:t,checked:l,onChange:o,className:"peer sr-only"}),(0,a.jsx)("label",{htmlFor:t,className:"relative flex items-center justify-start gap-1 py-1 cursor-pointer px-2 after:content-[''] after:w-3 after:h-3 after:absolute after:top-1/2 after:left-3 after:-translate-y-1/2  after:border-2 after:bg-white after:border-transparent after:rounded-full after:flex after:transition-all after:duration-300 before:content-[''] before:w-5 before:h-5 before:border-2 before:border-contrast-three before:rounded-full before:flex before:transition-all before:duration-300 peer-checked:before:border-primary-dark peer-checked:after:bg-primary-dark peer-focus:px-2 peer-focus:text-primary-dark peer-focus:rounded-sm peer-hover:text-primary-dark peer-hover:before:border-primary-dark ",children:s})]},t)}function b(e){let{appliedFilters:t,clearFilters:n,clearFilter:i,className:l,isMobile:o=!1,isNested:s=!1}=e,r=Object.entries(t).filter(e=>{let[t,n]=e;return!(null==n||"-"===n||""===n||Array.isArray(n)&&0===n.length||Array.isArray(n)&&n.every(e=>"-"===e||""===e))&&"sortBy"!==t&&"location"!==t&&"postcode"!==t}).sort((e,t)=>
1{let[n]=e,[a]=t;return n.localeCompare(a)});return r.length<=0?null:(0,a.jsxs)("div",{className:(0,c.cn)("flex gap-4 scrollbar-hide justify-start items-center w-full bg-transparent",l),children:[o&&s&&(0,a.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,a.jsx)("span",{className:"text-base font-bold text-contrast-five",children:"Selected filters:"}),r.length>0&&(0,a.jsx)(g.gH,{label:"Clear filters",style:"primary",onClick:n,className:"w-auto"})]}),s&&(0,a.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-start px-1 py-1",children:r.map(e=>{let[t,n]=e;return"sortBy"!==t&&(0,a.jsx)(y.Q,{label:"distance"===t?"".concat(n," miles"):String(n),onClick:()=>i(t),icon:"close",size:"small",iconPosition:"right",style:"primary",className:"w-fit whitespace-nowrap px-2 py-1 bg-contrast-three border-contrast-three text-contrast-five font-normal text-sm min-h-[28px]! h-[28px]!"},t)})}),!s&&(0,a.jsxs)("div",{className:"flex gap-2 flex-nowrap items-center justify-start -mx-4 w-fit md:mx-0 overflow-x-auto scrollbar-hide px-4 py-1 md:px-1",children:[r.map(e=>{let[t,n]=e;return"sortBy"!==t&&(0,a.jsx)(y.Q,{label:"distance"===t?"".concat(n," miles"):String(n),onClick:()=>i(t),icon:"close",size:"small",iconPosition:"right",style:"primary",className:"w-fit whitespace-nowrap px-2 py-1 bg-soft-green-tint border-soft-green-tint text-contrast-five font-normal text-sm min-h-[28px]! h-[28px]!"},t)}),(0,a.jsx)(g.gH,{label:"Clear filters",style:"primary",onClick:n,className:"ml-4 -order-1 md:order-0 w-auto whitespace-nowrap"})]})]})}function v(e){let{filterLabel:t,items:n,applied:i,handleChange:l}=e;return(0,a.jsxs)(u.q7,{value:t,className:"lg:border-b-2 last:border-b-0 border-contrast-three bg-white rounded-lg lg:rounded-none ",children:[(0,a.jsxs)(u.l9,{className:"flex w-full items-center justify-between p-0 focus-visible:bg-secondary-light outline-radius-1 focus-visible:outline-2 focus-visible:outline-primary group",children:[(0,a.jsx)("span",{className:"text-base font-bold text-contrast-five px-4",children:t}),(0,a.jsxs)("div",{className:"w-14 h-14 flex items-center justify-center",children:[(0,a.jsx)(f.In,{name:"plus",className:"w-6 h-6 rotate-0 transition-transform block group-data-[state=open]:hidden"}),(0,a.jsx)(f.In,{name:"minus",className:"w-6 h-6 rotate-0 transition-transform hidden group-data-[state=open]:block"})]})]}),(0,a.jsx)(u.UC,{className:"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",children:(0,a.jsx)("div",{className:"flex flex-col gap-2 pt-2 pb-6",children:n.map((e,n)=>(0,a.jsx)(x,{id:e.id||e.name||e.value||"",name:t,value:e.id||e.name||e.value||"",checked:i===e.id,onChange:e=>l(t.toLowerCase(),e.target.value),label:e.value||e.name||e.id||""},e.id||e.name||e.value||n))})})]},t)}function h(e){let{roles:t,appliedFilters:n,setAppliedFilters:i,className:l,showFilters:o,toggleFilters:s,isMobile:r}=e,{roles:d,distance:g}=n,f=(e,t)=>{i({...n,[e]:t})};(0,m.useEffect)(()=>{if(!r||!o)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[r,o]);let x=(0,p.F)("w-full bg-off-white rounded-md md:max-w-[530px] md:w-1/3 flex-col py-2 px-3 lg:p-0 gap-2 lg:gap-0 overflow-hidden",{variants:{showFilters:{true:"flex fixed h-[calc(100dvh-81px)] overflow-y-auto overscroll-contain top-0 left-0 z-51 md:flex md:relative",false:"hidden md:flex md:relative"}},defaultVariants:{showFilters:!1}}),h=Object.entries(n).filter(e=>{let[t,n]=e;return"-"!==n&&null!=n&&"sortBy"!==t&&"location"!==t&&"postcode"!==t}),N=()=>{i({...n,roles:"-",types:"-",distance:"-",location:"-",postcode:void 0})};return(0,a.jsxs)(u.bL,{type:"multiple",className:(0,c.cn)(x({showFilters:o}),l),children:[r&&(0,a.jsxs)("div",{className:"flex justify-between items-center pl-1 pt-2 pr-0 lg:pb-3",children:[(0,a.jsx)("span",{className:"text-2xl/[115%] font-bold text-contrast-five",children:"Filters"}),(0,a.jsx)(y.Q,{label:"Close",icon:"close",onClick:s,style:"secondary",size:"small",iconPosition:"left",hideLabel:!0,className:"bg-transparent border-none"})]}),r&&(0,a.jsx)(b,{appliedFilters:n,clearFilters:N,clearFilter:e=>i({...n,[e]:"-"}),className:"p-4 overflow-auto flex shrink-0 flex-col items-start gap-4 roun
1ded-lg",isMobile:r,isNested:!0}),(0,a.jsx)(v,{filterLabel:"Distance",items:[{id:"10",value:"10 miles"},{id:"25",value:"25 miles"},{id:"50",value:"50 miles"}],applied:g?g.toString():void 0,handleChange:f}),(0,a.jsx)(v,{filterLabel:"Roles",items:t,applied:d,handleChange:f}),r&&(0,a.jsxs)("div",{className:"p-4 border-t border-contrast-three gap-2 bg-off-white flex justify-space-between items-center fixed bottom-0 left-0 right-0",children:[h.length>0&&(0,a.jsx)(y.Q,{label:"Clear All",style:"primary alternative",onClick:N,className:"w-1/2 justify-center!"}),(0,a.jsx)(y.Q,{label:"View Results",style:"primary",onClick:s,className:"w-1/2 justify-center! ".concat(h.length>0?"w-1/2":"w-full")})]})]})}var N=n(6874),T=n.n(N);function S(e){let{item:t,className:n,vacancyType:i}=e,{title:l,role:o,location:s,hours:r,id:d,closingdate:u,salaryDescription:p,salarydescription:m}=t,g=p||m;return(0,a.jsxs)(T(),{href:"/".concat(i.toLowerCase(),"/").concat(d),className:(0,c.cn)("flex flex-col p-[22px] bg-white rounded-sm border-2 border-transparent hover:border-primary transition-all duration-300",n),children:[(0,a.jsx)("span",{className:"block text-base font-bold text-contrast-five mb-2",children:o}),(0,a.jsx)("h3",{className:"block text-3xl font-bold text-contrast-five underline underline-offset-4",children:l}),(0,a.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:justify-between md:items-center mt-4 pt-4",children:[(0,a.jsxs)("ul",{className:"flex flex-col gap-4 md:flex-row md:gap-6 flex-wrap list-none p-0 m-0",children:[r&&(0,a.jsxs)("li",{className:"flex flex-col items-start gap-1",children:[(0,a.jsx)("span",{className:"text-contrast-five text-base font-normal",children:"Hours:"}),(0,a.jsxs)("span",{className:"font-bold",children:[(0,a.jsx)(f.In,{name:"clock",className:"size-6 text-contrast-five! inline-block"})," ",r]})]}),s&&(0,a.jsxs)("li",{className:"flex flex-col items-start gap-1",children:[(0,a.jsx)("span",{className:"text-contrast-five text-base font-normal",children:"Location:"}),(0,a.jsxs)("span",{className:"font-bold",children:[(0,a.jsx)(f.In,{name:"pin",className:"size-6 text-contrast-five! inline-block"})," ",s," "]})]}),g&&(0,a.jsxs)("li",{className:"flex flex-col items-start gap-1",children:[(0,a.jsx)("span",{className:"text-contrast-five text-base font-normal",children:"Salary:"}),(0,a.jsx)("span",{className:"font-bold",children:g})]}),u&&(0,a.jsxs)("li",{className:"flex flex-col items-start gap-1",children:[(0,a.jsx)("span",{className:"text-contrast-five text-base font-normal",children:"Closing date:"}),(0,a.jsxs)("span",{className:"font-bold",children:[(0,a.jsx)(f.In,{name:"forms",className:"size-6 text-contrast-five! inline-block"})," ",u]})]})]}),(0,a.jsx)(y.Q,{label:"See details",style:"primary",icon:"chevron-right",iconPosition:"right",className:"w-fit min-w-36 shrink-0 justify-between whitespace-nowrap"})]})]})}var k=n(27945);let L=(e,t)=>{let n=t.toLowerCase();return(e.value||e.name||e.id||"").toLowerCase().includes(n)},w=m.forwardRef((e,t)=>{let{options:n,value:i="",onValueChange:l,placeholder:o,filterFunction:s=L,className:r,disabled:d=!1}=e,u=m.useId(),p="combobox-input-".concat(u),y="combobox-listbox-".concat(u),[g,f]=m.useState(!1),[x,b]=m.useState(i),[v,h]=m.useState(null),N=m.useRef(null),T=m.useRef(null);m.useImperativeHandle(t,()=>N.current),m.useEffect(()=>{let e=n.find(e=>e.id===i||e.value===i||e.name===i);e?(b(e.value||e.name||e.id||""),h(e)):(b(i),h(null))},[i,n]);let S=m.useMemo(()=>x.trim()?n.filter(e=>s(e,x)):n,[n,x,s]),w=e=>{let t=e.id||e.value||e.name||"";b(e.value||e.name||e.id||""),h(e),f(!1),N.current&&N.current.focus(),l&&l(t)};return(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsxs)(k.bL,{open:g,onOpenChange:f,children:[(0,a.jsx)("label",{htmlFor:p,className:"block mb-2 text-base font-bold text-contrast-five",children:"Postcode or Location"}),(0,a.jsx)(k.l9,{asChild:!0,children:(0,a.jsx)("input",{id:p,name:p,role:"combobox","aria-expanded":g,"aria-autocomplete":"list","aria-controls":y,ref:N,type:"text",value:x,onChange:e=>{let t=e.target.value;b(t),f(!0),h(null),l&&l(t)}
1,placeholder:o,disabled:d,className:(0,c.cn)("combobox-input","p-3 w-full bg-white border-2 border-contrast-five rounded-full text-sm/4.5 font-normal text-contrast-five placeholder-contrast-five hover:border-primary-dark focus:outline-none focus:!ring-2 focus:!ring-primary-dark focus:!border-2 focus:!border-primary-dark",r)})}),(0,a.jsx)(k.ZL,{children:(0,a.jsx)(k.UC,{onOpenAutoFocus:e=>{e.preventDefault(),N.current&&N.current.focus()},onPointerDown:e=>{e.preventDefault()},className:(0,c.cn)("z-50 min-w-[var(--radix-popover-trigger-width)] max-h-[300px] overflow-auto rounded-md border border-gray-700 bg-white text-gray-900 shadow-md"),sideOffset:4,align:"start",children:(0,a.jsx)("div",{ref:T,children:S.length>0?(0,a.jsx)("div",{id:y,role:"listbox",className:"p-1",children:S.map((e,t)=>{let n=e.value||e.name||e.id||"",i=(null==v?void 0:v.id)===e.id||(null==v?void 0:v.id)===void 0&&(null==v?void 0:v.value)===e.value;return(0,a.jsx)("div",{role:"option","aria-selected":i,onPointerDown:t=>{t.preventDefault(),w(e)},className:(0,c.cn)("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 px-3 text-sm outline-none","hover:bg-gray-100 focus:bg-gray-100",i&&"bg-gray-100",d&&"pointer-events-none opacity-50"),children:n},e.id||e.value||t)})}):(0,a.jsx)("div",{className:"p-3 text-sm text-gray-500",children:"No options found"})})})})]})})});function j(e){let{list:t,appliedValue:n,placeholder:i="Town or Postcode",onSearch:l}=e,[o,s]=(0,m.useState)(n&&"-"!==n?n:"");return(0,a.jsxs)("div",{className:"flex flex-col items-end justify-end gap-2 md:flex-row md:gap-6 w-full",children:[(0,a.jsx)(w,{options:t,value:o,onValueChange:s,placeholder:i,className:"flex-1 w-full"}),(0,a.jsx)(y.Q,{label:"Search",icon:"search",iconPosition:"left",onClick:()=>{l(o)},className:"w-full md:w-auto justify-center"})]})}function I(e){let{currentPage:t,totalItems:n,itemsPerPage:i,onPageChange:l,className:o}=e,s=Math.ceil(n/i);if(n<=i)return null;let r=1===t,d=t===s,u=e=>{e!==t&&e>=1&&e<=s&&l(e)},p=s<=3?Array.from({length:s},(e,t)=>t+1):t<=2?[1,2,3]:t>=s-1?[s-2,s-1,s]:[t-1,t,t+1];return(0,a.jsxs)("div",{className:(0,c.cn)("flex items-center justify-center mb-6",o),children:[(0,a.jsx)(y.Q,{label:"Previous",hideLabel:!0,icon:"chevron-left",iconPosition:"left",style:"secondary",onClick:r?void 0:()=>{t>1&&l(t-1)},className:(0,c.cn)("w-[52px] h-[52px]! mr-6 bg-white border-contrast-five text-contrast-five hover:!bg-primary hover:!border-primary focus-visible:bg-contrast-four! focus-visible:!border-contrast-five",r&&"bg-contrast-three border-contrast-three text-contrast-four cursor-not-allowed pointer-events-none hover:!bg-contrast-three hover:!border-contrast-three focus-visible:!border-contrast-three")}),(0,a.jsx)("div",{className:"flex items-center gap-1",children:p.map(e=>{let n=e===t;return(0,a.jsx)(y.Q,{label:e.toString(),style:"primary",onClick:()=>u(e),className:(0,c.cn)("w-[52px] h-[52px] not-last:mr-1 items-center justify-center","bg-transparent text-3xl font-normal text-contrast-five border-0 border-b-2 border-primary-light rounded-none hover:bg-transparent hover:text-primary hover:border-primary hover:border-b-4 hover:no-underline",n&&"text-semibold border-contrast-five border-b-4")},e)})}),(0,a.jsx)(y.Q,{label:"Next",hideLabel:!0,icon:"chevron-right",iconPosition:"right",style:"secondary",onClick:d?void 0:()=>{t<s&&l(t+1)},className:(0,c.cn)("w-[52px] h-[52px]! ml-6 bg-white border-contrast-five text-contrast-five hover:!bg-primary hover:!border-primary focus-visible:bg-contrast-four! focus-visible:!border-contrast-five",d&&"bg-contrast-three border-contrast-three text-contrast-four cursor-not-allowed pointer-events-none hover:!bg-contrast-three hover:!border-contrast-three focus-visible:!border-contrast-three")})]})}w.displayName="Combobox";let C=[{value:"title",label:"Title"},{value:"location",label:"Location"},{value:"closingdate",label:"Closing date"}];function A(e){let{sortBy:t="title",setSortBy:n,className:i}=e,l=(0,m.useId)();return(0,a.jsxs)("div",{className:(0,c.cn)("flex items-center gap-2 rounded-full border-2 border-contrast-five p-3 text-contrast-five text-base/normal cursor-pointer has-focus-visible:bg-yellow-bright has-focus-visible:outline-2 has-focus-visible:outline-primary relative w-fit",i),children:[(0,a.jsx)("label",{htmlFor:l,className:"text-base text-contrast-five font-normal",children:"Sort by:"}),(0,a.jsx)("select",{id:l,value:t,onChange:e=>{n(e.target.value)},className:"text-contrast-five font-bold outline-none appearance-none bg-transparent pr-6","aria-label":"Sort by",children:C.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)(f.In,{name:"chevron-down",className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-primary w-6 h-6"})]})}var P=n(34477);let D=(0,P.createServerReference)("40c931e90ee1883e2b49d4fae16930bb997732b44e",P.callServer,void 0,P.findSourceMapURL,"fetchReachLists");var F=n(73551),E=n(19106),M=n(4675);function V(e){let{data:t,locale:n}=e,i=(0,M.qM)(t,{locale:n}),{vacancyType:l,heading:o,summary:s,heroImage:r,defaultSortBy:c}=i.fields,[u,p]=(0,m.useState)([]),[g,f]=(0,m.useState)([]),[x,v]=(0,m.useState)(!0),[N,T]=(0,m.useState)(null),[k,L]=(0,m.useState)(!1),[w,C]=(0,m.useState)(0),[P,V]=(0,m.useState)([]),[B,z]=(0,m.useState)(0),H=(0,E.a)(768),[R,U]=(0,m.useState)(()=>{let e=new URLSearchParams(window.location.search).get("page"),t=e?parseInt(e,10):1;return isNaN(t)||t<1?1:t}),[O,q]=(0,m.useState)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("location")||"-",n=e.get("postcode")||void 0,a=e.get("distance")||(n?"10":"-"),i=e.get("roles")||"-",l=e.get("keyword")||"-";return{location:t,postcode:n,distance:a,roles:i,sortBy:e.get("sortBy")||c||"closingdate",keyword:l}});(0,m.useEffect)(()=>{!async function(){try{let[e,t]=await Promise.all([D(l),(0,F.Y)({location:"-",roles:"-",types:"-",keyword:"-"},l)]);p(e.locations||[]),f(e.roles||[]),t&&!t.error&&z(t.items.length),v(!1)}catch(e){T(e instanceof Error?e:Error("Failed to fetch lists")),v(!1)}}()},[l]),(0,m.useEffect)(()=>{!async function(){try{v(!0),T(null),V([]);let e=await (0,F.Y)(O,l);if(e.error){T(Error(e.message||e.error)),v(!1);return}let t=e.items.sort((e,t)=>
1{if("location"===O.sortBy){var n;return(null==(n=e.location)?void 0:n.localeCompare(t.location||""))||0}return"closingdate"===O.sortBy?String(e.isodate||"").localeCompare(String(t.isodate||"")):e.title.localeCompare(t.title)});V(t),T(null),v(!1)}catch(e){T(e instanceof Error?e:Error("Failed to fetch results")),v(!1)}}()},[O,l]),(0,m.useEffect)(()=>{{let e=new URLSearchParams(window.location.search);O.location?e.set("location",O.location):e.delete("location"),O.postcode?e.set("postcode",O.postcode):e.delete("postcode"),O.distance?e.set("distance",O.distance.toString()):e.delete("distance"),O.roles?e.set("roles",O.roles):e.delete("roles"),O.types?e.set("types",O.types):e.delete("types"),O.sortBy?e.set("sortBy",O.sortBy):e.delete("sortBy"),O.keyword?e.set("keyword",O.keyword):e.delete("keyword"),R>1?e.set("page",R.toString()):e.delete("page"),window.history.replaceState({},"","?".concat(e.toString()))}},[O,R]),(0,m.useEffect)(()=>{C(Object.entries(O).filter(e=>{let[t,n]=e;return"-"!==n&&null!=n&&"sortBy"!==t&&"location"!==t&&"postcode"!==t}).length)},[O]);let K=(0,m.useRef)(!0),W=(0,m.useRef)(O);(0,m.useEffect)(()=>{if(K.current){K.current=!1,W.current=O;return}(W.current.location!==O.location||W.current.postcode!==O.postcode||W.current.distance!==O.distance||W.current.roles!==O.roles||W.current.types!==O.types||W.current.keyword!==O.keyword||W.current.sortBy!==O.sortBy)&&(U(1),W.current=O)},[O]);let _=()=>{L(!k)},G=(R-1)*8,X=P.slice(G,G+8);return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsx)(d.Z,{id:i.sys.id,heading:o,headingLevel:1,text:s,image:r,verticalPosition:"bottom",horizontalPosition:"left",colourway:"secondary",reactComponent:(0,a.jsx)(j,{list:u,appliedValue:O.location||O.postcode||void 0,onSearch:e=>{u.some(t=>t.value===e)?q({...O,location:e,postcode:void 0}):e.length>0?q({...O,postcode:e,location:"-",distance:"10"}):q({...O,postcode:void 0,location:"-",distance:"-"})}})}),(0,a.jsxs)("section",{id:"reach-listing-results",className:"container mx-auto pt-3",children:[H&&(0,a.jsxs)("div",{className:"flex md:hidden flex-col gap-6",children:[(0,a.jsxs)("div",{className:"flex justify-between gap-2 align-center",children:[(0,a.jsx)(y.Q,{label:"Filter ".concat(w>0?"(".concat(w,")"):""),icon:"setting",iconPosition:"left",style:"primary",className:"max-w-1/2 w-full",onClick:_}),(0,a.jsx)(A,{sortBy:O.sortBy,setSortBy:e=>q({...O,sortBy:e}),className:"grow shrink-0"})]}),w>0&&(0,a.jsx)(b,{appliedFilters:O,clearFilters:()=>q({...O,roles:"-",types:"-",distance:"-",location:"-",postcode:void 0}),clearFilter:e=>q({...O,[e]:"-"}),className:""}),(0,a.jsxs)("div",{className:"text-sm text-contrast-five text-center",children:["Showing ",(0,a.jsx)("b",{className:"font-semibold",children:X.length})," of"," ",(0,a.jsx)("b",{className:"font-semibold",children:B})," opportunities"]})]}),!H&&(0,a.jsxs)("div",{className:"hidden md:flex justify-between items-center",children:[(0,a.jsxs)("div",{className:"text-sm/normal text-contrast-five",children:["Showing ",(0,a.jsx)("b",{className:"font-semibold",children:X.length})," of"," ",(0,a.jsx)("b",{className:"font-semibold",children:B})," opportunities"]}),(0,a.jsx)(A,{sortBy:O.sortBy,setSortBy:e=>q({...O,sortBy:e}),className:""})]}),!H&&(0,a.jsx)(b,{appliedFilters:O,clearFilters:()=>q({...O,roles:"-",types:"-",distance:"-",location:"-",postcode:void 0}),clearFilter:e=>q({...O,[e]:"-"}),className:"mt-6 md:mt-4 hidden md:flex"}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:gap-6 mt-6 md:items-start mb-10",children:[(0,a.jsx)(h,{roles:g,appliedFilters:{roles:O.roles||"-",sortBy:O.sortBy||"title",keyword:O.keyword||"-",location:O.location||"-",postcode:O.postcode||void 0,distance:O.distance||"-"},setAppliedFilters:q,className:"",isMobile:H,showFilters:k,toggleFilters:_}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 md:w-2/3",children:[x&&(0,a.jsx)("div",{className:"text-center text-contrast-five text-base font-normal",children:"Loading results..."}),N&&(0,a.jsxs)("div",{className:"text-center py-12 bg-white rounded-lg",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)("svg",{className:"w-16 h-16 mx-auto text-contrast-five/40",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-contrast-one mb-2",children:"Error loading results"}),(0,a.jsx)("p",{className:"text-sm text-contrast-five",children:N&&(N.message.includes("<")||N.message.includes("<?xml"))?"Try adjusting your location or filters.":N.message})]}),!x&&!N&&0===P.length&&(0,a.jsx)("div",{className:"text-center text-contrast-five text-base font-normal",children:"No results found"}),!x&&!N&&P.length>0&&X.map((e,t)=>(0,a.jsx)(S,{item:e,className:"",vacancyType:l},"item-".concat(e.title,"-").concat(t))),!x&&!N&&P&&P.length>0&&(0,a.jsx)(I,{currentPage:R,totalItems:P.length,itemsPerPage:8,onPageChange:e=>{U(e);let t=document.getElementById("reach-listing-results");t&&t.scrollIntoView({behavior:"smooth"})}})]})]})]})]})}var B=n(99766),z=n(66628),H=n(7427);let R="form.typeform.eu",U=e=>{let{data:t}=e,[n,i]=(0,m.useState)(!1),{formId:l,style:o,trigger:s,autoClose:r=!1}=t.fields;if(!l)return null;let d=r?5e3:void 0,c=o.startsWith("Drawer"),u=o.includes("left")?"left":"right",p=c?"Drawer":o;return"Inline"===p?(0,a.jsx)(H.Widget,{id:l,style:{width:"100%"},autoResize:!0,domain:R}):"Toggle"===p?n?(0,a.jsx)(H.Widget,{id:l,style:{width:"100%"},autoResize:!0,domain:R}):(0,a.jsx)("div",{children:(0,a.jsx)(g.gH,{data:s,url:"",animateUnderline:!0,onClick:()=>i(!0)})}):"Modal"===p?(0,a.jsx)(H.PopupButton,{id:l,autoClose:d,domain:R,children:(0,a.jsx)(g.gH,{data:s,url:"",animateUnderline:!0})}):"Drawer"===p?(0,a.jsx)(H.SliderButton,{id:l,position:u,autoClose:d,domain:R,children:(0,a.jsx)(g.gH,{data:s,url:"",animateUnderline:!0})}):null};var O=n(98402),q=n(58801);class K extends m.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Content rendering error:",{error:e,errorInfo:t,contentType:this.props.contentType,entryId:this.props.entryId})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,a.jsxs)("div",{className:"border border-red-200 bg-red-50 p-4 rounded-lg",children:[(0,a.jsx)("p",{className:"text-red-800 font-medium",children:"Error rendering content"}),this.props.contentType&&(0,a.jsxs)("p",{className:"text-red-600 text-sm mt-1",children:["Content type: ",this.props.contentType]}),this.props.isPreview&&this.state.error&&(0,a.jsxs)("details",{className:"mt-2",children:[(0,a.jsx)("summary",{className:"text-red-600 text-sm cursor-pointer",children:"Error details"}),(0,a.jsx)("pre",{className:"text-xs mt-1 overflow-auto",children:this.state.error.stack})]})]}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}var W=n(4189);let _=(0,P.createServerReference)("60e78292cab34b530c4d647c9333639a6161303929",P.callServer,void 0,P.findSourceMapURL,"sendEventEmail");var G=n(47650);function X(e){let{isOpen:t,onClose:n,title:i,children:l,footer:o,className:s}=e,[r,d]=(0,m.useState)(t),[u,p]=(0,m.useState)(!1),y=(0,m.useRef)(null),g=(0,m.useRef)(null);return((0,m.useEffect)(()=>{p(!0)},[]),(0,m.useEffect)(()=>
1{if(t)d(!0),g.current=document.activeElement;else{let e=setTimeout(()=>d(!1),300);return g.current&&g.current.focus(),()=>clearTimeout(e)}},[t]),(0,m.useEffect)(()=>{let e=e=>{if("Escape"===e.key)return void n();if("Tab"===e.key&&y.current){let t=y.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===t.length)return;let n=t[0],a=t[t.length-1];e.shiftKey?(document.activeElement===n||document.activeElement===y.current)&&(a.focus(),e.preventDefault()):document.activeElement===a&&(n.focus(),e.preventDefault())}};return t&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden",setTimeout(()=>{y.current&&!y.current.contains(document.activeElement)&&y.current.focus()},50)),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="unset"}},[t,n]),r&&u)?(0,G.createPortal)((0,a.jsx)("div",{className:(0,c.cn)("fixed inset-0 z-50 flex bg-black/50","items-end justify-center lg:items-stretch lg:justify-end",t?"animate-fade-in":"animate-fade-out"),onClick:e=>{e.target===e.currentTarget&&n()},children:(0,a.jsxs)("div",{ref:y,tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",onClick:e=>e.stopPropagation(),className:(0,c.cn)("bg-off-white shadow-xl flex flex-col w-full rounded-t-xl max-h-[75vh] lg:w-full md:max-w-lg lg:h-screen lg:rounded-none lg:max-h-none outline-none",t?"animate-slide-in-bottom lg:animate-slide-in-right":"animate-slide-out-bottom lg:animate-slide-out-right",s),children:[(0,a.jsxs)("header",{className:"flex justify-between items-start p-6 bg-off-white",children:[(0,a.jsx)("div",{id:"modal-title",className:"flex-1",children:i}),(0,a.jsx)("button",{onClick:n,"aria-label":"Close modal",className:"p-2 rounded-full hover:bg-gray-100 ml-4 bg-soft-green-tint",children:(0,a.jsx)(f.In,{name:"close",size:18})})]}),(0,a.jsx)("div",{className:"px-6 flex-1 overflow-y-auto",children:l}),o&&(0,a.jsx)("footer",{className:"p-4 border-t border-contrast-three bg-off-white",children:o})]})}),document.body):null}var J=n(32409);let Q=(0,m.forwardRef)((e,t)=>{let{className:n,children:i,onPointerDown:l,onFocus:o,onBlur:s,...r}=e,d=(0,m.useRef)(!1),[u,p]=(0,m.useState)(!1);return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("select",{...r,ref:t,onPointerDown:e=>{d.current=!0,null==l||l(e)},onFocus:e=>{let t=document.documentElement.classList.contains("keyboard-navigation");p(!d.current&&t),d.current=!1,null==o||o(e)},onBlur:e=>{p(!1),null==s||s(e)},className:(0,c.cn)("flex w-full appearance-none rounded-full border border-contrast-four bg-white p-3 pr-8 text-base ring-offset-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",u&&"ring-2 ring-primary ring-offset-2",n),children:i}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-500",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",children:(0,a.jsx)("path",{d:"M13.25 0.75L7 7L0.75 0.75",stroke:"#767676",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});Q.displayName="Select";var Z=n(93915);let Y=e=>{let{id:t,label:n,required:i,children:l,className:o,description:s}=e,r=s?"".concat(t,"-desc"):void 0;return(0,a.jsxs)("div",{className:(0,c.cn)("mb-6",o),children:[(0,a.jsxs)("label",{htmlFor:t,className:"block font-bold text-contrast-five pb-2",children:[n," ",i&&(0,a.jsx)("span",{className:"text-contrast-five","aria-hidden":"true",children:"*"})]}),s&&(0,a.jsx)("p",{id:r,className:"text-sm mb-2",children:s}),m.isValidElement(l)?m.cloneElement(l,{"aria-describedby":r,"aria-required":i}):l]})},$=(0,P.createServerReference)("4000d48c3baa4d1f50718a23a8ec80526f2d131ebb",P.callServer,void 0,P.findSourceMapURL,"findAddresses"),ee=(0,P.createServerReference)("4008546adde9513ec4a1c6d734d484d854cfe231c6",P.callServer,void 0,P.findSourceMapURL,"retrieveAddress");function et(e){let{onAddressSelected:t}=e,[n,i]=(0,m.useState)(""),[l,o]=(0,m.useState)([]),[s,r]=(0,m.useState)(""),[d,c]=(0,m.useState)(!1),[u,p]=(0,m.useState)(""),g=async()=>
1{if(!n)return void p("Please enter a postcode.");c(!0),p(""),o([]);let e=await $(n);e.success?o(e.addresses):p(e.error),c(!1)},f=async e=>{if(r(e),!e)return;c(!0),p("");let n=await ee(e);n.success?(t(n.address),o([])):p(n.error),c(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Y,{id:"postcode-lookup",label:"Find address by postcode",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(Z.p,{type:"text",id:"postcode-lookup",value:n,onChange:e=>i(e.target.value.toUpperCase()),className:"w-40",autoComplete:"postal-code"}),(0,a.jsx)(y.Q,{label:d?"Finding...":"Find Address",onClick:g,disabled:d,style:"primary",size:"medium",className:"w-full justify-center h-full py-4"})]})}),u&&(0,a.jsx)("p",{className:"text-sm text-red-500 mb-2",children:u}),l.length>0&&(0,a.jsx)(Y,{id:"address-select",label:"Select an address",required:!0,children:(0,a.jsxs)(Q,{id:"address-select",name:"addressSelect",value:s,onChange:e=>f(e.target.value),required:!0,children:[(0,a.jsxs)("option",{value:"",disabled:!0,children:[l.length," addresses found..."]}),l.map(e=>(0,a.jsx)("option",{value:e.Id,children:e.Text},e.Id))]})})]})}let en="^[a-zA-Z0-9\\s'\\-]+$";function ea(e){let{collectGenderInformation:t}=e,[n,i]=(0,m.useState)(null);return(0,a.jsxs)("div",{className:"block",children:[(0,a.jsx)(Y,{id:"title",label:"Title",required:!0,children:(0,a.jsxs)(Q,{id:"title",name:"title",required:!0,defaultValue:"",autoComplete:"honorific-prefix",children:[(0,a.jsx)("option",{value:"",disabled:!0,children:"-- Select an option --"}),(0,a.jsx)("option",{value:"Mr",children:"Mr"}),(0,a.jsx)("option",{value:"Miss",children:"Miss"}),(0,a.jsx)("option",{value:"Mrs",children:"Mrs"}),(0,a.jsx)("option",{value:"Ms",children:"Ms"}),(0,a.jsx)("option",{value:"Mx",children:"Mx"}),(0,a.jsx)("option",{value:"Dr",children:"Dr"}),(0,a.jsx)("option",{value:"Other",children:"Other"})]})}),(0,a.jsx)(Y,{id:"otherTitle",label:"If other title",children:(0,a.jsx)(Z.p,{type:"text",id:"otherTitle",name:"otherTitle",className:"w-full",autoComplete:"honorific-prefix",pattern:en})}),(0,a.jsx)(Y,{id:"firstName",label:"First name",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"firstName",name:"firstName",required:!0,className:"w-full",autoComplete:"given-name",pattern:en})}),(0,a.jsx)(Y,{id:"lastName",label:"Last name",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"lastName",name:"lastName",required:!0,className:"w-full",autoComplete:"family-name",pattern:en})}),t&&(0,a.jsx)(Y,{id:"gender",label:"Gender",required:!0,children:(0,a.jsxs)(Q,{id:"gender",name:"gender",required:!0,defaultValue:"",children:[(0,a.jsx)("option",{value:"",disabled:!0,children:"-- Select an option --"}),(0,a.jsx)("option",{value:"Male",children:"Male"}),(0,a.jsx)("option",{value:"Female",children:"Female"}),(0,a.jsx)("option",{value:"Non-binary",children:"Non-binary"}),(0,a.jsx)("option",{value:"Prefer not to say",children:"Prefer not to say"})]})}),(0,a.jsx)(Y,{id:"dob",label:"Date of birth",required:!0,children:(0,a.jsx)(Z.p,{type:"date",id:"dob",name:"dateOfBirth",required:!0,className:"w-full",autoComplete:"bday"})}),(0,a.jsx)(Y,{id:"phone",label:"Phone number",required:!0,children:(0,a.jsx)(Z.p,{type:"tel",id:"phone",name:"phone",required:!0,className:"w-full",autoComplete:"tel"})}),(0,a.jsx)(Y,{id:"email",label:"Email",required:!0,children:(0,a.jsx)(Z.p,{type:"email",id:"email",name:"email",required:!0,className:"w-full",autoComplete:"email"})}),(0,a.jsx)(et,{onAddressSelected:i}),(0,a.jsx)(Y,{id:"addressLine1",label:"Address line 1",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"addressLine1",name:"addressLine1",required:!0,defaultValue:(null==n?void 0:n.Line1)||"",className:"w-full",autoComplete:"address-line1"},null==n?void 0:n.Line1)}),(0,a.jsx)(Y,{id:"addressLine2",label:"Address line 2",children:(0,a.jsx)(Z.p,{type:"text",id:"addressLine2",name:"addressLine2",defaultValue:(null==n?void 0:n.Line2)||"",className:"w-full",autoComplete:"address-line2"},null==n?void 0:n.Line2)}),(0,a.jsx)(Y,{id:"addressLine3",label:"Address line 3",children:(0,a.jsx)(Z.p,{type:"text",id:"addressLine3",name:"addressLine3",defaultValue:(null==n?void 0:n.Line3)||"",className:"w-full",autoComplete:"address-line3"},null==n?void 0:n.Line3)}),(0,a.jsx)(Y,{id:"townCity",label:"Town/city",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"townCity",name:"townCity",required:!0,defaultValue:(null==n?void 0:n.City)||"",className:"w-full",autoComplete:"address-level2"},null==n?void 0:n.City)}),(0,a.jsx)(Y,{id:"county",label:"County",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"county",name:"county",required:!0,defaultValue:(null==n?void 0:n.ProvinceName)||"",className:"w-full",autoComplete:"address-level1"},null==n?void 0:n.ProvinceName)}
1),(0,a.jsx)(Y,{id:"postcode",label:"Postcode",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"postcode",name:"postcode",required:!0,defaultValue:(null==n?void 0:n.PostalCode)||"",className:"w-full",autoComplete:"postal-code"},null==n?void 0:n.PostalCode)}),(0,a.jsx)(Y,{id:"country",label:"Country",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"country",name:"country",required:!0,defaultValue:(null==n?void 0:n.CountryName)||"",className:"w-full",autoComplete:"country-name"},null==n?void 0:n.CountryName)}),(0,a.jsx)(Y,{id:"jobTitle",label:"Job title",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"jobTitle",name:"jobTitle",required:!0,className:"w-full",autoComplete:"organization-title",pattern:en})}),(0,a.jsx)(Y,{id:"company",label:"What company or organisation do you work for?",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"company",name:"company",required:!0,className:"w-full",autoComplete:"organization",pattern:en})})]})}let ei=m.forwardRef((e,t)=>{let{className:n,error:i,onPointerDown:l,onFocus:o,onBlur:s,...r}=e,d=(0,m.useRef)(!1),[u,p]=(0,m.useState)(!1);return(0,a.jsx)("textarea",{...r,ref:t,onPointerDown:e=>{d.current=!0,null==l||l(e)},onFocus:e=>{let t=document.documentElement.classList.contains("keyboard-navigation");p(!d.current&&t),d.current=!1,null==o||o(e)},onBlur:e=>{p(!1),null==s||s(e)},className:(0,c.cn)("w-full bg-white border rounded-[32px] placeholder-gray-400 focus:outline-none transition-colors p-3",i?"border-red-500":"border-gray-700",u&&(i?"ring-2 ring-red-500 border-red-500 bg-yellow-light":"ring-2 ring-primary border-primary bg-yellow-light"),n)})});ei.displayName="TextArea";let el=e=>{let{id:t,name:n,value:i,label:l,required:o=!1,onChange:s}=e;return(0,a.jsxs)("label",{htmlFor:t,className:"flex items-center gap-2",children:[(0,a.jsx)("input",{type:"radio",id:t,name:n,value:i,required:o,onChange:s,className:"h-4 w-4 text-primary focus:ring-primary border-gray-300"}),(0,a.jsx)("span",{children:l})]})};var eo=n(51294);function es(e){let{includeOfficialBallot:t,includeFundraisingPledge:n,isExpressionOfInterest:i}=e;return(0,a.jsxs)("div",{className:"block",children:[t&&(0,a.jsxs)("fieldset",{className:"mb-4",children:[(0,a.jsx)("legend",{className:"block font-semibold text-contrast-five mb-2",children:"Have you entered the official event ballot? *"}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(el,{id:"ballot-yes",name:"ballotEntered",value:"yes",label:"Yes",required:!0}),(0,a.jsx)(el,{id:"ballot-no",name:"ballotEntered",value:"no",label:"No",required:!0})]}),(0,a.jsx)("p",{className:"text-contrast-five mt-2",children:"Please be aware if you have entered the official ballot, you won't hear from us until the ballot results are announced."})]}),(0,a.jsx)(Y,{id:"motivation",label:"Please tell us why you'd like to run this event for St John Ambulance.",required:!0,children:(0,a.jsx)(ei,{id:"motivation",name:"motivation",required:!0,rows:4})}),(0,a.jsx)(Y,{id:"runningExperience",label:"Please tell us about your running experience. For example, how long you've been running and how often you go running.",children:(0,a.jsx)(ei,{id:"runningExperience",name:"runningExperience",rows:4})}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("fieldset",{className:"mb-6",children:[(0,a.jsx)("legend",{className:"block text-contrast-five font-semibold mb-2",children:"If you are selected to run for SJA, do you agree to raise the minimum sponsorship pledge? *"}),(0,a.jsx)("div",{className:"flex gap-4",children:(0,a.jsx)(eo.S,{id:"fundraise-yes",name:"agreeToFundraise",value:"yes",label:"I agree",required:!0})})]}),i&&(0,a.jsx)(Y,{id:"fundraisingPlan",label:"Please tell us how you plan to fundraise the sponsorship money.",required:!0,children:(0,a.jsx)(ei,{id:"fundraisingPlan",name:"fundraisingPlan",required:!0,rows:4})})]}),(0,a.jsx)(Y,{id:"sjaConnection",label:"Do you have a particular connection to St John Ambulance? For example, you volunteer with us or you have been helped by one of our volunteers.",required:!0,children:(0,a.jsx)(ei,{id:"sjaConnection",name:"sjaConnection",required:!0,rows:4})})]})}let er="^[a-zA-Z0-9\\s'\\-]+$";function ed(e){let{offerRunningVest:t,sizingChartUrl:n,offerIronOnLetters:i,includeFundraisingPledge:l,isExpressionOfInterest:o,isEventPlaceGuaranteed:s,eventTermsUrl:r,privacyPolicyUrl:d}=e,[c,u]=(0,m.useState)(""),[p,y]=(0,m.useState)(!1);return(0,a.jsxs)("div",{className:"block",children:[(0,a.jsx)(J.DZ,{level:3,className:"text-base lg:text-base font-semibold text-contrast-five mb-2",children:"Final questions"}),t&&(0,a.jsxs)("fieldset",{className:"mb-4",children:[(0,a.jsxs)("legend",{className:"block text-contrast-five mb-2",children:["We will send you a free St John Ambulance running vest to wear on the day. Please let us know your size",n&&(0,a.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-primary-dark ml-1 text-underline",children:"(size chart)"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(el,{id:"vest-s",name:"vestSize",value:"S",label:"S",required:!0,onChange:e=>u(e.target.value)}),(0,a.jsx)(el,{id:"vest-m",name:"vestSize",value:"M",label:"M",required:!0,onChange:e=>u(e.target.value)}),(0,a.jsx)(el,{id:"vest-l",name:"vestSize",value:"L",label:"L",required:!0,onChange:e=>u(e.target.value)}),(0,a.jsx)(el,{id:"vest-xl",name:"vestSize",value:"XL",label:"XL",required:!0,onChange:e=>u(e.target.value)}),(0,a.jsx)(el,{id:"vest-xxl",name:"vestSize",value:"XXL",label:"XXL",required:!0,onChange:e=>u(e.target.value)}),(0,a.jsx)(el,{id:"vest-no",name:"vestSize",value:"No thanks",label:"I do not need a vest",required:!0,onChange:e=>u(e.target.value)})]})]}),t&&i&&c&&"No thanks"!==c&&(0,a.jsx)(Y,{id:"ironOnLetters",label:"We will also provide you with iron on letters. Please let us know what 8 letters you would like:",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"ironOnLetters",name:"ironOnLetters",maxLength:8,required:!0,className:"w-full",pattern:er})}),(0,a.jsxs)("fieldset",{className:"mb-4",children:[(0,a.jsx)("legend",{className:"block font-semibold text-contrast-five mb-2",children:"How did you hear about this event? *"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(eo.S,{id:"howHeard-event",name:"howHeard",value:"Official Event Website",label:"Official Event Website"}),(0,a.jsx)(eo.S,{id:"howHeard-sja",name:"howHeard",value:"St John Ambulance Website",label:"St John Ambulance Website"}),(0,a.jsx)(eo.S,{id:"howHeard-email",name:"howHeard",value:"Email from St John Ambulance",label:"Email from St John Ambulance"}),(0,a.jsx)(eo.S,{id:"howHeard-past",name:"howHeard",value:"Past participant",label:"Past participant"}),(0,a.jsx)(eo.S,{id:"howHeard-poster",name:"howHeard",value:"Saw a poster or flyer",label:"Saw a poster or flyer"}),(0,a.jsx)(eo.S,{id:"howHeard-search",name:"howHeard",value:"Internet search/ Google",label:"Internet search/ Google"}),(0,a.jsx)(eo.S,{id:"howHeard-volunteer",name:"howHeard",value:"I am a volunteer with SJA",label:"I am a volunteer with SJA"}),(0,a.jsx)(eo.S,{id:"howHeard-company",name:"howHeard",value:"My company promoted it",label:"My company promoted it"}),(0,a.jsx)(eo.S,{id:"howHeard-exhibition",name:"howHeard",value:"Event Exhibition",label:"Event Exhibition"}),(0,a.jsx)(eo.S,{id:"howHeard-facebook",name:"howHeard",value:"Facebook",label:"Facebook"}),(0,a.jsx)(eo.S,{id:"howHeard-twitter",name:"howHeard",value:"Twitter",label:"Twitter"}),(0,a.jsx)(eo.S,{id:"howHeard-ad",name:"howHeard",value:"Advert/ story in local paper",label:"Advert/ story in local paper"}),(0,a.jsx)(eo.S,{id:"howHeard-notsure",name:"howHeard",value:"Not sure",label:"Not sure"}),(0,a.jsx)(eo.S,{id:"howHeard-other",name:"howHeard",value:"Other",label:"Other",onChange:e=>y(e.target.checked)})]}),p&&(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(Y,{id:"howHeardOtherDetail",label:"Please specify",required:!0,children:(0,a.jsx)(Z.p,{type:"text",id:"howHeardOtherDetail",name:"howHeardOtherDetail",required:!0,className:"w-full",pattern:er})})})]}),(0,a.jsx)(J.DZ,{level:4,className:"text-contrast-five font-semibold mb-2",children:"Terms and conditions"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 mb-6",children:[(0,a.jsx)(eo.S,{id:"terms-application",name:"termsApplication",value:"agreed",label:"I understand that by submitting this application it does not guarantee a place in this event",required:!0}),(0,a.jsx)(eo.S,{id:"terms-event",name:"termsEvent",value:"agreed",label:(0,a.jsxs)("span",{children:["I have read the"," ",(0,a.jsx)("a",{href:r||"#",target:"_blank",rel:"noopener noreferrer",className:"text-primary-dark underline hover:underline",children:"terms and conditions"})]}),required:!0}),s&&(0,a.jsx)(eo.S,{id:"termsGuaranteedPlace",name:"termsGuaranteedPlace",value:"agreed",label:"I understand the terms regarding the guaranteed place",required:!0}
1),l&&!o&&(0,a.jsx)(eo.S,{id:"terms-fundraise",name:"termsFundraise",value:"agreed",label:"I agree to the fundraising terms and minimum sponsorship",required:!0}),(0,a.jsx)(eo.S,{id:"terms-privacy",name:"termsPrivacy",value:"agreed",required:!0,label:(0,a.jsxs)("span",{children:["I understand how St John Ambulance will use my data.",d&&(0,a.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-primary-dark hover:underline ml-1",children:"(Read our privacy policy)"})]})})]})]})}var ec=n(72509);function eu(e){let{stayInTouchText:t,recaptchaRef:n,setCaptchaToken:i}=e;return(0,a.jsxs)("div",{className:"block",children:[(0,a.jsx)(J.DZ,{level:3,className:"text-base lg:text-base text-contrast-five font-semibold mb-2",children:"Stay in touch"}),t&&(0,a.jsx)("div",{className:"prose text-sm mb-4",children:(0,a.jsx)(W.r,{content:t})}),(0,a.jsxs)("fieldset",{className:"mt-6",children:[(0,a.jsx)("legend",{className:"block font-semibold text-contrast-five mb-2",children:"Communication options"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(eo.S,{id:"contact-email",name:"contactByEmail",value:"yes",label:"Yes please, I’d like to hear from you by email"}),(0,a.jsx)(eo.S,{id:"no-contact-post",name:"noContactByPost",value:"yes",label:"I would not like to hear from you by post"}),(0,a.jsx)(eo.S,{id:"contact-phone",name:"contactByPhone",value:"yes",label:"Yes please, I’d like to hear from you by phone"}),(0,a.jsx)(eo.S,{id:"contact-sms",name:"contactBySms",value:"yes",label:"Yes please, I’d like to hear from you by text"})]})]}),(0,a.jsx)("div",{className:"my-6",children:(0,a.jsx)(ec.A,{ref:n,sitekey:"6Lfyp18sAAAAAOVEbBlCFITQuQO2BEtXX8rys6YU",onChange:e=>i(e)})})]})}var ep=n(34064),em=n(31545);let ey=(0,P.createServerReference)("789b76c2312e2fb7582b1e1e8d039903aaca696395",P.callServer,void 0,P.findSourceMapURL,"createCheckoutSession");function eg(e){var t,n,i;let{data:l,locale:o,isOpen:s,onClose:r,eventName:d,eventDate:c,eventLocation:u}=e,p=(0,M.qM)(l,{locale:o}),{internalName:g,submissionEmailAddress:f,offerRunningVest:x,sizingChartUrl:b,offerIronOnLetters:v,collectRegistrationFee:h,completionContent:N,collectGenderInformation:T,includeOfficialBallot:S,isEventPlaceGuaranteed:k,includeFundraisingPledge:L,communicationPreferencesContent:w,introContent:j,termsAndConditions:I,privacyPolicy:C,stripeProductId:A}=p.fields,P=!h,D=null==I||null==(t=I.fields)?void 0:t.url,F=null==C||null==(n=C.fields)?void 0:n.url,E=null==w||null==(i=w.fields)?void 0:i.content,[V,B]=(0,m.useState)(1),[H,R]=(0,m.useState)(!1),[U,O]=(0,m.useState)(!1),[q,K]=(0,m.useState)(""),W=(0,m.useRef)(null),G=(0,m.useRef)(null),[Q,Z]=(0,m.useState)(null),[Y,$]=(0,m.useState)(null),[ee,et]=(0,m.useState)(null),[en,ei]=(0,m.useState)(null),[el,eo]=(0,m.useState)(!1);(0,m.useEffect)(()=>{if(W.current&&W.current.parentElement){W.current.parentElement.scrollTo({top:0,behavior:"smooth"});let e=setTimeout(()=>{var e;let t=null==(e=W.current)?void 0:e.querySelector("div:not([hidden])"),n=null==t?void 0:t.querySelector("input, select, textarea");n&&n.focus()},100);return()=>clearTimeout(e)}},[V]);let er=e=>{let t=!0,n="";return(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&("checkbox"===e.type&&e.required&&!e.checked?(t=!1,n="This field is required: "):e.checkValidity()||(t=!1,n=e.validity.patternMismatch?"Special characters are not allowed.":"email"===e.type&&e.validity.typeMismatch?"Please enter a valid email address.":"This field is required: ")),{isValid:t,message:n}},ec=e=>{if(!W.current)return!1;let t=W.current;for(let i of e){let e=t.elements.namedItem(i);if(!e)continue;let l=e;if(e instanceof RadioNodeList){let t=Array.from(e);l=t[0];let o=t.some(e=>e.required),s=t.some(e=>e.checked);if(o&&!s){var n,a;null!==l.offsetParent&&l.focus();let e=(null==(a=l.closest("fieldset"))||null==(n=a.querySelector("legend"))?void 0:n.textContent)||i;return K("Please select an option for: ".concat(e.replace(/\*/g,"").trim())),!1}}else{let{isValid:e,message:n}=er(l);if(!e){null!==l.offsetParent&&l.focus(),(l instanceof HTMLInputElement||l instanceof HTMLSelectElement||l instanceof HTMLTextAreaElement)&&l.reportValidity();let e=i,a=l.id;if(a){let n=t.querySelector('label[for="'.concat(a,'"]'));n&&n.textContent&&(e=n.textContent)}return K("".concat(n," ").concat(e.replace(/\*/g,"").trim())),!1}}}return K(""),!0},eg=e=>{if(1===e){let e=["title","firstName","lastName","dateOfBirth","phone","email","addressLine1","townCity","county","postcode","country","jobTitle","company"];return T&&e.push("gender"),e}if(2===e){let e=["motivation","runningExperience","sjaConnection"];return S&&e.push("ballotEntered"),L&&(e.push("agreeToFundraise"),P&&e.push("fundraisingPlan")),e}if(3===e){let e=["howHeard"];return x&&(e.push("vestSize"),v&&e.push("ironOnLetters")),e.push("howHeardOtherDetail","termsApplication","termsEvent","termsPrivacy"),k&&e.push("termsGuaranteedPlace"),L&&!P&&e.push("termsFundraise"),e}return[]},ef=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e&&!Q){K("Please verify you are not a robot."),B(4);return}R(!0),K("");try{let n=new FormData;n.append("eventName",d||g||"Event Sign Up"),n.append("eventDate",c||"Date TBC"),n.append("eventLocation",u||"Location TBC");let a=new FormData(W.current);
1Array.from(a.entries()).forEach(e=>{let[t,a]=e;n.append(t,a)}),Q&&n.append("g-recaptcha-response",Q),P&&n.append("submissionType","Expression of interest / Waiting list"),e&&n.append("stripeSessionId",e);let i=await _(f,n);if(i.success)O(!0);else{var t;null==(t=G.current)||t.reset(),Z(null),K(i.error||"An unknown error occurred."),B(4)}}catch(e){K("Failed to send submission. Please try again."),B(4)}finally{R(!1)}},ex=async e=>{if(e.preventDefault(),V<4){ec(eg(V))&&B(V+1);return}for(let e=1;e<=4;e++)if(!ec(eg(e)))return void B(e);if(!Q)return void K("Please verify you are not a robot.");if(h&&!en){if(!A){K("This event is missing payment configuration. Please contact support."),B(4);return}eo(!0),K("");try{let e=new FormData(W.current),n=e.get("email"),a={name:"".concat(e.get("firstName")," ").concat(e.get("lastName")),address:{line1:e.get("addressLine1"),city:e.get("townCity"),postal_code:e.get("postcode")}},i=await ey(p.sys.id,n,Q,a);if(i&&i.clientSecret)$(i.clientSecret),ei(i.sessionId),et((0,ep.loadStripe)("pk_live_51NGNweHpP5S5Yeu80LPaz5Ub2290mZr30Hn9N2pQv3qEL8Iri9njFSgGajDldNwX8sGG5pEJMc6N7YTKj2NleFSv000QlJSqLl")),B(5);else{if(K((null==i?void 0:i.error)==="RECAPTCHA_FAILED"?"Security token expired. Please re-check the 'I'm not a robot' box.":"Failed to initiate secure checkout."),(null==i?void 0:i.error)==="RECAPTCHA_FAILED"){var t;null==(t=G.current)||t.reset(),Z(null)}B(4)}}catch(e){K("Server connection failed. Please try again."),B(4)}finally{eo(!1)}return}await ef(en)};if(U){let e=N?"Thank You":g;return(0,a.jsx)(X,{isOpen:s,onClose:r,title:(0,a.jsx)(J.DZ,{level:2,className:"text-3xl lg:text-3xl font-bold text-contrast-five",children:e}),footer:(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(y.Q,{label:"Close",onClick:r,style:"primary"})}),children:N&&"fields"in N?(0,a.jsx)("div",{className:"event-sign-up-form-completion",children:(0,a.jsx)(z.n,{data:N,locale:o})}):(0,a.jsx)("div",{className:"event-sign-up-form p-6 bg-white text-center",children:(0,a.jsx)(J.DZ,{level:3,className:"text-2xl font-bold text-contrast-five",children:P?"Your Expression of Interest has been submitted.":"Thank you, your submission has been received."})})})}return(0,a.jsx)(X,{isOpen:s,onClose:r,title:(0,a.jsxs)("div",{children:[(0,a.jsxs)(J.DZ,{level:2,className:"text-3xl lg:text-3xl font-bold text-contrast-five",children:[g," ",P&&(0,a.jsx)("span",{className:"text-base font-normal text-contrast-five block mt-1",children:"(Expression of Interest)"})]}),(0,a.jsxs)("p",{className:"text-contrast-five mt-4",children:["Page ",V," of ",h?"5":"4"]})]}),footer:(0,a.jsxs)("div",{className:"flex justify-between items-center gap-4",children:[(0,a.jsx)(y.Q,{label:1===V?"Close":"Back",onClick:1===V?r:()=>B(V-1),style:"primary alternative",className:"shrink-0"}),V<5&&(0,a.jsx)(y.Q,{label:H||el?"Processing...":4===V&&h&&!en?"Proceed to Payment":V<4?"Next":"Submit",htmlType:"submit",form:"event-sign-up-form",disabled:H||el,style:"primary",className:"w-full justify-center"})]}),children:(0,a.jsxs)("form",{id:"event-sign-up-form",ref:W,"data-contentful-entry-id":p.sys.id,className:"event-sign-up-form",onSubmit:ex,noValidate:!0,onInvalidCapture:e=>{let t=e.target;t.validity.patternMismatch?t.setCustomValidity("Special characters are not allowed"):t.validity.typeMismatch?t.setCustomValidity("Please enter a valid email address"):t.validity.valueMissing&&t.setCustomValidity("This field is required")},onChangeCapture:e=>{e.target.setCustomValidity(""),q&&K("")},children:[(0,a.jsx)("p",{className:"mb-4 text-sm text-contrast-five",children:"* Indicates a required field"}),q&&(0,a.jsxs)("div",{className:"p-3 bg-red-100 border border-red-300 text-red-700 rounded-md mb-4",role:"alert",children:[(0,a.jsx)("p",{className:"font-bold",children:"Error"}),(0,a.jsx)("p",{children:q})]}),1===V&&j&&"fields"in j&&(0,a.jsx)("div",{className:"event-sign-up-form-intro mb-6",children:(0,a.jsx)(z.n,{data:j,locale:o})}),(0,a.jsx)("div",{style:{display:1===V?"block":"none"},children:(0,a.jsx)(ea,{collectGenderInformation:!!T})}),(0,a.jsx)("div",{style:{display:2===V?"block":"none"},children:(0,a.jsx)(es,{includeOfficialBallot:!!S,includeFundraisingPledge:!!L,isExpressionOfInterest:P})}),(0,a.jsx)("div",{style:{display:3===V?"block":"none"},children:(0,a.jsx)(ed,{offerRunningVest:!!x,sizingChartUrl:b,offerIronOnLetters:!!v,includeFundraisingPledge:!!L,isExpressionOfInterest:P,isEventPlaceGuaranteed:!!k,eventTermsUrl:D,privacyPolicyUrl:F})}),(0,a.jsx)("div",{style:{display:4===V?"block":"none"},children:(0,a.jsx)(eu,{stayInTouchText:E,recaptchaRef:G,setCaptchaToken:Z})}),(0,a.jsx)("div",{style:{display:5===V?"block":"none"},children:Y&&(0,a.jsx)("div",{className:"mt-4 min-h-100",children:(0,a.jsx)(em.OH,{stripe:ee,options:{clientSecret:Y,onComplete:()=>ef(en)},children:(0,a.jsx)(em.zm,{})})})})]})})}function ef(e){let{eventSignUpForm:t,eventStatus:n,className:i,registrationFee:l,eventName:o,eventDate:s,eventLocation:r}=e,[d,u]=(0,m.useState)(!1);return t&&"Open"===n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.Q,{label:"Sign up",style:"primary",icon:"chevron-right",iconPosition:"right",className:(0,
1c.cn)("min-w-32 justify-center",i),onClick:()=>u(!0)}),(0,a.jsx)(eg,{data:t,isOpen:d,onClose:()=>u(!1),registrationFee:l,eventName:o,eventDate:s,eventLocation:r})]}):null}function ex(e){var t;let{data:n,locale:i}=e,{eventDate:l,eventStatus:o,registrationFee:s,sponsorshipGoal:r,eventDetails:d,eventSignUpForm:c,registerInterestUrl:u,displayEventTime:p}=n.fields,m=function(e){if(e.eventDetails){var t,n;let a=e.eventDetails.fields,i=null==a||null==(t=a.startAddress)?void 0:t.trim(),l=null==a||null==(n=a.endAddress)?void 0:n.trim();if(i&&l&&i!==l)return"".concat(i," to ").concat(l);if(i)return i}return"Location TBC"}(n.fields),x=null==d||null==(t=d.fields)?void 0:t.eventFacilities,b="Full"===o||"Waiting List"===o,v="Waiting List"===o?"Waiting list":o,h=new Date(l).toLocaleString(i,{day:"numeric",month:"short",year:"numeric",hour:p?"2-digit":void 0,minute:p?"2-digit":void 0,timeZone:"UTC"});return(0,a.jsx)("div",{"data-contentful-entry-id":n.sys.id,className:"event-schedule-item bg-soft-green-tint rounded-2xl px-4 py-6 lg:p-4 mb-2 lg:mb-4",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-6 gap-4 lg:gap-10 items-center",children:[(0,a.jsxs)("div",{"data-contentful-field-id":"eventDate",className:"flex justify-between items-center lg:block",children:[(0,a.jsx)("span",{className:"lg:hidden text-contrast-five",children:"Date:"}),(0,a.jsx)("span",{className:"hidden lg:inline sr-only",children:"Date:"}),(0,a.jsxs)("p",{className:"font-bold flex items-center gap-1 text-primary-dark",children:[(0,a.jsx)(f.In,{name:"calendar",size:24}),(0,a.jsx)("span",{className:"text-contrast-five",children:h})]})]}),(0,a.jsxs)("div",{"data-contentful-field-id":"eventDetails",className:"flex justify-between items-center lg:block",children:[(0,a.jsx)("span",{className:"lg:hidden text-contrast-five",children:"Location:"}),(0,a.jsx)("span",{className:"hidden lg:inline sr-only",children:"Location:"}),(0,a.jsxs)("p",{className:"font-bold flex items-center gap-1 text-primary-dark",children:[(0,a.jsx)(f.In,{name:"pin",size:24}),(0,a.jsx)("span",{className:"text-contrast-five",children:m})]})]}),(0,a.jsxs)("div",{"data-contentful-field-id":"eventFacilities",className:"flex justify-between items-center lg:block",children:[(0,a.jsx)("span",{className:"lg:hidden text-contrast-five",children:"Event facilities:"}),(0,a.jsx)("span",{className:"hidden lg:inline sr-only",children:"Event facilities:"}),x?(0,a.jsx)("div",{className:"text-sm text-contrast-five [&_.rich-text-content]:text-contrast-five [&_.rich-text-content_p]:mb-0 [&_.rich-text-content_p]:text-contrast-five [&_.rich-text-content]:space-y-1",children:(0,a.jsx)(W.r,{content:x,locale:i})}):(0,a.jsx)("p",{className:"text-right lg:text-left text-contrast-five",children:"N/A"})]}),(0,a.jsxs)("div",{"data-contentful-field-id":"registrationFee",className:"flex justify-between items-center lg:block",children:[(0,a.jsx)("span",{className:"lg:hidden text-contrast-five",children:"Price:"}),(0,a.jsx)("span",{className:"hidden lg:inline sr-only",children:"Price:"}),(0,a.jsx)("p",{className:"font-bold text-right lg:text-left",children:s?"\xa3".concat(s):"Free"})]}),(0,a.jsxs)("div",{"data-contentful-field-id":"sponsorshipGoal",className:"flex justify-between items-center lg:block lg:-translate-x-24",children:[(0,a.jsx)("span",{className:"lg:hidden text-contrast-five",children:"Fundraising target:"}),(0,a.jsx)("span",{className:"hidden lg:inline sr-only",children:"Fundraising target:"}),(0,a.jsx)("p",{className:"font-bold text-right lg:text-left",children:r?"\xa3".concat(r):"N/A"})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-between lg:justify-end items-center gap-4 mt-2 lg:mt-0 w-full lg:w-auto lg:max-[1200px]:flex-col lg:max-[1200px]:items-end lg:max-[1200px]:gap-5",children:[u&&(0,a.jsx)(g.gH,{url:u,label:"Register interest",type:"text",style:"highlight",animateUnderline:!0,className:"underline font-bold text-contrast-five hover:text-contrast-five-light whitespace-nowrap rounded-sm px-2 py-1 -mx-2 -my-1 focus-visible:outline-solid! focus-visible:outline-2! focus-visible:outline-offset-0! focus-visible:outline-black!"}),b&&(0,a.jsx)(y.Q,{label:v,style:"secondary",disabled:!0,className:"min-w-32 justify-center bg-gray-300 text-contrast-five! hover:bg-gray-300 hover:text-contrast-five! cursor-default pointer-events-none",onClick:()=>{}}),c&&(0,a.jsx)(ef,{eventSignUpForm:c,eventStatus:o,registrationFee:s,eventName:n.fields.internalName,eventDate:h,eventLocation:m})]})]})})}var eb=n(45073);function ev(e){let{data:t,locale:n,showAddresses:i=!0}=e,l=(0,M.qM)(t,{locale:n}),{startAddress:o,endAddress:s,eventFacilities:r}={...t.fields,...l.fields};return(0,a.jsxs)("div",{"data-contentful-entry-id":l.sys.id,className:"physical-event-details space-y-4",children:[i&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-gray-600 mb-1",children:"Start Address"}),(0,a.jsx)("p",{"data-contentful-field-id":"startAddress",className:"whitespace-pre-wrap",children:o})]}),i&&s&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-gray-600 mb-1",children:"End Address"}),(0,a.jsx)("p",{"data-contentful-field-id":"endAddress",className:"whitespace-pre-wrap",children:s})]}),r&&(0,a.jsxs)("div",{className:"mt-4 border-t pt-4",children:[(0,a.jsx)("h4",{className:"text-sm font-semibold mb-2",children:"Event Facilities"}),(0,a.jsx)("div",{"data-contentful-field-id":"eventFacilities",children:(0,a.jsx)(W.r,{content:r,className:"text-dark",locale:n})})]})]})}function eh(e){var t;let{data:n,locale:d,useH1ForHero:c=!1,preload:u=!1,contentListerBackgroun
1dColour:p,contentListerClassName:m,listingInWhiteContainer:y=!1}=e,g=(0,q.H)(),f=null==(t=n.sys.contentType)?void 0:t.sys.id;return(0,a.jsx)(K,{contentType:f,entryId:n.sys.id,isPreview:g,children:(()=>{switch(f){case"video":case"brandfolderVideo":return(0,a.jsx)(O.VideoComponent,{data:n,locale:d});case"quote":return(0,a.jsx)(r.w,{data:n,locale:d});case"callToAction":return(0,a.jsx)(i.j,{data:n,locale:d});case"hero":return(0,a.jsx)(o.kZ,{data:n,locale:d,headingLevel:c?1:2,preload:u});case"section":return(0,a.jsx)(z.n,{data:n,locale:d});case"listing":return(0,a.jsx)(s.A,{data:n,locale:d,listingInWhiteContainer:y});case"contentLister":return(0,a.jsx)(l.i,{data:n,locale:d,backgroundColour:p,className:m});case"image":case"brandfolderImage":return(0,a.jsx)(eb.hw,{data:n,locale:d});case"script":return(0,a.jsx)(B.d,{data:n,locale:d});case"eventSchedule":return(0,a.jsx)(ex,{data:n,locale:d});case"physicalEventDetails":return(0,a.jsx)(ev,{data:n,locale:d});case"vacancyListing":return(0,a.jsx)(V,{data:n,locale:d});case"embeddedForm":return(0,a.jsx)(U,{data:n,locale:d});default:return console.warn("Unknown content type: ".concat(f)),(0,a.jsx)("div",{className:"border border-yellow-200 bg-yellow-50 p-4 rounded-lg",children:(0,a.jsxs)("p",{className:"text-yellow-800",children:["Unsupported content type: ",f]})})}})()})}var eN=n(7332),eT=n(11952);function eS(e){var t,n,i,l;let{data:o,locale:s}=e,r=(0,M.qM)(o,{locale:s}),{title:d,shortDescription:c,emergencyAdvice:p,bodySections:m,reviewedBy:y,reviewDate:x,clinicallyReviewed:b,author:v,showShareBlock:h}=r.fields,N=(null==m||null==(l=m[0])||null==(i=l.sys)||null==(n=i.contentType)||null==(t=n.sys)?void 0:t.id)==="hero",{fullName:T,websiteUrl:S,profileImage:k}=(null==y?void 0:y.fields)||{},L=r.fields.previewData;return(0,a.jsx)("article",{"data-contentful-entry-id":r.sys.id,className:"px-4 pt-2 pb-6 lg:py-10",children:(0,a.jsxs)("div",{className:"bg-white container mx-auto py-6 lg:py-10 rounded-lg",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 lg:gap-6 mb-4 md:mb-6 px-4 lg:px-10",children:[(0,a.jsx)("h1",{className:"font-heading text-2xl/[115%] font-bold md:text-5xl/[115%] md:font-bold",children:d}),b&&(0,a.jsxs)("div",{className:"flex items-start justify-start gap-2 border-t-2 border-b-2 border-contrast-three py-4",children:[k&&(0,a.jsx)(eb._c,{data:k,className:"rounded-full size-14 overflow-hidden",sizes:"56px"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 items-start justify-start",children:[S?(0,a.jsx)(g.gH,{url:S,label:T,openInNewTab:!0,style:"primary alternative",animateUnderline:!0,className:"text-contrast-five text-base/5.5 font-normal no-underline md:underline",children:T}):(0,a.jsx)("span",{className:"text-contrast-five text-base/5.5 font-normal no-underline",children:T}),x&&(0,a.jsxs)("span",{className:"text-base font-normal text-contrast-five text-left",children:["Clinically reviewed:"," ",new Date(x).toLocaleDateString("en-GB",{year:"numeric",month:"numeric",day:"numeric"})]})]})]}),c&&(0,a.jsx)("p",{className:"text-sm/4.5 md:text-base/5.5",children:c})]}),p&&(0,a.jsx)(u.bL,{type:"multiple",className:"bg-white container mx-auto px-4 lg:px-10","data-contentful-entry-id":r.sys.id,"data-contentful-field-id":"emergencyAdvice",children:(0,a.jsxs)(u.q7,{value:"item-1",className:"bg-primary rounded-xl overflow-hidden border-2 border-primary",children:[(0,a.jsx)(u.Y9,{asChild:!0,className:"flex",children:(0,a.jsx)("h2",{className:"flex m-0",children:(0,a.jsxs)(u.l9,{className:"group flex flex-1 items-center justify-between p-4 font-bold text-lg/[115%] tracking-[0.36px] text-left cursor-pointer",children:["Emergency advice",(0,a.jsxs)("div",{className:"relative h-6 w-6",children:[(0,a.jsx)(f.In,{name:"plus",className:"absolute h-full w-full transition-opacity duration-300 group-data-[state=open]:opacity-0 text-contrast-five","aria-hidden":!0}),(0,a.jsx)(f.In,{name:"minus",className:"absolute h-full w-full opacity-0 transition-opacity duration-300 group-data-[state=open]:opacity-100","aria-hidden":!0})]})]})})}),(0,a.jsx)(u.UC,{className:"bg-off-white overflow-hidden data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down p-4",children:(0,a.jsx)(W.r,{content:p})})]})}),(0,a.jsx)("div",{"data-contentful-field-id":"bodySections",className:"container mx-auto 
1space-y-10 px-4 lg:px-10 [&_.section-component.bg-white]:lg:px-0! [&_.section-component.bg-soft-green-tint]:bg-transparent [&>div>div[data-contentful-entry-id]]:space-y-0! [&>div>div[data-contentful-entry-id]>h2[data-contentful-field-id='heading']]:px-0! [&>div>div[data-contentful-entry-id]>h2[data-contentful-field-id='heading']]:pt-6! [&>div>div[data-contentful-entry-id]>h2[data-contentful-field-id='heading']]:lg:pt-6! [&>div>div[data-contentful-entry-id]>h2[data-contentful-field-id='heading']]:pb-0! [&>div>div[data-contentful-entry-id]>ul>li]:space-y-0! [&>div>div[data-contentful-entry-id]>ol]:space-y-0!",children:null==m?void 0:m.map((e,t)=>(0,a.jsx)("div",{className:"",children:(0,a.jsx)(eh,{data:e,locale:s,preload:0===t&&N,contentListerBackgroundColour:"white",listingInWhiteContainer:!0})},e.sys.id))}),v&&(0,a.jsx)(eN._,{data:v}),h&&(0,a.jsx)("div",{className:"mb-4 md:mb-6",children:(0,a.jsx)(eT.f,{previewData:L})})]})})}function ek(e){var t,n,i,l;let{data:o,locale:s}=e,r=(0,M.qM)(o,{locale:s}),{title:c,shortDescription:u,bodySections:p,heroImage:m}=r.fields,y=(null==p||null==(l=p[0])||null==(i=l.sys)||null==(n=i.contentType)||null==(t=n.sys)?void 0:t.id)==="hero";return(0,a.jsx)("article",{"data-contentful-entry-id":r.sys.id,className:"px-4",children:(0,a.jsxs)("div",{className:"lg:bg-white container mx-auto rounded-lg flex flex-col mb-6 pb-10",children:[m&&(0,a.jsx)(d.Z,{image:m,heading:c,headingLevel:1,subtitle:"Campaigns",text:u,colourway:"primary",verticalPosition:"bottom",horizontalPosition:"left",preload:!0,className:"mb-30!"}),(0,a.jsx)("div",{"data-contentful-field-id":"bodySections",className:"space-y-10 lg:px-10 lg:[&_.section-component.bg-white]:px-0!",children:null==p?void 0:p.map((e,t)=>(0,a.jsx)("div",{className:"",children:(0,a.jsx)(eh,{data:e,locale:s,preload:0===t&&y,contentListerBackgroundColour:"white",listingInWhiteContainer:!0})},e.sys.id))})]})})}let eL=e=>{let{event:t,schedules:n,className:i}=e,{eventName:l,summary:o,heroImage:s}=t,r=(null==n?void 0:n.length)||0,c=r>0,u=c&&n?n[0].fields:null,p=(null==u?void 0:u.eventDate)?new Date(u.eventDate).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:u.displayEventTime?"2-digit":void 0,minute:u.displayEventTime?"2-digit":void 0,timeZone:"UTC"}):"Date TBC",m=u?function(e){if(e.eventDetails){var t,n;let a=e.eventDetails.fields,i=null==a||null==(t=a.startAddress)?void 0:t.trim(),l=null==a||null==(n=a.endAddress)?void 0:n.trim();if(i&&l&&i!==l)return"".concat(i," to ").concat(l);if(i)return i}return"Location TBC"}(u):"Location TBC",y=(null==u?void 0:u.registrationFee)?"\xa3".concat(u.registrationFee):"Check details",x=(null==u?void 0:u.sponsorshipGoal)?"\xa3".concat(u.sponsorshipGoal):"N/A",b=null==u?void 0:u.registerInterestUrl,v=null==u?void 0:u.eventSignUpForm,h=null==u?void 0:u.eventStatus,N=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("hr",{className:"border-primary-light mb-2"}),c&&(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-y-2 gap-x-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-white mb-1",children:"Date:"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 font-bold",children:[(0,a.jsx)(f.In,{name:"calendar",className:"text-primary! w-5 h-5 shrink-0"}),(0,a.jsx)("span",{children:p})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-white mb-1",children:"Location:"}),(0,a.jsxs)("div",{className:"flex gap-2 font-bold",children:[(0,a.jsx)(f.In,{name:"pin",className:"text-primary! w-5 h-5 shrink-0"}),(0,a.jsx)("span",{children:m})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-white mb-1",children:"Price:"}),(0,a.jsx)("p",{className:"font-bold",children:y})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-white mb-1",children:"Fundraising target"}),(0,a.jsx)("p",{className:"font-bold",children:x})]})]}),(0,a.jsx)("hr",{className:"border-primary-light mt-2 mb-8"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-4 mt-auto",children:[r>1&&(0,a.jsxs)(g.gH,{url:"#schedules",type:"button",style:"primary",onClick:e=>{null==e||e.preventDefault();let t=document.getElementById("schedules"),n=document.querySelector("header"),a=n?n.offsetHeight:0;if(t){let e=t.getBoundingClientRect().top+window.scrollY-(a+20),n=window.scrollY,i=e-n,l=null,o=(e,t,n,a)=>(e/=a/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t,s=e=>{null===l&&(l=e);
1let t=e-l,a=o(t,n,i,500);window.scrollTo(0,a),t<500&&requestAnimationFrame(s)};requestAnimationFrame(s)}},iconPosition:"right",children:[(0,a.jsx)("span",{children:"Select date"}),(0,a.jsx)(f.In,{name:"chevron-right",className:"w-4 h-4"})]}),1===r&&(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(g.gH,{url:b,label:"Register interest",type:"text",animateUnderline:!0,className:"text-white underline font-bold hover:text-secondary self-center"}),v&&(0,a.jsx)(ef,{eventSignUpForm:v,eventStatus:h||"",registrationFee:null==u?void 0:u.registrationFee,eventName:l,eventDate:p,eventLocation:m})]}),0===r&&b&&(0,a.jsx)(g.gH,{label:"Register interest",url:b,type:"button",style:"primary",className:"bg-secondary text-primary border-none font-bold rounded-sm"})]})]});return s?(0,a.jsx)(d.Z,{image:s,heading:l,headingLevel:1,subtitle:"Events",text:o,colourway:"primary",verticalPosition:"bottom",horizontalPosition:"left",reactComponent:N,fullWidth:!1,preload:!0,className:i}):null};function ew(e){var t,n,i,l;let{data:o,locale:s}=e,r=(0,M.qM)(o,{locale:s}),{eventSchedules:d,bodySections:c}=r.fields,u=(null==c||null==(l=c[0])||null==(i=l.sys)||null==(n=i.contentType)||null==(t=n.sys)?void 0:t.id)==="hero";return(0,a.jsx)("article",{"data-contentful-entry-id":r.sys.id,className:"px-4",children:(0,a.jsxs)("div",{className:"lg:bg-white container mx-auto rounded-lg",children:[(0,a.jsx)(eL,{event:r.fields,schedules:d,className:"mb-30!"}),d&&Array.isArray(d)&&d.length>0&&(0,a.jsxs)("div",{id:"schedules","data-contentful-field-id":"eventSchedules",className:"lg:px-10 pb-10",children:[(0,a.jsx)(J.DZ,{level:2,className:"text-2xl/[115%] lg:text-3xl/[115%] font-bold mb-10",children:"Sign up now"}),(0,a.jsxs)("div",{className:"hidden lg:grid lg:grid-cols-6 gap-4 lg:gap-10 text-contrast-five lg:pb-4 leading-5.5",children:[(0,a.jsx)("div",{children:"Date:"}),(0,a.jsx)("div",{children:"Location:"}),(0,a.jsx)("div",{children:"Event facilities:"}),(0,a.jsx)("div",{children:"Price:"}),(0,a.jsx)("div",{className:"lg:-translate-x-24",children:"Fundraising target:"}),(0,a.jsx)("div",{})]}),d.map(e=>(0,a.jsx)(ex,{data:e,locale:s},e.sys.id))]}),Array.isArray(c)&&c.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{children:'\n              @media (min-width: 1024px) {\n                [data-contentful-entry-id="'.concat(r.sys.id,'"] [data-contentful-field-id="bodySections"] [data-contentful-field-id="items"] > [data-radix-collection-item] button {\n                  padding-left: 0;\n                  padding-right: 0;\n                }\n\n                [data-contentful-entry-id="').concat(r.sys.id,'"] [data-contentful-field-id="bodySections"] [data-contentful-field-id="items"] > div:focus-within button {\n                  padding-left: 1rem;\n                  padding-right: 1rem;\n                }\n              }\n            ')}),(0,a.jsx)("div",{"data-contentful-field-id":"bodySections",className:"space-y-10 lg:px-10 pb-6 mb-10 [&>div>.section-component]:py-6! [&_[data-contentful-field-id='items']_.section-component]:lg:py-0! [&_.section-component.bg-white]:lg:px-0! [&_[data-contentful-field-id='items']_.section-component.bg-soft-green-tint]:lg:px-0! [&_[data-contentful-field-id='items']_.section-component.bg-soft-green-tint]:bg-transparent",children:c.map((e,t)=>(0,a.jsx)("div",{className:"",children:(0,a.jsx)(eh,{data:e,locale:s,preload:0===t&&u,contentListerBackgroundColour:"white",listingInWhiteContainer:!0})},e.sys.id))})]})]})})}function ej(e){let{title:t,titleLevel:n,subtitle:i,description:l,colourway:o="secondary"}=e,s=(0,p.F)("container mx-auto px-4 py-6 md:px-10 md:py-6 flex flex-col gap-2 rounded-lg",{variants:{colourway:{primary:"bg-primary",secondary:"bg-white"}},defaultVariants:{colourway:"secondary"}}),r=(0,p.F)("text-3xl md:text-4xl font-bold",{variants:{colourway:{primary:"text-white",secondary:"text-contrast-five"}},defaultVariants:{colourway:"secondary"}}),d=(0,p.F)("text-base/snug font-bold",{variants:{colourway:{primary:"text-yellow-bright",secondary:"text-contrast-five"}},defaultVariants:{colourway:"secondary"}}),c=(0,p.F)("text-sm/tight md:text-base/snug font-normal",{variants:{colourway:{primary:"text-white",secondary:"text-contrast-five"}},defaultVariants:{colourway:"secondary"}});return(0,a.jsxs)("header",{className:s({colourway:o}),children:[i&&(0,a.jsx)("p",{className:d({colourway:o}),children:i}),(0,a.jsx)(J.DZ,{level:n,className:r({colourway:o}),children:t}),l&&(0,a.jsx)("p",{className:c({colourway:o}),children:l})]})}function eI(e){var t,n,i,l;let{data:o,locale:s}=e,r=(0,M.qM)(o,{locale:s}),{title:d,shortDescription:c,bodySections:u,hideHeader:p}=r.fields,m=(null==u||null==(l=u[0])||null==(i=l.sys)||null==(n=i.contentType)||null==(t=n.sys)?void 0:t.id)==="hero";return(0,a.jsxs)("article",{"data-contentful-entry-id":r.sys.id,className:"px-4 flex flex-col gap-10 mb-6",children:[!p&&(0,a.jsx)(ej,{title:d,titleLevel:1,description:c}),(0,a.jsx)("div",{"data-contentful-field-id":"bodySections",className:"container mx-auto 
1space-y-10",children:null==u?void 0:u.map((e,t)=>(0,a.jsx)("div",{children:(0,a.jsx)(eh,{data:e,locale:s,useH1ForHero:!0===p&&0===t,preload:0===t&&m},e.sys.id)},e.sys.id))})]})}var eC=n(44044);function eA(e){var t,n,i,l;let{data:o,locale:s}=e,r=(0,M.qM)(o,{locale:s}),{title:d,shortDescription:c,datePublished:u,contact:p,bodySections:m,hideContact:y}=r.fields,g=(null==m||null==(l=m[0])||null==(i=l.sys)||null==(n=i.contentType)||null==(t=n.sys)?void 0:t.id)==="hero";return(0,a.jsxs)("article",{"data-contentful-entry-id":r.sys.id,className:"px-4 flex flex-col gap-10 mb-6",children:[(0,a.jsxs)("header",{className:"container mx-auto bg-white px-4 py-6 md:px-10 md:py-6 flex flex-col gap-2 rounded-sm",children:[(0,a.jsx)("h1",{"data-contentful-field-id":"title",className:"text-contrast-five text-3xl md:text-4xl font-bold",children:d}),c&&(0,a.jsx)("p",{"data-contentful-field-id":"shortDescription",className:"text-contrast-five text-sm/tight md:text-base/snug font-normal",children:c})]}),(0,a.jsx)("div",{"data-contentful-field-id":"bodySections",className:"container mx-auto space-y-10",children:null==m?void 0:m.map((e,t)=>(0,a.jsx)("div",{className:"",children:(0,a.jsx)(eh,{data:e,locale:s,preload:0===t&&g})},e.sys.id))}),(u||p&&!y)&&(0,a.jsx)(eC.U,{data:y?void 0:p,datePublished:u})]})}function eP(e){var t,n,i,l;let{data:o,locale:s}=e,r=(0,M.qM)(o,{locale:s}),{title:c,person:u,bodySections:p,heroImage:m,summary:y,subTitle:g,showShareBlock:f}=r.fields,{fullName:x}=(null==u?void 0:u.fields)||{},b=(null==p||null==(l=p[0])||null==(i=l.sys)||null==(n=i.contentType)||null==(t=n.sys)?void 0:t.id)==="hero",v=r.fields.previewData,h=(()=>{var e;let t=null==x?void 0:x.trim();return t?"s"===(null==(e=t.at(-1))?void 0:e.toLowerCase())?"".concat(t,"'"):"".concat(t,"'s"):""})();return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("article",{"data-contentful-entry-id":r.sys.id,className:"px-4 mb-6",children:(0,a.jsxs)("div",{className:"container mx-auto flex flex-col lg:bg-white lg:rounded-lg",children:[m?(0,a.jsx)(d.Z,{image:m,heading:c,headingLevel:1,subtitle:"".concat(h," story"),subtitleClassName:"text-secondary",text:g,colourway:"primary",verticalPosition:"bottom",horizontalPosition:"left",preload:!0}):(0,a.jsx)(ej,{title:c,titleLevel:1,subtitle:"".concat(x,"'s story"),description:g,colourway:"primary"}),y&&(0,a.jsx)("div",{"data-contentful-field-id":"summary",className:"py-4 pb-6 px-4 md:px-10 bg-white text-sm/tight text-contrast-five md:text-base/snug rounded-lg",children:y}),(0,a.jsx)("style",{children:'\n            @media (min-width: 1024px) {\n              [data-contentful-entry-id="'.concat(r.sys.id,'"] [data-contentful-field-id="bodySections"] .section-component {\n                padding-left: 0 !important;\n                padding-right: 0 !important;\n                padding-top: 0 !important;\n                padding-bottom: 0 !important;\n              }\n\n              [data-contentful-entry-id="').concat(r.sys.id,'"] [data-contentful-field-id="bodySections"] [data-contentful-field-id="items"] {\n                padding-left: 0 !important;\n                padding-right: 0 !important;\n              }\n\n              [data-contentful-entry-id="').concat(r.sys.id,'"] [data-contentful-field-id="bodySections"] button {\n                padding-left: 0 !important;\n                padding-right: 0 !important;\n              }\n\n              [data-contentful-entry-id="').concat(r.sys.id,'"] [data-contentful-field-id="bodySections"] [data-radix-accordion-content] {\n                padding-left: 0 !important;\n                padding-right: 0 !important;\n              }\n            }\n          ')}),(0,a.jsx)("div",{"data-contentful-field-id":"bodySections",className:"flex flex-col gap-10 lg:px-10 py-6 lg:[&_.section-component]:py-0! lg:[&_.section-component.bg-soft-green-tint]:bg-transparent",children:null==p?void 0:p.map((e,t)=>(0,a.jsx)("div",{children:(0,a.jsx)(eh,{data:e,locale:s,preload:0===t&&b,contentListerBackgroundColour:"white"})},e.sys.id))}),f&&(0,a.jsx)(eT.f,{previewData:v})]})})})}function eD(e){var t;let{data:n,locale:i}=e,l=null==(t=n.sys.contentType)?void 0:t.sys.id;switch(l){case"advice":return(0,a.jsx)(eS,{data:n,locale:i});case"event":return(0,a.jsx)(ew,{data:n,locale:i});case"campaign":return(0,a.jsx)(ek,{data:n,locale:i});case"realLifeStory":return(0,a.jsx)(eP,{data:n,locale:i});case"pressRelease":return(0,a.jsx)(eA,{data:n,locale:i});case"genericPage":return(0,a.jsx)(eI,{data:n,locale:i});default:return console.warn("Unknown content type: ".concat(l)),(0,a.jsxs)("div",{children:["Unsupported content type: ",l]})}}var eF=n(73283),eE=n(78126),eM=n.n(eE);function eV(e){let{data:t,defaultTitle:n,defaultDescription:i}=e,{pageTitle:l,metaDescription:o,preventIndexing:s,preventFollow:r,socialTitle:d,socialDescription:c}=t.fields,u=l||n,p=o||i,m=d||u,y=c||p,g=function(e){var t,n,a,i,l,o,s,r;let{brandfolderSocialImage:d,socialImage:c,pageTitle:u}=e;if(d){let e=(0,eF.L)({brandfolderImage:d.fields.brandfolderImage,altText:null==(r=d.fields.brandfolderImage)||null==(s=r.fields)?void 0:s.altText},{fieldName:"brandfolderSocialImage"});if(e.ok){let{image:t}=e;return{url:t.image.buildUrl(),width:t.width,height:t.height,alt:t.alt||u}}}let p=null==c||null==(n=c.fields)||null==(t=n.file)?void 0:t.url;return p?{url:"https:".concat(p),width:null==(i=c.fields.file.details)||null==(a=i.image)?void 0:a.width,height:null==(o=c.fields.file.details)||null==(l=o.image)?void 0:l.height,alt:c.fields.title||u}:null}(t.fields),f="";return s&&(f+="noindex,"),r&&(f+="nofollow,"),f=f.slice(0,-1),(0,a.jsxs)(eM(),{children:[u&&(0,a.jsx)("title",{children:u}),p&&(0,a.jsx)("meta",{name:"description",content:p}),f&&(0,a.jsx)("meta",{name:"robots",content:f}),m&&(0,a.jsx)("meta",{property:"og:title",content:m}),y&&(0,a.jsx)("meta",{property:"og:description",content:y}),g&&(0,a.jsx)("meta",{property:"og:image",content:g.url}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),m&&(0,a.jsx)("meta",{name:"twitter:title",content:m}),y&&(0,a.jsx)("meta",{name:"twitter:description",content:y}),g&&(0,a.jsx)("meta",{name:"twitter:image",content:g.url})]})}
1function eB(e){let{content:t,locale:n}=e,i=(0,M.qM)(t,{locale:n}),{seoMetadata:l,content:o}=i.fields;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eV,{data:l}),(0,a.jsx)("div",{"data-contentful-entry-id":i.sys.id,className:"mx-auto",children:(0,a.jsx)("div",{className:"container grid gap-8 grid-cols-1",children:(0,a.jsx)("div",{className:"col-span-1",children:(0,a.jsx)("div",{"data-contentful-field-id":"content",children:(0,a.jsx)(eD,{data:o,locale:n})})})})})]})}},72671:(e,t,n)=>{n.d(t,{Q:()=>d});var a=n(95155),i=n(75225),l=n(59434),o=n(66766);n(12115);var s=n(36534),r=n(78971);function d(e){var t,n,d,c,u,p,m,y;let{data:g,className:f,children:x,onClick:b,label:v,titleAttribute:h,icon:N,customIcon:T,brandfolderCustomIcon:S,type:k,style:L,iconPosition:w,hideLabel:j,size:I,htmlType:C="button",disabled:A,form:P}=e,{internalName:D,label:F,titleAttribute:E,type:M,style:V,iconPosition:B,hideLabel:z,size:H,icon:R,customIcon:U,brandfolderCustomIcon:O}=null!=(t=null==g?void 0:g.fields)?t:{},q=null!=(n=null!=v?v:F)?n:"",K=null!=(d=null!=k?k:M)?d:"button",W=null!=(c=null!=L?L:V)?c:"primary",_=null!=(u=null!=w?w:B)?u:"left",G=null!=(p=null!=j?j:z)&&p,X=null!=(m=null!=I?I:H)?m:"medium",J=null!=(y=null!=N?N:R)?y:"",Q=null!=T?T:U,Z=(0,i.O9)(null!=S?S:O),Y=(null==Z?void 0:Z.url)||(null==Z?void 0:Z.thumbnail_url),$=!!Y,ee=$||!!Q,et=(0,a.jsx)(a.Fragment,{});if($&&Y){let e=q||"";et=!0===G?(0,a.jsx)(o.default,{src:Y,alt:e,width:24,height:24}):(0,a.jsx)(o.default,{src:Y,alt:e,width:24,height:24,className:"size-6"})}else if(Q){let{url:e,details:t}=Q.fields.file,n=Q.fields.description||q||"",{height:i=24,width:l=24}=(null==t?void 0:t.image)||{};et=!0===G&&e?(0,a.jsx)(o.default,{src:"https:".concat(e),alt:n,width:l,height:i}):(0,a.jsx)(o.default,{src:"https:".concat(e),alt:n,width:l,height:i,className:"size-6"})}let en="text"===K?(0,r.XG)({style:W,iconPosition:_,size:X,hideLabel:G}):(0,r.ru)({style:W,iconPosition:_,size:X,hideLabel:G});return(0,a.jsxs)("button",{"data-contentful-entry-id":(null==g?void 0:g.sys.id)||"Unknown",title:null!=h?h:E,className:(0,l.cn)(en,G&&ee&&"p-0 !border-transparent !bg-transparent overflow-hidden [&_img]:h-full [&_img]:w-full",f),type:C,disabled:A,form:P,onClick:b,children:[!ee&&J&&(0,a.jsx)(s.In,{name:J}),ee&&et,x||(0,a.jsx)("span",{className:!0===G?"sr-only":"",children:q})]})}},73551:(e,t,n)=>{n.d(t,{Y:()=>i});var a=n(34477);let i=(0,a.createServerReference)("60ac27090e2ccf76b855bc912566d70420c5f47b91",a.callServer,void 0,a.findSourceMapURL,"fetchReachResults")},93915:(e,t,n)=>{n.d(t,{p:()=>o});var a=n(95155),i=n(59434),l=n(12115);let o=l.forwardRef((e,t)=>{let{className:n,variant:o="default",error:s,onPointerDown:r,onFocus:d,onBlur:c,...u}=e,p=(0,l.useRef)(!1),[m,y]=(0,l.useState)(!1);return(0,a.jsx)("input",{...u,ref:t,onPointerDown:e=>{p.current=!0,null==r||r(e)},onFocus:e=>{let t=document.documentElement.classList.contains("keyboard-navigation");y(!p.current&&t),p.current=!1,null==d||d(e)},onBlur:e=>{y(!1),null==c||c(e)},className:(0,i.cn)("w-full bg-white border border-contrast-four rounded-full text-base font-normal text-contrast-five placeholder-gray-400 hover:ring-2 hover:ring-contrast-five focus:outline-none",{default:"px-3 py-[11px]",small:"px-2 py-[9px]"}[o],m&&"ring-2 ring-primary border-primary bg-yellow-light",s?s?"border-red-500 focus:ring-red-500":"border-gray-700":"",n)})});o.displayName="Input"}}]);

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.