(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,499746,e=>{"use strict";var t=e.i(902875),a=e.i(247865),l=e.i(546446),n=e.i(145651),s=e.i(249725),o=e.i(292980),i=e.i(663333);e.i(101346);var r=e.i(512134),d=e.i(64412),c=e.i(147732),u=e.i(381477),m=e.i(240058),f=e.i(316078),p=e.i(180193),h=e.i(368847),g=e.i(889951),x=e.i(726249),b=e.i(674885),w=e.i(617874),v=e.i(725287),y=e.i(325974),C=e.i(525936);let _=({isLoading:e,displayName:a,temperature:l,wxPhrase:n,iconCode:s})=>(0,t.jsxs)("div",{className:"default-hover-box-shadow box-border w-fit max-w-90 cursor-pointer rounded-2xl border border-[#0000001a] transition-[box-shadow,border] hover:border-transparent","aria-label":a?`${a} weather`:"Location weather",children:[(0,t.jsxs)("div",{className:"flex h-16 flex-col justify-center px-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-5 w-28",className:"flex items-center leading-[1.4] font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:a})}),(0,t.jsx)(f.WxIcon,{isLoading:e,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:s,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(p.Temperature,{value:l})})," ",(e||n)&&(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:n})]})]}),(0,t.jsxs)("div",{className:"hidden h-20 items-center px-3 pl-4 md:flex",children:[(0,t.jsxs)("div",{className:"mr-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-5 w-28",className:"flex items-center text-xl leading-normal font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:a})}),(e||n)&&(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:n})]}),(0,t.jsx)(f.WxIcon,{isLoading:e,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:s,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(p.Temperature,{value:l})})]})]}),N=()=>(0,t.jsx)(_,{isLoading:!0,iconCode:-1}),I=(0,a.memo)(({identifier:e})=>{let n=(0,v.useParams)(),o=n?.locale||"en-US",i=(0,l.useAtomValue)(b.userUnitPreferenceAtom),r=(0,w.unitsSystemByName)(i)?.code,d=(0,s.useRecordFeatureId)(),c=e.placeId?void 0:e.geocode,{location:f,isLoading:p}=function(e,t){let{location:a,isLoading:l}=(0,y.useResolveCanonical)(e,t);return{location:a,isLoading:l}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,x.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:c});(0,a.useEffect)(()=>{f?.placeId&&d({placeId:f.placeId,geocode:f.geocode},f.featureId??null)},[f,d]);let{data:h,isLoading:N}=(0,u.default)(f&&["currentObservations",f.geocode,r,o],([e,t,a,l])=>(0,g.getCurrentObservations)({geocode:t,units:a,language:l}),{revalidateOnFocus:!1,dedupingInterval:6e4}),I=f?.placeId??e.placeId,{path:j,isGeolocationLoading:A}=(0,C.default)(I||"",{targetGeocode:f?.geocode??e.geocode,featureId:e.featureId??f?.featureId,canonicalID:f?.canonicalID}),k=p||N||!f||A,E=h?.temperature,S=h?.wxPhraseLong,P=h?.iconCode??-1,W=e.name||f?.name||f?.city||f?.displayName,L=(0,t.jsx)(_,{isLoading:k,displayName:W,temperature:E,wxPhrase:S,iconCode:P});return j?(0,t.jsx)(m.default,{href:j,className:"no-underline md:block md:w-full",children:L}):L},(e,t)=>{let a,l;return a=e.identifier,l=t.identifier,a.geocode===l.geocode&&a.placeId===l.placeId&&a.featureId===l.featureId&&a.name===l.name});var j=e.i(523084),A=e.i(47524),k=e.i(632137);let E={left:j.ChevronLeft,right:A.ChevronRight},S=({buttonClassName:e,containerClassName:l,onClick:n,tabIndex:s,direction:o,...i})=>{let[r,d]=(0,a.useState)(!1),c=E[o];return(0,t.jsx)("div",{className:(0,k.cn)("absolute",l),children:(0,t.jsx)("button",{className:(0,k.cn)("group/scroll-button absolute flex h-11 w-11 transform-[translate(-50%,-50%)] cursor-pointer items-center justify-center rounded-full bg-black opacity-80 transition-[opacity,height,width] duration-75 ease-linear hover:h-12 hover:w-12 hover:opacity-100",r&&"!h-11 !w-11"),onClick:()=>{d(!0),setTimeout(()=>d(!1),75),n?.()},tabIndex:s,...i,children:(0,t.jsx)(c,{className:(0,k.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",r&&"!h-6 !w-6")})})})},P="relative -mt-2 -mb-4 overflow-hidden",W="scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",L=()=>(0,t.jsx)("div",{className:P,"data-testid":"forecast-module-placeholder","aria-hidden":"true",children:(0,t.jsx)("div",{className:W,children:(0,t.jsx)(N,{})})}),F=({locationIdentifiers:e,showScrollButtons:l})=>{let[n,s]=(0,a.useState)(!1),[o,i]=(0,a.useState)(!1),r=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(!1),m=(0,a.useCallback)(()=>{let e=r.current;if(!e||!l){s(!1),i(!1);return}let{scrollLeft:t,offsetWidth:a,scrollWidth:n}=e,o=Math.abs(t),d=o>0,c=o+a(0,c.debounce)(m,150),[m]);(0,a.useEffect)(()=>{let e=r.current;return e&&(u.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",f),()=>{null!==d.current&&cancelAnimationFrame(d.current),f.cancel(),window.removeEventListener("resize",f)}},[m,f]);let p=(0,a.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),h=(0,a.useCallback)(()=>{r.current?.scrollBy({left:-200,behavior:"smooth"})},[]),g=(0,a.useCallback)(()=>{r.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:P,children:[l&&(0,t.jsx)(S,{containerClassName:(0,k.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":n}),onClick:h,tabIndex:n?0:-1,"aria-hidden":!n,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:W,role:"list","data-testid":"forecast-module",onScroll:p,ref:r,children:e.map((e,a)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(I,{identifier:e})},e.placeId??e.geocode??a))}),l&&(0,t.jsx)(S,{containerClassName:(0,k.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":o}),onClick:g,tabIndex:o?0:-1,"aria-hidden":!o,"aria-label":"Scroll right",direction:"right"})]})},T=()=>{let{favoriteLocations:e,recentLocations:c}=(0,n.default)(),{resolveFeatureId:u}=(0,s.useLocationFeatureIds)(),{resolveDetails:m}=(0,o.useRecentLocationDetails)(),f=(0,l.useAtomValue)(i.deviceClassAtom),p=(0,r.useIsClient)(),{location:h,isLoading:g}=(0,d.useLocation)(),b=(0,a.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:a,resolveDetails:l=()=>void 0}){let n=[],s=new Set,o=e=>{let t=[];if(e.featureId?t.push(`f:${e.featureId}`):(e.placeId&&t.push(`p:${e.placeId}`),e.geocode&&t.push(`g:${(0,x.formatGeocode)(e.geocode)}`)),0===t.length)return!0;let a=t.some(e=>s.has(e));for(let e of t)s.add(e);return!a};for(let t of e){if(n.length>=5)break;if(!t.coordinate)continue;let e=(0,x.formatGeocode)(t.coordinate),s=t.placeID??void 0,i=(s?l(s)?.featureId:void 0)??a({placeId:s,geocode:e});o({featureId:i,placeId:s,geocode:e})&&n.push({geocode:e,placeId:s,name:t.name??void 0,featureId:i})}for(let e of t){if(n.length>=5)break;let t=l(e),s=t?.featureId??a({placeId:e});o({featureId:s,placeId:e})&&n.push({placeId:e,name:t?.name,featureId:s})}return n})({favoriteLocations:e,recentLocations:c,resolveFeatureId:u,resolveDetails:m}),[e,c,u,m]),w=(0,a.useMemo)(()=>h?.placeId||h?.featureId?[{placeId:h.placeId||void 0,featureId:h.featureId}]:[],[h?.placeId,h?.featureId]);if(!p)return(0,t.jsx)(L,{});let v=b.length>0?b:w;return v.length>0?(0,t.jsx)(F,{locationIdentifiers:v,showScrollButtons:"mobile"!==f&&"tablet"!==f}):g?(0,t.jsx)(L,{}):null};e.s(["ForecastModule",0,T,"default",0,T],499746)},748907,e=>{"use strict";var t=e.i(902875),a=e.i(247865),l=e.i(645968),n=e.i(742436),s=e.i(949920),o=e.i(553329),i=e.i(901351),r=e.i(317298),d=e.i(528600);async function c(e,t){let{data:a,error:l}=await (0,o.tryCatch)(e?i.upsxClient.segmentation.getUserMetrics():i.upsxClient.segmentation.getAnonymousEndpointMetrics(t));if(l)return null;let n={promotesNews:(0,r.hasNewsIntent)(a?.metrics)};return(0,r.writeNextSessionIntent)(n),n}let u="next-session-intent",m="data-home-news",f={layout:"default",variant:null,eligible:!1};function p(e){document.documentElement.setAttribute(m,e)}function h(){document.documentElement.removeAttribute(m)}function g(){let e=(0,a.useContext)(n.ExperimentContext),l=e?.isFetchComplete??!1,[s,o]=(0,a.useState)(!1),[i,d]=(0,a.useState)(!1),[c,m]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=window.__wxHomeNews??f;return p(e.layout),o(e.eligible),"pending"===e.layout?d(!0):e.forced||m(e.variant),h},[]);let g=(0,a.useCallback)(e=>{window.__wxHomeNews={...e,eligible:!0},p(e.layout);try{localStorage.setItem("wxu-home-news-layout",JSON.stringify(e))}catch{}d(!1),m(e.variant)},[]);return(0,a.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>{g({layout:"default",variant:null})},2e3);return()=>clearTimeout(e)},[i,g]),(0,a.useEffect)(()=>{var t,a,n;if(!i||!e||!l)return;let{key:s,value:o}=e.variant(u),d="control"===(a=t=s||o)||"v1"===a||"v2"===a?t:null;g({layout:d?(n=(0,r.readNextSessionIntent)()?.promotesNews??!1,"v2"===d||"v1"===d&&n?"first":"default"):"default",variant:d})},[i,e,l,g]),(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(x,{}),c&&(0,t.jsx)(b,{})]})}function x(){return!function(){let{user:e}=(0,d.useUser)(),t=e.isUserLoggedIn?"upsx/segmentation/metrics/user":e.anonId?"upsx/segmentation/metrics/endpoint":null,{data:a}=(0,s.default)(t,()=>c(e.isUserLoggedIn,e.anonId),{shouldRetryOnError:!1})}(),null}function b(){return(0,l.default)(u),null}e.s(["HomeNewsFirstResolver",0,g,"default",0,g],748907)},219246,e=>{"use strict";let t=(0,e.i(981030).atom)(0);e.s(["fixedTopAdHeightAtom",0,t])},495406,e=>{"use strict";var t=e.i(902875),a=e.i(247865),l=e.i(725287),n=e.i(16838),s=e.i(632137),o=e.i(380993),i=e.i(546446),r=e.i(5397),d=e.i(688070),c=e.i(647292),u=e.i(697380),m=e.i(219246);let f="min-h-[50px] my-2",p="min-h-[90px]",h="min-h-[250px]",g="min-h-[600px]",x={WX_Hidden:{type:"custom",containerClasses:"hidden"},WX_BottomLeader:{type:"standard",placeholderClass:p},WX_Bot300:{type:"standard",verticalAlign:"top",placeholderClass:h},WX_Bot300AdX1:{type:"standard",placeholderClass:h},WX_Bot300AdX2:{type:"standard",placeholderClass:h},WX_Bot300AdX3:{type:"standard",verticalAlign:"top",placeholderClass:h},WX_Bot300AdX4:{type:"standard",placeholderClass:h},WX_Bot300AdX5:{type:"standard",placeholderClass:h},WX_Bot300AdX6:{type:"standard",verticalAlign:"top",placeholderClass:h},WX_PromoDriver1:{type:"standard",placeholderClass:h},WX_FlexLeader:{type:"standard",placeholderClass:p},WX_MidLeader:{type:"standard",placeholderClass:p},WX_MidLeader2:{type:"standard",placeholderClass:p},WX_MidLeader3:{type:"standard",placeholderClass:p},WX_MidLeader4:{type:"standard",placeholderClass:p},WX_Top300Small:{type:"standard",placeholderClass:h},WX_Top300Variable:{type:"standard",verticalAlign:"top",placeholderClass:g,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},WX_Mid300:{type:"standard",placeholderClass:h},WX_Mid300Variable:{type:"standard",verticalAlign:"top",placeholderClass:g,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},MW_Position2:{type:"standard",placeholderClass:h},MW_Position3:{type:"standard",placeholderClass:h},MW_Position3_Hourly:{type:"standard",placeholderClass:h},MW_Position4:{type:"standard",placeholderClass:h},MW_Position5:{type:"standard",placeholderClass:h},WX_WindowShade:{type:"standard",placeholderClass:h,tabletPlaceholderClass:p,containerClasses:"pb-0 rounded-3xl",disableBorder:!0},WX_Leaderboard:{type:"standard",placeholderClass:p},MW_Position1:{type:"custom",placeholderClass:f,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",mobileAppContainerClasses:"bg-gray-100 block fixed w-full bottom-0 left-0 z-adOverlay",isBottomFixed:!0},MW_Position1_Samsung:{type:"custom",placeholderClass:f,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",isBottomFixed:!0},MW_Position1_Radar:{type:"custom",placeholderClass:f,containerClasses:"bg-gray-100 block fixed w-full top-0 left-[0px] z-adOverlay",isTopFixed:!0},MW_Position_ContentFeedAd1:{type:"nativeVideoPlaylist"},MW_Position_ContentFeedAd11:{type:"nativeVideoPlaylist"},WX_ContentFeed1:{type:"nativeVideoPlaylist"},WX_ContentFeedRadar:{type:"standardNative",persistElementOnEmpty:!0,containerClasses:"bg-gray-100 [&_[id$=ContentFeedRadar]]:w-full"}};var b=e.i(528600),w=e.i(849177);function v({eventName:e,enabled:t,filter:l}){let[n,s]=(0,a.useState)(!1),o=(0,a.useRef)(!1),i=(0,a.useRef)(l);return i.current=l,(0,a.useEffect)(()=>{if(!t){o.current=!1;return}if(o.current)return;let a=!0;return window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent(e,i.current?{filter:i.current}:void 0).then(()=>{a&&s(!0)}).catch(t=>{console.error(`Error waiting for ${e}:`,t)})}),o.current=!0,()=>{a=!1,o.current=!1}},[t,e]),{triggered:n}}var y=e.i(421956),C=e.i(456215),_=e.i(176540);let N={adSlots:!0,adFallbackPromo:!0,adScripts:!0,adVideo:!0,taboola:!0,adLayoutReservation:!0,adScaffolding:!0,promoMorningBrief:!0,contentRecirculation:!0,sdkConsent:!0,sdkPush:!0,sdkAnalytics:!0},I=[{name:"atmosphere",when:e=>(0,_.default)(e.article),disables:["adSlots","adFallbackPromo","adScripts","taboola","promoMorningBrief"]},{name:"snowcast",when:e=>(0,C.isSnowCastWebView)(e.webViewPlatform),disables:["adSlots","adFallbackPromo","adScripts","adVideo","taboola","adLayoutReservation","adScaffolding","promoMorningBrief","contentRecirculation","sdkConsent","sdkPush"]},{name:"premium",when:e=>!0===e.isUserPremium,disables:["adSlots","adScripts","adVideo","taboola"]},{name:"adsKillswitch",when:e=>!0===e.adsKillswitch,disables:["adSlots","adScripts","adVideo","taboola"]}],j=({globalPageProps:e,...a})=>{let{adSlots:l,adFallbackPromo:n}=function(e){let t={...N};for(let a of I)if(a.when(e))for(let e of a.disables)t[e]=!1;return t}({webViewPlatform:(0,i.useAtomValue)(c.webViewPlatformAtom),article:e?.article??null,isUserPremium:null,adsKillswitch:null});return l||n?(0,t.jsx)(A,{...a}):null},A=({adId:e,adSlot:c,stickyReplaceSlot:f,title:p="Advertisement",className:h,sticky:g=!1,disableRegisteredUsers:C=!1,placeholderContent:_,fallbackPromoDriver:N})=>{let I=e||("object"==typeof c?c.slotTarget:void 0)||"",j="object"==typeof f?f?.slotTarget:void 0,A=I?x[I]??x[I.replace(/_GLS$/,"")]:void 0,E=(0,l.useParams)()?.locale,S=(0,i.useAtomValue)(r.showAdminHeaderAtom),P=(0,i.useAtomValue)(d.isWebViewOnlyAtom)&&A?.mobileAppContainerClasses?A.mobileAppContainerClasses:A?.containerClasses,W=(0,i.useSetAtom)(u.fixedBottomAdHeightAtom),L=(0,i.useSetAtom)(m.fixedTopAdHeightAtom),{shouldRender:F,placeholderClass:T}=function({adId:e,adSlotConfig:t,disableRegisteredUsers:l=!1}){let{user:n}=(0,b.useUser)(),s=(0,i.useAtomValue)(w.adsDisabledAtom),o=n.isUserPremium||s||!e||!!l&&n.isUserLoggedIn;!function({adId:e,adSlotType:t,enabled:l}){let n=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(l&&("standardNative"===t||"nativeVideoPlaylist"===t)&&!n.current){try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("WX_ContentFeedRadar"===e)return{currContentFeedIndex:null,baseNativeAdPosition:"WX_ContentFeedRadar"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error(`Could not parse index from ContentFeed adId: ${e}`),null})(e);if(t){let{currContentFeedIndex:a,baseNativeAdPosition:l}=t,n=window.__HeliosConfig.slotsConfig[l];if(n){let t=null!==a?`${n.adUnitPath}/contentfeed${a}`:n.adUnitPath;window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:l})})})}else console.error(`No config found for ${e} at Helios.slotConfig.${l}`)}}catch(e){console.error("Error rendering native ad",e)}n.current=!0}},[e,t,l])}({adId:e,adSlotType:t?.type,enabled:!o});let{adSlotRenderEvent:r}=function({adId:e,enabled:t=!0}){let[l,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!t||!e)return;let a=t=>{t.slot.getSlotElementId()===e&&n(t)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotRenderEnded",a)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotRenderEnded",a)})}},[e,t]),{adSlotRenderEvent:l}}({adId:e,enabled:!o}),{isAdHidden:d}=function(e,t=!0){let[l,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!e||!t)return;let a=document.getElementById(e);if(!a)return;let l=()=>{n("none"===window.getComputedStyle(a).display)};l();let s=new MutationObserver(l);return s.observe(a,{attributes:!0,attributeFilter:["style","class"]}),()=>s.disconnect()},[e,t]),{isAdHidden:l}}(e,!o),{isSlotConfigDeleted:c}=function({adId:e,enabled:t}){let{triggered:a}=v({eventName:"SLOT_CONFIG_DELETED",enabled:t&&!!e,filter:t=>t.args[0].slotId===e});return{isSlotConfigDeleted:a}}({adId:e,enabled:!o}),{isAdsExcluded:u}=function({enabled:e}){let{triggered:t}=v({eventName:"ERROR_EXCLUSION",enabled:e});return{isAdsExcluded:t}}({enabled:!o}),m=!!t?.persistElementOnEmpty,f=!o&&(m||!d)&&(m||!r?.isEmpty)&&!c&&!u,{placeholderClass:p}=function({adId:e,adSlotConfig:t,enabled:a}){let{isIMAdDetected:l}=function({adId:e,enabled:t}){let{triggered:a}=v({eventName:"IM_AD_DETECTED_FOR_MW",enabled:t&&e.includes("MW_Position1")});return{isIMAdDetected:a}}({adId:e,enabled:a}),{isTabletDetected:n}=function({enabled:e}){let{triggered:t}=v({eventName:"TABLET_DETECTED",enabled:e});return{isTabletDetected:t}}({adId:e,enabled:a}),s=n?t?.tabletPlaceholderClass??t?.placeholderClass:t?.placeholderClass;return{placeholderClass:l?"h-0 min-h-0 p-0":s}}({adId:e,adSlotConfig:t,enabled:!o});return{shouldRender:f,placeholderClass:p}}({adId:I,adSlotConfig:A,disableRegisteredUsers:C}),M=(0,a.useRef)(null),{isReplaceSlotVisible:B}=function({adId:e,stickyReplaceId:t,enabled:l=!0}){let[n,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let a=t&&t!==e?t:null;if(!l||!a)return;let n=e=>{e.slot.getSlotElementId()===a&&s(!0)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotVisibilityChanged",n)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotVisibilityChanged",n)})}},[e,t,l]),{isReplaceSlotVisible:n}}({adId:I,stickyReplaceId:j,enabled:F});if((0,a.useEffect)(()=>{let e=M.current,t=A?.isTopFixed||A?.isBottomFixed;if(!(F&&e&&t))return;let a=A?.isTopFixed?L:W,l=()=>a(e.offsetHeight),n=new ResizeObserver(l);return n.observe(e),l(),()=>{n.disconnect(),a(0)}},[F,I,W,L,A?.isBottomFixed,A?.isTopFixed]),!F){let[e]=N||[];return e&&"en-US"===E?(0,t.jsx)(y.PromoDriverBlock,{...e}):null}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.DebugCollector,{componentName:"AdBlock",data:{props:{adId:I,adSlot:c,adSlotConfig:A,sticky:g},state:{shouldRender:F},performance:{renderTime:Date.now()}},enabled:S}),(0,t.jsx)(o.Card,{ref:M,variant:A?.type==="standard"?"bottom":"ghost",border:A?.disableBorder?"none":void 0,padding:A?.disableBorder?"none":void 0,style:B?{display:"none"}:void 0,className:(0,s.cn)("region-contentTop","adContainer disableHeliosStyles",!g&&"overflow-hidden",A?.type==="standard"&&"pb-6",A?.type==="nativeVideoPlaylist"&&"[&_iframe]:mt-[10px]",g&&A?.stickyHeight,P,h),"aria-label":"Advertisement",children:(0,t.jsxs)(o.CardContent,{className:(0,s.cn)(A?.type==="standard"&&"bg-gray-100 pb-6",g&&A?.stickyClasses),children:[A?.type==="standard"&&p&&(0,t.jsx)("div",{className:"text-xxs w-full px-4 py-1 text-center leading-4 text-gray-400",children:p}),(0,t.jsx)("div",{"data-testid":`${I}-container`,className:(0,s.cn)("flex w-full justify-center",A?.verticalAlign==="top"?"items-start":"items-center",T),children:_?(0,t.jsx)("div",{id:I,"data-testid":I,children:_}):(0,t.jsx)(k,{adId:I})})]})})]})},k=a.default.memo(({adId:e})=>(0,t.jsx)("div",{id:e,"data-testid":e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}),()=>!0);k.displayName="StableAdDiv",e.s(["AdBlock",0,j,"default",0,j],495406)},421956,e=>{"use strict";var t=e.i(902875),a=e.i(749621),l=e.i(240058),n=e.i(155879);let s=({title:e,image:s,subtitle:o,bodyText:i,ctaButton:r})=>{let d=r?.url&&/^https?:\/\//i.test(r.url),c=(0,n.isImageObject)(s)?s:null;return e||c&&c?.url||o||i||r?(0,t.jsxs)("div",{"data-promo-driver":!0,className:"overflow-hidden rounded-lg bg-white",children:[e&&(0,t.jsx)("div",{className:"pb-4",children:(0,t.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:e})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[c?.url?(0,t.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white",children:(0,t.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,t.jsx)("a",{href:r&&r.url||"#",children:(0,t.jsx)(a.default,{src:c.url,alt:e||"Promo image",fill:!0,className:"object-cover"})})})}):null,(o||i||r)&&(0,t.jsxs)("div",{className:"pt-4",children:[o&&(0,t.jsx)("a",{href:r&&r.url||"#",children:(0,t.jsx)("h4",{className:"mb-2 text-base font-bold",children:o})}),i&&(0,t.jsx)("a",{href:r&&r.url||"#",children:(0,t.jsx)("p",{className:"mb-4 text-base",children:i})}),r&&(0,t.jsx)("div",{className:"flex justify-end",children:d?(0,t.jsx)("a",{href:r.url||"#",target:r.openInNewTab?"_blank":"_self",rel:r.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:r.text}):(0,t.jsx)(l.default,{href:r.url||"#",target:r.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:r.text})})]})]})]}):null};e.s(["PromoDriverBlock",0,s,"default",0,s])},176540,e=>{"use strict";e.s(["default",0,function(e){return!!e?.category&&"atmosphere"===function(e){if(!e?.value)return;let{value:t}=e;if("string"==typeof t)return t.split("/")[0];let a=t.pathSegments?.[0]?.segment;return"string"==typeof a&&a.length>0?a:"string"==typeof t.id&&t.id.length>0?t.id.split("/")[0]:void 0}(e.category)}],176540)},155879,e=>{"use strict";e.s(["isImageObject",0,function(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&null!==e.seo&&"object"==typeof e.seo&&"altText"in e.seo)}])}]);