(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[284],{55634:function(e){var t=function(e,t){var r,a,n=1,l=0,s=0,i=String.alphabet;function o(e,t,a){if(a){for(r=t;(a=o(e,r))<76&&a>65;)++r;return+e.slice(t-1,r)}return(a=i&&i.indexOf(e.charAt(t)))>-1?a+76:(a=e.charCodeAt(t)||0)<45||a>127?a:a<46?65:a<48?a-1:a<58?a+18:a<65?a-11:a<91?a+11:a<97?a-37:a<123?a+5:a-63}if((e+="")!=(t+="")){for(;n;)if(a=o(e,l++),n=o(t,s++),a<76&&n<76&&a>66&&n>66&&(a=o(e,l,l),n=o(t,s,l=r),s=r),a!=n)return a{let{className:t="",author:r=null,preloadImage:a=!1}=e,{avatar:l,bio:s,facebook:i,instagram:o,jobTitle:c,name:f,twitter:g,url:h}=r;return(0,m.jsxs)("div",{className:(0,n.Z)(t,"author-bio"),"data-placement":"AuthorBio","data-testid":"author-bio",children:[l&&(0,m.jsx)(u.Z,b(b({},l),{},{className:"author-bio__avatar mr-md mb-xs",maxWidth:140,width:140,height:140,sizes:["140px"],srcSetBreakpoints:[140,280],fallbackIcon:"person",preload:a})),(0,m.jsx)(p.Z,{size:1,children:f}),(0,m.jsxs)("div",{className:"d-flex align-items-center",children:[c&&(0,m.jsx)("span",{className:"author-bios__job-title heading-4 mr-xs mt-xxs",children:c}),(0,m.jsx)(d.Z,{twitterHandle:g,facebookProfile:i,instagramProfile:o,coloured:!0})]}),s&&(0,m.jsx)("p",{className:"body-copy mt-md mb-xs","data-testid":"bio",children:s})]},h)};g.displayName="AuthorBios.AuthorBio";var h=r(99086),y=r(88928),x=r(9811),j=r(71738);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _(e){for(var t=1;t({"@context":"https://schema.org/","@type":"BreadcrumbList",itemListElement:e.map((e,r)=>{let{label:a,url:n}=e,l={"@type":"ListItem",position:r+1,name:a};if(!n)return l;let{pathname:s}=new URL(n,"http://temp");return _(_({},l),{},{item:new URL(s,t).href})})}),w=e=>{let{items:t,className:r=null,color:a="baseGrey",size:l=11,canonicalUrl:s,sctrack:i=null}=e;return(0,m.jsxs)("nav",{"aria-label":"Breadcrumb",className:(0,n.Z)("breadcrumb hidden-print",r),children:[s&&(0,m.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(O(t,s))}}),(0,m.jsx)(h.Z,{className:"breadcrumb__list body-copy-extra-small oflow-x-auto",children:t.map((e,r)=>(0,m.jsxs)(h.Z.Item,{className:"breadcrumb__item",children:[(0,m.jsx)(x.Z,{color:a,className:"breadcrumb__icon mr-xs",name:"chevron-shallow",size:l,rotate:90}),r!==t.length-1?(0,m.jsx)(y.Z,{styled:!!e.url,href:e.url,className:"breadcrumb__link","data-testid":"breadcrumb-with-link",sctrack:(0,j.Z)("Breadcrumb",i),children:e.label}):(0,m.jsx)("span",{className:"breadcrumb__link","aria-current":"page","data-testid":"last-breadcrumb",children:e.label})]},[e.label,e.url].join("-")))})]})};w.displayName="Breadcrumb";let N=e=>{let{characterCount:t=null,className:r="ad-placement dai-placeholder",paragraphsLeft:a=null}=e;return(0,m.jsx)("div",{"data-testid":"ad-placement",className:r,"data-count":t,"data-paragraphs-left":a})};N.displayName="DynamicAdPlaceholder";let P=["ul","ol","h1","h2","h3","h4","h5","h6"],k=e=>e&&!Array.isArray(e)&&"string"!=typeof e&&P.includes(String(e.type))?0:"string"==typeof e?e.length:Array.isArray(e)?e.reduce((e,t)=>e+k(t),0):e?.props?.children?e?.props?.children&&"string"!=typeof e?.props?.children&&(Array.isArray(e?.props?.children)||e?.props?.children.props)?k(e?.props?.children):"string"==typeof e?.type&&"string"==typeof e?.props?.children?e?.props?.children?.length:0:0,S=e=>!!e&&"bottomMpu"===e.key,Z=e=>!!e&&"iframe"===e.type,C=e=>!!e&&"p"===e.type,E=e=>!e||Array.isArray(e)||"string"==typeof e?null:e,D=e=>{let t=E(e.props?.children);if(C(e)&&Z(t)){let e=t?.src;return"string"==typeof e&&e.startsWith("https://www.youtube.com/embed/")}return!1},T=e=>!D(e)&&C(e)&&0===k(e.props?.children),$=(e,t)=>{let r=[...e],a=r.indexOf(r.find(S));return r.slice(t,a>-1?a:r.length).filter(e=>C(e)&&!D(e)&&!T(e)).length},L=e=>"object"==typeof e?e.displayName||e.name:e,I=(e,t)=>[e.key,L(e.type)].some(e=>void 0!==e&&t.includes(e)),R=(e,t)=>!e.includes(t),z=(e,t)=>!I(e,t)&&!D(e),B=(e,t)=>!I(e,t)&&!T(e),W=(e,t)=>(0,l.createElement)(N,{key:`ad-placeholder-${e}-${t}`,characterCount:e,paragraphsLeft:t});var M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;if(!e||"recipes"===a)return e;let n=0,l=[];return e.flatMap((a,s)=>{if(s<=1||s===e.length)return a;let i=e[s-1];if(!i)return a;if(R(l,n+=k(i))&&z(a,t)&&B(i,r)){l.push(n);let t=$(e,s);return[W(n,t),a]}return a})},A=r(42485),q=r(30899),G=r(368),F=r(64593),V=r(63144),U=r.n(V),H=r(54938),Y=r(14257),K=r(21626),X=r(5275);function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Q(e){for(var t=1;t{let t="Watch ";switch(e){case"brand":t+="show ";break;case"episode":t+="episode ";break;case"series":t+="season "}return t+"trailer"},et=e=>{let{apiUrl:t=null,className:r=null,duration:a=null,imageLayoutHero:i=null,isContentVideo:o=!1,isLargeTabletHero:c=!1,isMastheadHero:u=!1,isTrailer:d=!1,licenceKey:p=null,loaderUrl:f=null,mediaContentType:b=null,mixId:g=null,noMargin:h=!1,overrideTrailerPosterImageUrl:y=null,playerId:v=null,schema:_=null,sctrack:O=null,thumbnail:w=null,trailerPosterImageUrl:N=null,videoId:P=null}=e,k=(0,l.useRef)(null),{track:S}=(0,H.hI)(),{0:Z,1:C}=(0,l.useState)(!P),{0:E,1:D}=(0,l.useState)(null),{0:T,1:$}=(0,l.useState)(!!P),{postContent:L,siteContext:I}=(0,l.useContext)(q.Z),R=L?.postId,{url:z}=w||{};(0,l.useEffect)(()=>((async()=>{if(y)D(y);else if(z)D(z);else if(N)D(N);else{let e,r,a;try{({poster:e,posterRenditions:a,posterType:r}=await U()(t).then(e=>e.json()))}catch(e){console.error(e)}e?.length&&("CUSTOM_POSTER"===r||!a?.length)?D(e[e.length-1].src):a?.length&&D(a[0].src)}})(),()=>{}),[]),(0,l.useEffect)(()=>{if(!k.current||!Z)return()=>{};let e=e=>{let{payload:t,type:r}=e.detail||{},a={event:"videoEvent",playerId:v,videoDuration:t?.content?.duration,videoId:t?.content_id,videoProvider:"greenVideo",videoTitle:t?.content?.title,videoUrl:`https://immediate-demo.greensuite.io/dashboard/media/videos/${t?.content_id}`},n=(e,t)=>{window.dataLayer.push(Q(Q({},a),{},{videoPercent:t,videoStatus:e}))};switch(r){case"play":n("start");break;case"finished_ad":S(I?.siteKey,"video_started",{postId:R,videoId:P});break;case"first_play":t?.is_autoplay&&$(!1);break;case"ms_25":n("progress",25);break;case"ms_50":n("progress",50);break;case"ms_75":n("progress",75);break;case"ms_100":n("complete")}},t=k.current.querySelector("green-video");return t?(t.addEventListener("gv-player-event",e),()=>{t.removeEventListener("gv-player-event",e)}):()=>{}},[Z]);let B=()=>{$(!1);let e='[aria-label*="play"i]',t=t=>t?.querySelector(e),r=t=>{let r=t.querySelector(e);r&&r.click()},a=e=>new Promise(r=>{let a=new MutationObserver(()=>{let n=k.current?.querySelector(e);n&&t(n)&&(r(n),a.disconnect())});a.observe(document.body,{childList:!0,subtree:!0});let n=k.current?.querySelector(e);n&&t(n)&&(r(n),a.disconnect())});(async()=>{let e=await a("green-video");e&&r(e)})()};(0,l.useEffect)(()=>{let e=()=>{C(!0);let{CLICK_TO_PLAY_CONSENTED:e}=X.SESSION_STORAGE_ITEM_NAMES;sessionStorage.getItem(e)&&!o&&(B(),sessionStorage.removeItem(e))};if(["complete","interactive"].includes(document.readyState))return e(),()=>{};let t="load",r="DOMContentLoaded";return window.addEventListener(t,e),window.addEventListener(r,e),()=>{window.removeEventListener(t,e),window.removeEventListener(r,e)}},[]);let{t:W}=(0,s.$G)();if(!p||!f)return null;let M=_?.name?`${_?.name}: `:"",A=w?.height>w?.width,G=E===N||E===y;return(0,m.jsxs)(m.Fragment,{children:[_&&(0,m.jsx)(K.Z,{schema:Q({"@context":"https://schema.org","@type":"VideoObject"},_)}),(0,m.jsxs)("div",{className:(0,n.Z)("green-video",{"d-flex justify-content-center flex-direction-column":T,"d-grid":i&&!T,"green-video--image-layout-hero":i,"green-video--trailer":d,"green-video--large-tablet-trailer":d&&c},r),"data-testid":"green-video",ref:k,style:Q({aspectRatio:1/.5625,margin:h?"0":"20px 0"},T&&{backgroundImage:`url(${E})`}),children:[T&&(0,m.jsxs)("button",{"aria-label":W("atoms.greenVideo.playVideo",`${M}Play video`),className:"green-video__facade-btn","data-testid":"green-video-facade-btn","data-sctrack":(0,j.Z)("GreenVideo-Play",O),onClick:()=>B(),style:{alignItems:"center",border:"none",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",padding:0,position:"relative",width:"100%"},tabIndex:"0",title:W(`${M}Play video`),type:"button",children:[(0,m.jsx)("div",{className:(0,n.Z)("green-video__facade-focus-border",{"green-video__facade-focus-border--masthead-hero":u}),tabIndex:-1}),A?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"green-video__blurred-bg",style:{backgroundImage:`url(${E})`}}),(0,m.jsx)("div",{className:"green-video__overlay"}),(0,m.jsx)(Y.Z,{className:"green-video__portrait-image",contain:"all",constrainToParentDimensions:!0,external:G,loading:"lazy",noPlaceholder:!0,style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"},url:E})]}):(0,m.jsx)(Y.Z,{className:"bg-regular",constrainToParentDimensions:!0,external:G,loading:"lazy",noPlaceholder:!0,style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"},url:E}),(0,m.jsxs)("div",{className:(0,n.Z)({"green-video__facade-trailer-background":d}),style:{alignItems:"center",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",left:0,position:"absolute",top:0,width:"100%"},children:[(0,m.jsx)("div",{className:"green-video__facade-icon-container",style:{aspectRatio:1,height:"35%",zIndex:1},children:(0,m.jsx)("div",{className:"green-video__facade-icon",style:{alignItems:"center",aspectRatio:1,display:"flex",justifyContent:"center",minHeight:"60px"},children:(0,m.jsx)(x.Z,{color:"baseWhite",constrainSvgToParentDimensions:!0,name:"play",style:{height:`${d?"55%":"65%"}`,width:`${d?"55%":"65%"}`}})})}),d&&(0,m.jsxs)("div",{className:"green-video__facade-trailer-labels","data-testid":"green-video-facade-trailer-labels",children:[(0,m.jsx)("span",{className:"green-video__facade-trailer-label green-video__facade-trailer-cta","data-testid":"green-video-facade-trailer-cta-label",children:W("atoms.greenVideo.trailerFacadeLabel",ee(b))}),a&&(0,m.jsx)("div",{className:"d-flex flex-direction-column justify-content-center",children:(0,m.jsx)("span",{className:"green-video__facade-trailer-label green-video__facade-trailer-duration","data-testid":"green-video-facade-trailer-duration-label",children:`${a<600?"0":""}${Math.floor(a/60)}:${a%60<10?"0":""}${a%60}`})})]})]})]}),Z&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(F.q,{children:(0,m.jsx)("script",{src:f,"data-license-key":p,async:!0})}),(0,m.jsx)("green-video",{"content-id":P,"data-testid":"green-video-player","embed-id":v,"mix-id":g,style:{left:0,position:"absolute",top:0,width:"100%"},tabIndex:T?-1:0})]})]})]})};et.displayName="GreenVideo";var er=r(45697),ea=r(47480),en=r(89290),el=r(26140),es=r(9445);function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function eo(e){for(var t=1;t(0,l.isValidElement)(e)&&"script"===e.type,eu=e=>{let t=e,r=[];return Array.isArray(t)&&(r=t.filter(ec)).length&&(t=t.filter(e=>!ec(e))),(0,l.isValidElement)(t)&&Array.isArray(t.props?.children)&&(r=r.concat(t.props.children.filter(ec)),t=(0,l.cloneElement)(t,{children:t.props.children.filter(e=>!ec(e))})),{elementData:t,scriptElems:r}},ed=e=>{let{apiUrl:t=null,consent:r=null,dataFeature:a=null,errorMessage:s=null,htmlAttributes:i=null,itemSpacingY:o="xl",schema:c=null,vanityName:u=null}=e,{0:d,1:p}=(0,l.useState)(null),{0:f,1:b}=(0,l.useState)(!1),{0:g,1:h}=(0,l.useState)(null),{0:y,1:x}=(0,l.useState)([]),{0:j,1:v}=(0,l.useState)(null),{id:_,purposes:O}=r||{},w=(0,es.Z)({purposes:O,vendorIds:[_]});(0,l.useEffect)(()=>{t&&r&&w&&(async()=>{try{let e=await U()(t);if(!e.ok){let t=Error("Failed to fetch oEmbed data");throw t.response=e,t}let{html:r,provider_name:a,response:n,title:s}=await e.json(),i=a?.toLowerCase()??null;v(i);let o=(0,en.Z)(decodeURI(encodeURI(r||n))),{elementData:c,scriptElems:u}=eu(o),d=(r||n)&&c;if(!d)throw Error("No oembed element found");p(d),x(u.map(e=>e.props?.src).filter(e=>!!e)),b((0,l.isValidElement)(c)&&"iframe"===c.type),h(s||`${a} oEmbed`)}catch(e){s&&p(s),console.error(e)}})()},[t,w,s]);let N=c&&(0,m.jsx)(K.Z,{schema:eo({"@context":"http://schema.org","@type":"VideoObject"},c)});if(!w){let e=o?`mb-${o}`:"";return(0,m.jsx)(el.Z,{providerName:u,className:e,consentModalButton:!0,requiredConsent:{purposeIds:O,vendorIds:[_]}})}return d?f&&["dailymotion","kickstarter","youtube","vimeo"].includes(j)?(0,m.jsxs)("div",eo(eo({className:(0,n.Z)(o&&`mb-${o}`,"oembed--iframe",{[`oembed--${j}`]:j}),"data-feature":a,"data-testid":"oembed","data-item-type":`oembed-${j}`,"data-component":"Oembed"},i),{},{style:{paddingBottom:"56.25%"},children:[(0,l.cloneElement)(d,{title:g,className:"oembed__content oembed__content--iframe ",loading:"lazy"}),N]})):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",eo(eo({className:(0,n.Z)(o&&`mb-${o}`,{[`oembed--${j}`]:j}),"data-feature":a,"data-testid":"oembed","data-item-type":`oembed-${j}`,"data-component":"Oembed"},i),{},{children:d})),(0,m.jsx)(ea.default,{children:y.map(e=>(0,m.jsx)("script",{async:!0,src:e,"data-testid":"oembed-script"},e))})]}):c?N:null};ed.displayName="Oembed";let ep={purposes:[1,2,3,4,5,6,7,8,9,10,11],vendorIds:[]},em=e=>{let{element:t}=e;return(0,es.Z)(ep)?t:(0,m.jsx)("span",{})};function ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function eb(e){for(var t=1;t"function"==typeof e?.type?e.type.displayName||e.type.name:e?.type,eh=["p","ul","ol"],ey=e=>{let t=eg(e);return!!(eh.includes(t)&&l.Children.toArray(e.props?.children)?.length>0)},ex=e=>e.reduce((e,t,r)=>ey(t)?[...e,r]:e,[]),ej=e=>e.find((t,r)=>t-1===e[r-1]),ev=e=>!!e?.props?.adSettings?.nativeAdvertiser&&e?.props?.adSettings?.nativeAdvertiser!=="none",e_=e=>[Y.Z.displayName].includes(eg(e)),eO=e=>[ed.displayName,et.displayName].includes(eg(e)),ew=(e,t)=>ev(e[t-1])||ev(e[t]),eN=(e,t)=>e_(e[t-1])||e_(e[t]),eP=(e,t)=>eO(e[t-1])||eO(e[t]),ek=(e,t)=>["h1","h2","h3","h4"].includes(e[t-1]?.type),eS=(e,t,r)=>{null!==t&&e.splice(t,0,r)},eZ=e=>l.isValidElement(e)&&"string"==typeof e.type&&"iframe"===e.type.toLowerCase(),eC=e=>l.Children.toArray(e).some(e=>!!l.isValidElement(e)&&(!!eZ(e)||!!e.props&&!!e.props.children&&eC(e.props.children))),eE=e=>l.Children.map(e,e=>{if(!(0,l.isValidElement)(e))return e;if(eZ(e))return(0,m.jsx)(em,{element:e},e.key);let t=e.props?.children;if(null==t)return e;let r=eE(t);return r===t?e:(0,l.cloneElement)(e,eb(eb({},e.props),{},{children:r}))});(0,er.arrayOf)((0,er.shape)({type:(0,er.oneOf)(["audio","burdaffi-placement","burdaffi-widget","editorial-ratings","facebook-embed","gallery","green-carousel","green-podcast","green-video","highlight-box","html","image","inline-gallery","squirrel-affiliate-embed","squirrel-affiliate-playlist","mrm","newsletter-signup","oembed","onnetwork-player","pullquote","riddle","table","video","ediplayer-video-placement","instagram-embed","bmp-survey","roast-calculator"]).isRequired,data:er.object.isRequired}));let eD=["review","reviews","glossary","plant"];var eT=(e,t)=>{let r=null;if(eD.includes(t))return r;let a=ex(e);return a.length>=1&&(r=a[0]+1),r};let e$=["plant"];var eL=(e,t)=>{let r=null;if(e$.includes(t))return r;let a=ex(e),n=a.length,l=a.length-1;return n>=3&&ek(e,r=a[l])&&(r=a[l-1]+1),r},eI=e=>{let t=null,r=ex(e),a=r.length,n=r.length-1;return a>=5&&ek(e,t=r[n-2])&&(t=r[n-3]+1),t},eR=e=>{let t=null,r=ex(e),a=r.length;return a>=5&&((ew(e,t=r[2]+1)||eP(e,t)||eN(e,t))&&(t=ej(r)),ek(e,t)&&(t=r[4]),t||(t=r[a-1]+1)),t},ez=(e,t,r,a)=>{let{topMpu:n,bottomMpu:l,nativeAd:s,teads:i}=t;eS(e,eT(e,a),n),eS(e,eL(e,a),l),eS(e,eI(e),s),r||eS(e,eR(e),i)},eB=e=>{let{0:t,1:r}=(0,l.useState)(null);return(0,l.useEffect)(()=>{(async()=>{let t=await V(e);r(await t.json())})()},[]),t},eW=r(48921),eM=r(44500),eA=r(8863);function eq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function eG(e){for(var t=1;t{let{aspectRatio:t="landscape",className:r=null,color:a="backgroundExtraLight",dataFeature:s=null,dataPlacement:i=null,descriptionMaxLines:o=3,heading:c=null,leftAlignHeading:u=null,singleColumn:d=null,src:f}=e,b=eB(f)?.items||[],{colors:g}=(0,eW.Z)();return 0===b.length?null:(0,m.jsxs)("div",{className:(0,n.Z)("dynamic-cards-list pr-sm pl-sm",r,{"dynamic-cards-list--single-column":d,"pt-xs pb-sm":u,"pt-md pb-md":!u}),style:{backgroundColor:g[a]},"data-feature":s,"data-placement":i,"data-testid":"dynamic-cards-list",children:[c&&l.createElement(p.Z,{className:(0,n.Z)("dynamic-cards-list-heading",r,{"mb-xs text-left":u,"mb-lg text-center":!u}),size:u?6:3},(0,en.Z)(c)),l.createElement(eA.Z,{listview:!0,singleColumn:d},b.map((e,r)=>{let{id:a,image:n,description:s,label:i,postType:c,rating:u,title:d,url:p}=e;return l.createElement(eM.Z,{borderless:!0,description:s,descriptionMaxLines:o,headingSize:4,headingStyledSize:6,horizontal:!0,id:a,image:eG(eG({},n),{},{aspectRatio:t}),index:r,inline:!0,key:d,label:i,postType:c,rating:u,title:d,url:p})}))]})};eF.displayName="DynamicCardsList";let eV=e=>"p"===eg(e);var eU=(e,t)=>{let{heading:r,getItemsUrl:a}=t||{},n=e.reduce((e,t,r)=>(eV(t)&&e.push(r),e.length,e),[]);if(n.length>=5){let t=n[4]+1;eS(e,t,(0,m.jsx)(eF,{dataFeature:"NextRead",dataPlacement:"Body",src:a,heading:r,singleColumn:!0,leftAlignHeading:!0},t))}},eH=r(5152);let eY=r.n(eH)()(()=>r.e(390).then(r.bind(r,70390))),eK=e=>{let{loop:t=!1,type:r,url:a,width:n=null}=e,{postContent:s,siteContext:i}=(0,l.useContext)(q.Z),{track:o}=(0,H.hI)(),c=s?.postId;return a?(0,m.jsx)(eY,{className:"media-player mb-xl",controls:!0,"data-testid":"media-player",height:"audio"===r?"50px":"auto",loop:t,onStart:()=>{o(i?.siteKey,`${r}_started`,{postId:c})},style:{maxWidth:"100%"},url:a,width:n?`${n}px`:"100%"}):null};eK.displayName="MediaPlayer";var eX=r(20181);let eJ=e=>{let{url:t,className:r=null}=e,a=(0,l.useRef)(null);return((0,l.useEffect)(()=>{if(!t)return;let e=document.createElement("script");e.async=!0,e.src=t,a.current&&a.current.appendChild(e)},[t]),t)?(0,m.jsx)("div",{"data-testid":"bmp-survey",className:(0,n.Z)("bmp-survey",r),children:(0,m.jsx)("div",{ref:a})}):null};eJ.displayName="BmpSurvey";var eQ=r(14306),e0=r(86206),e1=r(46307);let e2={id:"",purposes:[]},e5=e=>{let{url:t,captioned:r,consent:a=e2}=e,{t:n}=(0,s.$G)(),i=n("atoms.facebookEmbed.lang"),{id:o="",purposes:c=[]}=a,u=(0,l.useRef)(null),d=(0,es.Z)({purposes:c,vendorIds:[o]}),[p,f]=(0,e1.Z)({src:d?`https://connect.facebook.net/${i}/sdk.js`:null,defer:!0});return((0,l.useEffect)(()=>{if(p||f||!d)return;let e=window;e.FB&&(e.FB.init({xfbml:!0,version:"v25.0"}),e.FB.XFBML.parse(u.current))},[p,f,t,r,d]),d)?(0,m.jsx)("div",{className:"facebook-embed",ref:u,children:(0,m.jsx)("div",{className:"fb-post","data-href":t,"data-show-text":r?"true":"false","data-testid":"facebook-embed-media"})}):(0,m.jsx)(el.Z,{providerName:"Facebook",className:"mb-md",consentModalButton:!0,requiredConsent:{purposeIds:c,vendorIds:[o]}})};e5.displayName="FacebookEmbed";var e4=r(91033),e6=r(67881);function e8(e){return(e8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function e3(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,a=Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t={category:"string",action:"string",label:"string",value:"number"},r=Object.keys(t);return Object.keys(e).forEach(function(e){if(!r.includes(e))throw new ts("Unsupported analytics property: ".concat(e))}),r.reduce(function(r,a){var n=e[a],l=t[a];if(n&&"string"===l&&!("string"==typeof n||n instanceof String))throw new ts('The value for analytics property "'.concat(a,'" must be a string but got a ').concat(e8(n),": ").concat(n));if(n&&"number"===l&&!Number.isFinite(n))throw new ts('The value for analytics property "'.concat(a,'" must be a finite number but got a ').concat(e8(n),": ").concat(n));var s=n&&"string"===l?n.split(" ").map(function(e){return e[0]?e[0].toUpperCase()+e.slice(1):e}).join(" "):n;return e3(e3({},r),{},e9({},"programmatic.analytics.".concat(a),s))},{})},tu=function(e,t,r){if("string"!=typeof e&&!(e instanceof String))throw new ts("An event name must be given as the first argument and it must be a string.");window.dataLayer=window.dataLayer||[],window.dataLayer.push(e3(e3({event:"programmatic.event.".concat((0,e6.o)(e))},to(t)),tc(r)))},td=r(23258),tp=r(61256),tm=r(41537);function tf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tb(e){for(var t=1;t{let{expansionCoordinates:t=[0,0],gtmLabel:r=null,images:a=[],isOpen:i=!1,isOpenCallback:o=()=>{},highlightedImg:c=0,sctrack:u=null}=e;if(!i||!a?.length)return null;let{t:d}=(0,s.$G)(),p=(0,j.Z)("Lightbox",u),f=(0,l.useRef)(null),b=(0,td.Z)(a),g=(0,l.useRef)(0),{0:h,1:x}=(0,l.useState)(i),v=["p-fixed","bg-black"],_=!!a.find(e=>e.caption),{0:O,1:w}=(0,l.useState)(!0),{0:N,1:P}=(0,l.useState)(!1),{0:k,1:S}=(0,l.useState)(!0),{0:Z,1:C}=(0,l.useState)(!1),{0:E,1:D}=(0,l.useState)("none"),T=(0,l.useRef)(),$=()=>{clearTimeout(T.current),document.body.classList.remove(...v),window.scrollTo({behavior:"instant",top:g.current}),w(!0),S(!1),setTimeout(()=>{x(!1),o(!1)},200)},L=e=>{"Escape"===e.code&&$()};(0,l.useEffect)(()=>(document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)),[]);let I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!b[c])return;let t=window.innerHeight>b[c].current.offsetHeight?(window.innerHeight-b[c].current.offsetHeight)/2:0;f.current.scrollTo({behavior:"instant",top:b[c].current.offsetTop-t}),e<100&&setTimeout(()=>{0===window.scrollY&&window.innerHeight>b[c].current?.offsetHeight&&I(e+=1)},10)};return((0,l.useEffect)(()=>{h&&(w(!1),g.current=window.scrollY,setTimeout(()=>{D("grid")},50),T.current=setTimeout(()=>{f.current&&(I(),document.body.classList.add(...v),P(!0))},200),setTimeout(()=>{C(!0)},350))},[h]),h)?(0,m.jsxs)("div",{className:(0,n.Z)("lightbox p-fixed d-block oflow-y-scroll",{"lightbox--transitioned":N}),"data-feature-variant":"lightbox",style:{transform:O?`translate(${t[0]}px, ${t[1]}px) scale(0)`:null},ref:f,children:[(0,m.jsx)(tp.Z,{ariaLabel:d("molecules.lightBox.ariaLabel.close"),className:"lightbox__close p-fixed ma-reset pa-reset",color:"baseWhite",gtmLabel:r?`${r}-close-button`:null,icon:"cross",iconSize:22,noFocusOutline:!0,noMinWidth:!0,noPadding:!0,onClick:$,small:!0,transparent:!0}),k?a.map((e,t)=>{if(!Z&&t>c+2)return null;let l=(()=>{let{sourceName:t,sourceUrl:a}=e;if(!t)return null;let n=a?y.Z:"span",l=a?{href:a,gtmLabel:r?`${r}-img-src-link`:null,sctrack:(0,j.Z)("Source",p)}:{};return(0,m.jsx)("div",{className:"lightbox__img-src editor-content body-copy-extra-small",children:(0,m.jsx)(n,tb(tb({className:"fs-italic"},l),{},{children:t}))})})();return(0,m.jsxs)("div",{ref:b[t],className:(0,n.Z)(`lightbox__img-wrap d-${E}`,{"lightbox__img-wrap--has-captions":_,"lightbox__img-wrap--hidden-above":t=c,"lightbox__img-wrap--highlight":t===c}),children:[(0,m.jsx)(Y.Z,tb(tb({},e),{},{dataIndex:t,caption:null,className:"lightbox__img d-flex pb-xxs",contain:"all",aspectRatio:"dynamic",fluid:!0,loading:c===t?"eager":"lazy",loadingIcon:!0,scaleUp:!0,sourceName:null,sourceUrl:null,srcSetBreakpoints:[1440],sctrack:p})),(0,m.jsx)("div",{className:"lightbox__img-count editor-content pr-sm body-copy-bold body-copy-extra-small",children:`${t+1} of ${a.length}`}),e.caption&&(0,m.jsx)("div",{className:"lightbox__img-caption editor-content body-copy-extra-small","data-component-variant":r?`${r}-img-caption`:null,"data-gtm-class":r?`${r}-img-caption`:null,children:(0,en.Z)(e.caption)}),l]},e.url)}):null]}):null};function th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ty(e){for(var t=1;t{let{images:t,sctrack:r=null}=e,{t:a}=(0,s.$G)(),i=(0,j.Z)("Gallery",r),o=(0,l.useRef)(null),c=(0,l.useRef)(null),u=(0,l.useRef)(null),d=(0,td.Z)(t||[]),{0:p,1:f}=(0,l.useState)(0),{0:b,1:g}=(0,l.useState)(Array(t?.length).fill("lazy")),{0:h,1:v}=(0,l.useState)(),{0:_,1:O}=(0,l.useState)(!1),w=e=>a("molecules.gallery.imgCountText",{slideCount:e+1,images:t?.length}),N=e=>{c.current&&e.current&&(c.current.style.height=`${e.current.offsetHeight}px`)};return((0,l.useEffect)(()=>{if(!t?.length)return()=>{};N(d[0]);let e=new e4.default(e=>{e.forEach(()=>{N(d.find(e=>e.current?.classList.contains("gallery__source--current"))||d[0])})});return c.current&&e.observe(c.current),()=>{e.disconnect()}},[d,c]),t?.length)?(0,m.jsxs)("div",{className:"gallery oflow-hidden p-relative","data-feature":"Gallery","data-feature-variant":"Slideshow",children:[(0,m.jsx)(tm.Z,{aspectRatio:"landscape",className:"gallery__carousel ma-reset",dots:!0,dotType:"small",gtmLabel:"gallery",onAfterSlideChange:e=>{g(t.map((t,r)=>r<=e+2?"auto":"lazy")),f(e)},onBeforeSlideChange:(e,r)=>{u.current&&(u.current.innerHTML=w(r)),d[e]?.current?.classList.remove("gallery__source--current"),d[r]?.current?.classList.add("gallery__source--current","gallery__source--aligned"),t[r]?.caption?o.current?.classList.add("gallery__caption-icon-container--showing","gallery__caption-icon-container--enable-transition"):(o.current?.classList.add("gallery__caption-icon-container--enable-transition"),o.current?.classList.remove("gallery__caption-icon-container--showing")),N(d[r]||d[0]),tu("gallery-slide-change",null,{category:"Gallery",action:`Transitioned to ${r>e?"next":"previous"} slide (${e+1}/${t.length} to ${r+1}/${t.length})`,label:`Slide ${r+1} img src: ${t[r]?.url}`,value:t.length})},children:t.map((e,t)=>(0,l.createElement)(Y.Z,ty(ty({},e),{},{dataIndex:t,gtmLabel:"gallery",key:e.url,className:"gallery__img",sourceUrl:null,sourceName:null,caption:null,fluid:!0,contain:"all",aspectRatio:2/3,loading:b[t],scaleUp:!0,sizes:["(min-width: 768px) 748px","(min-width: 544px) 556px","calc(100vw - 20px)"],srcSetBreakpoints:[300,375,450,600,750,900,1200,1400,1600,2200],sctrack:i})))}),(0,m.jsx)(tp.Z,{className:"gallery__enlarge-btn pt-reset p-absolute ma-reset",gtmLabel:"gallery-enlarge-button",small:!0,transparent:!0,noBorder:!0,noPadding:!0,noMinWidth:!0,noFocusOutline:!0,ariaLabel:a("molecules.gallery.ariaLabel.fullScreen"),onClick:e=>{v([e.clientX,e.clientY]),O(!0)},"data-testid":"gallery-enlarge-btn",children:(0,m.jsx)(x.Z,{className:"gallery__enlarge-btn-icon pa-xxs",name:"enlarge",color:"baseGrey",size:29})}),(0,m.jsxs)("div",{className:"gallery__footer body-copy-extra-small d-flex",ref:c,children:[(0,m.jsxs)(tp.Z,{className:"body-copy-extra-small",fillHeight:!0,gtmLabel:"gallery-footer-enlarge-button",small:!0,transparent:!0,noBorder:!0,noPadding:!0,noMinWidth:!0,noFocusOutline:!0,onClick:e=>{v([e.clientX,e.clientY]),O(!0)},"data-testid":"gallery-footer-enlarge-btn",children:[(0,m.jsx)("div",{className:"gallery__img-count body-copy-extra-small",ref:u,children:w(0)}),(0,m.jsx)("div",{className:(0,n.Z)("gallery__caption-icon-container d-flex",{"gallery__caption-icon-container--showing":t[0].caption}),ref:o,children:(0,m.jsx)(x.Z,{className:"gallery__caption-icon",name:"caption",color:"baseWhite",width:14,style:{height:null,minHeight:null}})})]}),(0,m.jsx)("div",{className:"p-relative flex-grow-1 text-right fs-italic pa-reset",children:t.map((e,t)=>e.sourceUrl&&e.sourceName?(0,m.jsx)(y.Z,{className:(0,n.Z)("gallery__source pr-reset",{"gallery__source--current gallery__source--aligned":!t,"gallery__source--has-caption":e.caption}),ref:d[t],href:e.sourceUrl,gtmLabel:"gallery-img-src-link",sctrack:(0,j.Z)("Source",i),children:e.sourceName},`${e.url}-src-${e.sourceName}`):(0,m.jsx)("div",{className:(0,n.Z)("gallery__source pr-reset",{"gallery__source--current gallery__source--aligned":!t,"gallery__source--has-caption":e.caption}),ref:d[t],children:e.sourceName},`${e.url}-src-${e.sourceName}`))})]}),(0,m.jsx)(tg,{expansionCoordinates:h,gtmLabel:"gallery-fullscreen",images:t,isOpen:_,isOpenCallback:O,highlightedImg:p})]}):null};function tj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tv(e){for(var t=1;t{let{className:t=null,embedId:r=null,licenceKey:a=null,loaderUrl:s=null,dataFeature:i="greenCarousel"}=e,o=(0,l.useRef)(null),{0:c,1:u}=(0,l.useState)(!1);return((0,l.useEffect)(()=>{u(!0)},[]),(0,l.useEffect)(()=>{if(!o.current)return()=>{};let e=e=>{let{payload:t,type:r}=e.detail||{},a={event:"carouselEvent",carouselDuration:t?.content?.duration,carouselEmbedId:t?.template_id,carouselProvider:"greenCarousel",carouselTitle:t?.content?.title,carouselUrl:`https://immediate-demo.greensuite.io/dashboard/media/podcasts/${t?.content_id||""}`},n=(e,t)=>{window.dataLayer?.push(tv(tv({},a),{},{carouselPercent:t,carouselStatus:e}))};switch(r){case"play":n("start");break;case"ms_25":n("progress",25);break;case"ms_50":n("progress",50);break;case"ms_75":n("progress",75);break;case"ms_100":n("complete")}},t=o.current.querySelector("green-feed-carousel"),r="gfc-player-event";return t?(t.addEventListener(r,e),()=>{t.removeEventListener(r,e)}):()=>{}},[c]),r&&a&&s&&c)?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(F.q,{children:(0,m.jsx)("script",{src:s,"data-license-key":a,async:!0,"data-chromatic":"ignore"})}),(0,m.jsx)("div",{className:(0,n.Z)("chromatic-ignore","green-carousel",t),"data-chromatic":"ignore","data-feature":i,ref:o,children:(0,m.jsx)("green-feed-carousel",{"embed-id":r})})]}):null};function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tw(e){for(var t=1;t{let{className:t=null,contentId:r=null,licenceKey:a=null,loaderUrl:s=null,playerId:i=null,schema:o=null}=e,c=(0,l.useRef)(null);return((0,l.useEffect)(()=>{if(!c.current)return()=>{};let e=e=>{let{payload:t,type:r}=e.detail||{},a={event:"podcastEvent",playerId:i,podcastDuration:t?.content?.duration,podcastId:t?.content_id,podcastProvider:"greenPodcast",podcastTitle:t?.content?.title,podcastUrl:`https://immediate-demo.greensuite.io/dashboard/media/podcasts/${t?.content_id}`},n=(e,t)=>{window.dataLayer.push(tw(tw({},a),{},{podcastPercent:t,podcastStatus:e}))};switch(r){case"play":n("start");break;case"ms_25":n("progress",25);break;case"ms_50":n("progress",50);break;case"ms_75":n("progress",75);break;case"ms_100":n("complete")}},t=c.current.querySelector("green-podcast");return t?(t.addEventListener("gp-event",e),()=>{t.removeEventListener("gp-event",e)}):()=>{}},[]),r&&a&&s&&i)?(0,m.jsxs)(m.Fragment,{children:[o&&(0,m.jsx)(K.Z,{schema:tw({"@context":"https://schema.org","@type":"VideoObject"},o)}),(0,m.jsx)(F.q,{children:(0,m.jsx)("script",{src:s,"data-license-key":a,async:!0})}),(0,m.jsx)("div",{className:(0,n.Z)("green-podcast",t),ref:c,children:(0,m.jsx)("green-podcast",{"embed-id":i,"content-id":r})})]}):null};function tP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tk(e){for(var t=1;t{let{children:t=null,className:r=null,content:a="",hasBackdrop:l=!1,hideCaption:s=!1,image:i={},useCommercialTheme:o=!1,sctrack:c=null}=e;return(0,m.jsxs)("section",{className:(0,n.Z)(r,"highlight-box",{"highlight-box--backdrop":l,"highlight-box--commercial":o}),"data-feature":"Highlight Box","data-feature-variant":o?"commercial":"editorial","data-testid":"highlight-box",children:[a&&(0,m.jsx)("div",{className:"highlight-box__content editor-content",dangerouslySetInnerHTML:{__html:a}}),i&&Object.keys(i).length>0&&(0,m.jsx)("div",{className:"highlight-box__image",children:(0,m.jsx)(Y.Z,tk(tk({fluid:!0},i),{},{hideCaption:s,maxWidth:767,sizes:["(min-width: 992px) 205px","100vw"],srcSetBreakpoints:[1982,991,820,615,410,205],sctrack:(0,j.Z)("HighlightBox",c)}))}),t]})};function tZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tC(e){for(var t=1;t{let{images:t=null,sctrack:r=null}=e,{t:a}=(0,s.$G)();return t&&t.length?(0,m.jsx)("div",{className:"inline-gallery","data-testid":"inline-gallery","data-feature":"Gallery","data-feature-variant":"VerticalInline",children:t.map((e,n)=>(0,m.jsxs)("div",{className:"inline-gallery__item","data-testid":"inline-gallery-item",children:[(0,m.jsx)("p",{className:"inline-gallery__index",children:a("molecules.inlineGallery.imageCount",{imageCount:n+1,totalImages:t.length})}),(0,l.createElement)(Y.Z,tC(tC({},e),{},{dataIndex:n,gtmLabel:"gallery",key:e.key,className:"inline-gallery__image",fluid:!0,contain:"all",aspectRatio:"dynamic",loading:"lazy",scaleUp:!0,srcSetBreakpoints:[325,375,650,750,975,1100,1300,2200,3300],sizes:["(min-width: 992px) 940px","(min-width: 768px) 728px","(min-width: 544px) 556px","calc(100vw - 20px)"],sctrack:(0,j.Z)("InlineGallery",r)})),e.title&&(0,m.jsx)("p",{className:"inline-gallery__heading","data-testid":"inline-gallery-item-title",children:(0,en.Z)(e.title)}),e.description&&(0,m.jsx)("div",{className:"inline-gallery__description","data-testid":"inline-gallery-item-description",children:(0,en.Z)(e.description,`inline-gallery-item-description-${n}`)}),(0,m.jsx)(A.Z,{slotKey:"vertical-gallery",index:n+1})]},`${e.url}-src-${e.sourceName}`))}):null};function tD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tT(e){for(var t=1;t{let{captioned:t,consent:r=t$,requisiteConsentOverride:a=!1,sctrack:i=null,url:o}=e,{t:c}=(0,s.$G)(),{id:u,purposes:d}=r,p=(0,es.Z)({purposes:d,vendorIds:[u]}),f=a||p;return((0,e1.Z)({src:f?"https://www.instagram.com/embed.js":null,defer:!0}),l.useEffect(()=>{let e=window;e.instgrm?.Embeds?.process&&e.instgrm.Embeds.process()}),f)?(0,m.jsx)("div",{className:"instagram-embed",children:(0,m.jsx)("blockquote",tT(tT({className:"instagram-media","data-instgrm-permalink":o,"data-instgrm-version":"14","data-testid":"instagram-embed-media"},t&&{"data-instgrm-captioned":!0}),{},{children:(0,m.jsxs)(y.Z,{href:o,styled:!0,target:"_blank",sctrack:(0,j.Z)("InstagramEmbed",i),children:[(0,m.jsx)(x.Z,{color:"baseBlack",name:"instagram",size:50,className:(0,n.Z)("mb-xxs")},"1"),`${c("atoms.instagramEmbed.viewPostOnInstagram")}`]})}))}):(0,m.jsx)(el.Z,{providerName:"Instagram",className:"mb-md",consentModalButton:!0,requiredConsent:{purposeIds:d,vendorIds:[u]}})};tL.displayName="InstagramEmbed";var tI=r(25370);let tR=e=>{let{value:t}=e;return t?(0,m.jsx)("div",{className:"mrm",children:(0,m.jsx)(tI.Z,{children:(0,m.jsx)("script",{src:t})})}):null};tR.displayName="MRM";var tz=r(17812),tB=r(63038);let tW=e=>{let{quote:t=[],author:r=null}=e;return(0,m.jsxs)("blockquote",{className:"pullquote heading-4",children:[(0,m.jsxs)("div",{className:"pullquote__quote","data-testid":"pullquote-quote",children:[(0,m.jsx)(x.Z,{name:"pullquote",color:"inherit",size:15,width:14,height:10,className:"pullquote__icon--quote"}),t?.map(e=>m.jsx("span",{className:"pullquote__line","data-testid":"pullquote-line",children:e},e)),(0,m.jsx)(x.Z,{name:"pullquote",color:"inherit",size:15,width:14,height:10,className:"pullquote__icon--endquote ml-xs"})]}),r&&(0,m.jsx)("footer",{className:"pullquote__author body-copy-small","data-testid":"pullquote-author",children:r})]})};tW.displayName="Pullquote";var tM=r(98001),tA=r(41329),tq=r(75123);let tG=e=>{let{seconds:t,className:r=null}=e,a=Math.floor(t/3600),n=Math.round(t%3600/60),{t:l}=(0,s.$G)(),i=[a>0?l("atoms.time.formatTimeHours",{count:a,hours:a}):"",n>0?l("atoms.time.formatTimeMins",{count:n,minutes:n}):""].filter(e=>e.length).join(` ${l("atoms.time.conjunction")} `);return(0,m.jsx)("time",{className:r,dateTime:`PT${a}H${n}M`,children:i})};tG.displayName="Time";class tF{constructor(){this.meatMatrix={turkey:{name:"Turkey",baseWeight:500,baseTime:1200,steps:[{temperature:"190C/170C fan/gas 5"},{temperature:"180C/160C fan/gas 4"}]},beef_rare:{name:"Beef (rare)",baseWeight:450,baseTime:1200,steps:[{temperature:"220C/200C fan/gas 7"}]},beef_medium:{name:"Beef (medium)",baseWeight:450,baseTime:1500,steps:[{temperature:"220C/200C fan/gas 7"}]},beef_well_done:{name:"Beef (well done)",baseWeight:450,baseTime:1800,steps:[{temperature:"220C/200C fan/gas 7"}]},lamb_rare:{name:"Lamb (rare)",baseWeight:450,baseTime:1200,steps:[{temperature:"220C/200C fan/gas 7"}]},lamb_medium:{name:"Lamb (medium)",baseWeight:450,baseTime:1500,steps:[{temperature:"220C/200C fan/gas 7"}]},lamb_well_done:{name:"Lamb (well done)",baseWeight:450,baseTime:1800,steps:[{temperature:"220C/200C fan/gas 7"}]},venison_rare:{name:"Venison (rare)",baseWeight:450,baseTime:1200,steps:[{temperature:"220C/200C fan/gas 7"}]},venison_medium:{name:"Venison (medium)",baseWeight:450,baseTime:1500,steps:[{temperature:"220C/200C fan/gas 7"}]},venison_well_done:{name:"Venison (well done)",baseWeight:450,baseTime:1800,steps:[{temperature:"220C/200C fan/gas 7"}]},pork:{name:"Pork",baseWeight:450,baseTime:900,steps:[{temperature:"230C/210C fan/gas 8"},{temperature:"180C/160C fan/gas 4"}]},chicken:{name:"Chicken",baseWeight:500,baseTime:1200,steps:[{temperature:"200C/180C fan/gas 6"},{temperature:"180C/160C fan/gas 4"}]},goose:{name:"Goose",baseWeight:500,baseTime:1200,steps:[{temperature:"220C/200C fan/gas 7"},{temperature:"180C/160C fan/gas 4"}]},duck:{name:"Duck",baseWeight:500,baseTime:1200,steps:[{temperature:"220C/200C fan/gas 7"},{temperature:"180C/160C fan/gas 4"}]}}}getRoastTimes(e,t){let r=Math.floor(t/e.baseWeight*e.baseTime),a={stepTime:r,baseTime:e.baseTime,totalTime:r};return e.steps.length>1&&("Pork"===e.name?a.totalTime=25/15*r+e.baseTime:a.totalTime=r+e.baseTime),a}getRoastSteps(e,t,r){let{steps:a}=e,n=[];return 1===e.steps.length?n.push({instruction:"Cook for",time:t,temperature:a[0].temperature}):n.push({instruction:"Cook for",time:r,temperature:a[0].temperature},{instruction:"Turn down the oven and cook for a further",time:"Pork"===e.name?25/15*t:t,temperature:a[1].temperature}),n}getRoastDetails(e,t){let r=this.meatMatrix[e],{name:a}=r,n={};if(r.baseWeight<=t){let{totalTime:e,stepTime:a,baseTime:l}=this.getRoastTimes(r,t);n.totalTime=e,n.roastSteps=this.getRoastSteps(r,a,l)}else n.error=`Minimum weight for ${a} is ${r.baseWeight}g / ${450===r.baseWeight?"1lb":"1lb 2oz"}`;return n}}tF.displayName="utils.RoastCalculations";class tV{toPounds(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"f",a={kg:()=>2.2046226218*+t,g:()=>.0022046226218*+t,lbs:()=>+t,oz:()=>+t/16};return({f:()=>a[e](),w:()=>this.extractWholeNumber(a[e]())+this.extractWholeNumber(this.extractDecimalNumberConvertToImperial(a[e]()).toFixed(1)/16),d:()=>this.extractDecimalNumber(a[e]()),di:()=>this.extractDecimalNumberConvertToImperial(a[e]()).toFixed(1)%16})[r]()}toOunces(e,t){return({kg:()=>35.2739619488*+t,g:()=>.0352739619488*+t,lbs:()=>16*+t,oz:()=>+t})[e]()}extractWholeNumber(e){return Math.trunc(e)}extractDecimalNumber(e){return e%1}extractDecimalNumberConvertToImperial(e){return this.toOunces("lbs",e%1)}toKilograms(e,t){return({kg:()=>+t,g:()=>+t/1e3,lbs:()=>+t/2.2046226218,oz:()=>+t/35.2739619488})[e]()}toGrams(e,t){return({kg:()=>1e3*+t,g:()=>+t,lbs:()=>+t/.0022046226218,oz:()=>+t/.0352739619488})[e]()}}tV.displayName="utils.WeightConverter";var tU=e=>`${e}`.replace(/(\.)(?!.*\.)|\./g,"$1").replace(/[^\d.]/g,"").replace(/^0*(.+)$/g,"$1").replace(/^\./g,"0.");let tH={metric:{unit:["kg","g"]},imperial:{unit:["lbs","oz"]}},tY={metric:{kg:"",g:""},imperial:{lbs:"",oz:""}};var tK=()=>{let{t:e}=(0,s.$G)();return[{value:"beef_rare",text:e("organisms.roastCalculator.meat.beefRare")},{value:"beef_medium",text:e("organisms.roastCalculator.meat.beefMedium")},{value:"beef_well_done",text:e("organisms.roastCalculator.meat.beefWellDone")},{value:"chicken",text:e("organisms.roastCalculator.meat.chicken")},{value:"duck",text:e("organisms.roastCalculator.meat.duck")},{value:"goose",text:e("organisms.roastCalculator.meat.goose")},{value:"lamb_rare",text:e("organisms.roastCalculator.meat.lambRare")},{value:"lamb_medium",text:e("organisms.roastCalculator.meat.lambMedium")},{value:"lamb_well_done",text:e("organisms.roastCalculator.meat.lambWellDone")},{value:"pork",text:e("organisms.roastCalculator.meat.pork")},{value:"turkey",text:e("organisms.roastCalculator.meat.turkey")},{value:"venison_rare",text:e("organisms.roastCalculator.meat.venisonRare")},{value:"venison_medium",text:e("organisms.roastCalculator.meat.venisonMedium")},{value:"venison_well_done",text:e("organisms.roastCalculator.meat.venisonWellDone")}]};function tX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function tJ(e){for(var t=1;t{let t,{className:r=null,title:a=null,meatTypeDefault:i=null}=e,{0:o,1:c}=(0,l.useState)(!1),{0:u,1:d}=(0,l.useState)(null),f=(0,l.useRef)(null),{0:b,1:g}=(0,l.useState)(null),y=tK();i&&(t=y.find(e=>e.value===i));let j=new tF,{0:v,1:_}=(0,l.useState)(!1),{0:O,1:w}=(0,l.useState)("metric"),{0:N,1:P}=(0,l.useState)({metric:"g",imperial:"lbs"}),{0:k,1:S}=(0,l.useState)(!1),{0:Z,1:C}=(0,l.useState)(tY),E=()=>{let e=new tV;return"metric"===O?e.toGrams(N[O],Z[O][N[O]]):e.toGrams("lbs",Z[O].lbs)+e.toGrams("oz",Z[O].oz)};(0,l.useEffect)(()=>{let e=E(),t=null;return o&&(d(j.getRoastDetails(f.current?.value||"",e)),S(!0),t=setTimeout(()=>{S(!1)},500)),()=>clearTimeout(t)},[Z,b]);let D=e=>{C(tJ(tJ({},Z),{},{[O]:tJ(tJ({},Z[O]),{},{[e.target.id]:tU(e.target.value)})}))},T=e=>{let t=E();d(j.getRoastDetails(f.current?.value||"",t)),!1===o&&c(!o),e.preventDefault()},{t:$}=(0,s.$G)();return(0,m.jsxs)("div",{className:(0,n.Z)("roast-calculator",r),"data-testid":"roast-calculator",children:[a&&(0,m.jsx)("div",{className:"roast-calculator__header pt-xs pb-xs text-center",children:(0,m.jsx)(p.Z,{size:2,styledSize:6,color:"baseGrey",children:a})}),(0,m.jsxs)(tA.Z,{className:"roast-calculator__elements d-flex align-items-center flex-direction-column pt-md pb-sm",onSubmit:T,children:[(0,m.jsxs)(tA.Z.Group,{inputId:"select-conversion",children:[(0,m.jsx)(tA.Z.Label,{className:"sr-only",children:"Toggle Unit"}),(0,m.jsx)(tA.Z.Toggle,{name:"toggle",className:"mb-xs",leftLabel:$("organisms.roastCalculator.imperialLabel"),rightLabel:$("organisms.roastCalculator.metricLabel"),defaultChecked:!0,onClick:()=>{w("imperial"===O?"metric":"imperial"),o&&c(!o),C(tY),d(null)},legacyBehaviour:!0})]}),(0,m.jsxs)(tA.Z.Group,{className:"roast-calculator__form-group",inputId:"select-meat",children:[(0,m.jsx)(tA.Z.Label,{className:"sr-only",children:$("organisms.roastCalculator.sr.selectMeat")}),(0,m.jsx)(tA.Z.Input,{as:"select",ref:f,options:y,onChange:()=>{g(f.current?.value||null)},defaultValue:t?.value})]}),(0,m.jsxs)("div",{"data-testid":"input",className:(0,n.Z)("roast-calculator__input-section d-flex align-items-baseline p-relative pl-md mb-md",{"roast-calculator__input-section--has-focus":v}),children:["metric"===O&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(tA.Z.Group,{inputId:N[O],className:"roast-calculator__input-group d-flex flex-grow-1 mb-reset",children:[(0,m.jsx)(tA.Z.Label,{className:"sr-only",children:$("organisms.roastCalculator.sr.metricConverterLabel",{unit:N[O]})}),(0,m.jsx)("input",{onChange:D,value:Z[O][N[O]],autoComplete:"off",type:"text",inputMode:"decimal",className:(0,n.Z)("roast-calculator__input pt-xs pb-xs fw-600",{"roast-calculator__input--error":u?.error}),id:N[O],placeholder:"0",onFocus:()=>_(!0),onBlur:()=>_(!1)})]}),(0,m.jsxs)(tA.Z.Group,{inputId:"unit-change",className:"roast-calculator__input-units mb-reset",children:[(0,m.jsx)(tA.Z.Label,{className:"sr-only",children:$("organisms.roastCalculator.sr.metricConverterUnit",{converter:O})}),(0,m.jsx)("select",{onChange:e=>{P(tJ(tJ({},N),{},{[O]:e.target.value})),o&&c(!o),C(tY),d(null)},value:N[O],className:"roast-calculator__select",id:"unit-change",onFocus:()=>_(!0),onBlur:()=>_(!1),children:tH[O].unit.map(e=>(0,m.jsx)("option",{value:e,children:e},e))})]})]}),"imperial"===O&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(tA.Z.Group,{inputId:"lbs",className:"roast-calculator__input-group d-flex mb-reset",children:[(0,m.jsx)(tA.Z.Label,{className:"sr-only",children:$("organisms.roastCalculator.sr.imperialValuePounds")}),(0,m.jsx)("input",{onChange:D,value:Z[O].lbs,autoComplete:"off",type:"text",inputMode:"decimal",className:"roast-calculator__input pt-xs pb-xs fw-600",id:"lbs",placeholder:"0",onFocus:()=>_(!0),onBlur:()=>_(!1)})]}),(0,m.jsx)("div",{id:"imperial-large",className:"roast-calculator__unit body-copy-extra-small text-align-right pr-lg",children:"lbs"}),(0,m.jsxs)(tA.Z.Group,{inputId:"oz",className:"roast-calculator__input-group mb-reset",children:[(0,m.jsx)(tA.Z.Label,{className:"sr-only",children:$("organisms.roastCalculator.sr.imperialValueOunces")}),(0,m.jsx)("input",{onChange:D,value:Z[O].oz,autoComplete:"off",type:"text",inputMode:"decimal",className:"roast-calculator__input pt-xs pb-xs ml-md fw-600",id:"oz",placeholder:"0",onFocus:()=>_(!0),onBlur:()=>_(!1)})]}),(0,m.jsx)("div",{id:"imperial-small",className:"roast-calculator__unit body-copy-extra-small text-align-right pr-md",children:"oz"})]})]}),!o&&(0,m.jsx)(tp.Z,{className:"mb-sm",id:"calculateBtn",text:"Calculate",onClick:T})]}),o&&u?.error&&(0,m.jsxs)("div",{className:"roast-calculator__results",children:[(0,m.jsx)("div",{className:"roast-calculator__result-header roast-calculator__result-header--error pt-xs pb-xs",children:(0,m.jsx)("p",{className:"body-copy-extra-small",children:(0,m.jsx)("span",{className:"body-copy-extra-small fw-600",children:"Error:"})})}),(0,m.jsx)("div",{className:"roast-calculator__method roast-calculator__method--error pt-md pb-md body-copy-small","data-testid":"error",children:u?.error})]}),o&&!u?.error&&(0,m.jsxs)("div",{className:"roast-calculator__results","data-testid":"result",children:[(0,m.jsx)("div",{className:"roast-calculator__result-header pt-xs pb-xs",children:(0,m.jsxs)("p",{className:"ma-reset",children:[(0,m.jsx)("span",{className:"d-inline-block body-copy-extra-small pr-xs",children:"Total cooking time:"}),!k&&(0,m.jsx)("span",{className:"body-copy-small fw-600","data-testid":"total-time",children:(0,m.jsx)(tG,{seconds:u?.totalTime})})]})}),(0,m.jsxs)("div",{className:"roast-calculator__method pt-md pb-md",children:[k&&(0,m.jsx)("div",{className:"roast-calculator__spinner d-flex align-items-center justify-content-center","data-testid":"spinner",children:(0,m.jsx)(x.Z,{name:"loading",size:72,spinning:!0})}),!k&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(h.Z,{"data-testid":"steps-list",children:u?.roastSteps.map((e,t)=>m.jsxs(tq.Z,{className:"roast-calculator__method-list-item d-flex mb-xs",children:[m.jsx("div",{className:"roast-calculator__counter-container pr-xs",children:m.jsx("span",{className:"roast-calculator__counter-badge p-relative d-inline-flex align-items-center justify-content-center",children:m.jsx("span",{className:"roast-calculator__counter body-copy-small",children:t+1})})}),m.jsxs("div",{className:"roast-calculator__Steps-container",children:[m.jsxs("p",{"data-testid":`instruction-${t+1}`,className:"roast-calculator__method-instruction ma-reset mb-xxs body-copy-small fw-600",children:[e.instruction," ",m.jsx(tG,{seconds:e.time})]}),m.jsx("p",{"data-testid":`sub-instruction-${t+1}`,className:"roast-calculator__method-sub-instruction ma-reset body-copy-extra-small",children:e.temperature})]})]},e.temperature))}),(0,m.jsx)("div",{className:"roast-calculator__reset-button-container pt-xxs pb-sm text-center",children:(0,m.jsx)(tp.Z,{onClick:()=>{c(!o),C(tY)},"data-testid":"reset-button",children:$("organisms.roastCalculator.button.resetText")})})]})]})]})]})};tQ.displayName="RoastCalculator";var t0=r(20630),t1=r(55634),t2=r.n(t1);let t5=e=>e.replace(/<[^>]+>|&[^;]+;/g,""),t4=e=>{let{ariaLabel:t=null,className:r=null,columnHeadings:a,enableSorting:s=!0,highlightedColumn:i=null,rows:o=null,stickyFirstColumn:c=null,type:u=null,sctrack:d=null}=e,{0:p,1:f}=(0,l.useState)(null),b=async e=>{let t=e===p?.column&&p?.direction==="ascending"?"descending":"ascending",r=a[e].slug;"ascending"===t?o.sort((e,t)=>t2()(t5(e[r].toLowerCase()),t5(t[r].toLowerCase()))):o.reverse(),f({column:e,direction:t})},g=(0,l.useRef)(null),h=(0,l.useRef)(null),y=(0,l.useRef)(null),v="gridView"===u,_=s&&!v;return((0,l.useEffect)(()=>{if(!v)return;let e=g.current,t=h.current,r=y.current;if(!e||!t||!r)return;let a=()=>{setTimeout(()=>{if("function"!=typeof e.scrollTo)return;e.scrollTo(0,0);let n=(t.offsetWidth-e.offsetWidth-r.offsetWidth)/2;e.scrollTo({left:t.getBoundingClientRect().left-e.getBoundingClientRect().left+n,behavior:"smooth"}),window.removeEventListener("focus",a)},1e3)};window.addEventListener("focus",a),document.hidden||a()},[]),a?.length)?(0,m.jsx)("div",{ref:g,className:(0,n.Z)(r,"table oflow-x-auto d-flex p-relative body-copy-small",u&&`table--${u.toLowerCase()}`),children:(0,m.jsxs)("table",{className:(0,n.Z)("table__container",{"pr-xs pt-sm pb-sm":v}),"aria-label":t,children:[(0,m.jsx)("thead",{children:(0,m.jsx)("tr",{children:a.map((e,t)=>{let r=i===e.slug;if(e.name?.toString().includes("#colspan#")){if(t)return null;e.name=""}let l=(()=>{let e=1;for(let r=t+1;r1?e:null})();return(0,m.jsxs)("th",{"data-testid":"table-heading",scope:"col",ref:e=>{t||(y.current=e),r&&(h.current=e)},className:(0,n.Z)("table__cell table__cell--heading",{"p-relative":!v,"table__cell--highlight-col":r,"table__cell--sticky":c&&!t,"table__cell--first-col":!t,"table__cell--sort-key":p?.column===t}),colSpan:l,"aria-label":e.name||e.displayText||e.slug,onClick:async()=>_&&b(t),"data-sctrack":(0,j.Z)(`Table-Sort-${e.slug}`,d),children:[(0,en.Z)(e.displayText||e.name||""),_&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(x.Z,{name:"caret",size:9,className:(0,n.Z)("table__sort-icon table__sort-icon--ascending",{"table__sort-icon--showing":p?.column===t&&p?.direction==="ascending"})}),(0,m.jsx)(x.Z,{name:"caret",size:9,rotate:180,className:(0,n.Z)("table__sort-icon table__sort-icon--descending",{"table__sort-icon--showing":p?.column===t&&p?.direction==="descending"})})]})]},e.slug)})},"headings-row")}),o&&(0,m.jsx)("tbody",{children:o.map(e=>(0,m.jsx)("tr",{className:"table__row",children:a.map((t,r)=>{let l=v&&!r,s=!l&&!0===e[t.slug],o=!l&&!1===e[t.slug];if(e[t.slug]?.toString().includes("#colspan#")){if(r)return null;e[t.slug]=""}let u=(()=>{let t=1;for(let n=r+1;n1?t:null})();return(0,m.jsxs)(l?"th":"td",{scope:l?"row":null,className:(0,n.Z)("table__cell table__cell--data",{"table__cell--ticked":s,"table__cell--highlight-col":i===t.slug,"table__cell--sticky":c&&!r,"table__cell--first-col":!r}),colSpan:u,children:[o?(0,m.jsx)("span",{className:"sr-only",children:"no"}):null,s?(0,m.jsx)(x.Z,{className:"ma-auto",name:"tick",color:"baseWhite",size:18,srOnly:"yes"}):(0,en.Z)(String(e[t.slug]??""))]},t.slug)})},JSON.stringify(e)))})]})}):null};function t6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function t8(e){for(var t=1;t{let a={key:`node-${t}`};switch(e.type){case"html":if(!e?.data?.value?.replace(" ","").trim())return null;return(0,en.Z)(e.data.value,a.key);case"image":return(0,m.jsx)(Y.Z,t8(t8(t8({},a),e.data),{},{avif:r,srcSetBreakpoints:[325,375,650,750,975,1100,1300,2200,3300],sizes:["(min-width: 992px) 940px","(min-width: 768px) 728px","(min-width: 544px) 556px","calc(100vw - 20px)"],maxWidth:700,fillContainerWidth:!0}));case"gallery":return(0,m.jsx)(tx,t8({},e.data),a.key);case"green-carousel":return(0,m.jsx)(t_,t8(t8({},e.data),{},{dataFeature:"greenCarousel"}),a.key);case"green-podcast":return(0,m.jsx)(tN,t8({},e.data),a.key);case"green-video":return(0,m.jsx)(et,t8(t8({},e.data),{},{isContentVideo:!0}),a.key);case"inline-gallery":return(0,m.jsx)(tE,t8(t8({},a),e.data));case"highlight-box":return(0,m.jsx)(tS,t8(t8({},a),e.data));case"oembed":return(0,m.jsx)(ed,t8(t8({},a),e.data));case"riddle":return(0,m.jsx)(ed,t8(t8(t8({},a),e.data),{},{dataFeature:"Riddle",htmlAttributes:{"data-riddle-id":e.data.id},itemSpacingY:null}));case"squirrel-affiliate-embed":case"squirrel-affiliate-playlist":return(0,m.jsx)(t0.Z,t8(t8({},a),e.data));case"editorial-ratings":return(0,m.jsx)(tM.Z,t8(t8({},a),e.data));case"pullquote":return(0,m.jsx)(tW,t8(t8({},a),e.data));case"video":case"audio":return(0,m.jsx)(eK,t8(t8(t8({},a),e.data),{},{type:e.type}));case"newsletter-signup":return(0,m.jsx)(tz.Z,t8(t8({},a),e.data));case"mrm":return(0,m.jsx)(tR,t8({},e.data),a.key);case"table":return(0,m.jsx)(t4,t8({},e.data),a.key);case"burdaffi-placement":return(0,m.jsx)(eQ.Z,t8(t8({},a),e.data));case"ediplayer-video-placement":return(0,m.jsx)(e0.Z,t8(t8({},a),e.data));case"instagram-embed":return(0,m.jsx)(tL,t8(t8({},a),e.data));case"bmp-survey":return(0,m.jsx)(eJ,t8(t8({},a),e.data));case"onnetwork-player":return(0,m.jsx)(tB.Z,t8(t8({},a),e.data));case"roast-calculator":return(0,m.jsx)(tQ,t8(t8({},a),e.data));case"facebook-embed":return(0,m.jsx)(e5,t8(t8({},a),e.data));default:return null}},t3=e=>{let{content:t,postType:r}=e,a=(0,eX.ZP)(eX.sK)&&"article"===r,n=t?.reduce((e,t,r)=>{let n=t7(t,r,a);if(null===n)return e;if(eC(n)){let t=eE(n);return Array.isArray(t)?[...e,...t]:[...e,t]}return l.isValidElement(n)?[...e,n]:Array.isArray(n)?[...e,...n]:[...e,n]},[]);return n?.map((e,t)=>l.isValidElement(e)?l.cloneElement(e,{key:e.key||`node-${t}`}):e)};t3.defaultProps={content:[],postType:null},t3.displayName="TinyMceContent.TinyMceContentNodes";var t9=r(58500);let re=e=>{let{position:t,className:r="",relatedEdiPlayer:a=null,ediplayerSettings:s=null}=e,i=(0,t9.Z)();if(!a)return null;let o=s?.mobilePosition||"above_an_article",c=s?.desktopPosition||"in_an_article",u="no_player_at_all"!==o&&o===t,d="no_player_at_all"!==c&&c===t;if(i&&!u||!i&&!d)return null;let p=i?`mobile-${t}`:`desktop-${t}`,f=[];return o!==t&&"no_player_at_all"!==o&&f.push("hidden-for-sm-down"),c!==t&&"no_player_at_all"!==c&&f.push("hidden-for-md-up"),(0,m.jsx)("div",{className:(0,n.Z)("mt-sm mb-sm container hidden-print",p,...f,r),children:l.createElement(e0.Z,a)})};re.displayName="EdiPlayerRenderer";let rt=["h2","h3","h4","h5","h6"],rr=e=>rt.find(t=>e.some(e=>eg(e)===t))||null,ra=(e,t)=>eg(e)===t,rn=e=>{let t=rr(e);if(!t)return e.length;let r=e.reduce((e,r,a)=>(ra(r,t)&&(e.count+=1,1===e.count&&(e.index=a)),e),{count:0,index:-1});return r.index>=0?r.index:e.length};var rl=(e,t,r)=>{let a=rn(e);eS(e,a,(0,m.jsx)(re,{position:"in_an_article",relatedEdiPlayer:t,ediplayerSettings:r},a))};let rs=e=>e.displayName??e.name,ri=e=>{let{content:t=[],sponsorIsNative:r=!1,injectAds:a=!1,injectNextToRead:n=!1,nextToRead:s={},relatedEdiPlayer:i=null,ediplayerSettings:o=null,slots:c,suppressAllAds:u=!1,className:d=null,postType:p=null}=e,f=(0,l.useContext)(q.Z),b=f?.adSettings?.targets?.channel||"post",g=t3({content:t,postType:p});n&&eU(g,s),i&&rl(g,i,o),a&&c&&Object.keys(c)?.length===4&&ez(g,c,r,b);let h=["ol","ul",rs(et),rs(eK),rs(A.Z),rs(ed),rs(e0.Z),rs(N)],y=[rs(A.Z),rs(e0.Z),rs(N)],x=u?g:M(g,h,y,f?.adSettings?.targets?.channel);return(0,m.jsx)(G.Z,{className:d,children:x})};ri.displayName="TinyMceContent";var ro=r(4730),rc=r(42473),ru=r.n(rc);let rd=["className","dataTestId","layout","aspectRatio","overlayIcon","avif","containIn16x9","sctrack"];function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function rm(e){for(var t=1;t{let r={masthead:{dynamic:{aspectRatio:"dynamic",maxWidth:708,srcSetBreakpoints:[350,440,700,800,1060,1200,1420,2130],sizes:["(min-width: 992px) 400px","(min-width: 768px) 708px","(min-width: 544px) 536px","calc(100vw - 40px)"]},letterbox:{aspectRatio:"letterbox",maxWidth:708,srcSetBreakpoints:[350,440,700,800,1060,1200,1420,2130],sizes:["(min-width: 992px) 400px","(min-width: 768px) 708px","(min-width: 544px) 536px","calc(100vw - 40px)"]},landscape:{aspectRatio:"landscape",maxWidth:708,srcSetBreakpoints:[350,440,700,800,1060,1200,1420,2130],sizes:["(min-width: 992px) 400px","(min-width: 768px) 708px","(min-width: 544px) 536px","calc(100vw - 40px)"]},portrait:{aspectRatio:"portrait",maxWidth:708,srcSetBreakpoints:[350,440,700,800,1060,1200,1420,2130],sizes:["(min-width: 992px) 400px","(min-width: 768px) 708px","(min-width: 544px) 536px","calc(100vw - 40px)"]},square:{aspectRatio:"square",maxWidth:708,srcSetBreakpoints:[350,440,700,800,1060,1200,1420,2130],sizes:["(min-width: 992px) 400px","(min-width: 768px) 708px","(min-width: 544px) 536px","calc(100vw - 40px)"]}},image:{letterbox:{aspectRatio:"letterbox",maxWidth:940,srcSetBreakpoints:[300,400,556,675,800,940,1200,1500,1880,2820,3760],sizes:["(min-width: 768px) 940px","(min-width: 544px) 556px","calc(100vw - 20px)"]}},headline:{portrait:{aspectRatio:"portrait",maxWidth:556,srcSetBreakpoints:[300,375,450,650,900,1100,1400,1800,2200],sizes:["(min-width: 768px) 460px","(min-width: 544px) 556px","calc(100vw - 20px)"]},square:{aspectRatio:"square",maxWidth:556,srcSetBreakpoints:[300,375,450,650,900,1100,1400,1800,2200],sizes:["(min-width: 768px) 460px","(min-width: 544px) 556px","calc(100vw - 20px)"]}}}[e]?.[t];return ru()(!t||!!r,`The "${t}" aspect ratio is not currently configured for the "${e}" layout`),r||({masthead:{aspectRatio:"square",maxWidth:708,srcSetBreakpoints:[350,440,700,800,1060,1200,1420,2130],sizes:["(min-width: 992px) 400px","(min-width: 768px) 708px","(min-width: 544px) 536px","calc(100vw - 40px)"]},headline:{aspectRatio:"landscape",maxWidth:980,srcSetBreakpoints:[300,400,550,750,1e3,1200,1500,1750,2250,2750,3500,4500],sizes:["(min-width: 992px) 980px","(min-width: 768px) 748px","(min-width: 544px) 556px","calc(100vw - 20px)"]},image:{aspectRatio:"landscape",maxWidth:940,srcSetBreakpoints:[300,400,556,675,800,940,1200,1500,1880,2820,3760],sizes:["(min-width: 768px) 940px","(min-width: 544px) 556px","calc(100vw - 20px)"]}})[e]},rb=e=>{let{className:t=null,dataTestId:r=null,layout:a="masthead",aspectRatio:l=null,overlayIcon:s=null,avif:i=!1,containIn16x9:o=!1,sctrack:c=null}=e,u=(0,ro.Z)(e,rd),d=(0,m.jsx)(Y.Z,rm(rm(rm(rm({},u),rf(a,l)),{},{className:(0,n.Z)("post-header-image",{"post-header-image--contained":o},t),fluid:!0,scaleUp:!0,preload:!0,avif:i},o&&{contain:"all",constrainToParentDimensions:!0}),{},{sctrack:(0,j.Z)("PostHeaderImage",c)})),p=o?(0,m.jsxs)("div",{className:"post-header-image__16-9-container",children:[(0,m.jsx)("div",{className:"post-header-image__blurred-bg",style:{backgroundImage:`url(${String(u.url??"")})`}}),(0,m.jsx)("div",{className:"post-header-image__overlay"}),d]}):d;return(0,m.jsxs)("div",{className:"p-relative","data-testid":r,children:[s&&(0,m.jsx)("div",{className:"post-header-image__hero-image-overlay-icon p-absolute d-grid justify-content-center align-content-center",children:(0,m.jsx)(x.Z,{name:s,color:"baseWhite",size:60})}),p]})};rb.displayName="PostHeaderImage";let rg=e=>{let{items:t=[],className:r=null}=e,{t:a}=(0,s.$G)();return t?.length?(0,m.jsx)("nav",{className:(0,n.Z)("glossary-nav","container mb-lg pb-lg",r),"aria-label":a("molecules.glossaryNav.ariaLabel.nav"),children:(0,m.jsx)("ol",{className:"glossary-nav__list",children:t.map(e=>{let{target:t,title:r,label:a}=e;return(0,m.jsx)("li",{className:"glossary-nav__list__item",children:l.createElement(y.Z,{className:"glossary-nav__list__link",href:t,title:r},a)},t)})})}):null};rg.displayName="GlossaryNav";var rh=r(67695);function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function rx(e){for(var t=1;t{let{className:t=null,searchResults:r={items:[],totalItems:0,limit:0},title:a=null,description:i=null,type:o=null,breadcrumbs:c=null,canonicalUrl:u=null,author:d=null,editorialContent:p=null,termData:f=null,social:b=null,image:h=null,includeFirstPagePagination:y=!1,useTrailingSlash:x=!0,navigation:j=[],addVideoSlot:v=null,videoSlotBelowRow:_=null}=e,O=!!d?.avatar,N=!O&&!!h,{t:P}=(0,s.$G)(),k=!r?.items?.length,{0:S,1:Z}=(0,l.useMemo)(()=>f?[f.filter(e=>{let{key:t}=e;return!("biography"===t||"known-for"===t)}),f.filter(e=>{let{key:t}=e;return"biography"===t||"known-for"===t})]:[void 0,void 0],[f]);return(0,l.useEffect)(()=>{(0,rh.qv)()},[]),(0,m.jsxs)("div",{className:(0,n.Z)(t,"container mb-md"),"data-feature":"Archive page","data-feature-variant":o,children:[c&&(0,m.jsx)(w,{items:c,className:"mt-sm mb-sm",canonicalUrl:u}),j&&(0,m.jsx)(rg,{items:j}),d?(0,m.jsx)(g,{author:d,className:"pa-md mb-md",preloadImage:O}):(0,m.jsxs)("div",{className:"row",children:[h&&(0,m.jsx)("div",{className:"col-md-6 mb-md",children:(0,m.jsx)(rb,rx(rx({},h),{},{aspectRatio:"landscape",layout:"image",preload:N}))}),(0,m.jsxs)("div",{className:"col-md-6",children:[a&&(0,m.jsx)(rO,{id:"title",size:1,children:a}),i&&(0,m.jsx)("div",{className:"mt-xs",children:i}),b&&(0,m.jsx)(rw,{coloured:!0,facebookProfile:b.facebook,twitterHandle:b.twitter,instagramProfile:b.instagram,className:"mt-xs"}),(0,m.jsx)("div",{className:"mt-xs",children:S&&(0,m.jsx)(rN,{"aria-label":"terms rail",children:S.map(e=>{let{key:t,value:r,label:a}=e;return(0,m.jsxs)(rN.Item,{className:"pb-xs",children:[(0,m.jsx)("strong",{children:a}),`: ${r}`]},t)})})})]}),(0,m.jsx)("div",{className:"mt-xs col-12",children:Z&&(0,m.jsx)(rN,{"aria-label":"terms body",children:Z.map(e=>{let{key:t,value:r,label:a}=e;return(0,m.jsxs)(rN.Item,{className:"pb-xs",children:[(0,m.jsx)("strong",{children:a}),`: ${r}`]},t)})})})]}),null!=p&&(0,m.jsx)(ri,{className:"mt-md mb-md",content:p}),(0,m.jsx)(rv,{className:"mt-xl mb-xl",type:"status",children:k&&P("templates.archivePage.noResults","This page does not have posts")}),(0,m.jsx)(r_,rx({isListView:!1,isPathPagination:!0,typeOfPage:"archive",useNumericPaginator:!0,includeFirstPagePagination:y,useTrailingSlash:x,videoSlot:{addVideoSlot:v,videoSlotBelowRow:_,breadcrumbs:c},preloadFirstImage:!O&&!N},r)),k&&(0,m.jsx)("div",{className:"ad-row--native list-item",children:(0,m.jsx)(rj,{location:"dynamic-list"})})]})};rP.displayName="ArchivePage";var rk=rP},27837:function(e,t,r){"use strict";var a=r(20968);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function l(e){for(var t=1;t{let{error:t,isLoading:r,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a=l(l({},a),e));let n=(a=l(l({},a),t)).loader;return(a.loadableGenerated&&(a=l(l({},a),a.loadableGenerated),delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?r(l(l({},a),{},{loader:()=>null!=n?n().then(o):Promise.resolve(o(()=>null))})):(delete a.webpack,delete a.modules,c(r,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99376:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=r(38754)._(r(67294)).default.createContext(null)},52849:function(e,t,r){"use strict";var a=r(20968);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function l(e){for(var t=1;t(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class p{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=l(l({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function m(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function n(){if(!a){let t=new p(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!u){let e=r.webpack?r.webpack():r.modules;e&&c.push(t=>{for(let r of e)if(t.includes(r))return n()})}function l(e,t){!function(){n();let e=s.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let l=s.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),s.default.useMemo(()=>{var t;return l.loading||l.error?s.default.createElement(r.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:a.retry}):l.loaded?s.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return l.preload=()=>n(),l.displayName="LoadableComponent",s.default.forwardRef(l)}(d,e)}function f(e,t){let r=[];for(;e.length;){let a=e.pop();r.push(a(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}m.preloadAll=()=>new Promise((e,t)=>{f(o).then(e,t)}),m.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(u=!0,t());f(c,e).then(r,r)})),window.__NEXT_PRELOADREADY=m.preloadReady;let b=m},5152:function(e,t,r){e.exports=r(27837)}}]);