(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,240279,e=>{"use strict";var t=e.i(902875),l=e.i(247865),a=e.i(730921),o=e.i(546446),n=e.i(429745),s=e.i(498076),r=e.i(269153),i=e.i(677691),d=e.i(949920),c=e.i(553329),p=e.i(695881),u=e.i(901351),m=e.i(528600);let f=(0,p.createLogger)("useWebToAppIntent");var g=e.i(598513),h=e.i(7150),b=e.i(521231);let y="wx-next/web-to-app-install-modal:shown-at",w="web-to-app-install-modal",x="both",_=(0,p.createLogger)("WebToAppInstallModal"),C=()=>{let e=(0,s.useIsMobile)(),p=(0,r.useIsSamsungPartner)(),C=(0,a.useLocale)(),[I,v]=(0,l.useState)(!1),[A,E]=(0,l.useState)(void 0),N=(0,l.useRef)(!1),P=(0,l.useRef)(!1),S=(0,l.useRef)(null),{href:T}=(0,i.useAppInstallLink)("web-to-app-install-modal","web-to-app-install-modal"),L=(0,g.useSendInteractionEvent)(),W=(0,o.useSetAtom)(h.pushlyPromptSuppressedAtom),k=e&&!p&&"en-US"===C;(0,l.useEffect)(()=>{E(!!k&&!function(){try{let e=localStorage.getItem(y);if(!e)return!1;return Date.now()-parseInt(e,10){var e;let l,a,{data:o,error:n}=await (0,c.tryCatch)(t.isUserLoggedIn?u.upsxClient.segmentation.getUserMetrics():u.upsxClient.segmentation.getAnonymousEndpointMetrics(t.anonId));return n?(f.warn("UPSx web-to-app lookup failed",{error:n}),!1):(e=o?.metrics,"number"==typeof(a="string"==typeof(l=e?.fpdprobwebtoapp)?Number(l):l)&&Number.isFinite(a)&&a>.5)},{shouldRetryOnError:!1});return a}(!0===A);return((0,l.useEffect)(()=>{if(!A||!j||N.current)return;let e=setTimeout(()=>{N.current=!0;try{localStorage.setItem(y,Date.now().toString())}catch(e){_.warn("localStorage write failed, cooldown will not persist",{error:e})}v(!0),L({moduleId:w,interactionType:"shown",featureFocus:x})},1e4);return()=>clearTimeout(e)},[A,j,L]),(0,l.useEffect)(()=>{let e=void 0===A||A&&void 0===j;W(k&&(e||!0===A&&!0===j))},[k,A,j,W]),(0,l.useEffect)(()=>()=>W(!1),[W]),!0!==A)?null:(0,t.jsx)(n.InstallPromptSheet,{open:I,onOpenChange:e=>{e||P.current||L({moduleId:w,interactionType:"dismiss-click",interactionElement:S.current??"overlay-or-escape",featureFocus:x}),P.current=!1,S.current=null,v(e)},title:"",imageContent:(0,t.jsx)(b.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:T,onGetAppClick:()=>{P.current=!0,L({moduleId:w,interactionType:"get-app-click",featureFocus:x}),v(!1)},dismissLabel:"Not now",onDismissClick:()=>{S.current="not-now"},onCloseClick:()=>{S.current="close-button"}})};e.s(["WebToAppInstallModal",0,C,"default",0,C],240279)},499589,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.DMA_TO_STELLER_PLACE_ID=void 0,l.getStellerPlaceIdByDma=function(e,t){let o=l.DMA_TO_STELLER_PLACE_ID[e]??[],[n]=o;if(!n)return null;if(1===o.length)return n.placeId;let[s,r]=(t??"").split(","),i=Number(s),d=Number(r);if(!s||!r||isNaN(i)||isNaN(d))return n.placeId;let c=(0,a.findNearestPlace)(i,d,o);return c?.placeId??n.placeId};let a=e.r(650130);l.DMA_TO_STELLER_PLACE_ID={501:[{placeId:"3315063269827282211",lat:40.7127753,lon:-74.0059728}],511:[{placeId:"3315063436399871268",lat:38.9072873,lon:-77.0369274}],517:[{placeId:"3315064254993794351",lat:35.2270768,lon:-80.8408933}],528:[{placeId:"3334408385452836165",lat:25.7616798,lon:-80.1917902}],539:[{placeId:"3334596466223088980",lat:27.9516896,lon:-82.4587527}],575:[{placeId:"3334593651954156883",lat:35.0457984,lon:-85.3093995}],556:[{placeId:"3334674602742777205",lat:37.5407246,lon:-77.4360481}],557:[{placeId:"3334606396783068508",lat:35.965266,lon:-83.923304}],640:[{placeId:"3334601011170903382",lat:35.1485812,lon:-90.0518955}],650:[{placeId:"3334613808000796002",lat:35.4688692,lon:-97.519539}],602:[{placeId:"3315063563118183718",lat:41.88325,lon:-87.6323879}],524:[{placeId:"3315063628482217255",lat:33.7501275,lon:-84.3885209}],641:[{placeId:"3315063700154484008",lat:29.4251905,lon:-98.4945922}],659:[{placeId:"3315063836184151338",lat:36.1626638,lon:-86.7816016}],618:[{placeId:"3315064011237623084",lat:29.7600771,lon:-95.3701108}],623:[{placeId:"3315064096851756333",lat:32.7766642,lon:-96.7969879}],635:[{placeId:"3315064174580598062",lat:30.267153,lon:-97.7430608}],789:[{placeId:"3315064328016626992",lat:32.2539787,lon:-110.9741769}],803:[{placeId:"3315064405451867441",lat:34.0549076,lon:-118.242643},{placeId:"3334608184890361184",lat:33.8365932,lon:-117.9143012}],751:[{placeId:"3315064489933538610",lat:39.7392358,lon:-104.990251}],609:[{placeId:"3334399554085717311",lat:38.627428,lon:-90.1982439}],527:[{placeId:"3334400107347969344",lat:39.76909,lon:-86.158018}],825:[{placeId:"3334405793540736322",lat:32.715738,lon:-117.1610838}],515:[{placeId:"3334409005043811655",lat:39.1031182,lon:-84.5120196}],613:[{placeId:"3334409223424443720",lat:44.977753,lon:-93.2650108}],752:[{placeId:"3334409983407162699",lat:38.8353142,lon:-104.8216009}],616:[{placeId:"3334410235468055884",lat:39.0997265,lon:-94.5785667}],819:[{placeId:"3334410987817141582",lat:47.6061389,lon:-122.3328481}],506:[{placeId:"3334413090170078543",lat:42.3555076,lon:-71.0565364}],519:[{placeId:"3334414338143290705",lat:32.7833163,lon:-79.9319664}],757:[{placeId:"3334604687444804951",lat:43.6150186,lon:-116.2023137}],820:[{placeId:"3334598254229718357",lat:45.515232,lon:-122.6783853}],566:[{placeId:"3334623717941577060",lat:40.0403279,lon:-76.3041833}],622:[{placeId:"3334628183096952169",lat:29.9508941,lon:-90.0758356}],507:[{placeId:"3334660161376617839",lat:32.0808989,lon:-81.091203}],807:[{placeId:"3334673640510719346",lat:37.7749295,lon:-122.4194155}],770:[{placeId:"3334636678173164908",lat:40.7605601,lon:-111.8881397}],790:[{placeId:"3334610866476680545",lat:35.0843859,lon:-106.650422},{placeId:"3394818584533272059",lat:35.6894307,lon:-105.9381944}],753:[{placeId:"3333913761063896382",lat:33.4482948,lon:-112.0725488}],839:[{placeId:"3344778025433564567",lat:36.1715735,lon:-115.139121}],544:[{placeId:"3334607334486836575",lat:36.8516437,lon:-75.9792194}],567:[{placeId:"3334592143615329618",lat:35.5975104,lon:-82.5460563}]}},406752,e=>{"use strict";var t=e.i(247865),l=e.i(295553),a=e.i(991511),o=e.i(546446),n=e.i(726249),s=e.i(935807),r=e.i(919101),i=e.i(527091),d=e.i(767685),c=e.i(310847),p=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:u})=>{let m=(0,o.useAtomValue)(c.wxuUserRecentAddressesAtom),f=(0,o.useAtomValue)(c.wxuUserRecentLocationsDataAtom),[,g]=(0,o.useAtom)(l.pageLocationDataAtom),h=(0,o.useSetAtom)(p.activeLocationAtom),b=(0,t.useMemo)(()=>{let t,l;return u?(0,d.honorRecentLocationName)(u,f):(t=(0,r.getAddressForLocationData)(e.location,m),l=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,n.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,s.getLocationPresentationName)(t,[],!1,l),name:(0,s.getLocationName)(t,[],!1,l),context:(0,s.getLocationContext)(t,[],!1,l),ianaTimeZone:(0,i.sanitizeIanaTimeZone)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[u,e,m,f]);(0,a.useRehydrateAtoms)([[l.pageLocationDataAtom,b]]);let y=(0,t.useRef)(null);return(0,t.useEffect)(()=>{g(b);let e=b.placeId;y.current!==e&&(h({placeId:b.placeId,geocode:b.geocode,featureId:b.featureId}),y.current=e)},[b,g,h]),null}],406752)},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),l=e.i(247865),a=e.i(725287),o=e.i(16838),n=e.i(632137),s=e.i(380993),r=e.i(546446),i=e.i(5397),d=e.i(688070),c=e.i(647292),p=e.i(697380),u=e.i(219246);let m="min-h-[50px] my-2",f="min-h-[90px]",g="min-h-[250px]",h="min-h-[600px]",b={WX_Hidden:{type:"custom",containerClasses:"hidden"},WX_BottomLeader:{type:"standard",placeholderClass:f},WX_Bot300:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_Bot300AdX1:{type:"standard",placeholderClass:g},WX_Bot300AdX2:{type:"standard",placeholderClass:g},WX_Bot300AdX3:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_Bot300AdX4:{type:"standard",placeholderClass:g},WX_Bot300AdX5:{type:"standard",placeholderClass:g},WX_Bot300AdX6:{type:"standard",verticalAlign:"top",placeholderClass:g},WX_PromoDriver1:{type:"standard",placeholderClass:g},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:g},WX_Top300Variable:{type:"standard",verticalAlign:"top",placeholderClass:h,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},WX_Mid300:{type:"standard",placeholderClass:g},WX_Mid300Variable:{type:"standard",verticalAlign:"top",placeholderClass:h,stickyClasses:"flex-none sticky top-[135px] z-sticky",stickyHeight:"h-[2000px]"},MW_Position2:{type:"standard",placeholderClass:g},MW_Position3:{type:"standard",placeholderClass:g},MW_Position3_Hourly:{type:"standard",placeholderClass:g},MW_Position4:{type:"standard",placeholderClass:g},MW_Position5:{type:"standard",placeholderClass:g},WX_WindowShade:{type:"standard",placeholderClass:g,tabletPlaceholderClass:f,containerClasses:"pb-0 rounded-3xl",disableBorder:!0},WX_Leaderboard:{type:"standard",placeholderClass:f},MW_Position1:{type:"custom",placeholderClass:m,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:m,containerClasses:"bg-gray-100 block fixed w-full bottom-[56px] left-[0px] z-adOverlay",isBottomFixed:!0},MW_Position1_Radar:{type:"custom",placeholderClass:m,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 y=e.i(528600),w=e.i(849177);function x({eventName:e,enabled:t,filter:a}){let[o,n]=(0,l.useState)(!1),s=(0,l.useRef)(!1),r=(0,l.useRef)(a);return r.current=a,(0,l.useEffect)(()=>{if(!t){s.current=!1;return}if(s.current)return;let l=!0;return window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent(e,r.current?{filter:r.current}:void 0).then(()=>{l&&n(!0)}).catch(t=>{console.error(`Error waiting for ${e}:`,t)})}),s.current=!0,()=>{l=!1,s.current=!1}},[t,e]),{triggered:o}}var _=e.i(421956),C=e.i(456215),I=e.i(176540);let v={adSlots:!0,adFallbackPromo:!0,adScripts:!0,adVideo:!0,taboola:!0,adLayoutReservation:!0,adScaffolding:!0,promoMorningBrief:!0,contentRecirculation:!0,sdkConsent:!0,sdkPush:!0,sdkAnalytics:!0},A=[{name:"atmosphere",when:e=>(0,I.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"]}],E=({globalPageProps:e,...l})=>{let{adSlots:a,adFallbackPromo:o}=function(e){let t={...v};for(let l of A)if(l.when(e))for(let e of l.disables)t[e]=!1;return t}({webViewPlatform:(0,r.useAtomValue)(c.webViewPlatformAtom),article:e?.article??null,isUserPremium:null,adsKillswitch:null});return a||o?(0,t.jsx)(N,{...l}):null},N=({adId:e,adSlot:c,stickyReplaceSlot:m,title:f="Advertisement",className:g,sticky:h=!1,disableRegisteredUsers:C=!1,placeholderContent:I,fallbackPromoDriver:v})=>{let A=e||("object"==typeof c?c.slotTarget:void 0)||"",E="object"==typeof m?m?.slotTarget:void 0,N=A?b[A]??b[A.replace(/_GLS$/,"")]:void 0,S=(0,a.useParams)()?.locale,T=(0,r.useAtomValue)(i.showAdminHeaderAtom),L=(0,r.useAtomValue)(d.isWebViewOnlyAtom)&&N?.mobileAppContainerClasses?N.mobileAppContainerClasses:N?.containerClasses,W=(0,r.useSetAtom)(p.fixedBottomAdHeightAtom),k=(0,r.useSetAtom)(u.fixedTopAdHeightAtom),{shouldRender:j,placeholderClass:F}=function({adId:e,adSlotConfig:t,disableRegisteredUsers:a=!1}){let{user:o}=(0,y.useUser)(),n=(0,r.useAtomValue)(w.adsDisabledAtom),s=o.isUserPremium||n||!e||!!a&&o.isUserLoggedIn;!function({adId:e,adSlotType:t,enabled:a}){let o=(0,l.useRef)(!1);(0,l.useEffect)(()=>{if(a&&("standardNative"===t||"nativeVideoPlaylist"===t)&&!o.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:l,baseNativeAdPosition:a}=t,o=window.__HeliosConfig.slotsConfig[a];if(o){let t=null!==l?`${o.adUnitPath}/contentfeed${l}`:o.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:a})})})}else console.error(`No config found for ${e} at Helios.slotConfig.${a}`)}}catch(e){console.error("Error rendering native ad",e)}o.current=!0}},[e,t,a])}({adId:e,adSlotType:t?.type,enabled:!s});let{adSlotRenderEvent:i}=function({adId:e,enabled:t=!0}){let[a,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!t||!e)return;let l=t=>{t.slot.getSlotElementId()===e&&o(t)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotRenderEnded",l)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotRenderEnded",l)})}},[e,t]),{adSlotRenderEvent:a}}({adId:e,enabled:!s}),{isAdHidden:d}=function(e,t=!0){let[a,o]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(!e||!t)return;let l=document.getElementById(e);if(!l)return;let a=()=>{o("none"===window.getComputedStyle(l).display)};a();let n=new MutationObserver(a);return n.observe(l,{attributes:!0,attributeFilter:["style","class"]}),()=>n.disconnect()},[e,t]),{isAdHidden:a}}(e,!s),{isSlotConfigDeleted:c}=function({adId:e,enabled:t}){let{triggered:l}=x({eventName:"SLOT_CONFIG_DELETED",enabled:t&&!!e,filter:t=>t.args[0].slotId===e});return{isSlotConfigDeleted:l}}({adId:e,enabled:!s}),{isAdsExcluded:p}=function({enabled:e}){let{triggered:t}=x({eventName:"ERROR_EXCLUSION",enabled:e});return{isAdsExcluded:t}}({enabled:!s}),u=!!t?.persistElementOnEmpty,m=!s&&(u||!d)&&(u||!i?.isEmpty)&&!c&&!p,{placeholderClass:f}=function({adId:e,adSlotConfig:t,enabled:l}){let{isIMAdDetected:a}=function({adId:e,enabled:t}){let{triggered:l}=x({eventName:"IM_AD_DETECTED_FOR_MW",enabled:t&&e.includes("MW_Position1")});return{isIMAdDetected:l}}({adId:e,enabled:l}),{isTabletDetected:o}=function({enabled:e}){let{triggered:t}=x({eventName:"TABLET_DETECTED",enabled:e});return{isTabletDetected:t}}({adId:e,enabled:l}),n=o?t?.tabletPlaceholderClass??t?.placeholderClass:t?.placeholderClass;return{placeholderClass:a?"h-0 min-h-0 p-0":n}}({adId:e,adSlotConfig:t,enabled:!s});return{shouldRender:m,placeholderClass:f}}({adId:A,adSlotConfig:N,disableRegisteredUsers:C}),D=(0,l.useRef)(null),{isReplaceSlotVisible:M}=function({adId:e,stickyReplaceId:t,enabled:a=!0}){let[o,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let l=t&&t!==e?t:null;if(!a||!l)return;let o=e=>{e.slot.getSlotElementId()===l&&n(!0)};return window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().addEventListener("slotVisibilityChanged",o)}),()=>{window.googletag?.cmd&&window.googletag.cmd.push(()=>{window.googletag?.pubads().removeEventListener("slotVisibilityChanged",o)})}},[e,t,a]),{isReplaceSlotVisible:o}}({adId:A,stickyReplaceId:E,enabled:j});if((0,l.useEffect)(()=>{let e=D.current,t=N?.isTopFixed||N?.isBottomFixed;if(!(j&&e&&t))return;let l=N?.isTopFixed?k:W,a=()=>l(e.offsetHeight),o=new ResizeObserver(a);return o.observe(e),a(),()=>{o.disconnect(),l(0)}},[j,A,W,k,N?.isBottomFixed,N?.isTopFixed]),!j){let[e]=v||[];return e&&"en-US"===S?(0,t.jsx)(_.PromoDriverBlock,{...e}):null}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.DebugCollector,{componentName:"AdBlock",data:{props:{adId:A,adSlot:c,adSlotConfig:N,sticky:h},state:{shouldRender:j},performance:{renderTime:Date.now()}},enabled:T}),(0,t.jsx)(s.Card,{ref:D,variant:N?.type==="standard"?"bottom":"ghost",border:N?.disableBorder?"none":void 0,padding:N?.disableBorder?"none":void 0,style:M?{display:"none"}:void 0,className:(0,n.cn)("region-contentTop","adContainer disableHeliosStyles",!h&&"overflow-hidden",N?.type==="standard"&&"pb-6",N?.type==="nativeVideoPlaylist"&&"[&_iframe]:mt-[10px]",h&&N?.stickyHeight,L,g),"aria-label":"Advertisement",children:(0,t.jsxs)(s.CardContent,{className:(0,n.cn)(N?.type==="standard"&&"bg-gray-100 pb-6",h&&N?.stickyClasses),children:[N?.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":`${A}-container`,className:(0,n.cn)("flex w-full justify-center",N?.verticalAlign==="top"?"items-start":"items-center",F),children:I?(0,t.jsx)("div",{id:A,"data-testid":A,children:I}):(0,t.jsx)(P,{adId:A})})]})})]})},P=l.default.memo(({adId:e})=>(0,t.jsx)("div",{id:e,"data-testid":e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}),()=>!0);P.displayName="StableAdDiv",e.s(["AdBlock",0,E,"default",0,E],495406)},421956,e=>{"use strict";var t=e.i(902875),l=e.i(749621),a=e.i(240058),o=e.i(155879);let n=({title:e,image:n,subtitle:s,bodyText:r,ctaButton:i})=>{let d=i?.url&&/^https?:\/\//i.test(i.url),c=(0,o.isImageObject)(n)?n:null;return e||c&&c?.url||s||r||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)(l.default,{src:c.url,alt:e||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||r||i)&&(0,t.jsxs)("div",{className:"pt-4",children:[s&&(0,t.jsx)("a",{href:i&&i.url||"#",children:(0,t.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),r&&(0,t.jsx)("a",{href:i&&i.url||"#",children:(0,t.jsx)("p",{className:"mb-4 text-base",children:r})}),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)(a.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,n,"default",0,n])},970488,e=>{"use strict";var t=e.i(902875),l=e.i(64412),a=e.i(499589),o=e.i(217027),n=e.i(247865);let s=({partnerPlaceId:e,headline:l})=>{let a="uss81wnkc5cmgs68qy21h1zuwpkufnp5";return(0,n.useEffect)(()=>{let e="steller-partners-embed-script";document.getElementById(e)?.remove();let t=document.createElement("script");t.id=e,t.src="https://d2361c0djb4k63.cloudfront.net/partners-embed/latest/partnersEmbed.js",document.body.appendChild(t)},[a,e]),(0,t.jsxs)("div",{className:"steller-connect-container",children:[l&&(0,t.jsx)("h2",{className:"mb-4 text-2xl font-bold text-gray-900",children:l}),(0,t.jsx)("div",{className:"steller-partners-embed","data-partner-place-id":e,"data-access-token":a,"data-whitelabeled":"true","data-clickout-buttons-appearance":"detail-only","data-poweredby-link":"https://stellerforbusiness.com",style:{"--stories-height":"clamp(300px, 30vw, 400px)",height:"var(--stories-height)"}})]})},r=({showOnTravelerMode:e=!0})=>{let{stellerPlaceId:n}=function(){let{location:e,isLoading:t}=(0,l.useLocation)(),o=e?.dmaCd;return{stellerPlaceId:o?(0,a.getStellerPlaceIdByDma)(o,e?.geocode):null,isLoading:t,error:null}}(),{isTravelerMode:r}=(0,o.useTravelerMode)(),{location:i}=(0,l.useLocation)();if(r!==e||!n)return null;let d=i?.displayName?`Things to do around ${i.displayName}`:"Things to do around you";return(0,t.jsx)(s,{partnerPlaceId:n,headline:d},n)};e.s(["StellerConnectBlock",0,r,"default",0,r],970488)},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 l=t.pathSegments?.[0]?.segment;return"string"==typeof l&&l.length>0?l:"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)}])}]);