static-app.js 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory();
  4. else if(typeof define === 'function' && define.amd)
  5. define([], factory);
  6. else {
  7. var a = factory();
  8. for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
  9. }
  10. })(global, function() {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // object to store loaded chunks
  16. /******/ // "0" means "already loaded"
  17. /******/ var installedChunks = {
  18. /******/ 0: 0
  19. /******/ };
  20. /******/
  21. /******/ // The require function
  22. /******/ function __webpack_require__(moduleId) {
  23. /******/
  24. /******/ // Check if module is in cache
  25. /******/ if(installedModules[moduleId]) {
  26. /******/ return installedModules[moduleId].exports;
  27. /******/ }
  28. /******/ // Create a new module (and put it into the cache)
  29. /******/ var module = installedModules[moduleId] = {
  30. /******/ i: moduleId,
  31. /******/ l: false,
  32. /******/ exports: {}
  33. /******/ };
  34. /******/
  35. /******/ // Execute the module function
  36. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  37. /******/
  38. /******/ // Flag the module as loaded
  39. /******/ module.l = true;
  40. /******/
  41. /******/ // Return the exports of the module
  42. /******/ return module.exports;
  43. /******/ }
  44. /******/
  45. /******/ // The chunk loading function for additional chunks
  46. /******/ // Since all referenced chunks are already included
  47. /******/ // in this file, this function is empty here.
  48. /******/ __webpack_require__.e = function requireEnsure() {
  49. /******/ return Promise.resolve();
  50. /******/ };
  51. /******/
  52. /******/ // expose the modules object (__webpack_modules__)
  53. /******/ __webpack_require__.m = modules;
  54. /******/
  55. /******/ // expose the module cache
  56. /******/ __webpack_require__.c = installedModules;
  57. /******/
  58. /******/ // define getter function for harmony exports
  59. /******/ __webpack_require__.d = function(exports, name, getter) {
  60. /******/ if(!__webpack_require__.o(exports, name)) {
  61. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  62. /******/ }
  63. /******/ };
  64. /******/
  65. /******/ // define __esModule on exports
  66. /******/ __webpack_require__.r = function(exports) {
  67. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  68. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  69. /******/ }
  70. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  71. /******/ };
  72. /******/
  73. /******/ // create a fake namespace object
  74. /******/ // mode & 1: value is a module id, require it
  75. /******/ // mode & 2: merge all properties of value into the ns
  76. /******/ // mode & 4: return value when already ns object
  77. /******/ // mode & 8|1: behave like require
  78. /******/ __webpack_require__.t = function(value, mode) {
  79. /******/ if(mode & 1) value = __webpack_require__(value);
  80. /******/ if(mode & 8) return value;
  81. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  82. /******/ var ns = Object.create(null);
  83. /******/ __webpack_require__.r(ns);
  84. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  85. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  86. /******/ return ns;
  87. /******/ };
  88. /******/
  89. /******/ // getDefaultExport function for compatibility with non-harmony modules
  90. /******/ __webpack_require__.n = function(module) {
  91. /******/ var getter = module && module.__esModule ?
  92. /******/ function getDefault() { return module['default']; } :
  93. /******/ function getModuleExports() { return module; };
  94. /******/ __webpack_require__.d(getter, 'a', getter);
  95. /******/ return getter;
  96. /******/ };
  97. /******/
  98. /******/ // Object.prototype.hasOwnProperty.call
  99. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  100. /******/
  101. /******/ // __webpack_public_path__
  102. /******/ __webpack_require__.p = "/";
  103. /******/
  104. /******/ // uncaught error handler for webpack runtime
  105. /******/ __webpack_require__.oe = function(err) {
  106. /******/ process.nextTick(function() {
  107. /******/ throw err; // catch this error by using import().catch()
  108. /******/ });
  109. /******/ };
  110. /******/
  111. /******/
  112. /******/ // Load entry module and return exports
  113. /******/ return __webpack_require__(__webpack_require__.s = 22);
  114. /******/ })
  115. /************************************************************************/
  116. /******/ ([
  117. /* 0 */
  118. /***/ (function(module, exports) {
  119. module.exports = require("react");
  120. /***/ }),
  121. /* 1 */
  122. /***/ (function(module, exports) {
  123. module.exports = require("path");
  124. /***/ }),
  125. /* 2 */
  126. /***/ (function(module, exports) {
  127. module.exports = require("babel-plugin-universal-import/universalImport");
  128. /***/ }),
  129. /* 3 */
  130. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  131. "use strict";
  132. /* harmony import */ var _reach_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
  133. /* harmony import */ var _reach_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_reach_router__WEBPACK_IMPORTED_MODULE_0__);
  134. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _reach_router__WEBPACK_IMPORTED_MODULE_0__["Link"]; });
  135. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _reach_router__WEBPACK_IMPORTED_MODULE_0__["Router"]; });
  136. /***/ }),
  137. /* 4 */
  138. /***/ (function(module, exports) {
  139. module.exports = require("react-static");
  140. /***/ }),
  141. /* 5 */
  142. /***/ (function(module, exports, __webpack_require__) {
  143. "use strict";
  144. /* WEBPACK VAR INJECTION */(function(module) {
  145. var _typeof = __webpack_require__(9);
  146. Object.defineProperty(exports, "__esModule", {
  147. value: true
  148. });
  149. exports.setHasBabelPlugin = exports.ReportChunks = exports.MODULE_IDS = exports.CHUNK_NAMES = undefined;
  150. var _extends = Object.assign || function (target) {
  151. for (var i = 1; i < arguments.length; i++) {
  152. var source = arguments[i];
  153. for (var key in source) {
  154. if (Object.prototype.hasOwnProperty.call(source, key)) {
  155. target[key] = source[key];
  156. }
  157. }
  158. }
  159. return target;
  160. };
  161. var _createClass = function () {
  162. function defineProperties(target, props) {
  163. for (var i = 0; i < props.length; i++) {
  164. var descriptor = props[i];
  165. descriptor.enumerable = descriptor.enumerable || false;
  166. descriptor.configurable = true;
  167. if ("value" in descriptor) descriptor.writable = true;
  168. Object.defineProperty(target, descriptor.key, descriptor);
  169. }
  170. }
  171. return function (Constructor, protoProps, staticProps) {
  172. if (protoProps) defineProperties(Constructor.prototype, protoProps);
  173. if (staticProps) defineProperties(Constructor, staticProps);
  174. return Constructor;
  175. };
  176. }();
  177. var _requireUniversalModule = __webpack_require__(28);
  178. Object.defineProperty(exports, 'CHUNK_NAMES', {
  179. enumerable: true,
  180. get: function get() {
  181. return _requireUniversalModule.CHUNK_NAMES;
  182. }
  183. });
  184. Object.defineProperty(exports, 'MODULE_IDS', {
  185. enumerable: true,
  186. get: function get() {
  187. return _requireUniversalModule.MODULE_IDS;
  188. }
  189. });
  190. var _reportChunks = __webpack_require__(30);
  191. Object.defineProperty(exports, 'ReportChunks', {
  192. enumerable: true,
  193. get: function get() {
  194. return _interopRequireDefault(_reportChunks)["default"];
  195. }
  196. });
  197. exports["default"] = universal;
  198. var _react = __webpack_require__(0);
  199. var _react2 = _interopRequireDefault(_react);
  200. var _propTypes = __webpack_require__(13);
  201. var _propTypes2 = _interopRequireDefault(_propTypes);
  202. var _hoistNonReactStatics = __webpack_require__(14);
  203. var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);
  204. var _vm = __webpack_require__(31);
  205. var _requireUniversalModule2 = _interopRequireDefault(_requireUniversalModule);
  206. var _utils = __webpack_require__(10);
  207. var _helpers = __webpack_require__(32);
  208. function _interopRequireDefault(obj) {
  209. return obj && obj.__esModule ? obj : {
  210. "default": obj
  211. };
  212. }
  213. function _classCallCheck(instance, Constructor) {
  214. if (!(instance instanceof Constructor)) {
  215. throw new TypeError("Cannot call a class as a function");
  216. }
  217. }
  218. function _possibleConstructorReturn(self, call) {
  219. if (!self) {
  220. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  221. }
  222. return call && (_typeof(call) === "object" || typeof call === "function") ? call : self;
  223. }
  224. function _inherits(subClass, superClass) {
  225. if (typeof superClass !== "function" && superClass !== null) {
  226. throw new TypeError("Super expression must either be null or a function, not " + _typeof(superClass));
  227. }
  228. subClass.prototype = Object.create(superClass && superClass.prototype, {
  229. constructor: {
  230. value: subClass,
  231. enumerable: false,
  232. writable: true,
  233. configurable: true
  234. }
  235. });
  236. if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
  237. }
  238. function _objectWithoutProperties(obj, keys) {
  239. var target = {};
  240. for (var i in obj) {
  241. if (keys.indexOf(i) >= 0) continue;
  242. if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
  243. target[i] = obj[i];
  244. }
  245. return target;
  246. }
  247. var hasBabelPlugin = false;
  248. var isHMR = function isHMR() {
  249. return (// $FlowIgnore
  250. module.hot && (false)
  251. );
  252. };
  253. var setHasBabelPlugin = exports.setHasBabelPlugin = function setHasBabelPlugin() {
  254. hasBabelPlugin = true;
  255. };
  256. function universal(asyncModule) {
  257. var _class, _temp;
  258. var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  259. var userRender = opts.render,
  260. _opts$loading = opts.loading,
  261. Loading = _opts$loading === undefined ? _utils.DefaultLoading : _opts$loading,
  262. _opts$error = opts.error,
  263. Err = _opts$error === undefined ? _utils.DefaultError : _opts$error,
  264. _opts$minDelay = opts.minDelay,
  265. minDelay = _opts$minDelay === undefined ? 0 : _opts$minDelay,
  266. _opts$alwaysDelay = opts.alwaysDelay,
  267. alwaysDelay = _opts$alwaysDelay === undefined ? false : _opts$alwaysDelay,
  268. _opts$testBabelPlugin = opts.testBabelPlugin,
  269. testBabelPlugin = _opts$testBabelPlugin === undefined ? false : _opts$testBabelPlugin,
  270. _opts$loadingTransiti = opts.loadingTransition,
  271. loadingTransition = _opts$loadingTransiti === undefined ? true : _opts$loadingTransiti,
  272. options = _objectWithoutProperties(opts, ['render', 'loading', 'error', 'minDelay', 'alwaysDelay', 'testBabelPlugin', 'loadingTransition']);
  273. var renderFunc = userRender || (0, _utils.createDefaultRender)(Loading, Err);
  274. var isDynamic = hasBabelPlugin || testBabelPlugin;
  275. options.isDynamic = isDynamic;
  276. options.usesBabelPlugin = hasBabelPlugin;
  277. options.modCache = {};
  278. options.promCache = {};
  279. return _temp = _class = function (_React$Component) {
  280. _inherits(UniversalComponent, _React$Component);
  281. _createClass(UniversalComponent, [{
  282. key: 'requireAsyncInner',
  283. value: function requireAsyncInner(requireAsync, props, state, context, isMount) {
  284. var _this2 = this;
  285. if (!state.mod && loadingTransition) {
  286. this.update({
  287. mod: null,
  288. props: props
  289. }); // display `loading` during componentWillReceiveProps
  290. }
  291. var time = new Date();
  292. requireAsync(props, context).then(function (mod) {
  293. var state = {
  294. mod: mod,
  295. props: props,
  296. context: context
  297. };
  298. var timeLapsed = new Date() - time;
  299. if (timeLapsed < minDelay) {
  300. var extraDelay = minDelay - timeLapsed;
  301. return setTimeout(function () {
  302. return _this2.update(state, isMount);
  303. }, extraDelay);
  304. }
  305. _this2.update(state, isMount);
  306. })["catch"](function (error) {
  307. return _this2.update({
  308. error: error,
  309. props: props,
  310. context: context
  311. });
  312. });
  313. }
  314. }, {
  315. key: 'handleBefore',
  316. value: function handleBefore(isMount, isSync) {
  317. var isServer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  318. if (this.props.onBefore) {
  319. var onBefore = this.props.onBefore;
  320. var info = {
  321. isMount: isMount,
  322. isSync: isSync,
  323. isServer: isServer
  324. };
  325. onBefore(info);
  326. }
  327. }
  328. }, {
  329. key: 'handleAfter',
  330. value: function handleAfter(state, isMount, isSync, isServer) {
  331. var mod = state.mod,
  332. error = state.error;
  333. if (mod && !error) {
  334. (0, _hoistNonReactStatics2["default"])(UniversalComponent, mod, {
  335. preload: true,
  336. preloadWeak: true
  337. });
  338. if (this.props.onAfter) {
  339. var onAfter = this.props.onAfter;
  340. var info = {
  341. isMount: isMount,
  342. isSync: isSync,
  343. isServer: isServer
  344. };
  345. onAfter(info, mod);
  346. }
  347. } else if (error && this.props.onError) {
  348. this.props.onError(error);
  349. }
  350. this.setState(state);
  351. } // $FlowFixMe
  352. }, {
  353. key: 'init',
  354. value: function init(props, context) {
  355. var _req = (0, _requireUniversalModule2["default"])(asyncModule, options, props),
  356. addModule = _req.addModule,
  357. requireSync = _req.requireSync,
  358. requireAsync = _req.requireAsync,
  359. asyncOnly = _req.asyncOnly;
  360. var mod = void 0;
  361. try {
  362. mod = requireSync(props, context);
  363. } catch (error) {
  364. return (0, _helpers.__update)(props, {
  365. error: error,
  366. props: props,
  367. context: context
  368. }, this._initialized);
  369. }
  370. this._asyncOnly = asyncOnly;
  371. var chunkName = addModule(props); // record the module for SSR flushing :)
  372. if (context.report) {
  373. context.report(chunkName);
  374. }
  375. if (mod || _utils.isServer) {
  376. this.handleBefore(true, true, _utils.isServer);
  377. return (0, _helpers.__update)(props, {
  378. asyncOnly: asyncOnly,
  379. props: props,
  380. mod: mod,
  381. context: context
  382. }, this._initialized, true, true, _utils.isServer);
  383. }
  384. this.handleBefore(true, false);
  385. this.requireAsyncInner(requireAsync, props, {
  386. props: props,
  387. asyncOnly: asyncOnly,
  388. mod: mod,
  389. context: context
  390. }, context, true);
  391. return {
  392. mod: mod,
  393. asyncOnly: asyncOnly,
  394. context: context,
  395. props: props
  396. };
  397. }
  398. }], [{
  399. key: 'preload',
  400. /* eslint-enable react/sort-comp */
  401. value: function preload(props) {
  402. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  403. props = props || {};
  404. var _req2 = (0, _requireUniversalModule2["default"])(asyncModule, options, props),
  405. requireAsync = _req2.requireAsync,
  406. requireSync = _req2.requireSync;
  407. var mod = void 0;
  408. try {
  409. mod = requireSync(props, context);
  410. } catch (error) {
  411. return Promise.reject(error);
  412. }
  413. return Promise.resolve().then(function () {
  414. if (mod) return mod;
  415. return requireAsync(props, context);
  416. }).then(function (mod) {
  417. (0, _hoistNonReactStatics2["default"])(UniversalComponent, mod, {
  418. preload: true,
  419. preloadWeak: true
  420. });
  421. return mod;
  422. });
  423. }
  424. /* eslint-disable react/sort-comp */
  425. }, {
  426. key: 'preloadWeak',
  427. value: function preloadWeak(props) {
  428. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  429. props = props || {};
  430. var _req3 = (0, _requireUniversalModule2["default"])(asyncModule, options, props),
  431. requireSync = _req3.requireSync;
  432. var mod = requireSync(props, context);
  433. if (mod) {
  434. (0, _hoistNonReactStatics2["default"])(UniversalComponent, mod, {
  435. preload: true,
  436. preloadWeak: true
  437. });
  438. }
  439. return mod;
  440. }
  441. }]);
  442. function UniversalComponent(props, context) {
  443. _classCallCheck(this, UniversalComponent);
  444. var _this = _possibleConstructorReturn(this, (UniversalComponent.__proto__ || Object.getPrototypeOf(UniversalComponent)).call(this, props, context));
  445. _this.update = function (state) {
  446. var isMount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  447. var isSync = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  448. var isServer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  449. if (!_this._initialized) return;
  450. if (!state.error) state.error = null;
  451. _this.handleAfter(state, isMount, isSync, isServer);
  452. };
  453. _this.state = _this.init(_this.props, _this.context); // $FlowFixMe
  454. _this.state.error = null;
  455. return _this;
  456. }
  457. _createClass(UniversalComponent, [{
  458. key: 'componentDidMount',
  459. value: function componentDidMount() {
  460. this._initialized = true;
  461. }
  462. }, {
  463. key: 'componentDidUpdate',
  464. value: function componentDidUpdate(prevProps) {
  465. var _this3 = this;
  466. if (isDynamic || this._asyncOnly) {
  467. var _req4 = (0, _requireUniversalModule2["default"])(asyncModule, options, this.props, prevProps),
  468. requireSync = _req4.requireSync,
  469. requireAsync = _req4.requireAsync,
  470. shouldUpdate = _req4.shouldUpdate;
  471. if (shouldUpdate(this.props, prevProps)) {
  472. var mod = void 0;
  473. try {
  474. mod = requireSync(this.props, this.context);
  475. } catch (error) {
  476. return this.update({
  477. error: error
  478. });
  479. }
  480. this.handleBefore(false, !!mod);
  481. if (!mod) {
  482. return this.requireAsyncInner(requireAsync, this.props, {
  483. mod: mod
  484. });
  485. }
  486. var state = {
  487. mod: mod
  488. };
  489. if (alwaysDelay) {
  490. if (loadingTransition) this.update({
  491. mod: null
  492. }); // display `loading` during componentWillReceiveProps
  493. setTimeout(function () {
  494. return _this3.update(state, false, true);
  495. }, minDelay);
  496. return;
  497. }
  498. this.update(state, false, true);
  499. }
  500. }
  501. }
  502. }, {
  503. key: 'componentWillUnmount',
  504. value: function componentWillUnmount() {
  505. this._initialized = false;
  506. }
  507. }, {
  508. key: 'render',
  509. value: function render() {
  510. var _props = this.props,
  511. isLoading = _props.isLoading,
  512. userError = _props.error,
  513. props = _objectWithoutProperties(_props, ['isLoading', 'error']);
  514. var _state = this.state,
  515. mod = _state.mod,
  516. error = _state.error;
  517. return renderFunc(props, mod, isLoading, userError || error);
  518. }
  519. }], [{
  520. key: 'getDerivedStateFromProps',
  521. value: function getDerivedStateFromProps(nextProps, currentState) {
  522. var _req5 = (0, _requireUniversalModule2["default"])(asyncModule, options, nextProps, currentState.props),
  523. requireSync = _req5.requireSync,
  524. shouldUpdate = _req5.shouldUpdate;
  525. if (isHMR() && shouldUpdate(currentState.props, nextProps)) {
  526. var mod = requireSync(nextProps, currentState.context);
  527. return _extends({}, currentState, {
  528. mod: mod
  529. });
  530. }
  531. return null;
  532. }
  533. }]);
  534. return UniversalComponent;
  535. }(_react2["default"].Component), _class.contextTypes = {
  536. store: _propTypes2["default"].object,
  537. report: _propTypes2["default"].func
  538. }, _temp;
  539. }
  540. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(27)(module)))
  541. /***/ }),
  542. /* 6 */
  543. /***/ (function(module, exports, __webpack_require__) {
  544. "use strict";
  545. Object.defineProperty(exports, "__esModule", {
  546. value: true
  547. });
  548. var _utils = __webpack_require__(10);
  549. var requireById = function requireById(id) {
  550. if (!(0, _utils.isWebpack)() && typeof id === 'string') {
  551. return __webpack_require__(29)("" + id);
  552. }
  553. return __webpack_require__('' + id);
  554. };
  555. exports["default"] = requireById;
  556. /***/ }),
  557. /* 7 */
  558. /***/ (function(module, exports) {
  559. module.exports = require("@reach/router");
  560. /***/ }),
  561. /* 8 */
  562. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  563. "use strict";
  564. // EXTERNAL MODULE: external "react"
  565. var external_react_ = __webpack_require__(0);
  566. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  567. // EXTERNAL MODULE: external "react-static"
  568. var external_react_static_ = __webpack_require__(4);
  569. // EXTERNAL MODULE: /var/www/strong/src/components/Router.js
  570. var Router = __webpack_require__(3);
  571. // CONCATENATED MODULE: /var/www/strong/src/containers/Dynamic.js
  572. /* harmony default export */ var Dynamic = (function () {
  573. return /*#__PURE__*/external_react_default.a.createElement("div", null, "This is a dynamic page! It will not be statically exported, but is available at runtime");
  574. });
  575. // EXTERNAL MODULE: /var/www/strong/src/app.css
  576. var app = __webpack_require__(41);
  577. // CONCATENATED MODULE: /var/www/strong/src/App.js
  578. //
  579. // Any routes that start with 'dynamic' will be treated as non-static routes
  580. Object(external_react_static_["addPrefetchExcludes"])(['dynamic']);
  581. function App() {
  582. return /*#__PURE__*/external_react_default.a.createElement(external_react_static_["Root"], null, /*#__PURE__*/external_react_default.a.createElement("nav", null, /*#__PURE__*/external_react_default.a.createElement(Router["a" /* Link */], {
  583. to: "/"
  584. }, "Home"), /*#__PURE__*/external_react_default.a.createElement(Router["a" /* Link */], {
  585. to: "/about"
  586. }, "About"), /*#__PURE__*/external_react_default.a.createElement(Router["a" /* Link */], {
  587. to: "/blog"
  588. }, "Blog"), /*#__PURE__*/external_react_default.a.createElement(Router["a" /* Link */], {
  589. to: "/dynamic"
  590. }, "Dynamic")), /*#__PURE__*/external_react_default.a.createElement("div", {
  591. className: "content"
  592. }, /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Suspense, {
  593. fallback: /*#__PURE__*/external_react_default.a.createElement("em", null, "Loading...")
  594. }, /*#__PURE__*/external_react_default.a.createElement(Router["b" /* Router */], null, /*#__PURE__*/external_react_default.a.createElement(Dynamic, {
  595. path: "dynamic"
  596. }), /*#__PURE__*/external_react_default.a.createElement(external_react_static_["Routes"], {
  597. path: "*"
  598. })))));
  599. }
  600. /* harmony default export */ var src_App = __webpack_exports__["a"] = (App);
  601. /***/ }),
  602. /* 9 */
  603. /***/ (function(module, exports) {
  604. module.exports = require("@babel/runtime/helpers/typeof");
  605. /***/ }),
  606. /* 10 */
  607. /***/ (function(module, exports, __webpack_require__) {
  608. "use strict";
  609. var _typeof2 = __webpack_require__(9);
  610. Object.defineProperty(exports, "__esModule", {
  611. value: true
  612. });
  613. exports.cacheProm = exports.loadFromPromiseCache = exports.cacheExport = exports.loadFromCache = exports.callForString = exports.createDefaultRender = exports.createElement = exports.findExport = exports.resolveExport = exports.tryRequire = exports.DefaultError = exports.DefaultLoading = exports.babelInterop = exports.isWebpack = exports.isServer = exports.isTest = undefined;
  614. var _extends = Object.assign || function (target) {
  615. for (var i = 1; i < arguments.length; i++) {
  616. var source = arguments[i];
  617. for (var key in source) {
  618. if (Object.prototype.hasOwnProperty.call(source, key)) {
  619. target[key] = source[key];
  620. }
  621. }
  622. }
  623. return target;
  624. };
  625. var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) {
  626. return _typeof2(obj);
  627. } : function (obj) {
  628. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
  629. };
  630. var _react = __webpack_require__(0);
  631. var React = _interopRequireWildcard(_react);
  632. var _requireById = __webpack_require__(6);
  633. var _requireById2 = _interopRequireDefault(_requireById);
  634. function _interopRequireDefault(obj) {
  635. return obj && obj.__esModule ? obj : {
  636. "default": obj
  637. };
  638. }
  639. function _interopRequireWildcard(obj) {
  640. if (obj && obj.__esModule) {
  641. return obj;
  642. } else {
  643. var newObj = {};
  644. if (obj != null) {
  645. for (var key in obj) {
  646. if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
  647. }
  648. }
  649. newObj["default"] = obj;
  650. return newObj;
  651. }
  652. }
  653. var isTest = exports.isTest = "production" === 'test';
  654. var isServer = exports.isServer = !(typeof window !== 'undefined' && window.document && window.document.createElement);
  655. var isWebpack = exports.isWebpack = function isWebpack() {
  656. return typeof __webpack_require__ !== 'undefined';
  657. };
  658. var babelInterop = exports.babelInterop = function babelInterop(mod) {
  659. return mod && (typeof mod === 'undefined' ? 'undefined' : _typeof(mod)) === 'object' && mod.__esModule ? mod["default"] : mod;
  660. };
  661. var DefaultLoading = exports.DefaultLoading = function DefaultLoading() {
  662. return React.createElement('div', null, 'Loading...');
  663. };
  664. var DefaultError = exports.DefaultError = function DefaultError(_ref) {
  665. var error = _ref.error;
  666. return React.createElement('div', null, 'Error: ', error && error.message);
  667. };
  668. var tryRequire = exports.tryRequire = function tryRequire(id) {
  669. try {
  670. return (0, _requireById2["default"])(id);
  671. } catch (err) {
  672. // warn if there was an error while requiring the chunk during development
  673. // this can sometimes lead the server to render the loading component.
  674. if (false) {}
  675. }
  676. return null;
  677. };
  678. var resolveExport = exports.resolveExport = function resolveExport(mod, key, onLoad, chunkName, props, context, modCache) {
  679. var isSync = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
  680. var exp = findExport(mod, key);
  681. if (onLoad && mod) {
  682. var _isServer = typeof window === 'undefined';
  683. var info = {
  684. isServer: _isServer,
  685. isSync: isSync
  686. };
  687. onLoad(mod, info, props, context);
  688. }
  689. if (chunkName && exp) cacheExport(exp, chunkName, props, modCache);
  690. return exp;
  691. };
  692. var findExport = exports.findExport = function findExport(mod, key) {
  693. if (typeof key === 'function') {
  694. return key(mod);
  695. } else if (key === null) {
  696. return mod;
  697. }
  698. return mod && (typeof mod === 'undefined' ? 'undefined' : _typeof(mod)) === 'object' && key ? mod[key] : babelInterop(mod);
  699. };
  700. var createElement = exports.createElement = function createElement(Component, props) {
  701. return React.isValidElement(Component) ? React.cloneElement(Component, props) : React.createElement(Component, props);
  702. };
  703. var createDefaultRender = exports.createDefaultRender = function createDefaultRender(Loading, Err) {
  704. return function (props, mod, isLoading, error) {
  705. if (isLoading) {
  706. return createElement(Loading, props);
  707. } else if (error) {
  708. return createElement(Err, _extends({}, props, {
  709. error: error
  710. }));
  711. } else if (mod) {
  712. // primary usage (for async import loading + errors):
  713. return createElement(mod, props);
  714. }
  715. return createElement(Loading, props);
  716. };
  717. };
  718. var callForString = exports.callForString = function callForString(strFun, props) {
  719. return typeof strFun === 'function' ? strFun(props) : strFun;
  720. };
  721. var loadFromCache = exports.loadFromCache = function loadFromCache(chunkName, props, modCache) {
  722. return !isServer && modCache[callForString(chunkName, props)];
  723. };
  724. var cacheExport = exports.cacheExport = function cacheExport(exp, chunkName, props, modCache) {
  725. return modCache[callForString(chunkName, props)] = exp;
  726. };
  727. var loadFromPromiseCache = exports.loadFromPromiseCache = function loadFromPromiseCache(chunkName, props, promisecache) {
  728. return promisecache[callForString(chunkName, props)];
  729. };
  730. var cacheProm = exports.cacheProm = function cacheProm(pr, chunkName, props, promisecache) {
  731. return promisecache[callForString(chunkName, props)] = pr;
  732. };
  733. /***/ }),
  734. /* 11 */
  735. /***/ (function(module, exports) {
  736. module.exports = require("react-dom");
  737. /***/ }),
  738. /* 12 */
  739. /***/ (function(module, exports) {
  740. module.exports = require("/var/www/strong/node_modules/react-static/lib/browser");
  741. /***/ }),
  742. /* 13 */
  743. /***/ (function(module, exports) {
  744. module.exports = require("prop-types");
  745. /***/ }),
  746. /* 14 */
  747. /***/ (function(module, exports) {
  748. module.exports = require("hoist-non-react-statics");
  749. /***/ }),
  750. /* 15 */
  751. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  752. "use strict";
  753. __webpack_require__.r(__webpack_exports__);
  754. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
  755. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  756. /* harmony default export */ __webpack_exports__["default"] = (function () {
  757. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h1", null, "404 - Oh no's! We couldn't find that page :("));
  758. });
  759. /***/ }),
  760. /* 16 */
  761. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  762. "use strict";
  763. __webpack_require__.r(__webpack_exports__);
  764. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
  765. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  766. /* harmony default export */ __webpack_exports__["default"] = (function () {
  767. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, "React Static is a progressive static site generator for React."));
  768. });
  769. /***/ }),
  770. /* 17 */
  771. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  772. "use strict";
  773. __webpack_require__.r(__webpack_exports__);
  774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Blog; });
  775. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
  776. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  777. /* harmony import */ var react_static__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
  778. /* harmony import */ var react_static__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_static__WEBPACK_IMPORTED_MODULE_1__);
  779. /* harmony import */ var components_Router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
  780. //
  781. function Blog() {
  782. var _useRouteData = Object(react_static__WEBPACK_IMPORTED_MODULE_1__["useRouteData"])(),
  783. posts = _useRouteData.posts;
  784. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h1", null, "It's blog time."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
  785. href: "#bottom",
  786. id: "top"
  787. }, "Scroll to bottom!")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br", null), "All Posts:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", null, posts.map(function (post) {
  788. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", {
  789. key: post.id
  790. }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(components_Router__WEBPACK_IMPORTED_MODULE_2__[/* Link */ "a"], {
  791. to: "/blog/post/".concat(post.id, "/")
  792. }, post.title));
  793. })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
  794. href: "#top",
  795. id: "bottom"
  796. }, "Scroll to top!"));
  797. }
  798. /***/ }),
  799. /* 18 */
  800. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  801. "use strict";
  802. __webpack_require__.r(__webpack_exports__);
  803. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
  804. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  805. /* harmony default export */ __webpack_exports__["default"] = (function () {
  806. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
  807. style: {
  808. textAlign: 'center'
  809. }
  810. }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h1", null, "Welcome to React-Static"));
  811. });
  812. /***/ }),
  813. /* 19 */
  814. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  815. "use strict";
  816. __webpack_require__.r(__webpack_exports__);
  817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Post; });
  818. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
  819. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  820. /* harmony import */ var react_static__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
  821. /* harmony import */ var react_static__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_static__WEBPACK_IMPORTED_MODULE_1__);
  822. /* harmony import */ var components_Router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
  823. //
  824. function Post() {
  825. var _useRouteData = Object(react_static__WEBPACK_IMPORTED_MODULE_1__["useRouteData"])(),
  826. post = _useRouteData.post;
  827. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(components_Router__WEBPACK_IMPORTED_MODULE_2__[/* Link */ "a"], {
  828. to: "/blog/"
  829. }, '<', " Back"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("br", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, post.title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p", null, post.body));
  830. }
  831. /***/ }),
  832. /* 20 */
  833. /***/ (function(module, exports, __webpack_require__) {
  834. "use strict";
  835. Object.defineProperty(exports, "__esModule", {
  836. value: true
  837. });
  838. exports["default"] = void 0;
  839. var _react = _interopRequireDefault(__webpack_require__(0));
  840. var _reactStatic = __webpack_require__(4);
  841. var _router = __webpack_require__(7);
  842. function _interopRequireDefault(obj) {
  843. return obj && obj.__esModule ? obj : {
  844. "default": obj
  845. };
  846. }
  847. function _extends() {
  848. _extends = Object.assign || function (target) {
  849. for (var i = 1; i < arguments.length; i++) {
  850. var source = arguments[i];
  851. for (var key in source) {
  852. if (Object.prototype.hasOwnProperty.call(source, key)) {
  853. target[key] = source[key];
  854. }
  855. }
  856. }
  857. return target;
  858. };
  859. return _extends.apply(this, arguments);
  860. }
  861. function _objectWithoutProperties(source, excluded) {
  862. if (source == null) return {};
  863. var target = _objectWithoutPropertiesLoose(source, excluded);
  864. var key, i;
  865. if (Object.getOwnPropertySymbols) {
  866. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  867. for (i = 0; i < sourceSymbolKeys.length; i++) {
  868. key = sourceSymbolKeys[i];
  869. if (excluded.indexOf(key) >= 0) continue;
  870. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  871. target[key] = source[key];
  872. }
  873. }
  874. return target;
  875. }
  876. function _objectWithoutPropertiesLoose(source, excluded) {
  877. if (source == null) return {};
  878. var target = {};
  879. var sourceKeys = Object.keys(source);
  880. var key, i;
  881. for (i = 0; i < sourceKeys.length; i++) {
  882. key = sourceKeys[i];
  883. if (excluded.indexOf(key) >= 0) continue;
  884. target[key] = source[key];
  885. }
  886. return target;
  887. }
  888. var _default = function _default(_ref) {
  889. var _ref$RouterProps = _ref.RouterProps,
  890. userRouterProps = _ref$RouterProps === void 0 ? {} : _ref$RouterProps;
  891. return {
  892. Root: function Root(PreviousRoot) {
  893. return function (_ref2) {
  894. var children = _ref2.children,
  895. rest = _objectWithoutProperties(_ref2, ["children"]);
  896. var basepath = (0, _reactStatic.useBasepath)();
  897. var staticInfo = (0, _reactStatic.useStaticInfo)();
  898. var RouteHandler = function RouteHandler(props) {
  899. return _react["default"].createElement(PreviousRoot, _extends({}, rest, props), children);
  900. };
  901. var renderedChildren = // Place a top-level router inside the root
  902. // This will give proper context to Link and other reach components
  903. _react["default"].createElement(_router.Router, _extends({}, basepath ? {
  904. basepath: basepath
  905. } : {}, userRouterProps), _react["default"].createElement(RouteHandler, {
  906. path: "/*"
  907. })); // If we're in SSR, use a manual server location
  908. return typeof document === 'undefined' ? _react["default"].createElement(_router.ServerLocation, {
  909. url: (0, _reactStatic.makePathAbsolute)("".concat(basepath, "/").concat(staticInfo.path))
  910. }, renderedChildren) : renderedChildren;
  911. };
  912. },
  913. Routes: function Routes(PreviousRoutes) {
  914. return function (props) {
  915. return (// Wrap Routes in location
  916. _react["default"].createElement(_router.Location, null, function (location) {
  917. return _react["default"].createElement(PreviousRoutes, _extends({
  918. path: "/*"
  919. }, props, {
  920. location: location
  921. }));
  922. })
  923. );
  924. };
  925. }
  926. };
  927. };
  928. exports["default"] = _default;
  929. /***/ }),
  930. /* 21 */
  931. /***/ (function(module, exports) {
  932. module.exports = require("react-hot-loader");
  933. /***/ }),
  934. /* 22 */
  935. /***/ (function(module, exports, __webpack_require__) {
  936. __webpack_require__(23);
  937. __webpack_require__(25);
  938. module.exports = __webpack_require__(33);
  939. /***/ }),
  940. /* 23 */
  941. /***/ (function(module, exports, __webpack_require__) {
  942. "use strict";
  943. /* eslint-disable import/no-dynamic-require */
  944. var plugins = __webpack_require__(24)["default"];
  945. var _require = __webpack_require__(12),
  946. registerPlugins = _require.registerPlugins;
  947. registerPlugins(plugins);
  948. if (false) {}
  949. /***/ }),
  950. /* 24 */
  951. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  952. "use strict";
  953. __webpack_require__.r(__webpack_exports__);
  954. /* harmony import */ var _react_static_root_node_modules_react_static_plugin_reach_router_browser_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
  955. /* harmony import */ var _react_static_root_node_modules_react_static_plugin_reach_router_browser_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react_static_root_node_modules_react_static_plugin_reach_router_browser_api_js__WEBPACK_IMPORTED_MODULE_0__);
  956. // Imports
  957. // Plugins
  958. var plugins = [{
  959. location: "__react_static_root__/node_modules/react-static-plugin-source-filesystem",
  960. plugins: [],
  961. hooks: {}
  962. }, {
  963. location: "__react_static_root__/node_modules/react-static-plugin-reach-router",
  964. plugins: [],
  965. hooks: _react_static_root_node_modules_react_static_plugin_reach_router_browser_api_js__WEBPACK_IMPORTED_MODULE_0___default()({})
  966. }, {
  967. location: "__react_static_root__/node_modules/react-static-plugin-sitemap/dist",
  968. plugins: [],
  969. hooks: {}
  970. }, {
  971. location: "__react_static_root__/",
  972. plugins: [],
  973. hooks: {}
  974. }]; // Export em!
  975. /* harmony default export */ __webpack_exports__["default"] = (plugins);
  976. /***/ }),
  977. /* 25 */
  978. /***/ (function(module, exports, __webpack_require__) {
  979. "use strict";
  980. /* eslint-disable import/no-dynamic-require */
  981. var _require = __webpack_require__(12),
  982. registerTemplates = _require.registerTemplates;
  983. var _require2 = __webpack_require__(26),
  984. templates = _require2["default"],
  985. notFoundTemplate = _require2.notFoundTemplate;
  986. registerTemplates(templates, notFoundTemplate);
  987. if (false) {}
  988. /***/ }),
  989. /* 26 */
  990. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  991. "use strict";
  992. __webpack_require__.r(__webpack_exports__);
  993. /* WEBPACK VAR INJECTION */(function(__dirname) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "notFoundTemplate", function() { return notFoundTemplate; });
  994. /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
  995. /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
  996. /* harmony import */ var babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
  997. /* harmony import */ var babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1__);
  998. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
  999. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  1000. /* harmony import */ var react_universal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
  1001. /* harmony import */ var react_universal_component__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_universal_component__WEBPACK_IMPORTED_MODULE_3__);
  1002. Object(react_universal_component__WEBPACK_IMPORTED_MODULE_3__["setHasBabelPlugin"])();
  1003. var universalOptions = {
  1004. loading: function loading() {
  1005. return null;
  1006. },
  1007. error: function error(props) {
  1008. console.error(props.error);
  1009. return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", null, "An error occurred loading this page's template. More information is available in the console.");
  1010. },
  1011. ignoreBabelRename: true
  1012. };
  1013. var t_0 = react_universal_component__WEBPACK_IMPORTED_MODULE_3___default()(babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1___default()({
  1014. id: "__react_static_root__/src/pages/404.js",
  1015. load: function load() {
  1016. return Promise.all([Promise.resolve(/* import() | __react_static_root__/src/pages/404 */).then(__webpack_require__.bind(null, 15))]).then(function (proms) {
  1017. return proms[0];
  1018. });
  1019. },
  1020. path: function path() {
  1021. return path__WEBPACK_IMPORTED_MODULE_0___default.a.join(__dirname, '__react_static_root__/src/pages/404.js');
  1022. },
  1023. resolve: function resolve() {
  1024. return /*require.resolve*/(15);
  1025. },
  1026. chunkName: function chunkName() {
  1027. return "__react_static_root__/src/pages/404";
  1028. }
  1029. }), universalOptions);
  1030. t_0.template = '__react_static_root__/src/pages/404.js';
  1031. var t_1 = react_universal_component__WEBPACK_IMPORTED_MODULE_3___default()(babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1___default()({
  1032. id: "__react_static_root__/src/pages/about.js",
  1033. load: function load() {
  1034. return Promise.all([Promise.resolve(/* import() | __react_static_root__/src/pages/about */).then(__webpack_require__.bind(null, 16))]).then(function (proms) {
  1035. return proms[0];
  1036. });
  1037. },
  1038. path: function path() {
  1039. return path__WEBPACK_IMPORTED_MODULE_0___default.a.join(__dirname, '__react_static_root__/src/pages/about.js');
  1040. },
  1041. resolve: function resolve() {
  1042. return /*require.resolve*/(16);
  1043. },
  1044. chunkName: function chunkName() {
  1045. return "__react_static_root__/src/pages/about";
  1046. }
  1047. }), universalOptions);
  1048. t_1.template = '__react_static_root__/src/pages/about.js';
  1049. var t_2 = react_universal_component__WEBPACK_IMPORTED_MODULE_3___default()(babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1___default()({
  1050. id: "__react_static_root__/src/pages/blog.js",
  1051. load: function load() {
  1052. return Promise.all([Promise.resolve(/* import() | __react_static_root__/src/pages/blog */).then(__webpack_require__.bind(null, 17))]).then(function (proms) {
  1053. return proms[0];
  1054. });
  1055. },
  1056. path: function path() {
  1057. return path__WEBPACK_IMPORTED_MODULE_0___default.a.join(__dirname, '__react_static_root__/src/pages/blog.js');
  1058. },
  1059. resolve: function resolve() {
  1060. return /*require.resolve*/(17);
  1061. },
  1062. chunkName: function chunkName() {
  1063. return "__react_static_root__/src/pages/blog";
  1064. }
  1065. }), universalOptions);
  1066. t_2.template = '__react_static_root__/src/pages/blog.js';
  1067. var t_3 = react_universal_component__WEBPACK_IMPORTED_MODULE_3___default()(babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1___default()({
  1068. id: "__react_static_root__/src/pages/index.js",
  1069. load: function load() {
  1070. return Promise.all([Promise.resolve(/* import() | __react_static_root__/src/pages/index */).then(__webpack_require__.bind(null, 18))]).then(function (proms) {
  1071. return proms[0];
  1072. });
  1073. },
  1074. path: function path() {
  1075. return path__WEBPACK_IMPORTED_MODULE_0___default.a.join(__dirname, '__react_static_root__/src/pages/index.js');
  1076. },
  1077. resolve: function resolve() {
  1078. return /*require.resolve*/(18);
  1079. },
  1080. chunkName: function chunkName() {
  1081. return "__react_static_root__/src/pages/index";
  1082. }
  1083. }), universalOptions);
  1084. t_3.template = '__react_static_root__/src/pages/index.js';
  1085. var t_4 = react_universal_component__WEBPACK_IMPORTED_MODULE_3___default()(babel_plugin_universal_import_universalImport__WEBPACK_IMPORTED_MODULE_1___default()({
  1086. id: "__react_static_root__/src/containers/Post",
  1087. load: function load() {
  1088. return Promise.all([Promise.resolve(/* import() | __react_static_root__/src/containers/Post */).then(__webpack_require__.bind(null, 19))]).then(function (proms) {
  1089. return proms[0];
  1090. });
  1091. },
  1092. path: function path() {
  1093. return path__WEBPACK_IMPORTED_MODULE_0___default.a.join(__dirname, '__react_static_root__/src/containers/Post');
  1094. },
  1095. resolve: function resolve() {
  1096. return /*require.resolve*/(19);
  1097. },
  1098. chunkName: function chunkName() {
  1099. return "__react_static_root__/src/containers/Post";
  1100. }
  1101. }), universalOptions);
  1102. t_4.template = '__react_static_root__/src/containers/Post'; // Template Map
  1103. /* harmony default export */ __webpack_exports__["default"] = ({
  1104. '__react_static_root__/src/pages/404.js': t_0,
  1105. '__react_static_root__/src/pages/about.js': t_1,
  1106. '__react_static_root__/src/pages/blog.js': t_2,
  1107. '__react_static_root__/src/pages/index.js': t_3,
  1108. '__react_static_root__/src/containers/Post': t_4
  1109. }); // Not Found Template
  1110. var notFoundTemplate = "__react_static_root__/src/pages/404.js";
  1111. /* WEBPACK VAR INJECTION */}.call(this, "/"))
  1112. /***/ }),
  1113. /* 27 */
  1114. /***/ (function(module, exports) {
  1115. module.exports = function (module) {
  1116. if (!module.webpackPolyfill) {
  1117. module.deprecate = function () {};
  1118. module.paths = []; // module.parent = undefined by default
  1119. if (!module.children) module.children = [];
  1120. Object.defineProperty(module, "loaded", {
  1121. enumerable: true,
  1122. get: function get() {
  1123. return module.l;
  1124. }
  1125. });
  1126. Object.defineProperty(module, "id", {
  1127. enumerable: true,
  1128. get: function get() {
  1129. return module.i;
  1130. }
  1131. });
  1132. module.webpackPolyfill = 1;
  1133. }
  1134. return module;
  1135. };
  1136. /***/ }),
  1137. /* 28 */
  1138. /***/ (function(module, exports, __webpack_require__) {
  1139. "use strict";
  1140. Object.defineProperty(exports, "__esModule", {
  1141. value: true
  1142. });
  1143. exports.clearChunks = exports.flushModuleIds = exports.flushChunkNames = exports.MODULE_IDS = exports.CHUNK_NAMES = undefined;
  1144. var _extends = Object.assign || function (target) {
  1145. for (var i = 1; i < arguments.length; i++) {
  1146. var source = arguments[i];
  1147. for (var key in source) {
  1148. if (Object.prototype.hasOwnProperty.call(source, key)) {
  1149. target[key] = source[key];
  1150. }
  1151. }
  1152. }
  1153. return target;
  1154. };
  1155. exports["default"] = requireUniversalModule;
  1156. var _utils = __webpack_require__(10);
  1157. var CHUNK_NAMES = exports.CHUNK_NAMES = new Set();
  1158. var MODULE_IDS = exports.MODULE_IDS = new Set();
  1159. function requireUniversalModule(universalConfig, options, props, prevProps) {
  1160. var key = options.key,
  1161. _options$timeout = options.timeout,
  1162. timeout = _options$timeout === undefined ? 15000 : _options$timeout,
  1163. onLoad = options.onLoad,
  1164. onError = options.onError,
  1165. isDynamic = options.isDynamic,
  1166. modCache = options.modCache,
  1167. promCache = options.promCache,
  1168. usesBabelPlugin = options.usesBabelPlugin;
  1169. var config = getConfig(isDynamic, universalConfig, options, props);
  1170. var chunkName = config.chunkName,
  1171. path = config.path,
  1172. resolve = config.resolve,
  1173. load = config.load;
  1174. var asyncOnly = !path && !resolve || typeof chunkName === 'function';
  1175. var requireSync = function requireSync(props, context) {
  1176. var exp = (0, _utils.loadFromCache)(chunkName, props, modCache);
  1177. if (!exp) {
  1178. var mod = void 0;
  1179. if (!(0, _utils.isWebpack)() && path) {
  1180. var modulePath = (0, _utils.callForString)(path, props) || '';
  1181. mod = (0, _utils.tryRequire)(modulePath);
  1182. } else if ((0, _utils.isWebpack)() && resolve) {
  1183. var weakId = (0, _utils.callForString)(resolve, props);
  1184. if (__webpack_require__.m[weakId]) {
  1185. mod = (0, _utils.tryRequire)(weakId);
  1186. }
  1187. }
  1188. if (mod) {
  1189. exp = (0, _utils.resolveExport)(mod, key, onLoad, chunkName, props, context, modCache, true);
  1190. }
  1191. }
  1192. return exp;
  1193. };
  1194. var requireAsync = function requireAsync(props, context) {
  1195. var exp = (0, _utils.loadFromCache)(chunkName, props, modCache);
  1196. if (exp) return Promise.resolve(exp);
  1197. var cachedPromise = (0, _utils.loadFromPromiseCache)(chunkName, props, promCache);
  1198. if (cachedPromise) return cachedPromise;
  1199. var prom = new Promise(function (res, rej) {
  1200. var reject = function reject(error) {
  1201. error = error || new Error('timeout exceeded');
  1202. clearTimeout(timer);
  1203. if (onError) {
  1204. var _isServer = typeof window === 'undefined';
  1205. var info = {
  1206. isServer: _isServer
  1207. };
  1208. onError(error, info);
  1209. }
  1210. rej(error);
  1211. }; // const timer = timeout && setTimeout(reject, timeout)
  1212. var timer = timeout && setTimeout(reject, timeout);
  1213. var resolve = function resolve(mod) {
  1214. clearTimeout(timer);
  1215. var exp = (0, _utils.resolveExport)(mod, key, onLoad, chunkName, props, context, modCache);
  1216. if (exp) return res(exp);
  1217. reject(new Error('export not found'));
  1218. };
  1219. var request = load(props, {
  1220. resolve: resolve,
  1221. reject: reject
  1222. }); // if load doesn't return a promise, it must call resolveImport
  1223. // itself. Most common is the promise implementation below.
  1224. if (!request || typeof request.then !== 'function') return;
  1225. request.then(resolve)["catch"](reject);
  1226. });
  1227. (0, _utils.cacheProm)(prom, chunkName, props, promCache);
  1228. return prom;
  1229. };
  1230. var addModule = function addModule(props) {
  1231. if (_utils.isServer || _utils.isTest) {
  1232. if (chunkName) {
  1233. var name = (0, _utils.callForString)(chunkName, props);
  1234. if (usesBabelPlugin) {
  1235. // if ignoreBabelRename is true, don't apply regex
  1236. var shouldKeepName = options && !!options.ignoreBabelRename;
  1237. if (!shouldKeepName) {
  1238. name = name.replace(/\//g, '-');
  1239. }
  1240. }
  1241. if (name) CHUNK_NAMES.add(name);
  1242. if (!_utils.isTest) return name; // makes tests way smaller to run both kinds
  1243. }
  1244. if ((0, _utils.isWebpack)()) {
  1245. var weakId = (0, _utils.callForString)(resolve, props);
  1246. if (weakId) MODULE_IDS.add(weakId);
  1247. return weakId;
  1248. }
  1249. if (!(0, _utils.isWebpack)()) {
  1250. var modulePath = (0, _utils.callForString)(path, props);
  1251. if (modulePath) MODULE_IDS.add(modulePath);
  1252. return modulePath;
  1253. }
  1254. }
  1255. };
  1256. var shouldUpdate = function shouldUpdate(next, prev) {
  1257. var cacheKey = (0, _utils.callForString)(chunkName, next);
  1258. var config = getConfig(isDynamic, universalConfig, options, prev);
  1259. var prevCacheKey = (0, _utils.callForString)(config.chunkName, prev);
  1260. return cacheKey !== prevCacheKey;
  1261. };
  1262. return {
  1263. requireSync: requireSync,
  1264. requireAsync: requireAsync,
  1265. addModule: addModule,
  1266. shouldUpdate: shouldUpdate,
  1267. asyncOnly: asyncOnly
  1268. };
  1269. }
  1270. var flushChunkNames = exports.flushChunkNames = function flushChunkNames() {
  1271. var chunks = Array.from(CHUNK_NAMES);
  1272. CHUNK_NAMES.clear();
  1273. return chunks;
  1274. };
  1275. var flushModuleIds = exports.flushModuleIds = function flushModuleIds() {
  1276. var ids = Array.from(MODULE_IDS);
  1277. MODULE_IDS.clear();
  1278. return ids;
  1279. };
  1280. var clearChunks = exports.clearChunks = function clearChunks() {
  1281. CHUNK_NAMES.clear();
  1282. MODULE_IDS.clear();
  1283. };
  1284. var getConfig = function getConfig(isDynamic, universalConfig, options, props) {
  1285. if (isDynamic) {
  1286. var resultingConfig = typeof universalConfig === 'function' ? universalConfig(props) : universalConfig;
  1287. if (options) {
  1288. resultingConfig = _extends({}, resultingConfig, options);
  1289. }
  1290. return resultingConfig;
  1291. }
  1292. var load = typeof universalConfig === 'function' ? universalConfig : // $FlowIssue
  1293. function () {
  1294. return universalConfig;
  1295. };
  1296. return {
  1297. file: 'default',
  1298. id: options.id || 'default',
  1299. chunkName: options.chunkName || 'default',
  1300. resolve: options.resolve || '',
  1301. path: options.path || '',
  1302. load: load,
  1303. ignoreBabelRename: true
  1304. };
  1305. };
  1306. /***/ }),
  1307. /* 29 */
  1308. /***/ (function(module, exports, __webpack_require__) {
  1309. var map = {
  1310. ".": 6,
  1311. "./": 6,
  1312. "./index": 6,
  1313. "./index.js": 6
  1314. };
  1315. function webpackContext(req) {
  1316. var id = webpackContextResolve(req);
  1317. return __webpack_require__(id);
  1318. }
  1319. function webpackContextResolve(req) {
  1320. if(!__webpack_require__.o(map, req)) {
  1321. var e = new Error("Cannot find module '" + req + "'");
  1322. e.code = 'MODULE_NOT_FOUND';
  1323. throw e;
  1324. }
  1325. return map[req];
  1326. }
  1327. webpackContext.keys = function webpackContextKeys() {
  1328. return Object.keys(map);
  1329. };
  1330. webpackContext.resolve = webpackContextResolve;
  1331. module.exports = webpackContext;
  1332. webpackContext.id = 29;
  1333. /***/ }),
  1334. /* 30 */
  1335. /***/ (function(module, exports, __webpack_require__) {
  1336. "use strict";
  1337. var _typeof = __webpack_require__(9);
  1338. Object.defineProperty(exports, "__esModule", {
  1339. value: true
  1340. });
  1341. var _createClass = function () {
  1342. function defineProperties(target, props) {
  1343. for (var i = 0; i < props.length; i++) {
  1344. var descriptor = props[i];
  1345. descriptor.enumerable = descriptor.enumerable || false;
  1346. descriptor.configurable = true;
  1347. if ("value" in descriptor) descriptor.writable = true;
  1348. Object.defineProperty(target, descriptor.key, descriptor);
  1349. }
  1350. }
  1351. return function (Constructor, protoProps, staticProps) {
  1352. if (protoProps) defineProperties(Constructor.prototype, protoProps);
  1353. if (staticProps) defineProperties(Constructor, staticProps);
  1354. return Constructor;
  1355. };
  1356. }();
  1357. var _react = __webpack_require__(0);
  1358. var _react2 = _interopRequireDefault(_react);
  1359. var _propTypes = __webpack_require__(13);
  1360. var _propTypes2 = _interopRequireDefault(_propTypes);
  1361. function _interopRequireDefault(obj) {
  1362. return obj && obj.__esModule ? obj : {
  1363. "default": obj
  1364. };
  1365. }
  1366. function _classCallCheck(instance, Constructor) {
  1367. if (!(instance instanceof Constructor)) {
  1368. throw new TypeError("Cannot call a class as a function");
  1369. }
  1370. }
  1371. function _possibleConstructorReturn(self, call) {
  1372. if (!self) {
  1373. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1374. }
  1375. return call && (_typeof(call) === "object" || typeof call === "function") ? call : self;
  1376. }
  1377. function _inherits(subClass, superClass) {
  1378. if (typeof superClass !== "function" && superClass !== null) {
  1379. throw new TypeError("Super expression must either be null or a function, not " + _typeof(superClass));
  1380. }
  1381. subClass.prototype = Object.create(superClass && superClass.prototype, {
  1382. constructor: {
  1383. value: subClass,
  1384. enumerable: false,
  1385. writable: true,
  1386. configurable: true
  1387. }
  1388. });
  1389. if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
  1390. }
  1391. var ReportChunks = function (_React$Component) {
  1392. _inherits(ReportChunks, _React$Component);
  1393. function ReportChunks() {
  1394. _classCallCheck(this, ReportChunks);
  1395. return _possibleConstructorReturn(this, (ReportChunks.__proto__ || Object.getPrototypeOf(ReportChunks)).apply(this, arguments));
  1396. }
  1397. _createClass(ReportChunks, [{
  1398. key: 'getChildContext',
  1399. value: function getChildContext() {
  1400. return {
  1401. report: this.props.report
  1402. };
  1403. }
  1404. }, {
  1405. key: 'render',
  1406. value: function render() {
  1407. return _react2["default"].Children.only(this.props.children);
  1408. }
  1409. }]);
  1410. return ReportChunks;
  1411. }(_react2["default"].Component);
  1412. ReportChunks.propTypes = {
  1413. report: _propTypes2["default"].func.isRequired
  1414. };
  1415. ReportChunks.childContextTypes = {
  1416. report: _propTypes2["default"].func.isRequired
  1417. };
  1418. exports["default"] = ReportChunks;
  1419. /***/ }),
  1420. /* 31 */
  1421. /***/ (function(module, exports) {
  1422. module.exports = require("vm");
  1423. /***/ }),
  1424. /* 32 */
  1425. /***/ (function(module, exports, __webpack_require__) {
  1426. "use strict";
  1427. Object.defineProperty(exports, "__esModule", {
  1428. value: true
  1429. });
  1430. exports.__handleAfter = exports.__update = undefined;
  1431. var _hoistNonReactStatics = __webpack_require__(14);
  1432. var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics);
  1433. var _index = __webpack_require__(5);
  1434. var _index2 = _interopRequireDefault(_index);
  1435. function _interopRequireDefault(obj) {
  1436. return obj && obj.__esModule ? obj : {
  1437. "default": obj
  1438. };
  1439. }
  1440. var __update = exports.__update = function __update(props, state, isInitialized) {
  1441. var isMount = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1442. var isSync = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1443. var isServer = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
  1444. if (!isInitialized) return state;
  1445. if (!state.error) {
  1446. state.error = null;
  1447. }
  1448. return __handleAfter(props, state, isMount, isSync, isServer);
  1449. };
  1450. /* eslint class-methods-use-this: ["error", { "exceptMethods": ["__handleAfter"] }] */
  1451. var __handleAfter = exports.__handleAfter = function __handleAfter(props, state, isMount, isSync, isServer) {
  1452. var mod = state.mod,
  1453. error = state.error;
  1454. if (mod && !error) {
  1455. (0, _hoistNonReactStatics2["default"])(_index2["default"], mod, {
  1456. preload: true,
  1457. preloadWeak: true
  1458. });
  1459. if (props.onAfter) {
  1460. var onAfter = props.onAfter;
  1461. var info = {
  1462. isMount: isMount,
  1463. isSync: isSync,
  1464. isServer: isServer
  1465. };
  1466. onAfter(info, mod);
  1467. }
  1468. } else if (error && props.onError) {
  1469. props.onError(error);
  1470. }
  1471. return state;
  1472. };
  1473. /***/ }),
  1474. /* 33 */
  1475. /***/ (function(module, exports, __webpack_require__) {
  1476. "use strict";
  1477. var _interopRequireWildcard = __webpack_require__(34);
  1478. var _interopRequireDefault = __webpack_require__(35);
  1479. Object.defineProperty(exports, "__esModule", {
  1480. value: true
  1481. });
  1482. exports["default"] = void 0;
  1483. var _extends2 = _interopRequireDefault(__webpack_require__(36));
  1484. var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(37));
  1485. var React = _interopRequireWildcard(__webpack_require__(0));
  1486. var _useStaticInfo = __webpack_require__(38);
  1487. /* eslint-disable import/no-dynamic-require */
  1488. var OriginalSuspense = React.Suspense;
  1489. function Suspense(_ref) {
  1490. var key = _ref.key,
  1491. children = _ref.children,
  1492. rest = (0, _objectWithoutProperties2["default"])(_ref, ["key", "children"]);
  1493. return typeof document !== 'undefined' ? React.createElement(OriginalSuspense, (0, _extends2["default"])({
  1494. key: key
  1495. }, rest), children) : React.createElement(React.Fragment, {
  1496. key: key
  1497. }, children);
  1498. } // Override the suspense module to be our own
  1499. React.Suspense = Suspense;
  1500. React["default"].Suspense = Suspense;
  1501. var App = __webpack_require__(39)["default"];
  1502. var _default = function _default(staticInfo) {
  1503. return function (props) {
  1504. return React.createElement(_useStaticInfo.staticInfoContext.Provider, {
  1505. value: staticInfo
  1506. }, React.createElement(App, props));
  1507. };
  1508. };
  1509. exports["default"] = _default;
  1510. /***/ }),
  1511. /* 34 */
  1512. /***/ (function(module, exports) {
  1513. module.exports = require("@babel/runtime/helpers/interopRequireWildcard");
  1514. /***/ }),
  1515. /* 35 */
  1516. /***/ (function(module, exports) {
  1517. module.exports = require("@babel/runtime/helpers/interopRequireDefault");
  1518. /***/ }),
  1519. /* 36 */
  1520. /***/ (function(module, exports) {
  1521. module.exports = require("@babel/runtime/helpers/extends");
  1522. /***/ }),
  1523. /* 37 */
  1524. /***/ (function(module, exports) {
  1525. module.exports = require("@babel/runtime/helpers/objectWithoutProperties");
  1526. /***/ }),
  1527. /* 38 */
  1528. /***/ (function(module, exports) {
  1529. module.exports = require("/var/www/strong/node_modules/react-static/lib/browser/hooks/useStaticInfo");
  1530. /***/ }),
  1531. /* 39 */
  1532. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1533. "use strict";
  1534. __webpack_require__.r(__webpack_exports__);
  1535. /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
  1536. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  1537. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
  1538. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  1539. /* harmony import */ var react_hot_loader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21);
  1540. /* harmony import */ var react_hot_loader__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_hot_loader__WEBPACK_IMPORTED_MODULE_2__);
  1541. /* harmony import */ var _App__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8);
  1542. // Your top level component
  1543. // Export your top level component as JSX (for static rendering)
  1544. /* harmony default export */ __webpack_exports__["default"] = (_App__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"]); // Render your app
  1545. if (typeof document !== 'undefined') {
  1546. var target = document.getElementById('root');
  1547. var renderMethod = target.hasChildNodes() ? react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.hydrate : react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render;
  1548. var render = function render(Comp) {
  1549. renderMethod( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_hot_loader__WEBPACK_IMPORTED_MODULE_2__["AppContainer"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Comp, null)), target);
  1550. }; // Render!
  1551. render(_App__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"]); // Hot Module Replacement
  1552. if (module && module.hot) {
  1553. module.hot.accept('./App', function () {
  1554. render(_App__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"]);
  1555. });
  1556. }
  1557. }
  1558. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(40)(module)))
  1559. /***/ }),
  1560. /* 40 */
  1561. /***/ (function(module, exports) {
  1562. module.exports = function (originalModule) {
  1563. if (!originalModule.webpackPolyfill) {
  1564. var module = Object.create(originalModule); // module.parent = undefined by default
  1565. if (!module.children) module.children = [];
  1566. Object.defineProperty(module, "loaded", {
  1567. enumerable: true,
  1568. get: function get() {
  1569. return module.l;
  1570. }
  1571. });
  1572. Object.defineProperty(module, "id", {
  1573. enumerable: true,
  1574. get: function get() {
  1575. return module.i;
  1576. }
  1577. });
  1578. Object.defineProperty(module, "exports", {
  1579. enumerable: true
  1580. });
  1581. module.webpackPolyfill = 1;
  1582. }
  1583. return module;
  1584. };
  1585. /***/ }),
  1586. /* 41 */
  1587. /***/ (function(module, exports, __webpack_require__) {
  1588. exports = module.exports = __webpack_require__(42)(false);
  1589. // Module
  1590. exports.push([module.i, "* {\n scroll-behavior: smooth;\n}\n\nbody {\n font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue',\n Helvetica, Arial, 'Lucida Grande', sans-serif;\n font-weight: 300;\n font-size: 16px;\n margin: 0;\n padding: 0;\n}\n\na {\n text-decoration: none;\n color: #108db8;\n font-weight: bold;\n}\n\nimg {\n max-width: 100%;\n}\n\nnav {\n width: 100%;\n background: #108db8;\n}\n\nnav a {\n color: white;\n padding: 1rem;\n display: inline-block;\n}\n\n.content {\n padding: 1rem;\n}\n", ""]);
  1591. /***/ }),
  1592. /* 42 */
  1593. /***/ (function(module, exports, __webpack_require__) {
  1594. "use strict";
  1595. /*
  1596. MIT License http://www.opensource.org/licenses/mit-license.php
  1597. Author Tobias Koppers @sokra
  1598. */
  1599. // css base code, injected by the css-loader
  1600. module.exports = function (useSourceMap) {
  1601. var list = []; // return the list of modules as css string
  1602. list.toString = function toString() {
  1603. return this.map(function (item) {
  1604. var content = cssWithMappingToString(item, useSourceMap);
  1605. if (item[2]) {
  1606. return '@media ' + item[2] + '{' + content + '}';
  1607. } else {
  1608. return content;
  1609. }
  1610. }).join('');
  1611. }; // import a list of modules into the list
  1612. list.i = function (modules, mediaQuery) {
  1613. if (typeof modules === 'string') {
  1614. modules = [[null, modules, '']];
  1615. }
  1616. var alreadyImportedModules = {};
  1617. for (var i = 0; i < this.length; i++) {
  1618. var id = this[i][0];
  1619. if (id != null) {
  1620. alreadyImportedModules[id] = true;
  1621. }
  1622. }
  1623. for (i = 0; i < modules.length; i++) {
  1624. var item = modules[i]; // skip already imported module
  1625. // this implementation is not 100% perfect for weird media query combinations
  1626. // when a module is imported multiple times with different media queries.
  1627. // I hope this will never occur (Hey this way we have smaller bundles)
  1628. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  1629. if (mediaQuery && !item[2]) {
  1630. item[2] = mediaQuery;
  1631. } else if (mediaQuery) {
  1632. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  1633. }
  1634. list.push(item);
  1635. }
  1636. }
  1637. };
  1638. return list;
  1639. };
  1640. function cssWithMappingToString(item, useSourceMap) {
  1641. var content = item[1] || '';
  1642. var cssMapping = item[3];
  1643. if (!cssMapping) {
  1644. return content;
  1645. }
  1646. if (useSourceMap && typeof btoa === 'function') {
  1647. var sourceMapping = toComment(cssMapping);
  1648. var sourceURLs = cssMapping.sources.map(function (source) {
  1649. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  1650. });
  1651. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1652. }
  1653. return [content].join('\n');
  1654. } // Adapted from convert-source-map (MIT)
  1655. function toComment(sourceMap) {
  1656. // eslint-disable-next-line no-undef
  1657. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1658. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1659. return '/*# ' + data + ' */';
  1660. }
  1661. /***/ })
  1662. /******/ ]);
  1663. });