0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.118.120.13


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/64.5221b5f0.chunk.js.map

{"version":3,"file":"static/js/64.5221b5f0.chunk.js","mappings":"gLAIA,MAUA,EAVgBA,KAEZC,EAAAA,EAAAA,KAACC,EAAAA,EAAI,CACHC,WACEF,EAAAA,EAAAA,KAACG,EAAAA,EAAe,CAACC,MAAO,CAAEC,SAAU,GAAIC,MAAO,SAAWC,MAAI,MCgBtE,EArBeC,IAAmC,IAAlC,KAAEC,EAAI,QAAEC,EAAO,UAAEC,GAAWH,EAC1C,OACER,EAAAA,EAAAA,KAAA,OAAAY,SACGD,GACCX,EAAAA,EAAAA,KAAA,OAAKa,UAAU,SAAST,MAAO,CAAEU,WAAY,IAAKF,UAChDZ,EAAAA,EAAAA,KAACD,EAAO,OAGVC,EAAAA,EAAAA,KAAA,OAAAY,UACEZ,EAAAA,EAAAA,KAAA,SACEe,KAAK,SACLF,UAAU,SACVG,MAAOP,EACPC,QAASA,OAIX,C,+KCbV,MAyKA,EAzKeO,IACb,IAAIC,GAAWC,EAAAA,EAAAA,MACXC,GAAWC,EAAAA,EAAAA,MACf,MAAOC,EAAMC,IAAWC,EAAAA,EAAAA,UAAS,OAC1BC,EAAUC,IAAeF,EAAAA,EAAAA,UAAS,KAClCG,EAAUC,IAAeJ,EAAAA,EAAAA,UAAS,KAClCK,EAAUC,IAAeN,EAAAA,EAAAA,UAAS,KAClCO,EAAcC,IAAmBR,EAAAA,EAAAA,WAAS,GAE3CS,GAAUC,EAAAA,EAAAA,KAAaC,GAAUA,EAAMC,YAAYH,WAEzDI,EAAAA,EAAAA,YAAU,KAGR,SAASC,IACMC,KAAKC,WAAWA,WACtBC,UAAUC,IAAI,QACvB,CAEA,SAASC,IACP,IAAIC,EAASL,KAAKC,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Z,EAAAA,EAAAA,KAAA,KAAG4E,MAAM,kBAGX5E,EAAAA,EAAAA,KAAA,OACEa,UAAU,IACVT,MAAO,CAAEqE,SAAU,WAAYC,MAAO,MAAOC,IAAK,OAClDjE,QAASA,KACPoC,SAASgB,eAAe,YAAY/C,KAAO,OAC3CiB,GAAgB,EAAK,EACrBpB,UAEFZ,EAAAA,EAAAA,KAAA,KAAG4E,MAAM,2BAIf5E,EAAAA,EAAAA,KAAC6E,EAAAA,EAAM,CACLpE,KAAK,QACLC,QAAU4D,GA/FRQ,WACZR,EAAES,iBACF,IAAIC,EAAU,CACZvD,SAAUA,EACVwD,KAAMtD,EACNE,SAAUA,IAEZqD,EAAAA,EAAAA,GAAUhE,EAAUE,EAAU4D,EAAQ,EAwFZG,CAAMb,GACtB3D,UAAWsB,YAKf,C","sources":["Components/Spinner.js","Components/Button.js","Pages/Login/Login.js"],"sourcesContent":["import React from \"react\";\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport { Spin } from \"antd\";\n\nconst Spinner = () => {\n  return (\n    <Spin\n      indicator={\n        <LoadingOutlined style={{ fontSize: 30, color: \"white\" }} spin />\n      }\n    />\n  );\n};\n\nexport default Spinner;\n","import React from \"react\";\nimport Spinner from \"./Spinner\";\n\nconst Button = ({ text, onClick, isLoading }) => {\n  return (\n    <div>\n      {isLoading ? (\n        <div className=\"button\" style={{ paddingTop: 10 }}>\n          <Spinner />\n        </div>\n      ) : (\n        <div>\n          <input\n            type=\"submit\"\n            className=\"button\"\n            value={text}\n            onClick={onClick}\n          />\n        </div>\n      )}\n    </div>\n  );\n};\n\nexport default Button;\n","import React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useNavigate } from \"react-router-dom\";\nimport { loginUser } from \"../../Actions/Login/Login\";\nimport Logo_098 from \"../../Components/assets/logo/098_logo.jpg\";\nimport Button from \"../../Components/Button\";\n\nconst Login = (props) => {\n  let dispatch = useDispatch();\n  let navigate = useNavigate();\n  const [logo, setLogo] = useState(null);\n  const [collcode, setCollCode] = useState(\"\");\n  const [userName, setUserName] = useState(\"\");\n  const [password, setPassword] = useState(\"\");\n  const [passwordOpen, setPasswordOpen] = useState(false);\n\n  const loading = useSelector((state) => state.AuthReducer.loading);\n\n  useEffect(() => {\n    const inputs = document.querySelectorAll(\".input\");\n\n    function addcl() {\n      let parent = this.parentNode.parentNode;\n      parent.classList.add(\"focus\");\n    }\n\n    function remcl() {\n      let parent = this.parentNode.parentNode;\n      if (this.value == \"\") {\n        parent.classList.remove(\"focus\");\n      }\n    }\n\n    inputs.forEach((input) => {\n      input.addEventListener(\"focus\", addcl);\n      input.addEventListener(\"blur\", remcl);\n    });\n    setUrl();\n  }, []);\n\n  const setUrl = () => {\n    let univcode = \"\";\n    if (window.location.pathname === \"/demo\") {\n      univcode = \"098\";\n      setLogo(Logo_098);\n      localStorage.setItem(\"logo\", Logo_098);\n    } else if (window.location.pathname === \"/jssstu\") {\n      univcode = \"052\";\n    } else if (window.location.pathname === \"/dypatil\") {\n      univcode = \"051\";\n    } else if (window.location.pathname === \"/sjbit\") {\n      univcode = \"055\";\n    }\n    localStorage.setItem(\"univcode\", univcode);\n    localStorage.setItem(\"rootpath\", window.location.pathname);\n    let title = localStorage.getItem(\"rootpath\").split(\"/\");\n    localStorage.setItem(\"db\", title[1]);\n\n    document.getElementById(\"titlebar\").innerHTML = title[1];\n  };\n\n  const changeHandler = (value, name) => {\n    if (name == \"collcode\") {\n      setCollCode(value);\n    } else if (name == \"userName\") {\n      setUserName(value);\n    } else if (name == \"password\") {\n      setPassword(value);\n    }\n  };\n\n  const Login = async (e) => {\n    e.preventDefault();\n    let userObj = {\n      collcode: collcode,\n      user: userName,\n      password: password,\n    };\n    loginUser(dispatch, navigate, userObj);\n  };\n\n  return (\n    <div>\n      {/* <img className=\"wave\" src={Wave} /> */}\n      <div className=\"container\">\n        {/* <div className=\"img\">\n          <img src={Bg} />\n        </div> */}\n        <div className=\"login-content container\">\n          <form>\n            <img src={logo} />\n            <h2 className=\"title\">Welcome</h2>\n            <div className=\"input-div one\">\n              <div className=\"i\">\n                <i className=\"fas fa-city\"></i>\n              </div>\n              <div className=\"div\">\n                <h5>College Code</h5>\n                <input\n                  type=\"text\"\n                  className=\"input\"\n                  name=\"collcode\"\n                  maxLength={5}\n                  value={collcode}\n                  onChange={(e) => changeHandler(e.target.value, e.target.name)}\n                />\n              </div>\n            </div>\n            <div className=\"input-div one\">\n              <div className=\"i\">\n                <i className=\"fas fa-user\"></i>\n              </div>\n              <div className=\"div\">\n                <h5>Username</h5>\n                <input\n                  type=\"text\"\n                  className=\"input\"\n                  name=\"userName\"\n                  value={userName}\n                  maxLength={50}\n                  onChange={(e) => changeHandler(e.target.value, e.target.name)}\n                />\n              </div>\n            </div>\n            <div className=\"input-div pass\">\n              <div className=\"i\">\n                <i className=\"fas fa-lock\"></i>\n              </div>\n              <div className=\"div\">\n                <h5>Password</h5>\n                <input\n                  type=\"password\"\n                  id=\"password\"\n                  className=\"input\"\n                  name=\"password\"\n                  value={password}\n                  maxLength={32}\n                  onChange={(e) => changeHandler(e.target.value, e.target.name)}\n                />\n              </div>\n              {passwordOpen ? (\n                <div\n                  className=\"i\"\n                  style={{ position: \"absolute\", right: \"5px\", top: \"5px\" }}\n                  onClick={() => {\n                    document.getElementById(\"password\").type = \"password\";\n                    setPasswordOpen(false);\n                  }}\n                >\n                  <i class=\"fas fa-eye\"></i>\n                </div>\n              ) : (\n                <div\n                  className=\"i\"\n                  style={{ position: \"absolute\", right: \"5px\", top: \"5px\" }}\n                  onClick={() => {\n                    document.getElementById(\"password\").type = \"text\";\n                    setPasswordOpen(true);\n                  }}\n                >\n                  <i class=\"fas fa-eye-slash\"></i>\n                </div>\n              )}\n            </div>\n            <Button\n              text=\"Login\"\n              onClick={(e) => Login(e)}\n              isLoading={loading}\n            />\n          </form>\n        </div>\n      </div>\n    </div>\n  );\n};\n\nexport default Login;\n"],"names":["Spinner","_jsx","Spin","indicator","LoadingOutlined","style","fontSize","color","spin","_ref","text","onClick","isLoading","children","className","paddingTop","type","value","props","dispatch","useDispatch","navigate","useNavigate","logo","setLogo","useState","collcode","setCollCode","userName","setUserName","password","setPassword","passwordOpen","setPasswordOpen","loading","useSelector","state","AuthReducer","useEffect","addcl","this","parentNode","classList","add","remcl","parent","remove","document","querySelectorAll","forEach","input","addEventListener","setUrl","univcode","window","location","pathname","Logo_098","localStorage","setItem","title","getItem","split","getElementById","innerHTML","changeHandler","name","_jsxs","src","maxLength","onChange","e","target","id","position","right","top","class","Button","async","preventDefault","userObj","user","loginUser","Login"],"sourceRoot":""}