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 : 3.17.78.184


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

{"version":3,"file":"static/js/703.251299ac.chunk.js","mappings":"8RA+GA,MAMA,GAAeA,EAAAA,EAAAA,KANUC,IACvBC,QAAQC,IAAIF,EAAMG,YAAYC,SAAU,WACjC,CACLC,KAAML,EAAMG,YAAYC,YAG5B,EAtGA,SAAyBE,GACvB,MAAOC,EAAQC,IAAaC,EAAAA,EAAAA,UAAS,KAC9BC,EAAQC,IAAaF,EAAAA,EAAAA,UAAS,KAC9BG,EAAMC,IAAWJ,EAAAA,EAAAA,UAAS,IAG3BK,IADWC,EAAAA,EAAAA,MACOC,UACtB,MAAMC,EAAW,IAAIC,SACrBD,EAASE,OAAO,SAAUZ,GAC1BU,EAASE,OAAO,SAAUT,GAC1BO,EAASE,OAAO,OAAQP,GACxBK,EAASE,OAAO,WAAYb,EAAMD,KAAKe,WACvCH,EAASE,OAAO,WAAYb,EAAMD,KAAKgB,WACvCJ,EAASE,OAAO,OAAQb,EAAMD,KAAKiB,OAC/BZ,IAAWE,GACbW,EAAAA,EAAAA,GAAM,mDC1BmBP,OAAOQ,EAAUP,KAC9C,UACQQ,EAAAA,EAAMC,KAAKC,EAAAA,EAAW,eAAgBV,GAAUW,MAAMC,IAC/B,GAAvBA,EAAIC,KAAKC,aACXR,EAAAA,EAAAA,GAAMM,EAAIC,KAAKA,KACjB,GAEJ,CAAE,MAAOE,GAAM,GDqBLC,CAAgBT,EAAUP,EAClC,GAGF,OACEiB,EAAAA,EAAAA,KAAA,OAAKC,UAAU,kBAAiBC,UAC9BF,EAAAA,EAAAA,KAACG,EAAAA,EAAI,CACHC,WAAS,EACTC,MAAM,oBACNC,MAAO,CAAEC,MAAO,QAChBC,OACEC,EAAAA,EAA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SAAWC,IACTnD,EAAUmD,EAAEC,OAAOH,MAAM,OAI/B1B,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACC,KAAM,EAAGV,MAAO,CAAEwB,WAAY,QAAS5B,UAC1CF,EAAAA,EAAAA,KAAA,SAAAE,SAAO,wBAETF,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACE,GAAI,GAAIC,GAAI,GAAIC,GAAI,EAAGC,GAAI,EAAGC,GAAI,EAAEnB,UACvCF,EAAAA,EAAAA,KAACsB,EAAAA,EAAK,CACJC,YAAY,mBACZjB,MAAO,CAAEC,MAAO,QAChBiB,UAAU,MACVC,KAAK,WACLC,MAAOhD,EACPiD,SAAWC,IACTjD,EAAQiD,EAAEC,OAAOH,MAAM,UAK/B1B,EAAAA,EAAAA,KAACc,EAAAA,EAAG,CAAAZ,UACFF,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACC,KAAM,EAAEd,UACXF,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CAACX,UAAU,OAAO8B,QAASA,IAAMnD,IAAkBsB,SAAC,mBASzE,G","sources":["Pages/Utility/Change_Passowrd/Change_password.js","Actions/Utility/Change_Password/Change_password.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport {\n  Card,\n  Space,\n  Button,\n  Checkbox,\n  Input,\n  Table,\n  Col,\n  Row,\n  Menu,\n} from \"antd\";\nimport { Alert } from \"../../../Components/Alert\";\nimport { useDispatch, connect } from \"react-redux\";\nimport { postThepassword } from \"../../../Actions/Utility/Change_Password/Change_password\";\nfunction Change_password(props) {\n  const [oldPwd, setOldpwd] = useState(\"\");\n  const [newpwd, setNewpwd] = useState(\"\");\n  const [cpwd, setCpwd] = useState(\"\");\n\n  const dispatch = useDispatch();\n  const saveNewPassword = async () => {\n    const formData = new FormData();\n    formData.append(\"oldpwd\", oldPwd);\n    formData.append(\"newpwd\", newpwd);\n    formData.append(\"cpwd\", cpwd);\n    formData.append(\"collcode\", props.user.fcollcode);\n    formData.append(\"univcode\", props.user.funivcode);\n    formData.append(\"user\", props.user.fuser);\n    if (newpwd !== cpwd) {\n      Alert(\"Password and Confirm Password not Matching\");\n    } else {\n      await postThepassword(dispatch, formData);\n    }\n  };\n\n  return (\n    <div className=\"container-fluid\">\n      <Card\n        hoverable\n        title=\"Assign User Menus\"\n        style={{ width: \"100%\" }}\n        extra={\n          <Space direction=\"horizontal\">\n            <Button className=\"save\">Save</Button>\n            <Button className=\"report\">Report</Button>\n            <Button className=\"clear\">Clear</Button>\n            <Button className=\"exit\">Exit</Button>\n          </Space>\n        }\n      >\n        <div style={{ marginBottom: \"20px\" }}>\n          <Row style={{ marginBottom: \"10px\" }}>\n            <Col span={2}>\n              <label>Old Password</label>\n            </Col>\n            <Col xs={12} sm={12} md={6} lg={4} xl={4}>\n              <Input\n                placeholder=\"Old Password\"\n                style={{ width: \"100%\" }}\n                maxlength=\"100\"\n                type=\"Password\"\n                value={oldPwd}\n                onChange={(e) => {\n                  setOldpwd(e.target.value);\n                }}\n              ></Input>\n            </Col>\n            <Col span={2} style={{ marginLeft: \"80px\" }}>\n              <label>New Password</label>\n            </Col>\n            <Col xs={12} sm={12} md={6} lg={4} xl={4}>\n              <Input\n                placeholder=\"New Passowrd\"\n                style={{ width: \"100%\" }}\n                maxlength=\"100\"\n                type=\"Password\"\n                value={newpwd}\n                onChange={(e) => {\n                  setNewpwd(e.target.value);\n                }}\n              ></Input>\n            </Col>\n            <Col span={2} style={{ marginLeft: \"80px\" }}>\n              <label>Confirm Password</label>\n            </Col>\n            <Col xs={12} sm={12} md={4} lg={4} xl={4}>\n              <Input\n                placeholder=\"Confirm Password\"\n                style={{ width: \"100%\" }}\n                maxlength=\"100\"\n                type=\"Password\"\n                value={cpwd}\n                onChange={(e) => {\n                  setCpwd(e.target.value);\n                }}\n              ></Input>\n            </Col>\n          </Row>\n          <Row>\n            <Col span={2}>\n              <Button className=\"save\" onClick={() => saveNewPassword()}>\n                Save\n              </Button>\n            </Col>\n          </Row>\n        </div>\n      </Card>\n    </div>\n  );\n}\nconst mapStateToProps = (state) => {\n  console.log(state.AuthReducer.userData, \"connect\");\n  return {\n    user: state.AuthReducer.userData,\n  };\n};\nexport default connect(mapStateToProps)(Change_password);\n","import axios from \"axios\";\nimport { base_url } from \"../../../Components/consts/api\";\nimport { Alert } from \"../../../Components/Alert\";\n\nexport const postThepassword = async (dispatch, formData) => {\n  try {\n    await axios.post(base_url + \"savePassword\", formData).then((res) => {\n      if (res.data.error_code == 0) {\n        Alert(res.data.data);\n      }\n    });\n  } catch (err) {}\n};\n"],"names":["connect","state","console","log","AuthReducer","userData","user","props","oldPwd","setOldpwd","useState","newpwd","setNewpwd","cpwd","setCpwd","saveNewPassword","useDispatch","async","formData","FormData","append","fcollcode","funivcode","fuser","Alert","dispatch","axios","post","base_url","then","res","data","error_code","err","postThepassword","_jsx","className","children","Card","hoverable","title","style","width","extra","_jsxs","Space","direction","Button","marginBottom","Row","Col","span","xs","sm","md","lg","xl","Input","placeholder","maxlength","type","value","onChange","e","target","marginLeft","onClick"],"sourceRoot":""}