"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["2556"],{10519:function(e,t,n){n.d(t,{Z:()=>a});var i,o=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;ta});var i,o=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;ta});var i,o=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;ta});var i,o=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;ta});var i,o=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;td});var i,o,r,a,l=n(2784);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;tp});var i,o,r,a,l,s,d,c=n(2784);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;ta});var i,o=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;ta});var i,o=n(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;td});var i=n(52322),o=n(75724),r=n(90016),a=n(2784),l=n(79644);let s=n(78943).ZP.div.withConfig({componentId:"sc-1c01c11e-0"})(["padding:16px 0;@media ","{padding:24px 0;}"],l.Z.query.medium),d=(0,a.forwardRef)(({className:e,stickDepth:t,sticky:n=!1},a)=>(0,i.jsx)(s,{adaptiveSize:!0,as:o.Z,className:e,largeUnit:r.U.leaderboardBillboard(1),mediumUnit:r.U.leaderboard(1),ref:a,smallUnit:r.U.mobbanner(1),stickDepth:t,sticky:n,useMaxPlaceholderSize:!0}))},8652:function(e,t,n){n.d(t,{F:()=>r,P:()=>o});var i=n(78943);let o=i.ZP.div.withConfig({componentId:"sc-1f81b179-0"})(["height:100%;width:300px;"]),r=i.ZP.div.withConfig({componentId:"sc-1f81b179-1"})(["margin-bottom:224px;padding:0;position:sticky;top:58px;&:first-child{margin-top:224px;}"])},71378:function(e,t,n){n.d(t,{Z:()=>m});var i=n(52322),o=n(75724),r=n(90016),a=n(2784),l=n(8652);let s=(0,a.forwardRef)((e,t)=>(0,i.jsx)(l.P,{"data-testid":"ad-slider-track",ref:t,...e})),d=({adPos:e})=>{let[t,n]=(0,a.useState)(void 0),s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{s?.current&&requestAnimationFrame(()=>{if(!s?.current)return;let e=s.current.getBoundingClientRect(),t=s.current.closest('[data-testid="ad-slider-track"]');if(t){let i=t.getBoundingClientRect(),o=e.top-i.top,r=e.height;n(Math.round(i.height-o-r))}})},[]),(0,i.jsx)(l.F,{ref:s,children:(0,i.jsx)(o.Z,{autoRefresh:!0,largeUnit:r.U.halfpageSkyscraper(e),stickDepth:t,sticky:!0})})},c=e=>(0,i.jsx)(s,{children:(0,i.jsx)(d,{...e})});c.Ad=d,c.Track=s;let m=c},44114:function(e,t,n){n.d(t,{Z:()=>u});var i=n(52322),o=n(74757),r=n(93673),a=n(41865),l=n(49263),s=n(2596),d=n(2784),c=n(79644),m=n(78943);let p=m.ZP.div.withConfig({componentId:"sc-37562b78-0"})(["left:0;position:relative;top:0;z-index:",";",";"," ",""],c.Z.zIndex.stickyAd.sticky,e=>e.$isSticky&&(0,m.iv)(["border-bottom:1px solid ",";width:100vw;position:sticky;margin-left:calc(50% - 50vw);z-index:",";"],e.theme.colorLightAccent,c.Z.zIndex.stickyAd.sticky),e=>e.$shouldSlideOut?(0,m.iv)(["opacity:0;top:-120px;transition:all 0.5s ease-in;"]):(0,m.iv)(["opacity:1;"]),e=>e.$isNarrow&&e.$isBelowStickDepth&&(0,m.iv)(["position:relative !important;"])),u=({className:e})=>{let t=(0,r.Z)("large"),n=(0,a.Z)()[s.TEMP_FEATURE_FLAG_AD_STICKY_HIDE_NARROW],[c,m]=(0,d.useState)(!1),[u,h]=(0,d.useState)(!1),[g,f]=(0,d.useState)(0),[x,v]=(0,d.useState)(void 0),[b,k]=(0,d.useState)(!1),[y,C]=(0,d.useState)(!1),w=(0,d.useRef)(null),Z=(0,d.useRef)(0),P=t?450:1100,S=P+100;(0,d.useEffect)(()=>{if(w?.current){let e=w.current.getBoundingClientRect().top+window.scrollY;f(e),v(P-e||350)}},[P]),(0,d.useEffect)(()=>{let e=w.current;if(!e||"undefined"==typeof window)return;let t=new ResizeObserver(([e])=>{n&&k(e.contentRect.widtht.disconnect()},[n]);let I=(0,d.useCallback)(()=>{let{scrollY:e}=window,t=e>Z.current;Z.current=e,e<=g&&(m(!1),C(!1)),e>=P&&C(!0),e>g&&e=P&&e=S&&(h(!1),m(!1)),e<=g&&!t&&h(!1)},[g,P,S]);return(0,l.Z)(I,!1),(0,i.jsx)(p,{$isBelowStickDepth:y,$isNarrow:b,$isSticky:c,$shouldSlideOut:u,"data-testid":"ad-sticky-container",children:(0,i.jsx)(o.Z,{className:e,ref:w,stickDepth:x,sticky:!0})})}},53406:function(e,t,n){n.d(t,{IN:()=>s,W8:()=>c,YQ:()=>l,iz:()=>d});var i=n(88635),o=n(79644),r=n(21971),a=n(78943);let l=a.ZP.div.withConfig({componentId:"sc-7132c98c-0"})(["display:flex;flex-direction:row;flex-shrink:0;justify-content:space-between;@media ","{margin-bottom:0;padding:12px 14px 0 0;}@media ","{align-items:center;flex-direction:row;justify-content:flex-start;}"],o.Z.query.mediumMax,o.Z.query.medium),s=a.ZP.div.withConfig({componentId:"sc-7132c98c-1"})(["align-items:center;display:flex;margin:0;@media ","{button{width:52px;}","{width:28px;}","{display:none;}}@media ","{margin:4px 0;}"],o.Z.query.smallMax,i.M,r.oD,o.Z.query.medium),d=a.ZP.div.withConfig({componentId:"sc-7132c98c-2"})(["background-color:",";display:none;height:20px;margin:8px;width:1px;@media ","{display:block;}&:last-child{display:none;}"],e=>e.inverse?e.theme.colorGrey:e.theme.colorLightAccent,o.Z.query.medium),c=a.ZP.div.withConfig({componentId:"sc-7132c98c-3"})(["display:contents;"])},32458:function(e,t,n){n.d(t,{Z:()=>w});var i=n(52322),o=n(35280),r=n(70481),a=n(91339),l=n(89217),s=n(93673),d=n(56111),c=n(41865),m=n(43798),p=n(90152),u=n(55742),h=n(95731),g=n(2596),f=n(84641),x=n(2784),v=n(53896),b=n(57737),k=n(13585),y=n(79916),C=n(53406);let w=({asset:e,inverse:t})=>{let n=(0,y.Un)((0,v.TH)().pathname),{PAGEBUILDER:{ENABLED:w}}=(0,d.Z)(),Z=(0,c.Z)(),P=(0,s.Z)("smallMax"),{data:S}=(0,k.x)(e),{commenting:I}=S?.commentsByPublicId||{},j=I?.latestCommentsConnection?.count,{type:N}=e,A=(0,h.j7)(e)&&Z[g.TEMP_FEATURE_FLAG_ARTICLE_GIFTING],E=(0,x.useRef)(null),L=(0,x.useCallback)(()=>{(0,b.Z)(!0),document.getElementById("comments")?.scrollIntoView()},[]);return(0,i.jsxs)(C.YQ,{className:"noPrint","data-testid":"article-actions",children:[(0,i.jsxs)(C.IN,{children:[(0,i.jsx)(p.Z,{asset:e,inverse:t,tooltipAlignment:P?"left":"right"}),(0,i.jsx)(C.iz,{inverse:t}),N===f.h3.Recipe&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.Z,{}),(0,i.jsx)(C.iz,{inverse:t})]}),A&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{alignment:"left",asset:e,giftButtonRef:E,inverse:t}),(0,i.jsx)(C.iz,{inverse:t})]}),(0,i.jsx)(u.Z,{asset:e,inverse:t,onGiftClick:()=>E.current?.click(),position:"top"}),N!==f.h3.Recipe&&(0,i.jsx)(a.Z,{inverse:t})]},"saveShare"),!Z[g.PERM_FEATURE_FLAG_COMMENTS_DISABLED]&&(0,r.Q)(e,w,n,I)&&(0,i.jsxs)(C.W8,{children:[(0,i.jsx)(C.iz,{inverse:t}),(0,i.jsx)(o.Z,{asset:e,onClick:L,totalCommentCount:j})]})]})}},95351:function(e,t,n){n.d(t,{Z:()=>m});var i=n(52322),o=n(53896),r=n(79916),a=n(79644),l=n(78943);let s=l.ZP.p.withConfig({componentId:"sc-578b4fe0-0"})(["font-family:",";font-size:13px;font-weight:bold;line-height:16px;margin-bottom:12px;@media ","{font-size:15px;line-height:17px;margin-bottom:16px;}"],e=>e.theme.fontPrimary,a.Z.query.medium),d=l.ZP.span.withConfig({componentId:"sc-578b4fe0-1"})(["background-color:",";color:",";display:inline-block;padding:4px 8px;@media ","{padding:6px 8px;}"],e=>e.theme.colorOrangeLightFill,e=>e.theme.colorBrand,a.Z.query.medium),c=365/12,m=({asset:e})=>{if((0,r.Un)((0,o.TH)().pathname)||!e?.dates?.published)return null;let t=(Date.now()-new Date(e.dates.published).getTime())/864e5;return t<90?null:(0,i.jsx)(s,{children:(0,i.jsxs)(d,{children:["This was published ",(e=>{let t=Math.floor(e>365?e/365:e/c),n=`${e>365?"year":"month"}${t<2?"":"s"}`;return`${t} ${n}`})(t)," ago"]})})}},48239:function(e,t,n){n.d(t,{Z:()=>f});var i=n(52322),o=n(79644),r=n(78943);let a=r.ZP.section.withConfig({componentId:"sc-998ff9aa-0"})(["color:",";font-size:15px;line-height:20px;margin-bottom:24px;padding-bottom:24px;position:relative;&::after{border-bottom:1px solid ",";bottom:0;content:'';position:absolute;width:72px;@media ","{content:none;}}strong,b{font-weight:bold;}em,i{font-style:italic;}h3{font-size:15px;font-weight:bold;letter-spacing:1px;line-height:20px;margin-bottom:16px;text-transform:uppercase;}a{color:",";text-decoration-color:",";text-decoration-line:underline;&:hover,&:focus{color:",";text-decoration:underline;transition:color .2s ease-out;}}"," ",""],e=>e.theme.colorBrand,e=>e.theme.colorLightAccent,o.Z.query.large,e=>e.theme.colorLinkInlineAnchorAction,e=>e.theme.colorLinkInlineAnchorActionUnderline,e=>e.theme.colorLinkInlineAnchorActionHover,e=>"inline"===e.$variant&&(0,r.iv)(["@media ","{display:none;}"],o.Z.query.large),e=>"rail"===e.$variant&&(0,r.iv)(["display:none;@media ","{display:block;}"],o.Z.query.large)),l=r.ZP.h3.withConfig({componentId:"sc-998ff9aa-1"})(["color:",";"],e=>e.theme.colorLabelLiveArticle),s=r.ZP.h3.withConfig({componentId:"sc-998ff9aa-2"})(["color:",";"],e=>e.theme.colorBrand),d=r.ZP.span.withConfig({componentId:"sc-998ff9aa-3"})(["color:",";display:block;font-family:",";font-size:20px;font-weight:bold;line-height:20px;margin-bottom:4px;"],e=>e.theme.colorDark,e=>e.theme.fontTertiary),c=r.ZP.ul.withConfig({componentId:"sc-998ff9aa-4"})(["list-style-type:none;"]),m=r.ZP.li.withConfig({componentId:"sc-998ff9aa-5"})(["border-bottom:1px solid ",";color:",";font-size:13px;line-height:16px;margin-bottom:12px;padding-bottom:12px;width:100%;&:last-child{border:none;margin-bottom:0;padding-bottom:0;}"],e=>e.theme.colorLightAccent,e=>e.theme.colorMid),p=r.ZP.ul.withConfig({componentId:"sc-998ff9aa-6"})(["list-style:disc;padding-left:20px;"]),u=r.ZP.li.withConfig({componentId:"sc-998ff9aa-7"})(["padding-right:16px;&:not(:last-child){margin-bottom:16px;}"]),h=r.ZP.span.withConfig({componentId:"sc-998ff9aa-8"})(["",""],o.Z.visuallyHidden),g={FACTS:({asset:e})=>{let{items:t,title:n}=e.extensions.talkingPoints;return(0,i.jsxs)("div",{children:[(0,i.jsx)(l,{children:n||"In numbers"}),(0,i.jsx)(c,{children:t.map(({quantity:e,text:t},n)=>(0,i.jsxs)(m,{children:[(0,i.jsx)(d,{children:e}),(0,i.jsx)(h,{children:" - "}),t]},n))})]})},LIST:({asset:e})=>{let{items:t,title:n}=e.extensions.talkingPoints;return(0,i.jsxs)("div",{children:[(0,i.jsx)(s,{children:n||"Key points"}),(0,i.jsx)(p,{children:t.map(({markup:e},t)=>(0,i.jsx)(u,{dangerouslySetInnerHTML:{__html:e}},t))})]})},TEXT:({asset:e})=>{let{text:t,title:n}=e.extensions.talkingPoints;return(0,i.jsxs)("div",{children:[(0,i.jsx)(s,{children:n||"Why it matters"}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})]})}},f=e=>{if(!e?.asset?.extensions?.talkingPoints)return null;let{type:t}=e.asset.extensions.talkingPoints;return(0,i.jsx)(a,{$variant:e.$variant,className:e.className,children:g[t](e)})}},82600:function(e,t,n){n.d(t,{W:()=>o});var i=n(79644);let o=n(78943).ZP.div.withConfig({componentId:"sc-36836d28-0"})(["> *:first-child{margin-bottom:24px;}> *:nth-child(2){margin:0 -20px 24px;@media ","{margin:0 0 20px;}.article &{@media ","{margin-left:",";}}}.article &{@media ","{left:",";position:relative;width:",";}}"],i.Z.query.medium,i.Z.query.large,i.Z.columnOffset(1.5,12),i.Z.query.large,i.Z.columnOffset(0,12),i.Z.columnWidth(8,12))},41571:function(e,t,n){n.d(t,{Z:()=>x});var i=n(52322),o=n(19565),r=n(41865),a=n(2596),l=n(84641),s=n(72204),d=n(72649),c=n(82600);let m=(0,o.ZP)({resolved:{},chunkName:()=>"components-CricketScoreboard-CricketScoreboard",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("1172").then(n.bind(n,31935)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>31935}),p=(0,o.ZP)({resolved:{},chunkName:()=>"components-SoccerScoreboard-SoccerScoreboard",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("5877").then(n.bind(n,99112)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>99112}),u=(0,o.ZP)({resolved:{},chunkName:()=>"components-Scoreboard-Scoreboard",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8971"),n.e("1853")]).then(n.bind(n,63484)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>63484}),h=(0,o.ZP)({resolved:{},chunkName:()=>"components-StanSportDriver-StanSportDriverEPL",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("7522").then(n.bind(n,97690)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>97690}),g=(0,o.ZP)({resolved:{},chunkName:()=>"components-StanSportDriver-StanSportDriverTennis",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("9033").then(n.bind(n,61129)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>61129}),f=(0,o.ZP)({resolved:{},chunkName:()=>"components-TennisScorecard-TennisScorecard",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("6993").then(n.bind(n,52854)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>52854}),x=({asset:{type:e,extensions:t,tags:n}})=>{let o=(0,r.Z)(),x=e===l.h3.LiveArticle;if(n&&(0,s.CO)(n,d.le)){let e=o[a.PERM_FEATURE_FLAG_ENGLISH_PREMIER_LEAGUE_WIDGETS];return(0,i.jsxs)(c.W,{children:[(0,i.jsx)(h,{pageType:"article"}),e&&(0,i.jsx)(p,{})]})}if(n&&(0,s.CO)(n,d.w5))return(0,i.jsxs)(c.W,{children:[(0,i.jsx)(g,{type:"in-article-promo"}),(0,i.jsx)(f,{live:x})]});if((0,s.n1)(t,d.HJ))return(0,i.jsx)(c.W,{children:(0,i.jsx)(m,{})});if(o[a.PERM_FEATURE_FLAG_ARTICLE_SCOREBOARD_RUGBY_UNION_WIDGET]&&(0,s.n1)(t,d.$4)){let{competitionId:e,matchId:n,sport:o,title:r}=t?.scoreboard||{};return(0,i.jsx)(c.W,{children:(0,i.jsx)(u,{gameID:e,live:x,matchID:n,title:r,type:o})})}if(o[a.PERM_FEATURE_FLAG_ARTICLE_SCOREBOARD_AFL_WIDGET]&&(0,s.n1)(t,d.sB)){let{competitionId:e,matchId:n,sport:o,title:r}=t?.scoreboard||{};return(0,i.jsx)(c.W,{"data-testid":"afl-scoreboard",children:(0,i.jsx)(u,{gameID:e,live:x,matchID:n,title:r,type:o})})}if(o[a.PERM_FEATURE_FLAG_ARTICLE_SCOREBOARD_NRL_WIDGET]&&(0,s.n1)(t,d.nu)){let{competitionId:e,matchId:n,sport:o,title:r}=t?.scoreboard||{};return(0,i.jsx)(c.W,{"data-testid":"nrl-scoreboard",children:(0,i.jsx)(u,{gameID:e,live:x,matchID:n,title:r,type:o})})}return null}},91238:function(e,t,n){n.d(t,{Z:()=>f});var i=n(52322),o=n(14691),r=n(13783),a=n(2784),l=n(79644),s=n(78943);let d=s.ZP.div.withConfig({componentId:"sc-255ac5b-0"})(["position:relative;top:-64px;"]),c=s.ZP.div.withConfig({componentId:"sc-255ac5b-1"})(["position:fixed;bottom:0;left:0;width:100%;z-index:",";pointer-events:none;"],l.Z.zIndex.modal),m=(0,s.ZP)(l.Z.Content).withConfig({componentId:"sc-255ac5b-2"})(["margin:auto;display:flex;flex-direction:row-reverse;"]),p=s.ZP.button.withConfig({componentId:"sc-255ac5b-3"})(["pointer-events:auto;display:flex;gap:10px;align-items:center;border:1px solid ",";border-radius:4px 4px 0 0;background-color:white;padding:10px 16px;box-shadow:",";transform:translateY(",");transition:transform 0.5s;cursor:pointer;@media ","{margin-right:calc("," - 40px);}"],e=>e.theme.colorLightAccent,e=>e.$visible?"0 0 6px rgba(0, 0, 0, .15)":"none",e=>e.$visible?"0":"100%",l.Z.query.large,l.Z.columnWidth(4,12)),u=s.ZP.span.withConfig({componentId:"sc-255ac5b-4"})(["font-size:13px;letter-spacing:1px;text-transform:uppercase;font-weight:bold;span{display:none;}@media ","{span{display:inline;}}"],l.Z.query.medium),h=s.ZP.svg.withConfig({componentId:"sc-255ac5b-5"})(["width:12px;height:12px;transform:rotate(180deg);"]),g=2e3,f=({threshold:e=g})=>{let[t,n]=(0,a.useState)(!1),l=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let i=()=>{t!==window.pageYOffset>=e&&n(window.pageYOffset>=e)};i();let o=(0,r.Z)(i,100);return window.addEventListener("scroll",o),()=>{window.removeEventListener("scroll",o)}},[t,e]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d,{"data-testid":"scroll-top-marker",ref:l}),(0,i.jsx)(c,{children:(0,i.jsx)(m,{children:(0,i.jsxs)(p,{$visible:t,"data-testid":"back-to-top-button",onClick:()=>{l.current?l.current.scrollIntoView({behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},children:[(0,i.jsx)(h,{as:o.Z}),(0,i.jsxs)(u,{children:[(0,i.jsx)("span",{children:"Back to "}),"Top"]})]})})})]})}},30012:function(e,t,n){n.d(t,{Z:()=>w});var i,o,r,a,l,s,d,c,m,p=n(52322),u=n(2784);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(!(0,k.jW)(e))return null;switch((0,k.Hf)(e)){case v.By:return(0,p.jsx)(C,{className:t,children:(0,p.jsx)(b.Z,{url:v.$r,children:(0,p.jsx)(g,{"data-testid":"goodweekend"})})});case v.fp:return(0,p.jsx)(C,{className:t,children:(0,p.jsx)(b.Z,{url:v.Iq,children:(0,p.jsx)(x,{"data-testid":"sundaylife"})})});default:return null}}},76493:function(e,t,n){n.d(t,{Z:()=>eh});var i={};n.r(i),n.d(i,{ArrowRightIcon:()=>es,AssetList:()=>eo,ContinueText:()=>et,Header:()=>ei,MagazineLogo:()=>en,RecirculationNextPrev:()=>ea,SeeAllLink:()=>el,UpNextAssetList:()=>er,Wrapper:()=>ee});var o={};n.r(o),n.d(o,{ArrowRightIcon:()=>es,AssetList:()=>ed,ContinueText:()=>et,Header:()=>ei,MagazineLogo:()=>en,RecirculationNextPrev:()=>ea,SeeAllLink:()=>el,UpNextAssetList:()=>ec,Wrapper:()=>ee});var r=n(52322),a=n(38936),l=n(84641),s=n(68189),d=n(72649),c=n(17845),m=n(56111),p=n(69414),u=n(72204),h=n(79644),g=n(78943);let f=g.ZP.div.withConfig({componentId:"sc-1e3b9404-0"})(["color:",";font-family:",";font-size:18px;line-height:32px;margin-bottom:40px;margin-top:40px;position:relative;@media ","{left:",";width:",";}@media ","{width:",";}"],e=>e.theme.colorDark,e=>e.theme.fontSecondary,h.Z.query.medium,h.Z.columnOffset(1,12),h.Z.columnWidth(10,12),h.Z.query.large,h.Z.columnWidth(7,12)),x=g.ZP.h3.withConfig({componentId:"sc-1e3b9404-1"})(["font-family:",";font-size:20px;line-height:24px;margin-bottom:4px;"],e=>e.theme.fontTertiary),v=g.ZP.ul.withConfig({componentId:"sc-1e3b9404-2"})(["display:flex;flex-direction:column;gap:16px;list-style:disc;margin-top:12px;padding-left:24px;"]),b=g.ZP.a.withConfig({componentId:"sc-1e3b9404-3"})(["color:",";text-decoration-color:",";text-underline-offset:0.2em;&:focus,&:hover{text-decoration-thickness:3px;}"],e=>e.theme.colorDark,e=>e.theme.colorBrand500);var k=n(52392);let y=({asset:e})=>{let{brand:{shortSiteName:t}}=(0,m.Z)(),{data:n,error:i,loading:o}=(0,k.ZP)(e.publicId);if(o)return null;let{asset:a,error:l}=n?.assetByPublicId||{},s=i||l;if(s)return p.Y.error("Parent related entities error",c.log.EventType("asset","relatedEntitiesParents"),c.log.Error(s),c.log.String("description",`Asset id: ${e.publicId}`)),null;let d=a?.relatedEntitiesParents.assets;return d&&0!==d.length?(0,r.jsxs)(f,{className:"noPrint",children:[(0,r.jsx)(x,{children:"Appears in these collections"}),(0,r.jsx)(v,{children:d.map(({headlines:e,urls:n})=>(0,r.jsx)("li",{children:(0,r.jsx)(b,{href:(0,u._W)(n,t),children:e.headline})},e.headline))})]}):null};var C=n(89311),w=n(29939),Z=n(30012),P=n(93673),S=n(55670),I=n(77853),j=n(25739),N=n(38946),A=n(41549),E=n(57046);let L=g.ZP.div.withConfig({componentId:"sc-fdcc9827-0"})(["",";margin:56px 0 80px;"],({$isMagazine:e})=>e?(0,g.iv)(["border-top:none;"]):(0,g.iv)(["border-top:1px solid ",";"],({theme:e})=>e.colorDarkAccent)),T=g.ZP.h3.withConfig({componentId:"sc-fdcc9827-1"})(["font-size:18px;font-weight:700;letter-spacing:2px;line-height:20px;margin:16px 0 32px;text-align:center;text-transform:uppercase;"]),F=g.ZP.div.withConfig({componentId:"sc-fdcc9827-2"})(["margin-bottom:32px;margin-top:-12px;text-align:center;"]),R=g.ZP.div.withConfig({componentId:"sc-fdcc9827-3"})(["",";","{flex-direction:column;gap:14px;margin:0;width:100%;@media ","{flex-direction:row;justify-content:center;}@media ","{gap:18px;}}","{height:100%;max-height:100%;max-width:100%;padding-left:8px;&::before,&::after{content:'';height:calc(100% - 3px);position:absolute;}&::before{background:transparent;border-left:1px solid ",";left:-1px;top:3px;width:1px;}&::after{background:#fff;border-right:1px solid ",";left:0;top:0;width:3px;}video{left:8px;top:-2px;width:calc(100% - 9px);}}","{align-items:center;border-top:none;display:flex;flex-direction:column;height:100%;padding:0;text-align:center;@media ","{width:",";}}","{font-size:20px;}"],({$isMagazine:e})=>e&&(0,g.iv)(["margin-bottom:48px;"]),N.A,h.Z.query.medium,h.Z.query.large,A.B,e=>e.theme.colorMidAccent,e=>e.theme.colorMidAccent,N.E,h.Z.query.large,h.Z.columnWidth(1,3,"16px"),E.Headline),B=g.ZP.div.withConfig({componentId:"sc-fdcc9827-4"})(["font-size:17px;line-height:24px;text-align:center;"]),M=g.ZP.a.withConfig({componentId:"sc-fdcc9827-5"})(["color:",";font-weight:700;text-decoration:none;svg{color:",";}&:focus,&:hover{color:",";text-decoration:underline;}"],e=>e.theme.colorLink,e=>e.theme.colorLink,e=>e.theme.colorLinkHover),_=g.ZP.svg.withConfig({componentId:"sc-fdcc9827-6"})(["height:18px;margin-left:4px;width:18px;"]),V={"":"","holiday-guide":"series",investigation:"investigations",magazine:"editions",series:"series",travel:"series"},H=({asset:e})=>{let t,{brand:{shortSiteName:n}}=(0,m.Z)(),i=(0,P.Z)("large"),{id:o,subType:a}=e,d=(e=>{let t=(0,s.Hf)(e);return t===w.By?{link:w.$r,tagId:w.kO,title:w.By}:t===w.fp?{link:w.Iq,tagId:w.kw,title:w.fp}:null})(e),c={assetType:l.h3.Collection,assetSubType:a,tagIds:{any:d?[d.tagId]:[]}},{data:p}=(0,S.Z)(n,"",4,l.qI.MostRecent,c),u=(p?.search?.storiesConnection?.edges||[]).map(({node:e})=>e).filter(e=>e.id!==o);if(0===u.length)return null;let h=V[a||""];if(!h)return null;let g=(t=`Other ${h}`,"holiday-guide"===a&&(t="More holiday guides"),"travel"===a&&(t="More collections"),t),f=(0,s.jW)(e);return(0,r.jsxs)(L,{$isMagazine:f,children:[(0,r.jsx)(T,{children:g}),(0,s.jW)(e)&&(0,r.jsx)(F,{as:Z.Z,asset:e}),(0,r.jsx)(R,{$isMagazine:f,as:I.Z,assets:u.slice(0,i?3:2),getStoryTiles:(0,j.ZC)((e=>{let t=e?"2x3":"3x2";return{imageSizes:{large:{aspectRatio:t,width:360},medium:{aspectRatio:t,width:372},small:{aspectRatio:t,width:584}},showAbout:!0,showAuthor:!1,showLabel:!1,showNumberOfStories:!0,showPrimaryTag:!1,showTimestamp:!1}})(f))}),f&&d&&(0,r.jsx)(B,{children:(0,r.jsxs)(M,{href:d.link,children:["View more editions of ",d.title,(0,r.jsx)(_,{as:C.Z})]})})]})};var D=n(76597),$=n(53896),O=n(79916),q=n(95204);let U=g.ZP.div.withConfig({componentId:"sc-38cbf6f-0"})(["border:1px solid ",";margin-top:24px;padding:20px 16px;@media ","{left:",";padding:28px 32px;position:relative;width:",";}@media ","{left:",";width:",";}"],e=>e.theme.colorLightAccent,h.Z.query.medium,h.Z.columnOffset(1,12),h.Z.columnWidth(10,12),h.Z.query.large,h.Z.columnOffset(0,12),h.Z.columnWidth(8,12)),z=g.ZP.a.withConfig({componentId:"sc-38cbf6f-1"})(["border-bottom:1px solid ",";color:#000;display:block;font-size:18px;font-weight:bold;letter-spacing:2px;line-height:20px;margin-bottom:16px;padding-bottom:16px;text-transform:uppercase;@media ","{margin-bottom:24px;padding-bottom:24px;}"],e=>e.theme.colorLightAccent,h.Z.query.medium),G=g.ZP.div.withConfig({componentId:"sc-38cbf6f-2"})(["","{border-top:none;padding-top:0;}","{width:100%;}"],q.StoryTile,N.A),W=g.ZP.a.withConfig({componentId:"sc-38cbf6f-3"})(["color:",";font-weight:bold;&:focus,&:hover{text-decoration:underline;}"],e=>e.theme.colorLinkAlt),Y=g.ZP.svg.withConfig({componentId:"sc-38cbf6f-4"})(["color:",";height:16px;margin-left:4px;position:relative;top:-1px;width:16px;path{stroke-width:3;}"],e=>e.theme.colorLinkAlt);var X=n(95145);let Q=({asset:e,className:t="",collectionSiblings:n=[],parentAsset:i})=>{let{brand:{shortSiteName:o}}=(0,m.Z)(),a=(0,O._P)((0,$.TH)().pathname),l=i&&0===n.length,{data:s,error:d}=(0,X.Z)(e.publicId,i?.publicId,!l),h=s?.assetByPublicId.asset?.relatedEntitiesSiblings?.nextRelatedEntities||[],g=l?h.map(e=>e.asset):n,{error:f}=s?.assetByPublicId||{},x=d||f;if(x)return p.Y.error("Related siblings error",c.log.EventType("asset","relatedEntitiesSiblings"),c.log.Error(x),c.log.String("description",`Asset id: ${e.publicId}, parent id: ${i?.publicId}`)),null;if(!i||0===g.length)return null;let{extensions:v,headlines:b,urls:k}=i,y=(0,u._W)(k,o);return(0,r.jsxs)(U,{className:`noPrint ${t}`,children:[(0,r.jsx)(z,{as:D.Z,url:y,children:b.headline}),(0,r.jsx)(G,{as:I.Z,assets:g,getStoryTiles:(0,j.ZC)({imageSizes:{large:{aspectRatio:"3x2",width:211},medium:{aspectRatio:"1x1",width:160},small:{aspectRatio:"1x1",width:96}},showAbout:!1,showAuthor:!1,showLabel:!1,showPrimaryTag:!1,showTimestamp:!1})}),(0,r.jsxs)(W,{as:D.Z,url:y,children:[!a&&v?.numberOfStories?`See ${v.numberOfStories} stories`:"See all stories",(0,r.jsx)(Y,{as:C.Z})]})]})};var K=n(2784),J=n(38664);let ee=g.ZP.div.withConfig({componentId:"sc-f994e5e4-0"})(["border:1px solid ",";color:",";margin-top:40px;padding:16px;@media ","{left:",";padding:32px;position:relative;width:",";.featureArticle &{left:0;width:100%;}}@media ","{left:",";width:",";}"],e=>e.theme.colorLightAccent,e=>e.theme.colorDark,h.Z.query.medium,h.Z.columnOffset(1,12),h.Z.columnWidth(10,12),h.Z.query.large,h.Z.columnOffset(0,12),h.Z.columnWidth(8,12)),et=g.ZP.p.withConfig({componentId:"sc-f994e5e4-1"})(["font-size:13px;font-weight:bold;letter-spacing:1px;line-height:16px;margin-bottom:8px;text-transform:uppercase;"]),en=g.ZP.div.withConfig({componentId:"sc-f994e5e4-2"})(["margin-bottom:0;svg{height:16px;margin-bottom:8px;margin-top:16px;width:auto;@media ","{height:22px;}}"],h.Z.query.medium),ei=g.ZP.a.withConfig({componentId:"sc-f994e5e4-3"})(["border-bottom:1px solid ",";color:",";display:block;font-family:",";font-size:24px;font-weight:bold;line-height:28px;margin-bottom:16px;padding-bottom:16px;@media ","{font-size:36px;line-height:46px;margin-bottom:24px;padding-bottom:24px;}"],e=>e.theme.colorLightAccent,e=>e.theme.colorDark,e=>e.theme.fontTertiary,h.Z.query.medium),eo=g.ZP.div.withConfig({componentId:"sc-f994e5e4-4"})(["","{border-top:none;gap:20px;padding:16px 0;}","{line-height:28px;}","{margin-bottom:8px;}","{width:100%;}","{@media ","{width:100%;}@media ","{flex-basis:",";}}"],E.StoryTile,E.Headline,J.ZD,N.A,A.B,h.Z.query.smallMax,h.Z.query.medium,h.Z.columnWidth(1,3,"8px")),er=(0,g.ZP)(eo).withConfig({componentId:"sc-f994e5e4-5"})(["border-bottom:1px solid ",";margin-bottom:16px;@media ","{border-bottom:none;}"],e=>e.theme.colorLightAccent,h.Z.query.medium),ea=g.ZP.h5.withConfig({componentId:"sc-f994e5e4-6"})(["font-size:13px;font-weight:bold;letter-spacing:1px;line-height:16px;text-transform:uppercase;"]),el=g.ZP.a.withConfig({componentId:"sc-f994e5e4-7"})(["color:",";display:block;font-weight:bold;letter-spacing:1px;margin-top:8px;text-align:center;&:focus,&:hover{text-decoration:underline;}@media ","{margin-top:16px;text-align:left;}"],e=>e.theme.colorCollectionRecirculationSeeAllLink,h.Z.query.medium),es=g.ZP.svg.withConfig({componentId:"sc-f994e5e4-8"})(["color:",";height:16px;margin-left:4px;position:relative;top:-1px;width:16px;path{stroke-width:3;}"],e=>e.theme.colorCollectionRecirculationSeeAllLink),ed=(0,g.ZP)(eo).withConfig({componentId:"sc-90713d12-0"})(["","{gap:20px;padding:16px 0;}","{font-weight:bold;line-height:28px;}@media ","{","{border:none;}","{align-self:flex-start;flex-basis:66.6666%;}","{font-family:",";}}"],q.StoryTile,q.Headline,h.Z.query.medium,q.StoryTile,q.Summary,q.About,e=>e.theme.fontSecondary),ec=(0,g.ZP)(er).withConfig({componentId:"sc-90713d12-1"})(["","{font-weight:bold;line-height:28px;}"],q.Headline);var em=n(32228);let ep={investigation:"investigation",magazine:"edition"},eu=({asset:e,parentAsset:t})=>{let{brand:{shortSiteName:n}}=(0,m.Z)(),a=(0,O.Un)((0,$.TH)().pathname),{data:l,error:d,loading:h}=(0,em.Z)(e.publicId,t.publicId);if(h)return null;let{asset:g,error:f}=l?.assetByPublicId||{},x=d||f;if(x)return p.Y.error("Previous related entities error",c.log.EventType("asset","previousRelatedEntities"),c.log.Error(x),c.log.String("description",`Asset id: ${e.publicId}, parent id: ${t.publicId}`)),null;let v=g.relatedEntitiesSiblings.previousRelatedEntities.map(({asset:e})=>e),b=(0,s.AN)(t,v),k=g.relatedEntitiesSiblings.nextRelatedEntities.map(({asset:e})=>e),y=(0,s.AN)(t,k);if(0===b.length&&0===y.length)return null;let w=(0,u._W)(t.urls,n),P={imagePositions:["top","left","left"],imageSizes:{large:{aspectRatio:"3x2",width:220},medium:{aspectRatio:"3x2",width:183},small:{aspectRatio:"3x2",width:550}},showAuthor:!1,showPrimaryTag:!1,showTimestamp:!1},S=a?o:i;return(0,r.jsxs)(S.Wrapper,{className:"noPrint",children:[(0,r.jsxs)(S.ContinueText,{children:["Continue this ",ep[t.subType]||"series"]}),(0,s.jW)(t)&&(0,r.jsx)(S.MagazineLogo,{as:Z.Z,asset:t}),(0,r.jsx)(S.Header,{as:D.Z,url:w,children:t.headlines.headline}),y.length>0&&(0,r.jsxs)(K.Fragment,{children:[(0,r.jsx)(S.RecirculationNextPrev,{children:"Up next"}),(0,r.jsx)(S.UpNextAssetList,{as:I.Z,assets:y,getStoryTiles:(0,j.ZC)(P)})]},"up-next"),b.length>0&&(0,r.jsxs)(K.Fragment,{children:[(0,r.jsx)(S.RecirculationNextPrev,{children:"Previously"}),(0,r.jsx)(S.AssetList,{as:I.Z,assets:b,getStoryTiles:(0,j.ZC)(P)})]},"previous"),(0,r.jsxs)(S.SeeAllLink,{as:D.Z,url:w,children:["See all stories",(0,r.jsx)(S.ArrowRightIcon,{as:C.Z})]})]})},eh=({asset:e,className:t})=>{let n=e.relatedEntitiesParents?.assets?.[0];if(e.type===l.h3.Collection&&e?.subBrand?.id!==d.F3&&!n)return(0,r.jsx)(a.ZP,{children:(0,r.jsx)(H,{asset:e})});if(!n)return null;if(n.type===l.h3.Collection&&"recipe"===n.subType)return(0,r.jsx)(a.ZP,{children:(0,r.jsx)(y,{asset:e})});if(n.subBrand?.id!==d.Hn)return(0,r.jsx)(a.ZP,{children:(0,r.jsx)(eu,{asset:e,parentAsset:n})});let i=e.relatedEntitiesSiblings.nextRelatedEntities.map(({asset:e})=>e),o=(0,s.AN)(n,i);return(0,r.jsx)(a.ZP,{children:(0,r.jsx)(Q,{asset:e,className:`noPrint ${t||""}`,collectionSiblings:o,parentAsset:n})})}},55229:function(e,t,n){n.d(t,{Z:()=>F});var i=n(52322),o=n(66385),r=n(17845),a=n(12043),l=n(56111),s=n(41865),d=n(11402),c=n(23539),m=n(28067);let p={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"MemberCommentsAuthQuery"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NamedType",name:{kind:"Name",value:"MemberCommentsMetroAuthInput"}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"tokenPurpose"}},type:{kind:"NamedType",name:{kind:"Name",value:"TokenPurpose"}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"memberCommentsMetroAuth"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}},{kind:"Argument",name:{kind:"Name",value:"tokenPurpose"},value:{kind:"Variable",name:{kind:"Name",value:"tokenPurpose"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"},arguments:[],directives:[]},{kind:"InlineFragment",directives:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorTypeInvalidAuth"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}},{kind:"InlineFragment",directives:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorTypeInvalidRequest"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",directives:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorTypeUnavailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retryable"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:314,source:{body:"query MemberCommentsAuthQuery($input:MemberCommentsMetroAuthInput,$tokenPurpose:TokenPurpose){memberCommentsMetroAuth(input:$input,tokenPurpose:$tokenPurpose){token error{message type{class...on ErrorTypeInvalidAuth{code}...on ErrorTypeInvalidRequest{fields{field message}}...on ErrorTypeUnavailable{retryable}}}}}"}}};var u=n(82332),h=n(59558),g=n(2784),f=n(79644),x=n(78943);let v=x.ZP.div.withConfig({componentId:"sc-fe06dd0f-0"})(["position:relative;"]),b=x.ZP.div.withConfig({componentId:"sc-fe06dd0f-1"})(["container-type:inline-size;"]),k=x.ZP.button.withConfig({componentId:"sc-fe06dd0f-2"})(["background-color:",";border:1px solid transparent;border-radius:4px;color:",";font-family:",";margin:0 20px 24px;padding:12px 16px;&:hover{border:1px solid ",";}@media ","{margin:0 0 24px;width:fit-content;}@container (max-width:320px){padding:12px 8px;}"],({theme:e})=>e.colorLightFill,e=>e.theme.colorDark,e=>e.theme.fontPrimary,({theme:e})=>e.colorLightAccent,f.Z.query.medium),y=x.ZP.div.withConfig({componentId:"sc-fe06dd0f-3"})(["font-size:15px;line-height:20px;"]),C=x.ZP.svg.withConfig({componentId:"sc-fe06dd0f-4"})(["background-color:",";border-radius:50%;color:#fff;height:15px;margin:0 9.5px 2.5px 0;padding:3px;width:15px;"],({theme:e})=>e.colorCommentsActionFill),w=({trackableUser:e})=>{let[t,n]=(0,g.useState)(!1);return e?null:(0,i.jsxs)(v,{children:[(0,i.jsx)(h.Z,{showing:t,children:"Due to legal restrictions, we are unable to allow commenting in select regions outside Australia."}),(0,i.jsx)(b,{children:(0,i.jsx)(k,{"data-testid":"commenting-disabled-message",onClick:()=>n(!t),children:(0,i.jsxs)(y,{children:[(0,i.jsx)(C,{as:u.Z}),"Commenting is unavailable in your region."]})})})]})};var Z=n(2596),P=n(69414),S=n(1797),I=n(65677),j=n(633),N=n(91629),A=n(72204);let E=e=>e?.children[1]?e?.children[1]?.shadowRoot:null,L=e=>{let t=e.cloneNode(!0);return e.parentNode.replaceChild(t,e),t},T=(e,t,n,i)=>{e.pushAnalyticsEvent({event:e.EVENTS.VIEW_COMMENTS_EVENT,interaction_label:t,interaction_type:n,page_title:i})},F=({asset:e})=>{let{COMMENTS_METRO_API_URL:t,brand:n}=(0,l.Z)(),u=(0,a.Z)(),h=(0,s.Z)(),f=(0,d.ZP)(),[v,b]=(0,g.useState)(!1),k=(0,j.Gq)(`${t}/assets/js/embed.js`),y=(0,N.O)(e.type),C=(0,I.U)(),{data:F,error:R,networkStatus:B,refetch:M}=(({assetType:e,tokenPurpose:t=m.Nx.CommentsLegacy},n=!1)=>(0,c.a)(p,{context:{clientName:"api-front"},skip:n,ssr:!1,variables:{input:{commentingContext:{assetType:{assetType:e}.assetType}},tokenPurpose:t}}))({assetType:y,tokenPurpose:m.Nx.Comments},void 0===y),_=(0,g.useContext)(x.Ni);return(0,g.useEffect)(()=>{if(B===o.I.refetch||!F&&!R||"ready"!==k)return;if(R)return void P.Y.error("Unable to fetch member commenting auth token",r.log.EventType("comment","auth"),r.log.Error(R));let{error:i,token:a}=F.memberCommentsMetroAuth,l=async()=>{b(!0),u(()=>{M().catch(e=>{P.Y.error("Unable to re-fetch member commenting auth token",r.log.EventType("comment","auth"),r.log.Error(e))})},h[Z.PERM_FEATURE_FLAG_MEMBER_SERVICES_FORCE_DISABLED])};if(i){let{type:{class:e}}=i;e===m.c4.InvalidAuth?v?P.Y.error("Invalid auth token",r.log.EventType("comment","auth"),r.log.Error(i.message)):l():e===m.c4.InvalidRequest?P.Y.error("Invalid request",r.log.EventType("comment","auth"),r.log.Error(i.message)):P.Y.error("Unable to fetch member commenting auth token",r.log.EventType("comment","auth"),r.log.Error(i.message));return}(()=>{if(!window.Coral||"function"!=typeof window.Coral.createStreamEmbed)return P.Y.error("Coral.createStreamEmbed is not available");let i=e.publicId,o=(0,A._W)(e.urls,n.shortSiteName),r=e.headlines.headline,l=window.Coral.createStreamEmbed({accessToken:C?a:null,autoRender:!0,containerClassName:"comments-embed",events:t=>{t.on("ready",()=>{let t=e.type===m.h3.LiveArticle;((e,t,n,i=!1)=>{let o=E(e);if("undefined"==typeof document||!o||!document?.documentElement)return;let r=n.colorDark,a=n.colorBrand,l=n.colorButtonSecondary,s=n.colorButtonSecondaryHover,d=n.colorButtonSecondaryText,c=n.colorCommentingBox,m=n.colorCommentsAction,p=n.colorCommentsActionFill,u=n.colorCommentsActionHover,h=n.colorCommentsDivider,g=n.colorCommenterRole,f=n.colorCommentsTimestamp,v="#fff",b=n.colorCommentsButtonAction,k=n.colorCommentsButtonActionHover,y=n.colorCommentsButtonInactive,C=n.colorCommentsButtonInactiveText,w=n.colorCommentsButtonText,Z=n.colorCommentsGrey200,P=n.colorCommentsGrey400,S=n.colorCommentsLink,I=n.colorCommentsLinkHover,j=n.colorCommentsPrimary100,N=n.colorCommentsPrimary300,A=n.colorCommentsPrimary500,L=n.colorCommentsPrimary600,T=n.colorCommentsPrimary700,F=n.colorCommentsSecondaryButtonAction,R=n.colorCommentsSecondaryButtonActionHover,B=n.textDecorationCommentsLink,M=n.colorCommentsGuidelineLink,_=n.colorCommentsGuidelineLinkHover,V=n.colorTextDecorationCommentsGuidelineLinkHover,H=n.textDecorationCommentsGuidelineLink,D=n.textDecorationCommentsGuidelineLinkHover,$=n.textDecorationThicknessCommentsGuidelineLinkHover,O=n.colorCommentsTag,q=(0,x.iv)(["#coral{--font-family-primary:'PT Sans','Trebuchet MS','Arial Narrow',sans-serif;--font-family-secondary:'PT Sans','Trebuchet MS','Arial Narrow',sans-serif;--font-size-3:0.9375rem;--font-size-4:0.9375rem;--palette-primary-500:",";--spacing-1:7px;--palette-divider:",";--palette-grey-300:",";--palette-primary-600:",";--palette-grey-600:",";--palette-primary-100:",";--palette-primary-300:",";--palette-primary-700:",";--palette-grey-200:",";--palette-grey-400:",";--palette-grey-500:",";--palette-text-500:",";--palette-text-900:",";}.coral.coral-createComment-submit,.coral.coral-createReplyComment-cancel,.coral.coral-createReplyComment-submit,.coral.coral-editComment-cancel,.coral.coral-editComment-submit,.coral.coral-reportPopover-cancelButton,.coral.coral-reportPopover-submitButton{border:none;padding:12px 24px;letter-spacing:1px;}.coral.coral-createComment-submit,.coral.coral-createReplyComment-submit,.coral.coral-loadMoreButton,.coral.coral-editComment-submit,.coral.coral-reportPopover-submitButton{background-color:"," !important;border-color:"," !important;color:"," !important;}.coral.coral-createComment-submit:hover,.coral.coral-createReplyComment-submit:hover,.coral.coral-loadMoreButton:hover,.coral.coral-editComment-submit:hover,.coral.coral-reportPopover-submitButton:hover{background-color:"," !important;border-color:"," !important;cursor:pointer;}.coral.coral-createReplyComment-cancel,.coral.coral-editComment-cancel,.coral.coral-reportPopover-cancelButton{background-color:"," !important;color:"," !important;}.coral.coral-createReplyComment-cancel:hover,.coral.coral-editComment-cancel:hover,.coral.coral-reportPopover-cancelButton:hover{background-color:"," !important;}button.coral.coral-comment-reactButton:hover,button.coral.coral-comment-replyButton:hover,.coral-featuredComment-actionBar > button:hover,.coral.coral-featuredComment-goToConversationButton:hover{color:"," !important;}button.coral-comment-reactButton > span > span:nth-child(2):hover,button.coral-comment-replyButton > span > span:nth-child(2):hover,button.coral-featuredComment-reactButton > span > span:nth-child(2):hover{text-decoration:underline;}[disabled].coral.coral-createComment-submit,[disabled].coral.coral-createReplyComment-submit,[disabled].coral.coral-editComment-submit,[disabled].coral.coral-reportPopover-submitButton{color:"," !important;background-color:"," !important;border-color:"," !important;}[disabled].coral.coral-createComment-submit:hover,[disabled].coral.coral-createReplyComment-submit:hover,[disabled].coral.coral-editComment-submit:hover,[disabled].coral.coral-reportPopover-submitButton:hover{cursor:default;}[disabled].coral.coral-comment-replyButton{display:none;}.coral-reactedButton.coral-comment-reactedButton,.coral-featuredComment-reactButton.coral-featuredComment-reactedButton{color:"," !important;svg{color:"," !important;fill:",";}}.coral.coral-createComment-closed > div > div:first-child{display:flex;align-items:center;}.coral.coral-username.coral-comment-username{color:",";}.coral.coral-userTag.coral-comment-userTag{border-radius:15px;background-color:",";color:",";padding:2px 12px;}button[class*='AllCommentsTabContainer-refreshButton']{display:flex;align-items:center;gap:3px;padding:8px 8px 8px 16px;}button[class*='AllCommentsTabContainer-closeButton']{display:flex;align-items:center;gap:3px;padding:8px 16px 8px 8px;}span[class*='AllCommentsTabContainer-refreshButtonIcon']{display:flex;}span[class*='AllCommentsTabContainer-closeButtonIcon']{display:flex;}button[class*='AllCommentsTabContainer-refreshButton']:hover{background-color:"," !important;border-color:"," !important;}button[class*='AllCommentsTabContainer-closeButton']:hover{background-color:"," !important;border-color:"," !important;}#comments-featuredCommentPopover > div{background-color:",";border-color:",";}#comments-featuredCommentPopover > div > div::before,#comments-featuredCommentPopover > div > div::after{border-bottom-color:",";}h4[class*='Tooltip-title'],p[class*='Tooltip-contents']{color:"," !important;}#tabPane-PREFERENCES > div > *:not(.coral.coral-ignoredCommenters){display:none;}button.coral.coral-ignoreUserPopover-cancelButton,button.coral.coral-ignoredComments-manageButton,button.coral.coral-userPopover-ignoreButton{border-color:"," !important;color:"," !important;}button.coral.coral-ignoreUserPopover-cancelButton:hover,button.coral.coral-ignoredComments-manageButton:hover,button.coral.coral-userPopover-ignoreButton:hover{background-color:"," !important;}button.coral.coral-ignoreUserPopover-ignoreButton{background-color:"," !important;border-color:"," !important;}button.coral.coral-ignoreUserPopover-ignoreButton:hover{background-color:"," !important;border-color:"," !important;}button.coral.coral.coral-ignoredComments-manageButton[class*='Button-filled']{background-color:"," !important;border-color:"," !important;color:"," !important;}button.coral.coral.coral-ignoredComments-manageButton[class*='Button-filled']:hover{background-color:"," !important;border-color:"," !important;}.coral.coral-commentForm{border-color:",";}.coral.coral-tabBarSecondary.coral-tabBarComments{gap:16px;}.coral.coral-comment-shareButton{display:none;}button.coral-comment-reportButton{padding:0;}button.coral-comment-reportButton > span > span{margin:0;}button.coral-comment-reportButton span span:last-child{display:none;}button[aria-pressed*='true'].coral.coral-reportButton.coral-comment-reportButton{padding:2px 3px;background-color:",";border-color:",";color:",";}.coral-comment-collapse-toggle{display:none;}.coral.coral-featuredComment{display:flex;flex-direction:column;}.coral.coral-featuredComment > div:nth-child(2){order:2;}.coral.coral-featuredComment > div:nth-child(3){margin:0 0 calc(0.5 * var(--mini-unit)) 0 !important;order:1;}.coral.coral-featuredComment > div:nth-child(4){order:3;}button.coral-featuredComment-reactButton > span{display:flex;flex-direction:row;}button.coral-featuredComment-reactButton > span > span:nth-child(2){order:1;}button.coral-featuredComment-reactButton > span > span:first-child{order:2;margin-right:0;margin-left:5px;}button.coral-featuredComment-reactButton > span > span:nth-child(3){order:3;}button.coral-comment-reactButton,button.coral-comment-replyButton,.coral.coral-featuredComment-goToConversationButton{color:"," !important;padding-left:0px;}button.coral-comment-reactButton > span{display:flex;flex-direction:row;}button.coral-comment-reactButton > span > span:nth-child(2),button.coral-comment-replyButton > span > span:nth-child(2){order:1;}button.coral-comment-reactButton > span > span:first-child,button.coral-comment-replyButton > span > span:first-child{order:2;margin-right:0;margin-left:5px;}button.coral-comment-reactButton > span > span:nth-child(3){order:3;}.coral.coral-indent.coral-indent-1{border-left-color:",";}.coral.coral-indent.coral-indent-2{border-left-color:",";}.coral.coral-indent.coral-indent-3{border-left-color:",";}.coral.coral-indent.coral-indent-4{border-left-color:",";}.coral.coral-indent.coral-indent-5{border-left-color:",";}.coral.coral-indent.coral-indent-6{border-left-color:",";}.coral.coral-indent.coral-indent-7{border-left-color:",";}.coral.coral-tabBarSecondary-tab.coral-tabBarSecondary-tab-active > div > .coral.coral-counter{background-color:",";}.coral.coral-counter{background-color:",";box-shadow:none;}.coral.coral-counter > span{padding:2px;}@media (max-width:399px){.coral.coral-comment-actionBar > :first-child{justify-content:flex-start;gap:4px;}}@media (max-width:531px){.coral.coral-stream{padding:0 20px;box-sizing:border-box;}}.coral-guidelines-content > p > a{color:",";text-decoration:",";}.coral-guidelines-content > p > a:hover{color:",";text-decoration:",";text-decoration-color:",";text-decoration-thickness:",";}.coral-streamFooter > button.coral-streamFooter-link,.coral.coral-myComment-viewConversationButton > span{color:",";text-decoration:",";font-size:13px;}.coral-streamFooter > button.coral-streamFooter-link:hover,.coral.coral-myComment-viewConversationButton:hover > span{color:"," !important;text-decoration:underline;}.coral-comment-timestamp,.coral-comment-actionBar > div > button,.coral-featuredComment-actionBar > button,.coral.coral-featuredComment-goToConversationButton,.coral.coral-comment-edited{font-weight:normal;}.coral-comment-timestamp,.coral.coral-comment-edited{color:",";}"],A,h,h,L,u,j,N,T,Z,P,g,r,r,b,b,w,k,k,l,d,s,r,C,y,y,m,p,p,r,O,a,m,m,m,m,v,v,v,r,F,F,R,b,b,k,k,b,b,w,k,k,c,n.colorCommentsIndent6,n.colorCommentsIndent6,n.colorDark,m,n.colorCommentsIndent1,n.colorCommentsIndent2,n.colorCommentsIndent3,n.colorCommentsIndent4,n.colorCommentsIndent5,n.colorCommentsIndent6,n.colorCommentsIndent7,n.colorDark,n.colorCommentsIndent6,M,H,_,D,V,$,S,B,I,f),U=document.createElement("style");if(U.textContent=String(q.join("")),!t){let e=(0,x.iv)([".coral.coral-unauthenticated{> div:first-child,.coral-createComment,.coral-guidelines{display:none;}}.coral.coral-comments{padding-top:0;}.coral.coral-viewerBox{display:none;}"]);U.textContent+=e.join("")}if(i){let e=(0,x.iv)([".coral.coral-streamFooter,#tab-COMMENTS svg,#tab-PROFILE svg{display:none;}#tab-CONFIGURE svg{height:16.5px;}@media (max-width:531px){.coral.coral-stream{padding:0px;}}"]);U.textContent+=e.join("")}o.appendChild(U)})(l.element,!!(C?a:null),_,t)}),t.on("createComment.success",()=>{T(f,"submit","submit",r)}),t.on("createCommentReply.success",()=>{T(f,"submit","submit",r)}),t.on("createCommentReaction.success",()=>{T(f,"respect","respect",r)}),t.on("showReplyForm",()=>{T(f,"reply","reply",r)}),t.onAny(e=>{a||((e,t,n)=>{let i=E(e);if(!i||!["loadMoreAllComments.success","loadMoreFeaturedComments","loadMoreHistoryComments","ready","refreshCommentsButton","setCommentsOrderBy","setCommentsTab","setMainTab","showAllReplies","showMoreReplies","showMoreOfConversation","viewConversation","viewFullDiscussion","viewNewComments","viewNewCommentsNetwork","viewNewRepliesNetwork"].includes(t))return()=>null;let o=()=>{let e=Array.from(i.querySelectorAll('[data-testid="comment-reaction-button"]')),t=[...e,...Array.from(i.querySelectorAll('[data-testid="comment-reply-button"]')),...Array.from(i.querySelectorAll('[data-testid="comment-report-button"]'))];if(0===t.length)return!1;for(let e of t){let t=L(e);t.setAttribute("data-testid","comment-button-modified"),t.addEventListener("click",n)}return!0},r=null,a=setInterval(()=>{if(r&&r.disconnect(),!o())return;let e=i.querySelector('[data-test-id="virtuoso-item-list"],[data-testid="comments-permalinkView-conversationThread"]');e&&((r=new MutationObserver(e=>{for(let t=0;tclearInterval(a),1e3),()=>{r&&r.disconnect(),clearInterval(a)}})(l.element,e,()=>(0,S.lF)(S.CV.LOGIN))})},id:"coral_thread",rootURL:t,storyID:i,storyURL:`${window.location.origin}${o}`})})()},[t,f,e.headlines,e.publicId,e.type,e.urls,n.shortSiteName,F,R,B,k,_,v,h,M,u,C]),(0,i.jsxs)("div",{children:[(0,i.jsx)(w,{trackableUser:C}),(0,i.jsx)("div",{"data-testid":"comments-display",id:"coral_thread"},"comments")]})}},59258:function(e,t,n){n.d(t,{NL:()=>l,XF:()=>a,xR:()=>r,zx:()=>d});var i=n(79644),o=n(78943);let r=".15s ease-in-out",a=o.ZP.span.withConfig({componentId:"sc-997d016f-0"})(["background-color:",";border-radius:3px;color:",";display:inline-block;font-weight:bold;margin-right:6px;min-width:32px;padding:4px;position:relative;text-align:center;&::after{border-color:"," transparent transparent transparent;border-style:solid;border-width:8px 8px 0 0;bottom:-8px;content:'';height:0;left:6px;position:absolute;width:0;}"],({theme:e})=>e.colorCommentsCount,({theme:e})=>e.colorCommentsCountText,({theme:e})=>e.colorCommentsCount),l=o.ZP.span.withConfig({componentId:"sc-997d016f-1"})(["padding:0;"]),s=(0,o.iv)(["border:1px solid ",";font-size:15px;height:62px;line-height:1.333;padding:16px;width:100%;","{margin-right:8px;min-width:48px;}"],({theme:e})=>e.colorLightAccent,a),d=o.ZP.button.withConfig({componentId:"sc-997d016f-2"})(["color:",";cursor:pointer;font-size:13px;line-height:16px;","{transition:background-color ",";&::after{transition:border-color ",";}}","{text-decoration:none transparent;transition:text-decoration ",";}&:focus,&:hover{","{background-color:",";&::after{border-color:"," transparent transparent transparent;}}","{text-decoration:underline;}}",""],({theme:e})=>e.colorDark,a,r,r,l,r,a,({theme:e})=>e.colorCommentsCountHover,({theme:e})=>e.colorCommentsCountHover,l,({$inFooter:e})=>e?s:"");i.Z.zIndex.tooltip,(0,o.ZP)(i.Z.ButtonStandardGF).withConfig({componentId:"sc-997d016f-6"})(["margin-top:16px;padding:12px 0;width:100%;"])},35280:function(e,t,n){n.d(t,{Z:()=>s});var i=n(52322),o=n(11402),r=n(81924),a=n(84641),l=n(59258);let s=({asset:e,className:t,inFooter:n=!1,onClick:s,totalCommentCount:d})=>{let c=(0,o.ZP)(),m=`${d>0?"View all comments":"Leave a comment"}`;return e.type===a.h3.Recipe&&(m=`${n?"View ":""}recipe note${1===d?"":"s"}`),(0,i.jsxs)(l.zx,{$inFooter:n,className:t,"data-testid":"comments-button",onClick:()=>{s(),(0,r.OU)(e.headlines.headline),c.pushAnalyticsEvent({event:c.EVENTS.VIEW_COMMENTS_EVENT,interaction_label:m,interaction_type:n?"comment view bottom":"view",page_title:e.headlines.headline})},type:"button",children:[(0,i.jsx)(l.XF,{children:d}),(0,i.jsx)(l.NL,{children:m})]})}},70481:function(e,t,n){n.d(t,{Q:()=>a});var i=n(29939),o=n(84641),r=n(72649);let a=(e,t,n,a)=>{let l=e?.type,s=l===o.h3.Recipe||(l===o.h3.Article||l===o.h3.FeatureArticle||l===o.h3.LiveArticle)&&n!==r.AX||l===o.h3.Collection&&e?.subType===i.Ii.destinationGuide,d=a?.latestCommentsConnection?.count,c=a?.latestCommentsConnection?.closed&&0===d;return!t&&a?.enabled&&s&&!c}},43905:function(e,t,n){n.d(t,{Z:()=>c});var i=n(52322),o=n(77554),r=n(78943);let a=r.ZP.div.withConfig({componentId:"sc-9564c49b-0"})(["border-top:1px solid ",";color:",";margin-top:24px;padding:32px 0 24px;text-align:center;"],({theme:e})=>e.colorLightAccent,e=>e.theme.colorDark),l=r.ZP.p.withConfig({componentId:"sc-9564c49b-1"})(["font-size:15px;line-height:20px;margin:0 auto;max-width:362px;"]),s=r.ZP.h2.withConfig({componentId:"sc-9564c49b-2"})(["font-size:17px;line-height:24px;margin-bottom:12px;"]),d=r.ZP.svg.withConfig({componentId:"sc-9564c49b-3"})(["color:",";height:18px;margin:0 8px 3px 0;width:18px;"],({theme:e})=>e.colorWarningAlt),c=()=>(0,i.jsxs)(a,{children:[(0,i.jsxs)(s,{children:[(0,i.jsx)(d,{as:o.Z}),"Comments currently unavailable"]}),(0,i.jsx)(l,{children:"We're sorry, comments are currently unavailable. We're working to restore them. Please try again later."})]})},63710:function(e,t,n){n.d(t,{Z:()=>S});var i={};n.r(i),n.d(i,{CommentsSection:()=>Z,DestinationName:()=>w});var o={};n.r(o),n.d(o,{CommentsSection:()=>P,DestinationName:()=>w});var r=n(52322),a=n(29939),l=n(55229),s=n(35280),d=n(70481),c=n(43905),m=n(38936),p=n(56111),u=n(41865),h=n(2596),g=n(2784),f=n(53896),x=n(57737),v=n(13585),b=n(72649),k=n(79916),y=n(78943),C=n(79644);let w=y.ZP.h2.withConfig({componentId:"sc-31a3de74-0"})(["border-top:1px solid ",";color:",";font-family:",";font-size:24px;font-weight:normal;padding:42px 0 30px;text-align:center;"],({theme:e})=>e.colorLightAccent,({theme:e})=>e.colorDark,({theme:e})=>e.fontTertiary),Z=y.ZP.div.withConfig({componentId:"sc-31a3de74-1"})(["margin-top:",";padding:12px;text-align:center;@media ","{margin-top:",";}"],({$isSubscriberOnly:e})=>e?"0":"24px",C.Z.query.medium,({$isSubscriberOnly:e})=>e?"0":"32px"),P=(0,y.ZP)(Z).withConfig({componentId:"sc-ba425365-0"})(["border-bottom:0;border-top:0;padding:0;"]),S=({asset:e,className:t})=>{let n=(0,u.Z)(),y=(0,k.Un)((0,f.TH)().pathname),C=(0,x.k)(),{PAGEBUILDER:w}=(0,p.Z)(),{data:Z}=(0,v.x)(e),{commenting:P}=Z?.commentsByPublicId||{},S=P?.latestCommentsConnection?.count,I=(0,g.useCallback)(()=>{setTimeout(()=>(0,x.Z)(!0),0)},[]);if(!(0,d.Q)(e,w.ENABLED,y,P))return null;if(n[h.PERM_FEATURE_FLAG_COMMENTS_DISABLED])return(0,r.jsx)(c.Z,{});let j=y===b.AX?o:i,N=n[h.PERM_FEATURE_FLAG_PIANO_ENABLED]&&n[h.TEMP_FEATURE_FLAG_PIANO_COMMENTS_REG_ENABLED],A=e?.subType===a.Ii.destinationGuide&&e?.tags?.primary?.displayName;return(0,r.jsx)(m.ZP,{children:(0,r.jsxs)("div",{className:"noPrint",children:[A&&(0,r.jsxs)(j.DestinationName,{children:["Share your tips for visiting ",A]}),C?(0,r.jsx)(l.Z,{asset:e}):(0,r.jsx)(j.CommentsSection,{$isSubscriberOnly:N,className:t,id:"comments",children:(0,r.jsx)(s.Z,{asset:e,inFooter:!0,onClick:I,totalCommentCount:S})})]})})}},28833:function(e,t,n){n.d(t,{Z:()=>l});var i=n(52322),o=n(47765),r=n(2784);let a=n(78943).ZP.img.withConfig({componentId:"sc-2c55ee03-0"})(["display:none;"]),l=({asset:e})=>{let[t]=(0,r.useState)(Date.now()),{extensions:n}=e,{tracking:l={}}=n??{},s=l?.tags;return s&&s.length?(0,i.jsx)(i.Fragment,{children:s.reduce((e,n)=>{if(new Date(n.end).getTime()<=t)return e;let r=new URL(n.url,window.location.origin);r.searchParams.set("timestamp",String(t));let l=r.toString();return e.push((0,i.jsx)(a,{alt:"",className:"tag",src:l},(0,o.un)(l))),e},[])}):null}},88635:function(e,t,n){n.d(t,{M:()=>l,W:()=>r});var i=n(79644),o=n(78943);let r=o.ZP.div.withConfig({componentId:"sc-aa79dff5-0"})(["align-items:baseline;display:flex;flex-wrap:wrap;font-family:",";gap:4px;margin-bottom:8px;max-width:100%;position:relative;"],e=>e.theme.fontSecondary),a={normal:"16px",larger:"20px","very large":"24px"},l=o.ZP.button.withConfig({componentId:"sc-aa79dff5-1"})(["align-items:end;background-color:transparent;border:0;color:",";cursor:pointer;display:flex;font-size:",";height:32px;justify-content:center;line-height:1;outline:0;padding:2px;position:relative;width:28px;&::after{background-color:transparent;bottom:0;content:'';height:1px;left:50%;position:absolute;transform:translateX(-50%);width:20px;}"," @media ","{width:32px;}"],e=>e.theme.colorActionAlt,e=>a[e.$size],e=>e.$isSelected&&(0,o.iv)(["color:",";&::after{background-color:",";}"],e.$inverse?e.theme.colorActionAlt:e.theme.colorBody,e.$inverse?e.theme.colorActionAlt:e.theme.colorBody),i.Z.query.medium)},91339:function(e,t,n){n.d(t,{Z:()=>s});var i=n(52322),o=n(41865),r=n(2596),a=n(77965),l=n(88635);let s=({inverse:e=!1})=>{let t=(0,a.V1)();return(0,o.Z)()[r.TEMP_FEATURE_FLAG_FONT_RESIZER_ENABLED]?(0,i.jsx)(l.W,{children:a.CH.map(n=>(0,i.jsx)(l.M,{$inverse:e,$isSelected:t===n,$size:n,"aria-label":`Set font size to ${n}`,"aria-pressed":t===n,onClick:()=>(0,a.oL)(n),children:"A"},n))}):null}},89217:function(e,t,n){n.d(t,{Z:()=>ev});var i=n(52322),o=n(85124),r=n(21971),a=n(78943);let l=(0,a.ZP)(r.oD).withConfig({componentId:"sc-69a93f9a-0"})([""]),s=(0,a.ZP)(r.W2).withConfig({componentId:"sc-69a93f9a-1"})([""]),d=(0,a.ZP)(r.zx).withConfig({componentId:"sc-69a93f9a-2"})(["width:auto;"]),c=(0,a.ZP)(o.Z).withConfig({componentId:"sc-69a93f9a-3"})(["color:",";padding:2px;"],e=>e.$inverse?e.theme.colorLight:e.theme.colorDark);var m=n(41865),p=n(81924),u=n(95731),h=n(2596);let g=({asset:e,bottom:t=!1,giftButtonRef:n,className:o,inverse:r=!1,isNew:a=!1,onInitiate:g,showText:f=!0})=>{let x=(0,m.Z)();return(0,u.j7)(e)&&x[h.TEMP_FEATURE_FLAG_ARTICLE_GIFTING]?(0,i.jsx)(s,{className:o,children:(0,i.jsxs)(d,{$inverse:r,$showText:f,"aria-label":"Gift this article",onClick:()=>{(0,p.TM)(void 0,a,t),g()},ref:n,type:"button",children:[(0,i.jsx)(c,{$inverse:r}),(0,i.jsx)(l,{$showText:f,children:"Gift"})]})}):null},f=a.ZP.div.withConfig({componentId:"sc-d4cb0f86-0"})(["position:relative;"]);var x=n(48504),v=n(77554),b=n(79644),k=n(59558);let y=(0,a.iv)(["background-color:",";color:#fff;&:focus,&:hover{background-color:",";}&:active{background-color:",";}"],e=>e.theme.colorDark,e=>e.theme.colorBrand500,e=>e.theme.colorBrand600),C=(0,a.ZP)(k.Z).withConfig({componentId:"sc-cc1ff359-0"})(["bottom:auto;padding:16px;text-align:right;width:280px;"]),w=a.ZP.button.withConfig({componentId:"sc-cc1ff359-1"})(["background:none;border:none;cursor:pointer;height:24px;margin-bottom:16px;padding:0;text-align:right;"]),Z=(0,a.ZP)(x.Z).withConfig({componentId:"sc-cc1ff359-2"})(["color:",";height:24px;width:24px;"],e=>e.theme.colorDark),P=a.ZP.div.withConfig({componentId:"sc-cc1ff359-3"})(["display:flex;flex-direction:column;gap:8px;text-align:left;width:248px;"]),S=a.ZP.div.withConfig({componentId:"sc-cc1ff359-4"})(["align-items:center;background:",";border-radius:4px;display:flex;gap:2px;margin-bottom:8px;padding:6px;width:fit-content;"],e=>e.theme.colorLightFill),I=(0,a.ZP)(o.Z).withConfig({componentId:"sc-cc1ff359-5"})(["color:",";height:16px;padding:3px;width:16px;"],e=>e.theme.colorDark),j=a.ZP.span.withConfig({componentId:"sc-cc1ff359-6"})(["color:",";font-family:",";font-size:13px;line-height:16px;"],e=>e.theme.colorDark,e=>e.theme.fontPrimary),N=a.ZP.p.attrs({id:"gift-modal-heading"}).withConfig({componentId:"sc-cc1ff359-7"})(["color:",";font-family:",";font-size:18px;font-weight:bold;line-height:24px;margin:0;"],e=>e.theme.colorDark,e=>e.theme.fontPrimary),A=a.ZP.p.withConfig({componentId:"sc-cc1ff359-8"})(["color:",";font-family:",";font-size:15px;line-height:20px;margin:0;"],e=>e.theme.colorDark,e=>e.theme.fontPrimary),E=a.ZP.a.withConfig({componentId:"sc-cc1ff359-9"})(["color:",";text-decoration:underline;"],e=>e.theme.colorBrandAction),L=a.ZP.button.withConfig({componentId:"sc-cc1ff359-10"})([""," color:",";font:inherit;text-decoration:underline;"],b.Z.fauxLink,e=>e.theme.colorBrandAction),T=(0,a.ZP)(b.Z.ButtonStandard).withConfig({componentId:"sc-cc1ff359-11"})(["align-items:center;display:flex;height:40px;justify-content:center;padding:12px 24px;text-decoration:none;width:100% !important;"," ",""],e=>e.$isSubBrand&&y,e=>e.$outline&&(0,a.iv)(["background-color:transparent;border:1px solid ",";color:",";&:focus,&:hover{background-color:transparent;}"],e.$isSubBrand?e.theme.colorDark:e.theme.colorAction,e.$isSubBrand?e.theme.colorDark:e.theme.colorAction)),F=a.ZP.div.withConfig({componentId:"sc-cc1ff359-12"})(["display:grid;gap:8px;grid-template-columns:1fr 1fr;"]),R=a.ZP.p.withConfig({componentId:"sc-cc1ff359-13"})(["background:",";border:1px solid ",";border-radius:4px;color:",";font-family:",";font-size:14px;height:40px;min-width:0;overflow:hidden;padding:8px;text-overflow:ellipsis;white-space:nowrap;"],e=>e.theme.colorLight,e=>e.theme.colorMidAccent,e=>e.theme.colorMid,e=>e.theme.fontPrimary),B=(0,a.ZP)(b.Z.ButtonStandard).withConfig({componentId:"sc-cc1ff359-14"})(["align-items:center;display:flex;flex-shrink:0;gap:10px;height:40px;justify-content:center;padding:12px 16px;width:100% !important;"," "," &:focus,&:hover{","}"],e=>e.$isSubBrand&&y,e=>e.$copied&&` background-color: transparent; border: 1px solid ${e.theme.colorAction}; color: ${e.theme.colorAction}; `,e=>e.$copied&&` background-color: transparent; cursor: default; `),M=a.ZP.svg.withConfig({componentId:"sc-cc1ff359-15"})(["color:",";height:16px;width:16px;"],e=>e.theme.colorAction),_=a.ZP.div.withConfig({componentId:"sc-cc1ff359-16"})(["align-items:flex-start;display:flex;gap:8px;"]),V=(0,a.ZP)(v.Z).withConfig({componentId:"sc-cc1ff359-17"})(["color:",";height:24px;width:24px;"],e=>e.theme.colorRedDark),H=a.ZP.p.withConfig({componentId:"sc-cc1ff359-18"})(["color:",";font-family:",";font-size:15px;line-height:20px;margin:0;"],e=>e.theme.colorDark,e=>e.theme.fontPrimary),D=a.ZP.div.withConfig({componentId:"sc-cc1ff359-19"})(["display:flex;gap:2px;"]),$=({className:e,error:t,learnMoreUrl:n,remaining:o})=>(0,i.jsxs)(P,{className:e,children:[(0,i.jsx)(N,{children:"Gift this article"}),(0,i.jsxs)(A,{children:["Share full article with anyone — no subscription needed to read it."," ",o>0&&(0,i.jsxs)(i.Fragment,{children:["You still have ",o," ",(0,u.rh)(o)," left to use this month."," "]}),(0,i.jsx)(E,{href:n,onClick:()=>(0,p.wg)(String(o)),children:"Learn more"})]}),(0,i.jsxs)(_,{children:[(0,i.jsx)(V,{}),(0,i.jsx)(H,{children:"network"===t?"No network connection. Check your connection and try again.":"Something went wrong. Refresh the page or try again later."})]})]});var O=n(96314),q=n(53896),U=n(79916);let z=({isDomain:e,loading:t=!1,onClose:n,onGenerateLink:o,learnMoreUrl:r,remaining:a,subscriptionUrl:l,tier:s,tierAllowance:d})=>{let c=(0,U.Un)((0,q.TH)().pathname),m=!t&&!e&&a<=0&&"starter"===s;return(0,i.jsxs)(P,{children:[e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N,{children:"Gift this free article"}),(0,i.jsxs)(A,{children:["Share full article with anyone — no subscription needed to read it. It won't deduct your gift credits."," ",(0,i.jsx)(E,{href:r,onClick:()=>(0,p.wg)(String(a)),children:"Learn more"})]})]}):!t&&a<=0&&"starter"===s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N,{children:"No gift articles left"}),(0,i.jsxs)(A,{children:["You've used all of your gift articles. ",d," more will become available on the 1st of every month or upgrade to receive a total of ",u.K_," per month."]})]}):!t&&a<=0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N,{children:"No gift articles left"}),(0,i.jsxs)(A,{children:["You've used all of your gift articles. ",d," more will become available on the 1st of every month."]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N,{children:"Gift this article"}),(0,i.jsxs)(A,{children:["Share full article with anyone — no subscription needed to read it."," ",a>0&&(0,i.jsxs)(i.Fragment,{children:["You still have ",a," ",(0,u.rh)(a)," left to use this month."," "]}),(0,i.jsx)(E,{href:r,onClick:()=>(0,p.wg)(String(a)),children:"Learn more"})]})]}),m?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T,{$isSubBrand:!!c,as:"a",href:l,children:"Upgrade to premium"}),(0,i.jsx)(T,{$isSubBrand:!!c,$outline:!0,onClick:n,type:"button",children:"Maybe later"})]}):(0,i.jsx)(T,{$isSubBrand:!!c,disabled:t,onClick:()=>{a<=0&&!e?n?.():o()},type:"button",children:t?(0,i.jsx)(O.Z,{inverse:!0,size:"1.25em"}):a<=0&&!e?"Close":"Share article as gift"})]})};var G=n(99254);let W=({articleUrl:e,copied:t=!1,isDomain:n,learnMoreUrl:o,onCopy:r,remaining:a,token:l})=>{let s=(0,U.Un)((0,q.TH)().pathname),d=l?`${e}?gift=${l}`:e;return(0,i.jsxs)(P,{children:[n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N,{children:"Gift this free article"}),(0,i.jsxs)(A,{children:["Share full article with anyone — no subscription needed to read it. It won't deduct your gift credits."," ",(0,i.jsx)(E,{href:o,onClick:()=>(0,p.wg)(String(a)),children:"Learn more"})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N,{children:"Your gifting link is ready"}),(0,i.jsxs)(A,{children:["Share full article with anyone — no subscription needed to read it."," ",a>0&&(0,i.jsxs)(i.Fragment,{children:["You still have ",a," ",(0,u.rh)(a)," left to use this month."," "]}),(0,i.jsx)(E,{href:o,onClick:()=>(0,p.wg)(String(a)),children:"Learn more"})]})]}),(0,i.jsxs)(F,{children:[(0,i.jsx)(R,{children:d}),(0,i.jsx)(B,{$copied:t,$isSubBrand:!!s,onClick:()=>{navigator.clipboard.writeText(d),r()},type:"button",children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(M,{as:G.Z})," Copied"]}):"Copy"})]})]})};var Y=n(56038),X=n(1797);let Q=({subscriptionUrl:e})=>{let t=(0,U.Un)((0,q.TH)().pathname);return(0,i.jsxs)(P,{children:[(0,i.jsx)(N,{children:"Subscribe to gift this article"}),(0,i.jsx)(A,{children:"Gift up to 5 articles every month to anyone."}),(0,i.jsx)(T,{$isSubBrand:!!t,as:"a",href:e,onClick:()=>(0,p.WQ)(Y.EZ),children:"Subscribe"}),(0,i.jsxs)(D,{children:["Already subscribed?"," ",(0,i.jsx)(L,{onClick:()=>{(0,p.WQ)(Y.PN),(0,X.lF)(X.CV.LOGIN)},type:"button",children:"Log in"})," "]})]})};var K=n(56111),J=n(2784);let ee=({alignment:e,articleUrl:t,below:n=!0,className:o,containerRef:r,isDomain:a,onClose:l,onCopy:s,onGenerateLink:d,state:c,subscriptionUrl:m,tier:p,tierAllowance:h,triggerRef:g})=>{let{brand:{shortSiteName:f}}=(0,K.Z)(),x=u.zZ[f]||"#",v=(0,J.useRef)(null),b=(0,J.useRef)(!1);return(0,J.useEffect)(()=>{c.visible&&!b.current?v.current?.focus():!c.visible&&b.current&&g?.current?.focus(),b.current=c.visible},[c.visible,g]),(0,i.jsxs)(C,{alignment:e,ariaLabelledBy:"gift-modal-heading",below:n,className:o,containerRef:r,onClose:l,role:"dialog",showing:c.visible,children:[(0,i.jsx)(w,{"aria-label":"Close",onClick:l,ref:v,type:"button",children:(0,i.jsx)(Z,{})}),"notSubscriber"!==c.kind&&(0,i.jsxs)(S,{children:[(0,i.jsx)(I,{}),(0,i.jsxs)(j,{children:[c.remaining," / ",h]})]}),(()=>{switch(c.kind){case"quota":return(0,i.jsx)(z,{isDomain:a,learnMoreUrl:x,onClose:l,onGenerateLink:d,remaining:c.remaining,subscriptionUrl:m,tier:p,tierAllowance:h});case"loading":return(0,i.jsx)(z,{learnMoreUrl:x,loading:!0,onGenerateLink:d,remaining:c.remaining,tierAllowance:h});case"link":return(0,i.jsx)(W,{articleUrl:t,isDomain:a,learnMoreUrl:x,onCopy:s,remaining:c.remaining,token:c.token});case"copied":return(0,i.jsx)(W,{articleUrl:t,copied:!0,isDomain:a,learnMoreUrl:x,onCopy:s,remaining:c.remaining,token:c.token});case"error":return(0,i.jsx)($,{error:c.error,learnMoreUrl:x,remaining:c.remaining});case"notSubscriber":return(0,i.jsx)(Q,{subscriptionUrl:m});default:return null}})()]})};var et=n(5950),en=n(64381),ei=n(11402),eo=n(17741),er=n(72204);let ea={clientName:"api-front"},el=(0,a.F4)(["from{opacity:0;}to{opacity:1;}"]),es=(0,a.iv)(["background-color:",";color:#fff;&:focus,&:hover{background-color:",";}&:active{background-color:",";}"],e=>e.theme.colorDark,e=>e.theme.colorBrand500,e=>e.theme.colorBrand600),ed=(0,a.ZP)(k.Z).withConfig({componentId:"sc-52cf36ae-0"})([""," display:flex;flex-direction:column;gap:16px;padding:16px;text-align:left;width:240px;button{@media ","{width:100%;}}"],e=>e.$isAnimatingOut?(0,a.iv)(["opacity:0;transition:opacity 0.3s ease-in-out;"]):(0,a.iv)(["animation:"," 0.3s ease-in-out;"],el),b.Z.query.smallMax),ec=a.ZP.p.withConfig({componentId:"sc-52cf36ae-1"})(["color:",";font-family:",";font-size:18px;font-weight:bold;line-height:24px;margin:0;"],e=>e.theme.colorDark,e=>e.theme.fontPrimary),em=a.ZP.p.withConfig({componentId:"sc-52cf36ae-2"})(["color:",";font-family:",";font-size:14px;line-height:18px;margin:0;"],e=>e.theme.colorDark,e=>e.theme.fontPrimary),ep=a.ZP.button.withConfig({componentId:"sc-52cf36ae-3"})(["background-color:",";border:none;border-radius:4px;color:",";cursor:pointer;font-family:",";font-size:13px;font-weight:bold;letter-spacing:1px;padding:12px 0;text-transform:uppercase;width:100%;&:focus,&:hover{background-color:",";}&:active{background-color:",";}",""],e=>e.theme.colorBrandAction,e=>e.theme.colorBrandActionOffset,e=>e.theme.fontPrimary,e=>e.theme.colorBrandActionHighlight,e=>e.theme.colorBrandActionHighlight,e=>e.$isSubBrand&&es);var eu=n(83949);let eh="gift-onboarding-tooltip-dismissed",eg=()=>"undefined"!=typeof localStorage&&"true"===localStorage.getItem(eh),ef=()=>{"undefined"!=typeof localStorage&&localStorage.setItem(eh,"true")},ex=({alignment:e,below:t=!0,className:n,containerRef:o,onDismiss:r})=>{let a=(0,m.Z)(),l=(0,eu.aF)(),s=(0,U.Un)((0,q.TH)().pathname),[d,c]=(0,J.useState)(!1),[p,u]=(0,J.useState)(!0),[g,f]=(0,J.useState)(!1),x=(0,J.useRef)(void 0);(0,J.useEffect)(()=>{u(eg()),c(!0)},[]),(0,J.useEffect)(()=>()=>clearTimeout(x.current),[]);let v=(0,J.useCallback)(()=>{ef(),f(!0),x.current=setTimeout(()=>{u(!0),r?.()},300)},[r]),b=(0,J.useRef)(v);return((0,J.useEffect)(()=>{b.current=v},[v]),(0,J.useEffect)(()=>{if(!d||p||g)return;let e=e=>{o?.current&&!o.current.contains(e.target)&&b.current()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,p,g,o]),d&&a[h.TEMP_FEATURE_FLAG_ARTICLE_GIFTING_ONBOARDING_TOOLTIP]&&!p)?(0,i.jsxs)(ed,{$isAnimatingOut:g,alignment:e,below:t,className:n,containerRef:o,onClose:v,showing:!0,children:[(0,i.jsx)(ec,{children:"Article gifting is here"}),(0,i.jsx)(em,{children:l?"You can now give anyone free access to subscriber-only stories.":"Give anyone free access to subscriber-only stories when you subscribe."}),(0,i.jsx)(ep,{$isSubBrand:!!s,onClick:v,type:"button",children:"Got it"})]}):null},ev=({alignment:e,asset:t,below:n=!0,bottom:o=!1,giftButtonRef:r,className:a,inverse:l,showText:s})=>{let d=(0,J.useRef)(null),c=(0,J.useRef)(null),x=r??c,v=(e=>{let{brand:t}=(0,K.Z)(),{canGift:n,tier:i,tierAllowance:o}=(0,u.Nr)(),{thumbmark:r}=(0,et.hU)(),a=(0,ei.ZP)(),l=(0,u.gg)(e),s=(0,er.Zn)(e.urls,t.shortSiteName,t.siteUrl),[d,c]=(0,J.useState)({kind:"quota",remaining:0,visible:!1}),[m]=(0,en.Yu)(),h=(0,J.useRef)(!1),g=(0,J.useCallback)(()=>{if(!d.visible){if(!n)return void c({kind:"notSubscriber",visible:!0});if("link"===d.kind||"copied"===d.kind)return void c({...d,kind:"link",visible:!0});c({kind:"loading",remaining:0,visible:!0}),m({context:ea,variables:{input:{brand:(0,eo.w)(t.shortSiteName)}}}).then(({data:e})=>{let t=e?.subscriptionGiftQuota;if(!t||t.error)return void c({error:"quotaFetch",kind:"error",remaining:t?.remaining??0,visible:!0});c({kind:"quota",remaining:t.remaining,visible:!0})}).catch(()=>c({error:"network",kind:"error",remaining:0,visible:!0}))}},[m,t.shortSiteName,n,d]),f=(0,J.useCallback)(()=>{if("quota"!==d.kind)return;if(l)return void c({...d,kind:"link",token:"",visible:!0});let{remaining:n}=d;(0,p.U)(String(n)),c({kind:"loading",remaining:n,visible:!0}),(0,en.X0)(e.publicId,(0,eo.w)(t.shortSiteName),r||"").then(e=>{if(!e||e.error)return void c({error:"generation",kind:"error",remaining:n,visible:!0});c({kind:"link",remaining:e.remaining,token:e.token,visible:!0})}).catch(()=>c({error:"network",kind:"error",remaining:n,visible:!0}))},[d,e.publicId,t.shortSiteName,l,r]),x=(0,J.useCallback)(()=>{("link"===d.kind||"copied"===d.kind)&&(l||((0,p.oe)(String(d.remaining)),a.pushAnalyticsEvent((0,p.oN)(a.mappers.assetInfo(e)))),c({...d,kind:"copied",visible:!0}))},[d,l,e,a]),v=(0,J.useCallback)(()=>{d.visible&&("notSubscriber"===d.kind?(0,p.WQ)(Y.Fk):"link"===d.kind||"copied"===d.kind?(0,p.Kd)(String(d.remaining)):(0,p.fo)(String(d.remaining))),c({...d,visible:!1})},[d]);return(0,J.useEffect)(()=>{d.visible&&!h.current&&(0,p.LO)("notSubscriber"===d.kind?void 0:String(d.remaining)),h.current=d.visible},[d]),(0,J.useEffect)(()=>{let e;return"copied"===d.kind&&(e=setTimeout(()=>{c(e=>"copied"===e.kind?{...e,kind:"link"}:e)},3e4)),()=>clearTimeout(e)},[d.kind]),{articleUrl:s,isDomain:l,onClose:v,onCopy:x,onGenerateLink:f,onInitiate:g,state:d,subscriptionUrl:t.subscriptionUrl,tier:i,tierAllowance:o}})(t),b=(0,m.Z)(),k=(0,u.EZ)((0,q.TH)().search),[y,C]=(0,J.useState)(!1),[w,Z]=(0,J.useState)(!0);(0,J.useEffect)(()=>{Z(eg()),C(!0)},[]);let P=y&&!o&&b[h.TEMP_FEATURE_FLAG_ARTICLE_GIFTING_ONBOARDING_TOOLTIP]&&!w&&!k;return(0,i.jsxs)(f,{className:a,ref:d,children:[(0,i.jsx)(g,{asset:t,bottom:o,giftButtonRef:x,inverse:l,isNew:P,onInitiate:()=>{b[h.TEMP_FEATURE_FLAG_ARTICLE_GIFTING_ONBOARDING_TOOLTIP]&&!w&&(ef(),Z(!0)),v.onInitiate()},showText:s}),(0,i.jsx)(ee,{alignment:e,articleUrl:v.articleUrl,below:n,containerRef:d,isDomain:v.isDomain,onClose:v.onClose,onCopy:v.onCopy,onGenerateLink:v.onGenerateLink,state:v.state,subscriptionUrl:v.subscriptionUrl,tier:v.tier,tierAllowance:v.tierAllowance,triggerRef:x}),P&&(0,i.jsx)(ex,{alignment:e,below:n,containerRef:d,onDismiss:()=>Z(!0)})]})}},3766:function(e,t,n){n.d(t,{EZ:()=>a,Kw:()=>r,TR:()=>l,f:()=>s});var i=n(43743),o=n(78943);let r=o.ZP.div.withConfig({componentId:"sc-8d528977-0"})(["display:flex;margin:8px 0 24px;"]),a=(0,o.ZP)(i.ButtonHollowMetro).withConfig({componentId:"sc-8d528977-1"})(["align-items:center;border:none;border-radius:4px;box-shadow:0 0 4px 0 #00000040;display:flex;flex-direction:row;gap:10px;padding:16px;position:relative;text-decoration:none;"]),l=o.ZP.div.withConfig({componentId:"sc-8d528977-2"})(["height:24px;width:24px;"]),s=o.ZP.p.withConfig({componentId:"sc-8d528977-3"})(["color:",";font-size:16px;font-weight:400;gap:10px;letter-spacing:0;line-height:24px;text-transform:none;"],({theme:e})=>e.colorLabel)},29799:function(e,t,n){n.d(t,{Z:()=>k});var i,o,r,a,l=n(52322),s=n(2784);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{brand:e}=(0,p.Z)(),{shortSiteName:t}=e,n=(0,u.Z)(),[i,o]=(0,s.useState)(!1),[r,a]=(0,s.useState)(!0),d=t?`https://www.google.com/preferences/source?q=${t}.com.au`:"https://www.google.com/preferences/source?q=smh.com.au";return((0,s.useEffect)(()=>{a(g.mB.get(m,b)),o(!0)},[]),n[x.TEMP_FEATURE_FLAG_GOOGLE_PREFERRED_SOURCE_BUTTON_ENABLED]&&i&&!r)?(0,l.jsx)(v.Kw,{className:"noPrint",children:(0,l.jsxs)(v.EZ,{as:f.Z,onClick:()=>{(0,h.QZ)(d),g.mB.set(m,!0,365,b),a(!0)},url:d,children:[(0,l.jsx)(v.TR,{"aria-hidden":"true",as:c,focusable:"false"}),(0,l.jsx)(v.f,{children:"Add us as a preferred source on Google"})]})}):null}},36785:function(e,t,n){n.d(t,{Z:()=>m});var i=n(52322),o=n(9935),r=n(38936),a=n(56111),l=n(72761),s=n(53896),d=n(72649),c=n(79916);let m=({asset:e})=>{let{category:t,tags:n}=e,{brand:{shortSiteName:m,siteUrl:p}}=(0,a.Z)(),u=(0,c.Un)((0,s.TH)().pathname),h=((e,t,n,i)=>{let o=null!==i;return[{name:o?"Home":e.parent?.name||"Home",url:o?i===d.AX?"/goodfood":i===d.zE?"/traveller":"/":(0,l.$)(e.parent,i,n)},{name:e.name,url:(0,l.$)(e,i,n)},...t?.urls?[{name:t.displayName,url:(0,l.g)(i,t,n)}]:[]]})(t,n?.primary,m,u);return(0,i.jsx)(r.ZP,{children:(0,i.jsx)(o.Breadcrumbs,{baseURL:p,breadcrumbs:h})})}},60762:function(e,t,n){n.d(t,{Z:()=>o});var i=n(2784);let o=(e,t)=>{(0,i.useEffect)(()=>{let n=e.current;if(!n||!t)return;let i=null,o=new Event("scroll"),r=()=>{null===i&&(i=requestAnimationFrame(()=>{i=null,window.dispatchEvent(o)}))};return n.addEventListener("scroll",r,{passive:!0}),()=>{n.removeEventListener("scroll",r),null!==i&&cancelAnimationFrame(i)}},[e,t])}},27421:function(e,t,n){n.d(t,{R:()=>o,Z:()=>r});var i=n(23539);let o={kind:"Document",definitions:(e=>{let t={};return e.filter(e=>{if("FragmentDefinition"!==e.kind)return!0;let n=e.name.value;return!t[n]&&(t[n]=!0,!0)})})([{kind:"OperationDefinition",name:{kind:"Name",value:"PageByType"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PageByTypeInput"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageByType"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"page"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ads"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suppress"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"groups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"units"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"heading"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"InlineFragment",directives:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ResolvedContentUnit"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AssetPreviewFragment"},directives:[]}]}}]}}]}},{kind:"InlineFragment",directives:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RecirculationContentUnit"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AssetPreviewFragment"},directives:[]}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}].concat(n(52115).AN.definitions)),loc:{start:0,end:314,source:{body:"query PageByType($input:PageByTypeInput!){pageByType(input:$input){error{message}page{ads{suppress}id content{groups{id name content{units{heading{text url}id name type...on ResolvedContentUnit{content{assets{...AssetPreviewFragment}}}...on RecirculationContentUnit{content{assets{...AssetPreviewFragment}}}}}}}}}}"}}},r=(e,t)=>(0,i.a)(o,{nextFetchPolicy:"cache-only",returnPartialData:!0,ssr:!1,variables:{after:"",first:0,input:{brandKey:e,pageType:t,renderName:"web"}}})},72671:function(e,t,n){n.d(t,{Z:()=>s});var i=n(83096),o=n(41865),r=n(98051),a=n(2596),l=n(2784);let s=()=>{let[e,t]=(0,l.useState)(!1),[n,s]=(0,l.useState)(!1),[d,c]=(0,l.useState)(""),m=(0,o.Z)(),p=e&&!m[a.PERM_FEATURE_FLAG_PIANO_HARD_REG_WALL_UNAVAILABLE]||n&&!m[a.PERM_FEATURE_FLAG_PIANO_PAYWALL_UNAVAILABLE];return(0,l.useEffect)(()=>{let e=e=>{if(e.type===r.Ru){switch(e.detail.type){case r.iV:t(!0);break;case r.bQ:s(!0),m[a.PERM_FEATURE_FLAG_PIANO_PAYWALL_UNAVAILABLE]||(0,i.Qp)(document.body);break;case r.Ht:s(!1);break;case r.zv:(0,i.Qp)(document.body)}e.detail?.type&&c(e.detail.type)}};return window.onpageshow=e=>{e.persisted&&window.location.reload()},window.addEventListener(r.Ru,e),()=>{window.removeEventListener(r.Ru,e)}},[m]),{contentWallVisible:p,pianoEventDetail:d}}},12533:function(e,t,n){n.d(t,{Z:()=>v});var i=n(52322),o=n(14691),r=n(93673),a=n(2784),l=n(53896),s=n(79644),d=n(78943);let c=d.ZP.div.withConfig({componentId:"sc-3ba9ce4e-0"})(["border-bottom:1px solid ",";margin-bottom:16px;padding-bottom:16px;position:relative;"],e=>e.theme.colorLightAccent),m=d.ZP.h3.withConfig({componentId:"sc-3ba9ce4e-1"})(["color:",";display:inline-block;font-size:15px;font-weight:bold;letter-spacing:1px;margin:0;text-transform:uppercase;"],e=>e.theme.colorLabelLiveArticle),p=d.ZP.svg.withConfig({componentId:"sc-3ba9ce4e-2"})(["cursor:pointer;display:block;height:24px;margin:16px auto 0;transform:",";@media ","{margin:0;position:absolute;right:0;top:0;transform:",";}"],({$open:e})=>e.small?"rotate(180deg)":"none",s.Z.query.medium,({$open:e})=>e.medium?"rotate(180deg)":"none"),u=d.ZP.div.withConfig({componentId:"sc-3ba9ce4e-3"})(["display:flex;flex-direction:column;max-height:",";opacity:1;overflow:hidden;position:relative;transition:all 0.4s ease;::after{background-image:linear-gradient(0deg,#fff 0%,#fff0 100%);bottom:0;content:'';height:50px;left:0;opacity:",";pointer-events:none;position:absolute;transition:opacity 0.4s ease;width:100%;}@media ","{max-height:",";opacity:",";::after{display:none;}}"],({$height:e,$open:t})=>t.small?`${e}px`:"80px",({$open:e})=>e.small?"0":"0.2",s.Z.query.medium,({$height:e,$open:t})=>t.medium?`${e?`${e}px`:"fit-content"}`:"0px",({$open:e})=>e.medium?"1":"0"),h=d.ZP.div.withConfig({componentId:"sc-3ba9ce4e-4"})(["min-height:fit-content;padding-bottom:8px;"]),g=d.ZP.div.withConfig({componentId:"sc-3ba9ce4e-5"})(["align-items:flex-start;display:flex;flex-direction:row;font-size:15px;gap:16px;margin-top:16px;@media ","{gap:36px;}"],s.Z.query.medium),f=d.ZP.div.withConfig({componentId:"sc-3ba9ce4e-6"})(["background-color:",";border-radius:50%;display:inline-block;flex-shrink:0;height:9px;margin-top:6px;width:9px;"],e=>e.theme.colorLabelLiveArticle),x=d.ZP.a.withConfig({componentId:"sc-3ba9ce4e-7"})(["color:",";text-decoration:underline ",";transition:text-decoration-color 0.3s ease;&:hover{text-decoration:underline ",";}&[aria-disabled='true']{pointer-events:none;}"],e=>e.theme.colorDark,e=>e.theme.colorLightAccent,e=>e.theme.colorDark),v=({posts:e,disabled:t})=>{let n=(0,r.Z)("small"),[s,d]=(0,a.useState)({small:!1,medium:!0}),v=(0,a.useRef)(null);if(0===e.length)return null;let b=e.length>2,k=b?s:{small:!0,medium:!0};return(0,i.jsxs)(c,{children:[(0,i.jsx)(m,{"data-testid":"key-posts-header",children:"Key Posts"}),(0,i.jsx)(u,{$height:v.current?.offsetHeight,$open:k,"aria-expanded":n?k.small:k.medium,"data-testid":"key-posts-content",children:(0,i.jsx)(h,{ref:v,children:e.map(({headlines:e,id:n,publicId:o})=>(0,i.jsxs)(g,{id:`key-post-${n}`,children:[(0,i.jsx)(f,{"aria-hidden":"true","data-testid":"key-post-bullet"}),(0,i.jsx)(x,{"aria-disabled":!!t,as:l.rU,to:`?post=${o}&gb=1`,children:e.headline})]},`key-post-${n}`))})}),b&&(0,i.jsx)(p,{$open:k,as:o.Z,"data-testid":"key-posts-collapse-button",onClick:()=>{d({small:!s.small,medium:!s.medium})}})]})}},21746:function(e,t,n){n.d(t,{DG:()=>l,Vr:()=>a,Yw:()=>r,k1:()=>s});var i=n(79644),o=n(78943);let r=o.ZP.div.withConfig({componentId:"sc-1509e3cf-0"})(["margin:20px 0 24px;@media ","{margin-top:32px;}@media ","{margin:32px 0;}"],i.Z.query.medium,i.Z.query.large),a=o.ZP.span.withConfig({componentId:"sc-1509e3cf-1"})(["font-size:13px;font-weight:bold;"]),l=(0,o.ZP)(i.Z.LinkStandard).withConfig({componentId:"sc-1509e3cf-2"})(["font-size:13px;margin-left:16px;"," "," &:first-child{margin-left:0;}"],e=>e.tag&&(e.lightLabel?`color: ${e.theme.colorLight};`:`color: ${e.theme.colorLabelTag};`),e=>e.lightLabel&&`color: ${e.theme.colorLight};`),s=(0,o.ZP)(l).withConfig({componentId:"sc-1509e3cf-3"})(["",""],e=>e.inverse&&`color: ${e.theme.colorBrand300};`)},36021:function(e,t,n){n.d(t,{Z:()=>f});var i=n(52322),o=n(56111),r=n(35273),a=n(1333),l=n(53896),s=n(28063),d=n(72204),c=n(72649),m=n(1600),p=n(79916),u=n(5995),h=n(21746),g=n(72761);let f=({asset:e,className:t,lightLabel:n=!1,showCategory:f=!0,showLabel:x=!0,showTag:v=!0})=>{let{brand:{shortSiteName:b,timeZone:k}}=(0,o.Z)(),{tags:y}=e,C=y?.primary?.displayName,w=y?.primary?.urls,Z=(0,a.i)(e),P=(0,p.Un)((0,l.TH)().pathname),S=(0,m.fN)(e,k),I=(0,d.CO)(y,c.aZ),j=S;return I&&(j=!1),(0,i.jsxs)(h.Yw,{className:`noPrint ${t||""}`,children:[j&&(0,i.jsx)(r.Z,{onDarkBackground:S,shouldPulse:!0}),x&&Z&&(0,i.jsx)(h.Vr,{children:Z},`label-${Z}`),f&&((e,t,n,o)=>{let{category:r}=e,{name:a,parent:l}=r,s=(0,u.VQ)(a),d=(0,p.kZ)(o);return(0,i.jsxs)(i.Fragment,{children:[l&&d&&(0,i.jsx)(h.DG,{href:(0,g.$)(l,o,n),lightLabel:t,children:l.name},`cat-${l.name}`),a&&(0,i.jsx)(h.DG,{href:(0,g.$)(r,o,n),lightLabel:t,children:s},`cat-${s}`)]})})(e,n,b,P),v&&w&&C&&(0,i.jsx)(h.k1,{href:(0,g.g)(P,y.primary,b),inverse:(0,s.Dd)(e),lightLabel:n,tag:!0,children:C},`tag-${C}`)]})}},32075:function(e,t,n){n.d(t,{Z:()=>e4});var i,o,r,a,l,s=n(52322),d=n(17845),c=n(75724),m=n(90016),p=n(34650),u=n.n(p),h=n(38936),g=n(56111),f=n(98051),x=n(27297),v=n(63490),b=n(53896),k=n(83628),y=n(72649),C=n(1600),w=n(79916),Z=n(14658);let P=({asset:e,posts:t})=>{let{brand:{image:n,longSiteName:i,shortSiteName:o,siteUrl:r},imageRenditionUrlPrefix:a,SUBSCRIBE_WITH_GOOGLE:{PRODUCT_ID:l}}=(0,g.Z)(),d=(0,w.Un)((0,b.TH)().pathname),c=(0,k.gg)(e),m=(0,Z.Z2)(d===y.AX,e,o),p={brand:{longName:i,shortName:o,logo:{url:n.LOGO_URL,width:n.LOGO_WIDTH,height:n.LOGO_HEIGHT},url:r},canonical:m,description:e.overview?.about||"",image:e.images?(0,Z.Jn)(e.images,a,"withDimensions")[0]:void 0,keywords:(0,Z.CS)(e,"Keywords"),liveArticle:{authors:(0,Z.P6)(e.byline,d,o),firstPublished:e.dates.firstPublished,id:e.id,published:e.dates.published,lastPostPublished:e.extensions?.dates?.lastPostPublished||e.dates.published,posts:t.map(e=>({authors:(0,Z.P6)(e.byline,d,o),body:(0,C.Cf)(e.body?.blocks||[]),firstPublished:e.dates.firstPublished||"",headline:e.headlines?.headline||"",published:e.dates.published||"",url:`${m.url}#update${(0,v.F)(e.dates.published,x.kl)}`}))},paywall:{accessibleForFree:c,cssSelectors:[`.${f.Jn}`]},subscribeWithGoogle:{productID:l},title:e.headlines.headline,type:"LiveArticle"};return(0,s.jsx)(h.ZP,{children:(0,s.jsx)(u(),{meta:p})})};var S=n(2784);let I="latestPosts";var j=n(50041);let N={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"AssetLivePostsPolling"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AssetByPublicIDInput"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assetByPublicId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AssetLivePostsForPolling"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AssetLivePostsForPolling"},directives:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LiveArticleAsset"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"latestPostsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"published"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:279,source:{body:"query AssetLivePostsPolling($first:Int!,$input:AssetByPublicIDInput!){assetByPublicId(input:$input){asset{...AssetLivePostsForPolling}error{message}}}fragment AssetLivePostsForPolling on LiveArticleAsset{latestPostsConnection(first:$first){edges{node{dates{published}publicId}}}}"}}};var A=n(10519),E=n(89311),L=n(93673),T=n(79644),F=n(78943);let R=F.ZP.nav.withConfig({componentId:"sc-fa8585bf-0"})(["align-items:center;border-bottom:1px solid ",";border-top:1px solid ",";display:flex;justify-content:space-between;margin-bottom:",";margin-top:",";min-height:67px;padding:12px 0;position:relative;",""],({theme:e})=>e.colorLightAccent,({theme:e})=>e.colorLightAccent,e=>e.$renderedOnTop?"24px":"0",e=>e.$renderedOnTop?"-17px":"28px",({$unclickable:e})=>e&&"pointer-events: none;"),B=F.ZP.nav.withConfig({componentId:"sc-fa8585bf-1"})(["align-items:center;border-bottom:1px solid #d7dbe3;display:flex;justify-content:space-between;min-height:67px;padding:12px 0;position:relative;"]),M=F.ZP.div.withConfig({componentId:"sc-fa8585bf-2"})(["display:flex;gap:10px;width:150px;"]),_=F.ZP.div.withConfig({componentId:"sc-fa8585bf-3"})(["text-align:center;width:150px;"]),V=F.ZP.span.withConfig({componentId:"sc-fa8585bf-4"})(["font-weight:700;"]),H=F.ZP.div.withConfig({componentId:"sc-fa8585bf-5"})(["display:flex;gap:10px;justify-content:flex-end;width:150px;"]),D=F.ZP.a.withConfig({componentId:"sc-fa8585bf-6"})(["border:1px solid ",";border-radius:4px;font-weight:700;padding:8px;vertical-align:top;svg{color:",";}&:hover{background-color:",";svg{color:",";}}&[aria-disabled='true']{border-color:",";color:",";svg{color:",";}}"],e=>e.theme.colorActionAlt,e=>e.theme.colorActionAlt,e=>e.theme.colorActionAlt,T.Z.white,e=>e.theme.colorLightAccent,e=>e.theme.colorLightAccent,e=>e.theme.colorLightAccent),$=(0,F.ZP)(D).withConfig({componentId:"sc-fa8585bf-7"})(["border:1px solid ",";color:",";font-size:13px;letter-spacing:1px;padding:12px 12px 11px;text-decoration:none;text-transform:uppercase;user-select:none;&:hover{background-color:",";border:1px solid ",";color:",";}"],e=>e.theme.colorLightAccent,e=>e.theme.colorLink,e=>e.theme.colorActionAlt,e=>e.theme.colorActionAlt,T.Z.white),O=(0,F.ZP)($).withConfig({componentId:"sc-fa8585bf-8"})([""]),q=({oldestPostPublicId:e=null,pageInfo:t,pageNumber:n,renderedOnTop:i=!1,disabled:o,totalPages:r})=>{let{endCursor:a,hasNextPage:l,hasPreviousPage:d,startCursor:c}=t||{},m=(0,L.Z)("smallMax");if(1===n&&i)return null;let p=(0,s.jsx)($,{"aria-disabled":o,"aria-label":"Go to latest page",as:b.rU,to:"?gb=1",children:"Latest"}),u=l&&(0,s.jsx)(O,{"aria-disabled":o,"aria-label":"Go to oldest page",as:b.rU,to:`?post=${e}&gb=1`,children:"Oldest"});return(0,s.jsxs)(s.Fragment,{children:[!(o&&!i)&&(0,s.jsxs)(R,{$renderedOnTop:i,$unclickable:o,"data-testid":"live-article-pagination",children:[(0,s.jsxs)(M,{children:[!m&&p,d&&(0,s.jsx)(D,{"aria-disabled":o,"aria-label":"Go to previous page",as:b.rU,to:`?before=${c}&gb=1`,children:(0,s.jsx)(A.Z,{})})]}),(0,s.jsx)(_,{"data-testid":"page-info",children:!!r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(V,{children:n})," of ",(0,s.jsx)(V,{children:r})]})}),(0,s.jsxs)(H,{children:[l&&(0,s.jsx)(D,{"aria-disabled":o,"aria-label":"Go to next page",as:b.rU,to:`?after=${a}&gb=1`,children:(0,s.jsx)(E.Z,{})}),!m&&u]})]}),!i&&m&&(0,s.jsxs)(B,{className:"noPrint",children:[(0,s.jsx)(M,{children:p}),(0,s.jsx)(H,{children:u})]})]})};var U=((i={}).Timeline="TIMELINE",i.Top="TOP",i);function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;te.theme.colorLightAccent,e=>e.$afterAd?"32px":"0",e=>e.$isTruncatable?"0":"32px",T.Z.query.medium,e=>e.$afterAd?"40px":"0",T.Z.query.large,e=>e.$isHeroPinnedPost&&(0,F.iv)(["background-color:",";border:none;border-radius:8px;padding:16px;width:100%;@media ","{padding:24px;width:100%;}@media ","{margin-left:0;}"],e=>e.theme.colorLightFill,T.Z.query.medium,T.Z.query.large)),ec=F.ZP.a.withConfig({componentId:"sc-c9d39863-1"})(["position:absolute;top:-48px;@media ","{top:-64px;}"],T.Z.query.medium),em=F.ZP.header.withConfig({componentId:"sc-c9d39863-2"})(["@media print{break-inside:avoid;}margin-bottom:16px;"]),ep=F.ZP.span.withConfig({componentId:"sc-c9d39863-3"})(["color:",";font-family:",";font-size:15px;font-weight:bold;left:-29px;line-height:20px;margin-bottom:8px;position:relative;text-transform:capitalize;top:-4px;@media ","{font-size:15px;left:-41px;line-height:24px;}&::before{background-color:",";border:4px solid #fff;border-radius:50%;content:'';display:inline-block;height:9px;margin-right:10px;position:relative;top:4px;width:9px;@media ","{margin-right:22px;}}"],e=>e.theme.colorLabelLiveArticle,e=>e.theme.fontPrimary,T.Z.query.medium,e=>e.theme.colorLabelLiveArticle,T.Z.query.medium),eu=F.ZP.div.withConfig({componentId:"sc-c9d39863-4"})(["align-items:flex-start;color:",";display:flex;flex-wrap:wrap;font-family:",";font-weight:600;gap:8px;justify-content:space-between;margin-bottom:16px;position:relative;"],e=>e.theme.colorLabelLiveArticle,e=>e.theme.fontPrimary),eh=F.ZP.svg.withConfig({componentId:"sc-c9d39863-5"})(["background:",";border-bottom:4px solid ",";border-radius:50%;border-top:4px solid ",";color:",";height:28px;left:calc(-20px - 14px);margin-right:22px;position:absolute;width:28px;@media ","{height:32px;left:calc(-32px - 16px);top:-3px;width:32px;}",""],T.Z.white,T.Z.white,T.Z.white,e=>e.theme.colorLabelLiveArticle,T.Z.query.medium,e=>e.$isHeroPinnedPost&&(0,F.iv)(["background:unset;border:unset;height:23px;left:unset;margin-right:8px;position:relative;top:unset;width:23px;@media ","{height:23px;left:unset;top:unset;width:23px;}"],T.Z.query.medium)),eg=F.ZP.div.withConfig({componentId:"sc-c9d39863-6"})(["flex:1;font-size:15px;line-height:24px;min-width:0;",""],e=>e.$isHeroPinnedPost&&(0,F.iv)(["span{display:none;}"])),ef=F.ZP.a.withConfig({componentId:"sc-c9d39863-7"})(["align-items:center;color:",";cursor:pointer;display:flex;flex-shrink:0;font-weight:500;text-decoration:none;white-space:nowrap;&:hover,&:focus{text-decoration:underline;}"],e=>e.theme.colorLinkActive),ex=F.ZP.svg.withConfig({componentId:"sc-c9d39863-8"})(["&&{border:none;color:",";height:24px;width:24px;}"],e=>e.theme.colorLinkActive),ev=F.ZP.h2.withConfig({componentId:"sc-c9d39863-9"})(["font-family:",";font-size:24px;font-weight:500;line-height:28px;@media ","{font-size:28px;line-height:32px;}"],e=>e.theme.fontTertiary,T.Z.query.medium),eb=F.ZP.section.withConfig({componentId:"sc-c9d39863-10"})(["font-family:",";figure{@media ","{margin-left:0;margin-right:0;}}"],e=>e.theme.fontSecondary,T.Z.query.mediumMax),ek=(0,F.F4)(["from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}"]),ey=(0,F.F4)(["from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}"]),eC=(0,F.ZP)(Q.default).withConfig({componentId:"sc-c9d39863-11"})(["display:contents;> *{animation:"," 0.3s ease-in-out;animation-fill-mode:both;&:first-child{margin-top:24px;}}"],e=>e.$isCollapsing?ey:ek),ew=F.ZP.footer.withConfig({componentId:"sc-c9d39863-12"})(["clear:both;&::after{clear:both;content:'';display:table;}"]),eZ=F.ZP.div.withConfig({componentId:"sc-c9d39863-13"})(["> button{height:40px;padding:0;width:40px;> span{display:none;}}&.sharePost ul{bottom:40px;top:auto;}",""],e=>e.$isHeroPinnedPost&&(0,F.iv)(["div > button{background-color:unset;transition:background-color 0.2s ease-out;&:hover{background-color:",";}}"],e.theme.colorLightAccent)),eP=F.ZP.div.withConfig({componentId:"sc-c9d39863-14"})(["margin-bottom:16px;"]),eS=F.ZP.div.withConfig({componentId:"sc-c9d39863-15"})(["color:",";font-family:",";font-size:13px;line-height:20px;margin-top:4px;@media ","{font-size:15px;line-height:24px;margin-top:8px;}"],e=>e.theme.colorMid,e=>e.theme.fontPrimary,T.Z.query.medium),eI=F.ZP.span.withConfig({componentId:"sc-c9d39863-16"})(["",""],T.Z.visuallyHidden),ej=F.ZP.a.withConfig({componentId:"sc-c9d39863-17"})(["border-top:1px dashed ",";color:",";display:block;font-family:",";font-size:15px;line-height:20px;padding:12px 0;&:hover,&:focus{text-decoration:underline;}svg{margin:-8px 0 0 8px;position:relative;}"],e=>e.theme.colorLightAccent,e=>e.theme.colorAction,e=>e.theme.fontPrimary),eN=(0,F.ZP)(es.Container).withConfig({componentId:"sc-c9d39863-18"})([""]),eA=(0,F.ZP)(es.ShowMoreButton).withConfig({componentId:"sc-c9d39863-19"})(["margin-bottom:16px;"]),eE=({asset:e,post:t,afterAd:n=!1,latestPostPublicId:i=null,pinnedPosition:o=null})=>{let{ads:r,byline:a,body:l,dates:{firstPublished:d},headlines:c,publicId:m}=t,{headline:p}=c||{},{sponsor:u}=r||{},{brand:{shortSiteName:h},DEPLOY_ENV:f,brand:{timeZone:x}}=(0,g.Z)(),{contentWallVisible:v}=(0,ee.Z)(),b=(0,J.ZP)(),k=(0,K.Z)(),[w,Z]=(0,S.useState)(!1),[P,I]=(0,S.useState)(!1),j=u&&{logos:u.logos,name:u.name,type:u.type,url:u.url},N=(0,C.Dy)(d,x,!0),A=o===U.Top,E=k[er.TEMP_FEATURE_FLAG_LIVE_COVERAGE_HERO_PINNED_POST_ENABLED]&&A&&(0,el.CO)(e.tags,y.i1),L=l?.blocks||[],T=L.length>7&&!A,F=w||P;return(0,S.useEffect)(()=>{if(!P)return;let e=window.setTimeout(()=>{I(!1)},300);return()=>{window.clearTimeout(e)}},[P]),(0,s.jsxs)("article",{"data-testid":"live-article-post",children:[(0,s.jsxs)(ed,{$afterAd:n,$isHeroPinnedPost:E,$isTruncatable:T,children:[(0,s.jsx)(ec,{"aria-hidden":!0,id:m}),(0,s.jsxs)(em,{children:[o?(0,s.jsxs)(eu,{"data-testid":E?"hero-pinned-header":"pinned-header",children:[(0,s.jsxs)(eg,{$isHeroPinnedPost:E,children:[(0,s.jsx)(eh,{$isHeroPinnedPost:E,"aria-hidden":"true",as:X}),"Pinned post ",(0,s.jsxs)("span",{children:["from ",N]})]}),i&&(0,s.jsxs)(ef,{"data-testid":"go-to-latest-button",onClick:e=>{e.preventDefault();let t=i&&document.getElementById(i);if(t){let e=t.getBoundingClientRect().top+window.pageYOffset-70;window.scrollTo({top:e,behavior:"smooth"})}},children:["Go to latest",(0,s.jsx)(ex,{as:G})]})]}):(0,s.jsx)(ep,{"data-testid":"post-time",itemProp:"datePublished",children:N}),p&&(0,s.jsx)(ev,{"data-testid":"post-headline",itemProp:"headline",children:p}),a&&(0,s.jsxs)(eS,{children:[(0,s.jsx)(eI,{children:"By "}),a?(0,s.jsx)(s.Fragment,{children:a.map((e,t)=>{let n=e?.type===ea.D8.Author?e.author:void 0,i=e?.type===ea.D8.Name?e:void 0;return(0,s.jsxs)(S.Fragment,{children:[t>0&&(t!==a.length-1?", ":" and "),(0,s.jsx)("span",{children:i?i.name:n?.name})]},i?i.name:n?.id)})}):null]}),j?.name&&(0,s.jsx)(eP,{children:(0,s.jsx)(en.Z,{sponsor:j})})]}),(0,s.jsxs)(eb,{id:`post-body-${m}`,itemProp:"articleBody",children:[(0,s.jsx)(Q.default,{asset:{...e,body:{blocks:T?L.slice(0,5):L}},contentWallVisible:v,isHeroPinnedPost:E,isPinnedPost:A,relatedEntities:t.relatedEntitiesConnection?.edges}),T&&F&&(0,s.jsx)(eC,{$isCollapsing:P,asset:{...e,body:{blocks:L.slice(5)}},contentWallVisible:v,isHeroPinnedPost:E,isPinnedPost:A,relatedEntities:t.relatedEntitiesConnection?.edges}),(0,s.jsxs)(ew,{children:[u?.url&&(0,s.jsxs)(ej,{href:u.url,rel:"noopener noreferrer",target:"_blank",children:["Read article ",(0,s.jsx)(W.Z,{})]}),(0,s.jsx)(eZ,{$isHeroPinnedPost:E,children:(0,s.jsx)(et.Z,{asset:e,description:p,includeUtmParams:!1,location:(0,C.Zr)(e.urls,m,h,f),position:"post",showText:!1})})]})]})]}),T&&(0,s.jsx)(eN,{children:(0,s.jsx)(eA,{"aria-controls":`post-body-${m}`,"aria-expanded":w,"data-testid":"show-more-button",onClick:()=>{if(w){Z(!1),I(!0);return}(0,eo.ko)(),b.pushAnalyticsEvent({event:ei.Ks,eventAction:ei.Qq,eventAttribute:"",eventCategory:ei.XE,eventLabel:ei.vk,eventValue:ei.PW}),Z(!0),I(!1)},type:"button",children:w?"Show less":"Show more"})})]})};function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;te&&"padding: 35px;"),eV=(0,F.iv)(["animation:"," .5s cubic-bezier(.4,0,.2,1) 0s normal 1 none running;left:50%;position:fixed;top:","px;transform:translateX(-50%);z-index:",";"],eM,80,T.Z.zIndex.overlay),eH=F.ZP.button.withConfig({componentId:"sc-d1cfbee3-1"})(["background-color:",";border:none;border-radius:20px;color:",";cursor:pointer;font-family:",";font-size:12px;font-weight:bold;height:fit-content;outline:none;padding:6px 12px 5px;text-align:center;text-transform:uppercase;white-space:nowrap;width:fit-content;",""],({theme:e})=>e.colorLivePill,({theme:e})=>e.colorLivePillText,({theme:e})=>e.fontPrimary,({$floating:e})=>e&&eV),eD=F.ZP.svg.withConfig({componentId:"sc-d1cfbee3-2"})(["color:",";margin-right:2px;"],({theme:e})=>e.colorLivePillText),e$=({newPosts:e,onUpdate:t=()=>null})=>{let[n,i]=(0,S.useState)(!1),{ref:o}=(0,eB.YD)({root:null,rootMargin:"240px 0px 0px 0px",onChange:(e,t)=>{let o=!e&&t.boundingClientRect.top<0;n!==o&&i(o)}}),r=e?.length;if(0===r)return null;let{firstPublished:a,published:l}=e[0].dates,d=new Date,c=new Date(a||l),m=(0,eR.X)(d,c),p=`${r} new update${r>1?"s":""}`,u=(0,eF.r)(c,d,m);return(0,s.jsxs)(e_,{$floating:n,children:[(0,s.jsx)("div",{"data-testid":"live-update-pill-sentinel",ref:o}),(0,s.jsxs)(eH,{$floating:n,"data-testid":"live-update-pill",onClick:t,children:[(0,s.jsx)(eD,{as:eT}),p," \xb7 ",u]})]})};var eO=n(53299),eq=n(2499),eU=n(28067),ez=n(69414);let eG=F.ZP.div.withConfig({componentId:"sc-58389a48-0"})(["position:relative;"]),eW=F.ZP.a.withConfig({componentId:"sc-58389a48-1"})(["position:absolute;top:-48px;@media ","{top:-64px;}"],T.Z.query.medium),eY=F.ZP.h3.withConfig({componentId:"sc-58389a48-2"})(["color:",";font-family:",";font-size:15px;font-weight:bold;letter-spacing:1px;line-height:20px;margin:16px 20px;text-transform:uppercase;@media ","{margin:24px;}"],e=>e.theme.colorLabelLiveArticle,e=>e.theme.fontPrimary,T.Z.query.medium),eX=F.ZP.div.withConfig({componentId:"sc-58389a48-3"})(["margin-bottom:40px;padding:0 20px;"]),eQ=F.ZP.div.withConfig({componentId:"sc-58389a48-4"})(["padding:0;@media ","{margin-left:0;margin-right:-","px;position:relative;div{max-width:calc(100vw - ","px);position:relative;z-index:",";}div[class*='adSize-300x250']{display:inline-block;width:calc(100% - ","px);}&::after{background:#fff;bottom:-40px;content:'';height:40px;left:0;position:absolute;right:0;}}"],T.Z.query.large,400,48,T.Z.zIndex.liveArticleBodyAd,400),eK=F.ZP.div.withConfig({componentId:"sc-58389a48-5"})(["border-bottom:1px solid ",";border-top:1px solid ",";"],e=>e.theme.colorLightAccent,e=>e.theme.colorLightAccent);var eJ=n(66385),e0=n(94633),e1=n(23539),e3=n(52115);let e2={kind:"Document",definitions:(e=>{let t={};return e.filter(e=>{if("FragmentDefinition"!==e.kind)return!0;let n=e.name.value;return!t[n]&&(t[n]=!0,!0)})})([{kind:"OperationDefinition",name:{kind:"Name",value:"AssetByPublicID"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"before"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AssetByPublicIDInput"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"postPublicId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"usePostsAtPostConnection"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assetByPublicId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AssetLivePostsConnection"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AssetLivePostsConnection"},directives:[],typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LiveArticleAsset"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"latestPostsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"before"},value:{kind:"Variable",name:{kind:"Name",value:"before"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"skip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"usePostsAtPostConnection"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LiveArticlePostFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startCursor"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"startSequence"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPostPublicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"latestPostsAtPostConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"publicPostId"},value:{kind:"Variable",name:{kind:"Name",value:"postPublicId"}}}]}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"usePostsAtPostConnection"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LiveArticlePostFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startCursor"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"startSequence"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPostPublicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}].concat(e3.eX.definitions,e3.Os.definitions)),loc:{start:0,end:793,source:{body:"query AssetByPublicID($after:Cursor,$before:Cursor,$first:Int!,$input:AssetByPublicIDInput!,$postPublicId:String!,$usePostsAtPostConnection:Boolean!){assetByPublicId(input:$input){asset{...AssetLivePostsConnection}error{message}}}fragment AssetLivePostsConnection on LiveArticleAsset{latestPostsConnection(after:$after,before:$before,first:$first)@skip(if:$usePostsAtPostConnection){edges{cursor node{...LiveArticlePostFragment}}pageInfo{endCursor hasNextPage hasPreviousPage startCursor}startSequence total lastPostPublicId error{message}}latestPostsAtPostConnection(input:{publicPostId:$postPublicId})@include(if:$usePostsAtPostConnection){edges{node{...LiveArticlePostFragment}}pageInfo{endCursor hasNextPage hasPreviousPage startCursor}startSequence total lastPostPublicId error{message}}}"}}},e4=({adPosStart:e=2,contentWallVisible:t,asset:n})=>{let{pinnedPurposesPosts:i,publicId:o}=n,r=i?.pinnedPurposes,a=(0,C.we)(r,eU.i3.PinnedToTop),{PAGEBUILDER:{ENABLED:l}}=(0,g.Z)(),{connectionData:p,lastPostPublicId:u,pageNumber:h,totalPages:x,error:v,refetch:k}=((e,t=!1)=>{let[n]=(0,b.lr)(),[i,o]=(0,S.useState)(!1),r=n.get("before")||null,a=n.get("after")||null,l=n.get("post")||null,{data:s,networkStatus:d,error:c,refetch:m}=(({after:e=null,before:t=null,draft:n,first:i,postPublicId:o,publicId:r})=>{let{data:a,error:l,networkStatus:s,previousData:d,refetch:c}=(0,e1.a)(e2,{fetchPolicy:"cache-and-network",variables:{after:e,before:t,first:i,input:{...n&&{draft:n},publicId:r},postPublicId:o||"",usePostsAtPostConnection:!!o}});return{data:a??d,error:l,networkStatus:s,refetch:c}})({after:a,before:r,draft:t,first:10,postPublicId:l,publicId:e});(0,S.useEffect)(()=>{if(d!==eJ.I.ready||d===eJ.I.ready&&!i&&(o(!0),!l))return;let e=I;l&&(e=(0,e0.eC)(l));let t=document.getElementById(e);t?.scrollIntoView({behavior:"smooth"})},[d,l]);let{error:p}=s?.assetByPublicId||{},u={queryError:c,assetError:p};if(u.queryError||u.assetError)return{connectionData:void 0,lastPostPublicId:null,pageNumber:1,totalPages:1,error:u,refetch:m};let h=s?.assetByPublicId?.asset,g=h?.latestPostsConnection||h?.latestPostsAtPostConnection,{startSequence:f=1,total:x=1,lastPostPublicId:v=null}=g||{};return{connectionData:g,lastPostPublicId:v,pageNumber:Math.ceil(f/10),totalPages:Math.ceil(x/10),error:u,refetch:m}})(o,l),{newPosts:y,updatePosts:w}=((e,t,n=!1)=>{let i=(0,b.s0)(),[o,r]=(0,S.useState)(null),[a,l]=(0,S.useState)([]),[s,{data:d}]=((e,t=!1)=>{let[n,i]=(0,j.t)(N,{fetchPolicy:"no-cache"});return[()=>n({variables:{first:10,input:{...t&&{draft:t},publicId:e}}}),i]})(e,n);return(0,S.useEffect)(()=>{let e=setTimeout(()=>{s()},6e4);return()=>{clearTimeout(e)}},[s]),(0,S.useEffect)(()=>{let e=(e=>{let t=e?.assetByPublicId?.asset;return t&&t.latestPostsConnection?.edges?.map(e=>e.node)||[]})(d);if(!o)return void r(e[0]?.publicId||null);let t=[];for(let n of e){if(n.publicId===o)break;t.push(n)}l(t)},[d,o]),{newPosts:a,updatePosts:()=>{l([]),t(),i("?page=1"),r(null)}}})(o,k,l),{edges:Z,pageInfo:A}=p||{},E=Z?.map(e=>e.node)||[],L=a.slice(0,t?1:void 0),T=E.slice(0,t?1:void 0),{queryError:F,assetError:R}=v||{};if(F||R)return ez.Y.error("Live article posts load failure",d.log.EventType("asset","liveArticle"),d.log.Error(F||R),d.log.String("description",`Live article id: ${o}`)),(0,s.jsx)(eX,{children:"Sorry, there has been an error loading this content. Please try again later."});let B=E.find(e=>!a.some(t=>t.id===e.id))||null;return(0,s.jsxs)(eG,{children:[(0,s.jsx)(P,{asset:n,posts:E}),(0,s.jsx)(q,{disabled:t,oldestPostPublicId:u,pageInfo:A,pageNumber:h,renderedOnTop:!0,totalPages:x}),(0,s.jsx)(e$,{newPosts:y,onUpdate:w}),1===h&&!!L.length&&(0,s.jsxs)(s.Fragment,{children:[L.map(e=>(0,s.jsx)(eE,{afterAd:!1,asset:n,latestPostPublicId:B?.publicId||null,pinnedPosition:U.Top,post:e},`pinned-post-${e.id}`)),(0,s.jsx)(eY,{children:"Latest Posts"})]}),(0,s.jsx)(eW,{"aria-hidden":!0,id:I}),((e,t,n,i,o)=>{let r=new Set(t.map(e=>e.id)),a=n.length>0?n[0]:null,l=!!a&&r.has(a.id),d=1===o&&l?n.slice(1):n;return d.flatMap((t,n)=>{let o=r.has(t.id)?U.Timeline:null,a=(0,s.jsx)(eE,{afterAd:n>0&&n%3==0,asset:e,pinnedPosition:o,post:t},`post-${t.id}`),l=n===d.length-1;return(n+1)%3!=0||l?[a]:[a,((e,t)=>{let n=e+Math.floor(t/3);return(0,s.jsx)(eQ,{children:(0,s.jsx)(eK,{as:c.Z,largeUnit:m.U.leaderboardBillboardMrec(n),mediumUnit:m.U.leaderboard(n),smallUnit:m.U.mobbannerMrec(n)},`ad-${n}`)},`articleAd${t+1}`)})(i,n)]})})(n,a,T,e,h),(0,s.jsx)(q,{disabled:t,oldestPostPublicId:u,pageInfo:A,pageNumber:h,totalPages:x}),(0,s.jsx)(eq.Z,{assetType:n.type,pianoId:f.aP}),(0,s.jsx)(eq.Z,{assetType:n.type,pianoId:f.d4}),(0,s.jsxs)(S.Fragment,{children:[(0,s.jsx)(eO.x,{assetType:n.type,pianoId:f.dV}),(0,s.jsx)(eO.x,{assetType:n.type,pianoId:f.Nt})]},"piano-reg")]})}},14923:function(e,t,n){n.d(t,{Z:()=>G});var i,o,r,a,l=n(52322),s=n(55229),d=n(43905),c=n(93673),m=n(41865),p=n(60762),u=n(2784);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;te.theme.colorBrand,e=>e.theme.fontPrimary),A=j.ZP.ul.withConfig({componentId:"sc-1db8526b-1"})(["border-top:3px solid ",";li{&:not(:last-of-type){border-bottom:1px solid ",";}}"],e=>e.theme.colorDark,e=>e.theme.colorLightAccent),E=j.ZP.div.withConfig({componentId:"sc-1db8526b-2"})(["color:",";font-family:",";font-size:15px;line-height:20px;padding:10px 0;transition:background-color ",";width:100%;"],e=>e.theme.colorDark,e=>e.theme.fontPrimary,I.xR),L=j.ZP.div.withConfig({componentId:"sc-1db8526b-3"})(["align-items:center;column-gap:12px;display:flex;"]),T=j.ZP.span.withConfig({componentId:"sc-1db8526b-4"})(["font-weight:bold;line-height:32px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),F=j.ZP.span.withConfig({componentId:"sc-1db8526b-5"})(["color:",";flex-shrink:0;font-size:11px;font-weight:bold;letter-spacing:1px;line-height:11px;text-transform:uppercase;"],e=>e.theme.colorMid),R=j.ZP.div.withConfig({componentId:"sc-1db8526b-6"})(["-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:3;overflow:hidden;text-align:start;"]),B=j.ZP.div.withConfig({componentId:"sc-1db8526b-7"})(["padding:12px 0;","{border:1px solid ",";border-radius:4px;color:",";font-size:13px;font-weight:bold;height:initial;letter-spacing:1.62px;padding:12px;text-transform:uppercase;transition:background-color ",";&:hover{background-color:",";","{text-decoration:none;}}}","{display:none;}"],I.zx,e=>e.theme.colorCommentsLink,e=>e.theme.colorCommentsLink,I.xR,e=>e.theme.colorLightFill,I.NL,I.XF),M=({comment:e})=>{let{node:{user:t,dates:n,body:i}}=e,o=new y.ZP(n.createdAt).fromNowStrict();return(0,l.jsxs)(E,{children:[(0,l.jsxs)(L,{children:[(0,l.jsx)(T,{children:t.name}),(0,l.jsx)(F,{children:o})]}),(0,l.jsx)(R,{dangerouslySetInnerHTML:{__html:(0,C.Nw)(i,P.Z)}})]})},_=({asset:e})=>{let t=(0,S.Un)((0,w.TH)().pathname),{PAGEBUILDER:{ENABLED:n}}=(0,v.Z)(),{data:i}=(0,b.a)(k,{skip:!e.commenting?.enabled,variables:{publicId:e.publicId}}),o=(0,u.useCallback)(()=>{(0,Z.Z)(!0)},[]),{commenting:r}=i?.commentsByPublicId||{},a=r?.latestCommentsConnection?.count||0;if(!(0,f.Q)(e,n,t,r))return null;let s=r?.latestCommentsConnection?.edges||[];return(0,l.jsxs)("section",{children:[(0,l.jsxs)(N,{onClick:o,children:[(0,l.jsx)(g,{})," ",a," Comments"]}),(0,l.jsx)(A,{children:s.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(M,{comment:e})},e?.node?.id))}),(0,l.jsx)(B,{as:x.Z,asset:e})]})};var V=n(98051),H=n(53299),D=n(2596),$=n(79644);let O=j.ZP.div.withConfig({componentId:"sc-8e35a80f-0"})(["border-top:3px solid ",";margin-bottom:24px;"],e=>e.theme.colorDark),q=j.ZP.section.withConfig({componentId:"sc-8e35a80f-1"})(["background-color:white;padding:12px 0;position:sticky;top:","px;z-index:",";"],64,$.Z.zIndex.overlay),U=j.ZP.div.withConfig({componentId:"sc-8e35a80f-2"})(["display:",";flex-direction:column;max-height:calc(100vh - ","px);"],e=>e.$open?"flex":"none",64),z=j.ZP.div.withConfig({componentId:"sc-8e35a80f-3"})(["overflow-y:scroll;"]),G=({asset:e})=>{let t=(0,m.Z)(),n=(0,c.Z)("large"),i=(0,Z.k)(),o=(0,u.useRef)(null);return((0,p.Z)(o,i),n)?t[D.PERM_FEATURE_FLAG_COMMENTS_DISABLED]?(0,l.jsx)(d.Z,{}):(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)(O,{}),(0,l.jsxs)(q,{children:[(0,l.jsxs)(U,{$open:i,children:[(0,l.jsx)(z,{ref:o,children:i&&(0,l.jsx)(s.Z,{asset:e})}),(0,l.jsx)(H.x,{assetType:e?.type,pianoId:V.ru})]}),!i&&(0,l.jsx)(_,{asset:e})]})]}):null}},16120:function(e,t,n){n.d(t,{Z:()=>P});var i=n(52322),o=n(48504),r=n(83096),a=n(55229),l=n(43905),s=n(93673),d=n(41865),c=n(60762),m=n(98051),p=n(53299),u=n(2596),h=n(2784),g=n(57737),f=n(79644),x=n(78943);let v=x.ZP.div.withConfig({componentId:"sc-ff8e2eb9-0"})(["display:",";"],e=>e.$visible?"block":"none"),b=x.ZP.div.withConfig({componentId:"sc-ff8e2eb9-1"})(["background:rgb(0 0 0 / 50%);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:",";"],f.Z.zIndex.modal),k=x.ZP.div.withConfig({componentId:"sc-ff8e2eb9-2"})(["background-color:",";display:flex;flex-direction:column;height:100vh;overflow:hidden;position:fixed;right:0;top:0;width:100vw;z-index:",";@media ","{width:","px;}"],f.Z.white,f.Z.zIndex.modal,f.Z.query.medium,400),y=x.ZP.div.withConfig({componentId:"sc-ff8e2eb9-3"})(["align-items:center;background:",";display:flex;padding:17px;"],({theme:e})=>e.colorBrand),C=x.ZP.button.withConfig({componentId:"sc-ff8e2eb9-4"})(["background:none;border:none;cursor:pointer;svg{color:",";width:16px;}"],f.Z.white),w=x.ZP.span.withConfig({componentId:"sc-ff8e2eb9-5"})(["border:0;clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]),Z=x.ZP.div.withConfig({componentId:"sc-ff8e2eb9-6"})(["flex:1;min-height:0;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior:contain;padding:10px 20px;transform:translate3d(0,0,0);"]),P=({asset:e})=>{let t=(0,s.Z)("large"),n=(0,d.Z)(),f=(0,g.k)(),x=(0,h.useRef)(null),P=(0,h.useRef)(null);return((0,h.useEffect)(()=>(f&&!t&&(0,r.Qp)(document.body,{reserveScrollBarGap:!0,allowTouchMove:e=>x.current?.contains(e)||!1}),()=>(0,r.tP)()),[f,t]),(0,c.Z)(P,f&&!t),t)?null:(0,i.jsxs)(v,{$visible:f&&!t,children:[(0,i.jsx)(b,{onClick:()=>(0,g.Z)(!1)}),(0,i.jsxs)(k,{"data-testid":"live-article-comments-modal",ref:x,children:[(0,i.jsx)(y,{children:(0,i.jsxs)(C,{onClick:()=>(0,g.Z)(!1),children:[(0,i.jsx)(w,{"aria-hidden":"true",children:"Close comments panel"}),(0,i.jsx)(o.Z,{})]})}),(0,i.jsx)(Z,{ref:P,children:n[u.PERM_FEATURE_FLAG_COMMENTS_DISABLED]?(0,i.jsx)(l.Z,{}):(0,i.jsx)(a.Z,{asset:e})}),(0,i.jsx)(p.x,{assetType:e?.type,pianoId:m.ru})]})]})}},4816:function(e,t,n){n.d(t,{Z:()=>I});var i=n(52322),o=n(32458),r=n(95351),a=n(46138),l=n(36021),s=n(98051),d=n(53299),c=n(57817),m=n(45965),p=n(29754),u=n(53896),h=n(79916),g=n(53406),f=n(21746),x=n(79644),v=n(78943);let b=v.ZP.header.withConfig({componentId:"sc-c2b06b17-0"})(["background:",";border-bottom:0;display:flow-root;margin:0;padding:0 0 32px;position:relative;","{margin-bottom:40px;@media ","{margin:20px 0 80px;}}@media ","{background:none;}@media ","{padding-bottom:40px;}"],e=>e.theme.colorLiveArticleBannerBackground,f.Yw,x.Z.query.medium,x.Z.query.printOnly,x.Z.query.medium),k=v.ZP.div.withConfig({componentId:"sc-c2b06b17-1"})(["background:",";bottom:0;content:'';left:0;margin:0 calc(50% - 50vw);position:absolute;top:0;width:100vw;z-index:-1;@media ","{content:none;}"],e=>e.theme.colorLiveArticleBannerBackground,x.Z.query.printOnly),y=v.ZP.h1.withConfig({componentId:"sc-c2b06b17-2"})(["color:",";font-family:",";font-size:28px;font-weight:normal;line-height:32px;@media ","{font-size:48px;line-height:56px;}"],x.Z.white,e=>e.theme.fontTertiary,x.Z.query.medium),C=v.ZP.p.withConfig({componentId:"sc-c2b06b17-3"})(["color:",";font-family:",";font-size:17px;line-height:24px;margin-top:8px;@media ","{font-size:22px;line-height:32px;margin-top:24px;}"],x.Z.white,e=>e.theme.fontSecondary,x.Z.query.medium),w=v.ZP.div.withConfig({componentId:"sc-c2b06b17-4"})(["color:",";font-size:13px;line-height:20px;margin:0 -20px;","{border-bottom:1px solid ",";border-top:1px solid ",";padding-bottom:8px;padding-top:8px;}","{margin-top:4px;padding:12px 14px;@media ","{display:none;}}","{margin:0 0 0 4px;}@media ","{display:flex;flex-direction:column;font-size:15px;justify-content:space-between;line-height:24px;margin:16px 0 0;","{padding-top:12px;}","{margin-top:0;padding:0;}","{margin:0;}}@media ","{align-items:center;border-bottom:1px solid ",";flex-direction:row;padding-bottom:24px;","{border-bottom:none;border-top:none;padding-top:0;}}"],e=>e.theme.colorDark,g.YQ,e=>e.theme.colorLightAccent,e=>e.theme.colorLightAccent,g.W8,x.Z.query.large,g.IN,x.Z.query.medium,g.YQ,g.W8,g.IN,x.Z.query.large,e=>e.theme.colorLightAccent,g.YQ),Z=v.ZP.div.withConfig({componentId:"sc-c2b06b17-5"})(["color:",";font-size:13px;line-height:20px;padding:16px 20px;@media ","{display:block;font-size:15px;line-height:24px;padding-left:0;padding-top:0;}@media ","{padding-bottom:0;}"],e=>e.theme.colorDark,x.Z.query.medium,x.Z.query.large),P=v.ZP.address.withConfig({componentId:"sc-c2b06b17-6"})(["font-size:13px;font-style:normal;line-height:20px;a{font-size:13px;line-height:20px;}@media ","{font-size:15px;line-height:24px;a{font-size:15px;line-height:24px;}}"],x.Z.query.medium),S=v.ZP.div.withConfig({componentId:"sc-c2b06b17-7"})(["color:",";margin:48px 0;text-align:left;a{color:",";text-decoration:none;}a:hover,a:focus{text-decoration:underline;}img{margin-left:8px;max-height:44px;width:auto;}"],e=>e.theme.colorGrey,e=>e.theme.colorGrey),I=({asset:e})=>{let{ads:t,byline:n,dates:{firstPublished:g,published:f},headlines:x,overview:v}=e,{intro:I}=v||{},j=(0,h.Un)((0,u.TH)().pathname),N=e.latestPostsConnection?.edges?.[0]?.node,A=N?N.dates?.published:f;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(b,{children:[(0,i.jsx)(c.Z,{asset:e,light:!0,thick:!0,variant:"block"}),(0,i.jsx)(k,{}),(0,i.jsx)(l.Z,{asset:e,lightLabel:!0,showLabel:!1}),(0,i.jsx)(r.Z,{asset:e}),(0,i.jsx)(y,{"data-testid":"headline",children:x.headline}),I&&(0,i.jsx)(C,{"data-testid":"live-article-intro",children:I})]}),(0,i.jsxs)(w,{children:[(0,i.jsxs)(Z,{children:[(0,i.jsx)(P,{"data-testid":"live-article-author-name",children:(0,a.L)(n,j)}),(0,i.jsx)(p.Z,{"data-testid":"live-article-datetime",firstPublishedTimestamp:g,showTime:!0,timestamp:A},"timestamp")]}),(0,i.jsx)(o.Z,{asset:e})]}),t?.sponsor&&(0,i.jsx)(S,{"data-testid":"live-article-sponsor",children:(0,i.jsx)(m.Z,{sponsor:t.sponsor})}),(0,i.jsx)(d.x,{assetType:e.type,pianoId:s.M0})]})}},79738:function(e,t,n){n.d(t,{Z:()=>x});var i=n(52322),o=n(38936),r=n(56111),a=n(41865),l=n(27302),s=n(56038),d=n(81924),c=n(2596),m=n(84641),p=n(2784),u=n(79644),h=n(78943);let g=h.ZP.div.withConfig({componentId:"sc-4c993e28-0"})(["clear:both;margin-top:40px;@media ","{margin-top:48px;}"],u.Z.query.medium),f=(0,h.vJ)(['.ob-cmn-AR_3.ob-cmn-AR_3.ob-grid-layout .ob-rec-text,.ob-cmn-CRMB_3.ob-cmn-CRMB_3.ob-grid-layout .ob-rec-text{font-family:"Abril Titling","Book Antiqua",Palatino,Georgia,serif;font-weight:bold;}@media ',"{.ob-widget.ob-widget{grid-template-columns:unset;}.ob-widget.ob-widget .ob-widget-header .ob_what.ob_what_resp{position:absolute;}}"],u.Z.query.medium),x=({asset:{type:e},hideMastheadRecommends:t=!1})=>{let{DEPLOY_ENV:n,brand:u}=(0,r.Z)(),h=(0,a.Z)(),x=(0,l.Z)(),v="undefined"!=typeof window?`${window.location.origin}${window.location.pathname}`:"";"production"!==n&&(v=`https://www.${u.shortSiteName}.com.au`);let b={className:x?"":"OUTBRAIN","data-external-id":"undefined"!=typeof window&&window?.dataLayerHybrid?.page?.viewID||"","data-src":v,"data-testid":"outbrain-bottom"};return(0,p.useEffect)(()=>{"function"!=typeof window?.OBR?.extern?.reloadWidget||x||window.OBR.extern.reloadWidget()},[x]),(0,p.useEffect)(()=>{h[c.PERM_FEATURE_FLAG_OUTBRAIN_TRACKING]&&((0,d.CN)(s.zX),window.OBREvents=window.OBREvents||[],window.OBREvents.push({event:"widgetRendered",func(e){(0,d.CN)(s.d7,String(e?.recsNumber))},widgetId:["AR_1","AR_5"]}))},[h]),(0,p.useEffect)(()=>{if(h[c.PERM_FEATURE_FLAG_OUTBRAIN]&&!document.querySelector('script[src="https://widgets.outbrain.com/outbrain.js"]')){let e=document.createElement("script");e.async=!0,e.src="https://widgets.outbrain.com/outbrain.js",document.body.appendChild(e)}},[h]),h[c.PERM_FEATURE_FLAG_OUTBRAIN]?(0,i.jsxs)(o.ZP,{children:[(0,i.jsx)(f,{}),(0,i.jsxs)(g,{className:"noPrint","data-testid":"outbrain",children:[!t&&(0,i.jsx)("div",{className:x?"":"OUTBRAIN","data-src":v,"data-testid":"outbrain-top","data-widget-id":"AR_3"}),(0,i.jsx)("div",{children:(0,i.jsx)("div",{...b,"data-widget-id":e===m.h3.LiveArticle?"AR_5":"AR_1"})})]},v),(0,i.jsx)("script",{async:!0,src:"https://widgets.outbrain.com/outbrain.js"})]}):null}},43798:function(e,t,n){n.d(t,{Z:()=>u});var i,o,r,a,l,s=n(52322),d=n(2784);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,s.jsx)(p.W2,{children:(0,s.jsxs)(p.zx,{$showText:e,onClick:()=>{window.print()},children:[(0,s.jsx)(m,{}),(0,s.jsx)(p.oD,{$showText:e,children:"Print"})]})})},49777:function(e,t,n){n.d(t,{W:()=>o,f:()=>r});var i=n(78943);let o=i.ZP.div.withConfig({componentId:"sc-59936884-0"})(["text-align:left;&::before{border-top:",";content:'';display:block;margin-top:-","px;padding-bottom:24px;width:100%;"," ","}"],({theme:e})=>`3px solid ${e.colorDomain}`,3,({$thick:e})=>e&&(0,i.iv)(["border-width:","px;margin-top:-","px;"],6,6),({$block:e})=>e&&(0,i.iv)(["margin-left:calc(-1 * (100vw - 100%) / 2);margin-top:0;width:100vw;"])),r=i.ZP.svg.withConfig({componentId:"sc-59936884-1"})(["color:",";"],({theme:e,$light:t})=>t?e.colorLight:e.colorDomain)},57817:function(e,t,n){n.d(t,{Z:()=>s});var i=n(52322),o=n(19565),r=n(83628),a=n(49777);let l=(0,o.ZP)({resolved:{},chunkName:()=>"assets-imported-icons-domain-svg-react",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("8711").then(n.bind(n,58189)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>58189}),s=({asset:e,light:t=!1,thick:n=!1,variant:o="standard"})=>(0,r.gg)(e)?(0,i.jsx)(a.W,{$block:"block"===o,$thick:n,"data-testid":"property-header-banner",children:(0,i.jsx)(a.f,{$light:t,as:l})}):null},2499:function(e,t,n){n.d(t,{Z:()=>Y});var i=n(52322),o=n(38936),r=n(56613),a=n(33460),l=n(53299),s=n(1797),d=n(36130),c=n(21509),m=n(17845),p=n(48504),u=n(69414);let h={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"CreateMemberMutation"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"createMemberInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateMemberInput"}}}}],operation:"mutation",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createMember"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"createMemberInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"requestID"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:119,source:{body:"mutation CreateMemberMutation($createMemberInput:CreateMemberInput!){createMember(input:$createMemberInput){requestID}}"}}};var g=n(96314),f=n(2294),x=n(62186),v=n(56038),b=n(81924),k=n(93910),y=n(25445),C=n(31106),w=n(2784),Z=n(53896),P=n(29835),S=n(79644),I=n(78943);let j=I.ZP.div.withConfig({componentId:"sc-f8dd5106-0"})(["background-color:",";inset:0;padding:48px 20px;position:fixed;@media ","{border-radius:8px;padding:64px 60px;position:relative;width:480px;}"],e=>e.theme.colorLightFill,S.Z.query.medium),N=I.ZP.h2.withConfig({componentId:"sc-f8dd5106-1"})(["font-family:",";font-size:28px;margin-bottom:24px;text-align:center;"],e=>e.theme.fontTertiary),A=I.ZP.button.withConfig({componentId:"sc-f8dd5106-2"})(["background-color:transparent;border:0;color:",";cursor:pointer;font-size:24px;padding:20px 20px 16px 16px;position:absolute;right:0;top:0;@media ","{padding:28px 28px 16px 16px;}span{","}"],e=>e.theme.colorBrand,S.Z.query.medium,S.Z.visuallyHidden),E=I.ZP.div.withConfig({componentId:"sc-f8dd5106-3"})(["background-color:",";border:1px solid ",";border-radius:4px;font-weight:bold;height:40px;padding:12px;width:100%;"],e=>e.theme.colorLightAccent,e=>e.theme.colorMidAccent),L=I.ZP.label.withConfig({componentId:"sc-f8dd5106-4"})(["color:",";display:block;font-size:15px;margin-bottom:5px;margin-top:10px;"],e=>e.theme.colorDark),T=I.ZP.p.withConfig({componentId:"sc-f8dd5106-5"})(["color:",";font-size:15px;margin-top:6px;"],e=>e.theme.colorDark),F=I.ZP.p.withConfig({componentId:"sc-f8dd5106-6"})(["color:",";font-size:13px;margin-top:4px;&:empty{display:none;}"],e=>e.theme.colorHighlight),R=I.ZP.input.withConfig({componentId:"sc-f8dd5106-7"})(["border:1px solid ",";border-radius:4px;font-size:16px;height:40px;padding:12px;width:100%;"],e=>e.theme.colorMidAccent),B=I.ZP.button.withConfig({componentId:"sc-f8dd5106-8"})(["background:",";border:0;border-radius:4px;color:",";cursor:pointer;font-size:13px;font-weight:bold;height:40px;letter-spacing:1px;margin-top:8px;padding:12px 0;position:relative;text-align:center;text-transform:uppercase;transition:background-color 150ms ease-in-out;width:100%;&:active{background:",";}&:disabled{cursor:default;}&:hover:not([disabled]){background:",";}"],e=>e.theme.colorAction,e=>e.theme.colorBrandActionOffset,e=>e.theme.colorActionDarkest,e=>e.theme.colorBrandActionHighlight),M=I.ZP.p.withConfig({componentId:"sc-f8dd5106-9"})(["border-top:0;font-size:16px;font-weight:bold;padding-top:24px;text-align:center;@media ","{padding-top:40px;}a{color:",";text-decoration:",";white-space:nowrap;&:hover{color:",";text-decoration:underline;}}"],S.Z.query.medium,e=>e.theme.colorLinkActive,e=>e.theme.decorationLink,e=>e.theme.colorLinkActive),_=I.ZP.p.withConfig({componentId:"sc-f8dd5106-10"})(["border-left:3px solid ",";color:",";font-size:13px;margin-bottom:16px;padding-left:16px;&:empty{display:none;}"],e=>e.theme.colorHighlight,e=>e.theme.colorHighlight);var V=n(37149),H=n.n(V);let D=({children:e,closeModal:t,showModal:n})=>(0,i.jsx)(H(),{bodyOpenClassName:"modalBodyOpen",className:"modalContent",isOpen:n,onRequestClose:t,overlayClassName:"modalOverlayBlurred",shouldCloseOnOverlayClick:!0,children:e});var $=n(10399);let{MEMBER_AUTH_API:{TIMEOUT:O,URL:q},brand:{shortSiteName:U}}=C.Z,z="An error has occurred. Please try again in a few minutes",G=({assetType:e,closeModal:t,login:n,loginError:o})=>{let[r,a]=(0,w.useState)(""),[l,C]=(0,w.useState)(""),[S,I]=(0,w.useState)(""),[V,H]=(0,w.useState)(!1),D=(0,Z.TH)(),G=`${"undefined"==typeof window?"":window.location.origin}${D.pathname}${D.search}`,{mutate:W}=(0,c.x)(),Y=(0,d.Y)(),{options:X}=(0,s.ip)(),Q="undefined"==typeof window?"":window.location.href,K="undefined"==typeof window?"":`${window.location.origin}${P.R}`,J=async e=>{e.preventDefault(),(0,b.T7)(v.q7,v.$w),I("");let t=""===r.trim()?$.Z.form.validation.password:r.length<12?$.Z.form.validation.passwordShort:"";if(C(t),t)return;let i={email:Y,password:r,redirectURL:Q,siteKey:k.B[U],verifyURL:K};H(!0),await W({context:{clientName:"api-front"},mutation:h,variables:{createMemberInput:i}}).then(({data:e})=>{let t=e?.createMember;return t?.error?(u.Y.error("Error returned from create member mutation",m.log.EventType("CreateMember","createMemberMutation"),m.log.Error(t.error)),""):t?.requestID?t.requestID:""}).catch(e=>(u.Y.error("Error in create member mutation",m.log.EventType("CreateMember","createMemberMutation"),m.log.Error(e)),"")).then(async e=>{if(!e)return void I(z);let{error:t,status:i}=await (0,x.al)(e);t?(H(!1),u.Y.error("Error from from account creation progess",m.log.EventType("Registration","CreateAccount")),I(z)):"SUCCESS"===i&&n({authUrl:q,brand:U,code:o?.code,loginID:Y,password:r,redirectUrl:`${window.location.href}?verify=false`,timeoutMs:O})}).catch(e=>{H(!1),u.Y.error("Error in handling create account",m.log.EventType("Registration","CreateAccount"),m.log.Error(e)),I(z)})};return(0,w.useEffect)(()=>{(0,b.T7)(v.F7,v.$w)},[]),(0,i.jsxs)(j,{"data-testid":"registration-create",children:[(0,i.jsx)(A,{"aria-label":"Close",onClick:()=>{t(),(0,d.v)("")},children:(0,i.jsx)(p.Z,{name:"close-large"})}),(0,i.jsx)(N,{children:X.signupCopy||((0,y.q)(e)?"Set up your account to keep reading":"Set up your account")}),(0,i.jsx)(_,{role:"alert",children:S}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("form",{method:"POST",name:"createAccount",onSubmit:e=>J(e),children:[(0,i.jsx)(E,{"data-testid":"registration-create-email",children:Y}),(0,i.jsx)(L,{htmlFor:"registration-password",children:"Create a password"}),(0,i.jsx)(R,{id:"registration-password",name:"registrationPassword",onChange:e=>{a(e.target.value)},required:!0,type:"password",value:r}),(0,i.jsx)(F,{role:"alert",children:l}),(0,i.jsx)(B,{disabled:V,children:V?(0,i.jsx)(g.Z,{inverse:!0}):"Create Account"}),(0,i.jsx)(T,{children:"We'll send you an email to verify your account."})]}),(0,i.jsx)(f.Z,{login:n,loginFields:{authUrl:q,brand:U,loginID:Y,password:r,redirectUrl:G,timeoutMs:O},onClick:e=>{switch(e){case"apple":(0,b.T7)(v.P2,v.$w);break;case"google":(0,b.T7)(v.G0,v.$w)}}})]}),(0,i.jsxs)(M,{children:["For unlimited access to trusted journalism,"," ",(0,i.jsx)("a",{href:(e=>{let t="undefined"==typeof window?"":encodeURIComponent(window.location.href);return"smh"===e||"theage"===e?`https://subscribe.${e}.com.au/intro-offer?promote_channel=HI_RL_GNL&utm_source=RegistrationLink&utm_medium=HouseInventory&utm_campaign=General&new_callback_uri=${t}&callback_uri=${t}`:`https://subscribe.${e}.com.au/?promote_channel=HI_RL_GNL&utm_source=RegistrationLink&utm_medium=HouseInventory&utm_campaign=General&new_callback_uri=${t}&callback_uri=${t}`})(U),onClick:()=>{(0,b.T7)(v.xx,v.$w)},children:"subscribe today"}),"."]})]})},W=({closeModal:e,showModal:t,...n})=>(0,i.jsx)(D,{closeModal:e,showModal:t,children:(0,i.jsx)(G,{closeModal:e,...n})}),Y=({assetSubType:e,assetType:t,pianoId:n})=>{let c=(0,s.ip)(),m=()=>{(0,s.lF)(s.CV.NONE),(0,d.v)("")};return(0,i.jsxs)(o.ZP,{children:[(0,i.jsx)(l.x,{assetSubType:e,assetType:t,pianoId:n}),c.value===s.CV.CREATE&&(0,i.jsx)(W,{assetType:t,closeModal:m,login:a.x4,showModal:!0}),c.value===s.CV.REG_WALL_LOGIN&&(0,i.jsx)(r.Z,{isEmailVerifiedLogin:!0,isOpen:!0,onClose:m})]})}},40995:function(e,t,n){n.d(t,{CK:()=>m,NB:()=>l,QH:()=>p,__:()=>c,aA:()=>u,rU:()=>d,yD:()=>s});var i=n(90099),o=n(81840),r=n(79644),a=n(78943);let l=a.ZP.ul.withConfig({componentId:"sc-a029f9ec-0"})(["background-color:#fff;border-radius:4px;box-shadow:0 0 12px rgb(0 0 0 / 25%);display:block;left:0;overflow:hidden;padding:8px 0;position:absolute;top:40px;width:max-content;z-index:",";"],o.zIndex.primaryNavigation),s=a.ZP.li.withConfig({componentId:"sc-a029f9ec-1"})(["svg{margin-right:8px;}button{border:none;cursor:pointer;margin:0 auto;outline:none;padding:0;}> a,> button{padding:8px 12px;width:100%;}&:hover,&:focus-within{background-color:",";}"],e=>e.theme.colorLightAccent),d=a.ZP.a.withConfig({componentId:"sc-a029f9ec-2"})(["align-items:center;color:",";cursor:pointer;display:flex;font-family:",";font-size:13px;justify-content:flex-start;text-decoration:none;&:focus{outline:none;}"],e=>e.theme.colorDark,e=>e.theme.fontPrimary),c=a.ZP.span.withConfig({componentId:"sc-a029f9ec-3"})(["height:16px;line-height:16px;position:relative;"]),m=a.ZP.span.withConfig({componentId:"sc-a029f9ec-4"})(["left:0;opacity:1;position:relative;top:0;transition:all 0.25s ease-out;visibility:visible;width:100%;&.hide{"," opacity:0;top:-50%;visibility:hidden;width:100%;}"],r.Z.visuallyHidden),p=a.ZP.span.withConfig({componentId:"sc-a029f9ec-5"})(["bottom:-50%;left:0;"," opacity:0;transition:all 0.15s ease-out;visibility:hidden;width:100%;&.show{bottom:0;opacity:1;position:relative;visibility:visible;width:100%;}"],r.Z.visuallyHidden),u=(0,a.ZP)(i.Z).withConfig({componentId:"sc-a029f9ec-6"})(["fill:",";stroke:",";"],e=>e.$inverse?"none":e.theme.colorDark,e=>e.$inverse?e.theme.colorLight:e.theme.colorDark)},55742:function(e,t,n){n.d(t,{Z:()=>A});var i,o,r,a=n(52322),l=n(2784);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t({"data-ffx-event-action":`${e} share`,"data-ffx-event-attribute":`article ${t}`,"data-ffx-event-category":"share content","data-ffx-event-label":"share article","data-ffx-event-value":"0","data-ffx-hittype":"event"}),A=({position:e,className:t,description:n="undefined"!=typeof document&&document.title||"",includeUtmParams:i=!0,location:o="undefined"!=typeof window&&window.location.href||"",onGiftClick:r,showText:s=!0,asset:g,inverse:A=!1})=>{let{brand:E}=(0,v.Z)(),L=(0,y.ZP)(),T=(0,S.aF)(),F=(0,k.Z)(),R=!!r&&(0,Z.j7)(g)&&F[P.TEMP_FEATURE_FLAG_ARTICLE_GIFTING],{article_category:B,article_sub_category:M,primary_tag:_}=L.mappers.assetInfo(g),V=i?(0,I.rH)(o,new URLSearchParams({utm_source:`${E.shortSiteName}-web`,utm_medium:"share_article",utm_campaign:B,utm_content:(0,C.d6)(T)||"",utm_term:"product_feature"})):o,H=[{attributes:N("Facebook",e),icon:(0,a.jsx)(m.Z,{}),name:"Facebook",url:`https://www.facebook.com/dialog/share?app_id=${E.social.facebook.appID}&href=${encodeURIComponent(o)}`},{attributes:N("Twitter",e),icon:(0,a.jsx)(h.Z,{}),name:"Twitter",url:`https://twitter.com/share?url=${encodeURIComponent(o)}&text=${encodeURIComponent(n)}`},{attributes:N("WhatsApp",e),icon:(0,a.jsx)(f,{}),name:"WhatsApp",url:`whatsapp://send?text=${encodeURIComponent(o)}`},{attributes:N("Email",e),icon:(0,a.jsx)(c.Z,{}),name:"Email",url:`mailto:?subject=${encodeURIComponent(n)}&body=${encodeURIComponent(o)}`},{attributes:N("Copy link",e),icon:(0,a.jsx)(d,{}),name:"Copy link",url:void 0}],[D,$]=(0,l.useState)(!1),[O,q]=(0,l.useState)("Copy link"),U=(0,l.useRef)(null),z={...N("cta",e),"data-ffx-event-action":`cta ${D?"close":"click"}`};(0,b.Z)(U,()=>$(!1));let G=(0,x.Z)("smallMax");return(0,a.jsxs)(w.W2,{className:t,onClick:e=>{let t=e.target.closest('a[aria-label="Facebook"]')||e.target.closest('a[aria-label="Twitter"]');if(t){e.preventDefault(),window.open(t.getAttribute("href"),"",`toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=600, height=600`);return}if(e.target.closest('button[aria-label="Copy link"]')){e.preventDefault(),q("Copied"),navigator.clipboard.writeText(V),setTimeout(()=>{q("Copy link")},2e3);return}D&&$(!1)},ref:U,children:[(0,a.jsxs)(w.zx,{"aria-controls":"shareMenu","aria-expanded":D,"aria-label":"Share this content",...z,$inverse:A,$showText:s,onClick:()=>$(e=>!e),role:"listbox",type:"button",children:[(0,a.jsx)(j.aA,{$inverse:A,as:u.Z}),(0,a.jsx)(w.oD,{$showText:s,children:"Share"})]}),D&&(0,a.jsxs)(j.NB,{"data-testid":"social-share-container",children:[H.filter(({name:e})=>!!G||"WhatsApp"!==e).map(e=>(0,a.jsx)(j.yD,{children:(0,a.jsxs)(j.rU,{"aria-label":e.name,as:e.url?"a":"button",...e.attributes,href:e.url,onClick:()=>L.pushAnalyticsEvent({event:L.EVENTS.SHARE_ARTICLE,article_category:B,article_sub_category:M,primary_tag:_,share_type:e.name}),children:[e.icon,e.url?(0,a.jsx)(j.__,{children:e.name}):(0,a.jsxs)(j.__,{children:[(0,a.jsx)(j.QH,{className:`${"Copied"===O?"show":""}`,children:"Copied"}),(0,a.jsx)(j.CK,{className:`${"Copied"===O?"hide":""}`,children:"Copy link"})]})]})},e.name)),R&&(0,a.jsx)(j.yD,{children:(0,a.jsxs)(j.rU,{"aria-label":"Gift this article",as:"button",onClick:()=>{$(!1),r?.()},type:"button",children:[(0,a.jsx)(p.Z,{}),(0,a.jsx)(j.__,{children:"Gift this article"})]})},"Gift")]})]})}},80164:function(e,t,n){n.d(t,{T:()=>r,V:()=>o});var i=n(78943);let o=i.ZP.div.withConfig({componentId:"sc-1f8bef37-0"})(["font-size:15px;"]),r=i.ZP.img.withConfig({componentId:"sc-1f8bef37-1"})(["aspect-ratio:16/9;height:74px;margin-left:16px;vertical-align:middle;"])},45965:function(e,t,n){n.d(t,{Z:()=>s});var i=n(52322),o=n(56111),r=n(40677),a=n(80164);let l={advertorial:"Advertorial for",broughttoyouby:"Brought to you by",default:"Sponsored content",partner:"In partnership with",presented:"Presented by",sponsor:"Sponsored by"},s=({className:e,height:t=74,leadText:n="",sponsor:{logos:s,name:d,type:c,url:m}})=>{let{imageRenditionUrlPrefix:p}=(0,o.Z)();return(0,i.jsxs)(a.V,{className:e,children:[n||l[c]||l.default," ",((e,t,n,o,l)=>{let s=((e,t,n,o)=>{if(!o?.landscape16x9)return e;let l=Math.round(n*r.ri.wide),s=e=>(0,r.iu)({aspectRatio:r.ri.wide,image:o.landscape16x9,imageRenditionUrlPrefix:t,width:e}),d=s(l),c=`${d}, ${s(2*l)} 2x`;return(0,i.jsx)(a.T,{alt:e,height:n,src:d,srcSet:c,width:l})})(e,t,n,o);return l?(0,i.jsx)("a",{href:l,rel:"noopener noreferrer",target:"_blank",children:s}):s})(d,p,t,s,m)]})}},18036:function(e,t,n){n.d(t,{Z:()=>w});var i=n(52322),o=n(17845),r=n(50041),a=n(2784),l=n(52115);let s={kind:"Document",definitions:(e=>{let t={};return e.filter(e=>{if("FragmentDefinition"!==e.kind)return!0;let n=e.name.value;return!t[n]&&(t[n]=!0,!0)})})([{kind:"OperationDefinition",name:{kind:"Name",value:"AssetsByRecirculationCriteria"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"mostViewed"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AssetsByRecirculationCriteriaMostViewedInput"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assetsByRecirculationCriteria"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"mostViewed"},value:{kind:"Variable",name:{kind:"Name",value:"mostViewed"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"extensions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publicId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headlines"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"headline"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AssetImagesFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"urls"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AssetUrlsFragment"},directives:[]}]}}]}}]}}]}}].concat(l.Os.definitions,l.WV.definitions)),loc:{start:0,end:278,source:{body:"query AssetsByRecirculationCriteria($mostViewed:AssetsByRecirculationCriteriaMostViewedInput!){assetsByRecirculationCriteria(input:{mostViewed:$mostViewed}){assets{extensions id publicId subType type headlines{headline}images{...AssetImagesFragment}urls{...AssetUrlsFragment}}}}"}}};var d=n(56111),c=n(64870),m=n(73302),p=n(3488),u=n(63855),h=n(84641),g=n(69414),f=n(70992),x=n(57046),v=n(79644),b=n(78943);let k=b.ZP.section.withConfig({componentId:"sc-d7c9996a-0"})(["margin:24px 0;@media ","{margin:0;}"],v.Z.query.large),y=b.ZP.div.withConfig({componentId:"sc-d7c9996a-1"})(["display:flex;flex-direction:column;gap:16px;@media ","{column-gap:24px;display:grid;grid-auto-rows:min-content;grid-template-columns:repeat(2,1fr);width:100%;}"],v.Z.query.medium),C=b.ZP.div.withConfig({componentId:"sc-d7c9996a-2"})(["display:flex;gap:24px;padding-left:10px;&:nth-child(-n + 3){grid-row:",";}&::before{color:",";content:",";font-family:",";font-size:28px;line-height:32px;min-width:1ch;}","{width:100%;}@media ","{gap:32px;}@media ","{padding-left:14px;&::before{font-size:48px;line-height:56px;}","{line-height:20px;}}"],e=>e.$position,e=>e.theme.colorDarkAccent,e=>`"${e.$position}"`,e=>e.theme.fontTertiary,x.StoryTile,v.Z.query.mediumOnly,v.Z.query.large,x.Headline),w=({asset:{category:e},contentUnitPos:t,overridingDisplayOptions:n})=>{let{brand:{shortSiteName:l}}=(0,d.Z)(),x=(0,u.B5)(e),v=(0,u.a$)(e),b=x||v,w=e?.parent?.name||e?.name,[Z,{data:P,error:S}]=((e,t,n)=>{let[i,o]=(0,r.t)(s);return[(0,a.useCallback)(()=>i({variables:{mostViewed:{brandKey:e,filter:{categoryName:n},limit:t}}}),[i,e,t,n]),o]})(l,6,w),{ref:I}=(0,f.YD)({rootMargin:"0px 0px 500px 0px",triggerOnce:!0,skip:b,onChange:e=>{e&&Z()}});if(b)return null;if(S)return g.Y.error(`MostViewedStorySet failed to load most viewed stories for site ${l}${w?` in section ${w}`:""}`,o.log.Error(S)),null;if(!P)return(0,i.jsx)("div",{ref:I});let j=P?.assetsByRecirculationCriteria?.assets??[];if(0===j.length)return null;let N=w?` in ${w}`:" today",A=`Most Viewed${N}`,E={content:{assets:j},editingState:h.C7.Ready,heading:{text:A},id:"",links:[],name:"MostViewedStorySet",publicId:"",type:h.MD.Custom};return(0,i.jsx)(c.Z,{Content:({linkAttributes:e})=>{let t={headlineSizes:m.Mo.XXS_XXS_XXS,imagePositions:"right",imageSizes:{large:{aspectRatio:"1x1",width:56},medium:{aspectRatio:"1x1",width:56},small:{aspectRatio:"1x1",width:56}},...n};return(0,i.jsx)(k,{children:(0,i.jsx)(y,{children:E?.content?.assets.map((n,o)=>(0,i.jsx)(C,{$position:o+1,children:(0,i.jsx)(p.Z,{asset:n,displayOptions:t,linkAttributes:e,position:o+1})},n.id))})})},className:"noPrint",contentUnit:E,contentUnitGroup:"everything",contentUnitPos:t,hasBorderTop:!1,hasContent:!0,isPagebuilder:!1,withBackground:!1})}},86055:function(e,t,n){n.d(t,{$:()=>l,A:()=>s});var i=n(89049),o=n(79644),r=n(78943);let a=(0,r.iv)(["position:relative;&::before{background-color:",";content:'';height:100%;left:50%;position:absolute;top:0;transform:translateX(-50%);width:100vw;z-index:",";}","{border-top:0;}"],e=>e.theme.colorBrand100,o.Z.zIndex.background,i.Header),l=r.ZP.section.withConfig({shouldForwardProp:e=>!["hasBorderTop","withBackground"].includes(e)}).withConfig({componentId:"sc-3dbe4134-0"})(["border-top:",";margin-top:40px;"," padding-top:","px;@media ","{margin-top:48px;}"],({hasBorderTop:e,theme:t})=>e?`${t.widthStrapHeader} solid ${t.colorStrapHeader};`:"none",e=>e.withBackground?a:"",e=>12*!!e.withBackground,o.Z.query.medium),s=(0,r.iv)(["border-top:1px solid ",";padding:24px 0;&:first-child{border-top:0;padding-top:0;}&:last-child{padding-bottom:0;}"],e=>e.theme.colorLightAccent)},64870:function(e,t,n){n.d(t,{Z:()=>u});var i=n(52322),o=n(38936),r=n(56111),a=n(73302),l=n(36910),s=n(81924),d=n(84641),c=n(2784),m=n(66916),p=n(86055);let u=(0,c.memo)(({Content:e,className:t,componentName:n,contentUnit:c,contentUnitGroup:u,contentUnitPos:h,hasBorderTop:g=!0,hasContent:f,isPagebuilder:x,withBackground:v=!1})=>{let{PAGEBUILDER:{ENABLED:b}}=(0,r.Z)(),k=0;switch(c?.type){case d.MD.Recirculation:case d.MD.Resolved:k=c.content.assets.length;break;case d.MD.ThirdParty:k=c.content.stories.length}if(!(c&&(x||f||k>0))||x&&c?.editingState==="HIDDEN")return null;let{heading:y,publicId:C}=c,{text:w,url:Z}=y||{},P=w||n,S={[m.t.NAME]:P,...u?{[m.t.CU_GROUP]:u}:{},...P?{[m.t.CU_NAME]:P}:{},...h?{[m.t.CU_POS]:h}:{}},I={[a.Nc.CU_ID]:C,[a.Nc.TYPE]:a.D8.CONTENT_UNIT},j={[a.AY.NAME]:`${P.toString().replace(/ /g,"-").replace(/'/g,"").toLowerCase()}-strap`};return(0,i.jsx)(o.ZP,{children:(0,i.jsxs)(p.$,{className:t,hasBorderTop:g,withBackground:v,...S,...b?I:{},...j,children:[(0,i.jsx)(l.Z,{title:w,url:Z}),(0,i.jsx)(e,{linkAttributes:{onClick:e=>{(0,s.fH)(u,P,h,(e=>{let t=e;for(;t&&"section"!==t.nodeName.toLowerCase()&&!t.getAttribute("data-an-position");)t=t.parentElement;return t?Number.parseInt(t.getAttribute("data-an-position")||"0",10):0})(e.currentTarget))}}})]})})},(e,t)=>!t.bypassMemo&&JSON.stringify(e.contentUnit)===JSON.stringify(t.contentUnit))},46397:function(e,t,n){n.d(t,{z:()=>i});let i=(e,t)=>{let{groups:n}=e||{groups:[]};for(let e of n){let{content:{units:n}}=e,i=(n||[]).find(e=>e.name===t);if(i)return i}return null}},89049:function(e,t,n){n.r(t),n.d(t,{Header:()=>r,Heading:()=>a});var i=n(79644),o=n(78943);let r=o.ZP.header.withConfig({componentId:"sc-84567ec1-0"})(["margin-bottom:16px;padding-top:12px;text-transform:uppercase;@media ","{margin-bottom:24px;}"],i.Z.query.medium),a=o.ZP.h2.withConfig({shouldForwardProp:e=>"linkType"!==e}).withConfig({componentId:"sc-84567ec1-1"})(["color:",";display:inline-block;font-size:18px;letter-spacing:2px;line-height:20px;",";a{color:",";text-decoration:none;width:auto;svg{display:",";height:16px;margin-bottom:",";margin-left:2px;transition:0.25s all ease-in-out;width:16px;}span{border-bottom:2px solid transparent;color:",";transition:",";}&:hover > svg{","}&:hover > span{color:",";","}}"],e=>e.theme.colorStrapHeaderText,e=>"none"!==e.linkType&&"cursor: pointer",e=>e.theme.colorStrapHeaderText,e=>e.theme.displayStrapHeaderIcon,e=>"internal"===e.linkType?"4px":"3px",e=>e.theme.colorStrapHeaderText,e=>e.theme.transitionStrapHeader,e=>e.linkType&&"internal"===e.linkType&&`stroke: ${e.theme.strokeStrapHeader}; transform: ${e.theme.transformStrapHeader}`,e=>e.theme.colorLinkHover,e=>e.linkType&&"none"!==e.linkType&&`border-bottom: 2px solid ${e.theme.decorationStrapHeader};`)},36910:function(e,t,n){n.d(t,{Z:()=>p});var i={};n.r(i),n.d(i,{Header:()=>d.Header,Heading:()=>m});var o=n(52322),r=n(31518),a=n(11233),l=n(53896),s=n(79916),d=n(89049),c=n(79644);let m=(0,n(78943).ZP)(d.Heading).withConfig({componentId:"sc-d2ff5ede-0"})(["font-size:17px;line-height:17px;@media ","{font-size:20px;line-height:20px;}"],c.Z.query.medium),p=({className:e,title:t,url:n})=>{let c=(0,s.jn)((0,l.TH)().pathname)?i:d;if(!t)return null;let m=n?/^(https?:)?\/\/.*/.test(n)?"external":"internal":"none",p=(e=>{switch(e){case"external":return(0,o.jsx)(a.Z,{});case"internal":return(0,o.jsx)(r.Z,{});default:return null}})(m),u="external"===m;return(0,o.jsx)(c.Header,{className:e,children:(0,o.jsx)(c.Heading,{"data-pb-type":"hi",linkType:m,children:"none"===m?(0,o.jsx)("span",{children:t}):(0,o.jsxs)("a",{href:n,rel:u?"noopener":void 0,target:u?"_blank":void 0,children:[(0,o.jsx)("span",{children:t}),p]})})})}},25061:function(e,t,n){n.d(t,{Z:()=>y});var i=n(52322),o=n(50041),r=n(17845),a=n(56111),l=n(27421),s=n(64870),d=n(73302),c=n(3488),m=n(95204),p=n(79644);let u=n(78943).ZP.div.withConfig({componentId:"sc-a52e257f-0"})(["display:grid;gap:24px 40px;grid-template-columns:repeat(2,1fr);@media ","{grid-template-columns:1fr;","{padding:12px 0;&:first-child{border-top:0;padding-top:0;}&:last-child{padding-bottom:0;}}}","{gap:16px;}"],p.Z.query.smallMax,m.StoryTile,m.StoryTile),h={headlineSizes:d.Mo.XS_XS_XS,imagePositions:"left",imageSizes:{large:{aspectRatio:"1x1",width:96},medium:{aspectRatio:"1x1",width:96},small:{aspectRatio:"1x1",width:96}},showPrimaryTag:!0},g=({contentUnit:e,contentUnitGroup:t,contentUnitPos:n,hasBorderTop:o=!0})=>{let{PAGEBUILDER:{ENABLED:r}}=(0,a.Z)();return(0,i.jsx)(s.Z,{Content:((e=[])=>({linkAttributes:t})=>e.length>0&&(0,i.jsx)(u,{children:e.map((e,n)=>(0,i.jsx)(c.Z,{asset:e,displayOptions:h,linkAttributes:t,position:n+1},e.id))}))(e?.content?.assets),contentUnit:e,contentUnitGroup:t,contentUnitPos:n,hasBorderTop:o,isPagebuilder:r})};var f=n(46397),x=n(63855),v=n(69414),b=n(70992),k=n(72649);let y=({asset:e,contentUnitPos:t})=>{let{brand:n}=(0,a.Z)(),s=(0,x.B5)(e.category),d=(0,x.a$)(e.category),c=!s&&!d,[m,{data:p,error:u}]=(0,o.t)(l.R,{nextFetchPolicy:"cache-only",returnPartialData:!0}),{ref:h}=(0,b.YD)({rootMargin:"0px 0px 500px 0px",triggerOnce:!0,skip:c,onChange:e=>{e&&m({variables:{after:"",first:0,input:{brandKey:n.shortSiteName,pageType:"article",renderName:"web"}}})}});if(c)return null;if(!p&&!u)return(0,i.jsx)("div",{ref:h});let{error:y,page:C}=p?.pageByType||{};if(u||y||!C)return v.Y.error("SubbrandMostViewedStrap PageByType failure",r.log.EventType("asset","pageByType"),r.log.Error(u||y)),null;let w=C.content,Z=w?.groups?.[0]?.name,P=s?k.xB:k.wb,S=(0,f.z)(w,P);return e.category?.name.toLowerCase()==="inspiration"&&(S={...S,content:{...S?.content,assets:S?.content?.assets?.slice(0,4)}}),(0,i.jsx)(g,{className:"noPrint",contentUnit:S,contentUnitGroup:Z,contentUnitPos:t},"PopularStories")}},63855:function(e,t,n){n.d(t,{B5:()=>a,BD:()=>o,OB:()=>r,a$:()=>l});var i=n(84641);let o=(e,t)=>t?.name?.toLowerCase()===e.toLowerCase(),r=e=>e===i.h3.FeatureArticle,a=e=>e?.parent?.name?.toLowerCase()==="travel"||e?.name?.toLowerCase()==="travel",l=e=>e?.parent?.name?.toLowerCase()==="food"||e?.name?.toLowerCase()==="food"},95731:function(e,t,n){n.d(t,{EZ:()=>d,K_:()=>a,Nr:()=>m,gg:()=>r.gg,j7:()=>s,rh:()=>c,zZ:()=>l});var i=n(84641),o=n(83949),r=n(83628);let a=5,l={smh:"https://help.smh.com.au/hc/en-au/articles/10940007258265-Website",theage:"https://help.theage.com.au/hc/en-au/articles/11451531560729-Website",brisbanetimes:"https://help.brisbanetimes.com.au/hc/en-au/articles/11438288336537-Website",watoday:"https://help.watoday.com.au/hc/en-au/articles/11337803067673-Website"},s=e=>!!e&&e.type!==i.h3.Collection,d=e=>!!new URLSearchParams(e).get("gift"),c=e=>1===e?"gift":"gifts",m=()=>(e=>{let t=e?.subscription?.entitlements??[],n=t.includes("Metro_premium_gifting"),i=n||t.includes("Metro_gifting");return{canGift:i,tier:i?n?"premium":"starter":null,tierAllowance:n?a:3}})((0,o.aF)())},63490:function(e,t,n){n.d(t,{F:()=>o,g:()=>r});var i=n(27297);let o=(e,t=i.Ok)=>e?new i.ZP(e,"UTC").format(t):"",r=e=>{if(e){let t=Math.floor(e/6e4),n=Number.parseInt((e%6e4/1e3).toFixed(0),10);return`PT${t<10?"0":""}${t}M${n<10?"0":""}${n}S`}return""}},13783:function(e,t,n){n.d(t,{Z:()=>i});let i=function(e,t){let n=0;return(...i)=>{let o=Date.now();if(!(o-nD});var i,o,r,a,l,s=n(52322),d=n(10519),c=n(2784);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,N.iv)(["font-size:","px;line-height:","px;"],e,t),E=N.ZP.div.withConfig({componentId:"sc-f79e2ead-0"})(["background-color:",";box-shadow:0 8px 24px 0 rgb(0 0 0 / 50%);color:",";height:100%;padding:72px 32px;position:relative;text-align:center;width:100%;&:focus-visible{outline:none;}@media ","{border-radius:8px;height:auto;max-width:480px;padding:40px 40px 48px;}"],e=>e.theme.colorLightFill,e=>e.theme.colorDark,j.Z.query.medium),L=N.ZP.h3.withConfig({componentId:"sc-f79e2ead-1"})(["color:",";font-family:",";font-size:24px;font-weight:bold;line-height:28px;margin:0 auto 16px;max-width:",";"," @media ","{max-width:",";","}"],e=>e.theme.colorBrand,e=>e.theme.fontTertiary,e=>e.pendingVerify?"210px":"none",A(24,28),j.Z.query.medium,e=>e.pendingVerify?"240px":"none",A(28,32)),T=N.ZP.div.withConfig({componentId:"sc-f79e2ead-2"})(["margin-bottom:32px;"," p{margin-bottom:16px;}@media ","{","}"],A(15,20),j.Z.query.medium,A(17,24)),F=N.ZP.a.withConfig({componentId:"sc-f79e2ead-3"})(["color:",";left:0;margin:16px 0 0 16px;"," position:absolute;text-decoration:none;top:0;&:focus,&:hover{color:",";text-decoration:underline;}svg{display:inline-block;height:13px;margin-bottom:2px;width:13px;}"],e=>e.theme.colorDark,A(13,16),e=>e.theme.colorDark),R=N.ZP.div.withConfig({componentId:"sc-f79e2ead-4"})(["align-items:center;background-color:",";border-radius:50%;display:flex;flex-direction:column;height:64px;justify-content:center;margin:0 auto 16px;width:64px;svg{margin-bottom:4px;}@media ","{height:80px;width:80px;svg{height:40px;width:40px;}}"],e=>e.theme.colorBrand,j.Z.query.medium),B=N.ZP.p.withConfig({componentId:"sc-f79e2ead-5"})([""," padding-top:12px;svg{display:block;height:24px;margin:0 auto 10px;width:24px;}@media ","{","}"],A(15,20),j.Z.query.medium,A(17,20)),M=(0,N.ZP)(v.ButtonStandard).withConfig({componentId:"sc-f79e2ead-6"})(["margin:8px 0 14px;min-width:246px;"," "," padding:15px 0;"],A(14,14),e=>e.pendingVerify&&(0,N.iv)([""," "," letter-spacing:0;padding:15px 0;text-align:center;text-decoration:none;text-transform:none;&:focus,&:hover{background:none;}@media ","{","}"],v.fauxLink,A(15,20),j.Z.query.medium,A(17,24))),_=N.ZP.p.withConfig({componentId:"sc-f79e2ead-7"})(["color:",";margin-bottom:16px;",""],e=>e.theme.colorHighlight,A(13,15)),V="An error has occurred. Please try again in a few minutes.",H=(e,t)=>t?.requiredToVerify&&!t.verified&&!(0,x.kk)(t)&&!e?.ads?.sponsor,D=({asset:e})=>{let[t,n]=(0,c.useState)(!1),[i,o]=(0,c.useState)(""),[r,a]=(0,c.useState)(!1),[l,m]=(0,c.useState)(!0),[u,x]=(0,c.useState)(!1),[y,j]=(0,w.lr)(),{brand:N}=(0,g.Z)(),A=(0,P.aF)();(0,c.useEffect)(()=>{"false"===y.get("verify")&&(n(!0),y.delete("verify"),j(y,{replace:!0}))},[y,j]),(0,c.useEffect)(()=>{H(e,A)&&l&&((0,Z.F)(!0),m(!1))},[e,l,A]),(0,c.useEffect)(()=>{l||(0,k.T7)(b.F7,t?b.Mh:b.Zj)},[l,t]);let D=t?"Resend Email":"Send confirmation email";return!l&&H(e,A)&&(0,s.jsx)(C(),{className:"confirmationModal",contentElement:(e,t)=>(0,s.jsx)(E,{...e,children:t}),contentLabel:"Email Confirmation",isOpen:!0,overlayClassName:"_",overlayElement:(e,t)=>(0,s.jsx)(v.OverlayModal,{...e,children:t}),children:(0,s.jsxs)("div",{"data-testid":"modal",children:[(0,s.jsxs)(F,{href:"/goodfood",onClick:()=>{(0,k.T7)(b.w4,b.Zj)},children:[(0,s.jsx)(d.Z,{}),"Home"]}),(0,s.jsx)(R,{children:(0,s.jsx)(p,{})}),t?(0,s.jsxs)(c.Fragment,{children:[(0,s.jsx)(L,{pendingVerify:!0,children:"Check your email to continue"}),(0,s.jsxs)(T,{children:[(0,s.jsxs)("p",{children:["You will need to confirm your email address by following the instructions sent to ",(0,s.jsx)("br",{}),A?(0,s.jsx)("strong",{children:A.email}):""]}),(0,s.jsx)("p",{children:"The email should already be in your inbox. Click on the link provided and you’ll be taken straight back to our site to finalise your registration."}),(0,s.jsx)("p",{children:"The email link is only valid for 15 minutes."})]})]},"modal-content"):(0,s.jsxs)(c.Fragment,{children:[(0,s.jsx)(L,{children:(0,I.q)(e.type)?"Complete your registration to continue reading":"Complete your registration to continue"}),(0,s.jsx)(T,{children:(0,s.jsx)("p",{children:"Please confirm your email address to complete your registration."})})]},"modal-content"),i&&(0,s.jsx)(_,{role:"alert",children:i}),u&&!i?(0,s.jsxs)(B,{children:[(0,s.jsx)(h,{}),"Check your email to continue."]}):(0,s.jsx)(M,{disabled:r,onClick:()=>{(0,k.T7)(b.Jw,t?b.Mh:b.Zj),o(""),x(!1),a(!0),(0,S.A)(N.shortSiteName).then(e=>e&&o(V)).catch(()=>o(V)).finally(()=>{a(!1),x(!0)})},pendingVerify:t,type:"submit",children:r?(0,s.jsx)(f.Z,{inverse:!0}):D})]})})}},93910:function(e,t,n){n.d(t,{A:()=>c,B:()=>d});var i=n(17845),o=n(58704),r=n(69414);let a=["member","resendVerification"],l="Failed to resend verification email",s={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"ResendVerificationMutation"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MemberResendVerificationInput"}}}}],operation:"mutation",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"memberResendVerification"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:142,source:{body:"mutation ResendVerificationMutation($input:MemberResendVerificationInput!){memberResendVerification(input:$input){error{message type{class}}}}"}}},d={brisbanetimes:"BRISBANE_TIMES",smh:"SMH",theage:"THE_AGE",watoday:"WA_TODAY"},c=async e=>{let t="undefined"!=typeof window&&`${window.location.protocol}//${window.location.host}`,n="undefined"!=typeof window?`${t}/account-verification`:"",c={input:{redirectURL:"undefined"!=typeof window?`${t}${window.location.pathname}`:"",siteKey:d[e],verifyURL:n}},m=await o.Z.mutate({context:{clientName:"api-front"},mutation:s,variables:c});return m.data?.memberResendVerification?m.data.memberResendVerification.error:(r.Y.error(l,i.log.EventType(...a),i.log.Error(m.error)),Error(l))}},25445:function(e,t,n){n.d(t,{q:()=>o});var i=n(84641);let o=e=>e!==i.h3.Gallery&&e!==i.h3.Video},57737:function(e,t,n){n.d(t,{Z:()=>r,k:()=>a});var i=n(50938),o=n(40809);let r=(0,i.QS)(!1),a=()=>(0,o.l)(r)},6054:function(e,t,n){n.d(t,{E:()=>i});let i=(0,n(50938).QS)({})},84721:function(e,t,n){n.d(t,{m:()=>c});var i=n(52322),o=n(79916),r=n(78943);let a=r.ZP.div.withConfig({componentId:"sc-792cada9-0"})(["align-items:flex-start;display:flex;flex-direction:column;height:100vh;justify-content:center;"]),l=r.ZP.h1.withConfig({componentId:"sc-792cada9-1"})(["font-family:",";font-size:36px;line-height:40px;margin:0 16px 16px;"],e=>e.theme.fontTertiary),s=r.ZP.p.withConfig({componentId:"sc-792cada9-2"})(["font-family:",";font-size:18px;line-height:28px;margin:0 16px 16px;"],e=>e.theme.fontPrimary),d=r.ZP.a.withConfig({componentId:"sc-792cada9-3"})(["background-color:",";border-radius:4px;color:#fff;display:inline-block;font-family:",";font-size:16px;margin:0 16px;padding:12px 24px;text-decoration:none;"],e=>e.theme.colorAction,e=>e.theme.fontPrimary),c=({brand:e,pathname:t})=>{var n;let r=(0,o._P)(t),c=(n=e.shortSiteName,(0,o._P)(t)?"https://play.google.com/store/apps/details?id=au.com.nine.goodfood":"smh"===n?"https://play.google.com/store/apps/details?id=com.fairfaxmedia.ink.metro.smh&hl=en_AU":"theage"===n?"https://play.google.com/store/apps/details?id=com.fairfaxmedia.ink.metro.age&hl=en_AU":null);return(0,i.jsxs)(a,{children:[(0,i.jsx)(l,{children:"This page is for subscribers only"}),(0,i.jsx)(s,{children:r?"This page is only available to subscribers. Go to the Good Food app to subscribe via Google Play.":`This page is only available to subscribers. Go back to ${e.longSiteName} app and subscribe via Google Play.`}),c&&(0,i.jsx)(d,{href:c,children:"Subscribe via Google Play"})]})}},54974:function(e,t,n){n.d(t,{Z:()=>D});var i=n(52322),o=n(17845),r=n(19565),a=n(41982),l=n(56111),s=n(41865),d=n(77056),c=n(79979),m=n(19189),p=n(2596),u=n(84641),h=n(69414),g=n(2784),f=n(53896),x=n(44773),v=n(40966),b=n(6054),k=n(79909),y=n(83628),C=n(28063),w=n(72204),Z=n(72649),P=n(84721),S=n(28977),I=n(96617),j=n(33738);let N=["metro special","metros special","coronavirus pandemic live","nsw floods live","victoria floods live"],A=["property"],E=(0,r.ZP)({resolved:{},chunkName:()=>"templates-Shared-Assets-Article-Article",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8971"),n.e("8482"),n.e("7831"),n.e("9489"),n.e("7945"),n.e("3366")]).then(n.bind(n,31150)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>31150}),L=(0,r.ZP)({resolved:{},chunkName:()=>"templates-Shared-Assets-Bespoke-Bespoke",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("8447").then(n.bind(n,84211)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>84211}),T=(0,r.ZP)({resolved:{},chunkName:()=>"templates-Shared-Assets-Collection-Collection",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("3569").then(n.bind(n,57998)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>57998}),F=(0,r.ZP)({resolved:{},chunkName:()=>"templates-Shared-Assets-FeatureArticle-FeatureArticle",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8971"),n.e("8482"),n.e("7831"),n.e("7945"),n.e("5412")]).then(n.bind(n,19678)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>19678}),R=(0,r.ZP)({resolved:{},chunkName:()=>"templates-Shared-Assets-Gallery-Gallery",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8971"),n.e("7831"),n.e("3686")]).then(n.bind(n,89747)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>89747}),B=(0,r.ZP)({resolved:{},chunkName:()=>"templates-Shared-Assets-ImmersiveArticle-ImmersiveArticle",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8482"),n.e("1688")]).then(n.bind(n,92137)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>92137}),M=(0,r.ZP)({resolved:{},chunkName:()=>"templates-GoodFood-Recipe-Recipe",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8482"),n.e("9489"),n.e("5084")]).then(n.bind(n,30412)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>30412}),_=(0,r.ZP)({resolved:{},chunkName:()=>"templates-Shared-Assets-Video-Video",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8971"),n.e("9489"),n.e("5573"),n.e("9787")]).then(n.bind(n,70200)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>70200}),V=(0,r.ZP)({resolved:{},chunkName:()=>"templates-GoodFood-GoodFoodGuideReview-GoodFoodGuideReview",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e("8971"),n.e("8482"),n.e("7831"),n.e("9489"),n.e("7945"),n.e("3366"),n.e("780"),n.e("3533")]).then(n.bind(n,41533)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>41533}),H=["asset","assetByPublicIdQuery"],D=({id:e})=>{let{brand:t,PAGEBUILDER:n}=(0,l.Z)(),r=(0,s.Z)(),{asset:D,assetError:$,error:O,fetchMoreStories:q,loading:U,networkStatus:z}=(0,a.Gs)(),{appAccess:G,appSubAccess:W,appPremiumSubAccess:Y}=(0,x.P)(),{isAndroid:X}=(0,c.Z)(),Q=(0,j.Z)(t.shortSiteName,D),{pathname:K}=(0,f.TH)(),J=O||$;(0,g.useEffect)(()=>{J?(0,v.c)(null):D&&(0,v.c)(D)},[D,J]);let ee=(0,g.useRef)(null);if(null===ee.current&&(ee.current={...(0,y.YE)(y.PJ),...(0,y.YE)(y.Ek)}),(0,g.useEffect)(()=>{"undefined"!=typeof sessionStorage&&(sessionStorage.removeItem(y.PJ),sessionStorage.removeItem(y.Ek))},[]),(0,d.Z)(D&&(0,y.pu)(D,K,t.shortSiteName,ee.current),J),(0,I.i)(D?.publicId),Q?.error?(h.Y.error("Paywall rule failure",o.log.EventType("asset","paywallRule"),o.log.Error(Q.error)),(0,b.E)(null)):Q?.data&&(0,b.E)(Q.data.paywallRule?.rule),U)return null;if(J)return($?.type?.class!==u.c4.NotFound&&h.Y.error("Asset load failed",o.log.EventType(...H),o.log.Error(J),o.log.String("errorClass",$?.type?.class),o.log.String("description",`Asset id: ${e}`),o.log.String("pathname",K)),$&&$.type?.class===u.c4.Unavailable)?(0,i.jsx)(k.Z,{status:500}):$?(0,i.jsx)(k.Z,{status:404}):(0,i.jsx)(k.Z,{status:500});if(!D)return(0,i.jsx)(k.Z,{status:404});let et=(0,C.Dd)(D)?V:((e,t)=>{switch(e){case u.h3.Article:return E;case u.h3.Collection:return T;case u.h3.FeatureArticle:if(t===Z.n_)return B;return F;case u.h3.Gallery:return R;case u.h3.LiveArticle:return S.Z;case u.h3.Recipe:return M;case u.h3.Video:return _;case u.h3.Bespoke:return L;case u.h3.Newsletter:case u.h3.Url:default:return}})(D.type,D.subType),en=(0,w.Wn)(D,{featureFlags:r,pagebuilder:n.ENABLED,truncatable:!0}),ei=[D.tags?.primary?.displayName,...(D.tags?.secondary||[]).map(e=>e.displayName)].filter(Boolean).map(e=>e?.toLowerCase()||""),eo=(0,y.CP)(D.category,K).map(e=>e.toLowerCase()),er=D.type===u.h3.LiveArticle||eo.some(e=>A.includes(e))||ei.some(e=>N.includes(e)),ea=Q?.data?.paywallRule?.rule,el=null!=ea&&(ea.exemptionReasons?.length??0)===0;return G&&!W&&!Y&&X&&r[p.PERM_FEATURE_FLAG_OTHER_APPS_REDIRECT_ENABLED]&&!er&&el?(0,i.jsx)(P.m,{brand:t,pathname:K}):et?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.Z,{asset:D}),(0,i.jsx)(et,{asset:en,fetchMore:q,loading:U,networkStatus:z})]}):(0,i.jsx)(k.Z,{status:404})}},19808:function(e,t,n){n.r(t),n.d(t,{default:()=>s});var i=n(52322),o=n(53896),r=n(79909),a=n(54974),l=n(28063);let s=()=>{let{"*":e}=(0,o.UO)(),t=(0,l.TN)(e);return t?(0,i.jsx)(a.Z,{id:t}):(0,i.jsx)(r.Z,{status:404})}},68189:function(e,t,n){n.d(t,{AN:()=>s,D9:()=>d,Hf:()=>l,I3:()=>h,cu:()=>p,jW:()=>c,nX:()=>u});var i=n(29939),o=n(84641),r=n(72204),a=n(90283);let l=({tags:e})=>(0,r.zN)(e,["good weekend"])?i.By:(0,r.zN)(e,["sunday life"])?i.fp:"",s=(e,t)=>{let n=e.publicId;return[...t].map(e=>({...e,urls:{...e.urls,canonical:{...e.urls.canonical,path:e.urls.canonical?.path&&`${e.urls.canonical?.path}?collection=${n}&gb=1`},published:e.urls.published.map(e=>({...e,path:`${e.path}?collection=${n}&gb=1`}))}}))},d=(e,t)=>{if(e?.name==="story-set-frfaz"&&e.content?.assets?.length>=5){let n=e.content.assets.filter(e=>e.publicId!==t);if(n?.length>=5)return{...e,content:{...e.content,assets:n}}}return null},c=e=>e?.subType===i.Ii.magazine&&e?.type===o.h3.Collection,m=e=>({altText:"Placeholder image",animated:!1,caption:"",credit:"",crop:null,mediaId:"",mimeType:"image/png",source:"",type:e}),p=({headline:e,images:t,...n})=>{let i=new Date().toISOString(),r=(0,a.Z)();return{assetType:o.h3.Article,byline:"",dates:{created:i,firstPublished:i,modified:i,published:i,saved:i},headlines:{headline:e},id:r,images:{landscape16x9:t?.landscape16x9??m(o.FY.Landscape_16_9),landscape3x2:t?.landscape3x2??m(o.FY.Landscape_3_2),portrait2x3:t?.portrait2x3??m(o.FY.Portrait_2_3),square1x1:t?.square1x1??m(o.FY.Square_1_1)},publicId:r,...n}},u=e=>void 0!==e&&"publicId"in e,h=e=>"ASSET_PLACEHOLDER"===e.type&&"headline"in e},51259:function(e,t,n){n.d(t,{Fx:()=>l,M9:()=>d,Se:()=>c,uT:()=>s,xN:()=>m});var i=n(71378),o=n(3766),r=n(79644),a=n(78943);let l=(0,a.ZP)(r.Z.Content).withConfig({componentId:"sc-75e7da25-0"})(["padding-bottom:56px;","{width:100%;@media ","{width:auto;}}"],o.EZ,r.Z.query.medium),s=a.ZP.div.withConfig({componentId:"sc-75e7da25-1"})(["display:flex;flex-direction:row;gap:40px;"]),d=a.ZP.div.withConfig({componentId:"sc-75e7da25-2"})(["margin-top:24px;width:100%;@media ","{width:",";}"],r.Z.query.large,r.Z.columnWidth(8,12)),c=a.ZP.div.withConfig({componentId:"sc-75e7da25-3"})(["&::after{content:'';width:100%;}"]),m=(0,a.ZP)(i.Z.Track).withConfig({componentId:"sc-75e7da25-4"})(["display:none;flex-grow:1;height:auto;@media ","{display:block;}"],r.Z.query.large)},28977:function(e,t,n){n.d(t,{Z:()=>A});var i=n(52322),o=n(19565),r=n(75724),a=n(90016),l=n(44114),s=n(48239),d=n(41571),c=n(91238),m=n(76493),p=n(28833),u=n(29799),h=n(36785),g=n(93673),f=n(72671),x=n(12533),v=n(32075),b=n(14923),k=n(16120),y=n(4816),C=n(79738),w=n(98051),Z=n(18036),P=n(25061),S=n(28067),I=n(1600),j=n(51259);let N=(0,o.ZP)({resolved:{},chunkName:()=>"components-PropertyWidgets-DomainRecommends-DomainRecommends",isReady(e){let t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e("2000").then(n.bind(n,75886)),requireAsync(e){let t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){return n(this.resolve(e))},resolve:()=>75886}),A=({asset:e})=>{let{contentWallVisible:t}=(0,f.Z)(),n=(0,g.Z)("large"),{pinnedPurposes:o}=e?.pinnedPurposesPosts||{},A=(0,I.we)(o,S.i3.KeyEvent),E=A.length>0;return(0,i.jsxs)(j.Fx,{className:`liveArticle ${w.Jn}`,children:[(0,i.jsx)(h.Z,{asset:e}),(0,i.jsx)(l.Z,{}),(0,i.jsx)(y.Z,{asset:e}),(0,i.jsxs)(j.uT,{children:[(0,i.jsxs)(j.M9,{children:[(0,i.jsx)(c.Z,{}),(0,i.jsx)(d.Z,{asset:e}),(0,i.jsx)(u.Z,{}),!E&&(0,i.jsx)(j.Se,{as:s.Z,asset:e}),(0,i.jsx)(x.Z,{disabled:t,posts:A}),(0,i.jsx)(v.Z,{adPosStart:n?3:2,asset:e,contentWallVisible:t}),(0,i.jsx)(m.Z,{asset:e}),(0,i.jsx)(Z.Z,{asset:e,contentUnitPos:1}),(0,i.jsx)(P.Z,{asset:e,contentUnitPos:1}),(0,i.jsx)(N,{asset:e}),(0,i.jsx)(C.Z,{asset:e}),(0,i.jsx)(p.Z,{asset:e})]}),(0,i.jsxs)(j.xN,{children:[(0,i.jsx)(r.Z,{largeUnit:a.U.halfpageSkyscraper(2)}),(0,i.jsx)(b.Z,{asset:e})]})]}),(0,i.jsx)(k.Z,{asset:e})]})}},96617:function(e,t,n){n.d(t,{i:()=>c});var i=n(17845),o=n(69414),r=n(2784),a=n(83949),l=n(10372);let s={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"ReadAssetMutation"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"assetID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"newsroom"}},type:{kind:"NamedType",name:{kind:"Name",value:"Newsroom"}}}],operation:"mutation",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assetRead"},arguments:[{kind:"Argument",name:{kind:"Name",value:"read"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"assetId"},value:{kind:"Variable",name:{kind:"Name",value:"assetID"}}},{kind:"ObjectField",name:{kind:"Name",value:"newsroom"},value:{kind:"Variable",name:{kind:"Name",value:"newsroom"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:139,source:{body:"mutation ReadAssetMutation($assetID:String!,$newsroom:Newsroom){assetRead(read:{assetId:$assetID,newsroom:$newsroom}){error{message type}}}"}}},d=3,c=(e="")=>{let t=(0,a.aF)(),[n,c]=(0,r.useState)(!1),m=(e=>{let[t]=(0,l.D)(s,{context:{clientName:"api-front"}});return(0,r.useCallback)(()=>t({variables:{assetID:e,newsroom:"METRO"}}),[t,e])})(e),p=t?.membershipId||"";(0,r.useEffect)(()=>{if(!p||!e||n)return;let t=async(n=0,r=d)=>{try{let e=await m();if(!e.data?.assetRead)throw Error("No data returned from mutation");let{assetRead:{error:i}}=e.data;if(i){let e=n;if(er});var i=n(23539);let o={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"CommentsByPublicId"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"publicId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commentsByPublicId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"publicId"},value:{kind:"Variable",name:{kind:"Name",value:"publicId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commenting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"latestCommentsConnection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"closed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:192,source:{body:"query CommentsByPublicId($publicId:String!){commentsByPublicId(input:{publicId:$publicId}){commenting{enabled latestCommentsConnection{closed count error{message}}}error{message type{class}}}}"}}},r=e=>(0,i.a)(o,{ssr:!1,variables:{publicId:e.publicId},skip:!e.commenting?.enabled})},33738:function(e,t,n){n.d(t,{Z:()=>a});var i=n(23539),o=n(17741);let r={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"paywallRule"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"context"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaywallRuleRequestContext"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"story"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaywallRuleRequestStory"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paywallRule"},arguments:[{kind:"Argument",name:{kind:"Name",value:"context"},value:{kind:"Variable",name:{kind:"Name",value:"context"}}},{kind:"Argument",name:{kind:"Name",value:"story"},value:{kind:"Variable",name:{kind:"Name",value:"story"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"rule"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"exemptionReasons"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:193,source:{body:"query paywallRule($context:PaywallRuleRequestContext!,$story:PaywallRuleRequestStory!){paywallRule(context:$context,story:$story){error{message type{class}}rule{exemptionReasons{source type}}}}"}}},a=(e,t)=>{let n=t?.category.name||"",a=t?.tags&&[t?.tags.primary?.publicId,...(t?.tags.secondary||[]).map(e=>e.publicId)];return(0,i.a)(r,{context:{clientName:"api-front"},skip:!t,ssr:!1,variables:{context:{alreadyMetered:!1,currentMeterCount:0},story:{brand:(0,o.w)(e),categories:[n],sponsored:!!t?.ads?.sponsor,tags:a,type:(0,o.J)(t?.type)}}})}},91629:function(e,t,n){n.d(t,{O:()=>s,x:()=>d});var i=n(28067),o=n(84641);let r=e=>({key:e}),a=e=>{var t;return e?{displayName:e.displayName,id:e.id,latestStoriesConnection:{edges:[],pageInfo:{endCursor:0,hasNextPage:!1,hasPreviousPage:!1,startCursor:0}},name:e.name,publicId:e.shortID,urls:{canonical:e?.urls?.canonical&&{brand:r(e?.urls?.canonical.brand),path:e?.urls?.canonical?.path},published:(t=e?.urls?.published)?[{brand:"brisbanetimes",path:t?.brisbanetimes?.path},{brand:"smh",path:t?.smh?.path},{brand:"theage",path:t?.theage?.path},{brand:"watoday",path:t?.watoday?.path}].map(e=>({brand:r(e.brand),path:e.path})):[]}}:null},l=(e,t)=>{if(!e)return null;let{data:n}=e;return{altText:n?.altText,animated:n?.animated||!1,caption:n?.caption||"",credit:n?.credit||"",crop:n?.offsetX||n?.offsetY||n?.cropWidth||n?.zoom&&n?.zoom!==1?{offsetX:n?.offsetX||0,offsetY:n?.offsetY||0,width:n?.cropWidth||0,zoom:n?.zoom||1}:null,mediaId:n?.id,mimeType:n?.mimeType,source:n?.source||"",type:t}},s=e=>{switch(e){case o.h3.Article:return i.ku.Article;case o.h3.Collection:return i.ku.Collection;case o.h3.FeatureArticle:return i.ku.FeatureArticle;case o.h3.LiveArticle:return i.ku.LiveArticle;case o.h3.Recipe:return i.ku.Recipe;default:return}},d=e=>{var t,n,i;return{ads:e.sponsor?{exclusionTopics:[],overrides:[],sponsor:{name:e.sponsor.name,type:"sponsor"},suppress:!1}:null,brands:e.brands?e.brands.map(e=>r(e)):[],byline:(t=e.participants,t?.authors?t.authors.map(e=>({author:{name:e.name,publicId:e.id},type:o.tF.Author})):[]),category:e.category?{id:e.category.id?.toString(),name:e.category.name}:null,dates:e.dates,extensions:{...e.extensions,numberOfImages:e.asset.totalImages||void 0},headlines:{headline:e.headlines?.headline,variants:[]},id:e.id,images:(n=e.featuredImages)?{landscape16x9:l(n?.landscape16x9,o.FY.Landscape_16_9),landscape3x2:l(n?.landscape3x2,o.FY.Landscape_3_2),portrait2x3:l(n?.portrait2x3,o.FY.Portrait_2_3),square1x1:l(n?.square1x1,o.FY.Square_1_1)}:null,overview:{about:e.about,label:e.label},publicId:e.id,relatedEntities:{entities:[]},relatedEntitiesConnection:{edges:[],pageInfo:{endCursor:"",hasNextPage:!1,hasPreviousPage:!1,startCursor:""}},relatedEntitiesParents:{assets:[]},relatedEntitiesSiblings:{nextRelatedEntities:[],previousRelatedEntities:[]},sourceCMS:{publicId:e.sourceCms?.cmsType,type:e.sourceCms?.cmsType},sources:[{displayName:"",name:""}],state:{public:(e=>{switch(e?.toLowerCase()){case"published":return o.EL.Published;case"deleted":return o.EL.Deleted;case"retracted":return o.EL.Retracted;case"scheduled":return o.EL.Scheduled;default:return o.EL.Unpublished}})(e.publicState)},subType:e.subType,tags:{primary:a(e.tags?.primaryTag),secondary:e.tags?.secondary?.map(e=>a(e)).filter(e=>!!e)},type:(e=>{switch(e?.toLowerCase()){case"bespoke":return o.h3.Bespoke;case"collection":return o.h3.Collection;case"featurearticle":return o.h3.FeatureArticle;case"gallery":return o.h3.Gallery;case"livearticle":return o.h3.LiveArticle;case"recipe":return o.h3.Recipe;case"url":return o.h3.Url;case"video":return o.h3.Video;default:return o.h3.Article}})(e.assetType),urls:{canonical:e.urls?.canonical&&{brand:r(e.urls?.canonical.brand),path:e.urls?.canonical?.path},external:{url:e.urls?.external},published:(i=e.urls?.published)?[i?.brisbanetimes,i?.smh,i?.theage,i?.watoday].map(e=>({brand:r(e?.brand),path:e?.path})):[]}}}}}]);