UNPKG

13.1 kBJavaScriptView Raw
1module.exports =
2/******/ (function(modules) { // webpackBootstrap
3/******/ // The module cache
4/******/ var installedModules = {};
5
6/******/ // The require function
7/******/ function __webpack_require__(moduleId) {
8
9/******/ // Check if module is in cache
10/******/ if(installedModules[moduleId])
11/******/ return installedModules[moduleId].exports;
12
13/******/ // Create a new module (and put it into the cache)
14/******/ var module = installedModules[moduleId] = {
15/******/ exports: {},
16/******/ id: moduleId,
17/******/ loaded: false
18/******/ };
19
20/******/ // Execute the module function
21/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
23/******/ // Flag the module as loaded
24/******/ module.loaded = true;
25
26/******/ // Return the exports of the module
27/******/ return module.exports;
28/******/ }
29
30
31/******/ // expose the modules object (__webpack_modules__)
32/******/ __webpack_require__.m = modules;
33
34/******/ // expose the module cache
35/******/ __webpack_require__.c = installedModules;
36
37/******/ // __webpack_public_path__
38/******/ __webpack_require__.p = "/";
39
40/******/ // Load entry module and return exports
41/******/ return __webpack_require__(0);
42/******/ })
43/************************************************************************/
44/******/ ([
45/* 0 */
46/***/ function(module, exports, __webpack_require__) {
47
48 "use strict";
49
50 var React = __webpack_require__(1);
51
52 module.exports = React.createClass({
53 displayName: "exports",
54
55 componentWillMount: function componentWillMount() {
56 __webpack_require__(2);
57 },
58 render: function render() {
59 return React.createElement(
60 "div",
61 { className: "component-spinner" },
62 React.createElement("div", { className: "bounce1" }),
63 React.createElement("div", { className: "bounce2" }),
64 React.createElement("div", { className: "bounce3" })
65 );
66 }
67 });
68
69/***/ },
70/* 1 */
71/***/ function(module, exports) {
72
73 module.exports = require("react");
74
75/***/ },
76/* 2 */
77/***/ function(module, exports, __webpack_require__) {
78
79 // style-loader: Adds some css to the DOM by adding a <style> tag
80
81 // load the styles
82 var content = __webpack_require__(3);
83 if(typeof content === 'string') content = [[module.id, content, '']];
84 // add the styles to the DOM
85 var update = __webpack_require__(5)(content, {});
86 if(content.locals) module.exports = content.locals;
87 // Hot Module Replacement
88 if(false) {
89 // When the styles change, update the <style> tags
90 if(!content.locals) {
91 module.hot.accept("!!./../../node_modules/css-loader/index.js!./../../node_modules/sass-loader/index.js!./style.scss", function() {
92 var newContent = require("!!./../../node_modules/css-loader/index.js!./../../node_modules/sass-loader/index.js!./style.scss");
93 if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
94 update(newContent);
95 });
96 }
97 // When the module is disposed, remove the <style> tags
98 module.hot.dispose(function() { update(); });
99 }
100
101/***/ },
102/* 3 */
103/***/ function(module, exports, __webpack_require__) {
104
105 exports = module.exports = __webpack_require__(4)();
106 // imports
107
108
109 // module
110 exports.push([module.id, ".component-spinner {\n text-align: center; }\n\n.component-spinner > div {\n width: 18px;\n height: 18px;\n background-color: white;\n opacity: 0.75;\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both; }\n\n.component-spinner .bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s; }\n\n.component-spinner .bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s; }\n\n@-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0); }\n 40% {\n -webkit-transform: scale(1); } }\n\n@keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0); }\n 40% {\n -webkit-transform: scale(1);\n transform: scale(1); } }\n", ""]);
111
112 // exports
113
114
115/***/ },
116/* 4 */
117/***/ function(module, exports) {
118
119 /*
120 MIT License http://www.opensource.org/licenses/mit-license.php
121 Author Tobias Koppers @sokra
122 */
123 // css base code, injected by the css-loader
124 module.exports = function() {
125 var list = [];
126
127 // return the list of modules as css string
128 list.toString = function toString() {
129 var result = [];
130 for(var i = 0; i < this.length; i++) {
131 var item = this[i];
132 if(item[2]) {
133 result.push("@media " + item[2] + "{" + item[1] + "}");
134 } else {
135 result.push(item[1]);
136 }
137 }
138 return result.join("");
139 };
140
141 // import a list of modules into the list
142 list.i = function(modules, mediaQuery) {
143 if(typeof modules === "string")
144 modules = [[null, modules, ""]];
145 var alreadyImportedModules = {};
146 for(var i = 0; i < this.length; i++) {
147 var id = this[i][0];
148 if(typeof id === "number")
149 alreadyImportedModules[id] = true;
150 }
151 for(i = 0; i < modules.length; i++) {
152 var item = modules[i];
153 // skip already imported module
154 // this implementation is not 100% perfect for weird media query combinations
155 // when a module is imported multiple times with different media queries.
156 // I hope this will never occur (Hey this way we have smaller bundles)
157 if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
158 if(mediaQuery && !item[2]) {
159 item[2] = mediaQuery;
160 } else if(mediaQuery) {
161 item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
162 }
163 list.push(item);
164 }
165 }
166 };
167 return list;
168 };
169
170
171/***/ },
172/* 5 */
173/***/ function(module, exports, __webpack_require__) {
174
175 /*
176 MIT License http://www.opensource.org/licenses/mit-license.php
177 Author Tobias Koppers @sokra
178 */
179 var stylesInDom = {},
180 memoize = function(fn) {
181 var memo;
182 return function () {
183 if (typeof memo === "undefined") memo = fn.apply(this, arguments);
184 return memo;
185 };
186 },
187 isOldIE = memoize(function() {
188 return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase());
189 }),
190 getHeadElement = memoize(function () {
191 return document.head || document.getElementsByTagName("head")[0];
192 }),
193 singletonElement = null,
194 singletonCounter = 0,
195 styleElementsInsertedAtTop = [];
196
197 module.exports = function(list, options) {
198 if(false) {
199 if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
200 }
201
202 options = options || {};
203 // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
204 // tags it will allow on a page
205 if (typeof options.singleton === "undefined") options.singleton = isOldIE();
206
207 // By default, add <style> tags to the bottom of <head>.
208 if (typeof options.insertAt === "undefined") options.insertAt = "bottom";
209
210 var styles = listToStyles(list);
211 addStylesToDom(styles, options);
212
213 return function update(newList) {
214 var mayRemove = [];
215 for(var i = 0; i < styles.length; i++) {
216 var item = styles[i];
217 var domStyle = stylesInDom[item.id];
218 domStyle.refs--;
219 mayRemove.push(domStyle);
220 }
221 if(newList) {
222 var newStyles = listToStyles(newList);
223 addStylesToDom(newStyles, options);
224 }
225 for(var i = 0; i < mayRemove.length; i++) {
226 var domStyle = mayRemove[i];
227 if(domStyle.refs === 0) {
228 for(var j = 0; j < domStyle.parts.length; j++)
229 domStyle.parts[j]();
230 delete stylesInDom[domStyle.id];
231 }
232 }
233 };
234 }
235
236 function addStylesToDom(styles, options) {
237 for(var i = 0; i < styles.length; i++) {
238 var item = styles[i];
239 var domStyle = stylesInDom[item.id];
240 if(domStyle) {
241 domStyle.refs++;
242 for(var j = 0; j < domStyle.parts.length; j++) {
243 domStyle.parts[j](item.parts[j]);
244 }
245 for(; j < item.parts.length; j++) {
246 domStyle.parts.push(addStyle(item.parts[j], options));
247 }
248 } else {
249 var parts = [];
250 for(var j = 0; j < item.parts.length; j++) {
251 parts.push(addStyle(item.parts[j], options));
252 }
253 stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
254 }
255 }
256 }
257
258 function listToStyles(list) {
259 var styles = [];
260 var newStyles = {};
261 for(var i = 0; i < list.length; i++) {
262 var item = list[i];
263 var id = item[0];
264 var css = item[1];
265 var media = item[2];
266 var sourceMap = item[3];
267 var part = {css: css, media: media, sourceMap: sourceMap};
268 if(!newStyles[id])
269 styles.push(newStyles[id] = {id: id, parts: [part]});
270 else
271 newStyles[id].parts.push(part);
272 }
273 return styles;
274 }
275
276 function insertStyleElement(options, styleElement) {
277 var head = getHeadElement();
278 var lastStyleElementInsertedAtTop = styleElementsInsertedAtTop[styleElementsInsertedAtTop.length - 1];
279 if (options.insertAt === "top") {
280 if(!lastStyleElementInsertedAtTop) {
281 head.insertBefore(styleElement, head.firstChild);
282 } else if(lastStyleElementInsertedAtTop.nextSibling) {
283 head.insertBefore(styleElement, lastStyleElementInsertedAtTop.nextSibling);
284 } else {
285 head.appendChild(styleElement);
286 }
287 styleElementsInsertedAtTop.push(styleElement);
288 } else if (options.insertAt === "bottom") {
289 head.appendChild(styleElement);
290 } else {
291 throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");
292 }
293 }
294
295 function removeStyleElement(styleElement) {
296 styleElement.parentNode.removeChild(styleElement);
297 var idx = styleElementsInsertedAtTop.indexOf(styleElement);
298 if(idx >= 0) {
299 styleElementsInsertedAtTop.splice(idx, 1);
300 }
301 }
302
303 function createStyleElement(options) {
304 var styleElement = document.createElement("style");
305 styleElement.type = "text/css";
306 insertStyleElement(options, styleElement);
307 return styleElement;
308 }
309
310 function createLinkElement(options) {
311 var linkElement = document.createElement("link");
312 linkElement.rel = "stylesheet";
313 insertStyleElement(options, linkElement);
314 return linkElement;
315 }
316
317 function addStyle(obj, options) {
318 var styleElement, update, remove;
319
320 if (options.singleton) {
321 var styleIndex = singletonCounter++;
322 styleElement = singletonElement || (singletonElement = createStyleElement(options));
323 update = applyToSingletonTag.bind(null, styleElement, styleIndex, false);
324 remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);
325 } else if(obj.sourceMap &&
326 typeof URL === "function" &&
327 typeof URL.createObjectURL === "function" &&
328 typeof URL.revokeObjectURL === "function" &&
329 typeof Blob === "function" &&
330 typeof btoa === "function") {
331 styleElement = createLinkElement(options);
332 update = updateLink.bind(null, styleElement);
333 remove = function() {
334 removeStyleElement(styleElement);
335 if(styleElement.href)
336 URL.revokeObjectURL(styleElement.href);
337 };
338 } else {
339 styleElement = createStyleElement(options);
340 update = applyToTag.bind(null, styleElement);
341 remove = function() {
342 removeStyleElement(styleElement);
343 };
344 }
345
346 update(obj);
347
348 return function updateStyle(newObj) {
349 if(newObj) {
350 if(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)
351 return;
352 update(obj = newObj);
353 } else {
354 remove();
355 }
356 };
357 }
358
359 var replaceText = (function () {
360 var textStore = [];
361
362 return function (index, replacement) {
363 textStore[index] = replacement;
364 return textStore.filter(Boolean).join('\n');
365 };
366 })();
367
368 function applyToSingletonTag(styleElement, index, remove, obj) {
369 var css = remove ? "" : obj.css;
370
371 if (styleElement.styleSheet) {
372 styleElement.styleSheet.cssText = replaceText(index, css);
373 } else {
374 var cssNode = document.createTextNode(css);
375 var childNodes = styleElement.childNodes;
376 if (childNodes[index]) styleElement.removeChild(childNodes[index]);
377 if (childNodes.length) {
378 styleElement.insertBefore(cssNode, childNodes[index]);
379 } else {
380 styleElement.appendChild(cssNode);
381 }
382 }
383 }
384
385 function applyToTag(styleElement, obj) {
386 var css = obj.css;
387 var media = obj.media;
388
389 if(media) {
390 styleElement.setAttribute("media", media)
391 }
392
393 if(styleElement.styleSheet) {
394 styleElement.styleSheet.cssText = css;
395 } else {
396 while(styleElement.firstChild) {
397 styleElement.removeChild(styleElement.firstChild);
398 }
399 styleElement.appendChild(document.createTextNode(css));
400 }
401 }
402
403 function updateLink(linkElement, obj) {
404 var css = obj.css;
405 var sourceMap = obj.sourceMap;
406
407 if(sourceMap) {
408 // http://stackoverflow.com/a/26603875
409 css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
410 }
411
412 var blob = new Blob([css], { type: "text/css" });
413
414 var oldSrc = linkElement.href;
415
416 linkElement.href = URL.createObjectURL(blob);
417
418 if(oldSrc)
419 URL.revokeObjectURL(oldSrc);
420 }
421
422
423/***/ }
424/******/ ]);
\No newline at end of file