"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["9041"],{95831:function(e,t,i){i.d(t,{Z:()=>s});var n,o,r=i(2784);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;ta});var n,o=i(2784);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr,Author:()=>a,AuthorLink:()=>s,AuthorName:()=>d,BylineContainer:()=>l,DateItem:()=>c});var n=i(79644),o=i(78943);let r=o.ZP.div.withConfig({componentId:"sc-5cbbddda-0"})(["margin:16px -20px 24px;@media ","{border-bottom:1px solid ",";display:flex;justify-content:space-between;margin:32px 0 0;padding-bottom:32px;}"],n.Z.query.large,e=>e.theme.colorLightAccent),a=o.ZP.div.withConfig({componentId:"sc-5cbbddda-1"})(["align-items:center;border-bottom:1px solid ",";display:flex;gap:12px;padding:0 20px 24px;@media ","{border-bottom:none;padding:0;}"],e=>e.theme.colorLightAccent,n.Z.query.large),s=(0,o.ZP)(n.Z.LinkStandard).withConfig({componentId:"sc-5cbbddda-2"})(["color:",";font-size:15px;font-weight:bold;"],e=>e.theme.colorLink),l=o.ZP.div.withConfig({componentId:"sc-5cbbddda-3"})([""]),d=o.ZP.span.withConfig({componentId:"sc-5cbbddda-4"})(["font-size:15px;font-weight:bold;"]),c=o.ZP.p.withConfig({componentId:"sc-5cbbddda-5"})(["color:",";font-size:13px;line-height:16px;margin:0;"],e=>e.theme.colorDark)},46138:function(e,t,i){i.d(t,{L:()=>l});var n=i(52322),o=i(45027),r=i(84641),a=i(2784),s=i(45734);let l=(e,t)=>e?e.map((i,l)=>{let d=i?.type===r.tF.Author?i.author:void 0,c=i?.type===r.tF.Name?i:void 0;return(0,n.jsxs)(a.Fragment,{children:[l>0&&(l!==e.length-1?", ":" and "),d&&(0,n.jsx)(s.AuthorLink,{href:(0,o.yT)(d,t),children:d.name}),c&&(0,n.jsx)(s.AuthorName,{children:c.name})]},c?c.name:d.id)}):null},57200:function(e,t,i){i.d(t,{E:()=>n});let n=i(78943).ZP.img.withConfig({componentId:"sc-9a01536c-0"})(["background-color:",";border-radius:50%;"],e=>e.theme.colorAuthor)},16036:function(e,t,i){i.d(t,{Z:()=>p});var n,o,r,a=i(52322),s=i(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{imageRenditionUrlPrefix:r}=(0,c.Z)(),{name:s,profile:{avatar:l}={}}=t,p=o/e;if(!l)return!i&&(0,a.jsx)(d,{height:p,width:o});let f=t=>({aspectRatio:e,image:{animated:!1,caption:"",credit:"",mediaId:l,source:"",type:h.FY.Square_1_1},imageRenditionUrlPrefix:r,width:t}),g=(0,m.iu)(f(2*o)),v=(0,m.iu)(f(o));return(0,a.jsx)(u.E,{alt:s,"data-testid":"author-avatar-image",height:p,loading:n?"lazy":void 0,src:v,srcSet:`${v}, ${g} 2x`,width:o})}},29939:function(e,t,i){i.d(t,{$_:()=>n,$r:()=>d,By:()=>s,Ii:()=>a,Iq:()=>h,fp:()=>c,kO:()=>l,kw:()=>m,lt:()=>o});let n="LEAD_STORIES",o="STORIES";var r,a=((r={}).commercial="commercial",r.destinationGuide="destination-guide",r.holidayGuide="holiday-guide",r.investigation="investigation",r.magazine="magazine",r.series="series",r.travel="travel",r);let s="Good Weekend",l="1qq",d="/good-weekend",c="Sunday Life",m="1ni3",h="/sunday-life"},35273:function(e,t,i){i.d(t,{Z:()=>s});var n=i(52322),o=i(73302),r=i(78943);let a=r.ZP.h5.withConfig({componentId:"sc-fb1ca6cd-0"})(["background-color:",";color:",";display:inline-block;font-size:13px;font-weight:bold;line-height:16px;margin-right:-6px;padding:",";position:relative;",""],e=>e.theme.colorLabelUrgentHighlight,e=>e.$onDarkBackground?e.theme.colorLightLiveMarker:e.theme.colorLabelUrgent,e=>e.theme.labelPadding,e=>{let t;return e.$pulse&&(t=e.$onDarkBackground,(0,r.iv)(["@keyframes pulse{0%{opacity:1;transform:scale(1);}100%{opacity:0;transform:scale(3);}}padding-left:",";&::before{background-color:",";border-radius:50%;content:'';display:inline-block;height:6px;inset:",";position:absolute;width:6px;}&::after{animation:pulse 2s infinite;background-color:",";border-radius:50%;content:'';display:inline-block;height:6px;inset:",";position:absolute;width:6px;}"],e=>e.theme.labelPaddingLive,e=>t?e.theme.colorLightLiveMarker:e.theme.colorLabelUrgent,e=>e.theme.labelInsetLivePulse,e=>t?e.theme.colorLightLiveMarker:e.theme.colorLabelUrgent,e=>e.theme.labelInsetLivePulse))}),s=({onDarkBackground:e,shouldPulse:t})=>{let i={[o.Nc.HIDDEN]:!0};return(0,n.jsx)(a,{$onDarkBackground:e,$pulse:t,"data-testid":"live-marker",...i,children:"Live"})}},90152:function(e,t,i){i.d(t,{Z:()=>K});var n={};i.r(n),i.d(n,{Link:()=>I,Login:()=>N,LoginTooltip:()=>P,MaxTooltip:()=>L,Message:()=>E,RegisterSubscribe:()=>C,SaveIcon:()=>Z});var o={};i.r(o),i.d(o,{Link:()=>O,Login:()=>D,LoginTooltip:()=>_,MaxTooltip:()=>R,Message:()=>H,RegisterSubscribe:()=>z,SaveIcon:()=>j});var r=i(52322),a=i(17845),s=i(12043),l=i(56111),d=i(11402),c=i(27302),m=i(33460),h=i(21971),u=i(59558),p=i(84641),f=i(69414),g=i(2784),v=i(53896),x=i(44773),b=i(1797),w=i(83949),k=i(79916),y=i(34379),S=i(79644),A=i(78943);let Z=(0,A.ZP)(y.Z).withConfig({componentId:"sc-d1b14060-0"})(["fill:",";stroke:",";"],e=>e.$isSaved?e.$inverse?"#fff":e.theme.colorAction:"none",e=>e.$isSaved?e.$inverse?"#fff":e.theme.colorActionAlt:e.$inverse?"#fff":e.theme.colorDark),$=(0,A.iv)(["color:",";white-space:nowrap;&:focus,&:hover{text-decoration:underline;}"],e=>e.theme.colorLinkInlineHover),N=A.ZP.button.withConfig({componentId:"sc-d1b14060-1"})([""," white-space:nowrap;&&{","}"],S.Z.fauxLink,$),I=(0,A.ZP)(S.Z.LinkStandard).withConfig({componentId:"sc-d1b14060-2"})(["",""],$),L=A.ZP.div.withConfig({componentId:"sc-d1b14060-3"})(["@media ","{width:256px;}"],S.Z.query.medium),E=A.ZP.p.withConfig({componentId:"sc-d1b14060-4"})(["font-weight:bold;margin-bottom:8px;"]),C=(0,A.ZP)(S.Z.LinkStandard).withConfig({componentId:"sc-d1b14060-5"})(["",""],$),P=(0,A.ZP)(u.Z).withConfig({componentId:"sc-d1b14060-6"})(["",""],e=>e.$inverse&&(0,A.iv)(["color:",";"],e.theme.colorDark)),j=(0,A.ZP)(y.Z).withConfig({componentId:"sc-2d648302-0"})(["fill:",";stroke:",";"],e=>e.$isSaved?e.$inverse?"#fff":e.theme.colorAction:"none",e=>e.$isSaved?e.$inverse?"#fff":e.theme.colorActionAlt:e.$inverse?"#fff":e.theme.colorDark),T=(0,A.iv)(["color:",";white-space:nowrap;&:focus,&:hover{text-decoration:underline;}"],e=>e.theme.colorBrand600),D=A.ZP.button.withConfig({componentId:"sc-2d648302-1"})([""," white-space:nowrap;&&{","}"],S.Z.fauxLink,T),O=(0,A.ZP)(S.Z.LinkStandard).withConfig({componentId:"sc-2d648302-2"})(["",""],T),R=A.ZP.div.withConfig({componentId:"sc-2d648302-3"})(["@media ","{width:256px;}"],S.Z.query.medium),H=A.ZP.p.withConfig({componentId:"sc-2d648302-4"})(["font-weight:bold;margin-bottom:8px;"]),z=(0,A.ZP)(S.Z.LinkStandard).withConfig({componentId:"sc-2d648302-5"})(["",""],T),_=(0,A.ZP)(u.Z).withConfig({componentId:"sc-2d648302-6"})(["",""],e=>e.$inverse&&(0,A.iv)(["color:",";"],e.theme.colorDark));var M=i(23539);let U={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"IsAssetSavedQuery"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"newsroom"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Newsroom"}}}},{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"shortId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"memberSavedAssetIds"},arguments:[{kind:"Argument",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:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"isSaved"},arguments:[{kind:"Argument",name:{kind:"Name",value:"shortId"},value:{kind:"Variable",name:{kind:"Name",value:"shortId"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:160,source:{body:"query IsAssetSavedQuery($newsroom:Newsroom!,$shortId:String!){memberSavedAssetIds(newsroom:$newsroom){error{message type{class}}isSaved(shortId:$shortId)total}}"}}};var F=i(10372);let q={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"IsAssetSavedQuery"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"newsroom"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Newsroom"}}}}],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"memberSavedAssetIds"},arguments:[{kind:"Argument",name:{kind:"Name",value:"newsroom"},value:{kind:"Variable",name:{kind:"Name",value:"newsroom"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assetIds"},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:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:127,source:{body:"query IsAssetSavedQuery($newsroom:Newsroom!){memberSavedAssetIds(newsroom:$newsroom){assetIds error{message type{class}}total}}"}}},B={brisbanetimes:"BRISBANE_TIMES",smh:"SMH",theage:"THE_AGE",watoday:"WA_TODAY"},V={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"SavedListAddAsset"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"addAsset"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SavedListAddAssetInput"}}}}],operation:"mutation",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"savedListAddAsset"},arguments:[{kind:"Argument",name:{kind:"Name",value:"addAsset"},value:{kind:"Variable",name:{kind:"Name",value:"addAsset"}}}],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:121,source:{body:"mutation SavedListAddAsset($addAsset:SavedListAddAssetInput!){savedListAddAsset(addAsset:$addAsset){error{message type}}}"}}},W={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"SavedListRemoveAsset"},directives:[],variableDefinitions:[{kind:"VariableDefinition",directives:[],variable:{kind:"Variable",name:{kind:"Name",value:"removeAsset"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SavedListRemoveAssetInput"}}}}],operation:"mutation",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"savedListRemoveAsset"},arguments:[{kind:"Argument",name:{kind:"Name",value:"removeAsset"},value:{kind:"Variable",name:{kind:"Name",value:"removeAsset"}}}],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 SavedListRemoveAsset($removeAsset:SavedListRemoveAssetInput!){savedListRemoveAsset(removeAsset:$removeAsset){error{message type}}}"}}},Y=n,G=(e,t)=>{f.Y.error(`Failed to add saved asset ${e}`,a.log.EventType("savedList","addAsset"),a.log.Error(t))},Q=(e,t)=>{f.Y.error(`Failed to remove saved asset ${e}`,a.log.EventType("savedList","removeAsset"),a.log.Error(t))},K=({asset:e,className:t,multiple:i,showText:y=!0,inverse:S=!1,tooltipAlignment:A="left"})=>{let Z,$,N,I=(0,g.useRef)(null),{IDENTIFICATION:{REGISTRATION_URL:L},brand:E}=(0,l.Z)(),C=(0,v.TH)(),P=(0,w.aF)(),j=(0,c.Z)(),T=(0,s.Z)(),{appAccess:D}=(0,x.P)(),{publicId:O,type:R}=e,{data:H,error:z,loading:_,refetch:K}=(Z=i||!P,(0,M.a)(U,{context:{clientName:"api-front"},skip:Z,ssr:!1,variables:{newsroom:"METRO",shortId:O}})),{data:X,error:J,loading:ee,refetch:et}=($=!i||!P,(0,M.a)(q,{context:{clientName:"api-front"},skip:$,ssr:!1,variables:{newsroom:"METRO"}})),{memberSavedAssetIds:{assetIds:ei,error:en,isSaved:eo,total:er}={assetIds:void 0,error:void 0,isSaved:!1,total:0}}=H||X||{},ea=i?J:z,es=i?ee:_,el=i?et:K,ed=ei?ei.includes(O):eo,[ec,em]=(0,g.useState)(""),[eh,eu]=(0,g.useState)(!1),[ep,ef]=(0,g.useState)(!1),{addAsset:eg,removeAsset:ev}=((e,t,i)=>{let n={context:{clientName:"api-front"},refetchQueries:[{context:{clientName:"api-front"},query:i?q:U,variables:{newsroom:"METRO",shortId:e}}]},[o]=(0,F.D)(V,{...n,variables:{addAsset:{assetID:e,brand:B[t],newsroom:"METRO"}}}),[r]=(0,F.D)(W,{...n,variables:{removeAsset:{assetIDs:[e],newsroom:"METRO"}}});return{addAsset:o,removeAsset:r}})(O,E.shortSiteName,i),ex=`${ec}${C.pathname}`,eb=L.replace("",encodeURIComponent(ex)),ew=(0,d.ZP)();Y=(0,k.Un)(C.pathname)?o:n,(0,m.HH)(en)&&T(el,!P),(0,g.useEffect)(()=>{em(window.location.origin)},[]),(0,g.useEffect)(()=>{!es&&(ea||en&&!(0,m.HH)(en))&&f.Y.error(`Unable to get saved status for ${O}`,a.log.EventType("savedList","isSaved"),a.log.Error(ea||en))},[O,ea,es,en]);let ek=(t=!0)=>{if(!P)return void eu(!0);ed?ev().then(e=>{let i=e.data?.savedListRemoveAsset?.error;if(t&&(0,m.HH)(i))return void T(()=>{ek(!1)});i&&Q(O,i)}).catch(e=>{Q(O,e)}):er<500?eg().then(i=>{let n=i.data?.savedListAddAsset?.error;if(t&&(0,m.HH)(n))return void T(()=>{ek(!1)});if(n)G(O,n);else{let{author:t,...i}=ew.mappers.assetInfo(e);ew.pushAnalyticsEvent({event:ew.EVENTS.SAVE_EVENT,...i})}}).catch(e=>{G(O,e)}):ef(!0)},ey=()=>{eu(!1)},eS=()=>{P||eu(!0)};return D?null:(0,r.jsxs)(h.W2,{className:t,onMouseEnter:eS,onMouseLeave:ey,ref:I,children:[(0,r.jsxs)(h.zx,{$inverse:S,$showText:y,"aria-checked":ed,"aria-label":ed?"Remove saved article":"Save article to read later",onBlur:ey,onClick:()=>{ek()},onFocus:eS,role:"switch",type:"button",children:[(0,r.jsx)(Y.SaveIcon,{$inverse:S,$isSaved:ed}),(0,r.jsx)(h.oD,{$showText:y,children:ed?"Saved":"Save"})]}),!j&&!P&&((e,t,i,n,o,a,s,l)=>{let d=e===p.h3.Recipe?"recipes":"articles";return(0,r.jsxs)(Y.LoginTooltip,{$inverse:l,alignment:i,onClose:a,showing:t,children:[(0,r.jsx)(Y.Login,{onClick:s,type:"button",children:"Log in"}),", ",(0,r.jsx)(Y.RegisterSubscribe,{href:n,children:"register"})," or"," ",(0,r.jsx)(Y.RegisterSubscribe,{href:o,children:"subscribe"})," to save ",d," for later."]})})(R,eh,A,eb,E.subscriptionUrl,ey,()=>{(0,b.lF)(b.CV.LOGIN)},S),(N=()=>{ef(!1)},(0,r.jsxs)(Y.MaxTooltip,{alignment:A,as:u.Z,onClose:N,showing:ep,children:[(0,r.jsx)(Y.Message,{children:"You have reached your maximum number of saved items."}),(0,r.jsxs)("p",{children:["Remove items from your ",(0,r.jsx)(Y.Link,{href:"/goodfood/saved",children:"saved list"})," to add more."]})]}))]})}},43808:function(e,t,i){i.d(t,{Z:()=>a});var n=i(52322),o=i(76597),r=i(72204);let a=({asset:{urls:e},brand:{shortSiteName:t},children:i,linkAttributes:a={},noTab:s=!1})=>{let l=(0,r._W)(e,t);return l?(0,n.jsx)(o.Z,{url:l,...a,...s?{tabIndex:-1}:{},children:i}):(0,n.jsx)(n.Fragment,{children:i})}},41549:function(e,t,i){i.d(t,{B:()=>s});var n=i(79644),o=i(78943);let r=e=>e?.width||0,a=(e,t,i)=>{let n=r(i),o=r(t);return n===o?"":` @media ${e} { width: ${o}px; } `},s=o.ZP.figure.withConfig({componentId:"sc-8825a2fb-0"})(["align-self:flex-start;flex-grow:0;flex-shrink:0;position:relative;width:","px;"," "," "," @media ","{width:fit-content;}"],e=>r(e.imageSizes.small),e=>a(n.Z.query.medium,e.imageSizes.medium,e.imageSizes.small),e=>a(n.Z.query.large,e.imageSizes.large,e.imageSizes.medium),e=>a(n.Z.query.extraLarge,e.imageSizes.extraLarge,e.imageSizes.large),n.Z.query.printOnly)},35849:function(e,t,i){i.d(t,{Z:()=>D});var n,o,r=i(52322),a=i(56111),s=i(32958),l=i(43808),d=i(73302),c=i(95831),m=i(2784);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;te.theme.colorDark),Z=w.ZP.span.withConfig({componentId:"sc-6813454d-4"})(["font-size:13px;font-weight:bold;letter-spacing:1px;line-height:15px;text-transform:uppercase;"]),$=w.ZP.figcaption.withConfig({componentId:"sc-6813454d-5"})(["align-items:flex-end;background-color:#fff;bottom:0;color:",";display:flex;left:0;line-height:1;max-width:100%;min-height:24px;pointer-events:none;position:absolute;white-space:nowrap;"],e=>e.theme.colorDark),N=w.ZP.div.withConfig({componentId:"sc-6813454d-6"})(["margin-right:2px;padding-bottom:2px;svg{padding-right:2px;}"]),I=w.ZP.span.withConfig({componentId:"sc-6813454d-7"})([""," font-size:13px;font-weight:bold;line-height:16px;padding:8px 8px 0 0;@media ","{display:inline;}"],({$hideOnSmall:e})=>e&&"display: none;",b.Z.query.medium);b.Z.query.medium,b.Z.query.medium;let L=({extensions:e})=>{let{duration:t}=e;if(!t)return null;let i=(e=>{let t=Math.floor(e/6e4),i=Math.floor(e%6e4/1e3);return`${t}:${i<10?"0":""}${i}`})(t);return(0,r.jsxs)(k,{"aria-label":`Video - duration ${i}`,children:[(0,r.jsx)(y,{as:u}),(0,r.jsx)(S,{children:i})]})},E=({extensions:e})=>{let{numberOfImages:t}=e;return t?(0,r.jsxs)(k,{"aria-label":`Photo gallery - ${t} images`,children:[(0,r.jsx)(y,{as:c.Z}),(0,r.jsxs)(S,{children:[t," images"]})]}):null},C=({extensions:e})=>{let{difficulty:t}=e;return t&&"EASY"===t?(0,r.jsx)(A,{children:(0,r.jsx)(Z,{children:t})}):null},P=({asset:e,isCriticsPick:t})=>{let{extensions:i,id:n}=e,{ratings:o}=i,{outOf:a,score:s}=o?.[0]||{},l=a&&s;return l||t?(0,r.jsxs)($,{children:[l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N,{as:p.Z,asset:e,keyPrefix:n}),(0,r.jsxs)(I,{$hideOnSmall:l&&(0,p.q)(s)>=1&&t,children:[s,"/",a]})]}),t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N,{as:f.Z}),(0,r.jsx)(I,{$hideOnSmall:l,children:"Critics' Pick"})]})]}):null},j=({asset:e})=>{let{extensions:t,subType:i,tags:n,type:o}=e,a=(0,v.CO)(n,x.B6);if(!t)return null;switch(o){case g.h3.Gallery:return(0,r.jsx)(E,{extensions:t});case g.h3.Recipe:return(0,r.jsx)(C,{extensions:t});case g.h3.Video:return(0,r.jsx)(L,{extensions:t});default:if("review"===i)return(0,r.jsx)(P,{asset:e,isCriticsPick:a});return null}};var T=i(41549);let D=({asset:e,brand:t,displayOptions:i,className:n,linkAttributes:o})=>{let{PAGEBUILDER:{ENABLED:c}}=(0,a.Z)(),{headlines:{headline:m},images:h}=e,{imageLazyLoad:u=!0,imageSizes:p}=i;p.medium=p.medium||p.small,p.large=p.large||p.medium,p.extraLarge=p.extraLarge||p.large;let f={...c?{[d.Nc.TYPE]:d.D8.IMAGE}:{}};return(0,r.jsx)(T.B,{className:n,imageSizes:p,...f,children:(0,r.jsxs)(l.Z,{asset:e,brand:t,linkAttributes:o,noTab:!0,children:[(0,r.jsx)(s.Z,{caption:m,imageData:h,imageSizes:p,lazyLoad:u}),(0,r.jsx)(j,{asset:e})]})})}},38664:function(e,t,i){i.d(t,{Or:()=>h,ZD:()=>r,ck:()=>a,ee:()=>u});var n=i(79644),o=i(78943);let r=o.ZP.ul.withConfig({componentId:"sc-f3789a87-0"})(["display:",";font-size:13px;margin-bottom:12px;"],e=>e.$inline?"inline":"block"),a=o.ZP.li.withConfig({componentId:"sc-f3789a87-1"})(["display:inline-block;margin-left:12px;&:first-child{margin-left:0;}"]),s=(0,o.iv)(["background-color:",";border-bottom:none;color:",";"],e=>e.theme.colorLabelUrgentHighlight,e=>e.theme.colorLabelUrgent),l=(0,o.iv)([""," background-color:transparent;padding:0 0 0 8px;"],n.Z.collectionMotif),d=(0,o.iv)(["background-color:transparent;padding:0 0 0 14px;position:relative;&::before{background-color:transparent;border-color:",";border-style:solid;border-width:0 2px 0 7px;content:'';height:12px;left:0;position:absolute;top:1px;width:1px;}"],e=>e.theme.colorExplainer),c=(0,o.iv)(["border-bottom:",";display:inline-block;height:",";margin-right:8px;"],e=>e.theme.labelBorderInline,e=>e.theme.labelHeightInline),m=(0,o.iv)(["background-color:transparent;border-bottom:none;color:",";padding:0;"],e=>e.theme.colorLabelSponsored),h=(0,o.ZP)(a).withConfig({componentId:"sc-f3789a87-2"})(["background-color:",";color:",";font-size:13px;font-weight:bold;line-height:16px;padding:",";"," "," "," "," ",""],e=>e.theme.colorLabelHighLight,e=>e.theme.colorLabel,e=>e.theme.labelPadding,e=>e.$inline&&c,e=>e.$breaking&&s,e=>e.$collection&&l,e=>e.$explainer&&d,e=>e.$sponsored&&m),u=(0,o.ZP)(n.Z.LinkStandard).withConfig({componentId:"sc-f3789a87-3"})(["color:",";"],e=>e.theme.colorLabelTag)},1333:function(e,t,i){i.d(t,{Z:()=>w,i:()=>v});var n=i(52322),o=i(56111),r=i(72761),a=i(35273),s=i(84641),l=i(53896),d=i(1600),c=i(79916),m=i(5995),h=i(73302),u=i(38664);let p={[h.Nc.TYPE]:h.D8.CATEGORY},f={[h.Nc.TYPE]:h.D8.TAG},g=["Good Food Guide","Recommended","Review"],v=(e,t=!1,i=!1)=>{let{ads:n,overview:o,subType:r,type:a}=e,{label:l}=o||{},d=a===s.h3.Collection;return!t&&(n?.sponsor&&!d||d&&"commercial"===r)?"Sponsored":i?"":"review"!==r||g.includes(l)?l:"Review"},x=(e,t,{shortSiteName:i})=>(0,n.jsx)(u.ck,{...f,children:(0,n.jsx)(u.ee,{href:(0,r.g)(e,t,i),children:t.displayName})},"tag"),b=(e,t)=>!!(e&&e.toLowerCase()===t),w=({asset:e,brand:t,displayOptions:i})=>{let{PAGEBUILDER:{ENABLED:f},brand:{timeZone:g}}=(0,o.Z)(),w=(0,c.Un)((0,l.TH)().pathname),{excludeTag:k,hideSponsored:y,showCategory:S,showInlineLabel:A,showLabel:Z,showPrimaryTag:$,showSecondaryTag:N,showSponsoredOnly:I}=i;if(!S&&!Z&&!$&&!N)return null;let{category:L,tags:E,type:C}=e,{primary:P,secondary:j}=E||{},T=(0,d.fN)(e,g),D={...f?{[h.Nc.TYPE]:h.D8.LABEL}:{}},O=v(e,y,I),R=C===s.h3.Collection,H={$breaking:b(O,"breaking"),$collection:R,$explainer:b(O,"explainer"),$inline:A,$sponsored:b(O,"sponsored")},z=O&&Z&&(0,n.jsx)(u.Or,{...H,...D,children:O},"label"),_=S&&L?.urls&&((e,t,{shortSiteName:i})=>(0,n.jsx)(u.ck,{...p,children:(0,n.jsx)(u.ee,{href:(0,r.$)(e,t,i),children:e.name})},"category"))(L,w,t),M=j?.find(e=>e.urls);return($&&P&&P.urls&&k!==P.displayName?_=x(w,{...P,displayName:(0,m.VQ)(P.displayName)},t):N&&M&&k!==M.displayName&&(_=x(w,{...M,displayName:(0,m.VQ)(M.displayName)},t)),z||_||T)?(0,n.jsxs)(u.ZD,{$inline:A,children:[T&&(0,n.jsx)(u.ck,{children:(0,n.jsx)(a.Z,{shouldPulse:!A})}),z,_]}):null}},46423:function(e,t,i){i.d(t,{$o:()=>c,OR:()=>m,ZV:()=>a,ck:()=>l,hs:()=>s,qH:()=>d});var n=i(45734),o=i(57200),r=i(78943);let a=r.ZP.ul.withConfig({componentId:"sc-f8b207cc-0"})(["color:",";font-size:13px;line-height:16px;margin-top:12px;"],e=>e.theme.colorMid),s=r.ZP.li.withConfig({componentId:"sc-f8b207cc-1"})(["float:right;position:relative;top:-8px;button{padding:8px;width:40px;}svg{margin:0;}"]),l=r.ZP.li.withConfig({componentId:"sc-f8b207cc-2"})(["border-left:1px solid ",";display:inline;margin-left:8px;padding-left:8px;"," + &,&:first-child{border-left:0;margin-left:0;padding-left:0;}"],e=>e.theme.colorLightAccent,s),d=r.ZP.li.withConfig({componentId:"sc-f8b207cc-3"})(["align-items:center;display:flex;gap:8px;margin-left:0;padding-left:0;&&{font-family:",";font-size:13px;line-height:16px;}","{background-color:",";margin-bottom:8px;}",",","{font-size:13px;font-weight:",";;text-decoration:none;}"],e=>e.theme.fontPrimary,o.E,({theme:e})=>e.colorOpinionAvatarBackground,n.AuthorLink,n.AuthorName,({theme:e})=>e.fontWeightAuthorByline),c=r.ZP.p.withConfig({componentId:"sc-f8b207cc-4"})(["&&{font-size:13px;line-height:16px;}"]),m=(0,r.ZP)(l).withConfig({componentId:"sc-f8b207cc-5"})(["font-weight:",";"],e=>e.theme.fontWeightTimeStamp)},57046:function(e,t,i){i.r(t),i.d(t,{About:()=>c,Headline:()=>l,StoryTile:()=>a,Summary:()=>s});var n=i(79644),o=i(78943);let r=e=>{switch(e){case"left":return(0,o.iv)(["align-items:flex-start;flex-flow:row nowrap;"]);case"right":return(0,o.iv)(["align-items:flex-start;flex-flow:row-reverse nowrap;"]);default:return(0,o.iv)(["align-items:stretch;flex-flow:column wrap;"])}},a=o.ZP.div.withConfig({componentId:"sc-679b6ed4-0"})(["display:flex;gap:20px 24px;justify-content:space-between;",""],e=>{let t;return t=e.imagePositions,(0,o.iv)([""," "," ",""],r(t[0]),t[1]&&` @media ${n.Z.query.medium} { ${r(t[1])} } `,t[2]&&` @media ${n.Z.query.large} { ${r(t[2])} } `)}),s=o.ZP.div.withConfig({componentId:"sc-679b6ed4-1"})(["color:",";flex-direction:column;flex-grow:1;flex-shrink:1;"],e=>e.theme.colorMid),l=o.ZP.h3.withConfig({componentId:"sc-679b6ed4-2"})(["&&{font-family:",";font-size:","px;font-weight:normal;line-height:20px;@media ","{font-size:","px;}@media ","{font-size:","px;line-height:24px;}a{color:",";transition:color .2s ease-out;&:focus,&:hover{color:",";text-decoration-color:",";text-decoration-line:underline;}&:visited{color:",";}}}"],e=>e.theme.fontTertiary,e=>e.headlineSizes[0],n.Z.query.medium,e=>e.headlineSizes[1],n.Z.query.large,e=>e.headlineSizes[2],e=>e.theme.colorBrand,e=>e.theme.colorStoryTileHeadlineHover,e=>e.theme.colorStoryTileHeadlineHoverUnderline,e=>e.theme.colorMidDark),d=(0,o.iv)(["-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:3;overflow:hidden;"]),c=o.ZP.p.withConfig({componentId:"sc-679b6ed4-3"})(["font-family:",";font-size:16px;line-height:1.5em;margin-top:8px;",""],e=>e.theme.fontSecondary,e=>e.$restrictAbout?d:"")},3488:function(e,t,i){i.d(t,{Z:()=>Z});var n=i(52322),o=i(29939),r=i(38936),a=i(56111),s=i(84641),l=i(31673),d=i(53896),c=i(79916),m=i(43808),h=i(73302),u=i(35849),p=i(1333),f=i(46138),g=i(16036),v=i(90152),x=i(29754),b=i(46423);let w={LESS_THAN_HALF_HOUR:"< 30 mins",HALF_HOUR_TO_ONE_HOUR:"30 mins - 1 hr",ONE_HOUR_TO_TWO_HOURS:"1-2 hrs",MORE_THAN_TWO_HOURS:"2 hrs +"},k={LESS_THAN_HALF_HOUR:"Less than 30 minutes",HALF_HOUR_TO_ONE_HOUR:"30 minutes to 1 hour",ONE_HOUR_TO_TWO_HOURS:"1 hour to 2 hours",MORE_THAN_TWO_HOURS:"More than 2 hours"},y=({asset:e,displayOptions:t})=>{let{PAGEBUILDER:{ENABLED:i}}=(0,a.Z)(),o=(0,c.Un)((0,d.TH)().pathname),{forceOpinionLayout:r,maxRelativeTime:l,showAuthor:m,showCookingTime:u=!0,showNumberOfStories:p,showOpinionLayout:y,showRelativeTime:S,showSavedButton:A,showSponsoredBelow:Z,showTimestamp:$}=t;if(!r&&!m&&!p&&!y&&!A&&!Z&&!$)return null;let{ads:N,byline:I,dates:{published:L},extensions:E,overview:C,type:P}=e,j=$&&(0,n.jsx)(b.OR,{children:(0,n.jsx)(x.Z,{maxRelativeTime:l,showRelativeTime:S,timestamp:L})},"timestamp"),{numberOfStories:T=0,times:{total:D=0}={}}=E||{},O={[h.Nc.HIDDEN]:!0},R=P===s.h3.Recipe&&0!==D&&u&&(0,n.jsx)(b.ck,{"aria-label":`Cooking time: ${k[D]}`,"data-testid":"cooking-time",...O,children:w[D]},"cooking-time"),H=p&&T&&(0,n.jsxs)(b.ck,{"data-testid":"number-of-stories",children:[T," ",1===T?"story":"stories"]},"number-of-stories"),z=A&&(0,n.jsx)(b.hs,{"data-testid":"save-button",children:(0,n.jsx)(v.Z,{asset:e,multiple:!0,showText:!1,tooltipAlignment:"right"})},"save-button"),_=Z&&!!N?.sponsor&&(0,n.jsx)(b.ck,{"data-testid":"sponsored",children:"Sponsored"},"sponsored"),{label:M}=C||{},U=r||y&&("Editorial"===M||"Opinion"===M),F=m&&I.length>0&&!U&&((e,t)=>{let i=e.map(e=>{switch(e.type){case s.tF.Author:return e.author.name;case s.tF.Name:return e.name;default:return}}).filter(e=>!!e);if(0===i.length)return null;let o={...t?{[h.Nc.TYPE]:h.D8.AUTHOR}:{},"data-testid":"story-authors"};return 1===i.length?(0,n.jsx)(b.ck,{...o,children:i[0]},"author"):(0,n.jsxs)(b.ck,{...o,children:[i.slice(0,i.length-1).join(", ")," and ",i[i.length-1]]},"author")})(I,i),q=U&&((e,t)=>{if(0===e.length)return null;let i=e.map(e=>e.type===s.tF.Author?e.author:void 0).filter(e=>!!e);if(0===i.length)return null;let o=1===i.length&&1===e.length;return(0,n.jsxs)(b.qH,{"data-testid":"opinion-author",children:[o&&(0,n.jsx)(g.Z,{author:i[0],hideDefaultAvatar:!0,width:40}),(0,n.jsxs)("div",{children:[(0,f.L)(e,t),o&&(0,n.jsx)(b.$o,{children:i[0]?.profile?.title})]})]},"opinion-author")})(I,o);return H||j||F||R||z||_||q?(0,n.jsxs)(b.ZV,{children:[z,R,H,j,F,q,_]}):null};var S=i(57046),A=i(95204);let Z=({asset:e,className:t="",displayOptions:i,linkAttributes:f,pbIgnore:g,position:v})=>{let{PAGEBUILDER:{ENABLED:x},brand:b}=(0,a.Z)(),w=(0,c.Un)((0,d.TH)().pathname)?A:S,{headlines:{headline:k},overview:Z,subType:$,type:N}=e,{about:I}=Z||{},{headlineSizes:L=h.Mo.M_M_L,hideImage:E=!1,imagePositions:C=["top"],restrictAbout:P,showAbout:j}=i,T=Array.isArray(C)?C:[C],D={...x&&!g?{[h.Nc.TYPE]:h.D8.STORY}:{},[h.AY.NAME]:"story-tile"},O={...x?{[h.Nc.TYPE]:h.D8.HEADLINE}:{}},R={...x?{[h.Nc.TYPE]:h.D8.ABOUT}:{}},H=((e,t,i,n)=>{let r={showAuthor:!1,showTimestamp:t===o.Ii.magazine};return{...n,...e===s.h3.Collection&&r,...e===s.h3.Recipe&&{showTimestamp:!1},..."review"===t&&{showLabel:!0}}})(N,$,0,i),z=e.type===s.h3.Recipe&&P;return(0,n.jsx)(r.ZP,{children:(0,n.jsxs)(w.StoryTile,{className:t,"data-an-position":v,imagePositions:T,...D,children:[!E&&(0,n.jsx)(u.Z,{asset:e,brand:b,displayOptions:H,linkAttributes:f},"image"),(0,n.jsxs)(w.Summary,{children:[(0,n.jsx)(p.Z,{asset:e,brand:b,displayOptions:H},"labelTag"),(0,n.jsx)(w.Headline,{headlineSizes:L,...O,children:(0,n.jsx)(m.Z,{asset:e,brand:b,linkAttributes:f,children:k})},"headline"),!!I&&j&&(0,n.jsx)(w.About,{$restrictAbout:z,...R,dangerouslySetInnerHTML:{__html:l.ZP.sanitize(I,{RETURN_DOM_FRAGMENT:!0}).textContent}},"about"),(0,n.jsx)(y,{asset:e,displayOptions:H})]},"summary")]})})}},95204:function(e,t,i){i.r(t),i.d(t,{About:()=>c,Headline:()=>l,StoryTile:()=>a,Summary:()=>s});var n=i(79644),o=i(78943);let r=e=>{switch(e){case"left":return(0,o.iv)(["align-items:center;flex-flow:row nowrap;"]);case"right":return(0,o.iv)(["align-items:center;flex-flow:row-reverse nowrap;"]);default:return(0,o.iv)(["align-items:stretch;flex-flow:column wrap;"])}},a=o.ZP.div.withConfig({componentId:"sc-dfb68afa-0"})(["display:flex;gap:20px 24px;justify-content:space-between;",""],e=>{let t;return t=e.imagePositions,(0,o.iv)([""," "," ",""],r(t[0]),t[1]&&` @media ${n.Z.query.medium} { ${r(t[1])} } `,t[2]&&` @media ${n.Z.query.large} { ${r(t[2])} } `)}),s=o.ZP.div.attrs({className:"summary"}).withConfig({componentId:"sc-dfb68afa-1"})(["color:",";flex-direction:column;flex-grow:1;flex-shrink:1;"],e=>e.theme.colorMid),l=o.ZP.h3.withConfig({componentId:"sc-dfb68afa-2"})(["&&{font-family:",";font-size:","px;font-weight:normal;@media ","{font-size:","px;}@media ","{font-size:","px;}a{color:",";&:focus,&:hover{text-decoration:underline ",";text-underline-offset:",";}&:visited{color:",";}}}"],e=>e.theme.fontTertiary,e=>e.headlineSizes[0],n.Z.query.medium,e=>e.headlineSizes[1],n.Z.query.large,e=>e.headlineSizes[2],e=>e.theme.colorDark,e=>e.theme.headlineUnderlineWeight,e=>e.theme.headlineUnderlineOffset,e=>e.theme.colorMidDark),d=(0,o.iv)(["-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:3;overflow:hidden;"]),c=o.ZP.p.withConfig({componentId:"sc-dfb68afa-3"})(["font-size:16px;line-height:1.5em;margin-top:8px;",""],e=>e.$restrictAbout?d:"")},73568:function(e,t,i){i.d(t,{E:()=>o,S:()=>r});var n=i(78943);let o=n.ZP.span.withConfig({componentId:"sc-a243f860-0"})(["white-space:nowrap;"]),r=n.ZP.span.withConfig({componentId:"sc-a243f860-1"})(["&::before{content:' ';}"])},29754:function(e,t,i){i.d(t,{Z:()=>h});var n=i(52322),o=i(56111),r=i(13461),a=i(37917),s=i(73568),l=i(63589);let d="h:mma",c="yyyy-MM-dd'T'HH:mm:ssxxx",m=(e,t,i,o,s,m,h)=>{let u=(0,a.zW)(new Date(e),t);if(!i)return h?(0,n.jsx)("time",{"data-testid":"storytile-timestamp",dateTime:(0,a.WU)(u,c,{timeZone:t}),children:(0,a.WU)(u,d,{timeZone:t}).toLowerCase()}):(0,n.jsxs)("time",{"data-testid":"storytile-timestamp",dateTime:(0,a.WU)(u,c,{timeZone:t}),children:[(0,a.WU)(u,"MMMM d, yyyy",{timeZone:t}),o&&` — ${(0,a.WU)(u,d,{timeZone:t}).toLowerCase()}`]});let p=(0,a.zW)(new Date(s||Date.now()),t),f=(0,r.X)(p,u),g=(0,a.WU)(u,"d",{timeZone:t})===(0,a.WU)(p,"d",{timeZone:t});return f>m&&g?(0,n.jsxs)("time",{"data-testid":"storytile-timestamp",dateTime:(0,a.WU)(u,c,{timeZone:t}),children:["Today, ",(0,a.WU)(u,"h.mma",{timeZone:t})]}):(0,n.jsx)("time",{"data-testid":"storytile-timestamp",dateTime:(0,a.WU)(u,c,{timeZone:t}),children:(0,l.r)(u,p,f)})},h=({currentTimestamp:e,firstPublishedTimestamp:t,maxRelativeTime:i,showRelativeTime:r,showTime:d,timestamp:c})=>{let{brand:{timeZone:h}}=(0,o.Z)(),u=(0,l.R)(h,t,c),p=!!u&&!!t&&(0,a.WU)(new Date(t),"yyyy-MM-dd",{timeZone:h})===(0,a.WU)(new Date(c),"yyyy-MM-dd",{timeZone:h});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.E,{children:[u&&"Updated ",m(c,h,r,d,e,i),u&&","]}),u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.S,{"aria-hidden":"true","data-testid":"wbr-separator"}),(0,n.jsxs)(s.E,{children:["first published ",m(t,h,r,d,e,i,p)]})]})]})}},63589:function(e,t,i){i.d(t,{R:()=>m,r:()=>c});var n=i(27297),o=i(79810),r=i(8607),a=i(85874),s=i(4182);let l=e=>` day${e?"s":""}`,d=e=>` hour${e?"s":""}`,c=(e,t,i)=>{let n,c=(0,o.j)(t,e),m=(0,r.A)(t,e),h=(0,a.d)(t,e),u=(0,s.o)(t,e),p=" ago";if(i<=1)return"Just now";if(i<60)return`${i} minutes${p}`;if(i<=120)return`1${d(!1)}${p}`;if(m<24)return`${m}${d(!0)}${p}`;if(m<48)return`1${l(!1)}${p}`;if(c<30)return`${c}${l(!0)}${p}`;if(h<12){let e;return`${h}${e=h>1,` month${e?"s":""}`}${p}`}return`${u}${n=u>1,` year${n?"s":""}`}${p}`},m=(e,t,i)=>{if(!t)return!1;let o=new n.ZP(t,e);return new n.ZP(i,e).diff(o,"minutes")>=1}},21971:function(e,t,i){i.d(t,{W2:()=>r,oD:()=>s,zx:()=>a});var n=i(79644),o=i(78943);let r=o.ZP.div.withConfig({componentId:"sc-f9e3ccff-0"})(["position:relative;svg{height:24px;width:24px;}"]),a=o.ZP.button.withConfig({componentId:"sc-f9e3ccff-1"})(["background-color:",";border:0;border-radius:4px;color:",";cursor:pointer;outline:0;padding:8px;position:relative;text-align:center;width:",";&:hover,&:focus{background:",";}&:active{background:",";}"],e=>e.$inverse?"transparent":"#fff",e=>e.$inverse?"#fff":e.theme.colorDark,e=>e.$showText?"76px":"auto",e=>e.$inverse?e.theme.colorActionInverted:e.theme.colorArticleToolHover,e=>e.$inverse?e.theme.colorActionInverted:"#d4d4d4"),s=o.ZP.span.withConfig({componentId:"sc-f9e3ccff-2"})(["font-size:13px;line-height:16px;margin-left:",";",""],e=>e.$showText?"2px":"0",e=>!e.$showText&&n.Z.visuallyHidden)},28513:function(e,t,i){i.d(t,{u:()=>s});var n=i(79644),o=i(78943);let r={center:"left: 50%; transform: translateX(-50%);",left:"left: 0;",right:"right: 0;"},a={center:"left: calc(50% - 8px);",left:"left: 16px;",right:"right: 16px;"},s=o.ZP.div.withConfig({componentId:"sc-ba6ddcd9-0"})(["background:#fff;border:1px solid ",";border-radius:4px;box-shadow:1px 4px 15px rgb(0 0 0 / 25%);cursor:default;font-size:15px;opacity:",";padding:16px 20px 20px;position:absolute;text-align:left;transition:opacity 0.2s ease-out,visibility 0.2s ease-out;visibility:",";width:220px;z-index:",";"," ",":calc(100% + ","px);&::before{content:'';height:","px;left:0;position:absolute;width:100%;",":-","px;}&::after{background:#fff;border-bottom:1px solid ",";border-right:1px solid ",";box-shadow:4px 4px 4px rgb(0 0 0 / 5%);content:'';height:","px;position:absolute;transform:rotate(",");width:","px;"," ",":-","px;}"],e=>e.theme.colorLightAccent,e=>+!!e.$showing,e=>e.$showing?"visible":"hidden",n.Z.zIndex.overlay,e=>r[e.$alignment],e=>e.$below?"top":"bottom",8,16,e=>e.$below?"top":"bottom",16,e=>e.theme.colorLightAccent,e=>e.theme.colorLightAccent,16,e=>e.$below?"-135deg":"45deg",16,e=>a[e.$alignment],e=>e.$below?"top":"bottom",9)},59558:function(e,t,i){i.d(t,{Z:()=>s});var n=i(52322),o=i(89956),r=i(2784),a=i(28513);let s=({alignment:e="left",below:t=!1,children:i,className:s,containerRef:l,onClose:d,showing:c=!1,skipExternalClick:m=!1})=>{let h=(0,r.useRef)(null);return(0,o.Z)([l,h].filter(Boolean),()=>{d&&d()},m),(0,n.jsx)(a.u,{$alignment:e,$below:t,$showing:c,"aria-hidden":!c,className:s,ref:h,role:"tooltip",children:i})}},1600:function(e,t,i){i.d(t,{Cf:()=>c,Dy:()=>r,Zr:()=>l,fN:()=>s,we:()=>a});var n=i(27297),o=i(84641);let r=(e,t,i=!1)=>{let o=new n.ZP().tz(t).endOf("day"),r=new n.ZP(e,t),a=`${n.kr}.${n.ko}${n.I7}`;return!i||o.isSame(r,"day")?r.format(a):1===o.diff(r,"days")?`yesterday ${r.format(a)}`:r.format(`${a} 'on' ${n.Hz} ${n.x4}, ${n.oP}`)},a=(e,t)=>e&&e.find(({pinnedPurpose:e})=>e===t)?.posts||[],s=(e,t)=>{let i=e?.extensions?.dates?.lastPostPublished;if(e?.type!==o.h3.LiveArticle||!i)return!1;let r=new n.ZP().tz(t).subtract(1,"hours");return new n.ZP(i,t).isAfter(r)},l=(e,t,i,n)=>{let{canonical:o}=e||{};return o&&"production"===n?`https://www.${i}.com.au${o.path}?post=${t}&gb=1`:"undefined"!=typeof window?`${window.location.origin}${window.location.pathname}?post=${t}&gb=1`:""},d=e=>["CALLOUT","MARKUP","QUOTE","VISUAL_MARKUP"].includes(e.type),c=e=>e&&0!==e.length?e.filter(d).map(e=>(e.markup||"").replace(/<[^>]*>/g,"")).join(" "):""}}]);