2 lines
24 KiB
JavaScript
2 lines
24 KiB
JavaScript
![]() |
webpackJsonp([0xd2a57dc1d883],{278:function(n,e,t){"use strict";function o(n,e,t){var o=u.map(function(t){if(t.plugin[n]){var o=t.plugin[n](e,t.options);return o}});return o=o.filter(function(n){return"undefined"!=typeof n}),o.length>0?o:t?[t]:[]}function r(n,e,t){return u.reduce(function(t,o){return o.plugin[n]?t.then(function(){return o.plugin[n](e,o.options)}):t},Promise.resolve())}e.__esModule=!0,e.apiRunner=o,e.apiRunnerAsync=r;var u=[{plugin:t(500),options:{plugins:[]}},{plugin:t(499),options:{plugins:[],trackingId:"UA-44373548-24",head:!1,anonymize:!0}}]},359:function(n,e,t){"use strict";e.components={"component---src-templates-without-playground-js":t(477),"component---src-templates-with-playground-js":t(476),"component---src-pages-404-js":t(472),"component---src-pages-docs-index-js":t(473),"component---src-pages-index-js":t(474),"component---src-pages-playground-index-js":t(475)},e.json={"contributing-opening-a-pull-request.json":t(480),"contributing-writing-documentation.json":t(482),"contributing-testing.json":t(481),"getting-started-standalone.json":t(496),"docs-aspect-ratio.json":t(487),"docs-align-content.json":t(485),"docs-align-items.json":t(486),"docs-absolute-relative-layout.json":t(484),"docs-flex-direction.json":t(489),"docs-justify-content.json":t(491),"docs-flex-wrap.json":t(490),"docs-flex.json":t(488),"docs-layout-direction.json":t(492),"docs-width-height.json":t(495),"docs-margins-paddings-borders.json":t(493),"docs-min-max.json":t(494),"404.json":t(478),"docs.json":t(483),"index.json":t(497),"playground.json":t(498),"404-html.json":t(479)},e.layouts={}},360:function(n,e,t){"use strict";function o(n){return n&&n.__esModule?n:{default:n}}function r(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function u(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}function a(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}e.__esModule=!0;var i=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},c=t(1),s=o(c),l=t(3),f=o(l),d=t(314),p=o(d),g=t(262),h=o(g),m=t(278),y=t(554),j=o(y),v=function(n){var e=n.children;return s.default.createElement("div",null,e())},R=function(n){function e(t){r(this,e);var o=u(this,n.call(this)),a=t.location;return p.default.getPage(a.pathname)||(a=i({},a,{pathname:"/404.html"})),o.state={location:a,pageResources:p.default.getResourcesForPathname(a.pathname)},o}return a(e,n),e.prototype.componentWillReceiveProps=function(n){var e=this;if(this.state.location.pathname!==n.location.pathname){var t=p.default.getResourcesForPathname(n.location.pathname);if(t)this.setState({location:n.location,pageResources:t});else{var o=n.location;p.default.getPage(o.pathname)||(o=i({},o,{pathname:"/404.html"})),p.default.getResourcesForPathname(o.pathname,function(n){e.setState({location:o,pageResources:n})})}}},e.prototype.componentDidMount=function(){var n=this;h.default.on("onPostLoadPageResources",function(e){p.default.getPage(n.state.location.pathname)&&e.page.path===p.default.getPage(n.state.location.pathname).path&&n.setState({pageResources:e.pageResources})})},e.prototype.shouldComponentUpdate=function(n,e){return!e.pageResources||(!(this.state.pageResources||!e.pageResources)||(this.state.pageResources.component!==e.pageResources.component||(this.state.pageResources.json!==e.pageResources.json||(!(this.state.location.key===e.location.key||!e.pageResources.page||!e.pageResources.page.matchPath&&!e.pageResources.page.path)||(0,j.default)(this,n,e)))))},e.prototype.render=function(){var n=(0,m.apiRunner)("replaceComponentRenderer",{props:i({},this.props,{pageResources:this.state.pageResources}),loader:
|
||
|
//# sourceMappingURL=app-6604b0e11666fcdfcf5c.js.map
|