diff --git a/apps/weather_status/src/App.vue b/apps/weather_status/src/App.vue index 21806d2ca80c9..41cbcdefbeb43 100644 --- a/apps/weather_status/src/App.vue +++ b/apps/weather_status/src/App.vue @@ -244,6 +244,296 @@ const weatherOptions = { ? t('weather_status', '{temperature} {unit} heavy rainfall showers later today', { temperature, unit }) : t('weather_status', '{temperature} {unit} heavy rainfall showers', { temperature, unit }), }, + clearsky_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} clear sky and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} clear sky and polar twilight', { temperature, unit }), + }, + fair_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} fair weather and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} fair weather and polar twilight', { temperature, unit }), + }, + partlycloudy_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} partly cloudy and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} partly cloudy and polar twilight', { temperature, unit }), + }, + lightrainandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light rain and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light rain and thunder', { temperature, unit }), + }, + rainandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} rain and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} rain and thunder', { temperature, unit }), + }, + heavyrainandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy rain and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy rain and thunder', { temperature, unit }), + }, + lightrainshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light rainfall showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light rainfall showers and thunder', { temperature, unit }), + }, + lightrainshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light rainfall showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light rainfall showers and thunder', { temperature, unit }), + }, + lightrainshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light rainfall showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light rainfall showers, thunder and polar twilight', { temperature, unit }), + }, + rainshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} rainfall showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} rainfall showers and thunder', { temperature, unit }), + }, + rainshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} rainfall showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} rainfall showers and thunder', { temperature, unit }), + }, + rainshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} rainfall showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} rainfall showers, thunder and polar twilight', { temperature, unit }), + }, + heavyrainshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy rainfall showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy rainfall showers and thunder', { temperature, unit }), + }, + heavyrainshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy rainfall showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy rainfall showers and thunder', { temperature, unit }), + }, + heavyrainshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy rainfall showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy rainfall showers, thunder and polar twilight', { temperature, unit }), + }, + lightrainshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light rainfall showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light rainfall showers and polar twilight', { temperature, unit }), + }, + rainshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} rainfall showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} rainfall showers and polar twilight', { temperature, unit }), + }, + heavyrainshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy rainfall showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy rainfall showers and polar twilight', { temperature, unit }), + }, + lightsleet: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet', { temperature, unit }), + }, + sleet: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet', { temperature, unit }), + }, + heavysleet: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet', { temperature, unit }), + }, + lightsleetandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet and thunder', { temperature, unit }), + }, + sleetandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet and thunder', { temperature, unit }), + }, + heavysleetandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet and thunder', { temperature, unit }), + }, + lightsleetshowers_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet showers', { temperature, unit }), + }, + lightsleetshowers_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet showers', { temperature, unit }), + }, + lightsleetshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet showers and polar twilight', { temperature, unit }), + }, + sleetshowers_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet showers', { temperature, unit }), + }, + sleetshowers_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet showers', { temperature, unit }), + }, + sleetshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet showers and polar twilight', { temperature, unit }), + }, + heavysleetshowers_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet showers', { temperature, unit }), + }, + heavysleetshowers_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet showers', { temperature, unit }), + }, + heavysleetshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet showers and polar twilight', { temperature, unit }), + }, + lightssleetshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet showers and thunder', { temperature, unit }), + }, + lightssleetshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet showers and thunder', { temperature, unit }), + }, + lightssleetshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light sleet showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light sleet showers, thunder and polar twilight', { temperature, unit }), + }, + sleetshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet showers and thunder', { temperature, unit }), + }, + sleetshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet showers and thunder', { temperature, unit }), + }, + sleetshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} sleet showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} sleet showers, thunder and polar twilight', { temperature, unit }), + }, + heavysleetshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet showers and thunder', { temperature, unit }), + }, + heavysleetshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet showers and thunder', { temperature, unit }), + }, + heavysleetshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy sleet showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy sleet showers, thunder and polar twilight', { temperature, unit }), + }, + lightsnow: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow', { temperature, unit }), + }, + heavysnow: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow', { temperature, unit }), + }, + lightsnowandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow and thunder', { temperature, unit }), + }, + heavysnowandthunder: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow and thunder', { temperature, unit }), + }, + lightsnowshowers_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow showers', { temperature, unit }), + }, + lightsnowshowers_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow showers', { temperature, unit }), + }, + lightsnowshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow showers and polar twilight', { temperature, unit }), + }, + heavysnowshowers_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow showers', { temperature, unit }), + }, + heavysnowshowers_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow showers later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow showers', { temperature, unit }), + }, + heavysnowshowers_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow showers and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow showers and polar twilight', { temperature, unit }), + }, + lightssnowshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow showers and thunder', { temperature, unit }), + }, + lightssnowshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow showers and thunder', { temperature, unit }), + }, + lightssnowshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} light snow showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} light snow showers, thunder and polar twilight', { temperature, unit }), + }, + heavysnowshowersandthunder_day: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow showers and thunder', { temperature, unit }), + }, + heavysnowshowersandthunder_night: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow showers and thunder later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow showers and thunder', { temperature, unit }), + }, + heavysnowshowersandthunder_polartwilight: { + text: (temperature, unit, later = false) => later + ? t('weather_status', '{temperature} {unit} heavy snow showers, thunder and polar twilight later today', { temperature, unit }) + : t('weather_status', '{temperature} {unit} heavy snow showers, thunder and polar twilight', { temperature, unit }), + }, } export default { diff --git a/dist/weather_status-weather-status.js b/dist/weather_status-weather-status.js index 488955ec5db83..4c3fbe9f615f6 100644 --- a/dist/weather_status-weather-status.js +++ b/dist/weather_status-weather-status.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e,a,r,s={27257(e,a,r){var s=r(21777),n=r(85471);const o='';var i=r(11459),u=r(85168),h=r(53334),c=r(51651),l=r(63814),d=r(57505),p=r(61744),w=r(44131),g=r(57908),m=r(24764),f=r(15502),v=r(71711),y=r(6695),_=r(88289);const A=(0,r(35947).YK)().detectLogLevel().setApp("weather_status").build();var T=r(19051);async function b(t){const e=(0,l.KT)("apps/weather_status/api/v1/favorites");return(await T.Ay.put(e,{favorites:t})).data.ocs.data}const M={clearsky_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} clear sky later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} clear sky",{temperature:e,unit:a})},clearsky_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} clear sky later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} clear sky",{temperature:e,unit:a})},cloudy:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} cloudy later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} cloudy",{temperature:e,unit:a})},snowandthunder:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow and thunder later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow and thunder",{temperature:e,unit:a})},snowshowersandthunder_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow showers and thunder later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow showers and thunder",{temperature:e,unit:a})},snowshowersandthunder_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow showers and thunder later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow showers and thunder",{temperature:e,unit:a})},snowshowersandthunder_polartwilight:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow showers, thunder and polar twilight later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow showers, thunder and polar twilight",{temperature:e,unit:a})},snowshowers_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow showers",{temperature:e,unit:a})},snowshowers_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow showers",{temperature:e,unit:a})},snowshowers_polartwilight:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow showers and polar twilight later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow showers and polar twilight",{temperature:e,unit:a})},snow:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} snow later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} snow",{temperature:e,unit:a})},fair_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} fair weather later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} fair weather",{temperature:e,unit:a})},fair_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} fair weather later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} fair weather",{temperature:e,unit:a})},partlycloudy_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} partly cloudy later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} partly cloudy",{temperature:e,unit:a})},partlycloudy_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} partly cloudy later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} partly cloudy",{temperature:e,unit:a})},fog:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} foggy later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} foggy",{temperature:e,unit:a})},lightrain:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} light rainfall later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} light rainfall",{temperature:e,unit:a})},rain:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} rainfall later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} rainfall",{temperature:e,unit:a})},heavyrain:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} heavy rainfall later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} heavy rainfall",{temperature:e,unit:a})},rainshowers_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} rainfall showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} rainfall showers",{temperature:e,unit:a})},rainshowers_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} rainfall showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} rainfall showers",{temperature:e,unit:a})},lightrainshowers_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} light rainfall showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} light rainfall showers",{temperature:e,unit:a})},lightrainshowers_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} light rainfall showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} light rainfall showers",{temperature:e,unit:a})},heavyrainshowers_day:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} heavy rainfall showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} heavy rainfall showers",{temperature:e,unit:a})},heavyrainshowers_night:{text:(e,a,r=!1)=>r?t("weather_status","{temperature} {unit} heavy rainfall showers later today",{temperature:e,unit:a}):t("weather_status","{temperature} {unit} heavy rainfall showers",{temperature:e,unit:a})}},C={name:"App",components:{NcActions:m.A,NcActionButton:d.A,NcActionCaption:p.A,NcActionInput:w.A,NcActionLink:g.A,NcActionSeparator:f.A,NcActionText:v.A,NcLoadingIcon:_.A,NcIconSvgWrapper:y.A},data:()=>({crosshairsSvg:'',mapMarkerSvg:'',starSvg:i,starOutlineSvg:o,locale:(0,h.JK)(),loading:!0,errorMessage:"",mode:1,address:null,lat:null,lon:null,offset:5,forecasts:[],loop:null,favorites:[]}),computed:{useFahrenheitLocale(){return["en_US","en_MH","en_FM","en_PW","en_KY","en_LR"].includes(this.locale)},temperatureUnit(){return this.useFahrenheitLocale?"°F":"°C"},locationText(){return t("weather_status","More weather for {adr}",{adr:this.address})},temperature(){return this.getTemperature(this.forecasts,0)},futureTemperature(){return this.getTemperature(this.forecasts,this.offset)},weatherCode(){return this.getWeatherCode(this.forecasts,0)},futureWeatherCode(){return this.getWeatherCode(this.forecasts,this.offset)},weatherIconUrl(){return this.getWeatherIconUrl(this.weatherCode)},futureWeatherIconUrl(){return this.getWeatherIconUrl(this.futureWeatherCode)},currentWeatherMessage(){return this.loading?t("weather_status","Loading weather"):this.errorMessage?this.errorMessage:this.gotWeather?this.getWeatherMessage(this.weatherCode,this.temperature):t("weather_status","Set location for weather")},forecastMessage(){return this.loading?t("weather_status","Loading weather"):this.gotWeather?this.getWeatherMessage(this.futureWeatherCode,this.futureTemperature,!0):t("weather_status","Set location for weather")},weatherLinkTarget(){return"https://www.windy.com/-Rain-thunder-rain?rain,"+this.lat+","+this.lon+",11"},gotWeather(){return this.address&&!this.errorMessage},addRemoveFavoriteSvg(){return this.currentAddressIsFavorite?i:o},addRemoveFavoriteText(){return this.currentAddressIsFavorite?t("weather_status","Remove from favorites"):t("weather_status","Add as favorite")},currentAddressIsFavorite(){return this.favorites.find(t=>t===this.address)}},mounted(){this.initWeatherStatus()},methods:{async initWeatherStatus(){try{const t=await async function(){const t=(0,l.KT)("apps/weather_status/api/v1/location");return(await T.Ay.get(t)).data.ocs.data}();this.lat=t.lat,this.lon=t.lon,this.address=t.address,this.mode=t.mode,1===this.mode?this.askBrowserLocation():2===this.mode&&this.startLoop();const e=await async function(){const t=(0,l.KT)("apps/weather_status/api/v1/favorites");return(await T.Ay.get(t)).data.ocs.data}();this.favorites=e}catch(e){if("ECONNABORTED"===e?.code)return void A.info("The weather status request was cancelled because the user navigates.");e.response&&401===e.response.status?(0,u.Qg)(t("weather_status","You are not logged in.")):(0,u.Qg)(t("weather_status","There was an error getting the weather status information.")),A.error(e)}},startLoop(){clearInterval(this.loop),this.lat&&this.lon?(this.loop=setInterval(()=>this.getForecast(),36e5),this.getForecast()):this.loading=!1},askBrowserLocation(){this.loading=!0,this.errorMessage="",navigator.geolocation&&window.isSecureContext?navigator.geolocation.getCurrentPosition(t=>{A.debug("browser location success"),this.lat=t.coords.latitude,this.lon=t.coords.longitude,this.saveMode(1),this.mode=1,this.saveLocation(this.lat,this.lon)},t=>{A.debug("location permission refused"),A.debug(t),this.saveMode(2),this.mode=2,this.lat&&this.lon?this.startLoop():this.usePersonalAddress()}):(A.debug("no secure context!"),this.saveMode(2),this.mode=2,this.startLoop())},async getForecast(){try{this.forecasts=await async function(){const t=(0,l.KT)("apps/weather_status/api/v1/forecast");return(await T.Ay.get(t)).data.ocs.data}()}catch(e){this.errorMessage=t("weather_status","No weather information found"),A.debug(e)}this.loading=!1},async setAddress(e){this.loading=!0,this.errorMessage="";try{const a=await async function(t){const e=(0,l.KT)("apps/weather_status/api/v1/location");return(await T.Ay.put(e,{address:t,lat:null,lon:null})).data.ocs.data}(e);a.success?(this.lat=a.lat,this.lon=a.lon,this.address=a.address,this.mode=2,this.startLoop()):(this.errorMessage=t("weather_status","Location not found"),this.loading=!1)}catch(e){e.response&&401===e.response.status?(0,u.Qg)(t("weather_status","You are not logged in.")):(0,u.Qg)(t("weather_status","There was an error setting the location address.")),this.loading=!1}},async saveLocation(e,a){try{const t=await async function(t,e){const a=(0,l.KT)("apps/weather_status/api/v1/location");return(await T.Ay.put(a,{address:"",lat:t,lon:e})).data.ocs.data}(e,a);this.address=t.address,this.startLoop()}catch(e){e.response&&401===e.response.status?(0,u.Qg)(t("weather_status","You are not logged in.")):(0,u.Qg)(t("weather_status","There was an error setting the location.")),A.debug(e)}},async saveMode(e){try{await async function(t){const e=(0,l.KT)("apps/weather_status/api/v1/mode");return(await T.Ay.put(e,{mode:t})).data.ocs.data}(e)}catch(e){e.response&&401===e.response.status?(0,u.Qg)(t("weather_status","You are not logged in.")):(0,u.Qg)(t("weather_status","There was an error saving the mode.")),A.debug(e)}},onBrowserLocationClick(){this.askBrowserLocation()},async usePersonalAddress(){this.loading=!0;try{const t=await async function(){const t=(0,l.KT)("apps/weather_status/api/v1/use-personal");return(await T.Ay.put(t)).data.ocs.data}();this.lat=t.lat,this.lon=t.lon,this.address=t.address,this.mode=2,this.startLoop()}catch(e){e.response&&401===e.response.status?(0,u.Qg)(t("weather_status","You are not logged in.")):(0,u.Qg)(t("weather_status","There was an error using personal address.")),A.debug(e),this.loading=!1}},onAddressSubmit(){const t=this.$refs.addressInput.$el.querySelector('input[type="text"]').value;this.setAddress(t)},getLocalizedTemperature(t){return this.useFahrenheitLocale?1.8*t+32:t},onAddRemoveFavoriteClick(){const t=this.currentAddressIsFavorite;if(t){const e=this.favorites.indexOf(t);-1!==e&&this.favorites.splice(e,1)}else this.favorites.push(this.address);b(this.favorites)},onFavoriteClick(t,e){if(t.target.classList.contains("action-button__icon")){const t=this.favorites.indexOf(e);-1!==t&&this.favorites.splice(t,1),b(this.favorites)}else e!==this.address&&this.setAddress(e)},formatTime:t=>(0,c.A)(t).format("LT"),getTemperature:(t,e=0)=>t.length>e?t[e].data.instant.details.air_temperature:"",getWeatherCode:(t,e=0)=>t.length>e?t[e].data.next_1_hours.summary.symbol_code:"",getWeatherIconUrl:t=>t&&t in M?(0,l.d0)("weather_status","met.no.icons/"+t+".svg"):(0,l.d0)("weather_status","met.no.icons/fair_day.svg"),getWeatherMessage(e,a,r=!1){return e&&e in M?M[e].text(Math.round(this.getLocalizedTemperature(a)),this.temperatureUnit,r):t("weather_status","Unknown weather code")}}};var x=r(85072),L=r.n(x),N=r(97825),k=r.n(N),S=r(77659),I=r.n(S),W=r(55056),D=r.n(W),E=r(10540),O=r.n(E),B=r(41113),F=r.n(B),j=r(72493),Q={};Q.styleTagTransform=F(),Q.setAttributes=D(),Q.insert=I().bind(null,"head"),Q.domAPI=k(),Q.insertStyleElement=O(),L()(j.A,Q),j.A&&j.A.locals&&j.A.locals;const H=(0,r(14486).A)(C,function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"weather-status-menu-item"}},[e("NcActions",{staticClass:"weather-status-menu-item__subheader",attrs:{"aria-label":t.currentWeatherMessage,"menu-name":t.currentWeatherMessage},scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("NcLoadingIcon"):e("img",{staticClass:"weather-image",attrs:{src:t.weatherIconUrl,alt:""}})]},proxy:!0}])},[t._v(" "),t.gotWeather?e("NcActionText",{scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("NcLoadingIcon"):e("div",{staticClass:"weather-action-image-container"},[e("img",{staticClass:"weather-image",attrs:{src:t.futureWeatherIconUrl,alt:""}})])]},proxy:!0}],null,!1,1876957744)},[t._v("\n\t\t\t"+t._s(t.forecastMessage)+"\n\t\t")]):t._e(),t._v(" "),t.gotWeather?e("NcActionLink",{attrs:{target:"_blank",href:t.weatherLinkTarget,"close-after-click":!0},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{name:"MapMarker",svg:t.mapMarkerSvg,size:20}})]},proxy:!0}],null,!1,2374361976)},[t._v("\n\t\t\t"+t._s(t.locationText)+"\n\t\t")]):t._e(),t._v(" "),t.gotWeather?e("NcActionButton",{on:{click:t.onAddRemoveFavoriteClick},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{staticClass:"favorite-color",attrs:{name:"Star",svg:t.addRemoveFavoriteSvg,size:20}})]},proxy:!0}],null,!1,2760308411)},[t._v("\n\t\t\t"+t._s(t.addRemoveFavoriteText)+"\n\t\t")]):t._e(),t._v(" "),t.address&&!t.errorMessage?e("NcActionSeparator"):t._e(),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:t.onBrowserLocationClick},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{name:"Crosshairs",svg:t.crosshairsSvg,size:20}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("weather_status","Detect location"))+"\n\t\t")]),t._v(" "),e("NcActionInput",{ref:"addressInput",attrs:{label:t.t("weather_status","Set custom address"),disabled:!1,icon:"icon-rename",type:"text","model-value":""},on:{submit:t.onAddressSubmit}}),t._v(" "),t.favorites.length>0?[e("NcActionCaption",{attrs:{name:t.t("weather_status","Favorites")}}),t._v(" "),t._l(t.favorites,function(a){return e("NcActionButton",{key:a,on:{click:function(e){return t.onFavoriteClick(e,a)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{class:{"favorite-color":t.address===a},attrs:{name:"Star",svg:t.starSvg,size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t"+t._s(a)+"\n\t\t\t")])})]:t._e()],2)],1)},[],!1,null,null,null).exports;r.nc=(0,s.aV)(),n.Ay.prototype.t=t,document.addEventListener("DOMContentLoaded",function(){OCA.Dashboard&&OCA.Dashboard.registerStatus("weather",t=>(new(n.Ay.extend(H))).$mount(t))})},72493(t,e,a){a.d(e,{A:()=>d});var r=a(71354),s=a.n(r),n=a(76314),o=a.n(n),i=a(4417),u=a.n(i),h=new URL(a(6315),a.b),c=o()(s()),l=u()(h);c.push([t.id,`.icon-weather-status{background-image:url(${l})}.weather-action-image-container{width:var(--default-clickable-area);height:var(--default-clickable-area);display:flex;align-items:center;justify-content:center}.weather-image{width:calc(var(--default-clickable-area) - 2*var(--default-grid-baseline))}.favorite-color{color:var(--color-favorite)}`,"",{version:3,sources:["webpack://./apps/weather_status/src/App.vue"],names:[],mappings:"AACA,qBACC,wDAAA,CAGD,gCACC,mCAAA,CACA,oCAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAGD,eACC,0EAAA,CAID,gBACC,2BAAA",sourcesContent:["\n.icon-weather-status {\n\tbackground-image: url('../img/app-dark.svg');\n}\n\n.weather-action-image-container {\n\twidth: var(--default-clickable-area);\n\theight: var(--default-clickable-area);\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.weather-image {\n\twidth: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\n}\n\n// Set color to primary element for current / active favorite address\n.favorite-color {\n\tcolor: var(--color-favorite);\n}\n"],sourceRoot:""}]);const d=c},6315(t){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyMHB4Ij48cGF0aCBkPSJNNDQ0LTc2OHYtMTQ0aDcydjE0NGgtNzJabTI2NSAxMTItNTQtNTIgMTA0LTEwMiA1MiA1MC0xMDIgMTA0Wm01OSAyMTJ2LTcyaDE0NHY3Mkg3NjhaTTQ0NC00OHYtMTQ0aDcydjE0NGgtNzJaTTI1MS02NTggMTQ3LTc2MGw1NC01MCAxMDEgMTAxLTUxIDUxWm01MDkgNTExTDY1OS0yNTJsNTAtNTAgMTA0IDEwMC01MyA1NVpNNDgtNDQ0di03MmgxNDR2NzJINDhabTE1MiAyOTctNTEtNTMgMTAyLTEwMCAyNSAyNCAyNCAyNS0xMDAgMTA0Wm0yODAtOTNxLTEwMCAwLTE3MC03MHQtNzAtMTcwcTAtMTAwIDcwLTE3MHQxNzAtNzBxMTAwIDAgMTcwIDcwdDcwIDE3MHEwIDEwMC03MCAxNzB0LTE3MCA3MFoiLz48L3N2Zz4="}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return s[t].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=s,e=[],o.O=(t,a,r,s)=>{if(!a){var n=1/0;for(c=0;c=s)&&Object.keys(o.O).every(t=>o.O[t](a[u]))?a.splice(u--,1):(i=!1,s0&&e[c-1][2]>s;c--)e[c]=e[c-1];e[c]=[a,r,s]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var a in e)o.o(e,a)&&!o.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce((e,a)=>(o.f[a](t,e),e),[])),o.u=t=>t+"-"+t+".js?v="+{1140:"dd55e1cf2dab9870eea9",2221:"2dad9baace69cfd4a3be",5448:"71cfe268d6f1213c4735",6015:"8ac07126adf0759a3464",6798:"1a6cf42d93801a926a3d",7471:"b4ac70873a3ab192efd0",7859:"5bcb1bbacda3204063dd",7910:"de857920f8beb5205bbc",8815:"0f63c2eb085d7b08be1b"}[t],o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a={},r="nextcloud-ui-legacy:",o.l=(t,e,s,n)=>{if(a[t])a[t].push(e);else{var i,u;if(void 0!==s)for(var h=document.getElementsByTagName("script"),c=0;c{i.onerror=i.onload=null,clearTimeout(p);var s=a[t];if(delete a[t],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach(t=>t(r)),e)return e(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),u&&document.head.appendChild(i)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),o.j=1848,(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var e=globalThis.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var a=e.getElementsByTagName("script");if(a.length)for(var r=a.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=a[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{o.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={1848:0};o.f.j=(e,a)=>{var r=o.o(t,e)?t[e]:void 0;if(0!==r)if(r)a.push(r[2]);else{var s=new Promise((a,s)=>r=t[e]=[a,s]);a.push(r[2]=s);var n=o.p+o.u(e),i=new Error;o.l(n,a=>{if(o.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var s=a&&("load"===a.type?"missing":a.type),n=a&&a.target&&a.target.src;i.message="Loading chunk "+e+" failed.\n("+s+": "+n+")",i.name="ChunkLoadError",i.type=s,i.request=n,r[1](i)}},"chunk-"+e,e)}},o.O.j=e=>0===t[e];var e=(e,a)=>{var r,s,[n,i,u]=a,h=0;if(n.some(e=>0!==t[e])){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(u)var c=u(o)}for(e&&e(a);ho(27257));i=o.O(i)})(); -//# sourceMappingURL=weather_status-weather-status.js.map?v=16b370ceebbddcd23671 \ No newline at end of file +(()=>{"use strict";var e,r,a,s={87171(e,r,a){var s=a(21777),n=a(85471);const u='';var i=a(11459),o=a(85168),h=a(53334),l=a(51651),d=a(63814),w=a(57505),p=a(61744),m=a(44131),c=a(57908),g=a(24764),_=a(15502),y=a(71711),v=a(6695),f=a(88289);const A=(0,a(35947).YK)().detectLogLevel().setApp("weather_status").build();var x=a(19051);async function T(t){const e=(0,d.KT)("apps/weather_status/api/v1/favorites");return(await x.Ay.put(e,{favorites:t})).data.ocs.data}const b={clearsky_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} clear sky later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} clear sky",{temperature:e,unit:r})},clearsky_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} clear sky later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} clear sky",{temperature:e,unit:r})},cloudy:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} cloudy later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} cloudy",{temperature:e,unit:r})},snowandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow and thunder",{temperature:e,unit:r})},snowshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow showers and thunder",{temperature:e,unit:r})},snowshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow showers and thunder",{temperature:e,unit:r})},snowshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow showers, thunder and polar twilight",{temperature:e,unit:r})},snowshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow showers",{temperature:e,unit:r})},snowshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow showers",{temperature:e,unit:r})},snowshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow showers and polar twilight",{temperature:e,unit:r})},snow:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} snow later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} snow",{temperature:e,unit:r})},fair_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} fair weather later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} fair weather",{temperature:e,unit:r})},fair_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} fair weather later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} fair weather",{temperature:e,unit:r})},partlycloudy_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} partly cloudy later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} partly cloudy",{temperature:e,unit:r})},partlycloudy_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} partly cloudy later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} partly cloudy",{temperature:e,unit:r})},fog:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} foggy later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} foggy",{temperature:e,unit:r})},lightrain:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rainfall later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rainfall",{temperature:e,unit:r})},rain:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rainfall later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rainfall",{temperature:e,unit:r})},heavyrain:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rainfall later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rainfall",{temperature:e,unit:r})},rainshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rainfall showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rainfall showers",{temperature:e,unit:r})},rainshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rainfall showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rainfall showers",{temperature:e,unit:r})},lightrainshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rainfall showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rainfall showers",{temperature:e,unit:r})},lightrainshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rainfall showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rainfall showers",{temperature:e,unit:r})},heavyrainshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rainfall showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rainfall showers",{temperature:e,unit:r})},heavyrainshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rainfall showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rainfall showers",{temperature:e,unit:r})},clearsky_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} clear sky and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} clear sky and polar twilight",{temperature:e,unit:r})},fair_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} fair weather and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} fair weather and polar twilight",{temperature:e,unit:r})},partlycloudy_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} partly cloudy and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} partly cloudy and polar twilight",{temperature:e,unit:r})},lightrainandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rain and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rain and thunder",{temperature:e,unit:r})},rainandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rain and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rain and thunder",{temperature:e,unit:r})},heavyrainandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rain and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rain and thunder",{temperature:e,unit:r})},lightrainshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rainfall showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rainfall showers and thunder",{temperature:e,unit:r})},lightrainshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rainfall showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rainfall showers and thunder",{temperature:e,unit:r})},lightrainshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rainfall showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rainfall showers, thunder and polar twilight",{temperature:e,unit:r})},rainshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rainfall showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rainfall showers and thunder",{temperature:e,unit:r})},rainshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rainfall showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rainfall showers and thunder",{temperature:e,unit:r})},rainshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rainfall showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rainfall showers, thunder and polar twilight",{temperature:e,unit:r})},heavyrainshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rainfall showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rainfall showers and thunder",{temperature:e,unit:r})},heavyrainshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rainfall showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rainfall showers and thunder",{temperature:e,unit:r})},heavyrainshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rainfall showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rainfall showers, thunder and polar twilight",{temperature:e,unit:r})},lightrainshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light rainfall showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light rainfall showers and polar twilight",{temperature:e,unit:r})},rainshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} rainfall showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} rainfall showers and polar twilight",{temperature:e,unit:r})},heavyrainshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy rainfall showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy rainfall showers and polar twilight",{temperature:e,unit:r})},lightsleet:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet",{temperature:e,unit:r})},sleet:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet",{temperature:e,unit:r})},heavysleet:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet",{temperature:e,unit:r})},lightsleetandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet and thunder",{temperature:e,unit:r})},sleetandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet and thunder",{temperature:e,unit:r})},heavysleetandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet and thunder",{temperature:e,unit:r})},lightsleetshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet showers",{temperature:e,unit:r})},lightsleetshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet showers",{temperature:e,unit:r})},lightsleetshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet showers and polar twilight",{temperature:e,unit:r})},sleetshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet showers",{temperature:e,unit:r})},sleetshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet showers",{temperature:e,unit:r})},sleetshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet showers and polar twilight",{temperature:e,unit:r})},heavysleetshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet showers",{temperature:e,unit:r})},heavysleetshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet showers",{temperature:e,unit:r})},heavysleetshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet showers and polar twilight",{temperature:e,unit:r})},lightssleetshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet showers and thunder",{temperature:e,unit:r})},lightssleetshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet showers and thunder",{temperature:e,unit:r})},lightssleetshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light sleet showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light sleet showers, thunder and polar twilight",{temperature:e,unit:r})},sleetshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet showers and thunder",{temperature:e,unit:r})},sleetshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet showers and thunder",{temperature:e,unit:r})},sleetshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} sleet showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} sleet showers, thunder and polar twilight",{temperature:e,unit:r})},heavysleetshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet showers and thunder",{temperature:e,unit:r})},heavysleetshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet showers and thunder",{temperature:e,unit:r})},heavysleetshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy sleet showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy sleet showers, thunder and polar twilight",{temperature:e,unit:r})},lightsnow:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow",{temperature:e,unit:r})},heavysnow:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow",{temperature:e,unit:r})},lightsnowandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow and thunder",{temperature:e,unit:r})},heavysnowandthunder:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow and thunder",{temperature:e,unit:r})},lightsnowshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow showers",{temperature:e,unit:r})},lightsnowshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow showers",{temperature:e,unit:r})},lightsnowshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow showers and polar twilight",{temperature:e,unit:r})},heavysnowshowers_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow showers",{temperature:e,unit:r})},heavysnowshowers_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow showers later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow showers",{temperature:e,unit:r})},heavysnowshowers_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow showers and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow showers and polar twilight",{temperature:e,unit:r})},lightssnowshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow showers and thunder",{temperature:e,unit:r})},lightssnowshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow showers and thunder",{temperature:e,unit:r})},lightssnowshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} light snow showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} light snow showers, thunder and polar twilight",{temperature:e,unit:r})},heavysnowshowersandthunder_day:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow showers and thunder",{temperature:e,unit:r})},heavysnowshowersandthunder_night:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow showers and thunder later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow showers and thunder",{temperature:e,unit:r})},heavysnowshowersandthunder_polartwilight:{text:(e,r,a=!1)=>a?t("weather_status","{temperature} {unit} heavy snow showers, thunder and polar twilight later today",{temperature:e,unit:r}):t("weather_status","{temperature} {unit} heavy snow showers, thunder and polar twilight",{temperature:e,unit:r})}},M={name:"App",components:{NcActions:g.A,NcActionButton:w.A,NcActionCaption:p.A,NcActionInput:m.A,NcActionLink:c.A,NcActionSeparator:_.A,NcActionText:y.A,NcLoadingIcon:f.A,NcIconSvgWrapper:v.A},data:()=>({crosshairsSvg:'',mapMarkerSvg:'',starSvg:i,starOutlineSvg:u,locale:(0,h.JK)(),loading:!0,errorMessage:"",mode:1,address:null,lat:null,lon:null,offset:5,forecasts:[],loop:null,favorites:[]}),computed:{useFahrenheitLocale(){return["en_US","en_MH","en_FM","en_PW","en_KY","en_LR"].includes(this.locale)},temperatureUnit(){return this.useFahrenheitLocale?"°F":"°C"},locationText(){return t("weather_status","More weather for {adr}",{adr:this.address})},temperature(){return this.getTemperature(this.forecasts,0)},futureTemperature(){return this.getTemperature(this.forecasts,this.offset)},weatherCode(){return this.getWeatherCode(this.forecasts,0)},futureWeatherCode(){return this.getWeatherCode(this.forecasts,this.offset)},weatherIconUrl(){return this.getWeatherIconUrl(this.weatherCode)},futureWeatherIconUrl(){return this.getWeatherIconUrl(this.futureWeatherCode)},currentWeatherMessage(){return this.loading?t("weather_status","Loading weather"):this.errorMessage?this.errorMessage:this.gotWeather?this.getWeatherMessage(this.weatherCode,this.temperature):t("weather_status","Set location for weather")},forecastMessage(){return this.loading?t("weather_status","Loading weather"):this.gotWeather?this.getWeatherMessage(this.futureWeatherCode,this.futureTemperature,!0):t("weather_status","Set location for weather")},weatherLinkTarget(){return"https://www.windy.com/-Rain-thunder-rain?rain,"+this.lat+","+this.lon+",11"},gotWeather(){return this.address&&!this.errorMessage},addRemoveFavoriteSvg(){return this.currentAddressIsFavorite?i:u},addRemoveFavoriteText(){return this.currentAddressIsFavorite?t("weather_status","Remove from favorites"):t("weather_status","Add as favorite")},currentAddressIsFavorite(){return this.favorites.find(t=>t===this.address)}},mounted(){this.initWeatherStatus()},methods:{async initWeatherStatus(){try{const t=await async function(){const t=(0,d.KT)("apps/weather_status/api/v1/location");return(await x.Ay.get(t)).data.ocs.data}();this.lat=t.lat,this.lon=t.lon,this.address=t.address,this.mode=t.mode,1===this.mode?this.askBrowserLocation():2===this.mode&&this.startLoop();const e=await async function(){const t=(0,d.KT)("apps/weather_status/api/v1/favorites");return(await x.Ay.get(t)).data.ocs.data}();this.favorites=e}catch(e){if("ECONNABORTED"===e?.code)return void A.info("The weather status request was cancelled because the user navigates.");e.response&&401===e.response.status?(0,o.Qg)(t("weather_status","You are not logged in.")):(0,o.Qg)(t("weather_status","There was an error getting the weather status information.")),A.error(e)}},startLoop(){clearInterval(this.loop),this.lat&&this.lon?(this.loop=setInterval(()=>this.getForecast(),36e5),this.getForecast()):this.loading=!1},askBrowserLocation(){this.loading=!0,this.errorMessage="",navigator.geolocation&&window.isSecureContext?navigator.geolocation.getCurrentPosition(t=>{A.debug("browser location success"),this.lat=t.coords.latitude,this.lon=t.coords.longitude,this.saveMode(1),this.mode=1,this.saveLocation(this.lat,this.lon)},t=>{A.debug("location permission refused"),A.debug(t),this.saveMode(2),this.mode=2,this.lat&&this.lon?this.startLoop():this.usePersonalAddress()}):(A.debug("no secure context!"),this.saveMode(2),this.mode=2,this.startLoop())},async getForecast(){try{this.forecasts=await async function(){const t=(0,d.KT)("apps/weather_status/api/v1/forecast");return(await x.Ay.get(t)).data.ocs.data}()}catch(e){this.errorMessage=t("weather_status","No weather information found"),A.debug(e)}this.loading=!1},async setAddress(e){this.loading=!0,this.errorMessage="";try{const r=await async function(t){const e=(0,d.KT)("apps/weather_status/api/v1/location");return(await x.Ay.put(e,{address:t,lat:null,lon:null})).data.ocs.data}(e);r.success?(this.lat=r.lat,this.lon=r.lon,this.address=r.address,this.mode=2,this.startLoop()):(this.errorMessage=t("weather_status","Location not found"),this.loading=!1)}catch(e){e.response&&401===e.response.status?(0,o.Qg)(t("weather_status","You are not logged in.")):(0,o.Qg)(t("weather_status","There was an error setting the location address.")),this.loading=!1}},async saveLocation(e,r){try{const t=await async function(t,e){const r=(0,d.KT)("apps/weather_status/api/v1/location");return(await x.Ay.put(r,{address:"",lat:t,lon:e})).data.ocs.data}(e,r);this.address=t.address,this.startLoop()}catch(e){e.response&&401===e.response.status?(0,o.Qg)(t("weather_status","You are not logged in.")):(0,o.Qg)(t("weather_status","There was an error setting the location.")),A.debug(e)}},async saveMode(e){try{await async function(t){const e=(0,d.KT)("apps/weather_status/api/v1/mode");return(await x.Ay.put(e,{mode:t})).data.ocs.data}(e)}catch(e){e.response&&401===e.response.status?(0,o.Qg)(t("weather_status","You are not logged in.")):(0,o.Qg)(t("weather_status","There was an error saving the mode.")),A.debug(e)}},onBrowserLocationClick(){this.askBrowserLocation()},async usePersonalAddress(){this.loading=!0;try{const t=await async function(){const t=(0,d.KT)("apps/weather_status/api/v1/use-personal");return(await x.Ay.put(t)).data.ocs.data}();this.lat=t.lat,this.lon=t.lon,this.address=t.address,this.mode=2,this.startLoop()}catch(e){e.response&&401===e.response.status?(0,o.Qg)(t("weather_status","You are not logged in.")):(0,o.Qg)(t("weather_status","There was an error using personal address.")),A.debug(e),this.loading=!1}},onAddressSubmit(){const t=this.$refs.addressInput.$el.querySelector('input[type="text"]').value;this.setAddress(t)},getLocalizedTemperature(t){return this.useFahrenheitLocale?1.8*t+32:t},onAddRemoveFavoriteClick(){const t=this.currentAddressIsFavorite;if(t){const e=this.favorites.indexOf(t);-1!==e&&this.favorites.splice(e,1)}else this.favorites.push(this.address);T(this.favorites)},onFavoriteClick(t,e){if(t.target.classList.contains("action-button__icon")){const t=this.favorites.indexOf(e);-1!==t&&this.favorites.splice(t,1),T(this.favorites)}else e!==this.address&&this.setAddress(e)},formatTime:t=>(0,l.A)(t).format("LT"),getTemperature:(t,e=0)=>t.length>e?t[e].data.instant.details.air_temperature:"",getWeatherCode:(t,e=0)=>t.length>e?t[e].data.next_1_hours.summary.symbol_code:"",getWeatherIconUrl:t=>t&&t in b?(0,d.d0)("weather_status","met.no.icons/"+t+".svg"):(0,d.d0)("weather_status","met.no.icons/fair_day.svg"),getWeatherMessage(e,r,a=!1){return e&&e in b?b[e].text(Math.round(this.getLocalizedTemperature(r)),this.temperatureUnit,a):t("weather_status","Unknown weather code")}}};var C=a(85072),L=a.n(C),N=a(97825),k=a.n(N),S=a(77659),I=a.n(S),W=a(55056),D=a.n(W),E=a(10540),O=a.n(E),B=a(41113),F=a.n(B),j=a(19254),Q={};Q.styleTagTransform=F(),Q.setAttributes=D(),Q.insert=I().bind(null,"head"),Q.domAPI=k(),Q.insertStyleElement=O(),L()(j.A,Q),j.A&&j.A.locals&&j.A.locals;const H=(0,a(14486).A)(M,function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"weather-status-menu-item"}},[e("NcActions",{staticClass:"weather-status-menu-item__subheader",attrs:{"aria-label":t.currentWeatherMessage,"menu-name":t.currentWeatherMessage},scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("NcLoadingIcon"):e("img",{staticClass:"weather-image",attrs:{src:t.weatherIconUrl,alt:""}})]},proxy:!0}])},[t._v(" "),t.gotWeather?e("NcActionText",{scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("NcLoadingIcon"):e("div",{staticClass:"weather-action-image-container"},[e("img",{staticClass:"weather-image",attrs:{src:t.futureWeatherIconUrl,alt:""}})])]},proxy:!0}],null,!1,1876957744)},[t._v("\n\t\t\t"+t._s(t.forecastMessage)+"\n\t\t")]):t._e(),t._v(" "),t.gotWeather?e("NcActionLink",{attrs:{target:"_blank",href:t.weatherLinkTarget,"close-after-click":!0},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{name:"MapMarker",svg:t.mapMarkerSvg,size:20}})]},proxy:!0}],null,!1,2374361976)},[t._v("\n\t\t\t"+t._s(t.locationText)+"\n\t\t")]):t._e(),t._v(" "),t.gotWeather?e("NcActionButton",{on:{click:t.onAddRemoveFavoriteClick},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{staticClass:"favorite-color",attrs:{name:"Star",svg:t.addRemoveFavoriteSvg,size:20}})]},proxy:!0}],null,!1,2760308411)},[t._v("\n\t\t\t"+t._s(t.addRemoveFavoriteText)+"\n\t\t")]):t._e(),t._v(" "),t.address&&!t.errorMessage?e("NcActionSeparator"):t._e(),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:t.onBrowserLocationClick},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{name:"Crosshairs",svg:t.crosshairsSvg,size:20}})]},proxy:!0}])},[t._v("\n\t\t\t"+t._s(t.t("weather_status","Detect location"))+"\n\t\t")]),t._v(" "),e("NcActionInput",{ref:"addressInput",attrs:{label:t.t("weather_status","Set custom address"),disabled:!1,icon:"icon-rename",type:"text","model-value":""},on:{submit:t.onAddressSubmit}}),t._v(" "),t.favorites.length>0?[e("NcActionCaption",{attrs:{name:t.t("weather_status","Favorites")}}),t._v(" "),t._l(t.favorites,function(r){return e("NcActionButton",{key:r,on:{click:function(e){return t.onFavoriteClick(e,r)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{class:{"favorite-color":t.address===r},attrs:{name:"Star",svg:t.starSvg,size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t\t"+t._s(r)+"\n\t\t\t")])})]:t._e()],2)],1)},[],!1,null,null,null).exports;a.nc=(0,s.aV)(),n.Ay.prototype.t=t,document.addEventListener("DOMContentLoaded",function(){OCA.Dashboard&&OCA.Dashboard.registerStatus("weather",t=>(new(n.Ay.extend(H))).$mount(t))})},19254(t,e,r){r.d(e,{A:()=>w});var a=r(71354),s=r.n(a),n=r(76314),u=r.n(n),i=r(4417),o=r.n(i),h=new URL(r(6315),r.b),l=u()(s()),d=o()(h);l.push([t.id,`.icon-weather-status{background-image:url(${d})}.weather-action-image-container{width:var(--default-clickable-area);height:var(--default-clickable-area);display:flex;align-items:center;justify-content:center}.weather-image{width:calc(var(--default-clickable-area) - 2*var(--default-grid-baseline))}.favorite-color{color:var(--color-favorite)}`,"",{version:3,sources:["webpack://./apps/weather_status/src/App.vue"],names:[],mappings:"AACA,qBACC,wDAAA,CAGD,gCACC,mCAAA,CACA,oCAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAGD,eACC,0EAAA,CAID,gBACC,2BAAA",sourcesContent:["\n.icon-weather-status {\n\tbackground-image: url('../img/app-dark.svg');\n}\n\n.weather-action-image-container {\n\twidth: var(--default-clickable-area);\n\theight: var(--default-clickable-area);\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.weather-image {\n\twidth: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\n}\n\n// Set color to primary element for current / active favorite address\n.favorite-color {\n\tcolor: var(--color-favorite);\n}\n"],sourceRoot:""}]);const w=l},6315(t){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyMHB4Ij48cGF0aCBkPSJNNDQ0LTc2OHYtMTQ0aDcydjE0NGgtNzJabTI2NSAxMTItNTQtNTIgMTA0LTEwMiA1MiA1MC0xMDIgMTA0Wm01OSAyMTJ2LTcyaDE0NHY3Mkg3NjhaTTQ0NC00OHYtMTQ0aDcydjE0NGgtNzJaTTI1MS02NTggMTQ3LTc2MGw1NC01MCAxMDEgMTAxLTUxIDUxWm01MDkgNTExTDY1OS0yNTJsNTAtNTAgMTA0IDEwMC01MyA1NVpNNDgtNDQ0di03MmgxNDR2NzJINDhabTE1MiAyOTctNTEtNTMgMTAyLTEwMCAyNSAyNCAyNCAyNS0xMDAgMTA0Wm0yODAtOTNxLTEwMCAwLTE3MC03MHQtNzAtMTcwcTAtMTAwIDcwLTE3MHQxNzAtNzBxMTAwIDAgMTcwIDcwdDcwIDE3MHEwIDEwMC03MCAxNzB0LTE3MCA3MFoiLz48L3N2Zz4="}},n={};function u(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={id:t,loaded:!1,exports:{}};return s[t].call(r.exports,r,r.exports,u),r.loaded=!0,r.exports}u.m=s,e=[],u.O=(t,r,a,s)=>{if(!r){var n=1/0;for(l=0;l=s)&&Object.keys(u.O).every(t=>u.O[t](r[o]))?r.splice(o--,1):(i=!1,s0&&e[l-1][2]>s;l--)e[l]=e[l-1];e[l]=[r,a,s]},u.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},u.d=(t,e)=>{for(var r in e)u.o(e,r)&&!u.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},u.f={},u.e=t=>Promise.all(Object.keys(u.f).reduce((e,r)=>(u.f[r](t,e),e),[])),u.u=t=>t+"-"+t+".js?v="+{1140:"dd55e1cf2dab9870eea9",2221:"2dad9baace69cfd4a3be",5448:"71cfe268d6f1213c4735",6015:"8ac07126adf0759a3464",6798:"1a6cf42d93801a926a3d",7471:"b4ac70873a3ab192efd0",7859:"5bcb1bbacda3204063dd",7910:"de857920f8beb5205bbc",8815:"0f63c2eb085d7b08be1b"}[t],u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},a="nextcloud-ui-legacy:",u.l=(t,e,s,n)=>{if(r[t])r[t].push(e);else{var i,o;if(void 0!==s)for(var h=document.getElementsByTagName("script"),l=0;l{i.onerror=i.onload=null,clearTimeout(p);var s=r[t];if(delete r[t],i.parentNode&&i.parentNode.removeChild(i),s&&s.forEach(t=>t(a)),e)return e(a)},p=setTimeout(w.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=w.bind(null,i.onerror),i.onload=w.bind(null,i.onload),o&&document.head.appendChild(i)}},u.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),u.j=1848,(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var e=globalThis.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!t||!/^http(s?):/.test(t));)t=r[a--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u.p=t})(),(()=>{u.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={1848:0};u.f.j=(e,r)=>{var a=u.o(t,e)?t[e]:void 0;if(0!==a)if(a)r.push(a[2]);else{var s=new Promise((r,s)=>a=t[e]=[r,s]);r.push(a[2]=s);var n=u.p+u.u(e),i=new Error;u.l(n,r=>{if(u.o(t,e)&&(0!==(a=t[e])&&(t[e]=void 0),a)){var s=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;i.message="Loading chunk "+e+" failed.\n("+s+": "+n+")",i.name="ChunkLoadError",i.type=s,i.request=n,a[1](i)}},"chunk-"+e,e)}},u.O.j=e=>0===t[e];var e=(e,r)=>{var a,s,[n,i,o]=r,h=0;if(n.some(e=>0!==t[e])){for(a in i)u.o(i,a)&&(u.m[a]=i[a]);if(o)var l=o(u)}for(e&&e(r);hu(87171));i=u.O(i)})(); +//# sourceMappingURL=weather_status-weather-status.js.map?v=aa236d72f07a0bc6b644 \ No newline at end of file diff --git a/dist/weather_status-weather-status.js.map b/dist/weather_status-weather-status.js.map index 5b4683be7e3ef..e8315a3e152b5 100644 --- a/dist/weather_status-weather-status.js.map +++ b/dist/weather_status-weather-status.js.map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kG,GAA4BA,EAA2B1S,GACrDiI,EAAIkF,EAASpE,OAAQd,IACzBqG,EAAUnB,EAASlF,GAChBuE,EAAoB2B,EAAE6D,EAAiB1D,IAAY0D,EAAgB1D,IACrE0D,EAAgB1D,GAAS,KAE1B0D,EAAgB1D,GAAW,EAE5B,OAAO9B,EAAoBS,EAAEC,IAG1B4F,EAAqB5B,WAA4C,gCAAIA,WAA4C,iCAAK,GAC1H4B,EAAmBxC,QAAQmC,EAAqBjC,KAAK,KAAM,IAC3DsC,EAAmB1K,KAAOqK,EAAqBjC,KAAK,KAAMsC,EAAmB1K,KAAKoI,KAAKsC,G,KCrFvFtG,EAAoBiD,QAAK9C,ECGzB,IAAIoG,EAAsBvG,EAAoBS,OAAEN,EAAW,CAAC,MAAO,IAAOH,EAAoB,QAC9FuG,EAAsBvG,EAAoBS,EAAE8F,E","sources":["webpack:///nextcloud/webpack/runtime/chunk loaded","webpack:///nextcloud/webpack/runtime/load script","webpack:///nextcloud/apps/weather_status/src/logger.ts","webpack:///nextcloud/apps/weather_status/src/services/weatherStatusService.js","webpack:///nextcloud/apps/weather_status/src/App.vue","webpack:///nextcloud/apps/weather_status/src/App.vue?vue&type=script&lang=js","webpack://nextcloud/./apps/weather_status/src/App.vue?60e3","webpack://nextcloud/./apps/weather_status/src/App.vue?02d4","webpack://nextcloud/./apps/weather_status/src/App.vue?2990","webpack:///nextcloud/apps/weather_status/src/weather-status.js","webpack:///nextcloud/apps/weather_status/src/App.vue?vue&type=style&index=0&id=3e1f10a2&prod&lang=scss","webpack:///nextcloud/webpack/bootstrap","webpack:///nextcloud/webpack/runtime/compat get default export","webpack:///nextcloud/webpack/runtime/define property getters","webpack:///nextcloud/webpack/runtime/ensure chunk","webpack:///nextcloud/webpack/runtime/get javascript chunk filename","webpack:///nextcloud/webpack/runtime/hasOwnProperty shorthand","webpack:///nextcloud/webpack/runtime/make namespace object","webpack:///nextcloud/webpack/runtime/node module decorator","webpack:///nextcloud/webpack/runtime/runtimeId","webpack:///nextcloud/webpack/runtime/publicPath","webpack:///nextcloud/webpack/runtime/jsonp chunk loading","webpack:///nextcloud/webpack/runtime/nonce","webpack:///nextcloud/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"nextcloud-ui-legacy:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getLoggerBuilder } from '@nextcloud/logger';\nexport const logger = getLoggerBuilder()\n .detectLogLevel()\n .setApp('weather_status')\n .build();\n","/**\n * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport HttpClient from '@nextcloud/axios'\nimport { generateOcsUrl } from '@nextcloud/router'\n\n/**\n *\n *\n * @param {string} lat the latitude\n * @param {string} lon the longitude\n * @return {Promise}\n */\nasync function setLocation(lat, lon) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/location')\n\tconst response = await HttpClient.put(url, {\n\t\taddress: '',\n\t\tlat,\n\t\tlon,\n\t})\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @param {string} address The location\n * @return {Promise}\n */\nasync function setAddress(address) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/location')\n\tconst response = await HttpClient.put(url, {\n\t\taddress,\n\t\tlat: null,\n\t\tlon: null,\n\t})\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @param {string} mode can be 1 browser or 2 custom\n * @return {Promise}\n */\nasync function setMode(mode) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/mode')\n\tconst response = await HttpClient.put(url, {\n\t\tmode,\n\t})\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @return {Promise}\n */\nasync function usePersonalAddress() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/use-personal')\n\tconst response = await HttpClient.put(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n * Fetches the location information for current user\n *\n * @return {Promise}\n */\nasync function getLocation() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/location')\n\tconst response = await HttpClient.get(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n * Fetches the weather forecast\n *\n * @return {Promise}\n */\nasync function fetchForecast() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/forecast')\n\tconst response = await HttpClient.get(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n * Fetches the location favorites\n *\n * @return {Promise}\n */\nasync function getFavorites() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/favorites')\n\tconst response = await HttpClient.get(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @param {Array} favorites List of favorite addresses\n * @return {Promise}\n */\nasync function saveFavorites(favorites) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/favorites')\n\tconst response = await HttpClient.put(url, {\n\t\tfavorites,\n\t})\n\n\treturn response.data.ocs.data\n}\n\nexport {\n\tfetchForecast,\n\tgetFavorites,\n\tgetLocation,\n\tsaveFavorites,\n\tsetAddress,\n\tsetLocation,\n\tsetMode,\n\tusePersonalAddress,\n}\n","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=3e1f10a2&prod&lang=scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=3e1f10a2&prod&lang=scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=3e1f10a2\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=3e1f10a2&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"weather-status-menu-item\"}},[_c('NcActions',{staticClass:\"weather-status-menu-item__subheader\",attrs:{\"aria-label\":_vm.currentWeatherMessage,\"menu-name\":_vm.currentWeatherMessage},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [(_vm.loading)?_c('NcLoadingIcon'):_c('img',{staticClass:\"weather-image\",attrs:{\"src\":_vm.weatherIconUrl,\"alt\":\"\"}})]},proxy:true}])},[_vm._v(\" \"),(_vm.gotWeather)?_c('NcActionText',{scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [(_vm.loading)?_c('NcLoadingIcon'):_c('div',{staticClass:\"weather-action-image-container\"},[_c('img',{staticClass:\"weather-image\",attrs:{\"src\":_vm.futureWeatherIconUrl,\"alt\":\"\"}})])]},proxy:true}],null,false,1876957744)},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.forecastMessage)+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.gotWeather)?_c('NcActionLink',{attrs:{\"target\":\"_blank\",\"href\":_vm.weatherLinkTarget,\"close-after-click\":true},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{attrs:{\"name\":\"MapMarker\",\"svg\":_vm.mapMarkerSvg,\"size\":20}})]},proxy:true}],null,false,2374361976)},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.locationText)+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.gotWeather)?_c('NcActionButton',{on:{\"click\":_vm.onAddRemoveFavoriteClick},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{staticClass:\"favorite-color\",attrs:{\"name\":\"Star\",\"svg\":_vm.addRemoveFavoriteSvg,\"size\":20}})]},proxy:true}],null,false,2760308411)},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.addRemoveFavoriteText)+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.address && !_vm.errorMessage)?_c('NcActionSeparator'):_vm._e(),_vm._v(\" \"),_c('NcActionButton',{attrs:{\"close-after-click\":true},on:{\"click\":_vm.onBrowserLocationClick},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{attrs:{\"name\":\"Crosshairs\",\"svg\":_vm.crosshairsSvg,\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('weather_status', 'Detect location'))+\"\\n\\t\\t\")]),_vm._v(\" \"),_c('NcActionInput',{ref:\"addressInput\",attrs:{\"label\":_vm.t('weather_status', 'Set custom address'),\"disabled\":false,\"icon\":\"icon-rename\",\"type\":\"text\",\"model-value\":\"\"},on:{\"submit\":_vm.onAddressSubmit}}),_vm._v(\" \"),(_vm.favorites.length > 0)?[_c('NcActionCaption',{attrs:{\"name\":_vm.t('weather_status', 'Favorites')}}),_vm._v(\" \"),_vm._l((_vm.favorites),function(favorite){return _c('NcActionButton',{key:favorite,on:{\"click\":function($event){return _vm.onFavoriteClick($event, favorite)}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{class:{ 'favorite-color': _vm.address === favorite },attrs:{\"name\":\"Star\",\"svg\":_vm.starSvg,\"size\":20}})]},proxy:true}],null,true)},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(favorite)+\"\\n\\t\\t\\t\")])})]:_vm._e()],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getCSPNonce } from '@nextcloud/auth'\nimport Vue from 'vue'\nimport App from './App.vue'\n\n__webpack_nonce__ = getCSPNonce()\n\nVue.prototype.t = t\n\ndocument.addEventListener('DOMContentLoaded', function() {\n\tif (!OCA.Dashboard) {\n\t\treturn\n\t}\n\n\tOCA.Dashboard.registerStatus('weather', (el) => {\n\t\tconst Dashboard = Vue.extend(App)\n\t\treturn new Dashboard().$mount(el)\n\t})\n})\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"../img/app-dark.svg\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.icon-weather-status{background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___})}.weather-action-image-container{width:var(--default-clickable-area);height:var(--default-clickable-area);display:flex;align-items:center;justify-content:center}.weather-image{width:calc(var(--default-clickable-area) - 2*var(--default-grid-baseline))}.favorite-color{color:var(--color-favorite)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/weather_status/src/App.vue\"],\"names\":[],\"mappings\":\"AACA,qBACC,wDAAA,CAGD,gCACC,mCAAA,CACA,oCAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAGD,eACC,0EAAA,CAID,gBACC,2BAAA\",\"sourcesContent\":[\"\\n.icon-weather-status {\\n\\tbackground-image: url('../img/app-dark.svg');\\n}\\n\\n.weather-action-image-container {\\n\\twidth: var(--default-clickable-area);\\n\\theight: var(--default-clickable-area);\\n\\tdisplay: flex;\\n\\talign-items: center;\\n\\tjustify-content: center;\\n}\\n\\n.weather-image {\\n\\twidth: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\\n}\\n\\n// Set color to primary element for current / active favorite address\\n.favorite-color {\\n\\tcolor: var(--color-favorite);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \"-\" + chunkId + \".js?v=\" + {\"1140\":\"dd55e1cf2dab9870eea9\",\"2221\":\"2dad9baace69cfd4a3be\",\"5448\":\"71cfe268d6f1213c4735\",\"6015\":\"8ac07126adf0759a3464\",\"6798\":\"1a6cf42d93801a926a3d\",\"7471\":\"b4ac70873a3ab192efd0\",\"7859\":\"5bcb1bbacda3204063dd\",\"7910\":\"de857920f8beb5205bbc\",\"8815\":\"0f63c2eb085d7b08be1b\"}[chunkId] + \"\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 1848;","var scriptUrl;\nif (globalThis.importScripts) scriptUrl = globalThis.location + \"\";\nvar document = globalThis.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t1848: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunknextcloud_ui_legacy\"] = globalThis[\"webpackChunknextcloud_ui_legacy\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4208], () => (__webpack_require__(27257)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","logger","getLoggerBuilder","detectLogLevel","setApp","build","async","saveFavorites","favorites","url","generateOcsUrl","HttpClient","put","data","ocs","weatherOptions","clearsky_day","text","temperature","unit","later","t","clearsky_night","cloudy","snowandthunder","snowshowersandthunder_day","snowshowersandthunder_night","snowshowersandthunder_polartwilight","snowshowers_day","snowshowers_night","snowshowers_polartwilight","snow","fair_day","fair_night","partlycloudy_day","partlycloudy_night","fog","lightrain","rain","heavyrain","rainshowers_day","rainshowers_night","lightrainshowers_day","lightrainshowers_night","heavyrainshowers_day","heavyrainshowers_night","name","components","NcActions","NcActionButton","NcActionCaption","NcActionInput","NcActionLink","NcActionSeparator","NcActionText","NcLoadingIcon","NcIconSvgWrapper","crosshairsSvg","mapMarkerSvg","starSvg","starOutlineSvg","locale","getLocale","loading","errorMessage","mode","address","lat","lon","offset","forecasts","loop","computed","useFahrenheitLocale","includes","temperatureUnit","locationText","adr","getTemperature","futureTemperature","weatherCode","getWeatherCode","futureWeatherCode","weatherIconUrl","getWeatherIconUrl","futureWeatherIconUrl","currentWeatherMessage","gotWeather","getWeatherMessage","forecastMessage","weatherLinkTarget","addRemoveFavoriteSvg","currentAddressIsFavorite","addRemoveFavoriteText","find","f","mounted","initWeatherStatus","methods","loc","get","network","askBrowserLocation","startLoop","favs","err","code","info","response","status","showError","error","clearInterval","setInterval","getForecast","navigator","geolocation","window","isSecureContext","getCurrentPosition","position","debug","coords","latitude","longitude","saveMode","saveLocation","usePersonalAddress","setAddress","success","onBrowserLocationClick","onAddressSubmit","newAddress","$refs","addressInput","$el","querySelector","value","getLocalizedTemperature","celcius","onAddRemoveFavoriteClick","currentIsFavorite","i","indexOf","splice","push","onFavoriteClick","e","favAddress","target","classList","contains","formatTime","time","moment","format","length","instant","details","air_temperature","next_1_hours","summary","symbol_code","imagePath","Math","round","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","_vm","this","_c","_self","attrs","staticClass","scopedSlots","_u","key","fn","proxy","_v","_s","_e","on","ref","_l","favorite","$event","class","__webpack_nonce__","getCSPNonce","Vue","prototype","document","addEventListener","OCA","Dashboard","registerStatus","el","extend","App","$mount","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","module","id","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","loaded","__webpack_modules__","call","m","O","result","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","Object","keys","every","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","chunkId","Promise","all","reduce","promises","u","obj","prop","hasOwnProperty","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","timeout","doneFns","parentNode","removeChild","forEach","setTimeout","bind","type","head","appendChild","Symbol","toStringTag","nmd","paths","children","scriptUrl","globalThis","importScripts","location","currentScript","tagName","toUpperCase","test","Error","replace","p","b","baseURI","self","href","installedChunks","installedChunkData","promise","resolve","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"weather_status-weather-status.js?v=aa236d72f07a0bc6b644","mappings":"uBAAIA,ECAAC,EACAC,E,sgBCIG,MAAMC,GAASC,E,SAAAA,MACjBC,iBACAC,OAAO,kBACPC,Q,eCoGLC,eAAeC,EAAcC,GAC5B,MAAMC,GAAMC,EAAAA,EAAAA,IAAe,wCAK3B,aAJuBC,EAAAA,GAAWC,IAAIH,EAAK,CAC1CD,eAGeK,KAAKC,IAAID,IAC1B,CCGA,MAEAE,EAAA,CACAC,aAAA,CACAC,KAAAA,CAAAC,EAAAC,EAAAC,GAAA,IAAAA,EACAC,EAAA,+DAAAH,cAAAC,SACAE,EAAA,mDAAAH,cAAAC,UAEAG,eAAA,CACAL,KAAAA,CAAAC,EAAAC,EAAAC,GAAA,IAAAA,EACAC,EAAA,+DAAAH,cAAAC,SACAE,EAAA,mDAAAH,cAAAC,UAEAI,OAAA,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KACvD,IAGImQ,EAAU6B,GAHTnB,EAAUwF,EAAaC,GAAWtW,EAGhB2L,EAAI,EAC3B,GAAGkF,EAAS0F,KAAMvG,GAAgC,IAAxB0F,EAAgB1F,IAAa,CACtD,IAAIG,KAAYkG,EACZnG,EAAoB2B,EAAEwE,EAAalG,KACrCD,EAAoBQ,EAAEP,GAAYkG,EAAYlG,IAGhD,GAAGmG,EAAS,IAAI1F,EAAS0F,EAAQpG,EAClC,CAEA,IADGkG,GAA4BA,EAA2BpW,GACrD2L,EAAIkF,EAASpE,OAAQd,IACzBqG,EAAUnB,EAASlF,GAChBuE,EAAoB2B,EAAE6D,EAAiB1D,IAAY0D,EAAgB1D,IACrE0D,EAAgB1D,GAAS,KAE1B0D,EAAgB1D,GAAW,EAE5B,OAAO9B,EAAoBS,EAAEC,IAG1B4F,EAAqB5B,WAA4C,gCAAIA,WAA4C,iCAAK,GAC1H4B,EAAmBxC,QAAQmC,EAAqBjC,KAAK,KAAM,IAC3DsC,EAAmB1K,KAAOqK,EAAqBjC,KAAK,KAAMsC,EAAmB1K,KAAKoI,KAAKsC,G,KCrFvFtG,EAAoBiD,QAAK9C,ECGzB,IAAIoG,EAAsBvG,EAAoBS,OAAEN,EAAW,CAAC,MAAO,IAAOH,EAAoB,QAC9FuG,EAAsBvG,EAAoBS,EAAE8F,E","sources":["webpack:///nextcloud/webpack/runtime/chunk loaded","webpack:///nextcloud/webpack/runtime/load script","webpack:///nextcloud/apps/weather_status/src/logger.ts","webpack:///nextcloud/apps/weather_status/src/services/weatherStatusService.js","webpack:///nextcloud/apps/weather_status/src/App.vue","webpack:///nextcloud/apps/weather_status/src/App.vue?vue&type=script&lang=js","webpack://nextcloud/./apps/weather_status/src/App.vue?1d94","webpack://nextcloud/./apps/weather_status/src/App.vue?02d4","webpack://nextcloud/./apps/weather_status/src/App.vue?2990","webpack:///nextcloud/apps/weather_status/src/weather-status.js","webpack:///nextcloud/apps/weather_status/src/App.vue?vue&type=style&index=0&id=7161f14f&prod&lang=scss","webpack:///nextcloud/webpack/bootstrap","webpack:///nextcloud/webpack/runtime/compat get default export","webpack:///nextcloud/webpack/runtime/define property getters","webpack:///nextcloud/webpack/runtime/ensure chunk","webpack:///nextcloud/webpack/runtime/get javascript chunk filename","webpack:///nextcloud/webpack/runtime/hasOwnProperty shorthand","webpack:///nextcloud/webpack/runtime/make namespace object","webpack:///nextcloud/webpack/runtime/node module decorator","webpack:///nextcloud/webpack/runtime/runtimeId","webpack:///nextcloud/webpack/runtime/publicPath","webpack:///nextcloud/webpack/runtime/jsonp chunk loading","webpack:///nextcloud/webpack/runtime/nonce","webpack:///nextcloud/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"nextcloud-ui-legacy:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getLoggerBuilder } from '@nextcloud/logger';\nexport const logger = getLoggerBuilder()\n .detectLogLevel()\n .setApp('weather_status')\n .build();\n","/**\n * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport HttpClient from '@nextcloud/axios'\nimport { generateOcsUrl } from '@nextcloud/router'\n\n/**\n *\n *\n * @param {string} lat the latitude\n * @param {string} lon the longitude\n * @return {Promise}\n */\nasync function setLocation(lat, lon) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/location')\n\tconst response = await HttpClient.put(url, {\n\t\taddress: '',\n\t\tlat,\n\t\tlon,\n\t})\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @param {string} address The location\n * @return {Promise}\n */\nasync function setAddress(address) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/location')\n\tconst response = await HttpClient.put(url, {\n\t\taddress,\n\t\tlat: null,\n\t\tlon: null,\n\t})\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @param {string} mode can be 1 browser or 2 custom\n * @return {Promise}\n */\nasync function setMode(mode) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/mode')\n\tconst response = await HttpClient.put(url, {\n\t\tmode,\n\t})\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @return {Promise}\n */\nasync function usePersonalAddress() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/use-personal')\n\tconst response = await HttpClient.put(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n * Fetches the location information for current user\n *\n * @return {Promise}\n */\nasync function getLocation() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/location')\n\tconst response = await HttpClient.get(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n * Fetches the weather forecast\n *\n * @return {Promise}\n */\nasync function fetchForecast() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/forecast')\n\tconst response = await HttpClient.get(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n * Fetches the location favorites\n *\n * @return {Promise}\n */\nasync function getFavorites() {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/favorites')\n\tconst response = await HttpClient.get(url)\n\n\treturn response.data.ocs.data\n}\n\n/**\n *\n * @param {Array} favorites List of favorite addresses\n * @return {Promise}\n */\nasync function saveFavorites(favorites) {\n\tconst url = generateOcsUrl('apps/weather_status/api/v1/favorites')\n\tconst response = await HttpClient.put(url, {\n\t\tfavorites,\n\t})\n\n\treturn response.data.ocs.data\n}\n\nexport {\n\tfetchForecast,\n\tgetFavorites,\n\tgetLocation,\n\tsaveFavorites,\n\tsetAddress,\n\tsetLocation,\n\tsetMode,\n\tusePersonalAddress,\n}\n","\n\n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=7161f14f&prod&lang=scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=7161f14f&prod&lang=scss\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=7161f14f\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=7161f14f&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"weather-status-menu-item\"}},[_c('NcActions',{staticClass:\"weather-status-menu-item__subheader\",attrs:{\"aria-label\":_vm.currentWeatherMessage,\"menu-name\":_vm.currentWeatherMessage},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [(_vm.loading)?_c('NcLoadingIcon'):_c('img',{staticClass:\"weather-image\",attrs:{\"src\":_vm.weatherIconUrl,\"alt\":\"\"}})]},proxy:true}])},[_vm._v(\" \"),(_vm.gotWeather)?_c('NcActionText',{scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [(_vm.loading)?_c('NcLoadingIcon'):_c('div',{staticClass:\"weather-action-image-container\"},[_c('img',{staticClass:\"weather-image\",attrs:{\"src\":_vm.futureWeatherIconUrl,\"alt\":\"\"}})])]},proxy:true}],null,false,1876957744)},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.forecastMessage)+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.gotWeather)?_c('NcActionLink',{attrs:{\"target\":\"_blank\",\"href\":_vm.weatherLinkTarget,\"close-after-click\":true},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{attrs:{\"name\":\"MapMarker\",\"svg\":_vm.mapMarkerSvg,\"size\":20}})]},proxy:true}],null,false,2374361976)},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.locationText)+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.gotWeather)?_c('NcActionButton',{on:{\"click\":_vm.onAddRemoveFavoriteClick},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{staticClass:\"favorite-color\",attrs:{\"name\":\"Star\",\"svg\":_vm.addRemoveFavoriteSvg,\"size\":20}})]},proxy:true}],null,false,2760308411)},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.addRemoveFavoriteText)+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.address && !_vm.errorMessage)?_c('NcActionSeparator'):_vm._e(),_vm._v(\" \"),_c('NcActionButton',{attrs:{\"close-after-click\":true},on:{\"click\":_vm.onBrowserLocationClick},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{attrs:{\"name\":\"Crosshairs\",\"svg\":_vm.crosshairsSvg,\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('weather_status', 'Detect location'))+\"\\n\\t\\t\")]),_vm._v(\" \"),_c('NcActionInput',{ref:\"addressInput\",attrs:{\"label\":_vm.t('weather_status', 'Set custom address'),\"disabled\":false,\"icon\":\"icon-rename\",\"type\":\"text\",\"model-value\":\"\"},on:{\"submit\":_vm.onAddressSubmit}}),_vm._v(\" \"),(_vm.favorites.length > 0)?[_c('NcActionCaption',{attrs:{\"name\":_vm.t('weather_status', 'Favorites')}}),_vm._v(\" \"),_vm._l((_vm.favorites),function(favorite){return _c('NcActionButton',{key:favorite,on:{\"click\":function($event){return _vm.onFavoriteClick($event, favorite)}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('NcIconSvgWrapper',{class:{ 'favorite-color': _vm.address === favorite },attrs:{\"name\":\"Star\",\"svg\":_vm.starSvg,\"size\":20}})]},proxy:true}],null,true)},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(favorite)+\"\\n\\t\\t\\t\")])})]:_vm._e()],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getCSPNonce } from '@nextcloud/auth'\nimport Vue from 'vue'\nimport App from './App.vue'\n\n__webpack_nonce__ = getCSPNonce()\n\nVue.prototype.t = t\n\ndocument.addEventListener('DOMContentLoaded', function() {\n\tif (!OCA.Dashboard) {\n\t\treturn\n\t}\n\n\tOCA.Dashboard.registerStatus('weather', (el) => {\n\t\tconst Dashboard = Vue.extend(App)\n\t\treturn new Dashboard().$mount(el)\n\t})\n})\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"../img/app-dark.svg\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.icon-weather-status{background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___})}.weather-action-image-container{width:var(--default-clickable-area);height:var(--default-clickable-area);display:flex;align-items:center;justify-content:center}.weather-image{width:calc(var(--default-clickable-area) - 2*var(--default-grid-baseline))}.favorite-color{color:var(--color-favorite)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/weather_status/src/App.vue\"],\"names\":[],\"mappings\":\"AACA,qBACC,wDAAA,CAGD,gCACC,mCAAA,CACA,oCAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAGD,eACC,0EAAA,CAID,gBACC,2BAAA\",\"sourcesContent\":[\"\\n.icon-weather-status {\\n\\tbackground-image: url('../img/app-dark.svg');\\n}\\n\\n.weather-action-image-container {\\n\\twidth: var(--default-clickable-area);\\n\\theight: var(--default-clickable-area);\\n\\tdisplay: flex;\\n\\talign-items: center;\\n\\tjustify-content: center;\\n}\\n\\n.weather-image {\\n\\twidth: calc(var(--default-clickable-area) - 2 * var(--default-grid-baseline));\\n}\\n\\n// Set color to primary element for current / active favorite address\\n.favorite-color {\\n\\tcolor: var(--color-favorite);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \"-\" + chunkId + \".js?v=\" + {\"1140\":\"dd55e1cf2dab9870eea9\",\"2221\":\"2dad9baace69cfd4a3be\",\"5448\":\"71cfe268d6f1213c4735\",\"6015\":\"8ac07126adf0759a3464\",\"6798\":\"1a6cf42d93801a926a3d\",\"7471\":\"b4ac70873a3ab192efd0\",\"7859\":\"5bcb1bbacda3204063dd\",\"7910\":\"de857920f8beb5205bbc\",\"8815\":\"0f63c2eb085d7b08be1b\"}[chunkId] + \"\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 1848;","var scriptUrl;\nif (globalThis.importScripts) scriptUrl = globalThis.location + \"\";\nvar document = globalThis.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = (typeof document !== 'undefined' && document.baseURI) || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t1848: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunknextcloud_ui_legacy\"] = globalThis[\"webpackChunknextcloud_ui_legacy\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4208], () => (__webpack_require__(87171)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","logger","getLoggerBuilder","detectLogLevel","setApp","build","async","saveFavorites","favorites","url","generateOcsUrl","HttpClient","put","data","ocs","weatherOptions","clearsky_day","text","temperature","unit","later","t","clearsky_night","cloudy","snowandthunder","snowshowersandthunder_day","snowshowersandthunder_night","snowshowersandthunder_polartwilight","snowshowers_day","snowshowers_night","snowshowers_polartwilight","snow","fair_day","fair_night","partlycloudy_day","partlycloudy_night","fog","lightrain","rain","heavyrain","rainshowers_day","rainshowers_night","lightrainshowers_day","lightrainshowers_night","heavyrainshowers_day","heavyrainshowers_night","clearsky_polartwilight","fair_polartwilight","partlycloudy_polartwilight","lightrainandthunder","rainandthunder","heavyrainandthunder","lightrainshowersandthunder_day","lightrainshowersandthunder_night","lightrainshowersandthunder_polartwilight","rainshowersandthunder_day","rainshowersandthunder_night","rainshowersandthunder_polartwilight","heavyrainshowersandthunder_day","heavyrainshowersandthunder_night","heavyrainshowersandthunder_polartwilight","lightrainshowers_polartwilight","rainshowers_polartwilight","heavyrainshowers_polartwilight","lightsleet","sleet","heavysleet","lightsleetandthunder","sleetandthunder","heavysleetandthunder","lightsleetshowers_day","lightsleetshowers_night","lightsleetshowers_polartwilight","sleetshowers_day","sleetshowers_night","sleetshowers_polartwilight","heavysleetshowers_day","heavysleetshowers_night","heavysleetshowers_polartwilight","lightssleetshowersandthunder_day","lightssleetshowersandthunder_night","lightssleetshowersandthunder_polartwilight","sleetshowersandthunder_day","sleetshowersandthunder_night","sleetshowersandthunder_polartwilight","heavysleetshowersandthunder_day","heavysleetshowersandthunder_night","heavysleetshowersandthunder_polartwilight","lightsnow","heavysnow","lightsnowandthunder","heavysnowandthunder","lightsnowshowers_day","lightsnowshowers_night","lightsnowshowers_polartwilight","heavysnowshowers_day","heavysnowshowers_night","heavysnowshowers_polartwilight","lightssnowshowersandthunder_day","lightssnowshowersandthunder_night","lightssnowshowersandthunder_polartwilight","heavysnowshowersandthunder_day","heavysnowshowersandthunder_night","heavysnowshowersandthunder_polartwilight","name","components","NcActions","NcActionButton","NcActionCaption","NcActionInput","NcActionLink","NcActionSeparator","NcActionText","NcLoadingIcon","NcIconSvgWrapper","crosshairsSvg","mapMarkerSvg","starSvg","starOutlineSvg","locale","getLocale","loading","errorMessage","mode","address","lat","lon","offset","forecasts","loop","computed","useFahrenheitLocale","includes","temperatureUnit","locationText","adr","getTemperature","futureTemperature","weatherCode","getWeatherCode","futureWeatherCode","weatherIconUrl","getWeatherIconUrl","futureWeatherIconUrl","currentWeatherMessage","gotWeather","getWeatherMessage","forecastMessage","weatherLinkTarget","addRemoveFavoriteSvg","currentAddressIsFavorite","addRemoveFavoriteText","find","f","mounted","initWeatherStatus","methods","loc","get","network","askBrowserLocation","startLoop","favs","err","code","info","response","status","showError","error","clearInterval","setInterval","getForecast","navigator","geolocation","window","isSecureContext","getCurrentPosition","position","debug","coords","latitude","longitude","saveMode","saveLocation","usePersonalAddress","setAddress","success","onBrowserLocationClick","onAddressSubmit","newAddress","$refs","addressInput","$el","querySelector","value","getLocalizedTemperature","celcius","onAddRemoveFavoriteClick","currentIsFavorite","i","indexOf","splice","push","onFavoriteClick","e","favAddress","target","classList","contains","formatTime","time","moment","format","length","instant","details","air_temperature","next_1_hours","summary","symbol_code","imagePath","Math","round","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","_vm","this","_c","_self","attrs","staticClass","scopedSlots","_u","key","fn","proxy","_v","_s","_e","on","ref","_l","favorite","$event","class","__webpack_nonce__","getCSPNonce","Vue","prototype","document","addEventListener","OCA","Dashboard","registerStatus","el","extend","App","$mount","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_EXPORT___","___CSS_LOADER_URL_REPLACEMENT_0___","module","id","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","loaded","__webpack_modules__","call","m","O","result","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","Object","keys","every","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","chunkId","Promise","all","reduce","promises","u","obj","prop","hasOwnProperty","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","timeout","doneFns","parentNode","removeChild","forEach","setTimeout","bind","type","head","appendChild","Symbol","toStringTag","nmd","paths","children","scriptUrl","globalThis","importScripts","location","currentScript","tagName","toUpperCase","test","Error","replace","p","b","baseURI","self","href","installedChunks","installedChunkData","promise","resolve","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file