1import{c as C,b as V,d as L,r as n,j as e,A as G,P as Z,e as g,f as q,g as K,D as J,C as Q,h as X,i as Y,R as ee,k as te,u as re,B as P}from"./index-MoAbC8_9.js";import{L as ae}from"./Layout-jB2m3rBw.js";import{T as ne}from"./thermometer-CsW4-4zi.js";import{D as oe}from"./droplets-Cp2l0Gq2.js";import{E as R}from"./external-link-Bd1Ktkpe.js";import{S as _}from"./sun-DQzfPl1A.js";import"./Header-CnJGZ8vQ.js";import"./mountain-BHfTfCFy.js";import"./user-Cvsz7Lm_.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const se=C("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const T=C("CloudFog",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 17H7",key:"pygtm1"}],["path",{d:"M17 21H9",key:"1u2q02"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const u=C("CloudRain",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const b=C("CloudSnow",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M8 19h.01",key:"puxtts"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M12 21h.01",key:"h35vbk"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M16 19h.01",key:"1vcnzz"}]]);/** 22 * @license lucide-react v0.462.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const ie=C("CloudSun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]);/** 27 * @license lucide-react v0.462.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const H=C("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** 32 * @license lucide-react v0.462.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const ce=C("Wind",[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]]);var M,j="HoverCard",[O,Pe]=V(j,[L]),N=L(),[le,D]=O(j),W=r=>{const{__scopeHoverCard:o,children:s,open:l,defaultOpen:i,onOpenChange:h,openDelay:v=700,closeDelay:p=300}=r,d=N(o),w=n.useRef(0),f=n.useRef(0),y=n.useRef(!1),x=n.useRef(!1),[t,a]=Y({prop:l,defaultProp:i??!1,onChange:h,caller:j}),m=n.useCallback(()=>{clearTimeout(f.current),w.current=window.setTimeout(()=>a(!0),v)},[v,a]),c=n.useCallback(()=>{clearTimeout(w.current),!y.current&&!x.current&&(f.current=window.setTimeout(()=>a(!1),p))},[p,a]),U=n.useCallback(()=>a(!1),[a]);return n.useEffect(()=>()=>{clearTimeout(w.current),clearTimeout(f.current)},[]),e.jsx(le,{scope:o,open:t,onOpenChange:a,onOpen:m,onClose:c,onDismiss:U,hasSelectionRef:y,isPointerDownOnContentRef:x,children:e.jsx(ee,{...d,children:s})})};W.displayName=j;var F="HoverCardTrigger",z=n.forwardRef((r,o)=>{const{__scopeHoverCard:s,...l}=r,i=D(F,s),h=N(s);return e.jsx(G,{asChild:!0,...h,children:e.jsx(Z.a,{"data-state":i.open?"open":"closed",...l,ref:o,onPointerEnter:g(r.onPointerEnter,S(i.onOpen)),onPointerLeave:g(r.onPointerLeave,S(i.onClose)),onFocus:g(r.onFocus,i.onOpen),onBlur:g(r.onBlur,i.onClose),onTouchStart:g(r.onTouchStart,v=>v.preventDefault())})})});z.displayName=F;var de="HoverCardPortal",[Re,he]=O(de,{forceMount:void 0}),k="HoverCardContent",B=n.forwardRef((r,o)=>{const s=he(k,r.__scopeHoverCard),{forceMount:l=s.forceMount,...i}=r,h=D(k,r.__scopeHoverCard);return e.jsx(q,{present:l||h.open,children:e.jsx(pe,{"data-state":h.open?"open":"closed",...i,onPointerEnter:g(r.onPointerEnter,S(h.onOpen)),onPointerLeave:g(r.onPointerLeave,S(h.onClose)),ref:o})})});B.displayName=k;var pe=n.forwardRef((r,o)=>{const{__scopeHoverCard:s,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:h,onInteractOutside:v,...p}=r,d=D(k,s),w=N(s),f=n.useRef(null),y=K(o,f),[x,t]=n.useState(!1);return n.useEffect(()=>{if(x){const a=document.body;return M=a.style.userSelect||a.style.webkitUserSelect,a.style.userSelect="none",a.style.webkitUserSelect="none",()=>{a.style.userSelect=M,a.style.webkitUserSelect=M}}},[x]),n.useEffect(()=>{if(f.current){const a=()=>{t(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var c;((c=document.getSelection())==null?void 0:c.toString())!==""&&(d.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",a),()=>{document.removeEventListener("pointerup",a),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),n.useEffect(()=>{f.current&&fe(f.current).forEach(m=>m.setAttribute("tabindex","-1"))}),e.jsx(J,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:v,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:g(h,a=>{a.preventDefault()}),onDismiss:d.onDismiss,children:e.jsx(Q,{...w,...p,onPointerDown:g(p.onPointerDown,a=>{a.currentTarget.contains(a.target)&&t(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:y,style:{...p.style,userSelect:x?"text":void 0,WebkitUserSelect:x?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),ue="HoverCardArrow",me=n.forwardRef((r,o)=>{const{__scopeHoverCard:s,...l}=r,i=N(s);return e.jsx(X,{...i,...l,ref:o})});me.displayName=ue;function S(r){return o=>o.pointerType==="touch"?void 0:r()}function fe(r){const o=[],s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;s.nextNode();)o.push(s.currentNode);return o}var xe=W,ge=z,$=B;const ve=xe,we=ge,I=n.forwardRef(({className:r,align:o="center",sideOffset:s=4,...l},i)=>e.jsx($,{ref:i,align:o,sideOffset:s,className:te("z-50 w-64 roun
36ded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l}));I.displayName=$.displayName;const ye={0:_,1:_,2:ie,3:H,45:T,48:T,51:u,53:u,55:u,61:u,63:u,65:u,71:b,73:b,75:b,77:b,80:u,81:u,82:u,85:b,86:b,95:u,96:u,99:u},E={en:{0:"Clear",1:"Mostly clear",2:"Partly cloudy",3:"Overcast",45:"Fog",48:"Fog",51:"Light drizzle",53:"Drizzle",55:"Heavy drizzle",61:"Light rain",63:"Rain",65:"Heavy rain",71:"Light snow",73:"Snow",75:"Heavy snow",77:"Snow grains",80:"Showers",81:"Showers",82:"Heavy showers",85:"Snow showers",86:"Heavy snow",95:"Thunderstorm",96:"Thunderstorm",99:"Thunderstorm"},de:{0:"Klar",1:"Ãberwiegend klar",2:"Teilweise bewölkt",3:"Bedeckt",45:"Nebel",48:"Nebel",51:"Leichter Nieselregen",53:"Nieselregen",55:"Starker Nieselregen",61:"Leichter Regen",63:"Regen",65:"Starker Regen",71:"Leichter Schnee",73:"Schnee",75:"Starker Schnee",77:"Schneegriesel",80:"Schauer",81:"Schauer",82:"Starke Schauer",85:"Schneeschauer",86:"Starker Schnee",95:"Gewitter",96:"Gewitter",99:"Gewitter"},cs:{0:"Jasno",1:"PÅevážnÄ jasno",2:"Polojasno",3:"Zataženo",45:"Mlha",48:"Mlha",51:"MrholenÃ",53:"MrholenÃ",55:"Silné mrholenÃ",61:"Slabý déšť",63:"Déšť",65:"Silný déšť",71:"Slabý snÃh",73:"SnÄženÃ",75:"Husté snÄženÃ",77:"SnÄhové krupky",80:"PÅeháÅky",81:"PÅeháÅky",82:"Silné pÅeháÅky",85:"SnÄhové pÅeháÅky",86:"Silný snÃh",95:"BouÅka",96:"BouÅka",99:"BouÅka"}},A={en:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],de:["So","Mo","Di","Mi","Do","Fr","Sa"],cs:["Ne","Po","Ãt","St","Ät","Pá","So"]},_e=()=>{const{language:r}=re(),[o,s]=n.useState([]),[l,i]=n.useState(null),[h,v]=n.useState(0);n.useEffect(()=>{fetch("https://api.open-meteo.com/v1/forecast?latitude=47.4&longitude=12.9&daily=temperature_2m_max,temperature_2m_min,weathercode,precipitation_sum,windspeed_10m_max¤t_weather=true&timezone=Europe/Vienna&forecast_days=10").then(t=>t.json()).then(t=>{if(t.current_weather&&(i(Math.round(t.current_weather.temperature)),v(t.current_weather.weathercode)),t.daily){const a=t.daily.time.map((m,c)=>({date:m,tempMax:Math.round(t.daily.temperature_2m_max[c]),tempMin:Math.round(t.daily.temperature_2m_min[c]),weatherCode:t.daily.weathercode[c],precipitation:t.daily.precipitation_sum[c],windSpeed:Math.round(t.daily.windspeed_10m_max[c])}));s(a)}}).catch(console.error)},[]);const p={en:{label:"Live",title:"Webcams",subtitle:"Current weather and conditions in the Hochkönig region â live from Maria Alm",allCams:"All Hochkönig Webcams",weather:"Weather Forecast",now:"Now",forecast:"10-day forecast",wind:"Wind",precip:"Precipitation",moreDetail:"More details on bergfex.at"},de:{label:"Live",title:"Webcams",subtitle:"Aktuelles Wetter und Bedingungen in der Hochkönig-Region â live aus Maria Alm",allCams:"Alle Hochkönig Webcams",weather:"Wettervorhersage",now:"Jetzt",forecast:"10-Tage-Vorhersage",wind:"Wind",precip:"Niederschlag",moreDetail:"Mehr Details auf bergfex.at"},cs:{label:"ŽivÄ",title:"Webkamery",subtitle:"Aktuálnà poÄasà a podmÃnky v regionu Hochkönig â živÄ z Maria Alm",allCams:"VÅ¡echny kamery Hochkönig",weather:"PÅedpovÄÄ poÄasÃ",now:"NynÃ",forecast:"10dennà pÅedpovÄÄ",wind:"VÃtr",precip:"Srážky",moreDetail:"VÃce detailů na bergfex.at"}}[r]||{label:"Live",title:"Webcams",subtitle:"Current weather and conditions in the Hochkönig region â live from Maria Alm",allCams:"All Hochkönig Webcams",weather:"Weather Forecast",now:"Now",forecast:"10-day forecast",wind:"Wind",precip:"Precipitation",moreDetail:"More details on bergfex.at"},d=`https://webtv.feratel.com/webtv/?cam=5246&design=v3&c0=0&c2=1&c27=1&c3=0&lg=${r==="cs"?"en":r}&pg=2239B5DC-EC94-4ABB-A6C9-5EFADF3004F5&s=0`,w=t=>ye[t]||H,f=t=>(E[r]||E.en)[t]||"",y=t=>{const a=new Date(t),m=new Date;return a.toDateString()===m.toDateString()?p.now:(A[r]||A.en)[a.getDay()]},x=t=>new Date(t).toLocaleDateString(r==="cs"?"cs-CZ":r==="de"?"de-AT":"en-GB",{day:"numeric",month:"short"});return w(h),e.jsxs(ae,{children:[o.length>0&&e.jsx("section",{className:"bg-alpine-sky/20 border-b border-alpine-sky/30",children:e.jsx("div",{className:"container py-2.5",children:e.jsxs("div",{className:"flex items-center justify-center gap-0 overflow-x-auto",children:[e.jsx("span",{className:"text-[9px] tracking-[0.15em] uppercase text-primary font-semibold mr-3 shrink-0 hidden lg:inline",children:"10-day forecast"}),o.map((t,a)=>{const m=w(t.weatherCode),c=a===0;return e.jsxs(ve,{openDelay:200,closeDelay:100,children:[e.jsx(we,{asChild:!0,children:e.jsxs("div",{className:`flex items-center gap-1 px-2 md:px-2.5 py-1.5 rounded-full shrink-0 cursor-pointer transition-colors ${c?"bg-primary text-primary-foreground":"hover:bg-alpine-sky/20"}`,children:[e.jsx("span",{className:`text-[10px] font-medium ${c?"":"text-muted-foreground"}`,children:c?y(t.date):`${y(t.date)} ${new Date(t.date).getDate()}.${new Date(t.date).getMonth()+1}.`}
36),e.jsx(m,{className:`w-3.5 h-3.5 ${c?"":"text-foreground/50"}`}),e.jsxs("span",{className:`text-[11px] font-medium ${c?"":"text-foreground"}`,children:[t.tempMax,"°"]}),e.jsxs("span",{className:`text-[10px] ${c?"opacity-60":"text-muted-foreground"}`,children:[t.tempMin,"°"]})]})}),e.jsx(I,{className:"w-48 p-3",side:"bottom",align:"center",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-semibold",children:x(t.date)}),e.jsx(m,{className:"w-4 h-4 text-foreground/70"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:f(t.weatherCode)}),e.jsxs("div",{className:"grid grid-cols-2 gap-1.5 text-[11px]",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ne,{className:"w-3 h-3 text-destructive/70"}),e.jsxs("span",{children:[t.tempMax,"° / ",t.tempMin,"°"]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ce,{className:"w-3 h-3 text-muted-foreground"}),e.jsxs("span",{children:[t.windSpeed," km/h"]})]}),e.jsxs("div",{className:"flex items-center gap-1 col-span-2",children:[e.jsx(oe,{className:"w-3 h-3 text-blue-500"}),e.jsxs("span",{children:[p.precip,": ",t.precipitation," mm"]})]})]}),e.jsxs("a",{href:"https://www.bergfex.com/hochkoenig-maria-alm-dienten-muehlbach/wetter/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-[10px] text-primary hover:underline pt-1 border-t border-border/40",children:[e.jsx(R,{className:"w-2.5 h-2.5"}),p.moreDetail]})]})})]},t.date)})]})})}),e.jsx("section",{className:"py-4 lg:py-6",children:e.jsx("div",{className:"container",children:e.jsx("div",{className:"rounded-xl overflow-hidden shadow-elevated bg-card",children:e.jsx("div",{className:"aspect-video",children:e.jsx("iframe",{src:d,className:"w-full h-full border-0",allowFullScreen:!0,title:"Live Webcams Hochkönig"})})})})}),e.jsx("section",{className:"py-12 lg:py-16 bg-secondary/30",children:e.jsx("div",{className:"container",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsx(P,{asChild:!0,size:"lg",className:"px-7 py-5 text-xs tracking-[0.2em] uppercase font-medium",children:e.jsxs("a",{href:"https://www.hochkoenig.at/de/winter/webcams",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(se,{className:"w-4 h-4 mr-2"}),p.allCams,e.jsx(R,{className:"w-3 h-3 ml-2"})]})}),e.jsx(P,{asChild:!0,variant:"outline",size:"lg",className:"px-7 py-5 text-xs tracking-[0.2em] uppercase font-medium",children:e.jsxs("a",{href:"https://www.bergfex.com/hochkoenig-maria-alm-dienten-muehlbach/wetter/",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(H,{className:"w-4 h-4 mr-2"}),p.weather]})})]})})})]})};export{_e as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.