1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{8394:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,87970,23)),Promise.resolve().then(r.t.bind(r,53704,23)),Promise.resolve().then(r.t.bind(r,63146,23)),Promise.resolve().then(r.t.bind(r,15685,23)),Promise.resolve().then(r.bind(r,91449)),Promise.resolve().then(r.bind(r,66051)),Promise.resolve().then(r.bind(r,69306)),Promise.resolve().then(r.bind(r,40212)),Promise.resolve().then(r.bind(r,61141)),Promise.resolve().then(r.bind(r,99108)),Promise.resolve().then(r.bind(r,38203)),Promise.resolve().then(r.t.bind(r,32934,23))},91449:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(95155),s=r(12115);function l(){let[e]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{if(!e)return;let t=-100,r=-100,n=document.querySelector(".cursor");if(!n)return;let s=()=>{n.style.transform="translate(".concat(t,"px, ").concat(r,"px)"),requestAnimationFrame(s)},l=e=>{t=e.clientX,r=e.clientY},o=()=>{n.classList.add("hover")},i=()=>{n.classList.remove("hover")};return document.addEventListener("mousemove",l),document.querySelectorAll(".link").forEach(e=>{e.addEventListener("mouseover",o),e.addEventListener("mouseout",i)}),requestAnimationFrame(()=>{requestAnimationFrame(s)}),()=>{document.removeEventListener("mousemove",l)}},[e]),e)?(0,n.jsx)("div",{className:"cursor"}):null}},66051:(e,t,r)=>{"use strict";r.d(t,{default:()=>p});var n=r(95155),s=r(12115);let l=e=>{let{className:t}=e;return(0,n.jsx)("svg",{className:t,width:"1440",height:"913",viewBox:"0 0 1440 913",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M0 90.8541C0 90.8541 315.328 0 714.745 0C1114.16 0 1440 90.8541 1440 90.8541V1058H0L0 90.8541Z",fill:"#ECAF30"})})};var o=r(5565),i=r(48173),a=r.n(i),c=r(24823);let d={src:"/_next/static/media/icon-x.cd56d748.svg",height:31,width:31,blurWidth:0,blurHeight:0},u={src:"/_next/static/media/icon-instgram.8bb38dc2.svg",height:31,width:31,blurWidth:0,blurHeight:0},h={src:"/_next/static/media/icon-linkedin.e9deed72.svg",height:31,width:31,blurWidth:0,blurHeight:0},m={src:"/_next/static/media/icon-youtube.8370370f.svg",height:31,width:31,blurWidth:0,blurHeight:0},f={src:"/_next/static/media/icon-tiktok.1567bb23.svg",height:31,width:31,blurWidth:0,blurHeight:0};function _(){return(0,s.useEffect)(()=>{let e=document.getElementById("loading");e&&setTimeout(()=>e.classList.add("hidden"),500)},[]),null}let p=e=>{var t,r;let{data:i}=e,{footerFields:p,primaryMenuItems:g,legalMenuItems:v}=i,x=[{name:"X",href:p.twitterLink,icon:d},{name:"Instagram",href:p.instagramLink,icon:u},{name:"TikTok",href:p.tiktokLink,icon:f},{name:"LinkedIn",href:p.linkedinLink,icon:h},{name:"YouTube",href:p.youtubeLink,icon:m}],[b,j]=(0,s.useState)(""),[y,k]=(0,s.useState)(!1),[w,N]=(0,s.useState)({}),[L,E]=(0,s.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("footer",{className:"footer",children:[(0,n.jsx)(l,{className:"footer__shape"}),(0,n.jsxs)("div",{className:"footer__wrapper",children:[(0,n.jsxs)("div",{className:"container",children:[(0,n.jsxs)("div",{className:"row",children:[(null==p?void 0:p.swFooterLogo)&&(0,n.jsx)("div",{className:"col-lg-3",children:(0,n.jsx)(o.default,{src:p.swFooterLogo.node.sourceUrl,alt:p.swFooterLogo.node.altText,width:176,height:113})}),(0,n.jsx)("div",{className:"col-lg-4",children:(0,n.jsxs)("div",{className:"footer__newsletter",children:[(null==p?void 0:p.swFooterFormHeading)&&(0,n.jsx)("h2",{children:(0,n.jsx)(c.A,{html:p.swFooterFormHeading})}),(0,n.jsxs)("form",{className:"footer__newsletter__form",onSubmit:e=>{e.preventDefault();let t={};b?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b)||(t.email="Enter a valid email address."):t.email="Email is required.",y||(t.agreed="You must agree to the terms."),N(t),0===Object.keys(t).length?(E(!0),j(""),k(!1)):E(!1)},children:[(0,n.jsxs)("div",{className:"wrap",children:[(0,n.jsx)("input",{type:"email",name:"email",placeholder:"Email address",value:b,onChange:e=>j(e.target.value),className:"footer__newsletter__form__email"}),(0,n.jsx)("button",{type:"submit",className:"footer__newsletter__form__submit","aria-label":"Submit Form"})]}),w.email&&(0,n.jsx)("p",{className:"form-error",children:w.email}),(0,n.jsxs)("label",{className:"custom-checkbox",children:[(0,n.jsx)("input",{type:"checkbox",checked:y,onChange:e=>k(e.target.checked)}),(0,n.jsx)("span",{className:"checkmark"}),"I agree to the"," ",(0,n.jsx)("a",{href:"/privacy-statements",target:"_blank",children:"Privacy Policy"})]}),w.agreed&&(0,n.jsx)("p",{className:"form-error",children:w.agreed}),L&&(0,n.jsx)("p",{className:"form-success",children:"Thanks for subscribing!"})]})]})}),(0,n.jsxs)("div",{className:"col-lg-2 offset-lg-1 d-none d-lg-block",children:[(0,n.jsx)("h3",{children:p.footerMenuHeading}),(0,n.jsx)("ul",{className:"footer__menu",children:null==g?void 0:g.map((e,t)=>(0,n.jsx)("li",{className:"footer__menu__item",children:(0,n.jsx)(a(),{href:e.path||e.url,className:"footer__menu__item__link link",children:(0,n.jsx)("span",{children:e.label})})},t))})]}),(0,n.jsx)("div",{className:"col-lg-2",children:(0,n.jsxs)("div",{className:"footer__c
1ontact",children:[(0,n.jsxs)("div",{children:[p.footerContactHeading&&(0,n.jsx)("h3",{children:p.footerContactHeading}),p.footerEmail&&(0,n.jsx)("a",{href:"mailto:".concat(p.footerEmail),className:"footer__contact__email link",children:p.footerEmail}),(null===(t=p.footerPhoneNumber)||void 0===t?void 0:t.url)&&(0,n.jsx)("p",{children:(0,n.jsx)("a",{href:p.footerPhoneNumber.url,className:"link",target:p.footerPhoneNumber.target||"_self",rel:"_blank"===p.footerPhoneNumber.target?"noopener noreferrer":void 0,children:p.footerPhoneNumber.title})})]}),(0,n.jsx)("div",{className:"footer__contact__links d-none d-lg-block",children:x.map((e,t)=>e.href?(0,n.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"link",children:(0,n.jsx)(o.default,{src:e.icon,alt:e.name})},t):null)})]})})]}),(null==p?void 0:p.clientLogo)&&(null==p?void 0:null===(r=p.clientLogoLink)||void 0===r?void 0:r.url)&&(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("div",{className:"col-lg-12",children:(0,n.jsx)(a(),{href:p.clientLogoLink.url,className:"link",target:p.clientLogoLink.target||"_self",rel:"_blank"===p.clientLogoLink.target?"noopener noreferrer":void 0,children:(0,n.jsx)(o.default,{src:p.clientLogo.node.sourceUrl,alt:p.clientLogo.node.altText,width:176,height:35})})})}),(0,n.jsxs)("div",{className:"row footer__bottom",children:[(null==p?void 0:p.copyrightText)&&(0,n.jsx)("div",{className:"col-lg-4",children:(0,n.jsx)("p",{children:p.copyrightText})}),(null==p?void 0:p.designByText)&&(0,n.jsx)("div",{className:"col-lg-4",children:(0,n.jsx)("p",{children:(0,n.jsx)(c.A,{html:p.designByText})})}),(0,n.jsx)("div",{className:"col-lg-4",children:(0,n.jsx)("ul",{children:null==v?void 0:v.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(a(),{href:e.path||e.url,className:"link",children:(0,n.jsx)("span",{children:e.label})})},t))})})]}),(0,n.jsx)("div",{className:"row d-lg-none",children:(0,n.jsx)("div",{className:"footer__contact__links",children:x.map((e,t)=>(0,n.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"link",children:(0,n.jsx)(o.default,{src:e.icon,alt:e.name})},t))})})]}),(0,n.jsx)("span",{className:"footer__shapebottom"})]})]}),(0,n.jsx)(_,{})]})}},69306:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var n=r(95155),s=r(12115),l=r(76046),o=r(48173),i=r.n(o),a=r(5565),c=r(11478);function d(e){let{data:t}=e,r=(0,s.useRef)(null),o=(0,l.useRouter)(),{logos:d,menuItems:u,slug:h}=t;(0,s.useEffect)(()=>{!function(){let e=document.querySelector(".header__toggle"),t=document.querySelector(".menu-bg"),r=document.querySelector(".menu__content");if(!e||!t||!r)return;let n=!1;function s(){let e=r.getBoundingClientRect();c.Ay.to(t,{height:e.height,duration:.4,ease:"power2.out"})}e.addEventListener("click",()=>{if(n)c.Ay.to(e,{x:0,y:0,duration:.5,ease:"power2.inOut"}),c.Ay.to(r,{opacity:0,pointerEvents:"none",duration:.2,onComplete:()=>{c.Ay.set(".menu__nav__item",{opacity:0,y:20})}}),c.Ay.to(t,{width:67,height:67,borderRadius:"50%",duration:.3,ease:"power2.inOut"});else{let n=window.innerWidth<=991?0:-20;c.Ay.to(e,{x:n,y:35,duration:.4,ease:"power2.out"}),c.Ay.set(r,{opacity:0,display:"block",pointerEvents:"none"});let s=r.getBoundingClientRect();c.Ay.to(t,{width:s.width,height:s.height,x:0,y:0,borderRadius:"24px",duration:.3,onComplete:()=>{c.Ay.to(r,{opacity:1,pointerEvents:"auto",duration:.2}),c.Ay.to(".menu__nav__item",{opacity:1,y:0,duration:.4,stagger:.05,ease:"power2.out"})}})}n=!n,e.classList.toggle("close")}),document.querySelectorAll(".parent > a").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();let r=e.closest(".parent"),n=null==r?void 0:r.querySelector(".submenu");if(!n)return;let l=n.classList.contains("open");if(document.querySelectorAll(".submenu.open").forEach(e=>{e!==n&&c.Ay.to(e,{height:0,opacity:0,duration:.2,onComplete:()=>e.classList.remove("open")})}),l)c.Ay.to(n,{height:0,opacity:0,duration:.2,ease:"power2.inOut",onComplete:()=>{n.classList.remove("open"),c.Ay.set(n,{clearProps:"all"}),c.Ay.delayedCall(.05,s)}});else{n.classList.add("open"),c.Ay.set(n,{height:"auto"});let e=n.scrollHeight;c.Ay.set(n,{height:0}),c.Ay.to(n,{height:e,opacity:1,duration:.2,ease:"power2.out",onUpdate:s,onComplete:()=>{c.Ay.set(n,{height:"auto"}),s()}})}})}),document.addEventListener("click",t=>{n&&(e.contains(t.target)||r.contains(t.target)||e.click())}),document.querySelectorAll(".menu__nav__item:not(.parent) .menu__nav__item__link, .submenu__item__link").forEach(t=>{t.addEventListener("click",r=>{var s;if("#"===t.getAttribute("href")||(null===(s=t.getAttribute("href"))||void 0===s?void 0:s.startsWith("#"))){r.preventDefault();return}n&&e.click()})})}()},[h,u,o]),(0,s.useEffect)(()=>{let e=r.current;if(!e)return;let t=e.querySelector(".menu__search__form"),n=e.querySelector(".menu__search__form__input");t&&n&&t.addEventListener("submit",t=>{t.preventDefault();let r=n.value.trim();if(r){o.push("/search/".concat(encodeURIComponent(r)));let t=e.querySelector(".header__toggle");null==t||t.click(),n.value=""}})},[h,u,o]);let m=u.filter(e=>!e.parentId);return(0,n.jsx)("header",{className:"header",ref:r,children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsxs)("div",{className:"header__logos",children:[(0,n.jsx)(i(),{href:"/",className:"link","aria-label":"Homepage Science Week",children:(0,n.jsx)(a.default,{src:d.logo.node.sourceUrl,alt:d.logo.node.altText,width:144,height:92})}),d.researchLogoLink?(0,n.jsx)("a",{href:d.researchLogoLink,target:"_blank",rel:"noopener noreferrer",className:"link",children:(0,n.jsx)(a.default,{src:d.researchLogo.node.sourceUrl,alt:d.researchLogo.node.altText,width:220,height:44})}):(0,n.jsx)("div",{className:"link","aria-hidden":"true",children:(0,n.jsx)(a.default,{src:d.researchLogo.node.sourceUrl,alt:d.researchLogo.node.altText,width:220,height:44})})]}),(0,n.jsxs)("button",{type:"button",className:"header__toggle link","aria-label":"Toggle Menu",children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}),(0,n.jsxs)("div",{className:"menu",children:[(0,n.jsx)("div",{className:"menu-bg"}),(0,n.jsxs)("div",{className:"menu__content",children:[(0,n.jsx)("div",{className:"menu__search",children:(0,n.jsxs)("form",{className:"menu__search__form",children:[(0,n.jsx)("input",{type:"text",placeholder:"Search",className:"menu__search__form__input"}),(0,n.jsx)("input",{type:"submit",className:"menu__search__form__submit link",value:"Search","aria-label":"Search"})]})}),(0,n.jsx)("nav",{className:"menu__nav",children:(0,n.jsx)("ul",{children:m.map(e=>{var t,r,s,l;let o=null!==(r=null===(t=e.childItems)||void 0===t?void 0:t.nodes)&&void 0!==r?r:[],a=o.length>0;return(0,n.jsxs)("li",{className:"menu__nav__item ".concat(a?"parent":""),children:[(0,n.jsxs)(i(),{href:null!==(l=null!==(s=e.path)&&void 0!==s?s:e.url)&&void 0!==l?l:"#",className:"menu__nav__item__link link",children:[(0,n.jsx)("span",{children:e.label}),(0,n.jsx)("span",{children:e.label})]}),a&&(0,n.jsx)("ul",{className:"submenu",children:o.map(e=>{var t,r;return(0,n.jsx)("li",{className:"submenu__item",children:(0,n.jsx)(i(),{href:null!==(r=null!==(t=e.path)&&void 0!==t?t:e.url)&&void 0!==r?r:"#",className:"submenu__item__link link",children:e.label})},e.id)})})]},e.id)})})})]})]})]})})}},40212:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(95155),s=r(12115);
1function l(){let[e,t]=(0,s.useState)(!1),[r,l]=(0,s.useState)(null),[o,i]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{(()=>{let e=document.cookie.includes("__prerender_bypass=1"),r=document.cookie.split("; ").find(e=>e.startsWith("__preview_data="));if(console.log("Preview check:",{prerenderBypass:e,hasPreviewData:!!r,allCookies:document.cookie}),r){t(!0);try{let e=JSON.parse(decodeURIComponent(r.split("=")[1]));l(e),console.log("Preview data:",e)}catch(e){console.error("Error parsing preview data:",e)}}i(window.location.pathname.includes("/draft/"))})()},[]),e)?(0,n.jsxs)("div",{style:{position:"fixed",top:0,left:0,right:0,background:o?"#8b5cf6":"#ff6b35",color:"white",padding:"8px 16px",fontSize:"14px",fontWeight:"bold",zIndex:9999,textAlign:"center",boxShadow:"0 2px 4px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"},children:[(0,n.jsx)("span",{children:o?"\uD83D\uDCDD DRAFT PREVIEW":"\uD83D\uDD0D PREVIEW MODE ACTIVE"}),r&&(0,n.jsxs)("span",{style:{fontSize:"12px",opacity:.9},children:["(Post ID: ",r.postId,", Type: ",r.postType,")"]}),(0,n.jsx)("button",{onClick:()=>{document.cookie="__prerender_bypass=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie="__preview_data=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",t(!1),l(null),o?(window.close(),setTimeout(()=>{let e="https://admin.scienceweek.ie//wp-admin/post.php?post="+(null==r?void 0:r.postId)+"&action=edit";window.location.href=e},100)):window.location.reload()},style:{background:"rgba(255,255,255,0.2)",border:"1px solid rgba(255,255,255,0.3)",color:"white",padding:"4px 12px",borderRadius:"4px",fontSize:"12px",cursor:"pointer",fontWeight:"bold"},onMouseOver:e=>e.currentTarget.style.background="rgba(255,255,255,0.3)",onMouseOut:e=>e.currentTarget.style.background="rgba(255,255,255,0.2)",children:o?"Back to Edit":"Exit Preview"})]}):null}},61141:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(12115),s=r(44741);function l(){return(0,n.useEffect)(()=>{let e=new s.A({lerp:.1});requestAnimationFrame(function t(r){e.raf(r),requestAnimationFrame(t)});let t=document.querySelector(".header");return e.on("scroll",e=>{let{scroll:r}=e;t&&(r>50?t.classList.add("scrolled"):t.classList.remove("scrolled"))}),()=>{e.destroy()}},[]),null}},99108:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(12115);function s(){return(0,n.useEffect)(()=>{let e=document.documentElement,t=()=>{let t=document.querySelector(".container");if(!t)return;let r=t.offsetWidth;e.style.setProperty("--container","".concat(r,"px"))};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),null}},24823:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(95155),s=r(28979),l=r(48173),o=r.n(l);function i(e){let{html:t}=e,r={replace(e){var t;if("tag"===e.type&&"a"===e.name&&(null===(t=e.attribs)||void 0===t?void 0:t.href)){let t=e.attribs.href;if(t.startsWith("/")||t.startsWith("https://admin.scienceweek.ie/")||/^https?:\/\/(www\.)?yourdomain\.com/.test(t))return(0,n.jsx)(o(),{href:t,children:(0,s.zd)(e.children,r)})}}};return(0,n.jsx)(n.Fragment,{children:(0,s.Ay)(t,r)})}},38203:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(12115),s=r(76046);let l=()=>{let e=(0,s.usePathname)();return(0,n.useEffect)(()=>{let t=document.querySelector("header");(async()=>{try{let r=await fetch("/api/header-style?uri=".concat(e)),n=(await r.json()).style||"light";null==t||t.classList.remove("dark","light"),null==t||t.classList.add(n)}catch(e){console.error("Error fetching header style",e)}})()},[e]),null}},32934:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[894,359,385,592,970,173,979,111,429,441,517,358],()=>t(8394)),_N_E=e.O()}]);
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.