summaryrefslogtreecommitdiff
path: root/web-build/static/js/app.e8143965.chunk.js
blob: 76c7cd8dd1dddf47efc72e1a09d79f608b2b97b6 (about) (plain)
1
2
(this.webpackJsonp=this.webpackJsonp||[]).push([[0],{221:function(e){e.exports=JSON.parse('{"common":{"ok":"OK!","cancel":"Cancel","back":"Back"},"errors":{"invalidEmail":"Invalid email address."},"welcomeScreen":{"poweredBy":"POWERED BY IGNITE","readyForLaunch":"Ready for launch.","continue":"CONTINUE"},"demoScreen":{"howTo":"HOW TO","title":"What\u2019s In This Stack?","tagLine":"Congratulations, you\u2019ve got a very advanced React Native app template here.  Take advantage of this boilerplate!","reactotron":"Demo Reactotron","demoList":"Demo List","androidReactotronHint":"If this doesn\'t work, ensure the Reactotron desktop app is running, run adb reverse tcp:9090 tcp:9090 from your terminal, and reload the app.","iosReactotronHint":"If this doesn\'t work, ensure the Reactotron desktop app is running and reload app.","macosReactotronHint":"If this doesn\'t work, ensure the Reactotron desktop app is running and reload app.","webReactotronHint":"If this doesn\'t work, ensure the Reactotron desktop app is running and reload app.","windowsReactotronHint":"If this doesn\'t work, ensure the Reactotron desktop app is running and reload app."},"demoListScreen":{"title":"Demo List"},"storybook":{"placeholder":"Placeholder","field":"Field"}}')},222:function(e){e.exports=JSON.parse('{"common":{"ok":"OK \ud83c\uddef\ud83c\uddf5","cancel":"Cancel \ud83c\uddef\ud83c\uddf5","back":"Back \ud83c\uddef\ud83c\uddf5"}}')},264:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"loadString",(function(){return v})),n.d(r,"saveString",(function(){return O})),n.d(r,"load",(function(){return E})),n.d(r,"save",(function(){return k})),n.d(r,"remove",(function(){return x})),n.d(r,"clear",(function(){return w}));var a=n(8),o=n.n(a),i=n(7),c=n.n(i),l=n(266),s=n(97),u=n.n(s),d=n(221),p=n(222);function f(e,t){return e?u.a.t(e,t):null}u.a.fallbacks=!0,u.a.translations={en:d,ja:p},u.a.locale=l.a||"en",n(180).a.ignoreLogs(["Require cycle:"]);var h=n(0),g=n.n(h),m=n(476),b=n(473),y=n(67);function v(e){return c.a.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.a.awrap(y.a.getItem(e));case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",null);case 9:case"end":return t.stop()}}),null,null,[[0,6]],Promise)}function O(e,t){return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,c.a.awrap(y.a.setItem(e,t));case 3:return n.abrupt("return",!0);case 6:return n.prev=6,n.t0=n.catch(0),n.abrupt("return",!1);case 9:case"end":return n.stop()}}),null,null,[[0,6]],Promise)}function E(e){var t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,c.a.awrap(y.a.getItem(e));case 3:return t=n.sent,n.abrupt("return",JSON.parse(t));case 7:return n.prev=7,n.t0=n.catch(0),n.abrupt("return",null);case 10:case"end":return n.stop()}}),null,null,[[0,7]],Promise)}function k(e,t){return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,c.a.awrap(y.a.setItem(e,JSON.stringify(t)));case 3:return n.abrupt("return",!0);case 6:return n.prev=6,n.t0=n.catch(0),n.abrupt("return",!1);case 9:case"end":return n.stop()}}),null,null,[[0,6]],Promise)}function x(e){return c.a.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c.a.awrap(y.a.removeItem(e));case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),null,null,[[0,5]],Promise)}function w(){return c.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.a.awrap(y.a.clear());case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),null,null,[[0,5]],Promise)}var S=n(474),j=n(6),A=n.n(j),C=n(3),P=n(122),D=n(30),I=n(59),R=n(19),V=n.n(R),B=n(17),L=n.n(B),z=n(57),T={black:"#1d1d1d",white:"#ffffff",offWhite:"#e6e6e6",orange:"#FBA928",orangeDarker:"#EB9918",lightGrey:"#939AA4",lighterGrey:"#CDD4DA",angry:"#dd3333",deepPurple:"#5D2555"},N={palette:T,transparent:"rgba(0, 0, 0, 0)",background:T.white,primary:T.orange,primaryDarker:T.orangeDarker,line:T.offWhite,text:T.white,dim:T.lightGrey,error:T.angry,storybookDarkBg:T.black,storybookTextColor:T.black},H=[0,4,8,12,16,24,32,48,64],F=n(9),W={primary:F.a.select({ios:"Helvetica",android:"normal"}),secondary:F.a.select({ios:"Arial",android:"sans-serif"}),code:F.a.select({ios:"Courier",android:"monospace"})};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G={fontFamily:W.primary,color:N.text,fontSize:15},K={default:G,bold:U(U({},G),{},{fontWeight:"bold"}),header:U(U({},G),{},{fontSize:24,fontWeight:"bold"}),fieldLabel:U(U({},G),{},{fontSize:13,color:N.dim}),secondary:U(U({},G),{},{fontSize:9,color:N.dim})},Q=["preset","tx","txOptions","text","children","style"];function Y(e){var t=e.preset,n=void 0===t?"default":t,r=e.tx,a=e.txOptions,o=e.text,i=e.children,c=e.style,l=L()(e,Q),s=r&&f(r,a)||o||i,u=[K[n]||K.default,c];return h.createElement(z.a,V()({},l,{style:u}),s)}var J=n(38);function X(e){var t=Object(h.useState)({width:0,height:0}),n=o()(t,2),r=n[0],a=n[1];return Object(h.useLayoutEffect)((function(){var t;if(null!=(t=e.source)&&t.uri)J.a.getSize(e.source.uri,(function(e,t){a({width:e,height:t})}));else if("web"===F.a.OS)J.a.getSize(e.source,(function(e,t){a({width:e,height:t})}));else{var n=J.a.resolveAssetSource(e.source),r=n.width,o=n.height;a({width:r,height:o})}}),[]),g.a.createElement(J.a,V()({},e,{style:[r,e.style]}))}var _={back:n(308),bullet:n(309)},Z={resizeMode:"contain"};function q(e){var t=e.style,n=e.icon,r=e.containerStyle;return h.createElement(C.a,{style:r},h.createElement(X,{style:[Z,t],source:_[n]}))}var $={flexDirection:"row",marginTop:H[4],paddingBottom:H[4],borderBottomWidth:1,borderBottomColor:"#3A3048"},ee={marginRight:H[4]-1,marginTop:H[2]},te={width:8,height:8},ne={flex:1,fontFamily:W.primary,color:"#BAB6C8",fontSize:15,lineHeight:22};function re(e){return h.createElement(C.a,{style:$},h.createElement(q,{icon:"bullet",containerStyle:ee,style:te}),h.createElement(Y,{style:ne,text:e.text}))}var ae=n(48);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ce={paddingVertical:H[2],paddingHorizontal:H[2],borderRadius:4,justifyContent:"center",alignItems:"center"},le={paddingHorizontal:H[3]},se={primary:ie(ie({},ce),{},{backgroundColor:N.palette.orange}),link:ie(ie({},ce),{},{paddingHorizontal:0,paddingVertical:0,alignItems:"flex-start"})},ue={primary:ie(ie({},le),{},{fontSize:9,color:N.palette.white}),link:ie(ie({},le),{},{color:N.text,paddingHorizontal:0,paddingVertical:0})},de=["preset","tx","text","style","textStyle","children"];function pe(e){var t=e.preset,n=void 0===t?"primary":t,r=e.tx,a=e.text,o=e.style,i=e.textStyle,c=e.children,l=L()(e,de),s=[se[n]||se.primary,o],u=[ue[n]||ue.primary,i],d=c||h.createElement(Y,{tx:r,text:a,style:u});return h.createElement(ae.a,V()({style:s},l),d)}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge={width:16,height:16};he(he({},ge),{},{marginTop:2,justifyContent:"center",alignItems:"center",borderWidth:1,borderColor:N.primaryDarker,borderRadius:1});function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye={borderWidth:1,borderColor:N.line,padding:H[2]};be(be({},ye),{},{borderTopLeftRadius:8,borderTopRightRadius:8,borderBottomWidth:0}),be(be({},ye),{},{borderBottomWidth:0}),be(be({},ye),{},{borderBottomLeftRadius:8,borderBottomRightRadius:8}),be(be({},ye),{},{borderRadius:8}),be({},ye),be(be({},ye),{},{borderColor:N.transparent});var ve={flexDirection:"row",paddingHorizontal:H[4],alignItems:"center",paddingTop:H[5],paddingBottom:H[5],justifyContent:"flex-start"},Oe={textAlign:"center"},Ee={flex:1,justifyContent:"center"},ke={width:32},xe={width:32};function we(e){var t=e.onLeftPress,n=e.onRightPress,r=e.rightIcon,a=e.leftIcon,o=e.headerText,i=e.headerTx,c=e.style,l=e.titleStyle,s=o||i&&f(i)||"";return g.a.createElement(C.a,{style:[ve,c]},a?g.a.createElement(pe,{preset:"link",onPress:t},g.a.createElement(q,{icon:a})):g.a.createElement(C.a,{style:ke}),g.a.createElement(C.a,{style:Ee},g.a.createElement(Y,{style:[Oe,l],text:s})),r?g.a.createElement(pe,{preset:"link",onPress:n},g.a.createElement(q,{icon:r})):g.a.createElement(C.a,{style:xe}))}var Se=n(101),je=n(52),Ae=n(78),Ce={none:0},Pe={fixed:{outer:{backgroundColor:N.background,flex:1,height:"100%"},inner:{justifyContent:"flex-start",alignItems:"stretch",height:"100%",width:"100%"}},scroll:{outer:{backgroundColor:N.background,flex:1,height:"100%"},inner:{justifyContent:"flex-start",alignItems:"stretch"}}};var De="ios"===F.a.OS;function Ie(e){var t=Object(m.c)(),n=Pe.fixed,r=e.style||{},a=e.backgroundColor?{backgroundColor:e.backgroundColor}:{},o={paddingTop:e.unsafe?0:t.top};return h.createElement(Se.a,{style:[n.outer,a],behavior:De?"padding":void 0,keyboardVerticalOffset:Ce[e.keyboardOffset||"none"]},h.createElement(Ae.a,{barStyle:e.statusBar||"light-content"}),h.createElement(C.a,{style:[n.inner,r,o]},e.children))}function Re(e){var t=Object(m.c)(),n=Pe.scroll,r=e.style||{},a=e.backgroundColor?{backgroundColor:e.backgroundColor}:{},o={paddingTop:e.unsafe?0:t.top};return h.createElement(Se.a,{style:[n.outer,a],behavior:De?"padding":void 0,keyboardVerticalOffset:Ce[e.keyboardOffset||"none"]},h.createElement(Ae.a,{barStyle:e.statusBar||"light-content"}),h.createElement(C.a,{style:[n.outer,a,o]},h.createElement(je.a,{style:[n.outer,a],contentContainerStyle:[n.inner,r],keyboardShouldPersistTaps:e.keyboardShouldPersistTaps||"handled"},e.children)))}function Ve(e){return(t=e.preset)&&Pe[t]&&"fixed"!==t?h.createElement(Re,e):h.createElement(Ie,e);var t}n(12),n(14),n(118),N.palette.offWhite;n(60),N.palette.white;function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze={stretch:Le(Le({},{position:"absolute",top:0,left:0,bottom:0,right:0}),{},{resizeMode:"stretch",width:null,height:null})},Te=n(314);function Ne(e){var t=e.preset,n=void 0===t?"stretch":t,r=e.style,a=e.backgroundImage,o=[ze[n]||ze.stretch,r],i=a||Te;return g.a.createElement(X,{source:i,style:o})}var He=n(20),Fe=n.n(He),We=n(263),Me=n(169),Ue=n(468),Ge=n(469),Ke=n(470),Qe=n(471),Ye=n(250),Je={justifyContent:"center"},Xe=Object(I.a)((function(e){var t=e.style,n=e.physics,r=e.gData,a=(e.nodeIds,Object(We.a)([Je,t]),Object(h.useRef)());Object(h.useEffect)((function(){var e=a.current;n.gravityOn?(e.d3Force("x",Ue.a().strength(n.gravity)),e.d3Force("y",Ge.a().strength(n.gravity)),n.threedim?n.galaxy?(e.d3Force("y",Ge.a().strength(n.gravity/5)),e.d3Force("z",Ke.a().strength(n.gravity/5))):(e.d3Force("y",Ge.a().strength(n.gravity)),e.d3Force("z",Ke.a().strength(n.gravity))):e.d3Force("z",null)):(e.d3Force("x",null),e.d3Force("y",null),n.threedim&&e.d3Force("z",null)),e.d3Force("link").strength(n.linkStrength),e.d3Force("link").iterations(n.linkIts),n.collision?e.d3Force("collide",Qe.a().radius(20)):e.d3Force("collide",null),e.d3Force("charge").strength(n.charge)}));var i=Object(h.useMemo)((function(){var e=Object.fromEntries(r.nodes.map((function(e){return[e.index,e]})));return console.log(e),r.nodes.forEach((function(e){"number"===typeof n.rootId?e.collapsed=e.index!==n.rootId:e.collapsed=e.id!==n.rootId,e.childLinks=[]})),r.links.forEach((function(t){return e[t.sourceIndex].childLinks.push(t)})),e}),[r]),c=Object(h.useCallback)((function(){var e=[],t=[];return function r(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i[n.rootId];e.push(a),a.collapsed||(t.push.apply(t,Fe()(a.childLinks)),a.childLinks.map((function(e){return"object"===typeof e.targetIndex?e.targetIndex:i[e.targetIndex]})).forEach(r))}(),{nodes:e,links:t}}),[i]),l=Object(h.useState)(c()),s=o()(l,2),u=s[0],d=s[1],p=Object(h.useCallback)((function(e){e.collapsed=!e.collapsed,d(c())}),[]),f=Object(h.useState)(new Set),g=o()(f,2),m=g[0],b=g[1],y=Object(h.useState)(new Set),v=o()(y,2),O=v[0],E=v[1],k=Object(h.useState)(null),x=o()(k,2),w=(x[0],x[1]),S=function(){b(m),E(O)},j=function(e){console.log("hover"),m.clear(),O.clear(),e&&(m.add(e),e.neighbors.forEach((function(e){return m.add(e)})),e.links.forEach((function(e){return O.add(e)}))),w(e||null),S()};return h.createElement(C.a,null,n.threedim?h.createElement(Me.b,{ref:a,autoPauseRedraw:!1,graphData:r,nodeAutoColorBy:n.colorful?"id":void 0,nodeColor:n.colorful?void 0:function(e){return 0===m.size?"rgb(100, 100, 100, 1)":m.has(e)?"purple":"rgb(50, 50, 50, 0.5)"},linkAutoColorBy:n.colorful?"target":void 0,linkColor:n.colorful?void 0:function(e){return 0===O.size?"rgb(50, 50, 50, 0.8)":O.has(e)?"purple":"rgb(50, 50, 50, 0.2)"},linkDirectionalParticles:n.particles,nodeLabel:function(e){return e.title},linkWidth:function(e){return O.has(e)?3*n.linkWidth:n.linkWidth},linkOpacity:n.linkOpacity,nodeRelSize:n.nodeRel,nodeVal:function(e){return m.has(e)?e.neighbors.length+5:e.neighbors.length+3},linkDirectionalParticleWidth:n.particleWidth,onNodeHover:n.hover?j:null,d3AlphaDecay:n.alphaDecay,d3AlphaMin:n.alphaTarget,d3VelocityDecay:n.velocityDecay,nodeThreeObject:n.labels?function(e){console.log(e.title);var t=new Ye.a(e.title.substring(0,30));return console.log("didnt crash here 2"),t.color="#ffffff",t.textHeight=8,t}:void 0,nodeThreeObjectExtend:!0}):h.createElement(Me.a,{ref:a,autoPauseRedraw:!1,graphData:n.collapse?u:r,nodeAutoColorBy:n.colorful?"id":void 0,nodeColor:n.colorful?void 0:function(e){return 0===m.size?"rgb(100, 100, 100, 1)":m.has(e)?"purple":"rgb(50, 50, 50, 0.5)"},linkAutoColorBy:n.colorful?"target":void 0,linkColor:n.colorful?void 0:function(e){return 0===O.size?"rgb(50, 50, 50, 0.8)":O.has(e)?"purple":"rgb(50, 50, 50, 0.2)"},linkDirectionalParticles:n.particles,onNodeClick:n.collapse?p:void 0,nodeLabel:function(e){return e.title},linkWidth:function(e){return O.has(e)?3*n.linkWidth:n.linkWidth},linkOpacity:n.linkOpacity,nodeRelSize:n.nodeRel,nodeVal:function(e){return m.has(e)?e.neighbors.length+5:e.neighbors.length+3},linkDirectionalParticleWidth:n.particleWidth,nodeCanvasObject:function(e,t,r){if(n.labels&&(r>n.labelScale||m.has(e))){var a=e.title.substring(0,Math.min(e.title.length,30)),o=12/r;t.font=o+"px Sans-Serif";var i=[1.1*t.measureText(a).width,o].map((function(e){return e+.5*o})),c=Math.min(3*(r-n.labelScale)/n.labelScale,1);t.fillStyle="rgba(20, 20, 20, "+(0===m.size?.5*c:m.has(e)?.5:.15*c)+")",t.fillRect.apply(t,[e.x-i[0]/2,e.y-i[1]/2].concat(Fe()(i))),t.textAlign="center",t.textBaseline="middle",t.fillStyle="rgb(255, 255, 255, "+(0===m.size?c:m.has(e)?1:.3*c)+")",t.fillText(a,e.x,e.y),e.__bckgDimensions=i}},nodeCanvasObjectMode:function(){return"after"},onNodeHover:n.hover?j:null,d3AlphaDecay:n.alphaDecay,d3AlphaMin:n.alphaTarget,d3VelocityDecay:n.velocityDecay}))})),_e=n(64),Ze=n(5),qe=n(45),$e=n.n(qe),et=n(268),tt=n(170),nt=n(171);function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=Object(I.a)((function(e){e.style;var t=e.physics,n=e.setPhysics,r=[{title:"Physics",content:h.createElement(C.a,null,h.createElement(Y,{preset:"fieldLabel",text:"Gravity"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.gravityOn,onValueChange:function(){n(at(at({},t),{},{gravityOn:!t.gravityOn}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Gravity: "+t.gravity}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(at(at({},t),{},{gravity:e}))},value:t.gravity,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Repulsive force: "+t.charge}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:-400,maximumValue:100,onValueChange:function(e){n(at(at({},t),{},{charge:e}))},value:t.charge,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Link Force: "+t.linkStrength}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:-2,maximumValue:2,onValueChange:function(e){n(at(at({},t),{},{linkStrength:e}))},value:t.linkStrength,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"'Link Iterations': "+t.linkIts}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(at(at({},t),{},{linkIts:e}))},value:t.linkIts,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Collision"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.collision,onValueChange:function(){n(at(at({},t),{},{collision:!t.collision}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Alhpa Decay: "+t.alphaDecay}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(at(at({},t),{},{alphaDecay:e}))},value:t.alphaDecay,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Alhpa Target: "+t.alphaTarget}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(at(at({},t),{},{alphaTarget:e}))},value:t.alphaTarget,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Viscosity: "+t.velocityDecay}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(at(at({},t),{},{velocityDecay:e}))},value:t.velocityDecay,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Galaxy Mode (3D-only)"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.galaxy,onValueChange:function(){n(at(at({},t),{},{galaxy:!t.galaxy}))}}))},{title:"Visual",content:h.createElement(C.a,null,h.createElement(Y,{preset:"fieldLabel",text:"Colorful"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.colorful,onValueChange:function(){n(at(at({},t),{},{colorful:!t.colorful}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Hover highlight"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.hover,onValueChange:function(){n(at(at({},t),{},{hover:!t.hover}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Line Opacity: "+t.linkOpacity}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(at(at({},t),{},{linkOpacity:e}))},value:t.linkOpacity,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Line width: "+t.linkWidth}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:.1,maximumValue:10,onValueChange:function(e){n(at(at({},t),{},{linkWidth:e}))},value:t.linkWidth,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Node size: "+t.nodeRel}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(at(at({},t),{},{nodeRel:e}))},value:t.nodeRel,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Particles: "+t.particles}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:10,onValueChange:function(e){n(at(at({},t),{},{particles:e}))},value:t.particles,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Particle Size: "+t.particleWidth}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(at(at({},t),{},{particleWidth:e}))},value:t.particleWidth,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Labels"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.labels,onValueChange:function(){n(at(at({},t),{},{labels:!t.labels}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Scale when labels become visible: "+t.labelScale}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:.1,maximumValue:5,onValueChange:function(e){n(at(at({},t),{},{labelScale:e}))},value:t.labelScale,step:.1}))},{title:"Modes",content:h.createElement(C.a,null,h.createElement(Y,{preset:"fieldLabel",text:"Expandable Graph"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.collapse,onValueChange:function(){n(at(at({},t),{},{collapse:!t.collapse}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Change starting point: "+t.rootId}),h.createElement($e.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:600,onValueChange:function(e){n(at(at({},t),{},{rootId:e}))},value:t.rootId,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"3D"}),h.createElement(_e.a,{style:{width:"5",height:20,marginVertical:10},value:t.threedim,onValueChange:function(){n(at(at({},t),{},{threedim:!t.threedim}))}}))}],a=Object(h.useState)([]),i=o()(a,2),c=i[0],l=i[1],s=Object(h.useState)(!0),u=o()(s,2),d=u[0],p=u[1];return d?h.createElement(C.a,{style:it.container},h.createElement(C.a,{style:{height:30,width:"100%",backgroundColor:"rgb(20,20,20)"}},h.createElement(ae.a,{style:{width:30,color:"#ffffff",textAlign:"center",marginLeft:"auto",padding:5},onPress:function(){p(!1)}},h.createElement(nt.a,{name:"close-circle",color:"#ffffff",size:20}))),h.createElement(je.a,null,h.createElement(et.a,{activeSections:c,sections:r,touchAbleComponent:ae.a,expandMultiple:!0,renderHeader:function(e,t,n){return h.createElement(tt.a,{duration:400,style:[it.header,n?it.active:it.inactive],transition:"backgroundColor"},h.createElement(Y,{style:it.headerText},e.title))},renderContent:function(e,t,n){return h.createElement(tt.a,{duration:400,style:[it.content,n?it.active:it.inactive],transition:"backgroundColor"},e.content)},duration:200,onChange:function(e){l(e.includes(void 0)?[]:e)},renderAsFlatList:!1}))):h.createElement(ae.a,{onPress:function(){p(!0)},style:{position:"absolute",top:50,left:50,width:30,color:"#ffffff",zIndex:100}},h.createElement(nt.a,{name:"cog",color:"#ffffff",size:30}))})),it=Ze.a.create({container:{flex:1,backgroundColor:"rgb(20,20,20)",position:"absolute",zIndex:100,left:50,top:50,width:250,borderRadius:5,borderStyle:"solid",maxHeight:"70%",paddingBottom:20},title:{textAlign:"left",fontSize:22,fontWeight:"300",marginBottom:20,paddingLeft:20},header:{backgroundColor:"#111111",padding:10,paddingBottom:20,textAlign:"left"},headerText:{textAlign:"left",paddingLeft:30,fontSize:16,fontWeight:"500"},content:{padding:20,paddingLeft:60,backgroundColor:"#000000"},active:{backgroundColor:"rgba(0,0,0,1)"},inactive:{backgroundColor:"rgba(20,20,20,1)"},selectors:{marginBottom:10,flexDirection:"row",justifyContent:"center"},selector:{backgroundColor:"#111111",padding:10},activeSelector:{fontWeight:"bold"},selectTitle:{fontSize:14,fontWeight:"500",padding:10},multipleToggle:{flexDirection:"row",justifyContent:"center",marginVertical:30,alignItems:"center"},multipleToggle__title:{fontSize:16,marginRight:8}});function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st=n(374),ut={flex:1},dt={backgroundColor:N.transparent,paddingHorizontal:H[4]},pt={color:N.palette.white,fontFamily:W.primary},ft={fontWeight:"bold"},ht={paddingTop:H[3],paddingBottom:H[4]+H[1],paddingHorizontal:0},gt=lt(lt(lt({},pt),ft),{},{fontSize:12,lineHeight:15,textAlign:"center",letterSpacing:1.5}),mt=lt(lt({},pt),{},{textAlign:"center"}),bt=lt(lt(lt({},pt),ft),{},{fontSize:28,lineHeight:38,textAlign:"center"}),yt=lt(lt(lt({},pt),ft),{},{fontSize:26,fontStyle:"italic"}),vt={alignSelf:"center",marginVertical:H[5],maxWidth:"100%",width:343,height:230},Ot=lt(lt({},pt),{},{color:"#BAB6C8",fontSize:15,lineHeight:22,marginBottom:H[5]}),Et={paddingVertical:H[4],paddingHorizontal:H[4],backgroundColor:N.palette.deepPurple},kt=lt(lt(lt({},pt),ft),{},{fontSize:13,letterSpacing:2}),xt={backgroundColor:"#20162D"},wt={paddingVertical:H[4],paddingHorizontal:H[4]},St=(Object(I.a)((function(){var e=Object(D.useNavigation)();return g.a.createElement(C.a,{testID:"WelcomeScreen",style:ut},g.a.createElement(Ne,null),g.a.createElement(Ve,{style:dt,preset:"scroll",backgroundColor:N.transparent},g.a.createElement(we,{headerTx:"welcomeScreen.poweredBy",style:ht,titleStyle:gt}),g.a.createElement(Y,{style:mt},g.a.createElement(Y,{style:bt,text:"Your new app, "}),g.a.createElement(Y,{style:yt,text:"almost"}),g.a.createElement(Y,{style:bt,text:"!"})),g.a.createElement(Y,{style:bt,preset:"header",tx:"welcomeScreen.readyForLaunch"}),g.a.createElement(X,{source:st,style:vt}),g.a.createElement(Y,{style:Ot},"This probably isn't what your app is going to look like. Unless your designer handed you this screen and, in that case, congrats! You're ready to ship."),g.a.createElement(Y,{style:Ot},"For everyone else, this is where you'll see a live preview of your fully functioning app using Ignite.")),g.a.createElement(P.a,{style:xt},g.a.createElement(C.a,{style:wt},g.a.createElement(pe,{testID:"next-screen-button",style:Et,textStyle:kt,tx:"welcomeScreen.continue",onPress:function(){return e.navigate("demo")}}))))})),n(21)),jt=n.n(St),At=n(23),Ct=n.n(At),Pt=n(261);function Dt(e){switch(e.problem){case"CONNECTION_ERROR":case"NETWORK_ERROR":return{kind:"cannot-connect",temporary:!0};case"TIMEOUT_ERROR":return{kind:"timeout",temporary:!0};case"SERVER_ERROR":return{kind:"server"};case"UNKNOWN_ERROR":return{kind:"unknown",temporary:!0};case"CLIENT_ERROR":switch(e.status){case 401:return{kind:"unauthorized"};case 403:return{kind:"forbidden"};case 404:return{kind:"not-found"};default:return{kind:"rejected"}}case"CANCEL_ERROR":return null}return null}var It={url:"http://example.com",timeout:1e4},Rt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:It;jt()(this,e),this.config=t}return Ct()(e,[{key:"setup",value:function(){this.apisauce=Object(Pt.create)({baseURL:this.config.url,timeout:this.config.timeout,headers:{Accept:"application/json"}})}},{key:"getUsers",value:function(){var e,t,n,r,a;return c.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,c.a.awrap(this.apisauce.get("/users"));case 2:if((e=o.sent).ok){o.next=7;break}if(!(t=Dt(e))){o.next=7;break}return o.abrupt("return",t);case 7:return n=function(e){return{id:e.id,name:e.name}},o.prev=8,r=e.data,a=r.map(n),o.abrupt("return",{kind:"ok",users:a});case 14:return o.prev=14,o.t0=o.catch(8),o.abrupt("return",{kind:"bad-data"});case 17:case"end":return o.stop()}}),null,this,[[8,14]],Promise)}},{key:"getUser",value:function(e){var t,n,r;return c.a.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,c.a.awrap(this.apisauce.get("/users/"+e));case 2:if((t=a.sent).ok){a.next=7;break}if(!(n=Dt(t))){a.next=7;break}return a.abrupt("return",n);case 7:return a.prev=7,r={id:t.data.id,name:t.data.name},a.abrupt("return",{kind:"ok",user:r});case 12:return a.prev=12,a.t0=a.catch(7),a.abrupt("return",{kind:"bad-data"});case 15:case"end":return a.stop()}}),null,this,[[7,12]],Promise)}}]),e}();function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=n(441),zt=n(442),Tt={flex:1},Nt={backgroundColor:N.transparent,paddingHorizontal:H[4]},Ht={paddingVertical:H[4],paddingHorizontal:H[4],backgroundColor:N.palette.deepPurple},Ft={fontWeight:"bold"},Wt=Bt(Bt({},Ft),{},{fontSize:13,letterSpacing:2}),Mt={paddingTop:H[3],paddingBottom:H[5]-1,paddingHorizontal:0},Ut=Bt(Bt({},Ft),{},{fontSize:12,lineHeight:15,textAlign:"center",letterSpacing:1.5}),Gt=Bt(Bt({},Ft),{},{fontSize:28,lineHeight:38,textAlign:"center",marginBottom:H[5]}),Kt={color:"#BAB6C8",fontSize:15,lineHeight:22,marginBottom:H[4]+H[1]},Qt={marginVertical:H[6],alignSelf:"center",width:180,height:100},Yt={flexDirection:"row",alignItems:"center",alignSelf:"center"},Jt={color:"#BAB6C8",fontSize:15,lineHeight:22},Xt={marginHorizontal:H[2],width:10,height:10,resizeMode:"contain"},_t={color:"#BAB6C8",fontSize:12,lineHeight:15,marginVertical:H[2]},Zt=F.a.select({ios:"Cmd + D",android:"Cmd/Ctrl + M"}),qt=(Object(I.a)((function(){var e=Object(D.useNavigation)(),t=g.a.useMemo((function(){return function(){var e;return c.a.async((function(t){for(;;)switch(t.prev=t.next){case 0:return console.tron.log("Your Friendly tron log message"),console.tron.logImportant("I am important"),console.tron.display({name:"DISPLAY",value:{numbers:1,strings:"strings",booleans:!0,arrays:[1,2,3],objects:{deeper:{deeper:{yay:"\ud83d\udc7e"}}},functionNames:function(){}},preview:"More control with display()",important:!0,image:{uri:"https://avatars2.githubusercontent.com/u/3902527?s=200&u=a0d16b13ed719f35d95ca0f4440f5d07c32c349a&v=4"}}),(e=new Rt).setup(),e.getUser("1"),t.next=8,c.a.awrap(k("Cool Name","Boaty McBoatface"));case 8:case"end":return t.stop()}}),null,null,null,Promise)}}),[]);return g.a.createElement(C.a,{testID:"DemoScreen",style:Tt},g.a.createElement(Ne,null),g.a.createElement(Ve,{style:Nt,preset:"scroll",backgroundColor:N.transparent},g.a.createElement(we,{headerTx:"demoScreen.howTo",leftIcon:"back",onLeftPress:function(){return e.goBack()},style:Mt,titleStyle:Ut}),g.a.createElement(Y,{style:Gt,preset:"header",tx:"demoScreen.title"}),g.a.createElement(Y,{style:Kt,tx:"demoScreen.tagLine"}),g.a.createElement(re,{text:"Integrated here, Navigation with State, TypeScript, Storybook, Solidarity, and i18n."}),g.a.createElement(re,{text:"To run Storybook, press "+Zt+' or shake the device to show the developer menu, then select "Toggle Storybook"'}),g.a.createElement(re,{text:"Load up Reactotron!  You can inspect your app, view the events, interact, and so much more!"}),g.a.createElement(C.a,null,g.a.createElement(pe,{style:Ht,textStyle:Wt,tx:"demoScreen.reactotron",onPress:t}),g.a.createElement(Y,{style:_t,tx:"demoScreen."+F.a.OS+"ReactotronHint"})),g.a.createElement(pe,{style:Ht,textStyle:Wt,tx:"demoScreen.demoList",onPress:function(){return e.navigate("demoList")}}),g.a.createElement(X,{source:Lt,style:Qt}),g.a.createElement(C.a,{style:Yt},g.a.createElement(Y,{style:Jt,text:"Made with"}),g.a.createElement(X,{source:zt,style:Xt}),g.a.createElement(Y,{style:Jt,text:"by Infinite Red"}))))})),n(72)),$t=n(31),en=$t.d.model("Character").props({id:$t.d.identifierNumber,name:$t.d.maybe($t.d.string),status:$t.d.maybe($t.d.string),image:$t.d.maybe($t.d.string)}),tn=function(){function e(t){jt()(this,e),this.api=t}return Ct()(e,[{key:"getCharacters",value:function(){var e,t,n;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,c.a.awrap(this.api.apisauce.get("https://raw.githubusercontent.com/infinitered/ignite/master/data/rick-and-morty.json",{amount:50}));case 3:if((e=r.sent).ok){r.next=8;break}if(!(t=Dt(e))){r.next=8;break}return r.abrupt("return",t);case 8:return n=e.data.results,r.abrupt("return",{kind:"ok",characters:n});case 12:return r.prev=12,r.t0=r.catch(0),r.abrupt("return",{kind:"bad-data"});case 16:case"end":return r.stop()}}),null,this,[[0,12]],Promise)}}]),e}(),nn=$t.d.model("CharacterStore").props({characters:$t.d.optional($t.d.array(en),[])}).extend((function(e){return{views:{get environment(){return Object($t.a)(e)}}}})).actions((function(e){return{saveCharacters:function(t){e.characters.replace(t)}}})).actions((function(e){return{getCharacters:function(){var t,n;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t=new tn(e.environment.api),r.next=3,c.a.awrap(t.getCharacters());case 3:"ok"===(n=r.sent).kind&&e.saveCharacters(n.characters);case 5:case"end":return r.stop()}}),null,null,null,Promise)}}})),rn=$t.d.model("RootStore").props({characterStore:$t.d.optional(nn,{})}),an=Object(h.createContext)({}),on=an.Provider,cn=function(){function e(){jt()(this,e),this.api=new Rt}return Ct()(e,[{key:"setup",value:function(){return c.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:return e.next=5,c.a.awrap(this.api.setup());case 5:case"end":return e.stop()}}),null,this,null,Promise)}}]),e}();function ln(){var e;return c.a.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new cn,t.next=3,c.a.awrap(e.setup());case 3:return t.abrupt("return",e);case 4:case"end":return t.stop()}}),null,null,null,Promise)}function sn(){var e,t,n;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,c.a.awrap(ln());case 2:return n=r.sent,r.prev=3,r.next=6,c.a.awrap(E("root"));case 6:if(r.t0=r.sent,r.t0){r.next=9;break}r.t0={};case 9:t=r.t0,e=rn.create(t,n),r.next=17;break;case 13:r.prev=13,r.t1=r.catch(3),e=rn.create({},n);case 17:return Object($t.c)(e,(function(e){return k("root",e)})),r.abrupt("return",e);case 20:case"end":return r.stop()}}),null,null,[[3,13]],Promise)}var un={flex:1},dn={backgroundColor:N.transparent},pn={paddingBottom:H[5]-1,paddingHorizontal:H[4],paddingTop:H[3]},fn={fontSize:12,fontWeight:"bold",letterSpacing:1.5,lineHeight:15,textAlign:"center"},hn={alignItems:"center",flexDirection:"row",padding:10},gn={borderRadius:35,height:65,width:65},mn={marginLeft:10},bn={paddingHorizontal:H[4]},yn=(Object(I.a)((function(){var e=Object(D.useNavigation)(),t=Object(h.useContext)(an).characterStore,n=t.characters;return Object(h.useEffect)((function(){c.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.a.awrap(t.getCharacters());case 2:case"end":return e.stop()}}),null,null,null,Promise)}),[]),g.a.createElement(C.a,{testID:"DemoListScreen",style:un},g.a.createElement(Ne,null),g.a.createElement(Ve,{style:dn,preset:"fixed",backgroundColor:N.transparent},g.a.createElement(we,{headerTx:"demoListScreen.title",leftIcon:"back",onLeftPress:function(){return e.goBack()},style:pn,titleStyle:fn}),g.a.createElement(qt.a,{contentContainerStyle:bn,data:Fe()(n),keyExtractor:function(e){return String(e.id)},renderItem:function(e){var t=e.item;return g.a.createElement(C.a,{style:hn},g.a.createElement(X,{source:{uri:t.image},style:gn}),g.a.createElement(Y,{style:mn},t.name," (",t.status,")"))}})))})),n(162)),vn=n.n(yn),On={backgroundColor:N.palette.black,flex:1},En=Object(I.a)((function(){var e=Object(h.useState)({}),t=o()(e,2),n=t[0],r=t[1],a=Object(h.useState)(),i=o()(a,2),l=i[0],s=i[1],u=Object(h.useState)([]),d=o()(u,2),p=d[0],f=d[1],m={charge:-350,collision:!0,linkStrength:.1,linkIts:1,collapse:!1,threedim:!1,particles:2,linkOpacity:1,linkWidth:1,particleWidth:4,nodeRel:4,labels:!0,labelScale:1.5,alphaDecay:.16,alphaTarget:.01,velocityDecay:.25,gravity:.5,gravityOn:!0,hover:!0,colorful:!0,galaxy:!0,rootId:0};Object(h.useEffect)((function(){e&&clearTimeout(e);var e=setTimeout((function(){!function(e){var t;c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t=JSON.stringify(e),console.log(t+" "+e),n.next=5,c.a.awrap(y.a.setItem("@physics",t));case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),console.log(n.t0);case 10:case"end":return n.stop()}}),null,null,[[0,7]],Promise)}(n)}),1e3);return function(){return clearTimeout(e)}}),[n]);return Object(h.useEffect)((function(){(function(){var e,t;return c.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,c.a.awrap(y.a.getItem("@physics"));case 3:if(null===(e=n.sent)){n.next=15;break}if(t=JSON.parse(e),console.log(Object.keys(t).length+" is not "+Object.keys(m).length),Object.keys(t).length!==Object.keys(m).length){n.next=11;break}return n.abrupt("return",t);case 11:return n.abrupt("return",m);case 12:n.next=16;break;case 15:return n.abrupt("return",m);case 16:n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),console.log(n.t0);case 21:case"end":return n.stop()}}),null,null,[[0,18]],Promise)})().then((function(e){return r(e)})),vn.a.get("http://localhost:35901/graph").then((function(e){var t=function(e){var t=[];return e.nodes.forEach((function(e,n){t.push(e.id),e.index=n})),f(t),t}(e.data);f(t),console.log(p);var n=function(e,t){var n=[];return e.links.forEach((function(r,a){for(var o,i,c=0;c<t.length;c++){var l=e.nodes[c];!l.neighbors&&(l.neighbors=[]),!l.links&&(l.links=[]),r.target===t[c]?(l.links.push(r),o=[l,c],r.target!==r.source&&n.push(r)):r.source===t[c]&&(l.links.push(r),i=[l,c])}o&&i&&(e.nodes[o[1]].neighbors.push(i[0]),e.nodes[i[1]].neighbors.push(o[0]),r.sourceIndex=i[1],r.targetIndex=o[1])})),console.log(n),e.links=n,e}(e.data,t);console.log(n),s(n)})).catch((function(e){console.log(e),console.log("Couldn't get data.")}))}),[]),l?g.a.createElement(Ve,{style:On,preset:"scroll"},g.a.createElement(ot,{physics:n,setPhysics:r}),g.a.createElement(Xe,{physics:n,gData:l,nodeIds:p})):null})),kn=Object(S.a)();function xn(){return g.a.createElement(kn.Navigator,{screenOptions:{cardStyle:{backgroundColor:"transparent"},headerShown:!1}},g.a.createElement(kn.Screen,{name:"graph",component:En}))}var wn=["welcome"],Sn=function(e){return wn.includes(e)},jn=n(220),An=Object(S.a)(),Cn=function(){return g.a.createElement(An.Navigator,{screenOptions:{cardStyle:{backgroundColor:N.palette.deepPurple},headerShown:!1}},g.a.createElement(An.Screen,{name:"mainStack",component:xn,options:{headerShown:!1}}))},Pn=g.a.forwardRef((function(e,t){return g.a.createElement(jn.a,V()({},e,{ref:t}),g.a.createElement(Cn,null))}));Pn.displayName="RootNavigator";var Dn=n(80),In={navigate:function(e){},goBack:function(){},resetRoot:function(e){},getRootState:function(){return{}}};function Rn(e){var t=e.routes[e.index];return t.state?Rn(t.state):t.name}n(454);var Vn=function(e){var t=Object(h.useState)(null),n=o()(t,2),r=n[0],a=(n[1],Object(h.useState)({})),i=o()(a,2),c=i[0];i[1];return Object(h.useEffect)((function(){0}),[]),Object(h.useEffect)((function(){0}),[window.location.search]),null!=c&&c.storybook?r?g.a.createElement(r,null):null:e.children},Bn=n(163);Object(Bn.enableScreens)();var Ln=function(){var e=Object(h.useRef)(null),t=Object(h.useState)(void 0),n=o()(t,2),a=n[0],i=n[1];!function(e){var t=function(t){In[t]=function(){var n;if(e.current)return(n=e.current)[t].apply(n,arguments)}};for(var n in In)t(n)}(e),function(e,t){var n=Object(h.useRef)(t);Object(h.useEffect)((function(){n.current=t}),[t]),Object(h.useEffect)((function(){var t=function(){var t=e.current;if(null==t)return!1;var r=Rn(t.getRootState());return!n.current(r)&&(!!t.canGoBack()&&(t.goBack(),!0))};return Dn.a.addEventListener("hardwareBackPress",t),function(){return Dn.a.removeEventListener("hardwareBackPress",t)}}),[e])}(e,Sn);var l=function(e,t){var n=Object(h.useState)(),r=o()(n,2),a=r[0],i=r[1],l=Object(h.useState)(!0),s=o()(l,2),u=s[0],d=s[1],p=Object(h.useRef)(),f=function(){var n;return c.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,c.a.awrap(e.load(t));case 3:(n=r.sent)&&i(n);case 5:return r.prev=5,d(!1),r.finish(5);case 8:case"end":return r.stop()}}),null,null,[[0,,5,8]],Promise)};return Object(h.useEffect)((function(){u&&f()}),[u]),{onNavigationStateChange:function(n){p.current;var r=Rn(n);p.current=r,e.save(t,n)},restoreState:f,initialNavigationState:a}}(r,"NAVIGATION_STATE"),s=l.initialNavigationState,u=l.onNavigationStateChange;return Object(h.useEffect)((function(){c.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.a.awrap(c.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),null,null,null,Promise));case 2:sn().then(i);case 3:case"end":return e.stop()}}),null,null,null,Promise)}),[]),a?g.a.createElement(Vn,null,g.a.createElement(on,{value:a},g.a.createElement(m.b,{initialMetrics:b.a},g.a.createElement(Pn,{ref:e,initialState:s,onStateChange:u})))):null},zn=n(265);Object(zn.a)(Ln);t.a=Ln},289:function(e,t,n){n(290),e.exports=n(291)},308:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAAAXNSR0IArs4c6QAAAQNJREFUKBWdk8EOwUAQhme2InFy9yB1cSTReAIOPIeEEyKObs4knkBS2pNbK57A3cETcKBjtmKzJd0mO5fO9p//63Q6BciJ0D83wn3cyZHV7ZLKtISNPUqeawB8EFEVEV+anElF5sSHj5nYDI4AmpnM0pvpQDcjinHTc+eyyBT4FX/NLc+dfjXTNQXYmiUYAz/uAtGGc35nsSOgwPREXeP5RBj60ZUIatzKnQAqekFRzp5biSlL/lQLbqaMCAc2XYqMSkdx/MzAP42IkgkLLxTYb7XrW1VUkKQAWRNaQhTAFpIB2ED+VlkukNxChjmQ0IoH7EhwXvwBZGEKEThAAcOif+ENKNR3psyHynYAAAAASUVORK5CYII="},309:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAIZJREFUGBljZACC/w4OMgy/fnUxMDI6gPgM//8fYGBjK2M8cOAJI1TyIlBYCCyJIN4BFekzgXWCJBkZtwMFZMEYxAaJAU1l/G9t/QxopCRIAmQkyACoqY+Bmp4zIUzEzmICOwgk9/v3LJBOsG4gG6wc6FjCjgTbC3QtUMdykJ1gDGIDxUByAK6uPrQ53B7lAAAAAElFTkSuQmCC"},314:function(e,t,n){e.exports=n.p+"static/media/bg.27c56310.png"},374:function(e,t,n){e.exports=n.p+"static/media/bowser.4ba9aedf.png"},441:function(e,t,n){e.exports=n.p+"static/media/logo-ignite.5c0bc1b0.png"},442:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAIZJREFUGBljYACC////5wHxIyB+AsRFQNwPxG+A+BIQ+4DUgBTFADE+8Bco6QFSeB2fKqjcASagofxgo/ET7CCFq/CrAcsuAVktAMTX8Fi/EyjHAlYOZMgD8X0gRgfHgAK8KDYCBaSBGNnk3UA+N4oiGAcoIQLEZ4F4HRCzw8Sx0kAFzNgkAGi11d75H7oeAAAAAElFTkSuQmCC"}},[[289,1,2]]]);
//# sourceMappingURL=app.e8143965.chunk.js.map