|
/******/ (function(modules) { // webpackBootstrap |
|
/******/ // install a JSONP callback for chunk loading |
|
/******/ var parentJsonpFunction = window["webpackJsonp"]; |
|
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModule) { |
|
/******/ // add "moreModules" to the modules object, |
|
/******/ // then flag all "chunkIds" as loaded and fire callback |
|
/******/ var moduleId, chunkId, i = 0, resolves = []; |
|
/******/ for(;i < chunkIds.length; i++) { |
|
/******/ chunkId = chunkIds[i]; |
|
/******/ if(installedChunks[chunkId]) |
|
/******/ resolves.push(installedChunks[chunkId][0]); |
|
/******/ installedChunks[chunkId] = 0; |
|
/******/ } |
|
/******/ for(moduleId in moreModules) { |
|
/******/ modules[moduleId] = moreModules[moduleId]; |
|
/******/ } |
|
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules); |
|
/******/ while(resolves.length) |
|
/******/ resolves.shift()(); |
|
/******/ |
|
/******/ }; |
|
/******/ |
|
/******/ // The module cache |
|
/******/ var installedModules = {}; |
|
/******/ |
|
/******/ // objects to store loaded and loading chunks |
|
/******/ var installedChunks = { |
|
/******/ 4: 0 |
|
/******/ }; |
|
/******/ |
|
/******/ // 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] = { |
|
/******/ exports: {}, |
|
/******/ id: moduleId, |
|
/******/ loaded: false |
|
/******/ }; |
|
/******/ |
|
/******/ // Execute the module function |
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
|
/******/ |
|
/******/ // Flag the module as loaded |
|
/******/ module.loaded = true; |
|
/******/ |
|
/******/ // Return the exports of the module |
|
/******/ return module.exports; |
|
/******/ } |
|
/******/ |
|
/******/ // This file contains only the entry chunk. |
|
/******/ // The chunk loading function for additional chunks |
|
/******/ __webpack_require__.e = function requireEnsure(chunkId) { |
|
/******/ if(installedChunks[chunkId] === 0) |
|
/******/ return Promise.resolve() |
|
/******/ |
|
/******/ // an Promise means "currently loading". |
|
/******/ if(installedChunks[chunkId]) { |
|
/******/ return installedChunks[chunkId][2]; |
|
/******/ } |
|
/******/ // start chunk loading |
|
/******/ var head = document.getElementsByTagName('head')[0]; |
|
/******/ var script = document.createElement('script'); |
|
/******/ script.type = 'text/javascript'; |
|
/******/ script.charset = 'utf-8'; |
|
/******/ script.async = true; |
|
/******/ script.timeout = 120000; |
|
/******/ |
|
/******/ script.src = __webpack_require__.p + "" + ({}[chunkId]||chunkId) + ".js"; |
|
/******/ var timeout = setTimeout(onScriptComplete, 120000); |
|
/******/ script.onerror = script.onload = onScriptComplete; |
|
/******/ function onScriptComplete() { |
|
/******/ // avoid mem leaks in IE. |
|
/******/ script.onerror = script.onload = null; |
|
/******/ clearTimeout(timeout); |
|
/******/ var chunk = installedChunks[chunkId]; |
|
/******/ if(chunk !== 0) { |
|
/******/ if(chunk) chunk[1](new Error('Loading chunk ' + chunkId + ' failed.')); |
|
/******/ installedChunks[chunkId] = undefined; |
|
/******/ } |
|
/******/ }; |
|
/******/ head.appendChild(script); |
|
/******/ |
|
/******/ var promise = new Promise(function(resolve, reject) { |
|
/******/ installedChunks[chunkId] = [resolve, reject]; |
|
/******/ }); |
|
/******/ return installedChunks[chunkId][2] = promise; |
|
/******/ }; |
|
/******/ |
|
/******/ // expose the modules object (__webpack_modules__) |
|
/******/ __webpack_require__.m = modules; |
|
/******/ |
|
/******/ // expose the module cache |
|
/******/ __webpack_require__.c = installedModules; |
|
/******/ |
|
/******/ // on error function for async loading |
|
/******/ __webpack_require__.oe = function(err) { throw err; }; |
|
/******/ |
|
/******/ // __webpack_public_path__ |
|
/******/ __webpack_require__.p = "/"; |
|
/******/ // Load entry module and return exports |
|
/******/ return __webpack_require__(__webpack_require__.s = 7); |
|
/******/ }) |
|
/************************************************************************/ |
|
/******/ ([ |
|
/* 0 */ |
|
/***/ function(module, exports, __webpack_require__) { |
|
|
|
'use strict'; |
|
var lang = window.foo ? 'en_EN' : 'de_DE'; |
|
|
|
Promise.all([__webpack_require__(6)("./" + lang + '/plugin.po'), __webpack_require__(5)("./" + lang + '/app.po')]).then(function (data) { |
|
return data.forEach(function (bundle) { |
|
return Object.keys(bundle).forEach(function (item) { |
|
return console.log(bundle[item]({ NUM: 1 })); |
|
}); |
|
}); |
|
}).catch(function (err) { |
|
return console.log('Chunk loading failed', err); |
|
}); |
|
|
|
/***/ }, |
|
/* 1 */, |
|
/* 2 */, |
|
/* 3 */, |
|
/* 4 */, |
|
/* 5 */ |
|
/***/ function(module, exports, __webpack_require__) { |
|
|
|
var map = { |
|
"./de_DE/app.po": [ |
|
1, |
|
4 |
|
], |
|
"./en_GB/app.po": [ |
|
3, |
|
1 |
|
] |
|
}; |
|
function webpackAsyncContext(req) { |
|
var ids = map[req]; if(!ids) |
|
return Promise.reject(new Error("Cannot find module '" + req + "'.")); |
|
return __webpack_require__.e(ids[1]).then(function() { |
|
return __webpack_require__(ids[0]); |
|
}); |
|
}; |
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() { |
|
return Object.keys(map); |
|
}; |
|
module.exports = webpackAsyncContext; |
|
webpackAsyncContext.id = 5; |
|
|
|
|
|
/***/ }, |
|
/* 6 */ |
|
/***/ function(module, exports, __webpack_require__) { |
|
|
|
var map = { |
|
"./de_DE/plugin.po": [ |
|
2, |
|
4 |
|
], |
|
"./en_GB/plugin.po": [ |
|
4, |
|
0 |
|
] |
|
}; |
|
function webpackAsyncContext(req) { |
|
var ids = map[req]; if(!ids) |
|
return Promise.reject(new Error("Cannot find module '" + req + "'.")); |
|
return __webpack_require__.e(ids[1]).then(function() { |
|
return __webpack_require__(ids[0]); |
|
}); |
|
}; |
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() { |
|
return Object.keys(map); |
|
}; |
|
module.exports = webpackAsyncContext; |
|
webpackAsyncContext.id = 6; |
|
|
|
|
|
/***/ }, |
|
/* 7 */ |
|
/***/ function(module, exports, __webpack_require__) { |
|
|
|
module.exports = __webpack_require__(0); |
|
|
|
|
|
/***/ } |
|
/******/ ]); |
|
//# sourceMappingURL=main.js.maps |