"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8715],{98715:(e,t,l)=>{l.r(t),l.d(t,{RichText:()=>q});var r=l(21102),a=l(42494),n=l(59946),i=l(51135),o=l(14527),d=l(57809),s=l(38915),c=l(66188);let u=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:i,...o}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":a,"aria-describedby":i,...o,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"No Data"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,r.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"})})]})}),m=a.forwardRef((e,t)=>(0,r.jsx)(c.h,{ref:t,icon:u,...e}));m.displayName="NoData";var f=l(2092),h=l(90267);function x(e){var t;let{node:l}=e,[c,u]=(0,a.useState)(null),[x,p]=(0,a.useState)(!0),[v,g]=(0,a.useState)(null),b=(0,d.md)(f.Yt),j=null==(t=(0,h.xP)(b))?void 0:t.code,{data:w,error:k}=(0,n.Ay)(l.geocode?["currentConditions",l.geocode,j]:null,async e=>{let[t,l,r]=e;try{return await (0,i.z)({geocode:l,units:r,language:"en-US"})}catch(e){return console.error("Error fetching weather:",e),null}},{revalidateOnFocus:!1,dedupingInterval:3e5});(0,a.useEffect)(()=>{w?(u(Math.round(w.temperature)),p(!1)):k&&(g(k),p(!1))},[w,k]);let y=l.placeId?"/weather/today/l/".concat(l.placeId):"#";return(0,r.jsxs)("a",{href:y,className:"inline-flex items-center gap-1",children:[(0,r.jsx)("span",{className:"border-b-2 border-dotted border-black",children:l.locationName}),x?(0,r.jsx)("span",{className:"text-gray-400",children:"..."}):v?(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:[(null==w?void 0:w.iconCode)!==void 0&&(0,r.jsx)("span",{className:"flex items-center",children:"na"!==(o.ICON_CODE_MAP[w.iconCode]||"na")?(0,r.jsx)(s.WxIcon,{iconCode:w.iconCode,className:"lightBG","aria-label":o.ICON_CODE_MAP[w.iconCode]||"Weather condition ".concat(w.iconCode),iconTheme:"lightBG",size:"sm"}):(0,r.jsx)(m,{className:"lightBG","aria-label":"Weather icon not available",size:"sm"})}),(0,r.jsxs)("span",{className:"font-medium",children:[c,"\xb0"]})]})]})}let p={weatherLocationTicker:e=>{let{node:t}=e;return(0,r.jsx)(x,{node:t})}};var v=l(26240),g=l(24505),b=l(15238),j=l(62892),w=l(69265),k=l(88737),y=l(32279),N=l(31501),C=l(80360),T=l(45637),I=l(51554),A=l(3552),_=l(29445),B=l(86983),D=l(97651),E=l(2346),M=l(71535),H=l(19433),O=l(5216),P=l(2101),R=l(71377),S=l(40633),F=l(48443),W=l(4499),V=l(54845);let z={Ad:g.default,AirQualityIndex:b.default,BlockRow:e=>{let{columns:t="2",blocks:l=[],calculatedPosition:a=0,variant:n="frontend",renderBlock:i}=e;if(!l||0===l.length)return null;let o=parseInt(t,10);return(0,r.jsx)("div",{className:"@container",children:(0,r.jsx)("div",{className:"grid grid-cols-1 gap-4 @min-[620px]:grid-cols-[repeat(var(--columns),1fr)]",style:{"--columns":o},children:l.map((e,t)=>(0,r.jsx)("div",{children:i?i({block:e,key:"blockrow-child-".concat(t),calculatedPosition:a+t+1,variant:n}):(0,r.jsxs)("div",{className:"rounded border-2 border-dashed border-gray-300 bg-gray-50 p-4",children:[(0,r.jsx)("div",{className:"font-semibold text-gray-700",children:e.blockName}),(0,r.jsxs)("div",{className:"text-sm text-gray-500",children:["Type: ",e.blockType]}),(0,r.jsxs)("div",{className:"text-xs text-gray-500",children:["ID: ",e.id]})]})},e.id||t))})})},Bluesky:j.default,BuyButton:w.default,CallToAction:k.default,ContentMedia:y.default,CurrentConditions:N.default,CurrentDetails:C.default,DailyForecast:T.default,DynamicMap:I.default,HealthAndActivities:A.default,HourlyForecast:_.default,HurricaneTracker:B.default,Image:D.default,Instagram:e=>{let{url:t,size:l,id:a}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("blockquote",{className:(0,M.cn)("instagram-media","!my-4 w-[calc(100%-2px)] !min-w-auto !rounded-lg !border-0 !bg-transparent !shadow-lg","hero"===l?"":"max-w-[538px]"),"data-instgrm-permalink":t,"data-instgrm-version":14}),(0,r.jsx)(E.default,{async:!0,src:"https://www.instagram.com/embed.js"})]},a)},LiveblogEntries:H.default,MorningBrief:O.default,PrecipIntensity:P.default,PromoDriver:R.default,Slideshow:S.default,Taboola:F.default,TikTok:e=>{let{url:t=""}=e,l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";for(let t of[/tiktok\.com\/@[\w.-]+\/video\/(\d+)/,/tiktok\.com\/v\/(\d+)/,/vm\.tiktok\.com\/([\w-]+)/,/m\.tiktok\.com\/v\/(\d+)/]){let l=null==e?void 0:e.match(t);if(l&&l[1])return l[1]}return null}(t);return l||t.includes("tiktok.com")?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.default,{async:!0,src:"https://www.tiktok.com/embed.js"}),(0,r.jsx)("div",{className:"flex w-full max-w-[605px] items-center justify-center",children:(0,r.jsx)("blockquote",{className:"tiktok-embed",cite:t,"data-video-id":l||void 0,style:{maxWidth:"605px",minWidth:"325px"},children:(0,r.jsx)("section",{children:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",title:"TikTok Video",href:t,children:"View on TikTok"})})})})]}):null},Twitter:W.default,Video:V.default,YouTube:e=>{let{url:t,size:l}=e,a=(e=>{let t=e.match(/(?:youtube\.com\/(?:[^\\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\\/\s]{11})/);return t?t[1]:null})(t);return a?(0,r.jsx)("div",{className:"flex aspect-video w-full items-center justify-center ".concat("hero"===l?"":"max-w-[640px]"),children:(0,r.jsx)("iframe",{className:"h-full w-full rounded-lg shadow-lg",src:"https://www.youtube.com/embed/".concat(a),title:"YouTube Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):null}},G=e=>{let{linkNode:t}=e,{value:l,relationTo:r}=t.fields.doc;if("object"!=typeof l)throw Error("Expected value to be an object");let a=l.slug;return"posts"===r?"/posts/".concat(a):"/".concat(a)},Y=e=>{let{defaultConverters:t}=e;return{...t,...function(e){let{internalDocToHref:t}=e;return{link:e=>{var l;let{node:a,nodesToJSX:n}=e,i=a.fields,o="";"internal"===i.linkType&&(null==(l=i.doc)?void 0:l.value)?o=t({linkNode:a}):i.url&&(o=i.url);let d=i.rel&&Array.isArray(i.rel)&&i.rel.length>0?i.rel.join(" "):void 0,s=i.newTab?"_blank":void 0;return(0,r.jsx)("a",{href:o,...d&&{rel:d},...s&&{target:s},children:n({nodes:a.children})})},autolink:e=>{let{node:t,nodesToJSX:l}=e;return(0,r.jsx)("a",{href:t.fields.url||"",rel:"noopener noreferrer",children:l({nodes:t.children})})}}}({internalDocToHref:G}),...p,blocks:Object.entries(z).reduce((e,t)=>{let[l,a]=t;return e[l]=e=>{let{node:t}=e;return(0,r.jsx)(a,{...t.fields})},e},{})}};function q(e){let{data:t,...l}=e;return(0,r.jsx)(v.s,{converters:Y,data:t||{root:{children:[],direction:"ltr",format:"",indent:0,type:"root",version:1}},...l})}}}]);