Files
yoga/docs/app-5f2131344e6cba3b9702.js
Daniel Büchele e024943c4b bugfixes
Summary:
- adds favicon
- adds page titles
- fixes bug in react native code gen

allow-large-files

Reviewed By: emilsjolander

Differential Revision: D7013492

fbshipit-source-id: d29a56a7caddf0da4fb19a0ba443c6906ccfff56
2018-02-19 02:38:16 -08:00

2 lines
18 KiB
JavaScript

webpackJsonp([0xd2a57dc1d883],{258:function(e,n,t){"use strict";function o(e,n,t){var o=a.map(function(t){if(t.plugin[e]){var o=t.plugin[e](n,t.options);return o}});return o=o.filter(function(e){return"undefined"!=typeof e}),o.length>0?o:t?[t]:[]}function r(e,n,t){return a.reduce(function(t,o){return o.plugin[e]?t.then(function(){return o.plugin[e](n,o.options)}):t},Promise.resolve())}n.__esModule=!0,n.apiRunner=o,n.apiRunnerAsync=r;var a=[{plugin:t(461),options:{plugins:[]}}]},337:function(e,n,t){"use strict";n.components={"component---src-templates-with-playground-js":t(452),"component---src-templates-without-playground-js":t(453),"component---src-pages-404-js":t(448),"component---src-pages-docs-index-js":t(449),"component---src-pages-index-js":t(450),"component---src-pages-playground-js":t(451)},n.json={"docs-flex-direction.json":t(457),"getting-started-litho.json":t(458),"404.json":t(454),"docs.json":t(456),"index.json":t(459),"playground.json":t(460),"404-html.json":t(455)},n.layouts={}},338:function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function u(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}n.__esModule=!0;var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c=t(1),s=o(c),l=t(2),f=o(l),d=t(293),p=o(d),h=t(242),g=o(h),m=t(258),v=t(501),R=o(v),y=function(e){var n=e.children;return s.default.createElement("div",null,n())},_=function(e){function n(t){r(this,n);var o=a(this,e.call(this)),u=t.location;return p.default.getPage(u.pathname)||(u=i({},u,{pathname:"/404.html"})),o.state={location:u,pageResources:p.default.getResourcesForPathname(u.pathname)},o}return u(n,e),n.prototype.componentWillReceiveProps=function(e){var n=this;if(this.state.location.pathname!==e.location.pathname){var t=p.default.getResourcesForPathname(e.location.pathname);if(t)this.setState({location:e.location,pageResources:t});else{var o=e.location;p.default.getPage(o.pathname)||(o=i({},o,{pathname:"/404.html"})),p.default.getResourcesForPathname(o.pathname,function(e){n.setState({location:o,pageResources:e})})}}},n.prototype.componentDidMount=function(){var e=this;g.default.on("onPostLoadPageResources",function(n){p.default.getPage(e.state.location.pathname)&&n.page.path===p.default.getPage(e.state.location.pathname).path&&e.setState({pageResources:n.pageResources})})},n.prototype.shouldComponentUpdate=function(e,n){return!n.pageResources||(!(this.state.pageResources||!n.pageResources)||(this.state.pageResources.component!==n.pageResources.component||(this.state.pageResources.json!==n.pageResources.json||(!(this.state.location.key===n.location.key||!n.pageResources.page||!n.pageResources.page.matchPath&&!n.pageResources.page.path)||(0,R.default)(this,e,n)))))},n.prototype.render=function(){var e=(0,m.apiRunner)("replaceComponentRenderer",{props:i({},this.props,{pageResources:this.state.pageResources}),loader:d.publicLoader}),n=e[0];return this.props.page?this.state.pageResources?n||(0,c.createElement)(this.state.pageResources.component,i({key:this.props.location.pathname},this.props,this.state.pageResources.json)):null:this.props.layout?n||(0,c.createElement)(this.state.pageResources&&this.state.pageResources.layout?this.state.pageResources.layout:y,i({key:this.state.pageResources&&this.state.pageResources.layout?this.state.pageResources.layout:"DefaultLayout"},this.props)):null},n}(s.default.Component);_.propTypes={page:f.default.bool,layout:f.default.bool,location:f.default.object},n.default=_,e.exports=n.default},242:function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=t(478),a=o(r),u=(0,a.default)();e.exports=u},339:function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=t(257),a=t(294),u=o(a),i={};e.exports=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(t){var o=decodeURIComponent(t),a=(0,u.default)(o,n);if(a.split("#").length>1&&(a=a.split("#").slice(0,-1).join("")),a.split("?").length>1&&(a=a.split("?").slice(0,-1).join("")),i[a])return i[a];var c=void 0;return e.some(function(e){if(e.matchPath){if((0,r.matchPath)(a,{path:e.path})||(0,r.matchPath)(a,{path:e.matchPath}))return c=e,i[a]=e,!0}else{if((0,r.matchPath)(a,{path:e.path,exact:!0}))return c=e,i[a]=e,!0;if((0,r.matchPath)(a,{path:e.path+"index.html"}))return c=e,i[a]=e,!0}return!1}),c}}},340:function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=t(286),a=o(r),u=t(258),i=(0,u.apiRunner)("replaceHistory"),c=i[0],s=c||(0,a.default)();e.exports=s},455:function(e,n,t){t(27),e.exports=function(e){return t.e(0xa2868bfb69fc,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(469)})})}},454:function(e,n,t){t(27),e.exports=function(e){return t.e(0xe70826b53c04,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(470)})})}},457:function(e,n,t){t(27),e.exports=function(e){return t.e(0x8d60b6bd8547,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(471)})})}},456:function(e,n,t){t(27),e.exports=function(e){return t.e(0x7733ec7aff49,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(472)})})}},458:function(e,n,t){t(27),e.exports=function(e){return t.e(0xc78ae35cdc07,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(473)})})}},459:function(e,n,t){t(27),e.exports=function(e){return t.e(0x81b8806e4260,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(474)})})}},460:function(e,n,t){t(27),e.exports=function(e){return t.e(0xc06234285a21,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(475)})})}},293:function(e,n,t){(function(e){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.publicLoader=void 0;var r=t(1),a=(o(r),t(339)),u=o(a),i=t(242),c=o(i),s=t(294),l=o(s),f=void 0,d={},p={},h={},g={},m={},v=[],R=[],y={},_="",P=[],w={},j=function(e){return e&&e.default||e},x=void 0,b=!0,E=[],N={},k={},C=5;x=t(341)({getNextQueuedResources:function(){return P.slice(-1)[0]},createResourceDownload:function(e){S(e,function(){P=P.filter(function(n){return n!==e}),x.onResourcedFinished(e)})}}),c.default.on("onPreLoadPageResources",function(e){x.onPreLoadPageResources(e)}),c.default.on("onPostLoadPageResources",function(e){x.onPostLoadPageResources(e)});var O=function(e,n){return w[e]>w[n]?1:w[e]<w[n]?-1:0},L=function(e,n){return y[e]>y[n]?1:y[e]<y[n]?-1:0},S=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(g[n])e.nextTick(function(){t(null,g[n])});else{var o=void 0;o="component---"===n.slice(0,12)?p.components[n]:"layout---"===n.slice(0,9)?p.layouts[n]:p.json[n],o(function(e,o){g[n]=o,E.push({resource:n,succeeded:!e}),k[n]||(k[n]=e),E=E.slice(-C),t(e,o)})}},A=function(n,t){m[n]?e.nextTick(function(){t(null,m[n])}):k[n]?e.nextTick(function(){t(k[n])}):S(n,function(e,o){if(e)t(e);else{var r=j(o());m[n]=r,t(e,r)}})},D=function(){var e=navigator.onLine;if("boolean"==typeof e)return e;var n=E.find(function(e){return e.succeeded});return!!n},T=function(e,n){console.log(n),N[e]||(N[e]=n),D()&&window.location.pathname.replace(/\/$/g,"")!==e.replace(/\/$/g,"")&&(window.location.pathname=e)},M=1,U={empty:function(){R=[],y={},w={},P=[],v=[],_=""},addPagesArray:function(e){v=e,f=(0,u.default)(e,_)},addDevRequires:function(e){d=e},addProdRequires:function(e){p=e},dequeue:function(){return R.pop()},enqueue:function(e){var n=(0,l.default)(e,_);if(!v.some(function(e){return e.path===n}))return!1;var t=1/M;M+=1,y[n]?y[n]+=1:y[n]=1,U.has(n)||R.unshift(n),R.sort(L);var o=f(n);return o.jsonName&&(w[o.jsonName]?w[o.jsonName]+=1+t:w[o.jsonName]=1+t,P.indexOf(o.jsonName)!==-1||g[o.jsonName]||P.unshift(o.jsonName)),o.componentChunkName&&(w[o.componentChunkName]?w[o.componentChunkName]+=1+t:w[o.componentChunkName]=1+t,P.indexOf(o.componentChunkName)!==-1||g[o.jsonName]||P.unshift(o.componentChunkName)),P.sort(O),x.onNewResourcesAdded(),!0},getResources:function(){return{resourcesArray:P,resourcesCount:w}},getPages:function(){return{pathArray:R,pathCount:y}},getPage:function(e){return f(e)},has:function(e){return R.some(function(n){return n===e})},getResourcesForPathname:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};b&&navigator&&navigator.serviceWorker&&navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&(f(n)||navigator.serviceWorker.getRegistrations().then(function(e){if(e.length){for(var n=e,t=Array.isArray(n),o=0,n=t?n:n[Symbol.iterator]();;){var r;if(t){if(o>=n.length)break;r=n[o++]}else{if(o=n.next(),o.done)break;r=o.value}var a=r;a.unregister()}window.location.reload()}})),b=!1;if(N[n])return T(n,'Previously detected load failure for "'+n+'"'),t();var o=f(n);if(!o)return T(n,"A page wasn't found for \""+n+'"'),t();if(n=o.path,h[n])return e.nextTick(function(){t(h[n]),c.default.emit("onPostLoadPageResources",{page:o,pageResources:h[n]})}),h[n];c.default.emit("onPreLoadPageResources",{path:n});var r=void 0,a=void 0,u=void 0,i=function(){if(r&&a&&(!o.layoutComponentChunkName||u)){h[n]={component:r,json:a,layout:u,page:o};var e={component:r,json:a,layout:u,page:o};t(e),c.default.emit("onPostLoadPageResources",{page:o,pageResources:e})}};return A(o.componentChunkName,function(e,n){e&&T(o.path,"Loading the component for "+o.path+" failed"),r=n,i()}),A(o.jsonName,function(e,n){e&&T(o.path,"Loading the JSON for "+o.path+" failed"),a=n,i()}),void(o.layoutComponentChunkName&&A(o.layout,function(e,n){e&&T(o.path,"Loading the Layout for "+o.path+" failed"),u=n,i()}))},peek:function(e){return R.slice(-1)[0]},length:function(){return R.length},indexOf:function(e){return R.length-R.indexOf(e)-1}};n.publicLoader={getResourcesForPathname:U.getResourcesForPathname};n.default=U}).call(n,t(256))},476:function(e,n){e.exports=[{componentChunkName:"component---src-templates-with-playground-js",layout:null,jsonName:"docs-flex-direction.json",path:"/docs/flexDirection"},{componentChunkName:"component---src-templates-without-playground-js",layout:null,jsonName:"getting-started-litho.json",path:"/getting-started/litho"},{componentChunkName:"component---src-pages-404-js",layout:null,jsonName:"404.json",path:"/404/"},{componentChunkName:"component---src-pages-docs-index-js",layout:null,jsonName:"docs.json",path:"/docs/"},{componentChunkName:"component---src-pages-index-js",layout:null,jsonName:"index.json",path:"/"},{componentChunkName:"component---src-pages-playground-js",layout:null,jsonName:"playground.json",path:"/playground/"},{componentChunkName:"component---src-pages-404-js",layout:null,jsonName:"404-html.json",path:"/404.html"}]},341:function(e,n){"use strict";e.exports=function(e){var n=e.getNextQueuedResources,t=e.createResourceDownload,o=[],r=[],a=function(){var e=n();e&&(r.push(e),t(e))},u=function(e){switch(e.type){case"RESOURCE_FINISHED":r=r.filter(function(n){return n!==e.payload});break;case"ON_PRE_LOAD_PAGE_RESOURCES":o.push(e.payload.path);break;case"ON_POST_LOAD_PAGE_RESOURCES":o=o.filter(function(n){return n!==e.payload.page.path});break;case"ON_NEW_RESOURCES_ADDED":}setTimeout(function(){0===r.length&&0===o.length&&a()},0)};return{onResourcedFinished:function(e){u({type:"RESOURCE_FINISHED",payload:e})},onPreLoadPageResources:function(e){u({type:"ON_PRE_LOAD_PAGE_RESOURCES",payload:e})},onPostLoadPageResources:function(e){u({type:"ON_POST_LOAD_PAGE_RESOURCES",payload:e})},onNewResourcesAdded:function(){u({type:"ON_NEW_RESOURCES_ADDED"})},getState:function(){return{pagesLoading:o,resourcesDownloading:r}},empty:function(){o=[],r=[]}}}},0:function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},a=t(258),u=t(1),i=o(u),c=t(10),s=o(c),l=t(257),f=t(467),d=t(429),p=o(d),h=t(288),g=t(340),m=o(g),v=t(242),R=o(v),y=t(476),_=o(y),P=t(477),w=o(P),j=t(338),x=o(j),b=t(337),E=o(b),N=t(293),k=o(N);t(422),window.___history=m.default,window.___emitter=R.default,k.default.addPagesArray(_.default),k.default.addProdRequires(E.default),window.asyncRequires=E.default,window.___loader=k.default,window.matchPath=l.matchPath;var C=w.default.reduce(function(e,n){return e[n.fromPath]=n,e},{}),O=function(e){var n=C[e];return null!=n&&(m.default.replace(n.toPath),!0)};O(window.location.pathname),(0,a.apiRunnerAsync)("onClientEntry").then(function(){function e(e){window.___history&&c!==!1||(window.___history=e,c=!0,e.listen(function(e,n){O(e.pathname)||setTimeout(function(){(0,a.apiRunner)("onRouteUpdate",{location:e,action:n})},0)}))}function n(e,n){var t=n.location.pathname,o=(0,a.apiRunner)("shouldUpdateScroll",{prevRouterProps:e,pathname:t});if(o.length>0)return o[0];if(e){var r=e.location.pathname;if(r===t)return!1}return!0}(0,a.apiRunner)("registerServiceWorker").length>0&&t(342);var o=function(e){function n(e){e.page.path===k.default.getPage(o).path&&(R.default.off("onPostLoadPageResources",n),clearTimeout(a),window.___history.push(t))}var t=(0,h.createLocation)(e,null,null,m.default.location),o=t.pathname,r=C[o];if(r&&(o=r.toPath),window.location.pathname!==o){var a=setTimeout(function(){R.default.off("onPostLoadPageResources",n),R.default.emit("onDelayedLoadPageResources",{pathname:o}),window.___history.push(t)},1e3);k.default.getResourcesForPathname(o)?(clearTimeout(a),window.___history.push(t)):R.default.on("onPostLoadPageResources",n)}};window.___navigateTo=o,(0,a.apiRunner)("onRouteUpdate",{location:m.default.location,action:m.default.action});var c=!1,d=(0,a.apiRunner)("replaceRouterComponent",{history:m.default})[0],g=function(e){var n=e.children;return i.default.createElement(l.Router,{history:m.default},n)},v=(0,l.withRouter)(x.default);k.default.getResourcesForPathname(window.location.pathname,function(){var t=function(){return(0,u.createElement)(d?d:g,null,(0,u.createElement)(f.ScrollContext,{shouldUpdateScroll:n},(0,u.createElement)(v,{layout:!0,children:function(n){return(0,u.createElement)(l.Route,{render:function(t){e(t.history);var o=n?n:t;return k.default.getPage(o.location.pathname)?(0,u.createElement)(x.default,r({page:!0},o)):(0,u.createElement)(x.default,{page:!0,location:{pathname:"/404.html"}})}})}})))},o=(0,a.apiRunner)("wrapRootComponent",{Root:t},t)[0];(0,p.default)(function(){return s.default.render(i.default.createElement(o,null),"undefined"!=typeof window?document.getElementById("___gatsby"):void 0,function(){(0,a.apiRunner)("onInitialClientRender")})})})})},477:function(e,n){e.exports=[]},342:function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=t(242),a=o(r),u="/";"serviceWorker"in navigator&&navigator.serviceWorker.register(u+"sw.js").then(function(e){e.addEventListener("updatefound",function(){var n=e.installing;console.log("installingWorker",n),n.addEventListener("statechange",function(){switch(n.state){case"installed":navigator.serviceWorker.controller?window.location.reload():(console.log("Content is now available offline!"),a.default.emit("sw:installed"));break;case"redundant":console.error("The installing service worker became redundant.")}})})}).catch(function(e){console.error("Error during service worker registration:",e)})},294:function(e,n){"use strict";n.__esModule=!0,n.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.substr(0,n.length)===n?e.slice(n.length):e},e.exports=n.default},429:function(e,n,t){!function(n,t){e.exports=t()}("domready",function(){var e,n=[],t=document,o=t.documentElement.doScroll,r="DOMContentLoaded",a=(o?/^loaded|^c/:/^loaded|^i|^c/).test(t.readyState);return a||t.addEventListener(r,e=function(){for(t.removeEventListener(r,e),a=1;e=n.shift();)e()}),function(e){a?setTimeout(e,0):n.push(e)}})},27:function(e,n,t){"use strict";function o(){function e(e){var n=o.lastChild;return"SCRIPT"!==n.tagName?void("undefined"!=typeof console&&console.warn&&console.warn("Script is not a script",n)):void(n.onload=n.onerror=function(){n.onload=n.onerror=null,setTimeout(e,0)})}var n,o=document.querySelector("head"),r=t.e,a=t.s;t.e=function(o,u){var i=!1,c=!0,s=function(e){u&&(u(t,e),u=null)};return!a&&n&&n[o]?void s(!0):(r(o,function(){i||(i=!0,c?setTimeout(function(){s()}):s())}),void(i||(c=!1,e(function(){i||(i=!0,a?a[o]=void 0:(n||(n={}),n[o]=!0),s(!0))}))))}}o()},461:function(e,n,t){"use strict";t(358),t(359)},478:function(e,n){function t(e){return e=e||Object.create(null),{on:function(n,t){(e[n]||(e[n]=[])).push(t)},off:function(n,t){e[n]&&e[n].splice(e[n].indexOf(t)>>>0,1)},emit:function(n,t){(e[n]||[]).slice().map(function(e){e(t)}),(e["*"]||[]).slice().map(function(e){e(n,t)})}}}e.exports=t},501:function(e,n){"use strict";function t(e,n){for(var t in e)if(!(t in n))return!0;for(var o in n)if(e[o]!==n[o])return!0;return!1}n.__esModule=!0,n.default=function(e,n,o){return t(e.props,n)||t(e.state,o)},e.exports=n.default},448:function(e,n,t){t(27),e.exports=function(e){return t.e(0x9427c64ab85d,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(346)})})}},449:function(e,n,t){t(27),e.exports=function(e){return t.e(0xfd0f0d2dff03,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(347)})})}},450:function(e,n,t){t(27),e.exports=function(e){return t.e(35783957827783,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(348)})})}},451:function(e,n,t){t(27),e.exports=function(e){return t.e(0xf7ba4fa2ba4c,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(349)})})}},452:function(e,n,t){t(27),e.exports=function(e){return t.e(0xb9e474dc28da,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(350)})})}},453:function(e,n,t){t(27),e.exports=function(e){return t.e(72572670756384,function(n,o){o?(console.log("bundle loading error",o),e(!0)):e(null,function(){return t(351)})})}}});
//# sourceMappingURL=app-5f2131344e6cba3b9702.js.map