Files
yoga/docs/app-cee525c56d69d4f858de.js

2 lines
24 KiB
JavaScript
Raw Normal View History

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(506),options:{plugins:[]}},{plugin:t(505),options:{plugins:[],trackingId:"UA-44373548-24",head:!1,anonymize:!0}}]},361:function(n,e,t){"use strict";e.components={"component---src-templates-without-playground-js":t(483),"component---src-templates-with-playground-js":t(482),"component---src-pages-404-js":t(478),"component---src-pages-docs-index-js":t(479),"component---src-pages-index-js":t(480),"component---src-pages-playground-index-js":t(481)},e.json={"getting-started-standalone.json":t(502),"contributing-opening-a-pull-request.json":t(486),"contributing-writing-documentation.json":t(488),"contributing-testing.json":t(487),"docs-absolute-relative-layout.json":t(490),"docs-align-content.json":t(491),"docs-align-items.json":t(492),"docs-aspect-ratio.json":t(493),"docs-flex-direction.json":t(495),"docs-flex.json":t(494),"docs-flex-wrap.json":t(496),"docs-justify-content.json":t(497),"docs-margins-paddings-borders.json":t(499),"docs-min-max.json":t(500),"docs-width-height.json":t(501),"docs-layout-direction.json":t(498),"404.json":t(484),"docs.json":t(489),"index.json":t(503),"playground.json":t(504),"404-html.json":t(485)},e.layouts={}},362: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(563),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-cee525c56d69d4f858de.js.map