text: (this.webpackJsonpserverlessdays20=this.webpackJsonpserverlessdays20||[]).push([[0],{385:function(e,t,a){e.exports=a(578)},393:function(e,t,a){},578:function(e,t,a){"use strict";a.r(t);var n=a(1),r=a.n(n),i=a(18),o=a.n(i);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var c=a(324),l=a(325),s=a(350),m=a(348),p=a(20),d=a(25),g=a(622),u=a(347),h=a(8),f="#FFFFFF",b={black:"#000000",white:f,primary:{contrastText:f,dark:h.a.teal[900],main:h.a.teal[500],light:h.a.teal[100]},secondary:{contrastText:f,dark:h.a.grey[900],main:h.a.grey.A400,light:h.a.grey.A400},success:{contrastText:f,dark:h.a.green[900],main:h.a.green[600],light:h.a.green[400]},info:{contrastText:f,dark:h.a.blue[900],main:h.a.blue[600],light:h.a.blue[400]},warning:{contrastText:f,dark:h.a.orange[900],main:h.a.orange[600],light:h.a.orange[400]},error:{contrastText:f,dark:h.a.red[900],main:h.a.red[600],light:h.a.red[400]},text:{primary:h.a.blueGrey[900],secondary:h.a.blueGrey[600],link:h.a.blue[600]},text2:{primary:h.a.white},background:{default:"#F4F6F8",paper:f},icon:h.a.blueGrey[600],divider:h.a.grey[200]},x={h1:{color:b.text.primary,fontWeight:500,fontSize:"35px",letterSpacing:"-0.24px",lineHeight:"40px"},h2:{color:b.text.primary,fontWeight:500,fontSize:"29px",letterSpacing:"-0.24px",lineHeight:"32px"},h3:{color:b.text.primary,fontWeight:500,fontSize:"24px",letterSpacing:"-0.06px",lineHeight:"28px"},h4:{color:b.text.primary,fontWeight:500,fontSize:"20px",letterSpacing:"-0.06px",lineHeight:"24px"},h5:{color:b.text.primary,fontWeight:500,fontSize:"16px",letterSpacing:"-0.05px",lineHeight:"20px"},h6:{color:b.text.primary,fontWeight:500,fontSize:"14px",letterSpacing:"-0.05px",lineHeight:"20px"},subtitle1:{color:b.text.primary,fontSize:"16px",letterSpacing:"-0.05px",lineHeight:"25px"},subtitle2:{color:b.text.secondary,fontWeight:400,fontSize:"14px",letterSpacing:"-0.05px",lineHeight:"21px"},body1:{color:b.text.primary,fontSize:"14px",letterSpacing:"-0.05px",lineHeight:"21px"},body2:{color:b.text.secondary,fontSize:"12px",letterSpacing:"-0.04px",lineHeight:"18px"},button:{color:b.text.primary,fontSize:"14px"},caption:{color:b.text.secondary,fontSize:"11px",letterSpacing:"0.33px",lineHeight:"13px"},overline:{color:b.text.secondary,fontSize:"11px",fontWeight:500,letterSpacing:"0.33px",lineHeight:"13px",textTransform:"uppercase"}},E={root:{color:b.icon,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.03)"}}},y=a(156),v={MuiButton:{contained:{boxShadow:"0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.20)",backgroundColor:"#FFFFFF"}},MuiIconButton:E,MuiPaper:{elevation1:{boxShadow:"0 0 0 1px rgba(63,63,68,0.05), 0 1px 3px 0 rgba(63,63,68,0.15)"}},MuiTableCell:{root:Object(y.a)(Object(y.a)({},x.body1),{},{borderBottom:"1px solid ".concat(b.divider)})},MuiTableHead:{root:{backgroundColor:h.a.grey[50]}},MuiTypography:{gutterBottom:{marginBottom:8}}},j=Object(u.a)({palette:b,typography:x,overrides:v,zIndex:{appBar:1200,drawer:1100}}),O=(a(392),a(393),a(16)),w=a(3),k=a(623),C=(a(162),a(599),a(329),Object(k.a)((function(e){return{root:{borderRadius:"4px",alignItems:"center",padding:e.spacing(1),display:"flex",flexBasis:420},icon:{marginRight:e.spacing(1),color:e.palette.text.secondary},input:{flexGrow:1,fontSize:"14px",lineHeight:"16px",letterSpacing:"-0.05px"}}})),a(23)),N=Object(k.a)((function(e){return{root:{display:"inline-block",borderRadius:"50%",flexGrow:0,flexShrink:0},sm:{height:e.spacing(1),width:e.spacing(1)},md:{height:e.spacing(2),width:e.spacing(2)},lg:{height:e.spacing(3),width:e.spacing(3)},neutral:{backgroundColor:e.palette.neutral},primary:{backgroundColor:e.palette.primary.main},info:{backgroundColor:e.palette.info.main},warning:{backgroundColor:e.palette.warning.main},danger:{backgroundColor:e.palette.error.main},success:{backgroundColor:e.palette.success.main}}})),S=function(e){var t,a=e.className,n=e.size,i=e.color,o=Object(O.a)(e,["className","size","color"]),c=N();return r.a.createElement("span",Object.assign({},o,{className:Object(w.a)((t={},Object(C.a)(t,c.root,!0),Object(C.a)(t,c[n],n),Object(C.a)(t,c[i],i),t),a)}))};S.defaultProps={size:"md",color:"default"};var T=function(e){var t=e.layout,a=e.component,n=Object(O.a)(e,["layout","component"]);return r.a.createElement(p.b,Object.assign({},n,{render:function(e){return r.a.createElement(t,null,r.a.createElement(a,e))}}))},I=a(54),B=a(161),z=a(583),W=a(579),A=a(601),F=Object(k.a)((function(e){return{root:{padding:e.spacing(4)}}})),L=function(e){var t=e.className,a=Object(O.a)(e,["className"]),n=F();return r.a.createElement("div",Object.assign({},a,{className:Object(w.a)(n.root,t)}),r.a.createElement(W.a,{variant:"body1"},"\xa9"," 2020 ",r.a.createElement(A.a,{component:"a",href:"https://www.linkedin.com/in/redvg0/",target:"_blank"},"ServerlessDays")))},G=a(604),H=a(607),R=a(331),D=a.n(R),M=a(330),P=a.n(M),U=a(37),_=a(624),q=a(38),K=(a(278),q.initializeApp({apiKey:"AIzaSyDP2eBMRrvdG1bp2mfOfAcyM2jn8XSsLSQ",authDomain:"serverlessdays20.firebaseapp.com",databaseURL:"https://serverlessdays20.firebaseio.com",projectId:"serverlessdays20",storageBucket:"serverlessdays20.appspot.com",messagingSenderId:"101930653654",appId:"1:101930653654:web:93a60a01259b40c1ef3677"}).auth()),V={googleProvider:new q.auth.GoogleAuthProvider},J=Object(k.a)((function(e){return{root:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:"fit-content"},avatar:{width:60,height:60},name:{marginTop:e.spacing(1)}}})),$=function(e){var t=e.className,a=Object(O.a)(e,["className"]),n=J(),i={name:"VG",avatar:K.currentUser.photoURL};return r.a.createElement("div",Object.assign({},a,{className:Object(w.a)(n.root,t)}),r.a.createElement(_.a,{alt:"Person",className:n.avatar,component:U.a,src:i.avatar,to:"/settings"}),r.a.createElement(W.a,{className:n.name,variant:"h4"},K.currentUser.displayName))},Q=a(602),X=a(626),Y=a(603),Z=Object(k.a)((function(e){return{root:{},item:{display:"flex",paddingTop:0,paddingBottom:0},button:{color:h.a.blueGrey[800],padding:"10px 8px",justifyContent:"flex-start",textTransform:"none",letterSpacing:0,width:"100%",fontWeight:e.typography.fontWeightMedium},icon:{color:e.palette.icon,width:24,height:24,display:"flex",alignItems:"center",marginRight:e.spacing(1)},active:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"& $icon":{color:e.palette.primary.main}}}})),ee=Object(n.forwardRef)((function(e,t){return r.a.createElement("div",{ref:t,style:{flexGrow:1}},r.a.createElement(U.b,e))})),te=function(e){var t=e.pages,a=e.className,n=Object(O.a)(e,["pages","className"]),i=Z();return r.a.createElement(Q.a,Object.assign({},n,{className:Object(w.a)(i.root,a)}),t.map((function(e){return r.a.createElement(X.a,{className:i.item,disableGutters:!0,key:e.title},r.a.createElement(Y.a,{activeClassName:i.active,className:i.button,component:ee,to:e.href},r.a.createElement("div",{className:i.icon},e.icon),e.title))})))},ae=(Object(k.a)((function(e){return{root:{backgroundColor:h.a.grey[50]},media:{paddingTop:e.spacing(2),height:80,textAlign:"center","& > img":{height:"100%",width:"auto"}},content:{padding:e.spacing(1,2)},actions:{padding:e.spacing(1,2),display:"flex",justifyContent:"center"}}})),Object(k.a)((function(e){return{drawer:Object(C.a)({width:240},e.breakpoints.up("lg"),{marginTop:64,height:"calc(100% - 64px)"}),root:{backgroundColor:e.palette.white,display:"flex",flexDirection:"column",height:"100%",padding:e.spacing(2)},divider:{margin:e.spacing(2,0)},nav:{marginBottom:e.spacing(2)}}}))),ne=function(e){var t=e.open,a=e.variant,n=e.onClose,i=e.className,o=Object(O.a)(e,["open","variant","onClose","className"]),c=ae(),l=[{title:"Dashboard",href:"/dashboard",icon:r.a.createElement(P.a,null)},{title:"Chart",href:"/chart",icon:r.a.createElement(D.a,null)}];return r.a.createElement(G.a,{anchor:"left",classes:{paper:c.drawer},onClose:n,open:t,variant:a},r.a.createElement("div",Object.assign({},o,{className:Object(w.a)(c.root,i)}),r.a.createElement($,null),r.a.createElement(H.a,{className:c.divider}),r.a.createElement(te,{className:c.nav,pages:l})),r.a.createElement(L,null))},re=a(608),ie=a(609),oe=a(625),ce=a(611),le=a(333),se=a.n(le),me=a(332),pe=a.n(me),de=a(45),ge=Object(k.a)((function(e){return{root:{boxShadow:"none"},flexGrow:{flexGrow:1},signOutButton:{marginLeft:e.spacing(1)},logo:{height:35,width:320},bar:{background:h.a.grey[300]},customerButton:{marginLeft:e.spacing(5),minWidth:120,fontSize:16,color:"#fff",borderRadius:0,border:"1px solid #ced4da","&:focus":{borderRadius:4,borderColor:"#80bdff",boxShadow:"0 0 0 0.2rem rgba(0,123,255,.25)"}}}})),ue=Object(de.b)((function(e){var t=e.className,a=e.onSidebarOpen,n=Object(O.a)(e,["className","onSidebarOpen"]),i=ge();return r.a.createElement(re.a,Object.assign({},n,{className:Object(w.a)(i.root,t)}),r.a.createElement(ie.a,{className:i.bar},r.a.createElement(U.a,{to:"/"},r.a.createElement("img",{src:"/images/serverlessdayslogo.png",className:i.logo})),r.a.createElement("div",{className:i.flexGrow}),r.a.createElement(oe.a,{mdDown:!0},r.a.createElement(ce.a,{className:i.signOutButton,color:"inherit",onClick:function(){K.signOut()}},r.a.createElement(pe.a,null))),r.a.createElement(oe.a,{lgUp:!0},r.a.createElement(ce.a,{color:"inherit",onClick:a},r.a.createElement(se.a,null)))))})),he=Object(k.a)((function(e){return{root:Object(C.a)({paddingTop:56,height:"100%"},e.breakpoints.up("sm"),{paddingTop:64}),shiftContent:{paddingLeft:240},content:{height:"100%"}}})),fe=function(e){var t,a=e.children,i=he(),o=Object(B.a)(),c=Object(z.a)(o.breakpoints.up("lg"),{defaultMatches:!0}),l=Object(n.useState)(!1),s=Object(I.a)(l,2),m=s[0],p=s[1],d=!!c||m;return r.a.createElement("div",{className:Object(w.a)((t={},Object(C.a)(t,i.root,!0),Object(C.a)(t,i.shiftContent,c),t))},r.a.createElement(ue,{onSidebarOpen:function(){p(!0)}}),r.a.createElement(ne,{onClose:function(){p(!1)},open:d,variant:c?"persistent":"temporary"}),r.a.createElement("main",{className:i.content},a))},be=a(619),xe=a(620),Ee=a(154),ye=a.n(Ee),ve=a(334),je=a.n(ve),Oe=a(612),we=a(613),ke=a(614),Ce=a(615),Ne=a(616),Se=a(617),Te=a(618),Ie=Object(k.a)((function(e){return{root:{},content:{padding:0},inner:{minWidth:800},statusContainer:{display:"flex",alignItems:"center"},status:{marginRight:e.spacing(1)},actions:{justifyContent:"flex-end"}}})),Be=function(e){var t=e.className,a=e.devices,n=Object(O.a)(e,["className","devices"]),i=Ie();return r.a.createElement(Oe.a,Object.assign({},n,{className:Object(w.a)(i.root,t)}),r.a.createElement(we.a,{className:i.content},r.a.createElement(je.a,null,r.a.createElement("div",{className:i.inner},r.a.createElement(ke.a,null,r.a.createElement(Ce.a,null,r.a.createElement(Ne.a,null,r.a.createElement(Se.a,null,"Device ID"),r.a.createElement(Se.a,null,"Updated"),r.a.createElement(Se.a,null,"Temperature"),r.a.createElement(Se.a,null,"Events"))),r.a.createElement(Te.a,null,a.map((function(e){return r.a.createElement(Ne.a,{hover:!0,key:e.id},r.a.createElement(Se.a,null,e.id),r.a.createElement(Se.a,null,r.a.createElement(W.a,{variant:"body2"},e.updatedAt.toDate().toLocaleString("en-GB"))),r.a.createElement(Se.a,null,r.a.createElement(W.a,{variant:"body1"},e.temperature)),r.a.createElement(Se.a,null,e.events))}))))))))},ze=a(335),We=a.n(ze),Ae=Object(k.a)((function(e){return{root:{height:"100%",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},content:{alignItems:"center",display:"flex"},title:{fontWeight:700},avatar:{backgroundColor:e.palette.white,color:e.palette.primary.main,height:56,width:56},icon:{height:48,width:48}}})),Fe=function(e){var t=e.className,a=e.count,n=Object(O.a)(e,["className","count"]),i=Ae();return r.a.createElement(Oe.a,Object.assign({},n,{className:Object(w.a)(i.root,t)}),r.a.createElement(we.a,null,r.a.createElement(be.a,{container:!0,justify:"space-between"},r.a.createElement(be.a,{item:!0},r.a.createElement(W.a,{className:i.title,color:"inherit",gutterBottom:!0,variant:"body2"},"TOTAL EVENTS"),r.a.createElement(W.a,{color:"inherit",variant:"h1"},a)),r.a.createElement(be.a,{item:!0},r.a.createElement(_.a,{className:i.avatar},r.a.createElement(We.a,{className:i.icon}))))))},Le=a(336),Ge=a.n(Le),He=Object(k.a)((function(e){return{root:{height:"100%"},content:{alignItems:"center",display:"flex"},title:{fontWeight:700},avatar:{backgroundColor:e.palette.primary.main,height:56,width:56},icon:{height:32,width:32},difference:{marginTop:e.spacing(2),display:"flex",alignItems:"center"},differenceIcon:{color:e.palette.success.dark},differenceValue:{color:e.palette.success.dark,marginRight:e.spacing(1)}}})),Re=function(e){var t=e.className,a=e.count,n=Object(O.a)(e,["className","count"]),i=He();return r.a.createElement(Oe.a,Object.assign({},n,{className:Object(w.a)(i.root,t)}),r.a.createElement(we.a,null,r.a.createElement(be.a,{container:!0,justify:"space-between"},r.a.createElement(be.a,{item:!0},r.a.createElement(W.a,{className:i.title,color:"textSecondary",gutterBottom:!0,variant:"body2"},"TOTAL DEVICES"),r.a.createElement(W.a,{variant:"h1"},a)),r.a.createElement(be.a,{item:!0},r.a.createElement(_.a,{className:i.avatar},r.a.createElement(Ge.a,{className:i.icon}))))))},De=Object(k.a)((function(e){return{root:{padding:e.spacing(4)},progress:{width:"100%","& > * + *":{marginTop:e.spacing(2)}}}})),Me=Object(de.b)((function(e){var t=De(),a=r.a.useState([]),i=Object(I.a)(a,2),o=i[0],c=i[1],l=r.a.useState([]),s=Object(I.a)(l,2),m=s[0],p=s[1];return Object(n.useEffect)((function(){var t,a;return t="events",a={next:function(e){var t=e.docs.map((function(e){var t=e.data();return{id:e.id,temperature:t.temperature,updatedAt:t.updated_at,events:t.count}}));c(t),p(t.reduce((function(e,t){return e+t.events}),0))},error:function(){}},e.firestore.collection(t).orderBy(q.firestore.FieldPath.documentId()).onSnapshot(a)}),[]),o.length>0?r.a.createElement("div",{className:t.root},r.a.createElement(be.a,{container:!0,spacing:4},r.a.createElement(be.a,{item:!0,xs:12,sm:6},r.a.createElement(Re,{count:o.length})),r.a.createElement(be.a,{item:!0,xs:12,sm:6},r.a.createElement(Fe,{count:m})),r.a.createElement(be.a,{item:!0,xs:12},r.a.createElement(Be,{devices:o})))):r.a.createElement("div",{className:t.progress},r.a.createElement(xe.a,{variant:"query"}))})),Pe=a(349),Ue=a(41),_e=Object(k.a)((function(e){return{root:{padding:e.spacing(4)},progress:{width:"100%","& > * + *":{marginTop:e.spacing(2)}}}})),qe=Object(de.b)((function(e){var t=_e(),a=Object(n.useState)([]),i=Object(I.a)(a,2),o=i[0],c=i[1],l=Object(n.useRef)(o);Object(n.useEffect)((function(){var t,a;return t="events",a={next:function(e){for(var t,a=e.docChanges(),n=Object(Pe.a)(l.current),r=function(){var e=a[i],t=e.type,r=e.doc,o=r.id,c=r.data(),l={temperature:c.temperature,time:c.updated_at.toDate().getTime()};"added"===t?n.push({id:o,data:[l]}):"modified"===t&&n.find((function(e){return e.id===o})).data.push(l)},i=0;i<a.length;i++)r();t=n,l.current=t,c(t)},error:function(){}},e.firestore.collection(t).orderBy(q.firestore.FieldPath.documentId()).onSnapshot(a)}),[]);return o.filter((function(e){return e.data.length>1})).length>0?r.a.createElement("div",{style:{width:"95%",height:700}},r.a.createElement(Ue.e,null,r.a.createElement(Ue.d,{width:600,height:300},r.a.createElement(Ue.a,{strokeDasharray:"3 3"}),r.a.createElement(Ue.g,{dataKey:"time",type:"number",allowDuplicatedCategory:!1,tickFormatter:function(e){return ye()(e).format("HH:mm")},domain:["auto","auto"]}),r.a.createElement(Ue.h,{dataKey:"temperature"}),r.a.createElement(Ue.f,null),r.a.createElement(Ue.b,null),o.filter((function(e){return e.data.length>1})).map((function(e){return r.a.createElement(Ue.c,{dataKey:"temperature",data:e.data,name:e.id,key:e.id,stroke:"#009688"})}))))):r.a.createElement("div",{className:t.progress},r.a.createElement(xe.a,{variant:"query"}))})),Ke=a(275);function Ve(e){return r.a.createElement(Ke.a,e,r.a.createElement("path",{d:"M21,12.2177419 C21,13.9112905 20.6311475,15.4233869 19.8934426,16.7540323 C19.1557377,18.0846776 18.1168031,19.1249998 16.7766393,19.875 C15.4364756,20.6250002 13.8934424,21 12.147541,21 C10.4999998,21 8.97540984,20.5947579 7.57377049,19.7842742 C6.17213115,18.9737905 5.05942604,17.8790323 4.23565574,16.5 C3.41188543,15.1209677 3,13.6209679 3,12 C3,10.3790321 3.41188543,8.87903226 4.23565574,7.5 C5.05942604,6.12096774 6.17213115,5.02620949 7.57377049,4.21572581 C8.97540984,3.40524212 10.4999998,3 12.147541,3 C14.5327871,3 16.5737705,3.78629051 18.2704918,5.35887097 L15.7991803,7.71774194 C15.0122953,6.96774175 14.0655738,6.52016129 12.9590164,6.375 C11.9262295,6.22983871 10.9057375,6.375 9.89754098,6.81048387 C8.88934445,7.24596774 8.07786904,7.89919355 7.46311475,8.77016129 C6.79918033,9.71370968 6.46721311,10.7903228 6.46721311,12 C6.46721311,13.0403228 6.72540984,13.9899192 7.24180328,14.8487903 C7.75819672,15.7076615 8.4467215,16.3971776 9.30737705,16.9173387 C10.1680326,17.4374998 11.1147541,17.6975806 12.147541,17.6975806 C13.2540984,17.6975806 14.2254096,17.455645 15.0614754,16.9717742 C15.7254098,16.5846772 16.2786885,16.0645161 16.7213115,15.4112903 C17.0409838,14.8790321 17.2499998,14.3467744 17.3483607,13.8145161 L12.147541,13.8145161 L12.147541,10.6935484 L20.852459,10.6935484 C20.9508199,11.2258066 21,11.7338712 21,12.2177419 Z"}))}var Je=a(621),$e=Object(k.a)((function(e){return{root:{backgroundColor:e.palette.background.default,height:"100%"},grid:{height:"100%"},quoteContainer:Object(C.a)({},e.breakpoints.down("md"),{display:"none"}),quote:{backgroundColor:e.palette.neutral,height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundImage:"url(/images/auth.jpg)",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},quoteInner:{textAlign:"center",flexBasis:"600px"},quoteText:{color:e.palette.white,fontWeight:300},name:{marginTop:e.spacing(3),color:e.palette.white},bio:{color:e.palette.white},contentContainer:{},content:{height:"100%",display:"flex",flexDirection:"column"},contentHeader:{display:"flex",alignItems:"center",paddingTop:e.spacing(5),paddingBototm:e.spacing(2),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},logoImage:{marginLeft:e.spacing(4)},contentBody:Object(C.a)({flexGrow:1,display:"flex",alignItems:"center"},e.breakpoints.down("md"),{justifyContent:"center"}),form:Object(C.a)({paddingLeft:100,paddingRight:100,paddingBottom:125,flexBasis:700},e.breakpoints.down("sm"),{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}),title:{marginTop:e.spacing(3)},socialButtons:{marginTop:e.spacing(3)},socialIcon:{marginRight:e.spacing(1)},sugestion:{marginTop:e.spacing(2)},textField:{marginTop:e.spacing(2)},signInButton:{margin:e.spacing(2,0)}}})),Qe=function(e){var t=e.onSignIn,a=e.isLoading,n=$e();return r.a.createElement("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},a?r.a.createElement(Je.a,null):r.a.createElement(Y.a,{onClick:t,size:"large",variant:"contained"},r.a.createElement(Ve,{className:n.socialIcon}),"Sign in with Google"))},Xe=Object(k.a)((function(e){return{root:{padding:e.spacing(4)},content:{paddingTop:150,textAlign:"center"},image:{marginTop:50,display:"inline-block",maxWidth:"100%",width:560}}})),Ye=function(){var e=Xe();return r.a.createElement("div",{className:e.root},r.a.createElement(be.a,{container:!0,justify:"center",spacing:4},r.a.createElement(be.a,{item:!0,lg:6,xs:12},r.a.createElement("div",{className:e.content},r.a.createElement(W.a,{variant:"h1"},"404: The page you are looking for isn\u2019t here"),r.a.createElement(W.a,{variant:"subtitle2"},"You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation"),r.a.createElement("img",{alt:"Under development",className:e.image,src:"/images/undraw_page_not_found_su7k.svg"})))))},Ze=function(){return r.a.createElement(p.d,null,r.a.createElement(p.a,{exact:!0,from:"/",to:"/dashboard"}),r.a.createElement(T,{component:Me,exact:!0,layout:fe,path:"/dashboard"}),r.a.createElement(T,{component:qe,exact:!0,layout:fe,path:"/chart"}),r.a.createElement(T,{component:Ye,exact:!0,layout:fe,path:"/not-found"}),r.a.createElement(p.a,{to:"/not-found"}))},et=(a(576),a(346)),tt=Object(d.a)(),at=function(e){Object(s.a)(a,e);var t=Object(m.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(l.a)(a,[{key:"isAuthorized",value:function(e){return!!e}},{key:"isBeingAuthorized",value:function(e){return void 0===e}},{key:"render",value:function(){var e=this.props,t=e.user,a=e.signInWithGoogle;return r.a.createElement(de.a,{firebase:q},r.a.createElement(g.a,{theme:j},this.isAuthorized(t)?r.a.createElement(p.c,{history:tt},r.a.createElement(Ze,null)):r.a.createElement(Qe,{onSignIn:a,isLoading:this.isBeingAuthorized(t)})))}}]),a}(n.Component),nt=Object(et.a)({providers:V,firebaseAppAuth:K})(at);o.a.render(r.a.createElement(nt,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[385,1,2]]]);
  //# sourceMappingURL=main.a7a15c09.chunk.js.map