(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;t0&&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;t0&&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