text: (this.webpackJsonpweasley_clock_v2=this.webpackJsonpweasley_clock_v2||[]).push([[0],{77:function(n,e,t){},79:function(n,e,t){},94:function(n,e,t){"use strict";t.r(e);var r=t(0),c=t(3),o=t.n(c),i=t(46),a=t.n(i),u=(t(77),t(13)),s=t.n(u),l=t(15),d=t(14),f=(t(79),t(10)),j=t(5),b=t(23),h=t(6),O=t(24);function p(){var n=Object(j.a)(["\n  font-size: 3px;\n  width: 200;\n  height: 300;\n  color: ",";\n  /* border: 2px solid ; */\n"]);return p=function(){return n},n}function x(){var n=Object(j.a)(["\n  font-size: 6px;\n  // DO NOT MAKE WIDTH AUTO\n  /* width: auto; */\n  height: 300;\n  /* border: 2px solid ; */\n"]);return x=function(){return n},n}var v=function n(){Object(b.a)(this,n),this.locationLabels=[],this.friendLabels=[],this.userLabel=[]},g=function n(){Object(b.a)(this,n),this.x=void 0,this.y=void 0,this.r=void 0,this.x=50,this.y=50,this.r=50},m=h.a.foreignObject(x()),w=h.a.foreignObject(p(),(function(n){return n.color}));function L(){var n=Object(j.a)(["\n  fill: ",";\n  fill-opacity: 75%;\n  transform-origin: center;\n  transform: rotate(","deg) scale(.60) translateY(25%);\n"]);return L=function(){return n},n}function y(){var n=Object(j.a)(["\n  height: 50%;\n  /* height: ","; */\n"]);return y=function(){return n},n}function k(){var n=Object(j.a)([""]);return k=function(){return n},n}var F=h.a.svg.attrs({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 389.6 2628"})(k()),C=Object(h.a)(F)(y(),(function(n){return n.height})),S=h.a.path(L(),(function(n){return n.fill}),(function(n){return n.rotate})),I=function(n){var e=n.rotate,t=n.fill;return console.log("Bellatrix Rotate",e),Object(r.jsx)(C,{rotate:"45deg",children:Object(r.jsx)(S,{d:"M220.31,2394.31c-1.92,-7.29,-3.3,-50.09,-3.06,-95.12s1.35,-240.08,2.45,-433.44s0.42,-399.25,-1.53,-457.52c-2.17,-64.72,-1.73,-114.16,1.12,-127c2.57,-11.6,5.82,-39.77,7.22,-62.61s6.75,-79.59,11.88,-126.12s9.33,-98.09,9.33,-114.56c0,-29.24,-19.81,-157.36,-28.77,-186.12c-2.48,-7.94,-6.89,-41.54,-9.8,-74.65c-6.41,-73,-12.39,-105.29,-24.37,-131.67c-5,-11,-9.14,-26,-9.2,-33.25c-0.12,-15.07,-17,-66.36,-28.91,-87.92c-7.77,-14,-26.24,-66.09,-57.84,-163c-8.5,-26.06,-14.41,-52.81,-13.14,-59.44s0,-18,-2.72,-25.36c-4.32,-11.44,-3.15,-15.75,8.43,-30.93c7.39,-9.69,18.43,-18.88,24.51,-20.41s14.81,-6.91,19.39,-12s11.81,-9.2,16.07,-9.2s24.85,-5.43,45.77,-12.07s39,-11.15,40.09,-10s3.8,15.78,5.92,32.54s6.1,35.9,8.83,42.53s7.59,26.12,10.79,43.34s12.89,53,21.52,79.46c19.31,59.29,31.64,139,34.27,221.54c1.1,34.43,4.25,74.53,7,89.1c11.12,59,15.83,79.69,19.23,84.28c17.86,24.11,33.57,187.82,33.57,187.82c4.07,19.9,-1.46,120.74,-9.63,175.75c-2.56,17.19,-3.42,36.14,-1.92,42.11c1.69,6.75,-2,19.94,-9.84,34.87c-7.64,14.62,-13.7,35.82,-15.48,54.2c-1.61,16.6,-3.78,31.62,-4.83,33.36c-1.83,3.05,-4.1,54.79,-9.06,206.33c-1.26,38.4,-4.48,82.83,-7.15,98.72s-4.89,39.13,-4.9,51.62c0,17,5.31,30.67,0,44.66c-6.12,16.08,-13.55,91.12,-16.95,171c-1.63,38.41,-5.09,95.84,-7.69,127.63s-5.54,67.54,-6.51,79.46s-4.18,55.26,-7.11,96.32s-7.45,92,-10,113.18s-6.83,65.19,-9.48,97.79c-4.66,57.24,-9.82,78,-19.4,78c-2.51,0,-6.13,-6,-8.07,-13.24z","data-name":"Bellatrix",rotate:"".concat(e),fill:t})})},N=function(n){var e=n.rotate,t=n.fill;return console.log("Deth Rotate",e),Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M210 2468.39c-13 51.22-35.4 35.88-42.78 4.64-15.75-66.59-1-231.06 3.8-322.86 2.8-54-6.12-106.6-6.77-119.19-2.16-42.17 20.25-105.37 15.55-155.2-2.61-27.71-13.54-58.06-15.16-87.87-1.58-29.33 10.21-69.37 8.84-99.47-.85-18.6-7.06-41.16-7.61-59.79-1.35-45 16-92.19 14.54-135.67-1.56-45.54-16-87.38-16.25-129-.17-22.39 10-46.39 10.14-67.1.33-46.72-4.57-84.77-6.35-127.44-3.35-80.11 2.64-156.36 0-215.31-3.52-77.53-15.15-126.8-14.2-131.94 2-11.14 16.75-6.43 14.48-8.69-.37-.38-6.26-14.38-6.07-36.86.06-7.09 5.11-14.37 6-22.87.64-5.86-3-12.58-2.18-19.07 2.74-21.38 6.08-46 6.93-73.32.15-4.89 2.85-9.71 3-14.72.13-4.52-2.29-9.21-2.17-13.8.42-15.45.8-31.31 1.17-47.34.11-4.79 4.24-8.42 4.35-13.24.15-7-3.73-15.26-3.58-22.31.34-16.79.68-33.56 1-50 .11-5.86 4.76-10.34 4.87-16.11.11-5.31-4.32-11.91-4.22-17.12.34-16.74.67-32.9 1-48.13.16-7.18 7-14.15 7.21-20.88.2-8-6.31-15.65-6.1-22.9 1.18-40.33 2.59-68.23 4.57-73.35 6.4-16.53-45.53-8.48-49.27-76.4-5.5-100.3 45.35-117.51 75.23-128.47 26-9.54 68.75-10 87.26 4.77 30.89 24.61 28.69 39.6 29.71 55.44 1.08 17 25.69 6.88 27.83 57.06 1 23.93 1.79 52-11.89 68.06-14.63 17.14-27.39 11.29-26.15 26.55 1 12.33.07 10.79 1.3 48.68.32 9.59 3.87 26.25-6.36 37.79-.88 1-5.26 20.42-53.42 1.61-4.37-1.7-4 12.43-5 16.4-1.46 5.68-8.78 11.56-9.43 18.14-1.22 12.37 5.82 13 4.73 43.17-.12 3.46-4.53 12.87-4.25 16.47.37 4.73 3.43 9.57 3.81 14.55 1.38 18.23-.4 38.67-.27 59.94 0 3.63-1.69 7.49-1.36 11 .25 2.58 2.5 4.82 2.84 7.37 2 14.91 5 29.48 2.4 47.2-.42 2.89-2.14 9.39-2.19 16.94 0 2.92 3.2 8 3.22 11.38.07 10.73-.3 21.06-1 34.88-.6 11.61-7.39 26.49-7 38.36.3 9.1 10.46 9.8 11.42 17.9 3.12 26.07-.89 53.32-1.34 54.69-4.65 14.09 4.41 5 7.45 14.42 3.91 12.11-1.32 47.14-5.6 72.46-3.15 18.63 3.83 64.48 1.8 133.06-.54 18.22-10.55-4.58-8.66 146.48.53 42.27-5.34 84.45-5.6 117.78-.3 36.9 4.61 63.4 4.63 76.69.27 162.4-12.68 215.48-13.77 249.92-1.14 36.13 4.31 94.89 3.69 151.27-.3 27.93-3.46 89.86-4.93 137.69-1.15 37.55-6.65 83.57-7.58 118.76-1.58 60.16 4.22 120.54 3.62 177.35-.49 46.37-5.48 91-6.68 129.5-2.62 82.85-11.01 129.38-13.2 138.05z","data-name":"DeathEaters",fill:t,rotate:"".concat(e)})})},z=function(n){var e=n.rotate,t=n.fill;return console.log("Dumb Rotate",e),Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M227.33 2514c-4.55 2.88-22.82 7-29.93-.62-6.52-7-10.13-221.48-14-227.42-14.76-22.77-13.17-96.85 2.4-112.42 1.95-1.94 3.53-7.5 3.53-12.36 0-9.38 4.33-245.09 5.22-275.25.86-29.47-.63-38.89-7.32-46.28-10.45-11.55-16.9-38.46-17-71.16-.09-20.4 2.12-27.3 11.93-37.1 6.62-6.63 12-14.08 12-16.56s3.25-5.77 7.22-7.29 2-27.5 2-35.31c.06-10.5 8.18-187.51 8-233.32 0-7.73-4.1-35.76-9.2-41.57-20.92-23.84-34-61.37-17.67-101.33 8.52-20.87 29.57-40.1 29-83.63-.26-19.4 5.61-86.57 2.11-149.08-5.87-105.13-20.29-78.84-28.69-100.94-9.9-26.06-7.2-38.22-7.2-42.23 0-5.28.65-47.73 17.89-63.55 15.33-14.06 15-12.53 18.71-86.42 2.12-42.09-2.4-77.13-3.92-104.78-3.78-69-14.42-62.74-18.63-66.55-9.56-8.65-14.05-101.77-14.05-105.92 0-5.43 33.72-27.76 33.78-44.22.06-19.22.88-47.21-1.34-105.11-.56-14.72-23.09-34-25.23-79.14-1.44-30.52 31.28-61.52 28.92-68.94-1.86-5.82-5.86-19.37-8.86-30.16s-9.36-23.4-14-28c-11-11-10.63-20 1.22-31.81 10.29-10.3 16.06-11.23 31.3-5 6.5 2.63 12.47 1.41 18.34-3.76 11.26-9.88 34.69-8 51.84 4.24 21.25 15.13 22 26.11 4.3 62.7l-15.74 32.54 15.18 22.91c19.3 29.14 20.24 55.54 3.14 87.67-8.77 16.46-13.5 28.62-11.83 56.21.54 8.79-.21 19.47-.21 32.66 0 37 1.95 66.26 4.42 66.26s8.94 7.3 14.45 16.22c8.19 13.26 10 24.07 10 59.13 0 44.08-6.83 64.32-21.72 64.32-9.13 0-11.06 15.67-15.12 122.8-4.4 115.94-4.46 115 8.57 133.32 20.43 28.69 17.16 87.86-6.64 120.1-8.37 11.34-9.83 26.61-14.49 151.79l-5.19 139.18 14.04 21.18c18.48 28 18.83 59.88 1.05 97-6.89 14.36-13.65 30.44-15 35.73s-3.92 69.23-5.65 142.08l-3.14 132.44 12.85 27.92c16.93 36.8 17.12 69.7.56 94.73-13.55 20.47-13.94 24.19-22.68 214.53-4.93 107.23-4.68 123.34 2.21 146.56 10 33.62 9.77 45.62-1.56 82.83-7.64 25.14-9.68 49.85-11.39 138.29-1.67 84.65-3.54 108.52-8.78 111.89z","data-name":"Dumbeldore",fill:t,rotate:"".concat(e)})})},M=function(n){var e=n.rotate,t=n.fill;return console.log("Dumb Rotate",e),Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M202.89 872.9c2.68-2.56 5-209.84 3-237-1.5-20.36-5.91-36.51-13.15-48.16-8.25-13.27-11.12-25.71-11.81-51.24-1.21-44.91 5.24-64.51 23.34-70.81 13.8-4.82 14.16-5.77 13.92-36.9-.15-17.57 0-47.26.36-66s-2.68-45.8-6.7-60.2c-15-53.75-10.43-86.28 14.11-100 6.7-3.75 6.41-6.57-2.53-25.39-5.53-11.65-14.41-28.66-19.72-37.8-7.34-12.64-8.23-17.53-3.72-20.4 3.26-2.07 4-3.8 1.73-3.84-8.37-.15 8-14.52 16.56-14.52 5.43 0 19-5.85 33.72-6.83 21.2-1.41 44.87 2.37 50.43 7 11.08 9.19 8.29 31.48-7.41 59.3-7.95 14.08-14.45 28.28-14.45 31.55s5.73 13.47 12.72 22.64c11.65 15.28 12.48 19.28 9.83 47.64-1.59 17-7.57 40.15-13.3 51.37-9 17.66-10.5 29.08-11 84.36l-.62 63.94 31.39 28.67-1.9 40.5c-1.75 37.26-9.3 60.61-22.86 70.74-4.53 3.39-12.87 36.51-16.36 65-1.38 11.27-4.89 149.33-6.87 204.88 7 5.51 10.88 12.83 16 29.41 11.9 38.48 7.49 71.79-13.62 102.94-9.46 14-9.86 21.2-9.86 179.56 0 115.53 1.61 166 5.34 168.45 2.94 1.89 8.31 11.72 11.93 21.83 6 16.8 5.59 21-4.76 48.16-20.06 52.73-14.54 241.76-10.46 318.72 1.87 35.17 5.86 44 11.41 55.88 9.11 19.54 5.08 58.06-4.32 74.51-8.15 14.24-13.18 19.66-14.63 76.1-1.17 45.8 1.77 101.75 1.77 101.75.36 50.54.75 102.54 1.06 141.33.09 12.06-.81 24.9 6.37 43.29 4.91 12.56.21 34.75-3.05 43.54-5.76 15.53-8.42 33.73-7.78 60.8.63 26.65-5.92 75.25-6.57 108.36-1.39 70.68-6.29 86.69-26.56 86.69q-14 0-16.1-8.43c-1.15-4.64-1-43.1.35-85.49 3.94-124.85 3.14-147.71-5.75-163.74-9.83-17.71-10.09-29.21-1.24-54.31 5-14.11 7-46.16 7.37-117.39.29-53.9 1.75-124.13 3.26-156.07 2.65-56.47 5.71-57.34-4.25-72.24-17.71-26.5-15-56.64-6.31-76.63 9.73-22.39 6.62-20.51 5.32-132-.71-59.91 3.32-158.56 2.9-175.11-1-39.48-5.56-70.51-10.87-73.79-5.55-3.43-5.54-39.24 0-42.66 2.35-1.46 4.56-44.39 4.92-95.4.6-85.06 6.73-217.38 12.38-267.32 0-.23 0-.46.08-.69a20.92 20.92 0 0 1-4.16-1.61c-9-4.7-15.73-24.38-18.24-35.82-3.49-15.9-4.24-41.84-2.71-59.54 2.45-28.48 19.18-41.04 22.07-41.58z","data-name":"Dumbeldore2",fill:t,rotate:"".concat(e)})})},q=function(n){var e=n.rotate,t=n.fill;return console.log("Dumb Rotate",e),Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M247.78 2484.49c-2.62-4.89-4.75-27.34-4.75-49.9s-2.93-52.5-6.5-66.54c-6.48-25.47-6.55-47.32-.52-163.45 1.93-37.12.65-93.51-3.27-144.48-4.16-54.13-5.8-137.21-4.66-235.65 1.21-104.57.1-155.14-3.54-161.94-5.7-10.65-9.38-145.54-4.2-153.92 3.66-5.93 3.77-169.57.16-244.86-1.4-29.14-.23-86.57 2.59-127.62 3.6-52.43 3.61-93.29.07-137.26-2.78-34.43-5-68.65-5-76s-3-20.86-6.8-30c-8.22-19.68-9-62.31-1.57-83.68 4.8-13.76 4.07-16.58-7.22-27.86-15.15-15.16-16.36-35.47-3.6-60.51 6.59-12.91 7.55-19 3.61-23s-3.43-7 1.88-11.13c17.16-13.53 20.42-23.37 22-66.43.89-24.17-.49-55.06-3.07-68.64-3.91-20.62-24-58.32-43.72-82.21-18.83-22.77-43.35-69.19-53.6-101.46-24.59-77.43-7.42-181.67 36.66-222.53 30.26-28 88.91-38 127.36-25.64 10 3.21 18.65 7 25.51 12 9.31 6.84 27.51 21.41 44.21 55.31 13.19 26.66 15.47 36.48 14.87 62.91-.76 33.09-11.07 68.37-24.21 82.89-7.35 8.12-7.17 9.48 2.53 19.81 11.36 12.09 13.79 36.12 5.28 52-3 5.62-3.41 12-1 15.33 2.31 3.14 4.78 12.59 5.48 21 1 11.86-2.7 19.67-16.51 35l-17.74 19.67.59 54.13c.59 53.33 1.32 61.5 6.69 75.8 1.5 4 6.43 21.68 11 39.34 9.72 37.84 6.93 60.28-10 80.41-14.35 17-14.62 20.61-2.22 29.55 5.3 3.82 9.63 12 9.63 18.2s2 10 4.47 8.5c14-8.64 14.45 65.15.6 95.55-5.43 11.93-9.88 27.77-9.89 35.21s-3.11 31.14-6.9 52.68-8.19 66-9.76 98.73-3.85 76.89-5.06 98.08-3.34 87.29-4.73 146.89-3.58 138.7-4.85 175.78-3.63 130.27-5.25 207.09-4.54 180.84-6.49 231.17-4.2 150-5 221.53-2.1 138.7-2.88 149.3-2.82 48.52-4.53 84.28-5.28 70.77-7.93 77.8c-6.06 16.08-21.66 20.93-28.17 8.77zM231.18 439c1.54-7.29 4.73-16.85 7.11-21.26 2.93-5.45 2.06-9.88-2.7-13.83-12.06-10-8.54-36.28 7.28-54.29l14.29-16.28-13.6-13c-26.55-25.43-31.09-69.14-10-96 11.54-14.68 38.93-24.55 57.68-20.8 29.54 5.91 16.21-25.13-17.36-40.42-53.06-24.18-106 4.33-122 65.73-5.71 21.83-3.9 77.52 3.75 115.35 4.93 24.37 19.31 55 25.84 55.06 1.91 0 11.09 11.95 20.41 26.52s19.1 26.48 21.73 26.48 6.04-5.97 7.57-13.26z","data-name":"Fleur",fill:t,rotate:"".concat(e)})})},A=function(n){var e=n.rotate,t=n.fill;return console.log("Dumb Rotate",e),Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M201.85 2503.51c-5.88-2.22-12.38-10.09-14.45-17.49-5.72-20.47-3.22-370.41 4.14-581.74 9-257.23 9.13-993.26.22-998.77-10.91-6.74-6.2-118.54-6.2-118.54l2.44-21.68c1.34-11.92-2-51.89.23-72.24 3.51-32.44 3.59-28.92-1.67-69.83-2.39-18.54-3.54-61.88-2.57-96.32s1.45-69.11 1.07-77c-.92-19.08-.7-33.87 1.87-125.22 1.19-42.38.66-80.31-1.19-84.28s-1.17-12.64 1.5-19.26 5.21-27.21 5.62-45.76c1.13-50.07 22.87-84.28 53.57-84.28 27.17 0 45 31.94 51 91.29 5.76 57 5.64 59.5-3.12 65.9-7.07 5.17-6.88 7.43 2.19 25.19 12.67 24.85 12.62 45.74-.17 66.42-8.15 13.2-9 17.73-4.18 23.49 7.84 9.45 6.6 51.93-2 68.56-6.08 11.76-5.85 15.05 2.12 30 10.88 20.44 11.92 51.95 2.19 65.85-6.14 8.76-6.26 12.93-.78 28.77 7.09 20.5 3.2 44.59-8.79 54.54-5.83 4.84-6.06 7.83-1.26 16.26 7.59 13.32 11.24 253.79 4.14 272.28-2.82 7.34-6 105.71-7.6 236.51-4.77 384.87-7.44 545.17-9.82 587.55-1.27 22.51-3.5 106-5 185.41-3.83 207.84-15 531.43-19.36 559.09-2.07 13.19-14.68 29.38-28.67 36.82-2.65 1.4-9.63.73-15.51-1.49z","data-name":"Ginny",fill:t,rotate:"".concat(e)})})},R=function(n){var e=n.rotate,t=n.fill;return console.log("Dumb Rotate",e),Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M200.69 2343.74c2.05-80.13 4.27-164.11 4.93-186.62 2.62-89.9 5.62-639.39 4.28-693.91-1-41.49-.62-90.59-1.32-174.46-.11-13.27-1.53-87-1.63-101-.59-81-1-132.61-1.11-227.42-.26-190.35-1-208.11-8.86-219.71-5.73-8.43-9.14-17.48-11.38-34.64-2.17-16.58-.23-40.56-.4-63.21-.16-22.9 8.31-43.13 12.58-60.91 5.78-24.1 5.83-356.59-2.91-359.52-3.22-1.08-7.34-9.94-9.15-19.68s-9.73-30.06-17.61-45.15-13-30.89-11.38-35.17c4.06-10.57 41.36-26.34 70.47-29.78 16.35-1.94 32.49-.2 50.37 5.42 22 6.92 28.72 11.91 41 30.39 8.06 12.17 14.65 26.36 14.65 31.54S324.56 182 314 197.42l-19.16 28.06 2.65 73.65c1.46 40.52 3.55 129.63 4.65 198 1.77 109.71 3.1 126.87 11.3 145.41 16.81 38 15.25 77.07-3.86 96.62l-13.94 14.26-3.1 192.58c-1.72 105.89-5.47 214.1-8.35 240.46a576.65 576.65 0 0 0-1.55 96.32c2 26.62 4.05 53.81 4.51 60.43a70.23 70.23 0 0 1-3.08 23.25c-2.15 6.16-3.82 25.67-3.72 43.35.75 126.67-.29 228.33-2.38 231.72-1.84 3-3.37 397.85-1.72 443.35.14 4-1.1 13.72-2.77 21.67s-6.06 92-9.77 186.81c-4.67 119.6-6.33 166.26-15.09 184.45-2.69 5.6-13.55 11.28-24.71 11.69-12.72.47-25.75-5-26.24-8.91-3.09-24.28 3.02-136.85 3.02-136.85z","data-name":"Harry",fill:t,rotate:"".concat(e)})})},D=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M220.15 2526.75c-5.05-8-7.54-36.07-9.51-107.16-3.49-125.53-11.84-370.9-14.93-438.26-1.33-29.13-2.68-135.32-3-236s-2.26-187.34-4.33-192.64-1.8-13.41.6-18 4.25-43.63 4.1-86.68c-.29-87.16-1.05-101.28-5.56-104.78-1.71-1.32.06-18.66 3.95-38.52 4.54-23.28 6-47.26 4-67.43-5.88-59.46-7.42-220.76-2.32-243.5 5.61-25 7.12-114.79 2.07-123-4.21-6.82-5.53-81.43-1.44-81.43 1.71 0 3-4.87 2.94-10.83s0-32.51.18-59c.38-54.9-.79-72.39-5.89-88.24-2.46-7.62-1.13-13.92 4.19-19.79 6.51-7.2 6.84-10.91 2-22.53-6.29-15.16-8.88-127.09-2.94-127.09 2 0 2.74-23.74 1.7-52.76s-.34-65.93 1.56-82c2.63-22.38 1.77-31.67-3.65-39.42-5-7.08-5.69-12.48-2.41-17.9 2.58-4.27 4.45-27.81 4.13-52.31s1.16-44.54 3.27-44.54 3.84-2.17 3.84-4.82-2.71-4.28-6-3.61c-4.26.85-6.14-7.51-6.44-28.64-.4-27.75.45-30.19 12-34.94 6.85-2.8 25.46-6.16 41.35-7.45 22.8-1.86 32.06-.44 43.86 6.75l14.95 9.11-.61 43.7c-.35 25.05-2.92 46-6 49.11-3.84 3.83-4 10.49-.56 23s3.22 22.07-.62 32.71c-4.07 11.24-4.1 26.15-.13 57.83 6.46 51.57 6 118.67-1 140.61-4.07 12.77-3.41 20.5 3.22 37.87 6.49 17 7.44 27.31 4.3 46.56-3.82 23.46-4.76 122.93-1.79 190.89.75 17.22 1.05 45.39.66 62.61s-.42 47.56-.06 67.42c.9 50.36-4.2 162.39-7.64 168-1.57 2.54-.51 10.75 2.35 18.26 3.88 10.15 3.64 18.43-.93 32.3-5.17 15.7-4.86 24.81 1.92 57.79 8.15 39.63 7.2 55-4.57 73.32-5 7.74-6.31 32.93-5.68 108.36.46 54 2.58 101.77 4.72 106.05 3.81 7.65 0 72.27-10.29 172.81-3.35 32.85-3.52 54.16-.5 60.83 2.94 6.49 3.13 47.2.51 110.77-12.58 305.79-19.06 531.25-19.15 667.59-.06 74.2-.83 81.44-9.69 90.3-12.57 12.57-22.25 12.19-30.69-1.2z","data-name":"Hermione",fill:t,rotate:"".concat(e)})})},U=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M174.82 2465.35c-9.73 0-20.54-.36-23.88-15.59-2.84-13 0-77.75 0-82.22 0-7.88 41.91-976.66 44.73-991.22 2.19-11.34 28.06-319.52 39-457.8.28-3.58-3.22-9.14-3-12.48.79-10-.43-27.8 5.39-32.42 3.71-2.94 4.18-14.75 4.89-27.72 1.72-31.51 15.77-179 30-232.76 10.84-41.07 16.35-99.32.75-150.78-6.6-21.77-17.19-32.83-35.4-57-25-33.14-86.52-84.91-92.84-95.77-36-62-18.07-144.69-12.21-164 8-26.46 37.89-31 75.25-32.24 15.13-.5 35.16 2.14 38.62 0s11.51-2.61 17.88-1q18.51 4.64-.89 27.34c-3.6 4.21-13.2 25.89-21.34 48.16-13 35.57-14.13 42.64-9.46 58.27 6 20 41.43 53.49 66.25 62.6 12.47 4.57 19.13 13.05 35.07 44.62 10.82 21.44 22.83 50.84 26.69 65.35 12.75 47.94 7.28 175.77-15 349-4.42 34.43-10.33 58.74-11.27 79.6-.14 3.09-3.88 24.89-2.36 28 2.39 4.82-.08 33.76-2.06 36.3-.85 1.07-4.34 4.77-5.31 8.08-1.71 5.78-.91 13-2 21.4-1.67 13.25-5.24 40.34-7.92 60.2-8.24 60.83-23.43 196.69-28.8 257.66-2.81 31.79-7.23 76.21-9.83 98.73-5.11 44.13-7.09 68.61-28.68 354-24.15 319.2-22.75 296-38.45 638.12-4.74 104.39-8.02 115.57-33.82 115.57z","data-name":"Krum",fill:t,rotate:"".concat(e)})})},P=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M182.16 2047.13c2.69-214.13 11.76-1240.62 13.21-1322.77 2.07-116.55 3.42-220.57 3-231.17-.72-18.55-.83-56.5-.25-86.69.89-46-3.52-90.07-11.33-113.24-11.87-35.26-12.33-101.77-.79-124.69 4.52-9 8.28-19.85 8.37-24.08s2.79-10.93 6-14.91c7.87-9.69 31.58-21.64 35.39-17.83 1.67 1.67 12-2.07 22.88-8.32 34.24-19.63 40-19.84 51-1.83 15.16 24.87 13.29 69.34-4.88 116.06-8 20.63-13 40.11-11 43.27 3.75 6.06 12.5 103.18 12.24 135.94-.46 60-5.08 156.22-7.7 160.46-4.08 6.6-18 230.42-19.92 321.14-.86 39.73-2.79 106.92-4.3 149.3-1.84 51.82-3.74 115.12-5.55 184.19-2.44 235.11-7.16 550.78-13.19 771.77.18 66.89-2.7 185.62-8.2 322.68-5.9 146.85-10.77 145-16.84 161.34-11.34 30.47-47.59 23.47-53.64 9-10.82-25.87-5.68-73-5.28-117.95.01-4.47 9.96-246.38 10.78-311.67z","data-name":"Longbottom",fill:t,rotate:"".concat(e)})})},E=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M256.15 2475c-6.83 6.84-27.46 11.31-38.24 3.94-8.81-6-8.65-23.19-8.85-26.31-4.36-70.38-8.1-453.83-7-794.81.91-283.93-2-363.27-8.7-563.88-.74-22.23-9.87-36.23-11.59-45.47-2.24-12 1.43-48 11.78-54.39 2.65-1.63 11.8-137.7 11.51-195.14-.16-30.82-2.74-89.15-2.74-89.15l-6.68-12c-7.06-12.62-7.52-29.41-5.43-39.56 1.75-8.46 5.36-16.24-1.29-30.4-5.71-12.14-12.54-27.8-13.42-37.72-9.26-104.6 5-162.69 13.33-207.69 5-27 10.1-63.27 17-120.4 1.6-13.24 6.18-136.44 4.7-150.36-1.75-16.38 7.35-19.87 19.77-8.63 9.53 8.63 31.61-12 37.18-12 1.77 0 10-3.93 13.28 9.48.81 3.4 2.32 16 6.46 20.17s15-6.39 17-.37c2.14 6.43-4.18 38.91-4.18 38.91-6.18 37.44-1.29 152.24 12 281.74 6.69 65.14 6.73 77.08.31 110.77-7.13 37.42-11.6 50.6-25 73.88-4.21 7.29-7 25.33-7 45.75-.06 20.09-3 39.19-7.18 47.27-5.92 11.36-6.59 33.69-4.11 137.26 2.57 107.15-6.9 121.6 4.76 134.4 10.5 11.53 11.67 25.62 10.89 45.74-1 25.14-9.44 13.86-10 74.19-.49 55.5.12 172.67-2.1 488.22-3.77 537.77-4.72 662.62-6 788.62-.75 71.26-1.69 79.15-10.46 87.94z","data-name":"Luna",fill:t,rotate:"".concat(e)})})},$=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M185.75 2463c-8.78-10.58-8.76-15.3 3.09-717.63 1.8-105.95 3.55-341.64 3.91-523.74.52-263.84-.58-331.1-5.43-331.1-7.92 0-15.46-14.84-12.23-24.08 1.38-4 6.51-10.06 11.39-13.52 13-9.25 12.52-53.92-.77-65.94-12.53-11.35-12.23-24.13.78-33.24 10-7 10.48-11.26 12.16-107.42 1-55.08 3.93-185.47 6.57-289.75L210 167l16-34.39c8.74-18.88 19.8-37.54 24.57-41.45 7.87-6.47 9.88-5.66 22 8.91 7.36 8.82 18.23 31.12 24.16 49.55 10.68 33.19 10.75 35.4 7.63 231.88-5.55 350.14-5.39 363 4.59 381.56 8.68 16.12 8.66 16.49-1.83 27.65-14.51 15.44-15.1 55.74-1 68.5 12.11 10.95 12.21 21.9.36 37-8.5 10.8-9.32 20.9-9.79 119.84-.27 59.43-1.5 115.64-2.72 124.91s-4.4 88.38-7.08 175.79-6 183.85-7.33 214.31-5.66 148.57-9.57 262.47-9.31 248.27-12 298.59c-13.8 258.43-20.05 362-22.29 369.63-3.2 10.94-41.1 11.89-49.94 1.25z","data-name":"Malfoy",fill:t,rotate:"".concat(e)})})},T=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M189.44 2498.81c-1.73-2.78-1.87-44.51-.33-92.71 7.82-244.52 12.43-1344.9 5.73-1365.32-2.14-6.49-1.43-13.74 1.71-17.52 3.45-4.15 7-60.25 9.89-157.49 2.5-83.08 5.64-168 7-188.84 2.24-34.77 1.48-39-9.49-53.43-14.32-18.78-15.09-29.53-2.67-37.28 9.13-5.7 9.13-5.94 0-17.55-5.09-6.47-9.19-15.27-9.1-19.54.19-9.56 11.16-24.64 17.92-24.64 2.73 0 6.29-3.42 7.9-7.61 5.6-14.6 2.84-27.7-9.12-43.38-6.62-8.69-12-17.16-12-18.84s-5.62-10.41-12.47-19.41c-24.24-31.77-19.26-71.17 11.78-93.28 18.46-13.14 27.09-44.63 17.38-63.41-11.8-22.82-14.22-51.72-5.17-61.72 7.13-7.88 7.2-9.47.64-14.92-10.06-8.35-9.38-32.18 1.08-38.12 6.93-3.93 7.42-6.44 2.74-14.1-9.49-15.51-12.92-43.51-6.3-51.47 7.33-8.85 57.9-9.91 66.41-1.4 8 8 7.2 32.33-1.55 49.1-6.76 13-6.6 14.41 2.44 20.74 11.39 8 12.43 20 2.85 33-5.95 8.11-5.91 10.39.26 17.23 10.14 11.24 8.09 47.77-3.32 59.3-12.3 12.42-3.53 36.84 24.88 69.28 29.08 33.2 29.51 71.39 1.16 101.93-17.62 19-35.39 45.48-35.39 52.8 0 4.47 5.24 13 11.63 19 15.83 14.87 19.22 31.6 10.12 49.85-6.71 13.45-6.73 15.49-.18 19.15 10.6 5.94 9 17.33-4.92 35.63L268.64 640l-2.51 199c-1.39 109.48-4.26 216.24-6.38 237.24s-4.25 96.51-4.71 167.79-1.59 130.89-2.5 132.44-3.12 89.53-4.89 195.53c-5.67 340-21.75 832.69-29.59 906.62-2.4 22.63-3.88 25.28-14.09 25.28-6.28 0-12.82-2.28-14.54-5.06z","data-name":"Minerva",fill:t,rotate:"".concat(e)})})},B=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M178.9 2477c-3-7.79 1.75-208.17 5.85-247.59 4.88-46.8 17.82-813.25 18.43-1090.83.66-308.15 2.52-319.21-13.29-339.18-2.91-3.68-13.81-9.37-19-18.78-6.43-11.56 2-44.25 9-50.26 16.35-14.07 21.92-39.8 12.65-58.44-2.75-5.53-10.42-59-12.25-124.16-1.65-59.3 2.3-130 4.13-151 2.18-24.93 11.06-67.31 9.68-101.93-1.13-28.26-26.48-55.47-26.25-63.35.38-12.42 12.91-25.35 15.54-39 2.66-13.83-13-13.72 1.54-37.38 8.29-13.48 10.57-18.08 22.07-31.47 24.85-28.92 25.18-31.24 61.73 2 11 10 18.21 19.92 25.2 27.63 14.91 16.45 1.31 28.78 1.93 35.69 1.74 19.6 18.28 27.37 18.75 42.09.66 21.07-21.76 19.68-19.85 77.44.64 19.56 3.82 46.29 4.91 59.53s3.2 36 4.71 50.57c5.16 49.78 5 121.62.31 185.49-1.82 24.85-4.32 48.5-7.45 69.17-3.94 26.07-3.46 32 3.24 39.43 4.34 4.79 6.55 19 11.81 20.36 8.06 2.11 9.58 6.61 9.58 28.29 0 19.83-2.05 27.05-8.88 31.32-9.19 5.74-26.22 55.69-27.64 81-.44 8-2.16 40.46-3.83 72.24s-4.08 76.22-5.37 98.73c-3.52 61.36-7 176.78-12.26 409.36-4.66 205.19-11.84 429.13-16.66 520.13-14 264.34-17.67 330.19-21.86 392.5-6.37 94.86-8.51 107.52-19.2 113.24-13 7-23.86 5.81-27.2-2.9z","data-name":"Narcissa",fill:t,rotate:"".concat(e)})})},W=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M214.49 2493c-7.54-5.51-8.21-16.72-7.14-119.19 2-194.11-.1-733.9-3.83-965.54-2-121.84-2.86-231.29-2-243.21 1.92-26.68 1.87-35.89-1.74-339.53-3.06-257.5-5.68-328.86-12.39-337-2.22-2.71-3.46-24.43-2.75-48.27s-.66-45.83-3-48.88c-7.75-9.89.85-72 .85-77 0-5.87 4.82-22.71 4.82-30.69s-2-18.28-4.41-22.88c-18.2-34.5-22-95.53-14.21-120.33 4.62-14.72 14.91-22.71 25.22-31.57C211.82 93.42 237.07 86 254.52 91c7.64 2.19 14.88 3 16.07 1.8 5.09-5.08 46.91 43.55 52 60.43 5.58 18.61.7 51.79-15.42 104.87-5 16.39-4.94 27.44.18 58.94 3.46 21.32 4.95 50.16 3.32 64.11s-4.15 39.43-5.59 56.65-4.75 52-7.36 77.24c-13.63 132.36-15.48 199-21.51 775.19-1.27 120.52-2.49 233.21-2.73 250.43s-.23 44.31 0 60.2c1.69 103.77-7.27 439.67-13.8 517.72-2.77 33.11-5.36 116.22-5.75 184.68-.63 110.5-2.82 145.63-11.47 184.95-2.67 12.1-15 14.2-28 4.74z","data-name":"Ron",fill:t,rotate:"".concat(e)})})},Y=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M184.18 2514.63c-8.5-5.41-9.78-172.56-3-388.82 15-478.66 19.69-783 16.91-1107.68-1.21-143-2.51-404.66-2.89-581.4-.66-320.6-.64-321.35 9.47-331.46 13-13 44.15-17.12 71.54-9.46 37.27 10.44 36.83 8.21 36.45 183.87-.18 85-1.27 156.07-2.42 157.93s-2.32 61.73-2.58 133-2.45 181.65-4.85 245.22c-6 159.67-9.11 259.43-12.29 397.32-1.49 64.9-5.94 178.68-9.88 252.84-13.47 253.66-15.76 298.72-20.75 407-7.51 162.86-10.22 206.38-15 241.52-2.41 17.6-4.35 67.91-4.29 111.79.09 76.45-7.38 234-12.63 266.7-3.38 20.89-26.77 32.46-43.79 21.63z","data-name":"Sirius",fill:t,rotate:"".concat(e)})})},H=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M245.65 2367.4c-.88 27.35-2.26 121.66-17.33 121.5-15.78-.18-18.31-60.75-17.73-98.53.67-43.48 0-1269.77 6.15-1357.48C223.43 937 218.85 891 200 865c-17.52-24.19-17.51-29.69.11-37 7.75-3.22 17.84-10 22.42-15 7.94-8.77 7.74-9.69-4.47-20.18-15.71-13.5-15.91-18.11-1.42-31.72L228 750.43l-8.74-32.58c-5.76-21.48-7.81-40.69-6-56.38 4-34.52.83-65.76-1-117.71-3.35-94.41 7.6-188-4.38-192.56-14.88-5.66-15.76-15.84-2.14-24.89 9.08-6 9.6-8.67 5-25.87-2.79-10.53-5.53-32.7-6.09-49.25-.69-20.58-1.88-26.41-7.12-30.1-2.74-1.94-61.08-46.91-67.77-59.53-7.16-13.53-1.76-41.35 9.4-48.38 6.47-4.07 12.41-3.07 26.06 4.36 9.72 5.3 18.67 12.89 19.87 16.86 1.34 4.42 16.32 32.28 20.49 42.19 9.71 22.87 26.82 32.41 50.42 27.93 18.6-3.49 33.26-17.76 38.18-33.18 17.44-54.64 28.5-67.72 42.22-75.33 11.82-6.55 13.9-6.5 20.93.54 4.3 4.3 5 11.71 5.46 16.81 1.59 18.86-5.57 21.39-14.07 35.05-10.08 16.21-33.93 52.33-45.69 73.39-3.95 7.07-6 34.66-6.37 88.18-.05 6.81 6.08 17.06 7.73 17.06 10 0 10.47 10.82 1 20.34-4.9 4.89 15.81 168.16 14.94 225.27-.87 57.47-10.12 158.11-16.27 177-2 6.15 19.56 20.69 7.12 35-5.24 6.05-9.53 14.91-9.53 19.7 0 9.73 17.81 28.35 27.12 28.35a11.94 11.94 0 0 1 9.13 5c2 3.2 5.48 12.43-12.51 25.64-10.49 7.7-12.82 25.17-13 39.35-.26 27.86-65.03 1412.16-66.74 1464.71z","data-name":"Slughorn",fill:t,rotate:"".concat(e)})})},_=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M197.64 2493.41c-10.28-2.79-16.42-7.89-18-14.95-3.79-16.84-5.32-249.11-1.64-249.11 1.82 0 3.39-78.55 3.49-174.57s1.43-212.51 3-258.86 5.93-236 9.82-421.4 7.22-389.17 9.82-452.71c3.48-85.46 8.59-134.93 3.76-136.23-3.86-1-4-8.5-3.34-28.06 1.17-37.66-.79-36.31-5.31-37.36-1.67-.39-3-4.49-3-6.24 0-26.2 1.15-55.91 1.47-85.88.51-47.68 1-110 1-138.47s5.05-312.67 13.4-318.89c3.67-2.74 9.51-18.51 13-35.05s8.76-33.38 11.71-37.42c5.5-7.52 35.84-11.21 45.11-5.48 2.82 1.74 7.86 18.42 11.19 37.06s9.49 37.84 13.68 42.67c6.53 7.54 7.5 24.56 6.76 119-1.5 191.69-9 375.28-10.85 420.85-.25 6.42 1.45 11.37-2.21 11.42-9.57.12-6.7-1.91-6.45 27.11.12 14.64 1.12 37.2-3.46 37.59-13.16 1.14-8.17-18.84-12.14 263.41-1.6 113.91-6.08 240.68-7.44 281.73s-4.56 147.25-7.11 236-5.8 194.92-7.24 236-7 209-12.35 373.24-10.61 301.16-11.68 304.3c-3.54 10.2-18.77 14.7-34.99 10.3z","data-name":"Snape",fill:t,rotate:"".concat(e)})})},Q=function(n){var e=n.rotate,t=n.fill;return Object(r.jsx)(C,{children:Object(r.jsx)(S,{d:"M181 526.13c-1.41-22.46-2.76-50.83-4.3-69.06-1.45-17-2.19-34.2-6.13-50.79-4.76-20.07-11.54-50-22.47-69.61-10.47-18.82-32.55-36.12-43.09-48.16-6.88-7.87-17.81-13.88-20.1-24.08-3.79-16.86-5.1-59.4-2.63-77.06 1.57-11.14 7.41-23.87 17.48-28.89 11-5.48 35.82-1.07 48.34-3.95 9.74-2.24 20.91-7.51 26.85-13.32 5.54-5.43 3.48-15.86 8.74-21.56 7.43-8.08 23.29-23.71 35.88-26.92s28.17 1.4 39.68 7.67 22.26 24.78 29.34 29.94c3.54 2.59 8.74 1.43 13.11 1 12.24-1.06 44.29-8.53 60.32-7.45 12.79.86 26.41 5.22 35.84 13.9 10.55 9.7 14.34 60.6 7 56.58-7.2-3.93-15.55-8.7-23.6-7-9.91 2-25.95 10-35.84 19.27-12.82 12-31.62 33.28-41.09 53-7.12 14.81-11.2 31.62-13.71 48.51 3.29 9.19 5.8 16.14 7.22 19.68 11.41 28.49-17.22 291.3-16.52 292.43 2 3.29 11.14 81.3 16.17 98.15 7.67 25.73 34 73.31 34 74 0 6.23-18.06 16.3-29.24 16.3-10.16 0-14.15 2.35-14.27 8.43-.08 4.63-4.13 19.93-9 34-1.34 3.88-5.68 196.6-11.16 449.62 0 1.63-2.37 9.9-2.4 11.53-9.65 445.72-20.48 1068.27-26.95 1184.81-.37 6.77-2.73 11.18-5.92 13.84-8 6.63-21.18 2.41-22.17-3.06-4.81-26.77-6.15-784-7.15-1182.16 0-4.38-.69-25.27-.93-29.54-7-124.79-10.9-473-14.19-473-7.33 0-21.58 5.61-31.68 12.47-24.17 16.42-35.71 12.48-20-12.29 26.08-41 34.12-143.72 34.12-146.63.02-4.5 4.63-81.4 10.45-150.6z","data-name":"Voldemort",fill:t,rotate:"".concat(e)})})};function G(){var n=Object(j.a)(["\n  height: 90%;\n  height: ",";\n  width: 100%;\n  /* border: 2px solid red; */\n  border-radius: 50%;\n  overflow: visible;\n  white-space: nowrap;\n  transform: rotate(","deg);\n"]);return G=function(){return n},n}function J(){var n=Object(j.a)([""]);return J=function(){return n},n}function K(){var n=Object(j.a)(["\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n  text-align: center;\n  position: relative;\n  overflow: visible;\n"]);return K=function(){return n},n}var V=t(81),X=h.a.div(K()),Z=h.a.circle(J()),nn=h.a.svg(G(),(function(n){return n.height}),(function(n){return n.rotate})),en=function(n){for(var e=n.locations,t=n.currentLocation,c=n.friends,o=n.userName,i=[],a=0;a<c.length;a++)i.push(V());var u=V(),s=function(){var n=[];return c.forEach((function(t){var r=e.some((function(n){return n.id===t.currentLocation.id})),c=n.some((function(n){return n.id===t.currentLocation.id}));r||c||n.push(t.currentLocation)})),n}(),l=new g,d=2*Math.PI/e.length,f=function(n){for(var t=0,r=0;r<e.length;r++){if(n===e[r].name)t=d*r*(180/Math.PI)}return 180-t},j=function(n,e){var t,c,o=[Object(r.jsx)(I,{rotate:n,fill:e}),Object(r.jsx)(z,{rotate:n,fill:e}),Object(r.jsx)(N,{rotate:n,fill:e}),Object(r.jsx)(M,{rotate:n,fill:e}),Object(r.jsx)(q,{rotate:n,fill:e}),Object(r.jsx)(A,{rotate:n,fill:e}),Object(r.jsx)(R,{rotate:n,fill:e}),Object(r.jsx)(D,{rotate:n,fill:e}),Object(r.jsx)(U,{rotate:n,fill:e}),Object(r.jsx)(P,{rotate:n,fill:e}),Object(r.jsx)(E,{rotate:n,fill:e}),Object(r.jsx)($,{rotate:n,fill:e}),Object(r.jsx)(T,{rotate:n,fill:e}),Object(r.jsx)(B,{rotate:n,fill:e}),Object(r.jsx)(W,{rotate:n,fill:e}),Object(r.jsx)(Y,{rotate:n,fill:e}),Object(r.jsx)(H,{rotate:n,fill:e}),Object(r.jsx)(_,{rotate:n,fill:e}),Object(r.jsx)(Q,{rotate:n,fill:e})];return o[(t=0,c=o.length-1,t=Math.ceil(t),c=Math.floor(c),Math.floor(Math.random()*(c-t+1)+t))]},b=function(n){for(var e=n.renderLocations,t=n.friends,c=n.currentLocation,o=n.userName,i=n.userColor,a=n.colorArray,u=2*Math.PI/e.length,s=new g,l=function(n,e,t){var r=[],c=Math.PI/2,o=e*Math.cos(t+c)+n[0],i=e*Math.sin(t-c)+n[1];return r.push(o,i),r},d=new v,f=0;f<e.length;f++){var j=u*f,b=l([s.x,s.y],s.r,j),h=b[0],O=b[1],p=10,x=15;0===O&&(p+=5),100===O&&(p-=5),h>50&&(x-=10),h<50&&(x+=10);var L=Object(r.jsx)(m,{x:h-x,y:O-p,width:30,height:20,children:Object(r.jsx)("p",{children:e[f].name})},e[f].id);if(d.locationLabels.push(L),e[f].id===c.id){var y=Object(r.jsx)(w,{x:h,y:O-10,width:30,height:20,color:i,children:Object(r.jsx)("p",{children:o})},o);d.userLabel.push(y)}for(var k=0,F=0;F<t.length;F++)if(e[f].id===t[F].currentLocation.id){var C=3*k,S=Object(r.jsx)(w,{x:h,y:O+C,width:30,height:20,color:a[F],children:Object(r.jsx)("p",{children:t[F].name})},t[F].id);d.friendLabels.push(S),k++}}return d}({friends:c,currentLocation:t,userName:o,renderLocations:[].concat(Object(O.a)(e),Object(O.a)(s)),userColor:u,colorArray:i});return Object(r.jsx)(X,{children:Object(r.jsxs)(nn,{viewBox:"0 0 100 100",children:[Object(r.jsx)(Z,{cx:l.x,cy:l.y,r:l.r,fill:"#B08968",stroke:"tan",strokeWidth:"2"}),function(){var n=f(t.name);return j(n,u)}(),function(){for(var n=[],e=0;e<c.length;e++){var t=f(c[e].currentLocation.name);n.push(j(t,i[e]))}return n}(),b.friendLabels,b.locationLabels,b.userLabel]})})};function tn(){var n=Object(j.a)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n"]);return tn=function(){return n},n}function rn(){var n=Object(j.a)(["\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    justify-content: space-around;\n\n    & li {\n      list-style: none;\n      cursor: pointer;\n      font-size: 2.25rem;\n      text-align: center;\n    }\n  "]);return rn=function(){return n},n}var cn=h.a.div(rn()),on=h.a.div(tn()),an=function(n){var e=n.navigate,t=n.setUserName,c=n.clearUserData;return Object(r.jsxs)(cn,{children:[Object(r.jsx)(on,{onClick:function(){console.log("this is doing stuff"),localStorage.removeItem("token"),c(),t(null)},children:"Sign Out"}),Object(r.jsx)("li",{id:"clock",onClick:e,children:"Clock"}),Object(r.jsx)("li",{id:"friends",onClick:e,children:"Friends"}),Object(r.jsx)("li",{id:"locations",onClick:e,children:"Locations"}),Object(r.jsx)("li",{id:"adventures",onClick:e,children:"Adventures"})]})},un=t(11),sn=t(66),ln=t.n(sn),dn=function(n){var e=n.userLocations,t=n.setNewLocationName,c=n.addLocation,o=n.newLocationName;console.log(e);var i=function(){var n=Object(l.a)(s.a.mark((function n(e){var r;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.target.value,console.log("this is e.key: ",e.target.onkeydown),t(r);case 3:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),a={border:"2px solid purple",backgroundColor:"transparent",fontSize:"inherit",textAlign:"center",fontFamily:"inherit",color:"inherit"};return Object(r.jsx)(ln.a,{getItemValue:function(n){return n.name},items:e,renderItem:function(n,e){return Object(r.jsx)("div",{style:{background:e?"lightgray":"transparent",border:"2px solid green",textAlign:"center",fontFamily:"inherit"},children:n.name})},renderMenu:function(n){return Object(r.jsx)("div",{style:{border:"2px solid yellow"},children:n})},renderInput:function(n){return Object(r.jsx)("input",Object(d.a)(Object(d.a)({style:a,placeholder:"Add New Location"},n),{},{onClick:function(){return console.log("new location Name: ",o)}}))},value:o,onChange:i,onSelect:c,wrapperStyle:{flex:1,border:" 2px solid blue"}},"newLocation")};function fn(){var n=Object(j.a)([""]);return fn=function(){return n},n}function jn(){var n=Object(j.a)([""]);return jn=function(){return n},n}function bn(){var n=Object(j.a)([""]);return bn=function(){return n},n}function hn(){var n=Object(j.a)(["\n  flex: 9;\n"]);return hn=function(){return n},n}function On(){var n=Object(j.a)(["\n  flex: 9;\n  & :focus {\n    outline: none;\n  }\n\n  & ul {\n    /* border: 2px solid blue; */\n    padding: 0;\n    list-style: none;\n    display: flex;\n    flex-direction: column;\n\n    & li {\n      /* border: 2px solid yellow; */\n      text-align: center;\n      width: 80%;\n      margin: auto;\n      cursor: pointer;\n    }\n  }\n"]);return On=function(){return n},n}function pn(){var n=Object(j.a)(["\n  border-bottom: 1px solid tan;\n  flex: 1;\n"]);return pn=function(){return n},n}function xn(){var n=Object(j.a)(["\n  /* border: 2px solid crimson; */\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n"]);return xn=function(){return n},n}function vn(){var n=Object(j.a)(["\n  query GetAllLocations {\n    allLocations {\n      id\n      name\n    }\n  }\n"]);return vn=function(){return n},n}function gn(){var n=Object(j.a)(["\n  mutation createLocation($createLocationInput: CreateLocationInput!) {\n    createLocation(createLocationInput: $createLocationInput) {\n      id\n      name\n    }\n  }\n"]);return gn=function(){return n},n}function mn(){var n=Object(j.a)(["\n  mutation updateUser($locations: [Int!], $currentLocation: Int) {\n    updateUser(\n      updateUserInput: {\n        locations: $locations\n        currentLocation: $currentLocation\n      }\n    ) {\n      locations {\n        name\n      }\n      currentLocation {\n        name\n      }\n    }\n  }\n"]);return mn=function(){return n},n}var wn=function n(e){Object(b.a)(this,n),this.locations=void 0,this.currentLocation=void 0,e.locations&&(this.locations=e.locations),e.currentLocation&&(this.currentLocation=e.currentLocation)},Ln=function n(e){var t=e.name;Object(b.a)(this,n),this.name=void 0,this.name=t},yn=Object(un.gql)(mn()),kn=Object(un.gql)(gn()),Fn=Object(un.gql)(vn()),Cn=h.a.div(xn()),Sn=h.a.h2(pn()),In=h.a.div(On()),Nn=h.a.div(hn()),zn=h.a.div(bn()),Mn=h.a.button(jn()),qn=h.a.select(fn()),An=function(n){var e=n.userLocations,t=n.setLocations,o=n.currentLocation,i=n.setCurrentLocation,a=Object(c.useState)(""),u=Object(f.a)(a,2),j=u[0],b=u[1],h=Object(c.useState)(),p=Object(f.a)(h,2),x=p[0],v=p[1],g=Object(c.useState)(!1),m=Object(f.a)(g,2),w=m[0],L=m[1],y=Object(c.useState)(!1),k=Object(f.a)(y,2),F=k[0],C=k[1],S=Object(un.useMutation)(yn),I=Object(f.a)(S,2),N=I[0],z=I[1].error,M=Object(un.useMutation)(kn),q=Object(f.a)(M,2),A=q[0],R=q[1].error,D=Object(c.useState)([]),U=Object(f.a)(D,2),P=U[0],E=U[1],$=Object(un.useQuery)(Fn).data;Object(c.useEffect)((function(){$&&E($.allLocations)}),[$]);var T=function(){var n=Object(l.a)(s.a.mark((function n(e){var t,r,c;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("updateCurrentLocation",e),t=new wn({currentLocation:e}),n.next=4,N({variables:t});case 4:r=n.sent,z&&console.log("o snap Error: ",z),r.data&&(console.log("res.data",r.data),c=P.filter((function(n){return n.id===e}))[0],i(c),C(!1));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),B=function(){var n=Object(l.a)(s.a.mark((function n(t,r){var c,o,a;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("updateAllLocations",t,r),c={},"add"===r&&(c=new wn({locations:[].concat(Object(O.a)(e.map((function(n){return n.id}))),[t])})),new wn({currentLocation:t}),"remove"===r&&(c=new wn({locations:Object(O.a)(e.filter((function(n){return n.id!==t})).map((function(n){return n.id})))})),n.next=7,N({variables:c});case 7:o=n.sent,z&&console.log("o snap Error: ",z),o.data&&(console.log("res.data",o.data),a=P.filter((function(n){return n.id===t}))[0],i(a),C(!1));case 10:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),W=function(n){var e=Number.parseInt(n.target.value);T(e)},Y=function(n){if(x){var r=Number.parseInt(n.target.value);B(r,"remove"),t(e.filter((function(n){return n.id!==r}))),C(!1)}},H=function(n){var r=Number.parseInt(n.target.value);B(r,"remove"),t(e.filter((function(n){return n.id!==r}))),C(!1)},_=function(n){var t=n.target.getAttribute("value");if(t){var r=Number.parseInt(t),c=e.find((function(n){return n.id===r}));v(c),C(!0)}else console.error("Could not find Location ID to Add Location")},Q=function(){var n=e.filter((function(n){return n.name!==o.name}));return Object(r.jsxs)("ul",{children:[Object(r.jsx)("li",{value:o.id,onClick:function(n){var t=n.target.getAttribute("value"),r=e.find((function(n){return n.name===t}));r?(v(r),L(!0)):console.error("Cant find Location")},children:o.name},o.id),n.map((function(n){return Object(r.jsx)("li",{value:n.id,onClick:_,children:n.name},n.id)}))]})},G={userLocations:e,addLocation:function(){var n=Object(l.a)(s.a.mark((function n(e){var t;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:""!==j&&(t=new Ln({name:j}),A({variables:{createLocationInput:t}}).then((function(n){console.log("lets see if it works: ",n.data),b("")})),R?console.log("o snap error creating location: ",R):console.error("Add Location to DB Failed"));case 1:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),setNewLocationName:b,newLocationName:j};return Object(r.jsxs)(Cn,{children:[Object(r.jsx)(Sn,{children:"Locations"}),F?function(){if(x)return Object(r.jsxs)(Nn,{children:[Object(r.jsxs)(zn,{children:['What do you want to do to the location "',x.name,'"']}),Object(r.jsx)(Mn,{onClick:W,value:x.id,children:"Update Current Location"}),Object(r.jsx)(Mn,{onClick:Y,children:"Remove"})]});throw new Error("Could Not Locate Selected Location")}():w?Object(r.jsx)(Nn,{children:Object(r.jsxs)(Nn,{children:[Object(r.jsx)(zn,{children:"You are trying to remove the current location. Where are you now?"}),Object(r.jsx)(qn,{onSelect:H,children:e.filter((function(n){return n.id!==o.id})).map((function(n){return Object(r.jsx)("option",{value:n.id,children:n.name},n.id)}))})]})}):Object(r.jsxs)(In,{children:[Object(r.jsx)(dn,Object(d.a)({},G)),Object(r.jsx)(Q,{})]})]})};function Rn(){var n=Object(j.a)([""]);return Rn=function(){return n},n}function Dn(){var n=Object(j.a)([""]);return Dn=function(){return n},n}function Un(){var n=Object(j.a)([""]);return Un=function(){return n},n}function Pn(){var n=Object(j.a)(["\n  background-color: inherit;\n  font-family: inherit;\n"]);return Pn=function(){return n},n}function En(){var n=Object(j.a)(["\n  background-color: transparent;\n  border: none;\n  font-family: inherit;\n  font-size: inherit;\n  color: inherit;\n  appearance: none;\n"]);return En=function(){return n},n}function $n(){var n=Object(j.a)(["\n  flex: 9;\n  /* border: 2px solid teal; */\n  width: 100%;\n  & ul {\n    list-style: none;\n    padding: 0;\n\n    & li {\n      cursor: pointer;\n      /* border: 2px solid black; */\n    }\n  }\n"]);return $n=function(){return n},n}function Tn(){var n=Object(j.a)(["\n  flex: 1;\n  /* border: 2px solid purple; */\n  width: 100%;\n  border-bottom: 1px solid tan;\n"]);return Tn=function(){return n},n}function Bn(){var n=Object(j.a)(["\n  display: flex;\n  height: 100%;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  /* border: 2px solid yellow; */\n"]);return Bn=function(){return n},n}function Wn(){var n=Object(j.a)(["\n  mutation createFriendRequest($createFriendRequestInput: CreateFriendRequestInput!) {\n    createFriendRequest(createFriendRequestInput: $createFriendRequestInput) {\n      createdBy {\n        name\n      }\n      recipient {\n        name\n      }\n    }\n  }\n"]);return Wn=function(){return n},n}function Yn(){var n=Object(j.a)(["\n  query UserNotFriends {\n    userNotFriends {\n      name\n      id\n    }\n  }\n"]);return Yn=function(){return n},n}var Hn=function n(e){Object(b.a)(this,n),this.recipient=void 0,this.recipient=e},_n=Object(un.gql)(Yn()),Qn=Object(un.gql)(Wn()),Gn=h.a.div(Bn()),Jn=h.a.h2(Tn()),Kn=h.a.div($n()),Vn=h.a.select(En()),Xn=h.a.option(Pn()),Zn=h.a.div(Un()),ne=h.a.div(Dn()),ee=h.a.button(Rn()),te=function(n){var e=Object(c.useState)(),t=Object(f.a)(e,2),o=t[0],i=t[1],a=Object(c.useState)(""),u=Object(f.a)(a,2),d=u[0],j=u[1],b=Object(c.useState)([]),h=Object(f.a)(b,2),p=h[0],x=h[1],v=Object(c.useState)(!1),g=Object(f.a)(v,2),m=g[0],w=g[1],L=Object(c.useState)(!1),y=Object(f.a)(L,2),k=y[0],F=y[1],C=n.friends,S=n.pendingFriends,I=n.setPendingFriends,N=Object(un.useQuery)(_n),z=N.loading,M=N.data;console.log("Loading NotFriends: ",z);var q=Object(un.useMutation)(Qn),A=Object(f.a)(q,2),R=A[0];A[1].data;Object(c.useEffect)((function(){M&&x(M.userNotFriends)}),[M]);var D=function(n){console.log("this is event",n.target.value);for(var e=0;e<p.length;e++)if(p[e].id===Number.parseInt(n.target.value)){console.log("notFriends[i]: ",p[e]);var t=p[e];console.log("friendObj in add: ",t),i(t);break}F(!0)},U=function(){var n=Object(l.a)(s.a.mark((function n(){var e;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!o){n.next=9;break}return e=new Hn(o.id),console.log("this is createFriendRequestInput: ",e),n.next=5,R({variables:{createFriendRequestInput:e}});case 5:n.sent?(I([].concat(Object(O.a)(C),[o])),alert("Request Sent to ".concat(o.name)),F(!1)):console.error("Failed to Add Friend"),n.next=10;break;case 9:console.error("No New Friend Found");case 10:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),P=function(){var n=Object(l.a)(s.a.mark((function n(){return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:w(!1),console.log("Friend Removed");case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),E=function(n){var e=n.target.getAttribute("value");"string"===typeof e?j(e):console.error("Could Not Find Friend Element"),w(!0)},$=function(){return Object(r.jsxs)("ul",{children:[Object(r.jsx)("p",{children:"Pending Friends"}),S.map((function(n){return Object(r.jsx)("li",{value:n.name,color:"blue",children:n.name},n.id)}))]})},T=function(){return Object(r.jsxs)("ul",{children:[Object(r.jsxs)(Vn,{onChange:D,children:[Object(r.jsx)(Xn,{children:"Add New Friend"},"DefaultOption"),p.map((function(n){return Object(r.jsx)(Xn,{value:n.id,children:n.name},n.name)}))]}),C.map((function(n){return Object(r.jsx)("li",{value:n.name,onClick:E,children:n.name},n.id)}))]})};return Object(r.jsxs)(Gn,{children:[Object(r.jsx)(Jn,{children:"Friends"}),Object(r.jsx)(Kn,{children:m?Object(r.jsx)(Kn,{children:Object(r.jsxs)(Zn,{children:[Object(r.jsxs)(ne,{children:["Are You Sure You Want to to remove ",d,"?"]}),Object(r.jsx)(ee,{onClick:P,children:"Remove"}),Object(r.jsx)(ee,{onClick:function(){return w(!1)},children:"Cancel"})]})}):k?Object(r.jsx)(Kn,{children:Object(r.jsxs)(Zn,{children:[Object(r.jsxs)(ne,{children:["Are You Sure You Want to to add ",null===o||void 0===o?void 0:o.name," as a friend?"]}),Object(r.jsx)(ee,{onClick:U,children:"Add"}),Object(r.jsx)(ee,{onClick:function(){return F(!1)},children:"Cancel"})]})}):Object(r.jsxs)(Kn,{children:[Object(r.jsx)($,{}),Object(r.jsx)(T,{})]})})]})};function re(){var n=Object(j.a)(["\n  background-color: transparent;\n  border: 1px solid;\n  box-shadow: 1px 1px 2px 1px;\n  font-family: inherit;\n  font-size: inherit;\n  color: #e6ccb2;\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  height: auto;\n  width: auto;\n"]);return re=function(){return n},n}function ce(){var n=Object(j.a)(["\n  height: 100%;\n  position: relative;\n"]);return ce=function(){return n},n}var oe=h.a.div(ce()),ie=h.a.button(re()),ae=function(n){var e=n.activeTool,t=n.setActiveTool,c=n.locations,o=n.setLocations,i=n.currentLocation,a=n.setCurrentLocation,u=n.friends,s=n.setFriends,l=n.pendingFriends,f=n.setPendingFriends,j=n.userName,b={userLocations:c,setLocations:o,currentLocation:i,setCurrentLocation:a},h={userName:j,friends:u,setFriends:s,pendingFriends:l,setPendingFriends:f},O=function(){t("none")};return Object(r.jsxs)(oe,{children:[Object(r.jsx)(ie,{onClick:O,children:"Back"}),function(){switch(e){case"locations":return Object(r.jsx)(An,Object(d.a)({},b));case"friends":return Object(r.jsx)(te,Object(d.a)({},h));case"test":return Object(r.jsx)("p",{children:"I am a coding god"})}}()]})};function ue(){var n=Object(j.a)(["\n  /* background-color: #ddb892; */\n  background-color: transparent;\n  border: none;\n  border-radius: 10%;\n  box-shadow: 2px 2px 5px 2px ;\n  top: 0;\n  right: 0;\n  height: auto;\n  width: auto;\n  font-size: 2rem;\n"]);return ue=function(){return n},n}function se(){var n=Object(j.a)(["\n  border: none;\n  background-color: transparent;\n  border-radius: inherit;\n  font-size: inherit;\n  text-align: center;\n  padding-top: 2rem;\n  padding-bottom: 2rem;\n"]);return se=function(){return n},n}function le(){var n=Object(j.a)(["\n  /* border: 2px solid yellow; */\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-around;\n  align-items: center;\n"]);return le=function(){return n},n}function de(){var n=Object(j.a)(["\n  /* border: 2px solid aliceblue; */\n  border-radius: inherit;\n  flex: 1;\n  flex-direction: column;\n  display: flex;\n\n  & :focus {\n    outline: none;\n  }\n"]);return de=function(){return n},n}function fe(){var n=Object(j.a)(["\n  background-color: blanchedalmond;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  border-radius: 10rem;\n  width: 50%;\n  height: 50%;\n  position: absolute;\n  top: 25%;\n  right: 25%;\n"]);return fe=function(){return n},n}function je(){var n=Object(j.a)(["\n  mutation login($password: String!, $name: String!) {\n    login(password: $password, name: $name) {\n      token\n    }\n  }\n"]);return je=function(){return n},n}var be=Object(un.gql)(je()),he=function(n){var e=Object(c.useState)(""),t=Object(f.a)(e,2),o=t[0],i=t[1],a=Object(c.useState)(""),u=Object(f.a)(a,2),d=u[0],j=u[1],b=Object(un.useMutation)(be),h=Object(f.a)(b,2),O=h[0],p=h[1].data,x=n.setUserName,v=n.getUserData;p&&localStorage.setItem("token",p.login.token);var g=function(){var n=Object(l.a)(s.a.mark((function n(){var e;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("Trying to login ".concat(o," with password: ").concat(d)),n.next=3,O({variables:{password:d,name:o}});case 3:return e=n.sent,console.log("this should be a jwt: ",void 0!==e),n.next=7,v();case 7:x(o),i(""),j("");case 10:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),m=function(){console.log("Trying to create ".concat(o," with password: ").concat(d)),i(""),j("")};return Object(r.jsxs)(Oe,{className:"LoginMain",onSubmit:function(n){n.preventDefault(),console.log("o this submit work too")},children:[Object(r.jsxs)(pe,{children:[Object(r.jsx)(ve,{type:"text",value:o,onChange:function(n){i(n.target.value)},placeholder:"UserNamE"}),Object(r.jsx)(ve,{type:"password",value:d,onChange:function(n){j(n.target.value)},placeholder:"Password"})]}),Object(r.jsxs)(xe,{children:[Object(r.jsx)(ge,{type:"submit",onClick:g,children:"Login"}),Object(r.jsx)(ge,{onClick:m,children:"Create New Wizard"})]})]})},Oe=h.a.form(fe()),pe=h.a.div(de()),xe=h.a.div(le()),ve=h.a.input(se()),ge=h.a.button(ue());function me(){var n=Object(j.a)(["\n  font-family: inherit;\n  font-size: inherit;\n  color: #ac0000;\n  margin: 15px;\n  border: 2px solid tan;\n  box-shadow: 2px 2px 5px 5px tan;\n  background: none;\n  font-size: 2rem;\n  grid-column: 2/-1;\n  grid-row: 2/-1;\n"]);return me=function(){return n},n}function we(){var n=Object(j.a)(["\n  font-family: inherit;\n  font-size: inherit;\n  color: #0e440e;\n  margin: 15px;\n  border: 2px solid tan;\n  box-shadow: 2px 2px 5px 5px tan;\n  background: none;\n  font-size: 2rem;\n  grid-column: 1/1;\n  grid-row: 2/-1;\n"]);return we=function(){return n},n}function Le(){var n=Object(j.a)(["\n  /* border: 2px dashed orange; */\n  grid-column: 1/-1;\n  grid-row: 1/2;\n"]);return Le=function(){return n},n}function ye(){var n=Object(j.a)(["\n  border: 2px solid tan;\n  border-radius: 10px;\n  box-shadow: 1px 1px 3px 3px tan;\n  display: grid;\n  margin: 5px;\n  grid-template-columns: 1fr 1fr;\n  grid-template-rows: 1fr 1fr;\n"]);return ye=function(){return n},n}function ke(){var n=Object(j.a)(["\n  /* border: 2px dashed orangered; */\n  flex: 9;\n  overflow: scroll;\n"]);return ke=function(){return n},n}function Fe(){var n=Object(j.a)(["\n  border-bottom: 2px solid tan;\n  flex: 1;\n"]);return Fe=function(){return n},n}function Ce(){var n=Object(j.a)(["\n  /* border: 2px dashed black; */\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n"]);return Ce=function(){return n},n}function Se(){var n=Object(j.a)(["\n  mutation UpdateFriendRequest($updateFriendRequestInput: UpdateFriendRequestInput!) {\n    updateFriendRequest(updateFriendRequestInput: $updateFriendRequestInput){\n      id\n      recipient{name}\n    }\n  }\n"]);return Se=function(){return n},n}var Ie=function n(e,t){Object(b.a)(this,n),this.id=void 0,this.status=void 0,this.id=e,this.status=t},Ne=Object(un.gql)(Se()),ze=function(n){var e=n.pendingFriends,t=n.friends,c=n.setFriends,o=n.setPendingFriends,i=Object(un.useMutation)(Ne),a=Object(f.a)(i,2),u=a[0],d=a[1].error,j=function(){var n=Object(l.a)(s.a.mark((function n(r){var i,a,l,f,j;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("you got a friend in me",r.target.value),i=Number.parseInt(r.target.value),a=new Ie(i,"accepted"),n.next=5,u({variables:{updateFriendRequestInput:a}});case 5:l=n.sent,d&&console.log("Error",d),l&&(j=e.filter((function(n){return n.id!==i})),f=e.find((function(n){return n.id===i}))),f&&j?(c([].concat(Object(O.a)(t),[f])),o(j),console.log("this is the new friend",f)):console.error("Cant Find Friend To Add");case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),b=function(){var n=Object(l.a)(s.a.mark((function n(t){var r,i,a,l;return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("no new firends",t.target.value),r=Number.parseInt(t.target.value),i=new Ie(r,"rejected"),n.next=5,u({variables:{updateFriendRequestInput:i}});case 5:n.sent&&(a=e.filter((function(n){return n.id===r})),l=e.filter((function(n){return n.id!==r}))),a&&l?(c(a),o(l)):console.error("Cant Find Friend To Remove");case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return Object(r.jsxs)(Me,{children:[Object(r.jsx)(qe,{children:"Activity Feed"}),Object(r.jsx)(Ae,{children:e?e.map((function(n){return Object(r.jsxs)(Re,{children:[Object(r.jsxs)(De,{children:[n.name," would like to be your friend"]}),Object(r.jsx)(Ue,{onClick:j,value:n.id,children:"Accept"}),Object(r.jsx)(Pe,{onClick:b,value:n.id,children:"Reject"})]})})):[Object(r.jsx)(Re,{children:"No Pending Requests"})]})]})},Me=h.a.div(Ce()),qe=h.a.h2(Fe()),Ae=h.a.div(ke()),Re=h.a.div(ye()),De=h.a.div(Le()),Ue=h.a.button(we()),Pe=h.a.button(me());function Ee(){var n=Object(j.a)(["\n  /* border: 2px solid red; */\n  grid-column: 2 / 8;\n  grid-row: 2 / -1;\n  z-index: 1;\n  position: relative;\n"]);return Ee=function(){return n},n}function $e(){var n=Object(j.a)(["\n  /* border: 2px solid pink; */\n  grid-column: 3 / 7;\n  grid-row: clock-top / -1;\n"]);return $e=function(){return n},n}function Te(){var n=Object(j.a)(["\n  /* border: 2px solid purple; */\n  grid-row: 1 / 2;\n  grid-column: 1 / 9;\n  z-index: 0;\n  font-size: 4rem;\n"]);return Te=function(){return n},n}function Be(){var n=Object(j.a)(["\n  /* border: 2px solid orange; */\n  grid-row: 1 / -1;\n  grid-column: right-sidebar-closed / 9;\n  z-index: 1;\n"]);return Be=function(){return n},n}function We(){var n=Object(j.a)(["\n  /* border: 2px solid lawngreen; */\n  grid-row: grid-top / -1;\n  grid-column: 1 / 3;\n"]);return We=function(){return n},n}function Ye(){var n=Object(j.a)(["\n  /* border: 2px dashed black; */\n  grid-column: 1 / 2;\n  grid-row: 1 / -1;\n  z-index: 1;\n\n  &:hover {\n    /* border: 2px dashed black; */\n    grid-column: 1 / 3;\n    z-index: 2;\n  }\n"]);return Ye=function(){return n},n}function He(){var n=Object(j.a)(['\n  font-family: "Luminari";\n  color: #ede0d4;\n  background-color: #9c6644;\n  height: 100vh;\n  width: 100vw;\n  display: grid;\n  grid-template-columns: [grid-start] 1fr [left-sidebar-closed] 1fr [left-sidebar-open] 1fr 1fr 1fr 1fr [right-sidebar-open] 1fr [right-sidebar-closed] 1fr [grid-end];\n  grid-template-rows: [grid-top] 1fr [top-bar-bottom ] 1fr [clock-top] 80%;\n']);return He=function(){return n},n}function _e(){var n=Object(j.a)(["\n  query oneUser {\n    user {\n      id\n      name\n      locations {\n        id\n        name\n      }\n      currentLocation {\n        id\n        name\n      }\n      friends {\n        accepted{\n          id\n          name\n          currentLocation{\n            id\n            name\n          }\n        }\n        pending{\n          id\n          name\n        }\n        rejected{\n          id\n          name\n        }\n      }\n    }\n  }\n"]);return _e=function(){return n},n}var Qe=Object(un.gql)(_e()),Ge=h.a.div(He()),Je=h.a.div(Ye()),Ke=h.a.div(We()),Ve=h.a.div(Be()),Xe=h.a.div(Te()),Ze=h.a.div($e()),nt=h.a.div(Ee()),et=function(n){var e=Object(c.useState)(null),t=Object(f.a)(e,2),o=t[0],i=t[1],a=Object(c.useState)("none"),u=Object(f.a)(a,2),s=u[0],l=u[1],j=Object(c.useState)([]),b=Object(f.a)(j,2),h=b[0],O=b[1],p=Object(c.useState)({id:0,name:"none"}),x=Object(f.a)(p,2),v=x[0],g=x[1],m=Object(c.useState)([]),w=Object(f.a)(m,2),L=w[0],y=w[1],k=Object(c.useState)([]),F=Object(f.a)(k,2),C=F[0],S=F[1],I=n.clearStore,N=Object(un.useLazyQuery)(Qe,{onCompleted:function(){q&&(console.log("its all happening fo realz"),function(n){console.log("this should be user from db also USerNAme onCompleted",n.user);var e=n.user[0],t=e.currentLocation,r=e.locations.map((function(n){return n}));g(t),i(e.name),y(e.friends.accepted),S(e.friends.pending),O(r)}(q))},onError:function(n){console.log("Error: ",n)},fetchPolicy:"no-cache"}),z=Object(f.a)(N,2),M=z[0],q=z[1].data;Object(c.useEffect)((function(){localStorage.getItem("token")&&!o&&M()}),[q,M,o]);var A={navigate:function(n){n.preventDefault(),l(n.target.id)},setUserName:i,clearUserData:function(){q=void 0,I(),console.log("userData clearStore",q,o)}},R={activeTool:s,setActiveTool:l,locations:h,setLocations:O,currentLocation:v,setCurrentLocation:g,friends:L,setFriends:y,pendingFriends:C,setPendingFriends:S,userName:o},D={locations:h,currentLocation:v,friends:L,userName:o},U={pendingFriends:C,setPendingFriends:S,friends:L,setFriends:y},P={setUserName:i,getUserData:M};return Object(r.jsxs)(Ge,{children:[function(){if("none"===s)return Object(r.jsx)(Je,{children:q&&Object(r.jsx)(an,Object(d.a)({},A))})}(),function(){switch(s){case"none":break;case"friends":case"locations":case"adventures":return Object(r.jsx)(Ke,{children:q&&Object(r.jsx)(ae,Object(d.a)({},R))})}}(),!q&&Object(r.jsx)(nt,{children:!o&&Object(r.jsx)(he,Object(d.a)({},P))}),Object(r.jsx)(Ze,{children:q&&Object(r.jsx)(en,Object(d.a)({},D))}),Object(r.jsx)(Ve,{children:q&&Object(r.jsx)(ze,Object(d.a)({},U))}),Object(r.jsxs)(Xe,{children:["You're a Wizard ",o]})]})},tt=t(71),rt=Object(un.createHttpLink)({uri:"/graphql"}),ct=Object(tt.a)((function(n,e){var t=e.headers,r=localStorage.getItem("token");return{headers:Object(d.a)(Object(d.a)({},t),{},{Authorization:r?"Bearer ".concat(r):""})}})),ot=new un.ApolloClient({uri:"http://localhost:3000/graphql",link:ct.concat(rt),cache:new un.InMemoryCache}),it={clearStore:function(){var n=Object(l.a)(s.a.mark((function n(){return s.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ot.clearStore();case 2:console.log(ot.cache);case 3:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}()};var at=function(){return Object(r.jsx)(un.ApolloProvider,{client:ot,children:Object(r.jsx)("div",{className:"App",children:Object(r.jsx)("header",{className:"App-header",children:Object(r.jsx)(et,Object(d.a)({},it))})})})},ut=function(n){n&&n instanceof Function&&t.e(3).then(t.bind(null,95)).then((function(e){var t=e.getCLS,r=e.getFID,c=e.getFCP,o=e.getLCP,i=e.getTTFB;t(n),r(n),c(n),o(n),i(n)}))};a.a.render(Object(r.jsx)(o.a.StrictMode,{children:Object(r.jsx)(at,{})}),document.getElementById("root")),ut()}},[[94,1,2]]]);
  //# sourceMappingURL=main.78721616.chunk.js.map