{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6**************************************************************************************","webpack:///metrics-colc-module.js","webpack:///webpack/bootstrap 9ca682b6c47ab8c7f2bf?677d**************************************************************************************","webpack:///./src/modules/metrics-colc-module.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","Voonto","getInstance","Logger","nibara","logger","wakeUp","$elm","info","app","medio","data","metric_call","urlMetrics","lookup","metricsUrl","undefined","match","$","ajax","url","dataType"],"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,GAC9C,GAAMgB,GAASC,OAAOC,MAEtB,QACIC,OADG,SACIC,GACHJ,EAAOK,KAAP,kBAA8BrB,EAAOQ,GAErC,IAAMc,GAAMR,OAAOC,cAEfQ,EAAQH,EAAKI,KAAK,WAClBC,EAAcL,EAAKI,KAAK,UAExBE,EAAaJ,EAAIK,OAAO,yBAAyBC,UACrD,IAAmBC,SAAfH,EACA,KAAM,oCAGU,MAAhBD,IACAC,GAAc,IAAMD,EACN,YAAVF,EACAG,GAAc,mBACG,QAAVH,IACPG,GAAc,mBAEdA,EAAWI,MAAM,8BACjBJ,GAAc,wBAElBZ,OAAOiB,EAAEC,MACLC,IAAKP,EACLQ,SAAU","file":"metrics-colc-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 var Logger = nibara.logger;\n\t\n\t return {\n\t wakeUp: function wakeUp($elm) {\n\t Logger.info('wake up module ' + module.id);\n\t\n\t var app = Voonto.getInstance();\n\t\n\t var medio = $elm.data('edition');\n\t var metric_call = $elm.data('metric');\n\t\n\t var urlMetrics = app.lookup('vocento.config.nibara').metricsUrl;\n\t if (urlMetrics === undefined) {\n\t throw 'metricsUrl path in config is empty';\n\t }\n\t\n\t if (metric_call !== '') {\n\t urlMetrics += '?' + metric_call;\n\t if (medio === 'sevilla') {\n\t urlMetrics += '&edition=sevilla';\n\t } else if (medio === 'abc') {\n\t urlMetrics += '&edition=madrid';\n\t }\n\t if (urlMetrics.match(/pre.metrics|des.metrics/g)) {\n\t urlMetrics += '&site=metrics.abc.es';\n\t }\n\t Voonto.$.ajax({\n\t url: urlMetrics,\n\t dataType: \"jsonp\"\n\t });\n\t }\n\t }\n\t };\n\t});\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// metrics-colc-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 9ca682b6c47ab8c7f2bf","Voonto.getInstance().define(['module'], function (module) {\n const Logger = nibara.logger;\n\n return {\n wakeUp($elm){\n Logger.info(`wake up module ${module.id}`);\n\n const app = Voonto.getInstance();\n\n let medio = $elm.data('edition');\n let metric_call = $elm.data('metric');\n\n let urlMetrics = app.lookup('vocento.config.nibara').metricsUrl;\n if (urlMetrics === undefined) {\n throw 'metricsUrl path in config is empty';\n }\n\n if (metric_call !== '') {\n urlMetrics += '?' + metric_call;\n if (medio === 'sevilla') {\n urlMetrics += '&edition=sevilla';\n } else if (medio === 'abc') {\n urlMetrics += '&edition=madrid';\n }\n if (urlMetrics.match(/pre.metrics|des.metrics/g)) {\n urlMetrics += '&site=metrics.abc.es';\n }\n Voonto.$.ajax({\n url: urlMetrics,\n dataType: \"jsonp\"\n });\n }\n }\n }\n});\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/modules/metrics-colc-module.js"],"sourceRoot":""}