1import{t as m}from"./global-nglKSoR3.js";import{c as a}from"./error-kqOC86ip.js";import{c as y}from"./camera-B1gsgm9y.js";import{r as C,c as v,o as g,w as F,b as s,g as d,h as n,e as i,f as t,t as e,i as c,F as I,s as T}from"../app-0.5.6.js";import"./index-CMW59wn3.js";import"./user-DJPGqo8-.js";import"./_commonjsHelpers-CE1G-McA.js";const z={key:0,class:"weather",id:"weather"},B={class:"weather-title"},L={key:0},x={key:1},D={key:2,class:"location"},N={class:"weather-icon"},V={class:"icon"},b={key:0,class:"temp"},S={key:1,class:"temp"},W={class:"current-weather"},j={class:"feels-like"},E={key:0},M={key:1},O={class:"humidity"},$={class:"clouds"},q={class:"wind"},A={key:0,class:"week-list"},G={class:"weather-icon"},H={class:"day"},J={class:"temp"},K={key:0,class:"temp temp-f"},ee={__name:"WeatherBlock",props:["showTitle","showDate","showLocation","locale"],setup(u){let r=C(null);const l=v(()=>a.weather?.list[0]??{}),f=v(()=>r.value?.date?r.value.date:a.weather?.date),k=v(()=>r.value?.time?r.value.time:a?.weather?.current_time);function p(h){return h?parseInt(parseFloat(h)*9/5+32):0}function w(){a.currentCamera?.timezone&&a.currentCamera?.latitude&&a.currentCamera?.longitude&&(r.value=y.getLocalTimes({timezone:a.currentCamera?.timezone,latitude:a.currentCamera?.latitude,longitude:a.currentCamera?.longitude}))}return g(()=>{a.currentCamera?.timezone?w():r.value=null}),F(()=>a.currentCamera,h=>{h?.timezone?w():r.value=null}),(h,o)=>Object.keys(n(a).weather).length?(i(),s("div",z,[t("div",B,[u.showTitle?(i(),s("h2",L,e(n(m).weather),1)):d("",!0),u.showDate?(i(),s("time",x,e(f.value)+" - "+e(k.value),1)):d("",!0),u.showLocation?(i(),s("span",D,e(n(a).weather.city.name)+", "+e(n(a).weather.city.country),1)):d("",!0)]),t("div",N,[t("span",V,e(n(a).weather.icon),1),u.locale==="en"?(i(),s("span",b,e(parseInt(l.value.main.temp))+"°C / "+e(p(l.value.main.temp))+"°F",1)):(i(),s("span",S,e(parseInt(l.value.main.temp))+"°C",1))]),t("ul",W,[t("li",j,[c(e(n(m).feels_like)+" ",1),u.locale==="en"?(i(),s("span",E,e(parseInt(l.value.main.feels_like))+"°C / "+e(p(l.value.main.feels_like))+"°F",1)):(i(),s("span",M,e(parseInt(l.value.main.feels_like))+"°C",1))]),t("li",O,[c(e(n(m).humidity)+" ",1),o[0]||(o[0]=t("span",{class:"icon"},"ð§",-1)),o[1]||(o[1]=c()),t("span",null,e(l.value.main.humidity)+"%",1)]),t("li",$,[c(e(n(m).clouds)+" ",1),t("span",null,[o[2]||(o[2]=t("span",{class:"icon"},"â",-1)),c(" "+e(l.value.clouds.all)+"%",1)])]),t("li",q,[c(e(n(m).wind)+" ",1),t("span",null,[o[3]||(o[3]=t("span",{class:"icon"},"ð",-1)),c(" "+e(l.value.wind.speed)+" "+e(n(m).km_h),1)])])]),n(a).weather.formatted_list.length?(i(),s("ul",A,[(i(!0),s(I,null,T(n(a).weather.formatted_list,_=>(i(),s("li",{key:`day-${_.day}`},[t("div",G,[t("span",null,e(_.icon),1)]),t("div",H,e(_.day),1),t("div",J,e(parseInt(_.temp))+"°C",1),u.locale==="en"?(i(),s("div",K,e(p(l.value.main.feels_like))+"°F ",1)):d("",!0)]))),128))])):d("",!0)])):d("",!0)}};export{ee 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.