(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[799],{7887:(e,t,o)=>{"use strict";o.d(t,{ArticleShareButton:()=>$});var r,n,l,s,a,c,i=o(7629),p=o(15545),f=o(17231),d=o(20979),m=o(95445),u=o(85492),h=o(35238);let v=e=>{let{isOpen:t,setIsOpen:o,children:r,title:n}=e;return(0,i.jsx)(u.lG,{open:t,children:(0,i.jsxs)(u.ZJ,{children:[(0,i.jsx)(u.LC,{className:"bg-black/50"}),(0,i.jsxs)(u.Cf,{className:(0,h.cn)("p-0 [&>button]:hidden","fixed inset-x-0 bottom-0 top-auto z-50 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-b-none rounded-t-3xl"),children:[(0,i.jsx)(u.L3,{className:"pt-4",children:(0,i.jsxs)("div",{className:"relative flex items-center justify-center pb-4",children:[(0,i.jsx)(m.Ay,{variant:"Body.L",className:"font-bold",children:n}),(0,i.jsx)("button",{onClick:()=>o(!1),className:"absolute right-5 top-0 cursor-pointer text-black hover:text-gray-700",children:(0,i.jsx)(f.A,{className:"h-6 w-6"})}),(0,i.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-[1px] bg-gray-200"})]})}),(0,i.jsx)("div",{className:"max-h-[70vh] overflow-y-auto p-4 pt-0",children:r})]})]})})};var E=["title","titleId","desc","descId"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{onClick:t,asChild:o=!1}=e,r={className:"flex cursor-pointer items-center text-sm text-gray-500",onClick:t,"data-testid":"share-button"},n=(0,i.jsxs)("div",{className:"align-center flex items-center","data-testid":"article-share-button",children:[(0,i.jsx)(C,{width:16,height:16,className:"m-0 mr-[8px]","data-testid":"share-icon-image"}),(0,i.jsx)(m.Ay,{variant:"Body.S",color:"brandDark",className:"m-0 font-bold","data-testid":"share-button-text",children:"Share"})]});return o?(0,i.jsx)("div",{...r,children:n}):(0,i.jsx)("button",{...r,children:n})};var x=o(51161);let g=(0,x.A)("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 w=o(57347);let F=(0,x.A)("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 O=o(80743),j=o(70567),k=o(65836),P=o(11113),I=o(583);let A=()=>{let e=(0,I.q)(),t="content-shared",o=(0,j.G)(),r=(0,k.N)({effectiveLocation:e}),n=(0,P.A)(),l=(0,p.useCallback)(e=>{let{sharedMethod:s}=e,a={createdDate:null==n?void 0:n.createdDate,contentId:null==n?void 0:n.contentId,publishDate:null==n?void 0:n.publishDate,author:(null==n?void 0:n.author)||"",collection:null==n?void 0:n.collection,entitlements:null==n?void 0:n.entitlements,sharedMethod:s,...r};if(!o)return void console.warn("MParticle is not initialized");try{O.A.logEvent(t,O.A.EventType.Other,a),console.debug('MParticle: Event "'.concat(t,'" tracked'),a)}catch(e){console.error('MParticle: Event "'.concat(t,'" failed'),e)}return l},[null==n?void 0:n.author,null==n?void 0:n.contentId,null==n?void 0:n.collection,null==n?void 0:n.createdDate,null==n?void 0:n.entitlements,null==n?void 0:n.publishDate,r,o]);return l};var M=o(57337),D=o(75520),S=["title","titleId","desc","descId"];function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{setIsOpen:t,setCopied:o,copied:r,shareText:n}=e,l=A(),s=e=>{let o=encodeURIComponent(window.location.href),r=encodeURIComponent(n),s="";switch(e){case"twitter":s="https://twitter.com/intent/tweet?url=".concat(o,"&text=").concat(r);break;case"facebook":s="https://www.facebook.com/sharer.php?u=".concat(o);break;case"linkedin":s="https://www.linkedin.com/sharing/share-offsite/?url=".concat(o);break;case"reddit":s="https://www.reddit.com/submit?url=".concat(o,"&title=").concat(r);break;case"bluesky":s="https://bsky.app/intent/compose?text=".concat(r,"%20").concat(o);break;case"whatsapp":s="https://wa.me/?text=".concat(r,"%20").concat(o)}s&&(window.open(s,"_blank"),l({sharedMethod:e}),t(!1))},a=[{key:"facebook",name:"Facebook",icon:M.A,action:()=>s("facebook")},{key:"twitter",name:"X",icon:D.A,action:()=>s("twitter")},{key:"reddit",name:"Reddit",icon:B,action:()=>s("reddit")},{key:"linkedin",name:"LinkedIn",icon:U,action:()=>s("linkedin")},{key:"bluesky",name:"Bluesky",icon:T,action:()=>s("bluesky")},{key:"whatsapp",name:"WhatsApp",icon:H,action:()=>s("whatsapp")},{key:"email",name:"Email",icon:g,action:()=>{let e="mailto:?subject=".concat(encodeURIComponent(n),"&body=").concat(encodeURIComponent(window.location.href));document.body.setAttribute("data-mailto-url",e),window.location.href=e,l({sharedMethod:"email"}),t(!1)}},{key:"copy",name:r?"Copied":"Copy link",icon:r?w.A:F,action:()=>{"undefined"!=typeof navigator&&navigator.clipboard.writeText(window.location.href).then(()=>{o(!0),l({sharedMethod:"linkCopy"}),setTimeout(()=>t(!1),3e3),setTimeout(()=>o(!1),3400)})}}];return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"space-y-4","data-testid":"share-options-container",children:a.map(e=>(0,i.jsxs)("button",{onClick:e.action,className:"flex h-6 w-full cursor-pointer items-center rounded-md hover:bg-gray-50","data-testid":"share-".concat(e.key,"-button"),children:[(0,i.jsx)("div",{className:"mr-[8px] flex h-6 w-6 items-center justify-center","data-testid":"share-".concat(e.key,"-icon"),children:(0,i.jsx)(e.icon,{className:"w-6"})}),(0,i.jsx)(m.Ay,{variant:"Body.M","data-testid":"share-".concat(e.key,"-text"),children:e.name})]},e.key))})})};var W=o(35319);let $=e=>{let{articleTitle:t}=e,[o,r]=(0,p.useState)(!1),[n,l]=(0,p.useState)(!1),s=(0,W.i)();return(0,i.jsx)("div",{className:"flex items-center justify-between","data-testid":"article-share-container",children:s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{onClick:()=>l(!0)}),(0,i.jsx)(v,{title:"Share on..",isOpen:n,setIsOpen:l,"data-testid":"share-mobile-drawer",children:(0,i.jsx)(q,{setCopied:r,setIsOpen:l,copied:o,shareText:t})})]}):(0,i.jsxs)(d.AM,{open:n,onOpenChange:l,"data-testid":"share-popover",children:[(0,i.jsx)(d.Wv,{children:(0,i.jsx)(y,{asChild:!0})}),(0,i.jsxs)(d.hl,{arrowPadding:2,align:"end",alignOffset:-2,className:"drop-shadow-lg/25 relative z-10 w-[312px] rounded-2xl border-0 bg-white p-[16px]","data-testid":"share-popover-content",children:[(0,i.jsx)(d.Rp,{width:21,height:14,className:"fill-white"}),(0,i.jsxs)("div",{className:"mb-[8px] flex items-center justify-between",children:[(0,i.jsx)(m.Ay,{variant:"Body.L",className:"font-bold","data-testid":"share-title",children:"Share on.."}),(0,i.jsx)("button",{onClick:()=>l(!1),className:"cursor-pointer text-black hover:text-gray-700","data-testid":"share-close-button",children:(0,i.jsx)(f.A,{className:"h-6 w-6"})})]}),(0,i.jsx)(q,{setCopied:r,setIsOpen:l,copied:o,shareText:t})]})]})})}},8807:(e,t,o)=>{"use strict";var r=o(71046).Y,n="undefined"!=typeof window?window.matchMedia:null;function l(e,t,o){var l,s=this;function a(e){s.matches=e.matches,s.media=e.media}n&&!o&&(l=n.call(window,e)),l?(this.matches=l.matches,this.media=l.media,l.addListener(a)):(this.matches=r(e,t),this.media=e),this.addListener=function(e){l&&l.addListener(e)},this.removeListener=function(e){l&&l.removeListener(e)},this.dispose=function(){l&&l.removeListener(a)}}e.exports=function(e,t,o){return new l(e,t,o)}},26142:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>y});var r,n,l,s,a,c,i,p,f,d,m,u,h,v,E=o(15545),b=["title","titleId","desc","descId"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";o.d(t,{AtomHydrationBoundaries:()=>p});var r=o(16775),n=o(22501),l=o(29148),s=o(15545),a=o(36183),c=o(83251);let i=e=>{let t=(0,a.Pj)(),o=(0,a.Xr)((0,s.useMemo)(()=>(0,c.eU)(null,(o,r)=>{for(let[o,n]of e)t.get(o)!==n&&(console.debug("Atom change detected, updating - store value:",t.get(o),"new value:",n),r(o,n))}),[e,t]));(0,s.useEffect)(()=>{o()},[o])},p=e=>(i([[r.m,e.pageId],[l.X,e.pageLocale],[n.$,e.metricsArticleData],[n.g,e.metricsLocationData]]),null)},35319:(e,t,o)=>{"use strict";o.d(t,{i:()=>n});var r=o(59979);let n=()=>!(0,r.Ub)({query:"(min-width: 768px)"})},48782:(e,t,o)=>{"use strict";o.d(t,{WeatherLocationTickerClientComponent:()=>d});var r=o(7629),n=o(15545),l=o(96361),s=o(24044),a=o(72084),c=o(31002),i=o(36183),p=o(27657),f=o(36706);function d(e){var t;let{node:o}=e,[d,m]=(0,n.useState)(null),[u,h]=(0,n.useState)(null),[v,E]=(0,n.useState)(!0),[b,C]=(0,n.useState)(null),y=(0,i.md)(p.Yt),x=null==(t=(0,f.xP)(y))?void 0:t.code,{data:g,error:w}=(0,l.Ay)(o.geocode?["currentConditions",o.geocode,x]:null,async e=>{let[t,o,r]=e;try{return await (0,s.z)({geocode:o,units:r,language:"en-US"})}catch(e){return console.error("Error fetching weather:",e),null}},{revalidateOnFocus:!1,dedupingInterval:3e5});(0,n.useEffect)(()=>{g?(m(Math.round(g.temperature)),h(c.ICON_CODE_MAP[g.iconCode]||"na"),E(!1)):w&&(C(w),E(!1))},[g,w]);let{data:F}=(0,l.Ay)(u?"icon-".concat(u):null,()=>(0,a.T)(u||"na"),{revalidateOnFocus:!1,dedupingInterval:1/0}),O=o.placeId?"/weather/today/l/".concat(o.placeId):"#";return(0,r.jsxs)("a",{href:O,className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"border-b-2 border-dotted border-black",children:o.locationName}),v?(0,r.jsx)("span",{className:"text-gray-400",children:"..."}):b?(0,r.jsx)("span",{className:"text-gray-400",children:"!"}):(0,r.jsxs)("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2",children:[F&&(0,r.jsx)("span",{className:"flex items-center",children:(0,r.jsx)(F,{className:"lightBG",width:12,height:12})}),(0,r.jsxs)("span",{className:"font-medium",children:[d,"\xb0"]})]})]})}},50799:(e,t,o)=>{Promise.resolve().then(o.bind(o,26142)),Promise.resolve().then(o.bind(o,37765)),Promise.resolve().then(o.bind(o,4173)),Promise.resolve().then(o.bind(o,10353)),Promise.resolve().then(o.bind(o,48702)),Promise.resolve().then(o.bind(o,11429)),Promise.resolve().then(o.bind(o,84281)),Promise.resolve().then(o.bind(o,84002)),Promise.resolve().then(o.bind(o,64213)),Promise.resolve().then(o.bind(o,30793)),Promise.resolve().then(o.bind(o,67821)),Promise.resolve().then(o.bind(o,82203)),Promise.resolve().then(o.bind(o,92947)),Promise.resolve().then(o.bind(o,36605)),Promise.resolve().then(o.bind(o,60731)),Promise.resolve().then(o.bind(o,7887)),Promise.resolve().then(o.bind(o,33593)),Promise.resolve().then(o.bind(o,15863)),Promise.resolve().then(o.bind(o,38435)),Promise.resolve().then(o.bind(o,84870)),Promise.resolve().then(o.bind(o,48782))},57337:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r,n=o(15545),l=["title","titleId","desc","descId"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";o.d(t,{Ub:()=>M});var r=o(15545),n=o(8807),l=o.n(n),s=/[A-Z]/g,a=/^ms-/,c={};function i(e){return"-"+e.toLowerCase()}let p=function(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(s,i);return c[e]=a.test(t)?"-"+t:t};var f=o(70724),d=o.n(f);let m=d().oneOfType([d().string,d().number]),u={all:d().bool,grid:d().bool,aural:d().bool,braille:d().bool,handheld:d().bool,print:d().bool,projection:d().bool,screen:d().bool,tty:d().bool,tv:d().bool,embossed:d().bool},{type:h,...v}={orientation:d().oneOf(["portrait","landscape"]),scan:d().oneOf(["progressive","interlace"]),aspectRatio:d().string,deviceAspectRatio:d().string,height:m,deviceHeight:m,width:m,deviceWidth:m,color:d().bool,colorIndex:d().bool,monochrome:d().bool,resolution:m,type:Object.keys(u)},E={minAspectRatio:d().string,maxAspectRatio:d().string,minDeviceAspectRatio:d().string,maxDeviceAspectRatio:d().string,minHeight:m,maxHeight:m,minDeviceHeight:m,maxDeviceHeight:m,minWidth:m,maxWidth:m,minDeviceWidth:m,maxDeviceWidth:m,minColor:d().number,maxColor:d().number,minColorIndex:d().number,maxColorIndex:d().number,minMonochrome:d().number,maxMonochrome:d().number,minResolution:m,maxResolution:m,...v};var b={all:{...u,...E}};let C=e=>`not ${e}`,y=(e,t)=>{let o=p(e);return("number"==typeof t&&(t=`${t}px`),!0===t)?o:!1===t?C(o):`(${o}: ${t})`},x=e=>e.join(" and "),g=e=>{let t=[];return Object.keys(b.all).forEach(o=>{let r=e[o];null!=r&&t.push(y(o,r))}),x(t)},w=(0,r.createContext)(void 0),F=e=>e.query||g(e),O=e=>{if(e)return Object.keys(e).reduce((t,o)=>(t[p(o)]=e[o],t),{})},j=()=>{let e=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{e.current=!0},[]),e.current},k=e=>{let t=(0,r.useContext)(w),o=()=>O(e)||O(t),[n,l]=(0,r.useState)(o);return(0,r.useEffect)(()=>{let e=o();(function(e,t){if(e===t)return!0;if(!e||!t)return!1;let o=Object.keys(e),r=Object.keys(t),n=o.length;if(r.length!==n)return!1;for(let r=0;r{let t=()=>F(e),[o,n]=(0,r.useState)(t);return(0,r.useEffect)(()=>{let e=t();o!==e&&n(e)},[e]),o},I=(e,t)=>{let o=()=>l()(e,t||{},!!t),[n,s]=(0,r.useState)(o),a=j();return(0,r.useEffect)(()=>{if(a){let e=o();return s(e),()=>{e&&e.dispose()}}},[e,t]),n},A=e=>{let[t,o]=(0,r.useState)(e.matches);return(0,r.useEffect)(()=>{let t=e=>{o(e.matches)};return e.addListener(t),o(e.matches),()=>{e.removeListener(t)}},[e]),t},M=(e,t,o)=>{let n=k(t),l=P(e);if(!l)throw Error("Invalid or missing MediaQuery!");let s=I(l,n),a=A(s),c=j();return(0,r.useEffect)(()=>{c&&o&&o(a)},[a]),(0,r.useEffect)(()=>()=>{s&&s.dispose()},[]),a}},60016:(e,t,o)=>{"use strict";var r=o(86851);function n(){}function l(){}l.resetWarningCache=n,e.exports=function(){function e(e,t,o,n,l,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:n};return o.PropTypes=o,o}},70724:(e,t,o)=>{e.exports=o(60016)()},71046:(e,t)=>{"use strict";t.Y=function(e,t){return(function(e){return e.split(",").map(function(e){var t=(e=e.trim()).match(o),l=t[1],s=t[2],a=t[3]||"",c={};return c.inverse=!!l&&"not"===l.toLowerCase(),c.type=s?s.toLowerCase():"all",c.expressions=(a=a.match(/\([^\)]+\)/g)||[]).map(function(e){var t=e.match(r),o=t[1].toLowerCase().match(n);return{modifier:o[1],feature:o[2],value:t[2]}}),c})})(e).some(function(e){var o=e.inverse,r="all"===e.type||t.type===e.type;if(r&&o||!(r||o))return!1;var n=e.expressions.every(function(e){var o=e.feature,r=e.modifier,n=e.value,l=t[o];if(!l)return!1;switch(o){case"orientation":case"scan":return l.toLowerCase()===n.toLowerCase();case"width":case"height":case"device-width":case"device-height":n=i(n),l=i(l);break;case"resolution":n=c(n),l=c(l);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":n=a(n),l=a(l);break;case"grid":case"color":case"color-index":case"monochrome":n=parseInt(n,10)||1,l=parseInt(l,10)||0}switch(r){case"min":return l>=n;case"max":return l{"use strict";o.d(t,{A:()=>a});var r,n=o(15545),l=["title","titleId","desc","descId"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);