diff options
Diffstat (limited to 'web-build/static/js/app.f2b5be91.chunk.js')
-rw-r--r-- | web-build/static/js/app.f2b5be91.chunk.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/web-build/static/js/app.f2b5be91.chunk.js b/web-build/static/js/app.f2b5be91.chunk.js deleted file mode 100644 index c2228be..0000000 --- a/web-build/static/js/app.f2b5be91.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(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"}}')},263: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(9),o=n.n(a),i=n(7),c=n.n(i),l=n(265),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(475),b=n(472),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(473),j=n(6),A=n.n(j),C=n(2),P=n(122),D=n(30),R=n(59),I=n(19),V=n.n(I),B=n(17),L=n.n(B),T=n(57),z={black:"#1d1d1d",white:"#ffffff",offWhite:"#e6e6e6",orange:"#FBA928",orangeDarker:"#EB9918",lightGrey:"#939AA4",lighterGrey:"#CDD4DA",angry:"#dd3333",deepPurple:"#5D2555"},N={palette:z,transparent:"rgba(0, 0, 0, 0)",background:z.white,primary:z.orange,primaryDarker:z.orangeDarker,line:z.offWhite,text:z.white,dim:z.lightGrey,error:z.angry,storybookDarkBg:z.black,storybookTextColor:z.black},H=[0,4,8,12,16,24,32,48,64],W=n(8),F={primary:W.a.select({ios:"Helvetica",android:"normal"}),secondary:W.a.select({ios:"Arial",android:"sans-serif"}),code:W.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:F.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(T.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"===W.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(307),bullet:n(308)},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:F.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(47);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"===W.a.OS;function Re(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 Ie(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(Ie,e):h.createElement(Re,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 Te={stretch:Le(Le({},{position:"absolute",top:0,left:0,bottom:0,right:0}),{},{resizeMode:"stretch",width:null,height:null})},ze=n(313);function Ne(e){var t=e.preset,n=void 0===t?"stretch":t,r=e.style,a=e.backgroundImage,o=[Te[n]||Te.stretch,r],i=a||ze;return g.a.createElement(X,{source:i,style:o})}var He=n(20),We=n.n(He),Fe=n(262),Me=n(169),Ue=n(467),Ge=n(468),Ke=n(469),Qe=n(470),Ye={justifyContent:"center"},Je=Object(R.a)((function(e){var t=e.style,n=e.physics,r=e.gData,a=(e.nodeIds,Object(Fe.a)([Ye,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&&e.d3Force("z",Ke.a().strength(n.gravity))):(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)}));Object(h.useMemo)((function(){var e=Object.fromEntries(r.nodes.map((function(e){return[e.id,e]})));return r.nodes.forEach((function(e){e.collapsed=0!==e.id,e.childLinks=[],e.parentLink=[]})),r.links.forEach((function(t){return e[t.source].childLinks.push(t)})),e}),[r]);var i=Object(h.useState)(new Set),c=o()(i,2),l=c[0],s=c[1],u=Object(h.useState)(new Set),d=o()(u,2),p=d[0],f=d[1],g=Object(h.useState)(null),m=o()(g,2),b=(m[0],m[1]),y=function(){s(l),f(p)},v=function(e){console.log("hover"),l.clear(),p.clear(),e&&(l.add(e),e.neighbors.forEach((function(e){return l.add(e)})),e.links.forEach((function(e){return p.add(e)}))),b(e||null),y()};return h.createElement(C.a,null,n.threedim?h.createElement(Me.b,{ref:a,graphData:r,linkWidth:n.linkWidth,linkDirectionalParticles:n.particles,nodeColor:function(e){return l.has(e)?"purple":"grey"},linkColor:function(e){return p.has(e)?"purple":"grey"},nodeLabel:function(e){return e.title},linkOpacity:n.linkOpacity,nodeRelSize:n.nodeRel,linkDirectionalParticleWidth:n.particleWidth,backgroundColor:"#1d1d1d",onNodeHover:n.hover?v:null,onLinkHover:n.hover?function(e){l.clear(),p.clear(),e&&(p.add(e),l.add(e.source),l.add(e.target)),y()}:null,d3AlphaDecay:n.alphaDecay,d3AlphaMin:n.alphaTarget,d3VelocityDecay:n.velocityDecay}):h.createElement(Me.a,{ref:a,autoPauseRedraw:!1,graphData:r,nodeAutoColorBy:n.colorful?"id":void 0,nodeColor:n.colorful?void 0:function(e){return 0===l.size?"rgb(100, 100, 100, 1)":l.has(e)?"purple":"rgb(50, 50, 50, 0.5)"},linkAutoColorBy:n.colorful?"target":void 0,linkColor:n.colorful?void 0:function(e){return 0===p.size?"rgb(50, 50, 50, 0.8)":p.has(e)?"purple":"rgb(50, 50, 50, 0.2)"},linkDirectionalParticles:n.particles,nodeLabel:function(e){return e.title},linkWidth:function(e){return p.has(e)?3*n.linkWidth:n.linkWidth},linkOpacity:n.linkOpacity,nodeRelSize:n.nodeRel,nodeVal:function(e){return l.has(e)?e.neighbors.length+5:e.neighbors.length+3},linkDirectionalParticleWidth:n.particleWidth,nodeCanvasObject:function(e,t,r){if(n.labels&&(r>n.labelScale||l.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===l.size?.5*c:l.has(e)?.5:.15*c)+")",t.fillRect.apply(t,[e.x-i[0]/2,e.y-i[1]/2].concat(We()(i))),t.textAlign="center",t.textBaseline="middle",t.fillStyle="rgb(255, 255, 255, "+(0===l.size?c:l.has(e)?1:.3*c)+")",t.fillText(a,e.x,e.y),e.__bckgDimensions=i}},nodeCanvasObjectMode:function(){return"after"},onNodeHover:n.hover?v:null,d3AlphaDecay:n.alphaDecay,d3AlphaMin:n.alphaTarget,d3VelocityDecay:n.velocityDecay}))})),Xe=n(66),_e=n(5),Ze=n(50),qe=n.n(Ze),$e=n(267),et=n(170),tt=n(171);function nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var at=Object(R.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(Xe.a,{style:{width:"5",height:20,marginVertical:10},value:t.gravityOn,onValueChange:function(){n(rt(rt({},t),{},{gravityOn:!t.gravityOn}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Gravity: "+t.gravity}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(rt(rt({},t),{},{gravity:e}))},value:t.gravity,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Repulsive force: "+t.charge}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:-400,maximumValue:100,onValueChange:function(e){n(rt(rt({},t),{},{charge:e}))},value:t.charge,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Link Force: "+t.linkStrength}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:-2,maximumValue:2,onValueChange:function(e){n(rt(rt({},t),{},{linkStrength:e}))},value:t.linkStrength,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"'Link Iterations': "+t.linkIts}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(rt(rt({},t),{},{linkIts:e}))},value:t.linkIts,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Collision"}),h.createElement(Xe.a,{style:{width:"5",height:20,marginVertical:10},value:t.collision,onValueChange:function(){n(rt(rt({},t),{},{collision:!t.collision}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Alhpa Decay: "+t.alphaDecay}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(rt(rt({},t),{},{alphaDecay:e}))},value:t.alphaDecay,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Alhpa Target: "+t.alphaTarget}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(rt(rt({},t),{},{alphaTarget:e}))},value:t.alphaTarget,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Viscosity: "+t.velocityDecay}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(rt(rt({},t),{},{velocityDecay:e}))},value:t.velocityDecay,step:.01}))},{title:"Visual",content:h.createElement(C.a,null,h.createElement(Y,{preset:"fieldLabel",text:"Colorful"}),h.createElement(Xe.a,{style:{width:"5",height:20,marginVertical:10},value:t.colorful,onValueChange:function(){n(rt(rt({},t),{},{colorful:!t.colorful}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Hover highlight"}),h.createElement(Xe.a,{style:{width:"5",height:20,marginVertical:10},value:t.hover,onValueChange:function(){n(rt(rt({},t),{},{hover:!t.hover}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Line Opacity: "+t.linkOpacity}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(rt(rt({},t),{},{linkOpacity:e}))},value:t.linkOpacity,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Line width: "+t.linkWidth}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:.1,maximumValue:10,onValueChange:function(e){n(rt(rt({},t),{},{linkWidth:e}))},value:t.linkWidth,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Node size: "+t.nodeRel}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(rt(rt({},t),{},{nodeRel:e}))},value:t.nodeRel,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Particles: "+t.particles}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:10,onValueChange:function(e){n(rt(rt({},t),{},{particles:e}))},value:t.particles,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Particle Size: "+t.particleWidth}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(rt(rt({},t),{},{particleWidth:e}))},value:t.particleWidth,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Labels"}),h.createElement(Xe.a,{style:{width:"5",height:20,marginVertical:10},value:t.labels,onValueChange:function(){n(rt(rt({},t),{},{labels:!t.labels}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Scale when labels become visible: "+t.labelScale}),h.createElement(qe.a,{style:{height:40,width:"90%"},minimumValue:.1,maximumValue:5,onValueChange:function(e){n(rt(rt({},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(Xe.a,{style:{width:"5",height:20,marginVertical:10},value:t.collapse,onValueChange:function(){n(rt(rt({},t),{},{collapse:!t.collapse}))}}),h.createElement(Y,{preset:"fieldLabel",text:"3D"}),h.createElement(Xe.a,{style:{width:"5",height:20,marginVertical:10},value:t.threedim,onValueChange:function(){n(rt(rt({},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:ot.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(tt.a,{name:"close-circle",color:"#ffffff",size:20}))),h.createElement(je.a,null,h.createElement($e.a,{activeSections:c,sections:r,touchAbleComponent:ae.a,expandMultiple:!0,renderHeader:function(e,t,n){return h.createElement(et.a,{duration:400,style:[ot.header,n?ot.active:ot.inactive],transition:"backgroundColor"},h.createElement(Y,{style:ot.headerText},e.title))},renderContent:function(e,t,n){return h.createElement(et.a,{duration:400,style:[ot.content,n?ot.active:ot.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(tt.a,{name:"cog",color:"#ffffff",size:30}))})),ot=_e.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 it(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 ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=n(373),st={flex:1},ut={backgroundColor:N.transparent,paddingHorizontal:H[4]},dt={color:N.palette.white,fontFamily:F.primary},pt={fontWeight:"bold"},ft={paddingTop:H[3],paddingBottom:H[4]+H[1],paddingHorizontal:0},ht=ct(ct(ct({},dt),pt),{},{fontSize:12,lineHeight:15,textAlign:"center",letterSpacing:1.5}),gt=ct(ct({},dt),{},{textAlign:"center"}),mt=ct(ct(ct({},dt),pt),{},{fontSize:28,lineHeight:38,textAlign:"center"}),bt=ct(ct(ct({},dt),pt),{},{fontSize:26,fontStyle:"italic"}),yt={alignSelf:"center",marginVertical:H[5],maxWidth:"100%",width:343,height:230},vt=ct(ct({},dt),{},{color:"#BAB6C8",fontSize:15,lineHeight:22,marginBottom:H[5]}),Ot={paddingVertical:H[4],paddingHorizontal:H[4],backgroundColor:N.palette.deepPurple},Et=ct(ct(ct({},dt),pt),{},{fontSize:13,letterSpacing:2}),kt={backgroundColor:"#20162D"},xt={paddingVertical:H[4],paddingHorizontal:H[4]},wt=(Object(R.a)((function(){var e=Object(D.useNavigation)();return g.a.createElement(C.a,{testID:"WelcomeScreen",style:st},g.a.createElement(Ne,null),g.a.createElement(Ve,{style:ut,preset:"scroll",backgroundColor:N.transparent},g.a.createElement(we,{headerTx:"welcomeScreen.poweredBy",style:ft,titleStyle:ht}),g.a.createElement(Y,{style:gt},g.a.createElement(Y,{style:mt,text:"Your new app, "}),g.a.createElement(Y,{style:bt,text:"almost"}),g.a.createElement(Y,{style:mt,text:"!"})),g.a.createElement(Y,{style:mt,preset:"header",tx:"welcomeScreen.readyForLaunch"}),g.a.createElement(X,{source:lt,style:yt}),g.a.createElement(Y,{style:vt},"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:vt},"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:kt},g.a.createElement(C.a,{style:xt},g.a.createElement(pe,{testID:"next-screen-button",style:Ot,textStyle:Et,tx:"welcomeScreen.continue",onPress:function(){return e.navigate("demo")}}))))})),n(21)),St=n.n(wt),jt=n(23),At=n.n(jt),Ct=n(260);function Pt(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 Dt={url:"http://example.com",timeout:1e4},Rt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dt;St()(this,e),this.config=t}return At()(e,[{key:"setup",value:function(){this.apisauce=Object(Ct.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=Pt(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=Pt(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 It(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bt=n(440),Lt=n(441),Tt={flex:1},zt={backgroundColor:N.transparent,paddingHorizontal:H[4]},Nt={paddingVertical:H[4],paddingHorizontal:H[4],backgroundColor:N.palette.deepPurple},Ht={fontWeight:"bold"},Wt=Vt(Vt({},Ht),{},{fontSize:13,letterSpacing:2}),Ft={paddingTop:H[3],paddingBottom:H[5]-1,paddingHorizontal:0},Mt=Vt(Vt({},Ht),{},{fontSize:12,lineHeight:15,textAlign:"center",letterSpacing:1.5}),Ut=Vt(Vt({},Ht),{},{fontSize:28,lineHeight:38,textAlign:"center",marginBottom:H[5]}),Gt={color:"#BAB6C8",fontSize:15,lineHeight:22,marginBottom:H[4]+H[1]},Kt={marginVertical:H[6],alignSelf:"center",width:180,height:100},Qt={flexDirection:"row",alignItems:"center",alignSelf:"center"},Yt={color:"#BAB6C8",fontSize:15,lineHeight:22},Jt={marginHorizontal:H[2],width:10,height:10,resizeMode:"contain"},Xt={color:"#BAB6C8",fontSize:12,lineHeight:15,marginVertical:H[2]},_t=W.a.select({ios:"Cmd + D",android:"Cmd/Ctrl + M"}),Zt=(Object(R.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:zt,preset:"scroll",backgroundColor:N.transparent},g.a.createElement(we,{headerTx:"demoScreen.howTo",leftIcon:"back",onLeftPress:function(){return e.goBack()},style:Ft,titleStyle:Mt}),g.a.createElement(Y,{style:Ut,preset:"header",tx:"demoScreen.title"}),g.a.createElement(Y,{style:Gt,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 "+_t+' 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:Nt,textStyle:Wt,tx:"demoScreen.reactotron",onPress:t}),g.a.createElement(Y,{style:Xt,tx:"demoScreen."+W.a.OS+"ReactotronHint"})),g.a.createElement(pe,{style:Nt,textStyle:Wt,tx:"demoScreen.demoList",onPress:function(){return e.navigate("demoList")}}),g.a.createElement(X,{source:Bt,style:Kt}),g.a.createElement(C.a,{style:Qt},g.a.createElement(Y,{style:Yt,text:"Made with"}),g.a.createElement(X,{source:Lt,style:Jt}),g.a.createElement(Y,{style:Yt,text:"by Infinite Red"}))))})),n(72)),qt=n(31),$t=qt.d.model("Character").props({id:qt.d.identifierNumber,name:qt.d.maybe(qt.d.string),status:qt.d.maybe(qt.d.string),image:qt.d.maybe(qt.d.string)}),en=function(){function e(t){St()(this,e),this.api=t}return At()(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=Pt(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}(),tn=qt.d.model("CharacterStore").props({characters:qt.d.optional(qt.d.array($t),[])}).extend((function(e){return{views:{get environment(){return Object(qt.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 en(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)}}})),nn=qt.d.model("RootStore").props({characterStore:qt.d.optional(tn,{})}),rn=Object(h.createContext)({}),an=rn.Provider,on=function(){function e(){St()(this,e),this.api=new Rt}return At()(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 cn(){var e;return c.a.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new on,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 ln(){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(cn());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=nn.create(t,n),r.next=17;break;case 13:r.prev=13,r.t1=r.catch(3),e=nn.create({},n);case 17:return Object(qt.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 sn={flex:1},un={backgroundColor:N.transparent},dn={paddingBottom:H[5]-1,paddingHorizontal:H[4],paddingTop:H[3]},pn={fontSize:12,fontWeight:"bold",letterSpacing:1.5,lineHeight:15,textAlign:"center"},fn={alignItems:"center",flexDirection:"row",padding:10},hn={borderRadius:35,height:65,width:65},gn={marginLeft:10},mn={paddingHorizontal:H[4]},bn=(Object(R.a)((function(){var e=Object(D.useNavigation)(),t=Object(h.useContext)(rn).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:sn},g.a.createElement(Ne,null),g.a.createElement(Ve,{style:un,preset:"fixed",backgroundColor:N.transparent},g.a.createElement(we,{headerTx:"demoListScreen.title",leftIcon:"back",onLeftPress:function(){return e.goBack()},style:dn,titleStyle:pn}),g.a.createElement(Zt.a,{contentContainerStyle:mn,data:We()(n),keyExtractor:function(e){return String(e.id)},renderItem:function(e){var t=e.item;return g.a.createElement(C.a,{style:fn},g.a.createElement(X,{source:{uri:t.image},style:hn}),g.a.createElement(Y,{style:gn},t.name," (",t.status,")"))}})))})),n(162)),yn=n.n(bn),vn={backgroundColor:N.palette.black,flex:1},On=Object(R.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},b=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=14;break}if(t=JSON.parse(e),Object.keys(t).length!==Object.keys(m).length){n.next=10;break}return n.abrupt("return",t);case 10:return n.abrupt("return",m);case 11:n.next=15;break;case 14:return n.abrupt("return",m);case 15:n.next=20;break;case 17:n.prev=17,n.t0=n.catch(0),console.log(n.t0);case 20:case"end":return n.stop()}}),null,null,[[0,17]],Promise)};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),n.next=4,c.a.awrap(y.a.mergeItem("@physics",t));case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),console.log(n.t0);case 9:case"end":return n.stop()}}),null,null,[[0,6]],Promise)}(n);b()}),1e3);return function(){return clearTimeout(e)}}),[n]);return Object(h.useEffect)((function(){b().then((function(e){return r(e)})),yn.a.get("http://localhost:35901/graph").then((function(e){var t=function(e){var t=[];return e.nodes.forEach((function(e){return t.push(e.id)})),f(t),t}(e.data);f(t),console.log(p);var n=function(e,t){var n=[];return e.links.forEach((function(r){for(var a,o,i=0;i<t.length;i++){var c=e.nodes[i];!c.neighbors&&(c.neighbors=[]),!c.links&&(c.links=[]),r.target===t[i]?(c.links.push(r),a=[c,i],n.push(r)):r.source===t[i]&&(c.links.push(r),o=[c,i])}a&&o&&(e.nodes[a[1]].neighbors.push(o[0]),e.nodes[o[1]].neighbors.push(a[0]))})),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:vn,preset:"scroll"},g.a.createElement(at,{physics:n,setPhysics:r}),g.a.createElement(Je,{physics:n,gData:l,nodeIds:p})):null})),En=Object(S.a)();function kn(){return g.a.createElement(En.Navigator,{screenOptions:{cardStyle:{backgroundColor:"transparent"},headerShown:!1}},g.a.createElement(En.Screen,{name:"graph",component:On}))}var xn=["welcome"],wn=function(e){return xn.includes(e)},Sn=n(220),jn=Object(S.a)(),An=function(){return g.a.createElement(jn.Navigator,{screenOptions:{cardStyle:{backgroundColor:N.palette.deepPurple},headerShown:!1}},g.a.createElement(jn.Screen,{name:"mainStack",component:kn,options:{headerShown:!1}}))},Cn=g.a.forwardRef((function(e,t){return g.a.createElement(Sn.a,V()({},e,{ref:t}),g.a.createElement(An,null))}));Cn.displayName="RootNavigator";var Pn=n(80),Dn={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(453);var In=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},Vn=n(163);Object(Vn.enableScreens)();var Bn=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){Dn[t]=function(){var n;if(e.current)return(n=e.current)[t].apply(n,arguments)}};for(var n in Dn)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 Pn.a.addEventListener("hardwareBackPress",t),function(){return Pn.a.removeEventListener("hardwareBackPress",t)}}),[e])}(e,wn);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:ln().then(i);case 3:case"end":return e.stop()}}),null,null,null,Promise)}),[]),a?g.a.createElement(In,null,g.a.createElement(an,{value:a},g.a.createElement(m.b,{initialMetrics:b.a},g.a.createElement(Cn,{ref:e,initialState:s,onStateChange:u})))):null},Ln=n(264);Object(Ln.a)(Bn);t.a=Bn},288:function(e,t,n){n(289),e.exports=n(290)},307:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAAAXNSR0IArs4c6QAAAQNJREFUKBWdk8EOwUAQhme2InFy9yB1cSTReAIOPIeEEyKObs4knkBS2pNbK57A3cETcKBjtmKzJd0mO5fO9p//63Q6BciJ0D83wn3cyZHV7ZLKtISNPUqeawB8EFEVEV+anElF5sSHj5nYDI4AmpnM0pvpQDcjinHTc+eyyBT4FX/NLc+dfjXTNQXYmiUYAz/uAtGGc35nsSOgwPREXeP5RBj60ZUIatzKnQAqekFRzp5biSlL/lQLbqaMCAc2XYqMSkdx/MzAP42IkgkLLxTYb7XrW1VUkKQAWRNaQhTAFpIB2ED+VlkukNxChjmQ0IoH7EhwXvwBZGEKEThAAcOif+ENKNR3psyHynYAAAAASUVORK5CYII="},308:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAIZJREFUGBljZACC/w4OMgy/fnUxMDI6gPgM//8fYGBjK2M8cOAJI1TyIlBYCCyJIN4BFekzgXWCJBkZtwMFZMEYxAaJAU1l/G9t/QxopCRIAmQkyACoqY+Bmp4zIUzEzmICOwgk9/v3LJBOsG4gG6wc6FjCjgTbC3QtUMdykJ1gDGIDxUByAK6uPrQ53B7lAAAAAElFTkSuQmCC"},313:function(e,t,n){e.exports=n.p+"static/media/bg.27c56310.png"},373:function(e,t,n){e.exports=n.p+"static/media/bowser.4ba9aedf.png"},440:function(e,t,n){e.exports=n.p+"static/media/logo-ignite.5c0bc1b0.png"},441:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAIZJREFUGBljYACC////5wHxIyB+AsRFQNwPxG+A+BIQ+4DUgBTFADE+8Bco6QFSeB2fKqjcASagofxgo/ET7CCFq/CrAcsuAVktAMTX8Fi/EyjHAlYOZMgD8X0gRgfHgAK8KDYCBaSBGNnk3UA+N4oiGAcoIQLEZ4F4HRCzw8Sx0kAFzNgkAGi11d75H7oeAAAAAElFTkSuQmCC"}},[[288,1,2]]]); -//# sourceMappingURL=app.f2b5be91.chunk.js.map
\ No newline at end of file |