(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1567,e=>{"use strict";var l=e.i(947118),s=e.i(737801),t=e.i(592121);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",a=(0,l.useIsInitialized)(),i=(0,s.useEventAttributes)();return(0,t.useCallback)(({moduleId:l,modulePosition:s})=>{if(!a)return void console.warn("MParticle is not initialized");let t={module_id:l,module_position:s,...i};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,t),console.debug(`MParticle: Event "${e}" tracked`,t)}catch(l){console.error(`MParticle: Event "${e}" failed`,l)}},[i,a])}])},247977,748315,e=>{"use strict";var l=e.i(699173),s=e.i(592121),t=e.i(683903),a=e.i(961123),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:v,showHealthTabs:g}){let p=(0,t.useTranslations)("SidebarNavigation"),b=(0,a.usePathname)(),f=e?(0,o.decodeLocId)(e):e,{links:P,basePath:j}=(0,s.useMemo)(()=>{if(h){let e=f?`l/${f}`:void 0,l=g&&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:v,locId:f})}]:[];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:v,locId:f})}]:[],...l],basePath:h}}let e="en-US"===v?"/weather":`/${v}/weather`,l=f??"",s=m?`?${m}`:"",t=e=>u&&n.CANONICAL_PAGE_TYPES.includes(e)?u:l,a=e=>`${(0,r.buildLocationPageHref)({pageType:e,locale:v,canonicalID:d,featureId:u,placeId:l})}${s}`,c=g?[{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:v,locId:t("cold-flu")})}${s}`}]:[];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:v,locId:t("monthly")})}${s}`},..."en-US"===v?[{label:"Gardening",slug:"gardening",href:"https://labs.weather.com/labs/home-and-garden"}]:[],...c],basePath:e}},[h,d,f,u,m,v,g,p]),k=(0,s.useMemo)(()=>{let e=b.replace(/\/day-\d+$/,""),l=P.findIndex(l=>{let{slug:s}=l,t=n.BASE_BY_PAGE[s];return!!t&&b.includes(`${t}byFeatureId/`)||b.includes(`/weather/${s}/`)||b.includes(`/forecast/${s}/`)||e.endsWith(`/${s}`)});return -1!==l?l:0},[b,P]);return(0,l.jsx)(c.SubnavigationUI,{links:P,basePath:j,activeIndex:k})}],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(699173),s=e.i(592121),t=e.i(546446),a=e.i(730921),i=e.i(683903),n=e.i(646341),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),v=e.i(725296),g=e.i(1567),p=e.i(947118);let b=[v.Regime.GDPR,v.Regime.LGPD,v.Regime.EXEMPT,v.Regime.LATAM_CO,v.Regime.LATAM_DO,v.Regime.LATAM_PE,v.Regime.USA,v.Regime.USA_CCPA,v.Regime.USA_CO,v.Regime.USA_CT,v.Regime.USA_VA,v.Regime.USA_UT,v.Regime.CA,v.Regime.TR_KVKK,v.Regime.KR,v.Regime.JP,v.Regime.CA_QC],f=new Date("2026-05-30"),P=({regime:e,className:v})=>{let P=(0,i.useTranslations)("TouNotice"),j=(0,a.useLocale)(),k=(0,o.interpolateUrl)(o.URLS.termsOfUse,{locale:j}),y=(0,o.interpolateUrl)(o.URLS.privacyPolicy,{locale:j}),[x,w]=(0,t.useAtom)(u),_=(0,s.useRef)(null),U=(0,s.useRef)(!1),A=(0,d.useIsMobile)(),R=(0,p.useIsInitialized)(),S=(0,g.useTrackModuleViewed)(),[T,C]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=(0,n.getCookie)("partner")?.toString().toLowerCase();C(e?.includes("samsung")??!1)},[]);let I=b.includes(e),z=new Date{I&&z&&((0,n.getCookie)(m)||w(!0))},[I,z,w]),(0,s.useEffect)(()=>{x&&I&&z&&R&&!U.current&&(U.current=!0,S({moduleId:"PP and TOU pop-up notification",modulePosition:0}))},[x,I,z,R,S]);let E=(0,s.useCallback)(()=>{(0,n.setCookie)(m,"true",{expires:h}),w(!1)},[w]);if((0,s.useEffect)(()=>{if(!x||A)return;let e=e=>{_.current&&!_.current.contains(e.target)&&E()},l=setTimeout(()=>{window.addEventListener("click",e)},100);return()=>{clearTimeout(l),window.removeEventListener("click",e)}},[x,A,E]),!x||!I||!z)return null;let N=P("heading"),L="text-[#252422] underline hover:text-[#252422]/80",$=P.rich("message",{updatedTerms:e=>(0,l.jsx)("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:L,children:e}),privacyPolicy:e=>(0,l.jsx)("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:L,children:e})}),q=(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:N})}),(0,l.jsx)("button",{onClick:E,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:$})]});return A?(0,l.jsx)("div",{className:(0,r.cn)(T?"bg-white":"bg-[#CBDEF0]","mx-4 mt-4 rounded-2xl p-4",v),"aria-label":"Privacy and Terms of Use Notice",children:q}):(0,l.jsx)("div",{"aria-label":"Privacy and Terms of Use Notice",className:(0,r.cn)("relative",v),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:q})})};e.s(["PrivacyTOUNotice",0,P,"default",0,P],106537)},345715,e=>{"use strict";var l=e.i(699173),s=e.i(64412),t=e.i(247977),a=e.i(748315);e.s(["HomeForecastSubnav",0,function({locale:e}){let{location:i}=(0,s.useLocation)(),n=i?.placeId;return n?(0,l.jsx)(t.ForecastSubnav,{placeId:n,featureId:i?.featureId,locale:e,showHealthTabs:(0,a.canShowHealthTabs)(e)}):null}])},186044,e=>{e.v(l=>Promise.all(["static/chunks/14l-6d02kd2fz.js"].map(l=>e.l(l))).then(()=>l(451309)))},171913,e=>{e.v(l=>Promise.all(["static/chunks/3dcs0l5j1g6a_.js"].map(l=>e.l(l))).then(()=>l(927976)))},90,e=>{e.v(l=>Promise.all(["static/chunks/02ppzgv5a8lxs.js"].map(l=>e.l(l))).then(()=>l(22872)))},92368,e=>{e.v(l=>Promise.all(["static/chunks/3i0zaiku7bje6.js"].map(l=>e.l(l))).then(()=>l(789895)))},666922,e=>{e.v(l=>Promise.all(["static/chunks/2_ad85pvnpasr.js"].map(l=>e.l(l))).then(()=>l(856593)))},722332,e=>{e.v(l=>Promise.all(["static/chunks/0lb0gugsiefuf.js"].map(l=>e.l(l))).then(()=>l(476881)))},880187,e=>{e.v(l=>Promise.all(["static/chunks/0ytexffeurca4.js"].map(l=>e.l(l))).then(()=>l(747997)))},744883,e=>{e.v(l=>Promise.all(["static/chunks/0zs2to7zqkb6b.js"].map(l=>e.l(l))).then(()=>l(581947)))},197999,e=>{e.v(l=>Promise.all(["static/chunks/3n-sga4604-oh.js"].map(l=>e.l(l))).then(()=>l(272493)))},407657,e=>{e.v(l=>Promise.all(["static/chunks/32asyc-qi6t0-.js"].map(l=>e.l(l))).then(()=>l(75960)))},650095,e=>{e.v(l=>Promise.all(["static/chunks/2rj208utmr5yr.js"].map(l=>e.l(l))).then(()=>l(601862)))},916531,e=>{e.v(l=>Promise.all(["static/chunks/1edjqytr4b4do.js"].map(l=>e.l(l))).then(()=>l(369675)))},415546,e=>{e.v(l=>Promise.all(["static/chunks/2gbvc82ctdn0a.js"].map(l=>e.l(l))).then(()=>l(446839)))},353962,e=>{e.v(l=>Promise.all(["static/chunks/3bevr2_4h3ua9.js"].map(l=>e.l(l))).then(()=>l(367128)))},391939,e=>{e.v(l=>Promise.all(["static/chunks/0o-5ypipfmvgj.js"].map(l=>e.l(l))).then(()=>l(72575)))},155043,e=>{e.v(l=>Promise.all(["static/chunks/1eisd1srr5_wl.js"].map(l=>e.l(l))).then(()=>l(869146)))},103659,e=>{e.v(l=>Promise.all(["static/chunks/3eonedq0tzhbu.js"].map(l=>e.l(l))).then(()=>l(296920)))},945801,e=>{e.v(l=>Promise.all(["static/chunks/27b4xgp6fncrs.js"].map(l=>e.l(l))).then(()=>l(566248)))},252521,e=>{e.v(l=>Promise.all(["static/chunks/07fx3by0-8gd2.js"].map(l=>e.l(l))).then(()=>l(661446)))},582099,e=>{e.v(l=>Promise.all(["static/chunks/10536z8prxuwv.js"].map(l=>e.l(l))).then(()=>l(654703)))},625303,e=>{e.v(l=>Promise.all(["static/chunks/3_im3i23ahlrn.js"].map(l=>e.l(l))).then(()=>l(718437)))},909969,e=>{e.v(l=>Promise.all(["static/chunks/35zkk3b49wu7f.js"].map(l=>e.l(l))).then(()=>l(218776)))},408674,e=>{e.v(l=>Promise.all(["static/chunks/37zcsfcnoati1.js"].map(l=>e.l(l))).then(()=>l(783769)))},632092,e=>{e.v(l=>Promise.all(["static/chunks/3m9vh4xsqulp_.js"].map(l=>e.l(l))).then(()=>l(45677)))},713848,e=>{e.v(l=>Promise.all(["static/chunks/3erqiumfpcfsb.js"].map(l=>e.l(l))).then(()=>l(889507)))},774463,e=>{e.v(l=>Promise.all(["static/chunks/0qc98scy26su0.js"].map(l=>e.l(l))).then(()=>l(155062)))},494738,e=>{e.v(l=>Promise.all(["static/chunks/35_axkfal7ger.js"].map(l=>e.l(l))).then(()=>l(512028)))},2638,e=>{e.v(l=>Promise.all(["static/chunks/2ve1e19qddzym.js"].map(l=>e.l(l))).then(()=>l(198051)))},67832,e=>{e.v(l=>Promise.all(["static/chunks/2dcwk6m_v4qfi.js"].map(l=>e.l(l))).then(()=>l(414064)))},846784,e=>{e.v(l=>Promise.all(["static/chunks/1e3vb5d7j0x8s.js"].map(l=>e.l(l))).then(()=>l(873667)))},72998,e=>{e.v(l=>Promise.all(["static/chunks/393zgougvvycp.js"].map(l=>e.l(l))).then(()=>l(510110)))},395624,e=>{e.v(l=>Promise.all(["static/chunks/2szbhxkcxvd0v.js"].map(l=>e.l(l))).then(()=>l(600726)))},626117,e=>{e.v(l=>Promise.all(["static/chunks/0_bdyv7xs8xqi.js"].map(l=>e.l(l))).then(()=>l(825086)))},132409,e=>{e.v(l=>Promise.all(["static/chunks/43drnw5w4qy5b.js"].map(l=>e.l(l))).then(()=>l(3017)))},226507,e=>{e.v(l=>Promise.all(["static/chunks/2qf6ha3gakfwh.js"].map(l=>e.l(l))).then(()=>l(538258)))},48208,e=>{e.v(l=>Promise.all(["static/chunks/3msns9jhb6vfx.js"].map(l=>e.l(l))).then(()=>l(625444)))},164295,e=>{e.v(l=>Promise.all(["static/chunks/0z4a_zo6coobc.js"].map(l=>e.l(l))).then(()=>l(702162)))},148486,e=>{e.v(l=>Promise.all(["static/chunks/0zgy365rwmgw6.js"].map(l=>e.l(l))).then(()=>l(946515)))},403395,e=>{e.v(l=>Promise.all(["static/chunks/1xu3zmek98e_j.js"].map(l=>e.l(l))).then(()=>l(573581)))},957284,e=>{e.v(l=>Promise.all(["static/chunks/0_pa8k2y1jvmh.js"].map(l=>e.l(l))).then(()=>l(48914)))},752465,e=>{e.v(l=>Promise.all(["static/chunks/16yf-fk_5dxil.js"].map(l=>e.l(l))).then(()=>l(777844)))},521662,e=>{e.v(l=>Promise.all(["static/chunks/05rm8oago-b2j.js"].map(l=>e.l(l))).then(()=>l(782697)))},661123,e=>{e.v(l=>Promise.all(["static/chunks/1ejdc4_dkaxie.js"].map(l=>e.l(l))).then(()=>l(711818)))},476493,e=>{e.v(l=>Promise.all(["static/chunks/0-juv8n6sj234.js"].map(l=>e.l(l))).then(()=>l(328877)))}]);