(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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),o=e.i(477716),a=e.i(482317),n=e.i(287638),r=e.i(368847),s=e.i(367810),i=e.i(632137);let l=({isOpen:e,setIsOpen:o,children:n,title:l})=>(0,t.jsx)(s.Dialog,{open:e,children:(0,t.jsxs)(s.DialogPortal,{children:[(0,t.jsx)(s.DialogOverlay,{className:"bg-black/50"}),(0,t.jsxs)(s.DialogContent,{className:(0,i.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)(s.DialogTitle,{className:"pt-4",children:(0,t.jsxs)("div",{className:"relative flex items-center justify-center pb-2",children:[(0,t.jsx)(r.default,{variant:"Body.M",className:"font-bold",children:l}),(0,t.jsx)("button",{onClick:()=>o(!1),className:"absolute top-0 right-5 cursor-pointer text-black hover:text-gray-700",children:(0,t.jsx)(a.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:n})]})]})});var c=e.i(747961);let d=(0,o.forwardRef)(({title:e,titleId:o,desc:a,descId:n,...r},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":o,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"Share"}):e?(0,t.jsx)("title",{id:o,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=o.default.forwardRef((e,o)=>(0,t.jsx)(c.BaseIcon,{ref:o,icon:d,...e}));u.displayName="Share";let m=({onClick:e=()=>void 0,asChild:o=!1,className:a,type:n})=>{let s={className:(0,i.cn)("flex cursor-pointer items-center text-sm text-gray-500","article"===n&&"px-3 py-2 rounded-lg border border-[#676767] bg-transparent",a),onClick:e,"data-testid":"share-button"},l=(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)(r.default,{variant:"Body.S",color:"brandDark",className:"m-0 font-bold","data-testid":"share-button-text",children:"Share"})]});return o?(0,t.jsx)("div",{...s,children:l}):(0,t.jsx)("button",{...s,children:l})};var p=e.i(514514);let h=(0,p.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 b=e.i(729496);let f=(0,p.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 g=e.i(947118),x=e.i(737801),v=e.i(630986),w=e.i(393864),y=e.i(499167);let C=(0,o.forwardRef)(({title:e,titleId:o,desc:a,descId:n,...r},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":o,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"Reddit"}):e?(0,t.jsx)("title",{id:o,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"})]})),j=o.default.forwardRef((e,o)=>(0,t.jsx)(c.BaseIcon,{ref:o,icon:C,...e}));j.displayName="Reddit";let S=(0,o.forwardRef)(({title:e,titleId:o,desc:a,descId:n,...r},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":o,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"LinkedIn"}):e?(0,t.jsx)("title",{id:o,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"})})})]})),I=o.default.forwardRef((e,o)=>(0,t.jsx)(c.BaseIcon,{ref:o,icon:S,...e}));I.displayName="LinkedIn";let k=(0,o.forwardRef)(({title:e,titleId:o,desc:a,descId:n,...r},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":o,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"BlueSky"}):e?(0,t.jsx)("title",{id:o,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"})]})),N=o.default.forwardRef((e,o)=>(0,t.jsx)(c.BaseIcon,{ref:o,icon:k,...e}));N.displayName="BlueSky";let A=(0,o.forwardRef)(({title:e,titleId:o,desc:a,descId:n,...r},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":o,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"WhatsApp"}):e?(0,t.jsx)("title",{id:o,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"})]})),B=o.default.forwardRef((e,o)=>(0,t.jsx)(c.BaseIcon,{ref:o,icon:A,...e}));B.displayName="WhatsApp";var E=e.i(37429);let M=({setIsOpen:e,setCopied:a,copied:n,title:s,imageUrl:l,subText:c})=>{let d,u,m,p,C,S=(d="content-shared",u=(0,g.useIsInitialized)(),m=(0,x.useEventAttributes)(),p=(0,v.useCMSAttributes)(),C=(0,o.useCallback)(({sharedMethod:e})=>{let t={createdDate:p?.createdDate,contentId:p?.contentId,publishDate:p?.publishDate,author:p?.author||"",collection:p?.collection,entitlements:p?.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 C},[p?.author,p?.contentId,p?.collection,p?.createdDate,p?.entitlements,p?.publishDate,m,u])),k=t=>{let o=encodeURIComponent(window.location.href),a=encodeURIComponent(s),n="";switch(t){case"twitter":n=`https://twitter.com/intent/tweet?url=${o}&text=${a}`;break;case"facebook":n=`https://www.facebook.com/sharer.php?u=${o}`;break;case"linkedin":n=`https://www.linkedin.com/sharing/share-offsite/?url=${o}`;break;case"reddit":n=`https://www.reddit.com/submit?url=${o}&title=${a}`;break;case"bluesky":n=`https://bsky.app/intent/compose?text=${a}%20${o}`;break;case"whatsapp":n=`https://wa.me/?text=${a}%20${o}`}n&&(window.open(n,"_blank"),S({sharedMethod:t}),e(!1))},A=[{key:"facebook",name:"Facebook",icon:w.Facebook,action:()=>k("facebook")},{key:"twitter",name:"X",icon:y.Twitter,action:()=>k("twitter")},{key:"reddit",name:"Reddit",icon:j,action:()=>k("reddit")},{key:"linkedin",name:"LinkedIn",icon:I,action:()=>k("linkedin")},{key:"bluesky",name:"Bluesky",icon:N,action:()=>k("bluesky")},{key:"whatsapp",name:"WhatsApp",icon:B,action:()=>k("whatsapp")},{key:"email",name:"Email",icon:h,action:()=>{let t=`mailto:?subject=${encodeURIComponent(s)}&body=${encodeURIComponent(window.location.href)}`;document.body.setAttribute("data-mailto-url",t),window.location.href=t,S({sharedMethod:"email"}),e(!1)}},{key:"copy",name:n?"Copied":"Copy link",icon:n?b.Check:f,action:()=>{"u">typeof navigator&&navigator.clipboard.writeText(window.location.href).then(()=>{a(!0),S({sharedMethod:"linkCopy"}),setTimeout(()=>e(!1),3e3),setTimeout(()=>a(!1),3400)})}}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[l&&(0,t.jsx)(E.default,{src:l,alt:"",className:"h-18 w-auto rounded-lg md:h-16.75"}),(0,t.jsx)("p",{className:(0,i.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:s})]}),c&&(0,t.jsx)(r.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:A.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)(r.default,{variant:"Body.M","data-testid":`share-${e.key}-text`,children:e.name})]},e.key))})]})};var L=e.i(909232);let _=function({children:e,fallback:t,delayMs:a=0}){let[n,r]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{if(a>0){let e=setTimeout(()=>{r(!0)},a);return()=>clearTimeout(e)}r(!0)},[a]),n)?e:t||null};e.s(["Share",0,({type:e="link",title:s,imageUrl:i,authors:c})=>{let[d,u]=(0,o.useState)(!1),[p,h]=(0,o.useState)(!1),b=(0,L.useClientMobileMedia)(),f=c?.reduce((e,t,o)=>{if("string"==typeof t)return e;let a=`${t.firstName||""} ${t.lastName||""}`.trim(),n=o===c.length-1,r=o===c.length-2;return e+a+(n?"":r?" and ":", ")},""),g=()=>(0,t.jsx)(M,{setCopied:u,setIsOpen:h,copied:d,title:s,imageUrl:i,subText:f&&"By "+f});return(0,t.jsx)(_,{children:(0,t.jsx)("div",{className:"flex items-center justify-between","data-testid":"share-container",children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{onClick:()=>h(!0),type:e}),(0,t.jsx)(l,{title:`Share this ${e}`,isOpen:!!b&&p,setIsOpen:h,"data-testid":"share-mobile-drawer",children:g()})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(n.Popover,{open:!b&&p,onOpenChange:h,"data-testid":"share-popover",children:[(0,t.jsx)(n.PopoverTrigger,{children:(0,t.jsx)(m,{asChild:!0,type:e})}),(0,t.jsxs)(n.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)(n.PopoverArrow,{width:21,height:14,className:"fill-white"}),(0,t.jsxs)("div",{className:"mb-[8px] flex items-center justify-between",children:[(0,t.jsxs)(r.default,{variant:"Body.L",className:"font-bold","data-testid":"share-title",children:["Share this ",e]}),(0,t.jsx)("button",{onClick:()=>h(!1),className:"cursor-pointer text-black hover:text-gray-700","data-testid":"share-close-button",children:(0,t.jsx)(a.X,{className:"h-6 w-6"})})]}),g()]})]})})})})}],914146)},222136,e=>{"use strict";let t=(0,e.i(751931).atom)(null);e.s(["commentCountAtom",0,t])},135740,e=>{"use strict";var t=e.i(297647),o=e.i(475566),a=e.i(477716),n=e.i(368847),r=e.i(747961);let s=(0,a.forwardRef)(({title:e,titleId:o,desc:a,descId:n,...r},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":o,"aria-describedby":n,...r,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:o,children:"Description"}):e?(0,t.jsx)("title",{id:o,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M8.87 15 8 14.5l2-3.5h3a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h4.5v1H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2.42z"}),(0,t.jsx)("path",{d:"M12 5H4v1h8zM9 8H4v1h5z"})]})]})),i=a.default.forwardRef((e,o)=>(0,t.jsx)(r.BaseIcon,{ref:o,icon:s,...e}));i.displayName="Description";var l=e.i(632137),c=e.i(222136);e.s(["ViewCommentsButton",0,({articleId:e,onClick:r,className:s,isMobile:d=!1})=>{let u=(0,o.useAtomValue)(c.commentCountAtom),[m,p]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(null!==u)p(!0);else{let e=setTimeout(()=>{p(!0)},3e3);return()=>clearTimeout(e)}},[u]),(0,a.useEffect)(()=>{null===u&&p(!1)},[u]);let h=!d&&0!==u;return m?(0,t.jsx)("button",{className:(0,l.cn)("flex cursor-pointer items-center px-3 py-2 text-sm text-gray-500","rounded-lg border border-[#676767] bg-transparent",null===u?"hidden":"flex",s),onClick:()=>{let e=document.getElementById("openweb-comments");if(!e){let t=document.querySelectorAll('[id^="openweb-video-comments-"]');t.length>0&&(e=t[0])}if(!e){let t=document.querySelectorAll('[id*="openweb"]');t.length>0&&(e=t[0])}e&&e.scrollIntoView({behavior:"smooth",block:"start"}),r?.()},"data-testid":"view-comments-button",children:(0,t.jsxs)("div",{className:"flex items-center gap-1","data-testid":"view-comments-button-content",children:[(0,t.jsx)(i,{size:"sm",className:"m-0","data-testid":"comments-icon"}),h&&(0,t.jsx)(n.default,{variant:"Body.S",color:"brandDark",className:"m-0 font-bold","data-testid":"view-text",children:null!==u&&u>=3?"View all":"View"}),0!==u&&(0,t.jsx)(n.default,{variant:"Body.S",color:"brandDark",className:"m-0 font-bold","data-testid":"comments-count",children:u}),(0,t.jsx)(n.default,{variant:"Body.S",color:"brandDark",className:"m-0 font-bold","data-testid":"comments-text",children:0===u?"Start the conversation":1===u?"comment":"comments"})]})}):null}],135740)},447827,109339,470015,e=>{"use strict";e.i(694914);let t=(0,e.i(695881).createLogger)("OpenWebSdkClient"),o=new class{baseUrl;constructor(){this.baseUrl="https://upsx.weather.com"}async getAccount(e){let o=e?.maxRetries||3,a=e?.delayMs||500,n=null;for(let e=1;esetTimeout(e,o));continue}throw n}let l=await i.json();return t.info(`getAccount - Account found (attempt ${e}/${o}):`,l),l}catch(r){if(t.error(`getAccount - Error (attempt ${e}/${o}):`,r),r instanceof TypeError&&r.message.includes("fetch"))return t.error(`getAccount - Network error, treating as no account (attempt ${e}/${o})`),null;if(n=r instanceof Error?r:Error(String(r)),esetTimeout(e,o));continue}throw n}if(n)throw n;return null}async getCodeB(e,o,a,n){let r=n?.maxRetries||2,s=n?.delayMs||500,i=null,l=e?e.split("?")[0]:"";if(!l)throw Error("Invalid codeA: codeA is required to complete the SSO process");for(let e=1;esetTimeout(e,o));continue}throw i}let m=await u.json();return t.info(`getCodeB - Success, codeB received (attempt ${e}/${r+1}):`,m.codeB?`codeB ${m.codeB}`:"missing"),m.codeB}catch(o){if(t.error(`getCodeB - Error (attempt ${e}/${r+1}):`,o),i=o instanceof Error?o:Error(String(o)),esetTimeout(e,o));continue}throw i}if(i)throw i;return""}};e.s(["openWebClient",0,o],447827);var a=e.i(297647),n=e.i(477716),r=e.i(747961);let s=(0,n.forwardRef)(({title:e,titleId:t,desc:o,descId:n,...r},s)=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-label":"The Weather Company - Home",viewBox:"0 0 432.96 399.36",ref:s,"aria-labelledby":t,"aria-describedby":n,...r,children:[o?(0,a.jsx)("desc",{id:n,children:o}):null,void 0===e?(0,a.jsx)("title",{id:t,children:"The Weather Channel"}):e?(0,a.jsx)("title",{id:t,children:e}):null,(0,a.jsx)("path",{d:"M152.48 347.3c0 4.02 2.48 6.71 5.9 6.71 2.51 0 5.01-1.3 7.01-3.52l.21-11.03h-.62c-9.31 0-12.5 1.74-12.5 7.84M165.2 144c0-3.81-.4-5.81-1.61-7.72-1.3-1.99-3.2-3.01-5.9-3.01-5.12 0-8.04 4.02-8.04 11.13v.19h15.54V144zm7.82 109.49c0 4.01 2.52 6.72 5.94 6.72 2.5 0 5.01-1.32 7.01-3.52l.21-11.03h-.6c-9.34.01-12.56 1.73-12.56 7.83m-34.34-17.25c0-3.81-.41-5.8-1.6-7.7-1.32-2.02-3.22-3.03-5.94-3.03-5.11 0-8 4.03-8 11.14v.19h15.53v-.6zM316 319.32c-5.1 0-8.01 4.02-8.01 11.15v.19h15.54v-.59c0-3.82-.39-5.83-1.59-7.72-1.32-2.02-3.22-3.03-5.94-3.03"}),(0,a.jsx)("path",{d:"M372.65 228.54c-1.33-.7-2.41-1.01-3.91-1.01-3.02 0-5.74 1.4-8.21 4.3v36.3h-13.46v-34.3c0-6.9-.8-12.13-1.9-15.02l12.02-3.24c1.21 2.11 1.9 4.44 2.12 7.32 1.92-2.59 5.09-5.4 7.63-6.51 1.1-.49 2.9-.81 4.38-.81 2.02 0 2.92.2 5.03 1.11zM360.2 363.13c-5.73 0-10.32-2.69-11.94-7.03-1.01-2.59-1.21-4.18-1.21-11.5v-38.29c0-6.72-.19-10.82-.69-15.45l13.73-3.11c.5 2.81.71 6.14.71 13.33v40c0 8.82.1 10.02.88 11.42.5.89 1.62 1.39 2.72 1.39.5 0 .79 0 1.49-.18l2.3 8.02c-2.29.9-5.08 1.4-7.99 1.4m-22.42-116.48h-29.67v.44c0 7.91 3.91 12.41 10.83 12.41 4.61 0 8.92-1.71 13.03-5.11l5.21 8.04c-5.91 4.8-12.12 7.1-19.34 7.1-14.73 0-24.25-10.43-24.25-26.55 0-9.24 1.89-15.35 6.4-20.35 4.22-4.72 9.33-6.92 16.14-6.92 5.92 0 11.53 1.99 14.85 5.4 4.7 4.83 6.81 11.76 6.81 22.47v3.07zm-.32 93.83H307.8v.41c0 7.9 3.92 12.42 10.83 12.42 4.62 0 8.91-1.72 13.02-5.12l5.23 8.04c-5.92 4.8-12.13 7.1-19.35 7.1-14.74 0-24.26-10.43-24.26-26.55 0-9.23 1.9-15.35 6.4-20.35 4.22-4.73 9.33-6.92 16.14-6.92 5.9 0 11.53 2.01 14.84 5.42 4.71 4.8 6.81 11.73 6.81 22.43zm-50.78-72.34h-13.13v-34.5c0-5.09-1.4-7.01-5.21-7.01-3.31 0-7.63 2.01-10.62 4.73v36.78h-13.63v-59.35c0-4.82-.4-9.61-1-11.73l13.73-3.21c.59 2.81.9 7.61.9 12.52v10.22c0 1.61-.2 3.72-.2 4.32 3.51-3.31 9.31-5.52 14.54-5.52 6.51 0 11.72 2.81 13.33 7.31.99 2.94 1.3 4.63 1.3 9.54v35.9zm-2.73 93.8h-13.23v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.22 1.82-9.31 4.62v36.28h-13.45v-37.19c0-4.41-.6-8.61-1.79-12.04l11.95-3.4c1.18 2.1 1.88 4.31 1.88 6.41 2.01-1.38 3.72-2.6 5.91-3.81 2.73-1.39 6.23-2.19 9.22-2.19 5.71 0 10.73 2.99 12.32 7.42.74 1.9 1.02 4.11 1.02 7.31v37.49zm-57.3-92.61c-6.81 0-12.23-2.99-13.83-7.52-.8-2.23-.9-3.23-.9-7.92v-27.88h-5.11v-9.21h5.11c0-5 0-8.34.5-12.13l13.64-3.4c-.5 4.69-.8 10.32-.8 15.54h12.04l-3.42 9.21h-8.61v25.78c0 6.51 1.19 8.22 5.81 8.22 1.2 0 2.41-.32 4.81-1.01l1.7 8.01c-3.94 1.61-7.43 2.31-10.94 2.31m4.99 92.61H218.4v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.19 1.82-9.32 4.62v36.28h-13.44v-37.19c0-4.41-.58-8.61-1.77-12.04l11.92-3.4c1.2 2.1 1.91 4.31 1.91 6.41 1.99-1.38 3.69-2.6 5.9-3.81 2.7-1.39 6.21-2.19 9.21-2.19 5.72 0 10.74 2.99 12.33 7.42.71 1.9 1.02 4.11 1.02 7.31v37.49zm-55.28-91.9c-11.45 0-17.65-5.83-17.65-16.06 0-12.03 8.31-17.63 24.63-17.63 1.01 0 1.92 0 3.01.09v-2.11c0-5.69-1.09-7.61-6-7.61-4.3 0-9.32 2.13-14.83 5.85l-5.72-9.65c2.72-1.71 4.71-2.71 8.34-4.19 5-2.12 9.32-3.01 14.02-3.01 8.61 0 14.54 3.21 16.55 8.91.69 2.1.99 3.7.89 9.22l-.29 17.26v.9c0 5.5.89 7.58 4.8 10.51l-7.11 8.22c-3.11-1.31-5.92-3.59-7.22-6.22-1 .98-2.11 2.01-3.11 2.71-2.51 1.8-6.11 2.81-10.31 2.81m.06 94.51c-3.1-1.31-5.92-3.61-7.21-6.23-1.01 1.02-2.11 2.01-3.11 2.72-2.51 1.81-6.11 2.8-10.33 2.8-11.43 0-17.65-5.82-17.65-16.02 0-12.04 8.33-17.67 24.67-17.67 1 0 1.91 0 3.01.1v-2.08c0-5.74-1.1-7.63-6.03-7.63-4.32 0-9.34 2.11-14.83 5.82l-5.73-9.64c2.72-1.7 4.73-2.69 8.34-4.19 5.02-2.12 9.32-3.01 14.05-3.01 8.59 0 14.52 3.19 16.51 8.93.72 2.1 1.03 3.72.92 9.21l-.29 17.26v.89c0 5.52.9 7.6 4.82 10.52zM108.4 242.98c0-9.24 1.9-15.35 6.41-20.35 4.22-4.72 9.33-6.92 16.15-6.92 5.91 0 11.54 1.99 14.84 5.4 4.72 4.83 6.83 11.76 6.83 22.47v3.08h-29.68v.44c0 7.91 3.92 12.41 10.82 12.41 4.62 0 8.91-1.71 13.03-5.11l5.22 8.04c-5.92 4.8-12.14 7.1-19.36 7.1-14.73-.01-24.26-10.44-24.26-26.56m20.64 118.96H115.9v-34.5c0-5.1-1.4-7-5.2-7-3.31 0-7.63 1.99-10.63 4.71v36.79H86.44V302.6c0-4.83-.41-9.62-1.01-11.74l13.75-3.2c.58 2.82.89 7.62.89 12.56v10.19c0 1.6-.2 3.72-.2 4.33 3.5-3.32 9.32-5.53 14.53-5.53 6.52 0 11.71 2.81 13.32 7.33 1.01 2.92 1.32 4.61 1.32 9.54zm-69.54 1.19c-9.63 0-17.05-3.09-22.76-9.61-5.62-6.31-8.43-14.73-8.43-24.96 0-8.72 1.52-15.64 4.7-21.65 5.44-10.12 15.46-16.14 26.69-16.14 6.91 0 13.82 2.21 17.64 5.52l-6.32 9.51c-3.51-2.6-7.22-3.9-11.12-3.9-4.72 0-9.33 2.29-11.83 6.01-2.7 4-3.91 9.83-3.91 17.94 0 9.52.79 14.83 2.89 18.65 2.81 5.12 7.42 7.81 13.44 7.81 4.1 0 7.82-1.19 11.93-4.49l6.42 8.81c-5.52 4.49-11.41 6.5-19.34 6.5M40.56 198.45l6 27.48c2.81 13.04 3.72 22.95 3.72 22.95.29-2.7 1.5-12.64 3.59-22.25l6.21-28.18h15.35l6.44 31.19c1.3 6.51 3 18.45 3 18.45.19-2.22 2.39-16.36 3.8-23.18l5.72-26.47h14.73l-16.83 70.27H76.94l-6.23-28.36c-2.1-9.32-3.11-18.34-3.29-20.24 0 0-1.2 9.82-3.34 20.05l-5.8 28.55H42.36l-16.65-70.27h14.85zm-14.34-92.24h50.22l-2.3 11.64H57.5v58.04H43.25v-58.04H26.22zm69.95-4.61c.59 2.81.9 7.62.9 12.53v10.23c0 1.58-.21 3.71-.21 4.31 3.51-3.31 9.32-5.53 14.53-5.53 6.52 0 11.73 2.8 13.35 7.32 1 2.9 1.3 4.61 1.3 9.53v35.89H112.9V141.4c0-5.11-1.4-7.01-5.23-7.01-3.31 0-7.61 1.99-10.61 4.71v36.79H83.44v-59.35c0-4.82-.41-9.61-1.02-11.73zm45.17 28.78c4.21-4.72 9.32-6.94 16.14-6.94 5.9 0 11.52 2.03 14.84 5.44 4.71 4.82 6.81 11.71 6.81 22.45v3.11h-29.66v.41c0 7.92 3.9 12.42 10.81 12.42 4.6 0 8.92-1.69 13.03-5.12l5.23 8.04c-5.93 4.79-12.15 7.1-19.35 7.1-14.75 0-24.27-10.43-24.27-26.54.01-9.26 1.9-15.37 6.42-20.37M.82.04v399.28h399.26V.04z"}),(0,a.jsx)("path",{d:"M316.33 225.51c-5.11 0-8.03 4.03-8.03 11.14v.19h15.55v-.6c0-3.81-.41-5.8-1.61-7.7-1.3-2.02-3.21-3.03-5.91-3.03m101.57-211h2.16c1.87 0 3.69-.1 3.69-2.32 0-1.91-1.65-2.13-3.08-2.13h-2.77zm-2.09-6.16h5.21c3.27 0 4.83 1.3 4.83 3.94 0 2.51-1.59 3.56-3.65 3.78l3.97 6.1h-2.25l-3.75-5.94h-2.26v5.94h-2.09V8.35zm4.51 17.03c5.4 0 9.72-4.38 9.72-10.11 0-5.72-4.32-10.11-9.72-10.11-5.43 0-9.72 4.39-9.72 10.11 0 5.73 4.28 10.11 9.72 10.11m0-21.93c6.42 0 11.82 5.08 11.82 11.82s-5.4 11.82-11.82 11.82c-6.45 0-11.82-5.08-11.82-11.82 0-6.73 5.37-11.82 11.82-11.82"})]})),i=n.default.forwardRef((e,t)=>(0,a.jsx)(r.BaseIcon,{ref:t,icon:s,...e}));function l({isOpen:e,onClose:t}){return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,a.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,a.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 pt-7 shadow-lg",children:[(0,a.jsx)("button",{onClick:t,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close banner",children:"×"}),(0,a.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,a.jsx)(i,{className:"h-10 w-auto text-blue-600"})}),(0,a.jsx)("h3",{className:"mb-4 text-center text-lg font-medium text-gray-900",children:"Sign in to join the conversation"}),(0,a.jsx)("button",{onClick:()=>{window.location.href="/login"},className:"w-full rounded-md bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:"Sign in"})]})})]}):null}i.displayName="TWC",e.s(["SignInModal",()=>l],109339);var c=e.i(877957),d=e.i(705482);function u({isOpen:e,onClose:t,displayName:o,onDisplayNameChange:n,onSubmit:r,isSubmitting:s,error:l}){return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,a.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,a.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 shadow-xl",children:[(0,a.jsx)("button",{onClick:t,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close dialog",children:"×"}),(0,a.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,a.jsx)(i,{className:"h-10 w-auto text-blue-600"})}),(0,a.jsx)("h2",{className:"mb-2 text-center text-xl font-semibold text-gray-900",children:"Create a display name"}),(0,a.jsx)("p",{className:"mb-6 text-left text-sm text-gray-600",children:"Your display name is the name others will see when you comment."}),(0,a.jsxs)("form",{onSubmit:r,className:"space-y-4",children:[l&&(0,a.jsx)("div",{className:"rounded-md bg-red-50 p-3 text-sm text-red-700",children:l}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{htmlFor:"displayName",className:"block text-sm font-medium text-gray-700",children:"Display Name"}),(0,a.jsx)(d.Input,{id:"displayName",type:"text",value:o,onChange:e=>n(e.target.value),placeholder:"Enter your display name",required:!0,minLength:3,maxLength:30,className:"w-full"})]}),(0,a.jsx)(c.Button,{type:"submit",disabled:s||!o.trim(),className:"w-full bg-gray-900 text-white",size:"default",children:s?"Creating...":"Create"})]}),(0,a.jsxs)("p",{className:"mt-4 text-left text-xs text-gray-500",children:["Your email address is shared with OpenWeb, the commenting platform. By creating a display name, you agree to the OpenWeb"," ",(0,a.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Privacy Policy"})," ","and"," ",(0,a.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/terms-of-use/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Terms of Use"}),"."]})]})})]}):null}e.s(["DisplayNameModal",()=>u],470015)},340122,e=>{"use strict";var t=e.i(297647),o=e.i(477716),a=e.i(475566),n=e.i(447827),r=e.i(528600),s=e.i(109339),i=e.i(470015),l=e.i(222136);function c({articleId:e,title:c,url:d,containerId:u="openweb-comments",spotId:m="sp_5PIsklaT",isVideoContext:p=!1}){let[h,b]=(0,o.useState)(!1),[f,g]=(0,o.useState)(!0),[x,v]=(0,o.useState)(null),{user:w,userProfile:y}=(0,r.useUser)(),[C,j]=(0,o.useState)(!w.isUserLoggedIn),[S,I]=(0,o.useState)(null),[k,N]=(0,o.useState)(""),[A,B]=(0,o.useState)(!1),[E,M]=(0,o.useState)(null),[L,_]=(0,o.useState)(!1),[P,$]=(0,o.useState)(!0),[T,R]=(0,o.useState)(!0),z=(0,o.useRef)(!1),[D,O]=(0,o.useState)(!1),[U,q]=(0,o.useState)(!1),H=(0,o.useRef)(L),W=(0,a.useSetAtom)(l.commentCountAtom);(0,o.useEffect)(()=>{H.current=L},[L]),(0,o.useEffect)(()=>{let e,t,o=null,a=null,n=null;return e=0,(t=()=>{if(e++,(()=>{if(!(z.current||window.SPOTIM))return!1;let e=document.getElementById(u);if(!e)return!1;let t=e.innerHTML.length>0,o=Array.from(document.querySelectorAll("*")).some(e=>e.tagName.toLowerCase().startsWith("ow-")&&e.shadowRoot);return t||o})()){let e,t;n&&(clearInterval(n),n=null),(t=()=>{(()=>{let e=Array.from(document.querySelectorAll("*")).find(e=>e.tagName.toLowerCase().startsWith("ow-")&&e.shadowRoot);if(e?.shadowRoot)for(let t of['[data-spot-im-class="comments-count"]','[data-spot-im-class="header-text"]','h2[class*="Header"]','span[class*="count"]','*[class*="comment"][class*="count"]']){let o=e.shadowRoot.querySelector(t);if(o?.textContent){let e=o.textContent.match(/(\d+)/);if(e){W(parseInt(e[1]||"0",10)),O(!0);return}W(0),O(!0);return}}})()})(),o&&o.disconnect(),o=new MutationObserver(e=>{let o=!1;e.forEach(e=>{if("childList"===e.type||"characterData"===e.type){let t=e.target;(t.nodeType===Node.TEXT_NODE||t.textContent?.toLowerCase().includes("comment")||t.className?.toLowerCase().includes("comment")||Array.from(e.addedNodes).some(e=>e.nodeType===Node.ELEMENT_NODE&&e.textContent?.toLowerCase().includes("comment")))&&(o=!0)}}),o&&setTimeout(t,500)}),(e=document.getElementById(u))&&o.observe(e,{childList:!0,subtree:!0,characterData:!0}),o.observe(document.body,{childList:!0,subtree:!1}),a=setInterval(t,1e4)}else if(e>=40)n&&(clearInterval(n),n=null);else{let o=Math.min(500*Math.pow(1.5,e-1),5e3);n&&clearInterval(n),n=setTimeout(t,o)}})(),()=>{o&&o.disconnect(),a&&clearInterval(a),n&&clearInterval(n)}},[e,m,z.current,W,u]),(0,o.useEffect)(()=>{b(!0)},[]),(0,o.useEffect)(()=>(C&&!P||w.isUserLoggedIn&&!1===S&&!T?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[C,P,w.isUserLoggedIn,S,T]),(0,o.useEffect)(()=>{h&&j(!w.isUserLoggedIn)},[h,w.isUserLoggedIn,w.userID]),(0,o.useEffect)(()=>{if(h&&!w.isUserLoggedIn&&z.current&&window.SPOTIM)try{let e=window.SPOTIM;if("function"==typeof e.logout)e.logout();else{let e=document.getElementById(u);e&&(e.innerHTML="")}}catch(e){}},[h,w.isUserLoggedIn,z,u,e,m,c,d]),(0,o.useEffect)(()=>{let t,o,a,n;if(window.SPOTIM&&!z.current){if(z.current=!0,g(!1),p){let e=document.getElementById(u);e&&(e.innerHTML=""),r(s)}else s();return}function r(e){let t=0,o=()=>{if(t++,!window.SPOTIM)return void(t100,r=Array.from(document.querySelectorAll("*")).find(e=>e.tagName.toLowerCase().startsWith("ow-")&&e.shadowRoot),s=r?.shadowRoot?.querySelector('div[class*="PostInput"], div[class*="CommentBox"]'),i=!w.isUserLoggedIn||L&&!U;n&&s&&i?e():te.toLowerCase().includes("conversation")||e.toLowerCase().includes("load")||e.toLowerCase().includes("start")||e.toLowerCase().includes("init"));if(e.length>0){let o=e[0];if(o&&"function"==typeof t[o])try{t[o]()}catch(e){}}}}catch(e){}}}z.current||(window.localStorage&&localStorage.removeItem("SPOTIM_ACCESS_TOKEN"),t=()=>{z.current=!0,g(!1),p?r(s):s()},document.addEventListener("spot-im-api-ready",t,!1),o=Date.now(),a=`https://launcher.spot.im/spot/${m}?cb=${o}`,(n=document.createElement("script")).src=a,n.async=!0,n.setAttribute("data-post-id",e.replace(/[^\w\s:.$~]/g,"-")),n.onerror=()=>{v("Failed to load comments. Please try again later."),g(!1)},document.head.appendChild(n))},[m,e,u,c,d,p]),(0,o.useEffect)(()=>{h&&(w.isUserLoggedIn&&z.current?n.openWebClient.getAccount().then(t=>{if(t){I(!0),_(!0);let o=t.displayName||w.userID;if(N(o),window.SPOTIM){let t=window.SPOTIM;try{["logout","clearSession","resetUser","clearUser","reset"].forEach(e=>{if("function"==typeof t[e])try{t[e]()}catch(e){}})}catch(e){}q(!0),setTimeout(()=>{try{let a={userId:w.userID,spotId:m,articleId:e.replace(/[^\w\s:.$~]/g,"-"),url:d||window.location.href,title:c||document.title};t.startSSO({callback:(t,a)=>{n.openWebClient.getCodeB(t,o,e).then(e=>{a(e),q(!1)}).catch(e=>{a(""),q(!1)})},...a})}catch(e){q(!1)}},150)}}else I(!1),_(!1),N("")}).catch(e=>{(e?.message?.includes("403")||e?.status===403)&&M("Authentication error. Please try refreshing the page or logging out and back in."),I(!1),_(!1)}):_(!1))},[h,w.isUserLoggedIn,w.userID,z.current,y,e,m,c,d]),(0,o.useEffect)(()=>{let e;return f&&(e=setTimeout(()=>{v("Comments are taking longer than expected to load. Please refresh the page."),g(!1)},15e3)),()=>{e&&clearTimeout(e)}},[f]);let F=(0,o.useCallback)((e,t)=>{let o="openweb-dynamic-styles",a=e.getElementById(o);a&&a.remove();let n=document.createElement("style");n.id=o,n.textContent=` /* Base styles always present */ [data-spot-im-class="registration-buttons"] { display: none !important; } /* Conditional styles based on interaction state */ ${!t?` /* Complete interaction blocking - enhanced approach */ button[class*="PostInput"], div[class*="PostInput-"], div[class*="CommentBox-"], div[class*="richie-editor"], div[contenteditable="true"], textarea, input[type="text"], input[type="file"], label[class*="uploadImageControl"], label[class*="controlButton"], span[class*="Button__contentWrapper"] { pointer-events: none !important; opacity: 0.5 !important; cursor: not-allowed !important; user-select: none !important; -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; outline: none !important; caret-color: transparent !important; -webkit-user-modify: read-only !important; } /* Enhanced blocking for richie-editor components */ div[class*="richie-editor__controls"], div[class*="richie-editor__uploadImageControl"], label[class*="richie-editor__controlButton"], button[class*="richie-editor__controlButton"] { pointer-events: none !important; opacity: 0.5 !important; cursor: not-allowed !important; } /* Hide send button and post input specifically */ button[class*="Button"][class*="primary"], button[aria-label*="Post"], button[aria-label*="Send"], button[class*="PostInput"], div[class*="PostInput-submitButton"] { display: none !important; } /* Enhanced comment input area blocking with better edge coverage */ div[class*="PostInput-textArea"], div[class*="CommentBox-textArea"], div[class*="richie-editor__textArea"] { pointer-events: none !important; opacity: 0.3 !important; caret-color: transparent !important; user-select: none !important; -webkit-user-select: none !important; position: relative !important; } /* Block entire input containers including edges */ div[class*="PostInput-container"], div[class*="CommentBox-container"], div[class*="richie-editor__container"] { pointer-events: none !important; position: relative !important; } /* Add comprehensive overlay covering all input areas */ div[class*="PostInput-textArea"]:before, div[class*="CommentBox-textArea"]:before, div[class*="richie-editor__textArea"]:before, div[class*="PostInput-container"]:before, div[class*="CommentBox-container"]:before { content: "" !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; background: transparent !important; z-index: 5 !important; pointer-events: auto !important; cursor: pointer !important; } /* Add visual overlay with sign-in message */ div[class*="PostInput-textArea"]:after, div[class*="CommentBox-textArea"]:after { content: "Sign in to comment" !important; position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; background: rgba(255, 255, 255, 0.95) !important; padding: 8px 16px !important; border-radius: 4px !important; font-size: 14px !important; color: #666 !important; pointer-events: auto !important; cursor: pointer !important; border: 1px solid #ddd !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important; z-index: 10 !important; } /* Block all input-related elements from receiving focus */ div[contenteditable="true"], textarea, input[type="text"], input[type="file"] { tabindex: -1 !important; } `:` /* Enable interaction styles */ button[class*="PostInput"], div[class*="PostInput-"], div[class*="CommentBox-"], div[class*="richie-editor"], div[contenteditable="true"], textarea, input[type="text"], input[type="file"], label[class*="uploadImageControl"], label[class*="controlButton"], span[class*="Button__contentWrapper"] { pointer-events: auto !important; opacity: 1 !important; cursor: auto !important; user-select: auto !important; -webkit-user-select: auto !important; -moz-user-select: auto !important; -ms-user-select: auto !important; outline: none !important; caret-color: auto !important; -webkit-user-modify: read-write !important; } /* Enable richie-editor components */ div[class*="richie-editor__controls"], div[class*="richie-editor__uploadImageControl"], label[class*="richie-editor__controlButton"], button[class*="richie-editor__controlButton"] { pointer-events: auto !important; opacity: 1 !important; cursor: auto !important; } /* Show send button and post input */ button[class*="Button"][class*="primary"], button[aria-label*="Post"], button[aria-label*="Send"], button[class*="PostInput"], div[class*="PostInput-submitButton"] { display: block !important; } /* Show comment input areas */ div[class*="PostInput-textArea"], div[class*="CommentBox-textArea"], div[class*="richie-editor__textArea"] { pointer-events: auto !important; opacity: 1 !important; caret-color: auto !important; user-select: auto !important; -webkit-user-select: auto !important; } /* Enable input containers */ div[class*="PostInput-container"], div[class*="CommentBox-container"], div[class*="richie-editor__container"] { pointer-events: auto !important; } /* Restore normal tab order */ div[contenteditable="true"], textarea, input[type="text"], input[type="file"] { tabindex: 0 !important; } `} /* General interactive elements that should trigger modal when !canInteract */ button[aria-label*="Profile Image"], div[class*="MessageDetails-Username"], div[class*="MessageUserImage"], [data-spot-im-class="user-info-username"], .spcv_username-wrapper { pointer-events: none !important; cursor: default !important; } `,e.appendChild(n)},[]),V=(0,o.useCallback)(e=>{let t=!1;for(let o of['button[aria-label*="Settings"]','button[aria-label*="settings"]','button[title*="Settings"]','button[title*="settings"]','[data-spot-im-class*="settings"]','[class*="settings" i]','[class*="Settings"]','button[class*="cog"]','button[class*="gear"]','svg[class*="cog"]','svg[class*="gear"]','button[class*="Button"][class*="secondary"]:not([class*="primary"])','button:has(svg[viewBox*="24"]):not([aria-label*="Profile"]):not([aria-label*="Like"]):not([aria-label*="Reply"])','button[class*="HeaderActions"]','button[class*="ConversationHeader"]','[class*="conversation-header"] button'])e.querySelectorAll(o).forEach(e=>{"button"===e.tagName.toLowerCase()&&(e.getAttribute("aria-label")?.toLowerCase().includes("settings")||e.getAttribute("title")?.toLowerCase().includes("settings")||e.className.toLowerCase().includes("settings")||e.className.toLowerCase().includes("cog")||e.className.toLowerCase().includes("gear")||e.querySelector('svg[viewBox*="24"]')||e.querySelector('svg[class*="cog"]')||e.querySelector('svg[class*="gear"]')||e.closest('[class*="HeaderActions"]')||e.closest('[class*="ConversationHeader"]'))&&(e.style.display="none",t=!0)});return t||e.querySelectorAll("button").forEach(e=>{let o=e.textContent?.trim().toLowerCase()||"",a=e.getAttribute("aria-label")?.toLowerCase()||"",n=e.getAttribute("title")?.toLowerCase()||"";(o.includes("settings")||a.includes("settings")||n.includes("settings")||e.querySelector('svg[viewBox="0 0 24 24"]')||e.querySelector('svg[viewBox="0 0 20 20"]')||e.closest('[class*="header" i]')&&e.querySelector("svg")&&!e.getAttribute("aria-label")?.includes("Profile")&&!e.getAttribute("aria-label")?.includes("Like")&&!e.getAttribute("aria-label")?.includes("Reply"))&&(e.style.display="none",t=!0)}),t},[]),X=(0,o.useCallback)((e,t=5)=>{let o=0,a=()=>{let n=V(e);o++,!n&&o{V(e)},2e3);return setTimeout(()=>{clearInterval(n)},3e4),n},[V]),G=(0,o.useCallback)(e=>{let t=Array.from(document.querySelectorAll("*")).find(e=>e.tagName.toLowerCase().startsWith("ow-")&&e.shadowRoot);t?.shadowRoot&&F(t.shadowRoot,e);let o=document.querySelector("div[open-web-ui-components-menus]");o?.shadowRoot&&F(o.shadowRoot,e);let a=(()=>{let e=document.querySelector("div#floating-ui-root");if(!e)return;let t=e.nextElementSibling;for(;t;){if(t.shadowRoot)return t;t=t.nextElementSibling}})();a?.shadowRoot&&F(a.shadowRoot,e)},[F]);return((0,o.useEffect)(()=>{if(!z.current)return;G(L);let e=new MutationObserver(()=>{G(L)}),t=document.getElementById(u);return t?e.observe(t,{childList:!0,subtree:!0}):e.observe(document.body,{childList:!0,subtree:!1}),()=>e.disconnect()},[L,u,G]),(0,o.useEffect)(()=>{if(!z.current)return;let e=null,t=null,o=e=>{let t=e.target;if(t.closest('button[aria-label*="Profile Image"], div[class*="MessageDetails-Username"], div[class*="MessageUserImage"], [data-spot-im-class="user-info-username"], .spcv_username-wrapper')){e.preventDefault(),e.stopPropagation();return}if(t.textContent?.trim()==="See more"||"true"===t.getAttribute("data-openweb-allow-amp")||"span"===t.tagName.toLowerCase()&&"pointer"===t.style.cursor&&t.textContent?.includes("See more"))return;if(t.closest('[data-spot-im-class="header-text"], [data-spot-im-class="comments-count"], [data-spot-im-class="message-text"]'))return void e.stopPropagation();let o=t.closest('div[class*="richie-editor"], label[class*="richie-editor"], input[type="file"], label[class*="uploadImageControl"]');if(!H.current){if(e.preventDefault(),e.stopPropagation(),o){let e=t.querySelector('input[type="file"]');e&&(e.disabled=!0,setTimeout(()=>{e.disabled=!1},100))}!w.isUserLoggedIn&&P?$(!1):w.isUserLoggedIn&&!1===S&&T&&R(!1)}},a=e=>{if(!H.current){let t=e.target;t&&"function"==typeof t.blur&&t.blur(),e.preventDefault(),e.stopPropagation()}},n=e=>{if(!H.current){let t=e.target;t&&("value"in t||"textContent"in t)&&("value"in t&&(t.value=""),"textContent"in t&&(t.textContent="")),e.preventDefault(),e.stopPropagation()}},r=e=>{H.current||(e.preventDefault(),e.stopPropagation())},s=e=>{if(!H.current){let t=e.target;t&&(t.hasAttribute("contenteditable")||"textarea"===t.tagName.toLowerCase()||"input"===t.tagName.toLowerCase())&&(e.preventDefault(),e.stopPropagation())}},i=e=>{e.querySelectorAll('span, button, a, label, input, textarea, div[role="button"], div[contenteditable="true"], div[class*="PostInput-"], div[class*="CommentBox-"], div[class*="richie-editor"], div[class*="controls"], div[class*="uploadImageControl"]').forEach(e=>{e.__openWebClickListener||(e.addEventListener("click",o),e.__openWebClickListener=o)}),e.querySelectorAll('div[contenteditable="true"], textarea, input[type="text"]').forEach(e=>{e.__openWebFocusListener||(e.addEventListener("focus",a,!0),e.addEventListener("input",n,!0),e.addEventListener("keydown",r,!0),e.addEventListener("keypress",r,!0),e.addEventListener("paste",r,!0),e.addEventListener("touchstart",s,!0),e.addEventListener("touchend",s,!0),e.__openWebFocusListener=!0)}),e.querySelectorAll('div[contenteditable="true"], textarea, input[type="text"]').forEach(e=>{if(H.current){e.hasAttribute("data-original-contenteditable")&&(e.setAttribute("contenteditable",e.getAttribute("data-original-contenteditable")||"true"),e.removeAttribute("data-original-contenteditable")),e.hasAttribute("data-original-readonly")&&(e.readOnly="true"===e.getAttribute("data-original-readonly"),e.removeAttribute("data-original-readonly"));let t=e.getAttribute("data-original-tabindex");null!==t&&("0"===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute("data-original-tabindex")),e.removeAttribute("aria-disabled")}else("textarea"===e.tagName.toLowerCase()||"input"===e.tagName.toLowerCase())&&(e.readOnly=!0,e.setAttribute("data-original-readonly","false")),e.setAttribute("tabindex","-1"),e.setAttribute("aria-disabled","true"),e.setAttribute("data-original-tabindex",e.getAttribute("tabindex")||"0")}),e.querySelectorAll('span[class*="Button__contentWrapper"]').forEach(e=>{if(e.textContent&&e.textContent.includes("Sign up to post")){e.style.display="none";let t=e.closest("button");t&&(t.style.display="none")}})},l=(e,t=!1)=>{i(e),X(e);let o=new MutationObserver(t=>{t.forEach(t=>{"childList"===t.type&&(i(e),X(e))})});return o.observe(e,{childList:!0,subtree:!0}),o},c=()=>Array.from(document.querySelectorAll("*")).find(e=>e.tagName.toLowerCase().startsWith("ow-")&&e.shadowRoot),d=()=>{let e=document.querySelector("div#floating-ui-root");if(!e)return;let t=e.nextElementSibling;for(;t;){if(t.shadowRoot)return t;t=t.nextElementSibling}},m=()=>{let t=c();if(t&&t.shadowRoot){if(!t.shadowRoot.getElementById("openweb-shadow-custom-styles")){let e=document.createElement("style");e.id="openweb-shadow-custom-styles",e.textContent=` [data-spot-im-class="registration-buttons"] { display: none !important; } /* General interactive elements that should trigger modal when !canInteract */ button[aria-label*="Profile Image"], div[class*="MessageDetails-Username"], div[class*="MessageUserImage"], [data-spot-im-class="user-info-username"], .spcv_username-wrapper { pointer-events: none !important; cursor: default !important; } /* Add a visual cue when interaction is blocked, if needed */ .comments-blocked-cursor * { cursor: not-allowed !important; } `,t.shadowRoot.appendChild(e)}e=l(t.shadowRoot)}},p=()=>{let e=document.querySelector("div[open-web-ui-components-menus]");if(e&&e.shadowRoot){if(!e.shadowRoot.getElementById("menu-shadow-custom-styles")){let t=document.createElement("style");t.id="menu-shadow-custom-styles",t.textContent=` /* Disable pointer events on the hover menu list */ div[class*="components-MessageActions-components-VoteButtons-partials-users-list-index__list"], div[class*="dropdown-menu-list"], /* Generic dropdown menus */ div[class*="profile-menu-item"] /* Specific profile menu items if they are interactive */ { pointer-events: none !important; cursor: default !important; } `,e.shadowRoot.appendChild(t)}t=l(e.shadowRoot,!0)}},h=()=>{let e=d();if(e&&e.shadowRoot&&!e.shadowRoot.getElementById("floating-ui-shadow-custom-styles")){let t=document.createElement("style");t.id="floating-ui-shadow-custom-styles",t.textContent=` /* Delete Comment Modal Styling */ /* Center align modal content */ [class*="Modal__container"] { text-align: center; } /* Center the title */ [class*="Modal__header"] > span { flex: 1; margin-left: 34px; } /* Modal close button */ [class*="Modal__header"] > button { font-size: 10px !important; } /* Center body text */ [class*="Modal__bodyContainer"] { text-align: center; } /* Stack buttons vertically */ [class*="Modal__bottomActions"] { flex-direction: column !important; gap: 12px; } /* Style confirm button as full-width primary */ [class*="Modal__bottomActions"] [class*="Button__primary"] { order: 1; margin-left: 0px !important; } /* Style No button as text link */ [class*="Modal__bottomActions"] [class*="Button__secondary"] { background: none !important; border: none !important; color: #666 !important; order: 2; width: auto; padding: 8px 0 !important; } /* Additional styling for the cancel button hover state */ [class*="Modal__bottomActions"] [class*="Button__secondary"]:hover { background: none !important; color: #333 !important; } `,e.shadowRoot.appendChild(t)}},b=new MutationObserver(o=>{o.forEach(o=>{"childList"===o.type&&(!e&&c()&&m(),!t&&document.querySelector("div[open-web-ui-components-menus]")&&p(),d()&&h())})}),f=document.getElementById(u);if(f)try{b.observe(f,{childList:!0,subtree:!0})}catch(e){console.warn("Failed to observe comments container, falling back to document.body:",e),b.observe(document.body,{childList:!0,subtree:!1})}else b.observe(document.body,{childList:!0,subtree:!1});return m(),p(),h(),()=>{b.disconnect(),e&&e.disconnect(),t&&t.disconnect();let o=c();if(o&&o.shadowRoot){let e=o.shadowRoot.getElementById("openweb-shadow-custom-styles");e&&e.remove()}let a=document.querySelector("div[open-web-ui-components-menus]");if(a&&a.shadowRoot){let e=a.shadowRoot.getElementById("menu-shadow-custom-styles");e&&e.remove()}}},[z.current,L,w.isUserLoggedIn,S,P,T,$,R,u]),f)?(0,t.jsx)("div",{className:"mt-8 border-t border-gray-200 pt-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center p-8 text-center text-gray-500",children:[(0,t.jsx)("div",{className:"mb-4 h-9 w-9 animate-spin rounded-full border-4 border-gray-200 border-l-blue-500"}),(0,t.jsx)("p",{children:"Loading comments..."})]})}):x?(0,t.jsx)("div",{className:"mt-8 border-t border-gray-200 pt-6",children:(0,t.jsxs)("div",{className:"rounded-md border border-red-100 bg-red-50 p-6 text-center text-red-700",children:[(0,t.jsx)("p",{children:x}),(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"mt-4 rounded bg-red-600 px-4 py-2 font-medium text-white hover:bg-red-700",children:"Retry"})]})}):(0,t.jsx)("div",{id:"comments-section",className:"mt-8 border-t border-gray-200 pt-6",children:(0,t.jsxs)("div",{className:"relative",children:[C&&!P||w.isUserLoggedIn&&!1===S&&!T?(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}):null,(0,t.jsx)(s.SignInModal,{isOpen:C&&!P,onClose:()=>$(!0)}),(0,t.jsx)(i.DisplayNameModal,{isOpen:w.isUserLoggedIn&&!1===S&&!T,onClose:()=>R(!0),displayName:k,onDisplayNameChange:N,onSubmit:t=>{if(t.preventDefault(),k.trim())if(B(!0),M(null),window.SPOTIM){let t=window.SPOTIM;try{["logout","clearSession","resetUser","clearUser","reset","clearAuth","signOut"].forEach(e=>{if("function"==typeof t[e])try{t[e]()}catch(e){}}),q(!0),setTimeout(()=>{try{let o=!1,a=setTimeout(()=>{o||(M("Account creation timed out. Please try again or refresh the page."),B(!1),q(!1))},15e3);t.startSSO({callback:(t,r)=>{o=!0,clearTimeout(a),n.openWebClient.getCodeB(t,k,e).then(e=>{if(!e||""===e.trim()){M("Failed to create account. Please try again."),B(!1),q(!1);return}r(e),I(!0),_(!0),B(!1),q(!1)}).catch(e=>{console.error("getCodeB failed:",e),M("Failed to create account. Please check your connection and try again."),B(!1),q(!1)})},userId:w.userID,spotId:m,articleId:e.replace(/[^\w\s:.$~]/g,"-"),url:d||window.location.href,title:c||document.title,forceSSO:!0,ssoMode:!0,authMode:"sso"})}catch(e){console.error("SSO initialization failed:",e),M("Failed to initialize account creation. Please try again."),B(!1),q(!1)}},150)}catch(e){console.error("Auth clearing failed:",e),M("Failed to initialize account creation. Please try again."),B(!1)}}else M("Comments system not ready. Please refresh the page and try again."),B(!1)},isSubmitting:A,error:E}),D&&(0,t.jsxs)("div",{className:"relative mb-6 min-h-[60px]",children:[(0,t.jsx)("div",{"data-spotim-app":"reactions","data-post-id":e.replace(/[^\w\s:.$~]/g,"-"),"data-theme":p?"TWC Buddies Video":"TWC Buddies",className:"min-h-[60px]"}),!L&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 cursor-pointer bg-transparent",onClick:()=>{!w.isUserLoggedIn&&P?$(!1):w.isUserLoggedIn&&!1===S&&T&&R(!1)},"aria-label":"Sign in to react to this content"})]}),(0,t.jsx)("div",{id:u,"data-spotim-module":"conversation","data-post-id":e.replace(/[^\w\s:.$~]/g,"-"),"data-post-url":d||window.location.href,"data-article-tags":"weather,news",className:"min-h-[200px]"})]})})}e.s(["default",()=>c])}]);