text: (window.webpackJsonpsicko=window.webpackJsonpsicko||[]).push([[0],{10:function(e,a,t){e.exports=t.p+"static/media/doctor.1f323127.svg"},29:function(e,a,t){e.exports=t(57)},34:function(e,a,t){},57:function(e,a,t){"use strict";t.r(a);var n=t(0),l=t.n(n),c=t(25),r=t.n(c),o=t(9),m=t(26),s=t(6),i=(t(34),function(e){var a=e.user;return l.a.createElement("div",{className:"bg nav"},l.a.createElement("a",{href:"/",className:"txt-white logo"},"SICKO MODE"),l.a.createElement("div",{className:"top-btn"},""!==a.name?l.a.createElement("div",{className:"txt-white"},l.a.createElement("span",null,a.name),l.a.createElement("span",null,"(",a.category,")"),l.a.createElement("a",{className:"txt-white"},"Log out")):l.a.createElement("a",{href:"/login"},l.a.createElement("span",{className:"txt-white"},"Login"))))}),u=function(){return l.a.createElement("footer",{className:"bg footer txt-white"},"@Team SICKO MODE")},d=t(12),p=t.n(d),E=function(e){return l.a.createElement("section",{className:"header"},l.a.createElement("div",{className:"loginForm"},l.a.createElement("h1",null,"\ub85c\uadf8\uc778 \ud558\uae30"),l.a.createElement("input",{className:"loginInput",name:"id",type:"text",placeholder:"\uc544\uc774\ub514",onChange:e.handleOnChange}),l.a.createElement("input",{className:"loginInput",name:"pw",type:"password",placeholder:"\ube44\ubc00\ubc88\ud638",onChange:e.handleOnChange}),l.a.createElement("button",{className:"loginInput loginButton bg-green",onClick:e.handleLogin},"\ub85c\uadf8\uc778"),l.a.createElement("a",{className:"loginRegister",href:"/register"},"\uacc4\uc815\uc774 \uc5c6\uc73c\uc2e0\uac00\uc694?")))},h=t(10),g=t.n(h),f=function(){return l.a.createElement("section",{className:"header"},l.a.createElement("a",{className:"aaa",href:"/connect"},l.a.createElement("div",{className:"asd"},l.a.createElement("img",{src:g.a}),l.a.createElement("span",null,"\ub9e4\uce6d"))),l.a.createElement("a",{className:"aaa",href:"/connect"},l.a.createElement("div",{className:"asd"},l.a.createElement("img",{src:g.a}),l.a.createElement("span",null,"\ub9e4\uce6d"))),l.a.createElement("a",{className:"aaa",href:"/connect"},l.a.createElement("div",{className:"asd"},l.a.createElement("img",{src:g.a}),l.a.createElement("span",null,"\ub9e4\uce6d"))))},w=function(e){return l.a.createElement("section",{className:"header"},l.a.createElement("div",{className:"loginForm"},l.a.createElement("h1",null,"\ud68c\uc6d0\uac00\uc785 \ud558\uae30"),l.a.createElement("input",{className:"loginInput",name:"id",type:"text",placeholder:"\uc544\uc774\ub514",onChange:e.handleOnChange}),l.a.createElement("input",{className:"loginInput",name:"pw",type:"password",placeholder:"\ube44\ubc00\ubc88\ud638",onChange:e.handleOnChange}),l.a.createElement("button",{className:"loginInput loginButton bg-red",onClick:e.handleLogin},"\ud68c\uc6d0\uac00\uc785"),l.a.createElement("a",{className:"loginRegister",href:"/login"},"\uc774\ubbf8 \uacc4\uc815\uc774 \uc788\uc73c\uc2e0\uac00\uc694?")))},N=function(){return l.a.createElement("section",{className:"Header"},l.a.createElement("video",{id:"remoteVideo",autoPlay:!0,playsInline:!0}),l.a.createElement("video",{id:"localVideo",autoPlay:!0,muted:!0,playsInline:!0}),l.a.createElement("button",{id:"click"},"\uc5f0\uacb0/"),l.a.createElement("div",null,l.a.createElement("textarea",{readOnly:!0}),l.a.createElement("div",null,l.a.createElement("input",{id:"chatInput",name:"chat"}),l.a.createElement("button",null,"\ubcf4\ub0b4\uae30"))))},v=function(){var e=Object(n.useState)(""),a=Object(o.a)(e,2),t=a[0],c=a[1],r=Object(n.useState)(""),d=Object(o.a)(r,2),h=d[0],g=d[1],v=Object(n.useState)(""),b=Object(o.a)(v,2),O=b[0],C=b[1],y=Object(n.useState)({name:"",category:""}),I=Object(o.a)(y,2),x=I[0],j=(I[1],function(){var e=function(e,a){var t=new FormData;t.append("id","test"),t.append("password","1234"),p()({method:"post",url:"/auth/signIn",headers:{"Content-type":"application/x-www-form-urlencoded","Access-Control-Allow-Origin":"*"},body:{id:"test",password:"1234"}}).then(function(e){return console.log(e)})}();console.log(e)}),k=function(){!function(e,a,t){p.a.post("https://www.homedoctor.cf/auth",{params:{id:e,password:a,email:t}}).then(function(e){return e}).catch(function(e){return e})}(t,h,O)},S=function(e){var a=e.target,t=a.name,n=a.value;"id"===t?c(n):"pw"===t?g(n):"email"===t&&C(n)};return l.a.createElement(m.a,null,l.a.createElement("div",null,l.a.createElement(i,{user:x}),l.a.createElement("div",null,l.a.createElement(s.c,null,l.a.createElement(s.a,{exact:!0,path:"/",component:f}),l.a.createElement(s.a,{path:"/login",render:function(){return l.a.createElement(E,{handleLogin:j,handleOnChange:S})}}),l.a.createElement(s.a,{path:"/register",render:function(){return l.a.createElement(w,{handleRegister:k,handleOnChange:S})}}),l.a.createElement(s.a,{path:"/connect",component:N}),l.a.createElement(s.a,{path:"/logout"}))),l.a.createElement(u,null)))};r.a.render(l.a.createElement(v,null),document.getElementById("root"))}},[[29,1,2]]]);
  //# sourceMappingURL=main.8dd5074e.chunk.js.map