/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = "../javascript/src/mobile.js");
/******/ })
/************************************************************************/
/******/ ({

/***/ "../javascript/src/Attribute.js":
/*!**************************************!*\
  !*** ../javascript/src/Attribute.js ***!
  \**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\n/**\n * @param {object} element\n * @param [prefix] string\n */\nfunction Attribute(element, prefix) {\n\tthis.attributes = element.attributes;\n\tthis.element    = element;\n\tthis.prefix     = prefix || 'tas';\n}\n\n/**\n * @param {string} name\n * @param {mixed}  [defaultValue]\n */\nAttribute.prototype.getAttribute = function (name, defaultValue) {\n\tif (!this.attributes[this.prefix + '-' + name]) {\n\t\treturn defaultValue;\n\t}\n\n\treturn this.attributes[this.prefix + '-' + name].value;\n};\n\n/**\n * @param {string} name\n * @param {mixed}  value\n */\nAttribute.prototype.setAttribute = function (name, value) {\n\tthis.element.setAttribute(this.prefix + '-' + name, value);\n};\n\n/**\n * Is used to transform mobile tag attributes to online tags.\n *\n * @param   {string} attribute\n * @returns {string}\n */\nAttribute.prototype.replaceAttr = function (attribute) {\n\tvar mapping = {\n\t\t'zone-id':     'zone',\n\t\t'click-track': 'click-tracking-url'\n\t};\n\n\tif (mapping.hasOwnProperty(attribute)) {\n\t\treturn mapping[attribute].replace('-', '_');\n\t}\n\n\treturn attribute.replace('-', '_');\n};\n\n/**\n * @returns {string[]}\n */\nAttribute.prototype.getTasAttributes = function () {\n\treturn [\n\t\t'zone-id',\n\t\t'click-track',\n\t\t'zone',\n\t\t'cp',\n\t\t'format',\n\t\t'click-tracking-url',\n\t\t'hide-tagline',\n\t\t'external-id',\n\t\t'placement',\n\t\t'close-placement'\n\t];\n};\n\nmodule.exports = {\n\tnewInstance: function (element, prefix) {\n\t\treturn new Attribute(element, prefix);\n\t}\n};\n\n\n//# sourceURL=webpack:///../javascript/src/Attribute.js?");

/***/ }),

/***/ "../javascript/src/mobile.js":
/*!***********************************!*\
  !*** ../javascript/src/mobile.js ***!
  \***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\n\n(function() {\n\tvar Attribute = __webpack_require__(/*! Attribute */ \"../javascript/src/Attribute.js\");\n\n\tvar _DONE    = 'DONE';\n\tvar _LOAD    = 'LOAD';\n\tvar _PENDING = 'PENDING';\n\n\tvar asyncMobileTags = function () {\n\t\t// Check for async tags first and load them.\n\t\tvar tasAttr = {};\n\t\tvar tasTags = document.getElementsByClassName('tma-ad');\n\n\t\tfor (var i = 0; i < tasTags.length; i++) {\n\t\t\tvar attributes = Attribute.newInstance(tasTags[i], 'tma');\n\t\t\tvar options    = attributes.getTasAttributes();\n\t\t\tvar status     = attributes.getAttribute('status');\n\n\t\t\tif (status === _DONE || status === _LOAD || status === _PENDING) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tattributes.setAttribute('status', _PENDING);\n\n\t\t\t// Are we shore that we have picked the right block. Lets check it.\n\t\t\tfor (var o = 0; o < options.length; o++) {\n\t\t\t\tvar attribute = attributes.replaceAttr(options[o]);\n\t\t\t\tvar value     = attributes.getAttribute(options[o]);\n\n\t\t\t\tif (!tasAttr.hasOwnProperty(attribute) && value) {\n\t\t\t\t\ttasAttr[attribute] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar splitZone = tasAttr.zone.split('-');\n\n\t\t\tif (splitZone.length < 1) {\n\t\t\t\tattributes.setAttribute('status', _DONE);\n\n\t\t\t\treturn tasAttr;\n\t\t\t}\n\n\t\t\ttasAttr.network = splitZone[0];\n\t\t\ttasAttr.asyncEl = tasTags[i];\n\n\t\t\treturn tasAttr;\n\t\t}\n\n\t\treturn tasAttr;\n\t};\n\n\tvar mobAttr = asyncMobileTags();\n\n\tif (mobAttr.hasOwnProperty('asyncEl')) {\n\t\tvar url    = 'https://tas-{{NETWORK}}.toboads.com/js/adi-ec561a14.js';\n\t\tvar script = document.createElement('script');\n\n\t\tif (!mobAttr.network) {\n\t\t\treturn;\n\t\t} else {\n\t\t\turl = url.replace('{{NETWORK}}', mobAttr.network);\n\t\t}\n\n\t\tscript.src   = url;\n\t\tscript.async = true;\n\t\tscript.type  = 'text/javascript';\n\n\t\tmobAttr.asyncEl.parentNode.insertBefore(script, mobAttr.nextSibling);\n\t}\n}());\n\n\n//# sourceURL=webpack:///../javascript/src/mobile.js?");

/***/ })

/******/ });