{"version":3,"sources":["App.js","index.js"],"names":["Card","props","state","data","setState","className","onClick","UserDetail","this","UserID","Photo","Username","Closed","href","React","Component","CardImg","src","undefined","alt","style","width","userID","verification","useState","setData","useEffect","fetch","then","res","json","response","catch","error","console","log","Nick","user","avatar","joined_at","id","Verification","verifications","map","i","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"+OAIMA,G,wDAKJ,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IALRC,MAAQ,CACNC,KAAM,IAKN,EAAKC,SAAS,CAACD,KAAMF,IAFJ,E,qDAMjB,OACE,sBAAKI,UAAU,OAAOC,QAASC,EAC7BC,KAAKN,MAAMC,KAAKM,OAChBD,KAAKN,MAAMC,KAAKO,OAFlB,UAIA,6BAAI,4BAAIF,KAAKN,MAAMC,KAAKQ,aACtB,sBAAKN,UAAU,YAAf,UACE,4BAAIG,KAAKN,MAAMC,KAAKS,SACpB,4BAAIJ,KAAKN,MAAMC,KAAKM,SACpB,4BAAG,mBAAGI,KAAML,KAAKN,MAAMC,KAAKO,MAAzB,4C,GApBMI,IAAMC,YA2BvB,SAASC,EAAQb,GACf,OACE,sBAAKE,UAAU,WAAf,UACA,6BAAI,4BAAIF,EAAKQ,aACb,qBAAKM,SAAoBC,IAAff,EAAKO,MAAsBP,EAAKO,MAAQ,mCAAoCS,IAAI,SAASC,MAAO,CAAEC,MAAO,UACjH,qBAAKhB,UAAU,YAAf,SACE,4BAAIF,EAAKM,cAMnB,SAASF,EAAWe,EAAQC,GAAe,IAAD,EAChBC,mBAAS,IADO,mBACjCrB,EADiC,KAC3BsB,EAD2B,KAaxC,OAXAC,qBAAU,WACRC,MAAM,iDAAD,OAC8CL,IAEhDM,MAAK,SAAAC,GAAG,OAAIA,EAAIC,UAChBF,MAAK,SAAAG,GACJN,EAAQM,MAETC,OAAM,SAAAC,GAAK,OAAIC,QAAQC,IAAIF,SAI9B,sBAAK5B,UAAU,OAAf,UACA,6BAAI,4BAAIF,EAAKiC,SACb,qBAAKnB,SAAsBC,IAAjBK,EAA6BA,EAAe,mCAAoCJ,IAAI,SAASC,MAAO,CAAEC,MAAO,UACrH,sBAAKhB,UAAU,YAAf,UACA,qBAAKY,SAA0BC,IAArBf,EAAKkC,KAAKC,OAAV,6CAAuEhB,EAAvE,YAAiFnB,EAAKkC,KAAKC,OAA3F,QAA0G,mCAAoCnB,IAAI,SAASC,MAAO,CAAEC,MAAO,UAEnL,4BAAIlB,EAAKoC,YACT,4BAAIpC,EAAKkC,KAAKG,WAMA1B,IAAMC,U,IAsDb0B,E,4MA5BXvC,MAAQ,CACJwC,cAAe,I,kEAEE,IAAD,OAEhBf,MADe,mDAEVC,MAAK,SAACG,GAAD,OAAcA,EAASD,UAC5BF,MAAK,SAACzB,GAAD,OAAU,EAAKC,SAAS,CAACsC,cAAevC,S,+BAIlD,OACG,qBAAKE,UAAU,MAAf,SACI,6BACKG,KAAKN,MAAMwC,cAAcC,KAAI,SAACxC,EAAMyC,GAAP,OAC1B,mCAAa,cAAC,EAAD,eAAUzC,MAAdyC,c,GAhBL9B,IAAMC,WCzFjC8B,IAASC,OACP,eAAC,IAAMC,WAAP,WACE,cAAC,EAAD,IACA,cAAC,EAAD,OAEFC,SAASC,eAAe,gB","file":"static/js/main.9753ddf0.chunk.js","sourcesContent":["\nimport React, { useState, useEffect } from \"react\";\nimport './App.css';\n\nclass Card extends React.Component{\n state = {\n data: []\n }\n\n constructor(props) {\n super(props);\n this.setState({data: props});\n }\n\n render() {\n return (\n
\n

{this.state.data.Username}

\n
\n

{this.state.data.Closed}

\n

{this.state.data.UserID}

\n

Verification Photo

\n
\n
\n );\n}\n}\n\n function CardImg(data) {\n return (\n
\n

{data.Username}

\n \"Avatar\"\n
\n

{data.UserID}

\n
\n
\n )\n }\n\nfunction UserDetail(userID, verification) {\n const [data, setData] = useState([]);\n useEffect(() => {\n fetch(\n `https://thanos.nightmare.haus/api/user?userID=${userID}`\n )\n .then(res => res.json())\n .then(response => {\n setData(response);\n })\n .catch(error => console.log(error));\n });\n\n return (\n
\n

{data.Nick}

\n \"Avatar\"\n
\n \"Avatar\"\n \n

{data.joined_at}

\n

{data.user.id}

\n
\n
\n )\n}\n\nclass Pending extends React.Component {\n state = {\n pending: []\n }\n componentDidMount() {\n const apiUrl = 'https://thanos.nightmare.haus/api/pending';\n fetch(apiUrl)\n .then((response) => response.json())\n .then((data) => this.setState({pending: data}));\n }\n render() {\n return (\n
\n \n
\n );\n }\n}\n\n\n\nclass Verification extends React.Component {\n state = {\n verifications: []\n }\n componentDidMount() {\n const apiUrl = 'https://thanos.nightmare.haus/api/verifications';\n fetch(apiUrl)\n .then((response) => response.json())\n .then((data) => this.setState({verifications: data}));\n }\n\n render() {\n return (\n
\n \n
\n );\n }\n}\n\nexport {\n Pending,\n Verification,\n}\n\nexport default Verification;","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport Verification from './App';\nimport Pending from './App';\n\nReactDOM.render(\n \n \n \n ,\n document.getElementById('react_app')\n);\n"],"sourceRoot":""}