(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),n=e.i(546446),l=e.i(145651),o=e.i(249725),r=e.i(292980),s=e.i(663333);e.i(101346);var i=e.i(512134),d=e.i(64412),c=e.i(147732),u=e.i(381477),m=e.i(240058),p=e.i(316078),f=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:n,wxPhrase:l,iconCode:o})=>(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)(p.WxIcon,{isLoading:e,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:o,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)(f.Temperature,{value:n})})," ",(e||l)&&(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:l})]})]}),(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||l)&&(0,t.jsx)(h.default,{isLoading:e,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:l})]}),(0,t.jsx)(p.WxIcon,{isLoading:e,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:o,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)(f.Temperature,{value:n})})]})]}),I=()=>(0,t.jsx)(_,{isLoading:!0,iconCode:-1}),N=(0,a.memo)(({identifier:e})=>{let l=(0,v.useParams)(),r=l?.locale||"en-US",s=(0,n.useAtomValue)(b.userUnitPreferenceAtom),i=(0,w.unitsSystemByName)(s)?.code,d=(0,o.useRecordFeatureId)(),c=e.placeId?void 0:e.geocode,{location:p,isLoading:f}=function(e,t){let{location:a,isLoading:n}=(0,y.useResolveCanonical)(e,t);return{location:a,isLoading:n}}(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)(()=>{p?.placeId&&d({placeId:p.placeId,geocode:p.geocode},p.featureId??null)},[p,d]);let{data:h,isLoading:I}=(0,u.default)(p&&["currentObservations",p.geocode,i,r],([e,t,a,n])=>(0,g.getCurrentObservations)({geocode:t,units:a,language:n}),{revalidateOnFocus:!1,dedupingInterval:6e4}),N=p?.placeId??e.placeId,{path:j,isGeolocationLoading:A}=(0,C.default)(N||"",{targetGeocode:p?.geocode??e.geocode,featureId:e.featureId??p?.featureId,canonicalID:p?.canonicalID}),S=f||I||!p||A,k=h?.temperature,E=h?.wxPhraseLong,P=h?.iconCode??-1,L=e.name||p?.name||p?.city||p?.displayName,T=(0,t.jsx)(_,{isLoading:S,displayName:L,temperature:k,wxPhrase:E,iconCode:P});return j?(0,t.jsx)(m.default,{href:j,className:"no-underline md:block md:w-full",children:T}):T},(e,t)=>{let a,n;return a=e.identifier,n=t.identifier,a.geocode===n.geocode&&a.placeId===n.placeId&&a.featureId===n.featureId&&a.name===n.name});var j=e.i(523084),A=e.i(47524),S=e.i(632137);let k={left:j.ChevronLeft,right:A.ChevronRight},E=({buttonClassName:e,containerClassName:n,onClick:l,tabIndex:o,direction:r,...s})=>{let[i,d]=(0,a.useState)(!1),c=k[r];return(0,t.jsx)("div",{className:(0,S.cn)("absolute",n),children:(0,t.jsx)("button",{className:(0,S.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",i&&"!h-11 !w-11"),onClick:()=>{d(!0),setTimeout(()=>d(!1),75),l?.()},tabIndex:o,...s,children:(0,t.jsx)(c,{className:(0,S.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",i&&"!h-6 !w-6")})})})},P="relative -mt-2 -mb-4 overflow-hidden",L="scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",T=()=>(0,t.jsx)("div",{className:P,"data-testid":"forecast-module-placeholder","aria-hidden":"true",children:(0,t.jsx)("div",{className:L,children:(0,t.jsx)(I,{})})}),W=({locationIdentifiers:e,showScrollButtons:n})=>{let[l,o]=(0,a.useState)(!1),[r,s]=(0,a.useState)(!1),i=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(!1),m=(0,a.useCallback)(()=>{let e=i.current;if(!e||!n){o(!1),s(!1);return}let{scrollLeft:t,offsetWidth:a,scrollWidth:l}=e,r=Math.abs(t),d=r>0,c=r+a(0,c.debounce)(m,150),[m]);(0,a.useEffect)(()=>{let e=i.current;return e&&(u.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",p),()=>{null!==d.current&&cancelAnimationFrame(d.current),p.cancel(),window.removeEventListener("resize",p)}},[m,p]);let f=(0,a.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),h=(0,a.useCallback)(()=>{i.current?.scrollBy({left:-200,behavior:"smooth"})},[]),g=(0,a.useCallback)(()=>{i.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:P,children:[n&&(0,t.jsx)(E,{containerClassName:(0,S.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":l}),onClick:h,tabIndex:l?0:-1,"aria-hidden":!l,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:L,role:"list","data-testid":"forecast-module",onScroll:f,ref:i,children:e.map((e,a)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(N,{identifier:e})},e.placeId??e.geocode??a))}),n&&(0,t.jsx)(E,{containerClassName:(0,S.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":r}),onClick:g,tabIndex:r?0:-1,"aria-hidden":!r,"aria-label":"Scroll right",direction:"right"})]})},F=()=>{let{favoriteLocations:e,recentLocations:c}=(0,l.default)(),{resolveFeatureId:u}=(0,o.useLocationFeatureIds)(),{resolveDetails:m}=(0,r.useRecentLocationDetails)(),p=(0,n.useAtomValue)(s.deviceClassAtom),f=(0,i.useIsClient)(),{location:h,isLoading:g}=(0,d.useLocation)(),b=(0,a.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:a,resolveDetails:n=()=>void 0}){let l=[],o=new Set,r=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=>o.has(e));for(let e of t)o.add(e);return!a};for(let t of e){if(l.length>=5)break;if(!t.coordinate)continue;let e=(0,x.formatGeocode)(t.coordinate),o=t.placeID??void 0,s=(o?n(o)?.featureId:void 0)??a({placeId:o,geocode:e});r({featureId:s,placeId:o,geocode:e})&&l.push({geocode:e,placeId:o,name:t.name??void 0,featureId:s})}for(let e of t){if(l.length>=5)break;let t=n(e),o=t?.featureId??a({placeId:e});r({featureId:o,placeId:e})&&l.push({placeId:e,name:t?.name,featureId:o})}return l})({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(!f)return(0,t.jsx)(T,{});let v=b.length>0?b:w;return v.length>0?(0,t.jsx)(W,{locationIdentifiers:v,showScrollButtons:"mobile"!==p&&"tablet"!==p}):g?(0,t.jsx)(T,{}):null};e.s(["ForecastModule",0,F,"default",0,F],499746)},45089,e=>{"use strict";var t=e.i(902875),a=e.i(247865),n=e.i(645968),l=e.i(742436),o=e.i(949920),r=e.i(553329),s=e.i(901351),i=e.i(317298),d=e.i(528600);async function c(e,t){let{data:a,error:n}=await (0,r.tryCatch)(e?s.upsxClient.segmentation.getUserMetrics():s.upsxClient.segmentation.getAnonymousEndpointMetrics(t));if(n)return null;let l={promotesRadar:(0,i.hasRadarIntent)(a?.metrics)};return(0,i.writeNextSessionIntent)(l),l}let u="home-radar-next-session-intent",m="data-home-radar",p={layout:"default",variant:null,eligible:!1};function f(e){document.documentElement.setAttribute(m,e)}function h(){document.documentElement.removeAttribute(m)}function g(){let e=(0,a.useContext)(l.ExperimentContext),n=e?.isFetchComplete??!1,[o,r]=(0,a.useState)(!1),[s,d]=(0,a.useState)(!1),[c,m]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=window.__wxHomeRadar??p;return f(e.layout),r(e.eligible),"pending"===e.layout?d(!0):e.forced||m(e.variant),h},[]);let g=(0,a.useCallback)(e=>{window.__wxHomeRadar={...e,eligible:!0},f(e.layout);try{localStorage.setItem("wxu-home-radar-layout",JSON.stringify(e))}catch{}d(!1),m(e.variant)},[]);return(0,a.useEffect)(()=>{if(!s)return;let e=setTimeout(()=>{g({layout:"default",variant:null})},2e3);return()=>clearTimeout(e)},[s,g]),(0,a.useEffect)(()=>{var t,a,l;if(!s||!e||!n)return;let{key:o,value:r}=e.variant(u),d="control"===(a=t=o||r)||"v1"===a||"v2"===a?t:null;g({layout:d?(l=(0,i.readNextSessionIntent)()?.promotesRadar??!1,"v2"===d||"v1"===d&&l?"promoted":"default"):"default",variant:d})},[s,e,n,g]),(0,t.jsxs)(t.Fragment,{children:[o&&(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,o.default)(t,()=>c(e.isUserLoggedIn,e.anonId),{shouldRetryOnError:!1})}(),null}function b(){return(0,n.default)(u),null}e.s(["HomeRadarResolver",0,g,"default",0,g],45089)},240279,e=>{"use strict";var t=e.i(902875),a=e.i(247865),n=e.i(730921),l=e.i(546446),o=e.i(429745),r=e.i(498076),s=e.i(269153),i=e.i(677691),d=e.i(949920),c=e.i(553329),u=e.i(695881),m=e.i(901351),p=e.i(528600);let f=(0,u.createLogger)("useWebToAppIntent");var h=e.i(598513),g=e.i(7150),x=e.i(521231);let b="wx-next/web-to-app-install-modal:shown-at",w="web-to-app-install-modal",v="both",y=(0,u.createLogger)("WebToAppInstallModal"),C=()=>{let e=(0,r.useIsMobile)(),u=(0,s.useIsSamsungPartner)(),C=(0,n.useLocale)(),[_,I]=(0,a.useState)(!1),[N,j]=(0,a.useState)(void 0),A=(0,a.useRef)(!1),S=(0,a.useRef)(!1),k=(0,a.useRef)(null),{href:E}=(0,i.useAppInstallLink)("web-to-app-install-modal","web-to-app-install-modal"),P=(0,h.useSendInteractionEvent)(),L=(0,l.useSetAtom)(g.pushlyPromptSuppressedAtom),T=e&&!u&&"en-US"===C;(0,a.useEffect)(()=>{j(!!T&&!function(){try{let e=localStorage.getItem(b);if(!e)return!1;return Date.now()-parseInt(e,10){var e;let a,n,{data:l,error:o}=await (0,c.tryCatch)(t.isUserLoggedIn?m.upsxClient.segmentation.getUserMetrics():m.upsxClient.segmentation.getAnonymousEndpointMetrics(t.anonId));return o?(f.warn("UPSx web-to-app lookup failed",{error:o}),!1):(e=l?.metrics,"number"==typeof(n="string"==typeof(a=e?.fpdprobwebtoapp)?Number(a):a)&&Number.isFinite(n)&&n>.5)},{shouldRetryOnError:!1});return n}(!0===N);return((0,a.useEffect)(()=>{if(!N||!W||A.current)return;let e=setTimeout(()=>{A.current=!0;try{localStorage.setItem(b,Date.now().toString())}catch(e){y.warn("localStorage write failed, cooldown will not persist",{error:e})}I(!0),P({moduleId:w,interactionType:"shown",featureFocus:v})},1e4);return()=>clearTimeout(e)},[N,W,P]),(0,a.useEffect)(()=>{let e=void 0===N||N&&void 0===W;L(T&&(e||!0===N&&!0===W))},[T,N,W,L]),(0,a.useEffect)(()=>()=>L(!1),[L]),!0!==N)?null:(0,t.jsx)(o.InstallPromptSheet,{open:_,onOpenChange:e=>{e||S.current||P({moduleId:w,interactionType:"dismiss-click",interactionElement:k.current??"overlay-or-escape",featureFocus:v}),S.current=!1,k.current=null,I(e)},title:"",imageContent:(0,t.jsx)(x.default,{className:"size-12 text-[#003399]"}),headline:"The Weather Channel is better on the app",description:"Faster performance, severe notifications, and exclusive radar layers.",getAppHref:E,onGetAppClick:()=>{S.current=!0,P({moduleId:w,interactionType:"get-app-click",featureFocus:v}),I(!1)},dismissLabel:"Not now",onDismissClick:()=>{k.current="not-now"},onCloseClick:()=>{k.current="close-button"}})};e.s(["WebToAppInstallModal",0,C,"default",0,C],240279)},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),n=e.i(725287),l=e.i(16838),o=e.i(632137),r=e.i(380993),s=e.i(546446),i=e.i(5397),d=e.i(688070),c=e.i(647292),u=e.i(697380),m=e.i(219246);let p="min-h-[50px] my-2",f="min-h-[90px]",h="min-h-[250px]",g="min-h-[600px]",x={WX_Hidden:{type:"custom",containerClasses:"hidden"},WX_BottomLeader:{type:"standard",placeholderClass:f},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:f},WX_MidLeader:{type:"standard",placeholderClass:f},WX_MidLeader2:{type:"standard",placeholderClass:f},WX_MidLeader3:{type:"standard",placeholderClass:f},WX_MidLeader4:{type:"standard",placeholderClass:f},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:f,containerClasses:"pb-0 rounded-3xl",disableBorder:!0},WX_Leaderboard:{type:"standard",placeholderClass:f},MW_Position1:{type:"custom",placeholderClass:p,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:p,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",isBottomFixed:!0},MW_Position1_Radar:{type:"custom",placeholderClass:p,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:n}){let[l,o]=(0,a.useState)(!1),r=(0,a.useRef)(!1),s=(0,a.useRef)(n);return s.current=n,(0,a.useEffect)(()=>{if(!t){r.current=!1;return}if(r.current)return;let a=!0;return window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent(e,s.current?{filter:s.current}:void 0).then(()=>{a&&o(!0)}).catch(t=>{console.error(`Error waiting for ${e}:`,t)})}),r.current=!0,()=>{a=!1,r.current=!1}},[t,e]),{triggered:l}}var y=e.i(421956),C=e.i(456215),_=e.i(176540);let I={adSlots:!0,adFallbackPromo:!0,adScripts:!0,adVideo:!0,taboola:!0,adLayoutReservation:!0,adScaffolding:!0,promoMorningBrief:!0,contentRecirculation:!0,sdkConsent:!0,sdkPush:!0,sdkAnalytics:!0},N=[{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:n,adFallbackPromo:l}=function(e){let t={...I};for(let a of N)if(a.when(e))for(let e of a.disables)t[e]=!1;return t}({webViewPlatform:(0,s.useAtomValue)(c.webViewPlatformAtom),article:e?.article??null,isUserPremium:null,adsKillswitch:null});return n||l?(0,t.jsx)(A,{...a}):null},A=({adId:e,adSlot:c,stickyReplaceSlot:p,title:f="Advertisement",className:h,sticky:g=!1,disableRegisteredUsers:C=!1,placeholderContent:_,fallbackPromoDriver:I})=>{let N=e||("object"==typeof c?c.slotTarget:void 0)||"",j="object"==typeof p?p?.slotTarget:void 0,A=N?x[N]??x[N.replace(/_GLS$/,"")]:void 0,k=(0,n.useParams)()?.locale,E=(0,s.useAtomValue)(i.showAdminHeaderAtom),P=(0,s.useAtomValue)(d.isWebViewOnlyAtom)&&A?.mobileAppContainerClasses?A.mobileAppContainerClasses:A?.containerClasses,L=(0,s.useSetAtom)(u.fixedBottomAdHeightAtom),T=(0,s.useSetAtom)(m.fixedTopAdHeightAtom),{shouldRender:W,placeholderClass:F}=function({adId:e,adSlotConfig:t,disableRegisteredUsers:n=!1}){let{user:l}=(0,b.useUser)(),o=(0,s.useAtomValue)(w.adsDisabledAtom),r=l.isUserPremium||o||!e||!!n&&l.isUserLoggedIn;!function({adId:e,adSlotType:t,enabled:n}){let l=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(n&&("standardNative"===t||"nativeVideoPlaylist"===t)&&!l.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:n}=t,l=window.__HeliosConfig.slotsConfig[n];if(l){let t=null!==a?`${l.adUnitPath}/contentfeed${a}`:l.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:n})})})}else console.error(`No config found for ${e} at Helios.slotConfig.${n}`)}}catch(e){console.error("Error rendering native ad",e)}l.current=!0}},[e,t,n])}({adId:e,adSlotType:t?.type,enabled:!r});let{adSlotRenderEvent:i}=function({adId:e,enabled:t=!0}){let[n,l]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!t||!e)return;let a=t=>{t.slot.getSlotElementId()===e&&l(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:n}}({adId:e,enabled:!r}),{isAdHidden:d}=function(e,t=!0){let[n,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!e||!t)return;let a=document.getElementById(e);if(!a)return;let n=()=>{l("none"===window.getComputedStyle(a).display)};n();let o=new MutationObserver(n);return o.observe(a,{attributes:!0,attributeFilter:["style","class"]}),()=>o.disconnect()},[e,t]),{isAdHidden:n}}(e,!r),{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:!r}),{isAdsExcluded:u}=function({enabled:e}){let{triggered:t}=v({eventName:"ERROR_EXCLUSION",enabled:e});return{isAdsExcluded:t}}({enabled:!r}),m=!!t?.persistElementOnEmpty,p=!r&&(m||!d)&&(m||!i?.isEmpty)&&!c&&!u,{placeholderClass:f}=function({adId:e,adSlotConfig:t,enabled:a}){let{isIMAdDetected:n}=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:l}=function({enabled:e}){let{triggered:t}=v({eventName:"TABLET_DETECTED",enabled:e});return{isTabletDetected:t}}({adId:e,enabled:a}),o=l?t?.tabletPlaceholderClass??t?.placeholderClass:t?.placeholderClass;return{placeholderClass:n?"h-0 min-h-0 p-0":o}}({adId:e,adSlotConfig:t,enabled:!r});return{shouldRender:p,placeholderClass:f}}({adId:N,adSlotConfig:A,disableRegisteredUsers:C}),R=(0,a.useRef)(null),{isReplaceSlotVisible:M}=function({adId:e,stickyReplaceId:t,enabled:n=!0}){let[l,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let a=t&&t!==e?t:null;if(!n||!a)return;let l=e=>{e.slot.getSlotElementId()===a&&o(!0)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotVisibilityChanged",l)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotVisibilityChanged",l)})}},[e,t,n]),{isReplaceSlotVisible:l}}({adId:N,stickyReplaceId:j,enabled:W});if((0,a.useEffect)(()=>{let e=R.current,t=A?.isTopFixed||A?.isBottomFixed;if(!(W&&e&&t))return;let a=A?.isTopFixed?T:L,n=()=>a(e.offsetHeight),l=new ResizeObserver(n);return l.observe(e),n(),()=>{l.disconnect(),a(0)}},[W,N,L,T,A?.isBottomFixed,A?.isTopFixed]),!W){let[e]=I||[];return e&&"en-US"===k?(0,t.jsx)(y.PromoDriverBlock,{...e}):null}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.DebugCollector,{componentName:"AdBlock",data:{props:{adId:N,adSlot:c,adSlotConfig:A,sticky:g},state:{shouldRender:W},performance:{renderTime:Date.now()}},enabled:E}),(0,t.jsx)(r.Card,{ref:R,variant:A?.type==="standard"?"bottom":"ghost",border:A?.disableBorder?"none":void 0,padding:A?.disableBorder?"none":void 0,style:M?{display:"none"}:void 0,className:(0,o.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)(r.CardContent,{className:(0,o.cn)(A?.type==="standard"&&"bg-gray-100 pb-6",g&&A?.stickyClasses),children:[A?.type==="standard"&&f&&(0,t.jsx)("div",{className:"text-xxs w-full px-4 py-1 text-center leading-4 text-gray-400",children:f}),(0,t.jsx)("div",{"data-testid":`${N}-container`,className:(0,o.cn)("flex w-full justify-center",A?.verticalAlign==="top"?"items-start":"items-center",F),children:_?(0,t.jsx)("div",{id:N,"data-testid":N,children:_}):(0,t.jsx)(S,{adId:N})})]})})]})},S=a.default.memo(({adId:e})=>(0,t.jsx)("div",{id:e,"data-testid":e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}),()=>!0);S.displayName="StableAdDiv",e.s(["AdBlock",0,j,"default",0,j],495406)},421956,e=>{"use strict";var t=e.i(902875),a=e.i(749621),n=e.i(240058),l=e.i(155879);let o=({title:e,image:o,subtitle:r,bodyText:s,ctaButton:i})=>{let d=i?.url&&/^https?:\/\//i.test(i.url),c=(0,l.isImageObject)(o)?o:null;return e||c&&c?.url||r||s||i?(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:i&&i.url||"#",children:(0,t.jsx)(a.default,{src:c.url,alt:e||"Promo image",fill:!0,className:"object-cover"})})})}):null,(r||s||i)&&(0,t.jsxs)("div",{className:"pt-4",children:[r&&(0,t.jsx)("a",{href:i&&i.url||"#",children:(0,t.jsx)("h4",{className:"mb-2 text-base font-bold",children:r})}),s&&(0,t.jsx)("a",{href:i&&i.url||"#",children:(0,t.jsx)("p",{className:"mb-4 text-base",children:s})}),i&&(0,t.jsx)("div",{className:"flex justify-end",children:d?(0,t.jsx)("a",{href:i.url||"#",target:i.openInNewTab?"_blank":"_self",rel:i.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:i.text}):(0,t.jsx)(n.default,{href:i.url||"#",target:i.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:i.text})})]})]})]}):null};e.s(["PromoDriverBlock",0,o,"default",0,o])},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)}])}]);