diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-18 21:25:14 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-18 21:25:14 +0200 |
commit | fdfb0e4e7a145b2b4dfd6abe3200f9d9c9650763 (patch) | |
tree | 4d188893f400d353ae48c68b3a03fdaaef34079b /web-build/static/js/app.f9550138.chunk.js | |
parent | 75a0973d017f86020ea05255b87bcc0eaf962896 (diff) |
include build
Diffstat (limited to 'web-build/static/js/app.f9550138.chunk.js')
-rw-r--r-- | web-build/static/js/app.f9550138.chunk.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web-build/static/js/app.f9550138.chunk.js b/web-build/static/js/app.f9550138.chunk.js new file mode 100644 index 0000000..f1b5982 --- /dev/null +++ b/web-build/static/js/app.f9550138.chunk.js @@ -0,0 +1,2 @@ +(this.webpackJsonp=this.webpackJsonp||[]).push([[0],{222: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"}}')},223: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(222),p=n(223);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(181).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),R=n(50),I=n(19),B=n.n(I),V=n(17),T=n.n(V),z=n(58),L={black:"#1d1d1d",white:"#ffffff",offWhite:"#e6e6e6",orange:"#FBA928",orangeDarker:"#EB9918",lightGrey:"#939AA4",lighterGrey:"#CDD4DA",angry:"#dd3333",deepPurple:"#5D2555"},F={palette:L,transparent:"rgba(0, 0, 0, 0)",background:L.white,primary:L.orange,primaryDarker:L.orangeDarker,line:L.offWhite,text:L.white,dim:L.lightGrey,error:L.angry,storybookDarkBg:L.black,storybookTextColor:L.black},N=[0,4,8,12,16,24,32,48,64],H=n(9),W={primary:H.a.select({ios:"Helvetica",android:"normal"}),secondary:H.a.select({ios:"Arial",android:"sans-serif"}),code:H.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:F.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:F.dim}),secondary:U(U({},G),{},{fontSize:9,color:F.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=T()(e,Q),s=r&&f(r,a)||o||i,u=[K[n]||K.default,c];return h.createElement(z.a,B()({},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"===H.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,B()({},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:N[4],paddingBottom:N[4],borderBottomWidth:1,borderBottomColor:"#3A3048"},ee={marginRight:N[4]-1,marginTop:N[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:N[2],paddingHorizontal:N[2],borderRadius:4,justifyContent:"center",alignItems:"center"},le={paddingHorizontal:N[3]},se={primary:ie(ie({},ce),{},{backgroundColor:F.palette.orange}),link:ie(ie({},ce),{},{paddingHorizontal:0,paddingVertical:0,alignItems:"flex-start"})},ue={primary:ie(ie({},le),{},{fontSize:9,color:F.palette.white}),link:ie(ie({},le),{},{color:F.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=T()(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,B()({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:F.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:F.line,padding:N[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:F.transparent});var ve={flexDirection:"row",paddingHorizontal:N[4],alignItems:"center",paddingTop:N[5],paddingBottom:N[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(53),Ae=n(78),Ce={none:0},Pe={fixed:{outer:{backgroundColor:F.background,flex:1,height:"100%"},inner:{justifyContent:"flex-start",alignItems:"stretch",height:"100%",width:"100%"}},scroll:{outer:{backgroundColor:F.background,flex:1,height:"100%"},inner:{justifyContent:"flex-start",alignItems:"stretch"}}};var De="ios"===H.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 Be(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),F.palette.offWhite;n(60),F.palette.white;function Ve(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 Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze={stretch:Te(Te({},{position:"absolute",top:0,left:0,bottom:0,right:0}),{},{resizeMode:"stretch",width:null,height:null})},Le=n(314);function Fe(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||Le;return g.a.createElement(X,{source:i,style:o})}var Ne=n(20),He=n.n(Ne),We=n(145),Me=n(170),Ue=n(468),Ge=n(469),Ke=n(470),Qe=n(471),Ye=n(251);function Je(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 Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _e={justifyContent:"center"},Ze=Object(R.a)((function(e){var t=e.style,n=e.physics,r=e.setPhysics,a=e.gData,i=(e.nodeIds,Object(We.a)([_e,t]),Object(h.useRef)());Object(h.useEffect)((function(){var e=i.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)}));Object(h.useCallback)((function(e){e.collapsed=!e.collapsed,setPrunedTree(getPrunedTree())}),[]);var c=Object(h.useState)(new Set),l=o()(c,2),s=l[0],u=l[1],d=Object(h.useState)(new Set),p=o()(d,2),f=p[0],g=p[1],m=Object(h.useState)(null),b=o()(m,2),y=(b[0],b[1]),v=function(){u(s),g(f)},O=function(e){s.clear(),f.clear(),S(null),v()},E=function(e){console.log("hover"),w||(s.clear(),f.clear(),e&&(s.add(e),e.neighbors.forEach((function(e){return s.add(e)})),e.links.forEach((function(e){return f.add(e)}))),y(e||null),v())};Object(h.useEffect)((function(){!n.threedim&&i.current.d3ReheatSimulation()}),[n]);var k=Object(h.useState)({}),x=o()(k,2),w=x[0],S=x[1],j=Object(h.useState)(0),A=o()(j,2),P=A[0],D=A[1],R=Object(h.useState)({nodes:[],links:[]}),I=o()(R,2),B=I[0],V=I[1];Object(h.useEffect)((function(){B.nodes.length&&!n.local&&r(Xe(Xe({},n),{},{local:!0}))}),[B]);var T=function(e,t){s.clear(),f.clear(),console.log(B),t.timeStamp-P<400&&function(e){console.log(B),B.nodes.length&&V({nodes:[],links:[]});var t=B;console.log(t.nodes),e.local||(t={nodes:[],links:[]},console.log("length is 0"),e.local=!0,t.nodes.push(e)),e.links.length&&e.links.forEach((function(n){if(!n.local){console.log("0"),n.local=!0,t.links.push(n),console.log(n);var r=a.nodes[n.targetIndex],o=a.nodes[n.sourceIndex];r.id!==o.id&&(r.id===e.id?(console.log("1. I am the target, the source is "),console.log(o),o.local?console.log("2.5 The source is already local"):(console.log("2. The source is not local"),o.local=!0,t.nodes.push(o))):(console.log("3. I am the source"),r.local?console.log("The target is already local"):(console.log("4. The target is not local."),r.local=!0,t.nodes.push(r))))}})),V(t)}(e),e&&(s.add(e),e.neighbors.forEach((function(e){return s.add(e)})),e.links.forEach((function(e){return f.add(e)}))),S(e||null),v(),D(t.timeStamp)};return h.createElement(C.a,null,n.threedim?h.createElement(Me.b,{ref:i,graphData:n.local?B:a,nodeAutoColorBy:n.colorful?"id":void 0,nodeColor:n.colorful?void 0:function(e){return 0===s.size?"rgb(100, 100, 100, 1)":s.has(e)?"purple":"rgb(50, 50, 50, 0.5)"},linkAutoColorBy:n.colorful?"target":void 0,linkColor:n.colorful?void 0:function(e){return 0===f.size?"rgb(50, 50, 50, 0.8)":f.has(e)?"purple":"rgb(50, 50, 50, 0.2)"},linkDirectionalParticles:n.particles,nodeLabel:function(e){return e.title},linkWidth:function(e){return f.has(e)?3*n.linkWidth:n.linkWidth},linkOpacity:n.linkOpacity,nodeRelSize:n.nodeRel,nodeVal:function(e){return s.has(e)?3*e.neighbors.length:2*e.neighbors.length},linkDirectionalParticleWidth:n.particleWidth,onNodeHover:n.hover?E:null,d3AlphaDecay:n.alphaDecay,d3AlphaMin:n.alphaTarget,d3VelocityDecay:n.velocityDecay,nodeThreeObject:n.labels?function(e){if(s.has(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,onNodeClick:T,onBackgroundClick:O}):h.createElement(Me.a,{ref:i,graphData:n.local?B:a,nodeColor:n.colorful?function(e){return 1===e.neighbors.length||2===e.neighbors.length?["#ff665c","#e69055","#7bc275","#4db5bd","#FCCE7B","#51afef","#1f5582","#C57BDB","#a991f1","#5cEfFF","#6A8FBF"][e.neighbors[0].index%11]:["#ff665c","#e69055","#7bc275","#4db5bd","#FCCE7B","#51afef","#1f5582","#C57BDB","#a991f1","#5cEfFF","#6A8FBF"][e.index%11]}:function(e){return 0===s.size?"rgb(100, 100, 100, 1)":s.has(e)?"purple":"rgb(50, 50, 50, 0.5)"},linkColor:n.colorful?function(e){return["#ff665c","#e69055","#7bc275","#4db5bd","#FCCE7B","#51afef","#1f5582","#C57BDB","#a991f1","#5cEfFF","#6A8FBF"][a.nodes[e.sourceIndex].index%11]}:function(e){return 0===f.size?"rgb(50, 50, 50, 0.8)":f.has(e)?"purple":"rgb(50, 50, 50, 0.2)"},linkDirectionalParticles:n.particles,onNodeClick:T,nodeLabel:function(e){return e.title},linkWidth:function(e){return f.has(e)?3*n.linkWidth:n.linkWidth},linkOpacity:n.linkOpacity,nodeRelSize:n.nodeRel,nodeVal:function(e){return s.has(e)?e.neighbors.length+5:e.neighbors.length+3},linkDirectionalParticleWidth:n.particleWidth,nodeCanvasObject:function(e,t,r){if(n.labels&&(r>n.labelScale||s.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===s.size?.5*c:s.has(e)?.5:.15*c)+")",t.fillRect.apply(t,[e.x-i[0]/2,e.y-i[1]/2].concat(He()(i))),t.textAlign="center",t.textBaseline="middle",t.fillStyle="rgb(255, 255, 255, "+(0===s.size?c:s.has(e)?1:.3*c)+")",t.fillText(a,e.x,e.y),e.__bckgDimensions=i}},nodeCanvasObjectMode:function(){return"after"},onNodeHover:n.hover?E:null,d3AlphaDecay:n.alphaDecay,d3AlphaMin:n.alphaTarget,d3VelocityDecay:n.velocityDecay,onBackgroundClick:O}))})),qe=n(62),$e=n(5),et=n(45),tt=n.n(et),nt=n(268),rt=n(171),at=n(172);function ot(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 it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ct=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(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.gravityOn,onValueChange:function(){n(it(it({},t),{},{gravityOn:!t.gravityOn}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Gravity: "+t.gravity}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(it(it({},t),{},{gravity:e}))},value:t.gravity,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Repulsive force: "+t.charge}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:-400,maximumValue:100,onValueChange:function(e){n(it(it({},t),{},{charge:e}))},value:t.charge,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Link Force: "+t.linkStrength}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:2,onValueChange:function(e){n(it(it({},t),{},{linkStrength:e}))},value:t.linkStrength,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"'Link Iterations': "+t.linkIts}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(it(it({},t),{},{linkIts:e}))},value:t.linkIts,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Collision"}),h.createElement(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.collision,onValueChange:function(){n(it(it({},t),{},{collision:!t.collision}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Alhpa Decay: "+t.alphaDecay}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(it(it({},t),{},{alphaDecay:e}))},value:t.alphaDecay,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Alhpa Target: "+t.alphaTarget}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(it(it({},t),{},{alphaTarget:e}))},value:t.alphaTarget,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Viscosity: "+t.velocityDecay}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(it(it({},t),{},{velocityDecay:e}))},value:t.velocityDecay,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Galaxy Mode (3D-only)"}),h.createElement(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.galaxy,onValueChange:function(){n(it(it({},t),{},{galaxy:!t.galaxy}))}}))},{title:"Visual",content:h.createElement(C.a,null,h.createElement(Y,{preset:"fieldLabel",text:"Colorful"}),h.createElement(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.colorful,onValueChange:function(){n(it(it({},t),{},{colorful:!t.colorful}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Hover highlight"}),h.createElement(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.hover,onValueChange:function(){n(it(it({},t),{},{hover:!t.hover}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Line Opacity: "+t.linkOpacity}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:1,onValueChange:function(e){n(it(it({},t),{},{linkOpacity:e}))},value:t.linkOpacity,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Line width: "+t.linkWidth}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:.1,maximumValue:10,onValueChange:function(e){n(it(it({},t),{},{linkWidth:e}))},value:t.linkWidth,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Node size: "+t.nodeRel}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(it(it({},t),{},{nodeRel:e}))},value:t.nodeRel,step:.01}),h.createElement(Y,{preset:"fieldLabel",text:"Particles: "+t.particles}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:10,onValueChange:function(e){n(it(it({},t),{},{particles:e}))},value:t.particles,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"Particle Size: "+t.particleWidth}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:1,maximumValue:10,onValueChange:function(e){n(it(it({},t),{},{particleWidth:e}))},value:t.particleWidth,step:.1}),h.createElement(Y,{preset:"fieldLabel",text:"Labels"}),h.createElement(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.labels,onValueChange:function(){n(it(it({},t),{},{labels:!t.labels}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Scale when labels become visible: "+t.labelScale}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:.1,maximumValue:5,onValueChange:function(e){n(it(it({},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(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.collapse,onValueChange:function(){n(it(it({},t),{},{collapse:!t.collapse}))}}),h.createElement(Y,{preset:"fieldLabel",text:"Change starting point: "+t.rootId}),h.createElement(tt.a,{style:{height:40,width:"90%"},minimumValue:0,maximumValue:600,onValueChange:function(e){n(it(it({},t),{},{rootId:e}))},value:t.rootId,step:1}),h.createElement(Y,{preset:"fieldLabel",text:"3D"}),h.createElement(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.threedim,onValueChange:function(){n(it(it({},t),{},{threedim:!t.threedim}))}}),h.createElement(qe.a,{style:{width:"5",height:20,marginVertical:10},value:t.local,onValueChange:function(){n(it(it({},t),{},{local:!t.local}))}}))}],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:lt.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(at.a,{name:"close-circle",color:"#ffffff",size:20}))),h.createElement(je.a,null,h.createElement(nt.a,{activeSections:c,sections:r,touchAbleComponent:ae.a,expandMultiple:!0,renderHeader:function(e,t,n){return h.createElement(rt.a,{duration:400,style:[lt.header,n?lt.active:lt.inactive],transition:"backgroundColor"},h.createElement(Y,{style:lt.headerText},e.title))},renderContent:function(e,t,n){return h.createElement(rt.a,{duration:400,style:[lt.content,n?lt.active:lt.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(at.a,{name:"cog",color:"#ffffff",size:30}))})),lt=$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}}),st={justifyContent:"center"},ut={fontFamily:W.primary,fontSize:14,color:F.primary};Object(R.a)((function(e){var t=e.style,n=Object(We.a)([st,t]);return h.createElement(C.a,{style:n},h.createElement(Y,{style:ut},"Hello"))}));function dt(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ft=n(374),ht={flex:1},gt={backgroundColor:F.transparent,paddingHorizontal:N[4]},mt={color:F.palette.white,fontFamily:W.primary},bt={fontWeight:"bold"},yt={paddingTop:N[3],paddingBottom:N[4]+N[1],paddingHorizontal:0},vt=pt(pt(pt({},mt),bt),{},{fontSize:12,lineHeight:15,textAlign:"center",letterSpacing:1.5}),Ot=pt(pt({},mt),{},{textAlign:"center"}),Et=pt(pt(pt({},mt),bt),{},{fontSize:28,lineHeight:38,textAlign:"center"}),kt=pt(pt(pt({},mt),bt),{},{fontSize:26,fontStyle:"italic"}),xt={alignSelf:"center",marginVertical:N[5],maxWidth:"100%",width:343,height:230},wt=pt(pt({},mt),{},{color:"#BAB6C8",fontSize:15,lineHeight:22,marginBottom:N[5]}),St={paddingVertical:N[4],paddingHorizontal:N[4],backgroundColor:F.palette.deepPurple},jt=pt(pt(pt({},mt),bt),{},{fontSize:13,letterSpacing:2}),At={backgroundColor:"#20162D"},Ct={paddingVertical:N[4],paddingHorizontal:N[4]},Pt=(Object(R.a)((function(){var e=Object(D.useNavigation)();return g.a.createElement(C.a,{testID:"WelcomeScreen",style:ht},g.a.createElement(Fe,null),g.a.createElement(Be,{style:gt,preset:"scroll",backgroundColor:F.transparent},g.a.createElement(we,{headerTx:"welcomeScreen.poweredBy",style:yt,titleStyle:vt}),g.a.createElement(Y,{style:Ot},g.a.createElement(Y,{style:Et,text:"Your new app, "}),g.a.createElement(Y,{style:kt,text:"almost"}),g.a.createElement(Y,{style:Et,text:"!"})),g.a.createElement(Y,{style:Et,preset:"header",tx:"welcomeScreen.readyForLaunch"}),g.a.createElement(X,{source:ft,style:xt}),g.a.createElement(Y,{style:wt},"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:wt},"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:At},g.a.createElement(C.a,{style:Ct},g.a.createElement(pe,{testID:"next-screen-button",style:St,textStyle:jt,tx:"welcomeScreen.continue",onPress:function(){return e.navigate("demo")}}))))})),n(21)),Dt=n.n(Pt),Rt=n(23),It=n.n(Rt),Bt=n(262);function Vt(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 Tt={url:"http://example.com",timeout:1e4},zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tt;Dt()(this,e),this.config=t}return It()(e,[{key:"setup",value:function(){this.apisauce=Object(Bt.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=Vt(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=Vt(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 Lt(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 Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nt=n(441),Ht=n(442),Wt={flex:1},Mt={backgroundColor:F.transparent,paddingHorizontal:N[4]},Ut={paddingVertical:N[4],paddingHorizontal:N[4],backgroundColor:F.palette.deepPurple},Gt={fontWeight:"bold"},Kt=Ft(Ft({},Gt),{},{fontSize:13,letterSpacing:2}),Qt={paddingTop:N[3],paddingBottom:N[5]-1,paddingHorizontal:0},Yt=Ft(Ft({},Gt),{},{fontSize:12,lineHeight:15,textAlign:"center",letterSpacing:1.5}),Jt=Ft(Ft({},Gt),{},{fontSize:28,lineHeight:38,textAlign:"center",marginBottom:N[5]}),Xt={color:"#BAB6C8",fontSize:15,lineHeight:22,marginBottom:N[4]+N[1]},_t={marginVertical:N[6],alignSelf:"center",width:180,height:100},Zt={flexDirection:"row",alignItems:"center",alignSelf:"center"},qt={color:"#BAB6C8",fontSize:15,lineHeight:22},$t={marginHorizontal:N[2],width:10,height:10,resizeMode:"contain"},en={color:"#BAB6C8",fontSize:12,lineHeight:15,marginVertical:N[2]},tn=H.a.select({ios:"Cmd + D",android:"Cmd/Ctrl + M"}),nn=(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 zt).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:Wt},g.a.createElement(Fe,null),g.a.createElement(Be,{style:Mt,preset:"scroll",backgroundColor:F.transparent},g.a.createElement(we,{headerTx:"demoScreen.howTo",leftIcon:"back",onLeftPress:function(){return e.goBack()},style:Qt,titleStyle:Yt}),g.a.createElement(Y,{style:Jt,preset:"header",tx:"demoScreen.title"}),g.a.createElement(Y,{style:Xt,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 "+tn+' 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:Ut,textStyle:Kt,tx:"demoScreen.reactotron",onPress:t}),g.a.createElement(Y,{style:en,tx:"demoScreen."+H.a.OS+"ReactotronHint"})),g.a.createElement(pe,{style:Ut,textStyle:Kt,tx:"demoScreen.demoList",onPress:function(){return e.navigate("demoList")}}),g.a.createElement(X,{source:Nt,style:_t}),g.a.createElement(C.a,{style:Zt},g.a.createElement(Y,{style:qt,text:"Made with"}),g.a.createElement(X,{source:Ht,style:$t}),g.a.createElement(Y,{style:qt,text:"by Infinite Red"}))))})),n(72)),rn=n(31),an=rn.d.model("Character").props({id:rn.d.identifierNumber,name:rn.d.maybe(rn.d.string),status:rn.d.maybe(rn.d.string),image:rn.d.maybe(rn.d.string)}),on=function(){function e(t){Dt()(this,e),this.api=t}return It()(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=Vt(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}(),cn=rn.d.model("CharacterStore").props({characters:rn.d.optional(rn.d.array(an),[])}).extend((function(e){return{views:{get environment(){return Object(rn.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 on(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)}}})),ln=rn.d.model("RootStore").props({characterStore:rn.d.optional(cn,{})}),sn=Object(h.createContext)({}),un=sn.Provider,dn=function(){function e(){Dt()(this,e),this.api=new zt}return It()(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 pn(){var e;return c.a.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new dn,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 fn(){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(pn());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=ln.create(t,n),r.next=17;break;case 13:r.prev=13,r.t1=r.catch(3),e=ln.create({},n);case 17:return Object(rn.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 hn={flex:1},gn={backgroundColor:F.transparent},mn={paddingBottom:N[5]-1,paddingHorizontal:N[4],paddingTop:N[3]},bn={fontSize:12,fontWeight:"bold",letterSpacing:1.5,lineHeight:15,textAlign:"center"},yn={alignItems:"center",flexDirection:"row",padding:10},vn={borderRadius:35,height:65,width:65},On={marginLeft:10},En={paddingHorizontal:N[4]},kn=(Object(R.a)((function(){var e=Object(D.useNavigation)(),t=Object(h.useContext)(sn).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:hn},g.a.createElement(Fe,null),g.a.createElement(Be,{style:gn,preset:"fixed",backgroundColor:F.transparent},g.a.createElement(we,{headerTx:"demoListScreen.title",leftIcon:"back",onLeftPress:function(){return e.goBack()},style:mn,titleStyle:bn}),g.a.createElement(nn.a,{contentContainerStyle:En,data:He()(n),keyExtractor:function(e){return String(e.id)},renderItem:function(e){var t=e.item;return g.a.createElement(C.a,{style:yn},g.a.createElement(X,{source:{uri:t.image},style:vn}),g.a.createElement(Y,{style:On},t.name," (",t.status,")"))}})))})),n(163)),xn=n.n(kn),wn={backgroundColor:F.palette.black,flex:1},Sn=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:0,velocityDecay:.25,gravity:.5,gravityOn:!0,hover:!0,colorful:!0,galaxy:!0,rootId:0,local:!1};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=14;break}if(t=JSON.parse(e),Object.keys(t).length!==Object.keys(m).length){n.next=11;break}return t.local=!1,n.abrupt("return",t);case 11:return n.abrupt("return",m);case 12: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)})().then((function(e){return r(e)})),xn.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){var t=[];return e.links.forEach((function(n,r){for(var a,o,i=0;i<e.nodes.length;i++){var c=e.nodes[i];!c.neighbors&&(c.neighbors=[]),!c.links&&(c.links=[]),!r&&(c.local=!1),n.target===e.nodes[i].id?(c.links.push(n),a=[c,i],n.target!==n.source&&t.push(n)):n.source===e.nodes[i].id&&(c.links.push(n),o=[c,i])}a&&o&&(e.nodes[a[1]].neighbors.push(o[0]),e.nodes[o[1]].neighbors.push(a[0]),n.sourceIndex=o[1],n.targetIndex=a[1],n.index=[r],n.local=!1)})),e.links=t,e}(e.data);console.log(n),s(n)})).catch((function(e){console.log(e),console.log("Couldn't get data.")}))}),[]),l?g.a.createElement(Be,{style:wn,preset:"scroll"},g.a.createElement(ct,{physics:n,setPhysics:r}),g.a.createElement(Ze,{setPhysics:r,physics:n,gData:l,nodeIds:p})):null})),jn=Object(S.a)();function An(){return g.a.createElement(jn.Navigator,{screenOptions:{cardStyle:{backgroundColor:"transparent"},headerShown:!1}},g.a.createElement(jn.Screen,{name:"graph",component:Sn}))}var Cn=["welcome"],Pn=function(e){return Cn.includes(e)},Dn=n(221),Rn=Object(S.a)(),In=function(){return g.a.createElement(Rn.Navigator,{screenOptions:{cardStyle:{backgroundColor:F.palette.deepPurple},headerShown:!1}},g.a.createElement(Rn.Screen,{name:"mainStack",component:An,options:{headerShown:!1}}))},Bn=g.a.forwardRef((function(e,t){return g.a.createElement(Dn.a,B()({},e,{ref:t}),g.a.createElement(In,null))}));Bn.displayName="RootNavigator";var Vn=n(80),Tn={navigate:function(e){},goBack:function(){},resetRoot:function(e){},getRootState:function(){return{}}};function zn(e){var t=e.routes[e.index];return t.state?zn(t.state):t.name}n(454);var Ln=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},Fn=n(164);Object(Fn.enableScreens)();var Nn=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){Tn[t]=function(){var n;if(e.current)return(n=e.current)[t].apply(n,arguments)}};for(var n in Tn)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=zn(t.getRootState());return!n.current(r)&&(!!t.canGoBack()&&(t.goBack(),!0))};return Vn.a.addEventListener("hardwareBackPress",t),function(){return Vn.a.removeEventListener("hardwareBackPress",t)}}),[e])}(e,Pn);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=zn(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:fn().then(i);case 3:case"end":return e.stop()}}),null,null,null,Promise)}),[]),a?g.a.createElement(Ln,null,g.a.createElement(un,{value:a},g.a.createElement(m.b,{initialMetrics:b.a},g.a.createElement(Bn,{ref:e,initialState:s,onStateChange:u})))):null},Hn=n(265);Object(Hn.a)(Nn);t.a=Nn},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.f9550138.chunk.js.map
\ No newline at end of file |