1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{8394:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,81356,23)),Promise.resolve().then(r.t.bind(r,41402,23)),Promise.resolve().then(r.t.bind(r,6973,23)),Promise.resolve().then(r.t.bind(r,16203,23)),Promise.resolve().then(r.bind(r,62339)),Promise.resolve().then(r.bind(r,83954)),Promise.resolve().then(r.bind(r,55867)),Promise.resolve().then(r.bind(r,50726)),Promise.resolve().then(r.bind(r,38759)),Promise.resolve().then(r.bind(r,53262)),Promise.resolve().then(r.bind(r,23909)),Promise.resolve().then(r.t.bind(r,75952,23))},23909:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(12115),s=r(20063);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}},28857:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(95155),s=r(16405),l=r(52619),a=r.n(l),o=r(31185);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.href)){let t=e.attribs.href;if((0,o.q)(t))return(0,n.jsx)(a(),{href:t,children:(0,s.zd)(e.children,r)})}}};return(0,n.jsx)(n.Fragment,{children:(0,s.Ay)(t,r)})}},31185:(e,t,r)=>{"use strict";r.d(t,{Gu:()=>i,IA:()=>o,ME:()=>c,q:()=>a});var n=r(72473),s=r(35405),l=r(47141);function a(e){return e.startsWith("/")||e.startsWith("https://admin.scienceweek.ie/")||/^https?:\/\/(www\.)?yourdomain\.com/.test(e)}function o(e,t,r){let a=(0,n.GP)(e,"hh:mm a").toLowerCase(),o=(0,n.GP)(t,"hh:mm a").toLowerCase(),i=r?"All day":a===o?a:"".concat(a," - ").concat(o);return{dateString:(0,s.r)(e,t)?"".concat((0,n.GP)(e,"EEEE d MMMM")):(0,l.t)(e,t)?"".concat((0,n.GP)(e,"EEEE d")," - ").concat((0,n.GP)(t,"EEEE d MMMM")):"".concat((0,n.GP)(e,"EEEE d MMMM")," - ").concat((0,n.GP)(t,"EEEE d MMMM")),timeString:i}}function i(e){let t=null==e?void 0:e.match(/\/event\/([^?#]+?)\/?(?:[?#]|$)/);return t?t[1]:null}function c(e){if(!e)return null;let t=e.match(/(\d{4})-(\d{2})-(\d{2})[ T](\d{2}):(\d{2})(?::(\d{2}))?/);if(t)return new Date(+t[1],t[2]-1,+t[3],+t[4],+t[5],t[6]?+t[6]:0);let r=new Date(e);return Number.isNaN(r.getTime())?null:r}},38759:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(12115),s=r(92691);function l(){return(0,n.useEffect)(()=>{let e=new s.A({lerp:.1,prevent:e=>e.classList.contains("react-select__menu-list")||e.hasAttribute("data-lenis-prevent")});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}},50726:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(95155),s=r(12115);function l(){let[e,t]=(0,s.useState)(!1),[r,l]=(0,s.useState)(null),[a,o]=(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)}}o(window.location.pathname.includes("/draft/"))},[]),e)?(0,n.jsxs)("div",{style:{position:"fixed",top:0,left:0,right:0,background:a?"#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:a?"\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),a?(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:a?"Back to Edit":"Exit Preview"})]}):null}},53262:(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}},55867:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var n=r(95155),s=r(12115),l=r(20063),a=r(52619),o=r.n(a),i=r(15239),c=r(47605);function d(e){let{data:t}=e,r=(0,s.useRef)(null),a=(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");
1if(!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.startsWith("#")))return void r.preventDefault();n&&e.click()})})}()},[h,u,a]),(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){a.push("/search/".concat(encodeURIComponent(r)));let t=e.querySelector(".header__toggle");null==t||t.click(),n.value=""}})},[h,u,a]);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)(o(),{href:"/",className:"link","aria-label":"Homepage Science Week",children:(0,n.jsx)(i.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)(i.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)(i.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 a=null!=(r=null==(t=e.childItems)?void 0:t.nodes)?r:[],i=a.length>0;return(0,n.jsxs)("li",{className:"menu__nav__item ".concat(i?"parent":""),children:[(0,n.jsxs)(o(),{href:null!=(l=null!=(s=e.path)?s:e.url)?l:"#",className:"menu__nav__item__link link",children:[(0,n.jsx)("span",{children:e.label}),(0,n.jsx)("span",{children:e.label})]}),i&&(0,n.jsx)("ul",{className:"submenu",children:a.map(e=>{var t,r;return(0,n.jsx)("li",{className:"submenu__item",children:(0,n.jsx)(o(),{href:null!=(r=null!=(t=e.path)?t:e.url)?r:"#",className:"submenu__item__link link",children:e.label})},e.id)})})]},e.id)})})})]})]})]})})}},62339:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var n=r(95155),s=r(12115);
1function 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},a=()=>{n.classList.add("hover")},o=()=>{n.classList.remove("hover")};return document.addEventListener("mousemove",l),document.querySelectorAll(".link").forEach(e=>{e.addEventListener("mouseover",a),e.addEventListener("mouseout",o)}),requestAnimationFrame(()=>{requestAnimationFrame(s)}),()=>{document.removeEventListener("mousemove",l)}},[e]),e)?(0,n.jsx)("div",{className:"cursor"}):null}},75952:()=>{},83954:(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 a=r(15239),o=r(52619),i=r.n(o),c=r(28857);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:o}=e,{footerFields:p,primaryMenuItems:g,legalMenuItems:x}=o,v=[{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)({}),[E,L]=(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)(a.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?(L(!0),j(""),k(!1)):L(!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}),E&&(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)(i(),{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.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:v.map((e,t)=>e.href?(0,n.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"link",children:(0,n.jsx)(a.default,{src:e.icon,alt:e.name})},t):null)})]})})]}),(null==p?void 0:p.clientLogo)&&(null==p||null==(r=p.clientLogoLink)?void 0:r.url)&&(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("div",{className:"col-lg-12",children:(0,n.jsx)(i(),{href:p.clientLogoLink.url,className:"link",target:p.clientLogoLink.target||"_self",rel:"_blank"===p.clientLogoLink.target?"noopener noreferrer":void 0,children:(0,n.jsx)(a.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==x?void 0:x.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(i(),{href:e.path||e.url,target:e.target||"_self",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:v.map((e,t)=>(0,n.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"link",children:(0,n.jsx)(a.default,{src:e.icon,alt:e.name})},t))})})]}),(0,n.jsx)("span",{className:"footer__shapebottom"})]})]}),(0,n.jsx)(_,{})]})}}},e=>{e.O(0,[5628,5724,129,5592,1356,2619,6033,6405,9278,2060,8441,1255,7358],()=>e(e.s=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.