(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,192066,e=>{e.v("/_next/static/media/SlideshowIcon.dec5e13d.png")},15819,e=>{e.v("/_next/static/media/morning-brief-logo.c6e2f5db.svg")},217817,e=>{e.v("/_next/static/media/ellipse.906fdd19.png")},438335,e=>{"use strict";var t=e.i(694914);e.s(["getPublicProductionURL",0,e=>{let i=t.default.env.VERCEL_TARGET_ENV_PRODUCTION_URL??"weather.com",r=t.default.env.VERCEL_PROJECT_PRODUCTION_URL??"wxnext.weather.com",a=`https://${i??r}`;return e?new URL(e,a).toString():a},"getPublicURL",0,e=>{let i,r=(t.default.env.VERCEL_TARGET_ENV??"production")?.toLowerCase(),a=t.default.env.VERCEL_BRANCH_URL??"wx-next-web-git-releasebranch-2026-02-27.vercel.weather.com",s=t.default.env.VERCEL_TARGET_ENV_URL??"weather.com",n="true"===t.default.env.NEXT_DEV_SERVER_INSECURE||"true"===t.default.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(r){case"preview":i=`https://${a}`;break;case"development":i=n?`http://${s}`:`https://${s}`;break;default:i=`https://${s}`}return e?new URL(e,i).toString():i}])},143851,e=>{"use strict";var t=e.i(475566),i=e.i(186316),r=e.i(45846),a=e.i(310847),s=e.i(776169),n=e.i(671525),l=e.i(477716),o=e.i(947118),c=e.i(737801),d=e.i(521350);function u(){let e,u,m,h,p,f=(0,t.useSetAtom)(a.userHasLoggedInBeforeAtom),x=(0,t.useAtomValue)(a.wxuLoginRedirectPageAtom),w=(0,t.useAtomValue)(a.wxuUserAnonymousIdAtom),b=(0,i.useGetCookie)(),{syncPreferencesFromUpsx:g,updatePreferences:v}=(0,s.usePreferences)(),{navigate:y}=(0,n.default)(),{login:j}=(e=(0,o.useIsInitialized)(),u=(0,l.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let i={userIdentities:{customerid:t.customerid,email:t.email,other:t.other}};return window.mParticle?.Identity?.identify?.(i)},[e]),{identify:u,login:(0,l.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let i={userIdentities:{customerid:t.customerid,email:t.email,facebook:t.facebook,facebookcustomaudienceid:t.facebookcustomaudienceid,google:t.google,microsoft:t.microsoft,other:t.other,other2:t.other2,other3:t.other3,other4:t.other4,twitter:t.twitter,yahoo:t.yahoo}};return window.mParticle?.Identity?.login?.(i)},[e]),logout:(0,l.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}),E=(m=(0,o.useIsInitialized)(),h=(0,c.useEventAttributes)(),p=(0,l.useCallback)((e,t={})=>{let i={...h,...t};if(!m)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(e,window.mParticle.EventType.Other,i),console.debug(`MParticle: Event "${e}" tracked`,i)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}return p},[h,m])),I=async()=>{try{if(b("premium"))return null;return await r.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},C=()=>{y(x,{mpa:!0})},N=async(e,t=!0)=>{(0,d.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),f(!0),await g()||await v({}),I(),e?.userID&&(j({email:e.email,customerid:e.userID,other:w}),E("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),t&&C()};return{login:async(e,t)=>{try{let i=await r.upsxClient.auth.login({email:e,password:t});return i&&await N({email:i.email,userID:i.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:N,authRedirect:C}}e.s(["useUserLogin",()=>u],143851)},245308,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(747961);let a=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":a,...s,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"View"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,t.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})),s=i.default.forwardRef((e,i)=>(0,t.jsx)(r.BaseIcon,{ref:i,icon:a,...e}));s.displayName="View",e.s(["View",0,s])},271818,e=>{"use strict";var t=e.i(477716);e.i(481938);var i=e.i(762073),r=e.i(297647),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{let s=(0,i.createSlot)(`Primitive.${a}`),n=t.forwardRef((e,t)=>{let{asChild:i,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(i?s:a,{...n,ref:t})});return n.displayName=`Primitive.${a}`,{...e,[a]:n}},{});e.s(["Primitive",()=>a])},370220,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},i.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},i.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},454307,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setEmailPreferences=n,i.updateSubscription=l;let r=e.r(678651),a=e.r(414655),s=e.r(370220);async function n(e){let t=(0,s.getEmailPreferencesSetUrlConfig)(),i=(0,r.urlFrom)(t),n=JSON.stringify(function(e){let{subscriptions:t,email:i,mParticleId:r}=e,a={};return t&&(a.subscriptions=t),i&&(a.email=i),r&&(a.mParticleId=r),a}(e)),l=await fetch(i,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:n});return 200===l.status||400===l.status?await l.json():(0,a.handleFetchResponse)(l)}async function l(e,t,i){return n({subscriptions:[{subscriptionGroupName:e,isSubscribed:t,...i&&{attributes:i}}]})}},451086,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getEmailPreferencesStatus=n;let r=e.r(678651),a=e.r(414655),s=e.r(370220);async function n(){let e=(0,s.getEmailPreferencesStatusUrlConfig)(),t=(0,r.urlFrom)(e),i=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,a.handleFetchResponse)(i)}},952582,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_SUBSCRIPTIONS=i.MARKETING_EMAILS_GROUP=i.WEEKLY_BRIEF_GROUP=i.DAILY_NEWSLETTERS_GROUP=void 0,i.DAILY_NEWSLETTERS_GROUP="daily-newsletters-1",i.WEEKLY_BRIEF_GROUP="weekly-brief",i.MARKETING_EMAILS_GROUP="marketing-emails-1",i.DEFAULT_SUBSCRIPTIONS=[{subscriptionGroupName:i.DAILY_NEWSLETTERS_GROUP,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:i.WEEKLY_BRIEF_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:i.MARKETING_EMAILS_GROUP,subscriptionGroupId:"",isSubscribed:!1}]},422825,e=>{"use strict";var t=e.i(475566),i=e.i(381477),r=e.i(454307),a=e.i(451086);let s=(0,e.i(233601).atomWithStorage)("emailPreferences",null,void 0,{getOnInit:!0});var n=e.i(528600),l=e.i(952582),o=e.i(477716);function c(e,t){let i=t?.length?t:l.DEFAULT_SUBSCRIPTIONS,r={};return e?(i?.forEach(e=>{r[e.subscriptionGroupName]=e}),e.forEach(e=>{r[e.subscriptionGroupName]=e}),Object.values(r)):i}e.s(["useEmailPreferences",0,()=>{let[e,l]=(0,t.useAtom)(s),{user:d}=(0,n.useUser)(),u=d?.userID||null,m=d?.isUserLoggedIn||!1,h=(0,o.useCallback)(t=>{u&&l({userId:u,expiry:Date.now()+9e5,subscriptions:c(t,e?.subscriptions)})},[u,l,e?.subscriptions]),p=e&&e.userId===u&&e.expiry&&e.expiry>Date.now();(0,i.default)(u&&m&&!p?`getEmailPreferencesStatus/${u}`:void 0,()=>(0,a.getEmailPreferencesStatus)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{u&&e&&h(e.subscriptions)}});let f=(0,o.useCallback)(async(t,i)=>{let a=await (0,r.setEmailPreferences)({subscriptions:t,email:m?void 0:i});return"success"===a.status&&h(c(t.map(e=>({...e,subscriptionGroupId:""})),e?.subscriptions)),a},[]);return{subscriptions:u&&e?e.subscriptions:null,updateSubscriptions:h,updateEmailPreference:f}}],422825)},790010,e=>{"use strict";var t=e.i(245943),i=e.i(45846),r=e.i(143851);function a(){let{authSuccess:e,authRedirect:a}=(0,r.useUserLogin)();return{signup:async(r,a=!0)=>{try{let t=await (r.password?i.upsxClient.auth.register({email:r.email,password:r.password,firstName:r.firstName}):i.upsxClient.auth.registerPasswordless({email:r.email,firstName:r.firstName}));return await e({email:t.email,userID:t.userID,type:"signup"},a),{success:!0,data:{email:t.email,userID:t.userID}}}catch(e){if(console.error("Failed to signup",e),e instanceof t.APIError){let t=e.data;return{success:!1,error:{code:e.code,...t}}}return{success:!1,error:{}}}},authRedirect:a}}e.s(["useUserSignup",()=>a])},506424,796424,e=>{"use strict";function t(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e.replace(/GMT(?![+-])/,"GMT+0000")).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),i=/([+-])(\d{2})(\d{2})$/;i.test(t)&&(t=t.replace(i,"$1$2:$3"));let r=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(r).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":r}e.s(["getNormalizedDateString",()=>t],796424),e.s(["getCompatibleValues",0,({date:e,timeZone:i})=>({cDate:new Date(t(e)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return"Etc/UTC"}})(i)})],506424)},289607,e=>{"use strict";var t=e.i(506424);let i=(e,i,r,a)=>{let{cDate:s,cTimeZone:n}=(0,t.getCompatibleValues)({date:e,locale:i,timeZone:r}),l=a??{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return l.timeZone=n,{cDate:s,cTimeZone:n,formatOptions:l}};e.s(["formatIntlDateParts",0,(e,t,r,a)=>{if(!e)return[];let{cDate:s,formatOptions:n}=i(e,t,r,a);return new Intl.DateTimeFormat(t,n).formatToParts(s)},"formatIntlDateString",0,(e,t,r,a)=>{if(!e)return"";let{cDate:s,formatOptions:n}=i(e,t,r,a);return new Intl.DateTimeFormat(t,n).format(s)}])},127667,e=>{"use strict";let t=(0,e.i(514514).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],127667)},482317,e=>{"use strict";let t=(0,e.i(514514).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],482317)},914146,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(482317),a=e.i(287638),s=e.i(368847),n=e.i(367810),l=e.i(632137);let o=({isOpen:e,setIsOpen:i,children:a,title:o})=>(0,t.jsx)(n.Dialog,{open:e,children:(0,t.jsxs)(n.DialogPortal,{children:[(0,t.jsx)(n.DialogOverlay,{className:"bg-black/50"}),(0,t.jsxs)(n.DialogContent,{className:(0,l.cn)("p-0 [&>button]:hidden","fixed inset-x-0 top-auto bottom-0 z-110 flex h-auto flex-col bg-white","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:slide-out-to-bottom-[10%] data-[state=open]:slide-in-from-bottom-[10%]","left-0 w-full max-w-none translate-x-0 translate-y-0 shadow-lg duration-300","border-x-0 border-b-0","rounded-t-3xl rounded-b-none"),children:[(0,t.jsx)(n.DialogTitle,{className:"pt-4",children:(0,t.jsxs)("div",{className:"relative flex items-center justify-center pb-2",children:[(0,t.jsx)(s.default,{variant:"Body.M",className:"font-bold",children:o}),(0,t.jsx)("button",{onClick:()=>i(!1),className:"absolute top-0 right-5 cursor-pointer text-black hover:text-gray-700",children:(0,t.jsx)(r.X,{className:"h-6 w-6"})}),(0,t.jsx)("div",{className:"absolute right-0 bottom-0 left-0 h-[1px] bg-[#e9e9e9]"})]})}),(0,t.jsx)("div",{className:"max-h-[70vh] overflow-y-auto p-4 pt-0",children:a})]})]})});var c=e.i(747961);let d=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":a,...s,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"Share"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M11.5 10a2.5 2.5 0 0 0-1.944.945L5.9 8.66a2.23 2.23 0 0 0 0-1.32l3.655-2.285A2.5 2.5 0 1 0 9 3.5q.004.337.1.66L5.446 6.445a2.5 2.5 0 1 0 0 3.11L9.1 11.84a2.4 2.4 0 0 0-.1.66 2.5 2.5 0 1 0 2.5-2.5m0-8a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m-8 7.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m8 4.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"})]})),u=i.default.forwardRef((e,i)=>(0,t.jsx)(c.BaseIcon,{ref:i,icon:d,...e}));u.displayName="Share";let m=({onClick:e=()=>void 0,asChild:i=!1,className:r,type:a})=>{let n={className:(0,l.cn)("flex cursor-pointer items-center text-sm text-gray-500","article"===a&&"px-3 py-2 rounded-lg border border-[#676767] bg-transparent",r),onClick:e,"data-testid":"share-button"},o=(0,t.jsxs)("div",{className:"align-center flex items-center","data-testid":"share-button-content",children:[(0,t.jsx)(u,{size:"sm",className:"m-0 mr-[8px]","data-testid":"share-icon-image"}),(0,t.jsx)(s.default,{variant:"Body.S",color:"brandDark",className:"m-0 font-bold","data-testid":"share-button-text",children:"Share"})]});return i?(0,t.jsx)("div",{...n,children:o}):(0,t.jsx)("button",{...n,children:o})};var h=e.i(514514);let p=(0,h.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var f=e.i(729496);let x=(0,h.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var w=e.i(947118),b=e.i(737801),g=e.i(630986),v=e.i(393864),y=e.i(499167);let j=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":a,...s,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"Reddit"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M9.627 3.772a1.334 1.334 0 1 0-.008-.576 2.153 2.153 0 0 0-1.92 2.138v.007c-1.173.049-2.243.383-3.093.91a1.868 1.868 0 1 0-1.934 3.17c.061 2.168 2.424 3.913 5.331 3.913s5.273-1.747 5.332-3.917a1.869 1.869 0 1 0-1.939-3.169c-.857-.53-1.94-.864-3.124-.909v-.005c0-.793.59-1.452 1.355-1.56zM4.531 8.914c.031-.677.481-1.197 1.004-1.197s.923.55.892 1.227-.422.923-.946.923c-.523 0-.982-.275-.95-.953m5.941-1.197c.524 0 .974.52 1.004 1.197.032.678-.427.953-.95.953s-.915-.245-.946-.923.368-1.227.892-1.227m-.623 2.765c.099.01.161.112.123.203a2.133 2.133 0 0 1-3.938 0 .148.148 0 0 1 .123-.203 19 19 0 0 1 1.846-.09c.65 0 1.27.032 1.846.09"})]})),E=i.default.forwardRef((e,i)=>(0,t.jsx)(c.BaseIcon,{ref:i,icon:j,...e}));E.displayName="Reddit";let I=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":a,...s,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"LinkedIn"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsx)("g",{clipPath:"url(#a)",children:(0,t.jsx)("path",{fill:"currentColor",d:"M14.816 0H1.18C.528 0 0 .516 0 1.153v13.69A1.17 1.17 0 0 0 1.181 16h13.635c.653 0 1.184-.519 1.184-1.153V1.153C16 .516 15.469 0 14.816 0M4.746 13.634H2.373V5.997h2.375zM3.56 4.956a1.376 1.376 0 1 1-.004-2.751 1.376 1.376 0 0 1 .004 2.751m10.075 8.678h-2.372V9.922c0-.885-.015-2.025-1.234-2.025-1.234 0-1.422.966-1.422 1.962v3.775H6.238V5.997h2.274V7.04h.032c.315-.6 1.09-1.235 2.243-1.235 2.404 0 2.847 1.582 2.847 3.638z"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"a",children:(0,t.jsx)("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]})),C=i.default.forwardRef((e,i)=>(0,t.jsx)(c.BaseIcon,{ref:i,icon:I,...e}));C.displayName="LinkedIn";let N=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":a,...s,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"BlueSky"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M4.6 3.677C5.976 4.71 7.456 6.805 8 7.93c.543-1.124 2.023-3.219 3.4-4.252.992-.745 2.6-1.322 2.6.513 0 .367-.21 3.08-.333 3.52-.428 1.53-1.99 1.921-3.378 1.685 2.428.413 3.045 1.782 1.711 3.15-2.532 2.599-3.64-.652-3.924-1.485-.052-.153-.076-.224-.077-.164 0-.06-.024.011-.076.164-.284.833-1.392 4.084-3.925 1.485-1.333-1.368-.716-2.737 1.712-3.15C4.32 9.63 2.76 9.24 2.33 7.71c-.123-.44-.333-3.153-.333-3.52 0-1.835 1.609-1.258 2.602-.513"})]})),P=i.default.forwardRef((e,i)=>(0,t.jsx)(c.BaseIcon,{ref:i,icon:N,...e}));P.displayName="BlueSky";let k=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":a,...s,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"WhatsApp"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"m0 16 1.125-4.109A7.9 7.9 0 0 1 .067 7.927C.069 3.557 3.625 0 7.995 0c2.121 0 4.112.827 5.609 2.325a7.88 7.88 0 0 1 2.32 5.61c-.002 4.371-3.559 7.928-7.929 7.928a7.93 7.93 0 0 1-3.792-.966zm4.398-2.538c1.117.663 2.184 1.06 3.595 1.061a6.6 6.6 0 0 0 6.592-6.59A6.59 6.59 0 0 0 7.998 1.34a6.6 6.6 0 0 0-6.593 6.589c0 1.483.434 2.594 1.164 3.756l-.666 2.432zm7.591-3.643c-.049-.082-.181-.132-.38-.231-.198-.1-1.172-.579-1.354-.645-.181-.066-.313-.099-.446.1-.132.198-.512.644-.627.776s-.231.149-.43.05c-.197-.1-.836-.308-1.593-.984a6 6 0 0 1-1.102-1.372c-.115-.198-.012-.306.087-.404.09-.089.198-.232.297-.348.101-.114.134-.197.2-.33.066-.132.034-.248-.016-.347s-.446-1.074-.611-1.47c-.161-.387-.325-.335-.446-.34l-.38-.007a.73.73 0 0 0-.528.248c-.181.198-.693.677-.693 1.652 0 .976.71 1.918.808 2.05.1.132 1.397 2.133 3.384 2.991.473.204.842.326 1.13.417.474.151.906.13 1.248.079.38-.057 1.172-.48 1.337-.942.165-.463.165-.86.115-.943"})]})),R=i.default.forwardRef((e,i)=>(0,t.jsx)(c.BaseIcon,{ref:i,icon:k,...e}));R.displayName="WhatsApp";var S=e.i(37429);let T=({setIsOpen:e,setCopied:r,copied:a,title:n,imageUrl:o,subText:c})=>{let d,u,m,h,j,I=(d="content-shared",u=(0,w.useIsInitialized)(),m=(0,b.useEventAttributes)(),h=(0,g.useCMSAttributes)(),j=(0,i.useCallback)(({sharedMethod:e})=>{let t={createdDate:h?.createdDate,contentId:h?.contentId,publishDate:h?.publishDate,author:h?.author||"",collection:h?.collection,entitlements:h?.entitlements,sharedMethod:e,...m};if(!u)return void console.warn("MParticle is not initialized");try{window.mParticle?.logEvent?.(d,window.mParticle?.EventType?.Other,t),console.debug(`MParticle: Event "${d}" tracked`,t)}catch(e){console.error(`MParticle: Event "${d}" failed`,e)}return j},[h?.author,h?.contentId,h?.collection,h?.createdDate,h?.entitlements,h?.publishDate,m,u])),N=t=>{let i=encodeURIComponent(window.location.href),r=encodeURIComponent(n),a="";switch(t){case"twitter":a=`https://twitter.com/intent/tweet?url=${i}&text=${r}`;break;case"facebook":a=`https://www.facebook.com/sharer.php?u=${i}`;break;case"linkedin":a=`https://www.linkedin.com/sharing/share-offsite/?url=${i}`;break;case"reddit":a=`https://www.reddit.com/submit?url=${i}&title=${r}`;break;case"bluesky":a=`https://bsky.app/intent/compose?text=${r}%20${i}`;break;case"whatsapp":a=`https://wa.me/?text=${r}%20${i}`}a&&(window.open(a,"_blank"),I({sharedMethod:t}),e(!1))},k=[{key:"facebook",name:"Facebook",icon:v.Facebook,action:()=>N("facebook")},{key:"twitter",name:"X",icon:y.Twitter,action:()=>N("twitter")},{key:"reddit",name:"Reddit",icon:E,action:()=>N("reddit")},{key:"linkedin",name:"LinkedIn",icon:C,action:()=>N("linkedin")},{key:"bluesky",name:"Bluesky",icon:P,action:()=>N("bluesky")},{key:"whatsapp",name:"WhatsApp",icon:R,action:()=>N("whatsapp")},{key:"email",name:"Email",icon:p,action:()=>{let t=`mailto:?subject=${encodeURIComponent(n)}&body=${encodeURIComponent(window.location.href)}`;document.body.setAttribute("data-mailto-url",t),window.location.href=t,I({sharedMethod:"email"}),e(!1)}},{key:"copy",name:a?"Copied":"Copy link",icon:a?f.Check:x,action:()=>{"u">typeof navigator&&navigator.clipboard.writeText(window.location.href).then(()=>{r(!0),I({sharedMethod:"linkCopy"}),setTimeout(()=>e(!1),3e3),setTimeout(()=>r(!1),3400)})}}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[o&&(0,t.jsx)(S.default,{src:o,alt:"",className:"h-18 w-auto rounded-lg md:h-16.75"}),(0,t.jsx)("p",{className:(0,l.cn)("line-clamp-3 overflow-hidden text-ellipsis","h-18 text-xl leading-6 font-semibold","md:h-16.75 md:text-base md:leading-[140%] md:font-bold"),children:n})]}),c&&(0,t.jsx)(s.default,{variant:"Body.S",className:"m-0 mt-2 leading-[115%] text-gray-600",children:c}),(0,t.jsx)("hr",{className:"my-4 border-[#e9e9e9]"}),(0,t.jsx)("div",{className:"space-y-4","data-testid":"share-options-container",children:k.map(e=>(0,t.jsxs)("button",{onClick:e.action,className:"flex h-6 w-full cursor-pointer items-center rounded-md hover:bg-gray-50","data-testid":`share-${e.key}-button`,children:[(0,t.jsx)("div",{className:"mr-[8px] flex h-6 w-6 items-center justify-center","data-testid":`share-${e.key}-icon`,children:(0,t.jsx)(e.icon,{className:"w-6"})}),(0,t.jsx)(s.default,{variant:"Body.M","data-testid":`share-${e.key}-text`,children:e.name})]},e.key))})]})};var _=e.i(909232);let M=function({children:e,fallback:t,delayMs:r=0}){let[a,s]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{if(r>0){let e=setTimeout(()=>{s(!0)},r);return()=>clearTimeout(e)}s(!0)},[r]),a)?e:t||null};e.s(["Share",0,({type:e="link",title:n,imageUrl:l,authors:c})=>{let[d,u]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1),f=(0,_.useClientMobileMedia)(),x=c?.reduce((e,t,i)=>{if("string"==typeof t)return e;let r=`${t.firstName||""} ${t.lastName||""}`.trim(),a=i===c.length-1,s=i===c.length-2;return e+r+(a?"":s?" and ":", ")},""),w=()=>(0,t.jsx)(T,{setCopied:u,setIsOpen:p,copied:d,title:n,imageUrl:l,subText:x&&"By "+x});return(0,t.jsx)(M,{children:(0,t.jsx)("div",{className:"flex items-center justify-between","data-testid":"share-container",children:f?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{onClick:()=>p(!0),type:e}),(0,t.jsx)(o,{title:`Share this ${e}`,isOpen:!!f&&h,setIsOpen:p,"data-testid":"share-mobile-drawer",children:w()})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(a.Popover,{open:!f&&h,onOpenChange:p,"data-testid":"share-popover",children:[(0,t.jsx)(a.PopoverTrigger,{children:(0,t.jsx)(m,{asChild:!0,type:e})}),(0,t.jsxs)(a.PopoverContent,{arrowPadding:2,align:"end",alignOffset:-2,className:"relative z-50 w-[312px] rounded-2xl border-0 bg-white p-[16px] drop-shadow-lg/25","data-testid":"share-popover-content",children:[(0,t.jsx)(a.PopoverArrow,{width:21,height:14,className:"fill-white"}),(0,t.jsxs)("div",{className:"mb-[8px] flex items-center justify-between",children:[(0,t.jsxs)(s.default,{variant:"Body.L",className:"font-bold","data-testid":"share-title",children:["Share this ",e]}),(0,t.jsx)("button",{onClick:()=>p(!1),className:"cursor-pointer text-black hover:text-gray-700","data-testid":"share-close-button",children:(0,t.jsx)(r.X,{className:"h-6 w-6"})})]}),w()]})]})})})})}],914146)},126281,e=>{"use strict";var t=e.i(297647),i=e.i(477716),r=e.i(381477),a=e.i(889951),s=e.i(349262),n=e.i(475566),l=e.i(316078),o=e.i(747961);let c=(0,i.forwardRef)(({title:e,titleId:i,desc:r,descId:a,...s},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":i,"aria-describedby":a,...s,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:i,children:"No Data"}):e?(0,t.jsx)("title",{id:i,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,t.jsx)("path",{d:"M2 8c0-.368.224-.667.5-.667h3.991c.276 0 .5.299.5.667s-.224.667-.5.667H2.5c-.276 0-.5-.299-.5-.667M9.009 8c0-.368.224-.667.5-.667H13.5c.276 0 .5.299.5.667s-.224.667-.5.667H9.509c-.276 0-.5-.299-.5-.667"})})]})),d=i.default.forwardRef((e,i)=>(0,t.jsx)(o.BaseIcon,{ref:i,icon:c,...e}));d.displayName="NoData";var u=e.i(674885),m=e.i(617874);function h({node:e}){let[o,c]=(0,i.useState)(null),[h,p]=(0,i.useState)(!0),[f,x]=(0,i.useState)(null),w=(0,n.useAtomValue)(u.userUnitPreferenceAtom),b=(0,m.unitsSystemByName)(w)?.code,{data:g,error:v}=(0,r.default)(e.geocode?["currentConditions",e.geocode,b]:null,async([e,t,i])=>{try{return await (0,a.getCurrentObservations)({geocode:t,units:i,language:"en-US"})}catch(e){return console.error("Error fetching weather:",e),null}},{revalidateOnFocus:!1,dedupingInterval:3e5});(0,i.useEffect)(()=>{g?(c(Math.round(g.temperature)),p(!1)):v&&(x(v),p(!1))},[g,v]);let y=e.placeId?`/weather/today/l/${e.placeId}`:"#";return(0,t.jsxs)("a",{href:y,className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{className:"border-b-2 border-dotted border-black",children:e.locationName}),h?(0,t.jsx)("span",{className:"text-gray-400",children:"..."}):f?(0,t.jsx)("span",{className:"text-gray-400",children:"!"}):(0,t.jsxs)("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2",children:[g?.iconCode!==void 0&&(0,t.jsx)("span",{className:"flex items-center",children:"na"!==(s.ICON_CODE_MAP[g.iconCode]||"na")?(0,t.jsx)(l.WxIcon,{iconCode:g.iconCode,className:"lightBG","aria-label":s.ICON_CODE_MAP[g.iconCode]||`Weather condition ${g.iconCode}`,iconTheme:"lightBG",size:"sm"}):(0,t.jsx)(d,{className:"lightBG","aria-label":"Weather icon not available",size:"sm"})}),(0,t.jsxs)("span",{className:"font-medium",children:[o,"°"]})]})]})}e.s(["WeatherLocationTickerClientComponent",()=>h],126281)},711899,e=>{e.v(t=>Promise.all(["static/chunks/8198254d842f31ab.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);