import{X as m,g as i,u as a,o as s,d as c,a as l,j as d,_,r as n,i as f,H as g}from"./F4mCmN5V.js";import{a as p}from"./aNasIbik.js";async function q(t,e,o){try{return await $fetch(e,o)}catch(r){throw console.error(`[Weather] ${t}`,{status:r.statusCode,message:r.data?.message??r.message,url:e,query:o?.query}),r}}function w(t){return t.toString().padStart(2,"0")}function C(t){return`${m}/images/icons/${w(t)}.svg`}function j(t){return t.replace(/&&\s*$/g,"").split(/\n\n+/).map(e=>e.replace(/\n/g," ").replace(/(\S)\.\.\.(\S)/g,"$1... $2").trim()).filter(Boolean)}const h=["aria-label"],b=i({__name:"MuteButton",setup(t){const e=p();return(o,r)=>a(e).enabled.value?d("",!0):(s(),c("button",{key:0,type:"button",class:"absolute end-6 md:end-screen top-1/2 -translate-y-1/2 cursor-pointer flex items-center justify-center size-[1.25em] bg-[#00ff00] hover:brightness-125 transition-[filter]","aria-label":o.$t("aria.unmuteAudio"),onClick:r[0]||(r[0]=(...u)=>a(e).toggle&&a(e).toggle(...u))},[...r[1]||(r[1]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",class:"h-2/3 fill-black"},[l("path",{d:"m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Z"})],-1)])],8,h))}}),v=Object.assign(b,{__name:"MuteButton"}),$={},k={class:"relative border-t md:border-t-2 border-black flex h-[clamp(3rem,18vw,5rem)] md:h-auto items-center max-w-full overflow-hidden"};function x(t,e){const o=v;return s(),c("footer",k,[n(t.$slots,"default"),f(o)])}const T=Object.assign(_($,[["render",x]]),{__name:"Footer"}),S=i({__name:"WeatherStar",props:{to:{}},setup(t){return(e,o)=>(s(),c("section",{class:"@container-[size] bg-twc-purple font-stretch-condensed grid grid-rows-[auto_1fr_auto] md:grid-rows-[18.75%_1fr_16.6666666667%] h-full text-[clamp(0.875rem,4vw,1.125rem)] md:text-[min(4vh,3vw)] tracking-[-0.05em] w-full *:text-stroke-[2px] *:text-stroke-black md:*:text-stroke-[0.375cqw] *:text-shadow-[0.375cqw_0.375cqw_black] *:rtl:text-shadow-[-0.375cqw_0.375cqw_black]",onClick:o[0]||(o[0]=r=>t.to&&("navigateTo"in e?e.navigateTo:a(g))(t.to))},[n(e.$slots,"header"),n(e.$slots,"article"),n(e.$slots,"alert"),n(e.$slots,"footer")]))}}),W=Object.assign(S,{__name:"WeatherStar"});export{W as _,T as a,w as b,C as g,j as p,q as w};