(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1567,e=>{"use strict";var l=e.i(947118),t=e.i(737801),s=e.i(206507);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",a=(0,l.useIsInitialized)(),i=(0,t.useEventAttributes)();return(0,s.useCallback)(({moduleId:l,modulePosition:t})=>{if(!a)return void console.warn("MParticle is not initialized");let s={module_id:l,module_position:t,...i};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,s),console.debug(`MParticle: Event "${e}" tracked`,s)}catch(l){console.error(`MParticle: Event "${e}" failed`,l)}},[i,a])}])},247977,748315,e=>{"use strict";var l=e.i(155252),t=e.i(206507),s=e.i(659334),a=e.i(184154),i=e.i(611540),n=e.i(388706),r=e.i(304116),c=e.i(457492),o=e.i(258990);e.s(["ForecastSubnav",0,function({placeId:e,featureId:u,placeQuery:m,canonicalPath:h,canonicalID:d,locale:g,showHealthTabs:v}){let p=(0,s.useTranslations)("SidebarNavigation"),f=(0,a.usePathname)(),P=e?(0,o.decodeLocId)(e):e,{links:k,basePath:b}=(0,t.useMemo)(()=>{if(h){let e=P?`l/${P}`:void 0,l=v&&e?[{label:"Allergies",slug:"allergy"},{label:"Air Quality",slug:"air-quality"},{label:"Cold & Flu",slug:"cold-flu",href:(0,i.interpolateUrl)(i.URLS.coldFlu,{locale:g,locId:P})}]:[];return{links:[{label:p("today"),slug:"today"},{label:p("hourly"),slug:"hourbyhour"},{label:p("tenday"),slug:"tenday"},...e?[{label:p("monthly"),slug:"monthly",href:(0,i.interpolateUrl)(i.URLS.monthly,{locale:g,locId:P})}]:[],...l],basePath:h}}let e="en-US"===g?"/weather":`/${g}/weather`,l=P??"",t=m?`?${m}`:"",s=e=>u&&n.CANONICAL_PAGE_TYPES.includes(e)?u:l,a=e=>`${(0,r.buildLocationPageHref)({pageType:e,locale:g,canonicalID:d,featureId:u,placeId:l})}${t}`,c=v?[{label:"Allergies",slug:"allergy",href:a("allergy")},{label:"Air Quality",slug:"air-quality",href:a("air-quality")},{label:"Cold & Flu",slug:"cold-flu",href:`${(0,i.interpolateUrl)(i.URLS.coldFlu,{locale:g,locId:s("cold-flu")})}${t}`}]:[];return{links:[{label:p("today"),slug:"today",href:a("today")},{label:p("hourly"),slug:"hourbyhour",href:a("hourbyhour")},{label:p("tenday"),slug:"tenday",href:a("tenday")},{label:p("monthly"),slug:"monthly",href:`${(0,i.interpolateUrl)(i.URLS.monthly,{locale:g,locId:s("monthly")})}${t}`},..."en-US"===g?[{label:"Gardening",slug:"gardening",href:"https://labs.weather.com/labs/home-and-garden"}]:[],...c],basePath:e}},[h,d,P,u,m,g,v,p]),j=(0,t.useMemo)(()=>{let e=f.replace(/\/day-\d+$/,""),l=k.findIndex(l=>{let{slug:t}=l,s=n.BASE_BY_PAGE[t];return!!s&&f.includes(`${s}byFeatureId/`)||f.includes(`/weather/${t}/`)||f.includes(`/forecast/${t}/`)||e.endsWith(`/${t}`)});return -1!==l?l:0},[f,k]);return(0,l.jsx)(c.SubnavigationUI,{links:k,basePath:b,activeIndex:j})}],247977);var u=e.i(959194),m=e.i(132084);e.s(["canShowHealthTabs",0,function(e){return"en-US"===e&&(0,u.getPartner)()!==m.Partner.SAMSUNG}],748315)},106537,e=>{"use strict";var l=e.i(155252),t=e.i(206507),s=e.i(546446),a=e.i(933470),i=e.i(659334),n=e.i(897892),r=e.i(632137),c=e.i(226602),o=e.i(611540);let u=(0,e.i(981030).atom)(!1),m="tou-notice-dismissed",h=new Date("2027-04-30");var d=e.i(498076),g=e.i(725296),v=e.i(1567),p=e.i(947118);let f=[g.Regime.GDPR,g.Regime.LGPD,g.Regime.EXEMPT,g.Regime.LATAM_CO,g.Regime.LATAM_DO,g.Regime.LATAM_PE,g.Regime.USA,g.Regime.USA_CCPA,g.Regime.USA_CO,g.Regime.USA_CT,g.Regime.USA_VA,g.Regime.USA_UT,g.Regime.CA,g.Regime.TR_KVKK,g.Regime.KR,g.Regime.JP,g.Regime.CA_QC],P=new Date("2026-05-30"),k=({regime:e,className:g})=>{let k=(0,i.useTranslations)("TouNotice"),b=(0,a.useLocale)(),j=(0,o.interpolateUrl)(o.URLS.termsOfUse,{locale:b}),y=(0,o.interpolateUrl)(o.URLS.privacyPolicy,{locale:b}),[x,w]=(0,s.useAtom)(u),_=(0,t.useRef)(null),U=(0,t.useRef)(!1),A=(0,d.useIsMobile)(),R=(0,p.useIsInitialized)(),S=(0,v.useTrackModuleViewed)(),[T,C]=(0,t.useState)(!1);(0,t.useEffect)(()=>{let e=(0,n.getCookie)("partner")?.toString().toLowerCase();C(e?.includes("samsung")??!1)},[]);let I=f.includes(e),E=new Date{I&&E&&((0,n.getCookie)(m)||w(!0))},[I,E,w]),(0,t.useEffect)(()=>{x&&I&&E&&R&&!U.current&&(U.current=!0,S({moduleId:"PP and TOU pop-up notification",modulePosition:0}))},[x,I,E,R,S]);let N=(0,t.useCallback)(()=>{(0,n.setCookie)(m,"true",{expires:h}),w(!1)},[w]);if((0,t.useEffect)(()=>{if(!x||A)return;let e=e=>{_.current&&!_.current.contains(e.target)&&N()},l=setTimeout(()=>{window.addEventListener("click",e)},100);return()=>{clearTimeout(l),window.removeEventListener("click",e)}},[x,A,N]),!x||!I||!E)return null;let L=k("heading"),q="text-[#252422] underline hover:text-[#252422]/80",z=k.rich("message",{updatedTerms:e=>(0,l.jsx)("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:q,children:e}),privacyPolicy:e=>(0,l.jsx)("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:q,children:e})}),$=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-2 flex items-start justify-between",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)("h4",{className:"m-0 text-base font-bold text-[#252422]",children:L})}),(0,l.jsx)("button",{onClick:N,className:"ml-2 flex h-6 w-6 items-center justify-center rounded-full text-[#252422] hover:bg-[#252422]/10 focus-visible:ring-2 focus-visible:ring-[#252422]/40 focus-visible:outline-none","aria-label":"Dismiss notice",children:(0,l.jsx)(c.Close,{className:"h-4 w-4"})})]}),(0,l.jsx)("div",{className:"text-sm leading-tight font-medium text-[#252422]",children:z})]});return A?(0,l.jsx)("div",{className:(0,r.cn)(T?"bg-white":"bg-[#CBDEF0]","mx-4 mt-4 rounded-2xl p-4",g),"aria-label":"Privacy and Terms of Use Notice",children:$}):(0,l.jsx)("div",{"aria-label":"Privacy and Terms of Use Notice",className:(0,r.cn)("relative",g),children:(0,l.jsx)("div",{ref:_,className:(0,r.cn)("z-toast fixed right-5 bottom-5 w-full max-w-[432px] rounded-2xl p-6 shadow-lg",T?"bg-white":"bg-[#CBDEF0]"),children:$})})};e.s(["PrivacyTOUNotice",0,k,"default",0,k],106537)},345715,e=>{"use strict";var l=e.i(155252),t=e.i(64412),s=e.i(247977),a=e.i(748315);e.s(["HomeForecastSubnav",0,function({locale:e}){let{location:i}=(0,t.useLocation)(),n=i?.placeId;return n?(0,l.jsx)(s.ForecastSubnav,{placeId:n,featureId:i?.featureId,locale:e,showHealthTabs:(0,a.canShowHealthTabs)(e)}):null}])},186044,e=>{e.v(l=>Promise.all(["static/chunks/1wq73bnhrue1l.js"].map(l=>e.l(l))).then(()=>l(451309)))},171913,e=>{e.v(l=>Promise.all(["static/chunks/34gmw1_2l2el9.js"].map(l=>e.l(l))).then(()=>l(927976)))},90,e=>{e.v(l=>Promise.all(["static/chunks/06ggusqkx510f.js"].map(l=>e.l(l))).then(()=>l(22872)))},92368,e=>{e.v(l=>Promise.all(["static/chunks/0fxmxe83w2p2u.js"].map(l=>e.l(l))).then(()=>l(789895)))},666922,e=>{e.v(l=>Promise.all(["static/chunks/0vgxjm7gu0yxl.js"].map(l=>e.l(l))).then(()=>l(856593)))},722332,e=>{e.v(l=>Promise.all(["static/chunks/3h0ebep4x-x91.js"].map(l=>e.l(l))).then(()=>l(476881)))},880187,e=>{e.v(l=>Promise.all(["static/chunks/2vut47n2r31zd.js"].map(l=>e.l(l))).then(()=>l(747997)))},744883,e=>{e.v(l=>Promise.all(["static/chunks/1ct0carztge-o.js"].map(l=>e.l(l))).then(()=>l(581947)))},197999,e=>{e.v(l=>Promise.all(["static/chunks/0wsn-243jbesx.js"].map(l=>e.l(l))).then(()=>l(272493)))},407657,e=>{e.v(l=>Promise.all(["static/chunks/2xgyo7io76gqk.js"].map(l=>e.l(l))).then(()=>l(75960)))},650095,e=>{e.v(l=>Promise.all(["static/chunks/0f1_sy7rlnf2t.js"].map(l=>e.l(l))).then(()=>l(601862)))},916531,e=>{e.v(l=>Promise.all(["static/chunks/2qeff49ijxbu6.js"].map(l=>e.l(l))).then(()=>l(369675)))},415546,e=>{e.v(l=>Promise.all(["static/chunks/1zalg4hlysw9g.js"].map(l=>e.l(l))).then(()=>l(446839)))},353962,e=>{e.v(l=>Promise.all(["static/chunks/2d73qaugsqb_g.js"].map(l=>e.l(l))).then(()=>l(367128)))},391939,e=>{e.v(l=>Promise.all(["static/chunks/2tisj_mpjkznu.js"].map(l=>e.l(l))).then(()=>l(72575)))},155043,e=>{e.v(l=>Promise.all(["static/chunks/0a8uyia0ao9og.js"].map(l=>e.l(l))).then(()=>l(869146)))},103659,e=>{e.v(l=>Promise.all(["static/chunks/3ccxaguq1hvzf.js"].map(l=>e.l(l))).then(()=>l(296920)))},945801,e=>{e.v(l=>Promise.all(["static/chunks/1o9l6g4w1lii9.js"].map(l=>e.l(l))).then(()=>l(566248)))},252521,e=>{e.v(l=>Promise.all(["static/chunks/1hl_zoa4cpir2.js"].map(l=>e.l(l))).then(()=>l(661446)))},781723,e=>{e.v(l=>Promise.all(["static/chunks/1f8_rsicn3nax.js"].map(l=>e.l(l))).then(()=>l(654703)))},625303,e=>{e.v(l=>Promise.all(["static/chunks/1qhyd8ydqz37w.js"].map(l=>e.l(l))).then(()=>l(718437)))},909969,e=>{e.v(l=>Promise.all(["static/chunks/3wruf-zubae89.js"].map(l=>e.l(l))).then(()=>l(218776)))},408674,e=>{e.v(l=>Promise.all(["static/chunks/0u1-b3h7lrqcs.js"].map(l=>e.l(l))).then(()=>l(783769)))},632092,e=>{e.v(l=>Promise.all(["static/chunks/30o1x2o6o4n-3.js"].map(l=>e.l(l))).then(()=>l(45677)))},713848,e=>{e.v(l=>Promise.all(["static/chunks/0twaqx-_15vka.js"].map(l=>e.l(l))).then(()=>l(889507)))},774463,e=>{e.v(l=>Promise.all(["static/chunks/1fu_g_1oa3-8s.js"].map(l=>e.l(l))).then(()=>l(155062)))},494738,e=>{e.v(l=>Promise.all(["static/chunks/36yr5e38xnvrf.js"].map(l=>e.l(l))).then(()=>l(512028)))},2638,e=>{e.v(l=>Promise.all(["static/chunks/1cs836e5zp3_7.js"].map(l=>e.l(l))).then(()=>l(198051)))},67832,e=>{e.v(l=>Promise.all(["static/chunks/0_81c8vii3h6e.js"].map(l=>e.l(l))).then(()=>l(414064)))},846784,e=>{e.v(l=>Promise.all(["static/chunks/2lu3sdo_glzmk.js"].map(l=>e.l(l))).then(()=>l(873667)))},72998,e=>{e.v(l=>Promise.all(["static/chunks/43ukb7uafzne2.js"].map(l=>e.l(l))).then(()=>l(510110)))},395624,e=>{e.v(l=>Promise.all(["static/chunks/1a8eatto4p5o5.js"].map(l=>e.l(l))).then(()=>l(600726)))},626117,e=>{e.v(l=>Promise.all(["static/chunks/3ntalh3uuj9sj.js"].map(l=>e.l(l))).then(()=>l(825086)))},132409,e=>{e.v(l=>Promise.all(["static/chunks/3_t16kmqh3jqt.js"].map(l=>e.l(l))).then(()=>l(3017)))},226507,e=>{e.v(l=>Promise.all(["static/chunks/0f0pngxcfnb-c.js"].map(l=>e.l(l))).then(()=>l(538258)))},48208,e=>{e.v(l=>Promise.all(["static/chunks/156gbku_p2k28.js"].map(l=>e.l(l))).then(()=>l(625444)))},164295,e=>{e.v(l=>Promise.all(["static/chunks/1_l_p17-np0sm.js"].map(l=>e.l(l))).then(()=>l(702162)))},148486,e=>{e.v(l=>Promise.all(["static/chunks/1nwmdk8di5kph.js"].map(l=>e.l(l))).then(()=>l(946515)))},403395,e=>{e.v(l=>Promise.all(["static/chunks/35bwu6-xct6rj.js"].map(l=>e.l(l))).then(()=>l(573581)))},957284,e=>{e.v(l=>Promise.all(["static/chunks/08uy9fq-vn-fg.js"].map(l=>e.l(l))).then(()=>l(48914)))},752465,e=>{e.v(l=>Promise.all(["static/chunks/3jgruvjku8ywd.js"].map(l=>e.l(l))).then(()=>l(777844)))},521662,e=>{e.v(l=>Promise.all(["static/chunks/0g382bfxu8fk6.js"].map(l=>e.l(l))).then(()=>l(782697)))},661123,e=>{e.v(l=>Promise.all(["static/chunks/1zo7h4gpuk0fx.js"].map(l=>e.l(l))).then(()=>l(711818)))},476493,e=>{e.v(l=>Promise.all(["static/chunks/1yu83umb103a6.js"].map(l=>e.l(l))).then(()=>l(328877)))}]);