{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6**************************","webpack:///eltiempo-cabecera-module.js","webpack:///webpack/bootstrap d5734f541ded75760e6e?820c**************************","webpack:///./src/modules/eltiempo-cabecera-module.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","Voonto","getInstance","wakeUp","$elm","ucFirst","string","charAt","toUpperCase","slice","Logger","info","icons","aguanieve","amanecer","chubasco","chubascos","claros","cubierto","despejado","granizo","helada","llovizna","lluvia","muynuboso","niebla","nieve","nubesn","nublado","nuboso","parcialmente-nublado","sol","soleado","sollluvia","tormenta","ventoso","viento","cityName","data","$","getJSON","then","resolve","window","nibara","nTools","isset","foreCastLocalData","find","text","attr","html","show","warn","reject","error"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,OAAAD,IAEAD,EAAA,OAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,GAGAR,EAAA,KDgBM,SAAUL,EAAQD,GAEvB,YExDDe,QAAOC,cAAcd,QAAQ,UAAW,SAAUD,GAChD,OACEgB,OADK,SACEC,GAGL,QAASC,GAAQC,GACf,MAAOA,GAAOC,OAAO,GAAGC,cAAgBF,EAAOG,MAAM,GAHvDC,OAAOC,KAAP,kBAA8BxB,EAAOQ,GAMrC,IAAMiB,IACJC,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,EAAMmC,EAAA,SAC/B3C,EAAK4C,KAAK,WAAWG,KAAKJ,EAAA,kBAAyC,KACnE3C,EAAK4C,KAAK,WAAWG,KAAKJ,EAAA,kBAAyC,KACnE3C,EAAKgD,YAIT1C,QAAO2C,KAAK,uBAAyBhB,EAAW,kCAAoCA,EAAW,UAGhG,SAACiB,GACF5C,OAAO6C,MAAM,qBAAuBD","file":"eltiempo-cabecera-module.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Nibara\"] = factory();\n\telse\n\t\troot[\"Nibara\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Nibara\"] = factory();\n\telse\n\t\troot[\"Nibara\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\n\t'use strict';\n\t\n\tVoonto.getInstance().define(['module'], function (module) {\n\t return {\n\t wakeUp: function wakeUp($elm) {\n\t Logger.info('wake up module ' + module.id);\n\t\n\t function ucFirst(string) {\n\t return string.charAt(0).toUpperCase() + string.slice(1);\n\t }\n\t\n\t var icons = {\n\t 'aguanieve': '',\n\t 'amanecer': '',\n\t 'chubasco': '',\n\t 'chubascos': '',\n\t 'claros': '',\n\t 'cubierto': '',\n\t 'despejado': '',\n\t 'granizo': '',\n\t 'helada': '',\n\t 'llovizna': '',\n\t 'lluvia': '',\n\t 'muynuboso': '',\n\t 'niebla': '',\n\t 'nieve': '',\n\t 'nubesn': '',\n\t 'nublado': '',\n\t 'nuboso': '',\n\t 'parcialmente-nublado': '',\n\t 'sol': '',\n\t 'soleado': '',\n\t 'sollluvia': '',\n\t 'tormenta': '',\n\t 'ventoso': '',\n\t 'viento': ''\n\t };\n\t\n\t var cityName = $elm.data('city-name');\n\t Voonto.$.getJSON('/comun/tiempo/' + cityName + '.json').then(function (resolve) {\n\t\n\t if (window.nibara.nTools.isset(resolve, ucFirst(cityName), 'prevision', 0) === true) {\n\t var foreCastLocalData = resolve[ucFirst(cityName)]['prevision'][0];\n\t\n\t switch (cityName) {\n\t case 'sevilla':\n\t $elm.find('a:first').text('Sevilla').attr('title', 'Sevilla').attr('href', 'http://www.abc.es/eltiempo/andalucia/sevilla/sevilla.php');\n\t $elm.find('.icono').html(icons[foreCastLocalData['tiempo']]);\n\t $elm.find('.maxima').html(foreCastLocalData['temperaturamaxima'] + 'º');\n\t $elm.find('.minima').html(foreCastLocalData['temperaturaminima'] + 'º');\n\t $elm.show();\n\t break;\n\t case 'cadiz':\n\t $elm.find('a:first').text('Cádiz').attr('title', 'Cádiz').attr('href', 'http://www.abc.es/eltiempo/andalucia/cadiz/cadiz.php');\n\t $elm.find('.icono').html(icons[foreCastLocalData['tiempo']]);\n\t $elm.find('.maxima').html(foreCastLocalData['temperaturamaxima'] + 'º');\n\t $elm.find('.minima').html(foreCastLocalData['temperaturaminima'] + 'º');\n\t $elm.show();\n\t break;\n\t default:\n\t $elm.find('a:first').text('Madrid').attr('title', 'Madrid').attr('href', 'http://www.abc.es/eltiempo/comunidad-de-madrid/madrid/madrid.php');\n\t $elm.find('.icono').html(icons[foreCastLocalData['tiempo']]);\n\t $elm.find('.maxima').html(foreCastLocalData['temperaturamaxima'] + 'º');\n\t $elm.find('.minima').html(foreCastLocalData['temperaturaminima'] + 'º');\n\t $elm.show();\n\t break;\n\t }\n\t } else {\n\t Logger.warn('No data wheather to ' + cityName + ' prevision[0] in /comun/tiempo/' + cityName + '.json');\n\t }\n\t }, function (reject) {\n\t Logger.error('no wheather data: ' + reject);\n\t });\n\t }\n\t };\n\t});\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// eltiempo-cabecera-module.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d5734f541ded75760e6e","Voonto.getInstance().define(['module'], function (module) {\n return {\n wakeUp($elm) {\n Logger.info(`wake up module ${module.id}`);\n\n function ucFirst(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n }\n\n const icons = {\n 'aguanieve': '',\n 'amanecer': '',\n 'chubasco': '',\n 'chubascos': '',\n 'claros': '',\n 'cubierto': '',\n 'despejado': '',\n 'granizo': '',\n 'helada': '',\n 'llovizna': '',\n 'lluvia': '',\n 'muynuboso': '',\n 'niebla': '',\n 'nieve': '',\n 'nubesn': '',\n 'nublado': '',\n 'nuboso': '',\n 'parcialmente-nublado': '',\n 'sol': '',\n 'soleado': '',\n 'sollluvia': '',\n 'tormenta': '',\n 'ventoso': '',\n 'viento': ''\n };\n\n\n const cityName = $elm.data('city-name');\n Voonto.$.getJSON('/comun/tiempo/' + cityName + '.json').then((resolve) => {\n\n if (window.nibara.nTools.isset(resolve, ucFirst(cityName), 'prevision', 0) === true) {\n let foreCastLocalData = resolve[ucFirst(cityName)]['prevision'][0];\n\n switch (cityName) {\n case 'sevilla':\n $elm.find('a:first').text('Sevilla').attr('title', 'Sevilla').attr('href', 'http://www.abc.es/eltiempo/andalucia/sevilla/sevilla.php');\n $elm.find('.icono').html(icons[foreCastLocalData['tiempo']]);\n $elm.find('.maxima').html(foreCastLocalData['temperaturamaxima'] + 'º');\n $elm.find('.minima').html(foreCastLocalData['temperaturaminima'] + 'º');\n $elm.show();\n break;\n case 'cadiz':\n $elm.find('a:first').text('Cádiz').attr('title', 'Cádiz').attr('href', 'http://www.abc.es/eltiempo/andalucia/cadiz/cadiz.php');\n $elm.find('.icono').html(icons[foreCastLocalData['tiempo']]);\n $elm.find('.maxima').html(foreCastLocalData['temperaturamaxima'] + 'º');\n $elm.find('.minima').html(foreCastLocalData['temperaturaminima'] + 'º');\n $elm.show();\n break;\n default:\n $elm.find('a:first').text('Madrid').attr('title', 'Madrid').attr('href', 'http://www.abc.es/eltiempo/comunidad-de-madrid/madrid/madrid.php');\n $elm.find('.icono').html(icons[foreCastLocalData['tiempo']]);\n $elm.find('.maxima').html(foreCastLocalData['temperaturamaxima'] + 'º');\n $elm.find('.minima').html(foreCastLocalData['temperaturaminima'] + 'º');\n $elm.show();\n break;\n }\n } else {\n Logger.warn('No data wheather to ' + cityName + ' prevision[0] in /comun/tiempo/' + cityName + '.json');\n }\n\n }, (reject) => {\n Logger.error('no wheather data: ' + reject);\n });\n }\n }\n});\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/eltiempo-cabecera-module.js"],"sourceRoot":""}