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.137.170.38


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

{"version":3,"file":"static/js/155.9ecc65cb.chunk.js","mappings":"yQAKO,MAAMA,EAAaC,MACxBC,EACAC,EACAC,EACAC,EACAC,KAEA,UACQC,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IACEC,EAAAA,EAAAA,0BAGAP,EACA,aACAC,EACA,SACAC,EACA,UACAC,EACFK,QAAS,CAAE,eAAgB,sBAC1BC,MAAMC,IACoB,GAAvBA,EAAIC,KAAKC,WACXb,EAAS,CAAEc,KAAM,eAAgBC,QAASJ,EAAIC,KAAKA,OAEnDZ,EAAS,CAAEc,KAAM,aAAcC,QAAS,IAC1C,GAEJ,CAAE,MAAOC,GAAM,GAGJC,EAAalB,MAAOC,EAAUC,EAAWiB,KACpD,UACQb,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IACEC,EAAAA,EAAAA,0BAGAP,EACA,cACAiB,EAEFT,QAAS,CAAE,eAAgB,sBAC1BC,MAAMC,IACoB,GAAvBA,EAAIC,KAAKC,WACXb,EAAS,CAAEc,KAAM,WAAYC,QAASJ,EAAIC,KAAKA,OAE/CZ,EAAS,CAAEc,KAAM,aAAcC,QAAS,IAC1C,GAEJ,CAAE,MAAOC,GAAM,GAGJG,EAAYpB,MAAOC,EAAUC,KACxC,UACQI,EAAAA,EAAAA,GAAM,CACVC,OAAQ,MACRC,IAAKC,EAAAA,EAAAA,kCAAoDP,EACzDQ,QAAS,CAAE,eAAgB,sBAC1BC,MAAMC,IACoB,GAAvBA,EAAIC,KAAKC,aACgB,GAAvBF,EAAIC,KAAKC,WACXb,EAAS,CAAEc,KAAM,YAAaC,QAASJ,EAAIC,KAAKA,OAEhDZ,EAAS,CAA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EAAAA,EAAAA,KAAC4B,EAAAA,EAAK,CACJhH,KAAK,OACL4G,YAAY,YACZtC,MAAOX,EACPmD,SAAWnC,GAlHHA,KACpBf,EAASe,GACTvD,QAAQC,IAAIsD,EAAE,EAgHewC,CAAaxC,EAAEuC,OAAO5C,YAG3Cc,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACC,KAAM,EAAGV,MAAO,CAAEqB,WAAY,QAASzB,UAC1CF,EAAAA,EAAAA,KAAA,SAAAE,SAAO,wBAETF,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAAAb,UACFF,EAAAA,EAAAA,KAAC4B,EAAAA,EAAK,CACJhH,KAAK,OACL4G,YAAY,kBACZtC,MAAOT,EACPiD,SAAWnC,GAzHDA,KACtBb,EAAWa,GACXvD,QAAQC,IAAIsD,EAAE,EAuHeyC,CAAezC,EAAEuC,OAAO5C,YAG7Cc,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACT,MAAO,CAAEqB,WAAY,QAASzB,UACjCF,EAAAA,EAAAA,KAAC4B,EAAAA,EAAK,CACJhH,KAAK,OACL4G,YAAY,gBACZtC,MAAOP,EACP+C,SAAWnC,GA7HHA,KACpBX,EAASW,GACTvD,QAAQC,IAAIsD,EAAE,EA2He0C,CAAa1C,EAAEuC,OAAO5C,eAI7Cc,EAAAA,EAAAA,KAACc,EAAAA,EAAG,CAACR,MAAO,CAAEO,aAAc,QAASX,UACnCF,EAAAA,EAAAA,KAACe,EAAAA,EAAG,CAACC,KAAM,EAAGV,MAAO,CAAEqB,WAAY,SAAUzB,UAC3CF,EAAAA,EAAAA,KAACW,EAAAA,GAAM,CAACV,UAAU,SAASiC,QAASA,IAAMvC,IAAiBO,SAAC,uBAS1E,G","sources":["Actions/Before_Exam/Add_Stud_To_Cls.js","Pages/Before_Exam/Attendance/Attendance_From_A_B.js","Actions/Utility/Attendance/Attendance_From_A_B.js"],"sourcesContent":["import axios from \"axios\";\nimport { base_url } from \"../../Components/consts/api\";\nimport { type } from \"@testing-library/user-event/dist/type\";\nimport { Alert } from \"../../Components/Alert\";\n\nexport const getTeacher = async (\n  dispatch,\n  fcollcode,\n  fusertype,\n  fuser,\n  FSNGLENT\n) => {\n  try {\n    await axios({\n      mathod: \"GET\",\n      url:\n        base_url +\n        \"loadteachname\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&usertype=\" +\n        fusertype +\n        \"&user=\" +\n        fuser +\n        \"&suser=\" +\n        FSNGLENT,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETTEACHNAME\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\n\nexport const getClsName = async (dispatch, fcollcode, teachcode) => {\n  try {\n    await axios({\n      mathod: \"GET\",\n      url:\n        base_url +\n        \"loadclassname\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&teachcode=\" +\n        teachcode,\n\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETCLASS\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\n\nexport const getDegree = async (dispatch, fcollcode) => {\n  try {\n    await axios({\n      mathod: \"GET\",\n      url: base_url + \"loaddegreecreateclass\" + \"&collcode=\" + fcollcode,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        if (res.data.error_code == 0) {\n          dispatch({ type: \"GETDEGREE\", payload: res.data.data });\n        } else {\n          dispatch({ type: \"CLEAR_DATA\", payload: [] });\n        }\n      }\n    });\n  } catch (err) {}\n};\n\nexport const getSemester = async (dispatch, degree, mode) => {\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"loadsemcreateclass\" +\n        \"&degreecode=\" +\n        degree +\n        \"&mode=\" +\n        mode,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETSEM\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\n\nexport const getSecAndSub = async (\n  dispatch,\n  funivcode,\n  fcollcode,\n  degree,\n  sem\n) => {\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"loadssubcreateclass\" +\n        \"&univcode=\" +\n        funivcode +\n        \"&collcode=\" +\n        fcollcode +\n        \"&degree=\" +\n        degree +\n        \"&sem=\" +\n        sem,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETSEC\", payload: res.data.data.sec });\n        dispatch({ type: \"GETSUB\", payload: res.data.data.sub });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\n\nexport const viewStudDet = async (\n  dispatch,\n  fcollcode,\n  funivcode,\n  degree,\n  sem,\n  subject,\n  type,\n  cls,\n  teacher,\n  section\n) => {\n  console.log(degree, sem, subject, type, cls, teacher, section, \"checking\");\n\n  if (teacher == \"select\" || teacher == \"\" || teacher == undefined) {\n    Alert(\"Select Teacher Name\");\n    return;\n  } else if (cls == \"select\" || cls == \"\" || cls == undefined) {\n    Alert(\"Select Class Name\");\n    return;\n  } else if (degree == \"select\" || degree == \"\" || degree == undefined) {\n    Alert(\"Select Degree\");\n    return;\n  } else if (sem == \"select\" || sem == \"\" || sem == undefined) {\n    Alert(\"Select Semester\");\n    return;\n  } else if (section == \"\" || section == undefined) {\n    Alert(\"Select Section\");\n    return;\n  } else if (subject == \"select\" || subject == \"\" || subject == undefined) {\n    Alert(\"Select Subject\");\n    return;\n  } else {\n    try {\n      await axios({\n        method: \"GET\",\n        url:\n          base_url +\n          \"viewcreateclass\" +\n          \"&collcode=\" +\n          fcollcode +\n          \"&univcode=\" +\n          funivcode +\n          \"&degree=\" +\n          degree +\n          \"&sem=\" +\n          sem +\n          \"&subject=\" +\n          subject +\n          \"&mode=\" +\n          type +\n          \"&clsid=\" +\n          cls +\n          \"&teacher=\" +\n          teacher +\n          \"&section=\" +\n          section,\n        headers: { \"Content-Type\": \"application/json\" },\n      }).then((res) => {\n        if (res.data.error_code == 0) {\n          dispatch({ type: \"GETDETAILS\", payload: res.data.data });\n        } else {\n          dispatch({ type: \"CLEAR_DATA\", payload: [] });\n        }\n      });\n    } catch (err) {}\n  }\n};\n\nexport const saveStudDetails = async (dispatch, formData) => {\n  try {\n    await axios.post(base_url + \"savecreateclass\", formData).then((res) => {\n      if (res.data.error_code == 0) {\n        Alert(res.data.data.msg);\n      }\n    });\n  } catch (err) {}\n};\n\nexport const getTechaerDetails = async (\n  dispatch,\n  fcollcode,\n  fusertype,\n  fuser,\n  fsuser\n) => {\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"viewStuds\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&fusertype=\" +\n        fusertype +\n        \"&fuser=\" +\n        fuser +\n        \"&suser\" +\n        fsuser,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"GETTEACHDET\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\nexport const viewaddedstudDet = async (\n  dispatch,\n  fcollcode,\n  fsuser,\n  fusertype,\n  fuser,\n  fclsid,\n  fteachcode\n) => {\n  try {\n    await axios({\n      method: \"GET\",\n      url:\n        base_url +\n        \"viewAddClassstuds\" +\n        \"&collcode=\" +\n        fcollcode +\n        \"&suser=\" +\n        fsuser +\n        \"&usertype=\" +\n        fusertype +\n        \"&usr=\" +\n        fuser +\n        \"&fclassid=\" +\n        fclsid +\n        \"&teachcode=\" +\n        fteachcode,\n      headers: { \"Content-Type\": \"application/json\" },\n    }).then((res) => {\n      if (res.data.error_code == 0) {\n        dispatch({ type: \"SHOWADDEDSTUD\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"CLEAR_DATA\", payload: [] });\n      }\n    });\n  } catch (err) {}\n};\nexport const reportforaddedstuds = async (\n  dispatch,\n  fcollcode,\n  FSNGLENT,\n  fusertype,\n  fuser,\n  clsid,\n  teachcode,\n  clsname,\n  type\n) => {\n  window.open(\n    base_url +\n      \"getReportClassStud\" +\n      \"&collcode=\" +\n      fcollcode +\n      \"&suser=\" +\n      FSNGLENT +\n      \"&fusertype=\" +\n      fusertype +\n      \"&user=\" +\n      fuser +\n      \"&clsid=\" +\n      clsid +\n      \"&teachcode=\" +\n      teachcode +\n      \"&clsname=\" +\n      clsname +\n      \"&type=\" +\n      type\n  );\n};\n","import { Card, Space, Button, Row, Col, Select, Input } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { connect, useDispatch } from \"react-redux\";\nimport {\n  getDegree,\n  getSemester,\n  getSecAndSub,\n} from \"../../../Actions/Before_Exam/Add_Stud_To_Cls\";\nimport { getReportGenerate } from \"../../../Actions/Utility/Attendance/Attendance_From_A_B\";\nfunction Attendance_From_A_B(props) {\n  const [degree, setDegree] = useState(\"\");\n  const [sem, setSem] = useState(\"\");\n  const [sub, setSub] = useState(\"\");\n  const [sec, setSec] = useState(\"\");\n  const [fromreg, setFromreg] = useState(\"\");\n  const [toreg, setToreg] = useState(\"\");\n  const [fromPer, setFromper] = useState(\"\");\n  const [toPer, setToper] = useState(\"\");\n  const dispatch = useDispatch();\n  useEffect(() => {\n    getDegrees();\n    degreeHandler();\n  }, []);\n  const getDegrees = async () => {\n    await getDegree(dispatch, props.user.fcollcode);\n  };\n  const degreeOption = [\n    { value: \"select\", label: \"---Select Degree---\" },\n    ...props.degreeData,\n  ];\n  const semOption = [\n    { value: \"select\", label: \"---Select Semester---\" },\n    ...props.semData,\n  ];\n  const subOption = [\n    { value: \"select\", label: \"---Select Subject---\" },\n    { value: \"All\", label: \"All\" },\n    ...props.subData,\n  ];\n  const secOption = [\n    { value: \"select\", label: \"---Select Section---\" },\n    { value: \"All\", label: \"All\" },\n    ...props.secData,\n  ];\n  const degreeHandler = async (e) => {\n    setDegree(e);\n    await getSemester(dispatch, e);\n    semHandler();\n  };\n  const semHandler = async (e) => {\n    setSem(e);\n\n    subHandler();\n    await getSecAndSub(\n      dispatch,\n      props.user.funivcode,\n      props.user.fcollcode,\n      degree,\n      e\n    );\n  };\n  const subHandler = (e) => {\n    setSub(e);\n    secHandle();\n  };\n\n  const secHandle = (e) => {\n    setSec(e);\n  };\n  const fromregHandler = (e) => {\n    setFromreg(e);\n    console.log(e);\n  };\n  const toreghandler = (e) => {\n    setToreg(e);\n    console.log(e);\n  };\n  const fromPerHandler = (e) => {\n    setFromper(e);\n    console.log(e);\n  };\n  const toPerHandler = (e) => {\n    setToper(e);\n    console.log(e);\n  };\n\n  const generateReport = async () => {\n    await getReportGenerate(\n      dispatch,\n      props.user.fcollcode,\n      props.user.funivcode,\n      degree,\n      sem,\n      sub,\n      sec,\n      fromreg,\n      toreg,\n      fromPer,\n      toPer\n    );\n  };\n  return (\n    <div className=\"container-fluid\">\n      <Card\n        hoverable\n        title=\"Attendance From A & B\"\n        style={{ width: \"100%\" }}\n        extra={\n          <Space direction=\"horizontal\">\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>Degree</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={degree}\n                options={degreeOption}\n                onChange={(e) => degreeHandler(e)}\n              ></Select>\n            </Col>\n            <Col span={2} style={{ marginLeft: \"80px\" }}>\n              <label>Semester</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={sem}\n                options={semOption}\n                onChange={(e) => semHandler(e)}\n              ></Select>\n            </Col>\n          </Row>\n          <Row style={{ marginBottom: \"10px\" }}>\n            <Col span={2}>\n              <label>Subject</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={sub}\n                options={subOption}\n                onChange={(e) => subHandler(e)}\n              ></Select>\n            </Col>\n            <Col span={2} style={{ marginLeft: \"80px\" }}>\n              <label>Section</label>\n            </Col>\n            <Col xs={24} sm={24} md={12} lg={8} xl={8}>\n              <Select\n                showSearch\n                placeholder=\"Select\"\n                style={{ width: \"100%\" }}\n                value={sec}\n                options={secOption}\n                onChange={(e) => secHandle(e)}\n              ></Select>\n            </Col>\n          </Row>\n          <Row style={{ marginBottom: \"10px\" }}>\n            <Col span={2}>\n              <label>Register No. Range</label>\n            </Col>\n            <Col>\n              <Input\n                type=\"text\"\n                placeholder=\"Reg.No From\"\n                value={fromreg}\n                onChange={(e) => fromregHandler(e.target.value)}\n              ></Input>\n            </Col>\n            <Col style={{ marginLeft: \"25px\" }}>\n              <Input\n                type=\"text\"\n                placeholder=\"Reg.No To\"\n                value={toreg}\n                onChange={(e) => toreghandler(e.target.value)}\n              ></Input>\n            </Col>\n            <Col span={2} style={{ marginLeft: \"80px\" }}>\n              <label>Percentage Range</label>\n            </Col>\n            <Col>\n              <Input\n                type=\"text\"\n                placeholder=\"Percentage From\"\n                value={fromPer}\n                onChange={(e) => fromPerHandler(e.target.value)}\n              ></Input>\n            </Col>\n            <Col style={{ marginLeft: \"25px\" }}>\n              <Input\n                type=\"text\"\n                placeholder=\"Percentage To\"\n                value={toPer}\n                onChange={(e) => toPerHandler(e.target.value)}\n              ></Input>\n            </Col>\n          </Row>\n          <Row style={{ marginBottom: \"10px\" }}>\n            <Col span={2} style={{ marginLeft: \"100px\" }}>\n              <Button className=\"report\" onClick={() => generateReport()}>\n                Generate\n              </Button>\n            </Col>\n          </Row>\n        </div>\n      </Card>\n    </div>\n  );\n}\nconst mapStateToProps = (state) => {\n  console.log(state.studdegreeReducer.degreeData, \"state\");\n  return {\n    user: state.AuthReducer.userData,\n    degreeData: state.studdegreeReducer.degreeData,\n    semData: state.studSemesterReducer.semData,\n    subData: state.studSubjectReducer.subData,\n    secData: state.studSectionReducer.secData,\n  };\n};\nexport default connect(mapStateToProps)(Attendance_From_A_B);\n","import React from \"react\";\nimport { base_url } from \"../../../Components/consts/api\";\n\nexport const getReportGenerate = (\n  dispatch,\n  fcollcode,\n  funivcode,\n  degree,\n  sem,\n  sub,\n  sec,\n  fromreg,\n  toregno,\n  fromper,\n  toper\n) => {\n  window.open(\n    base_url +\n      \"attendancereportformab\" +\n      \"&collcode=\" +\n      fcollcode +\n      \"&univcode=\" +\n      funivcode +\n      \"&degree=\" +\n      degree +\n      \"&sem=\" +\n      sem +\n      \"&sub=\" +\n      sub +\n      \"&sec=\" +\n      sec +\n      \"&fromreg=\" +\n      fromreg +\n      \"&toreg=\" +\n      toregno +\n      \"&fromper=\" +\n      fromper +\n      \"&toper=\" +\n      toper\n  );\n};\n"],"names":["getTeacher","async","dispatch","fcollcode","fusertype","fuser","FSNGLENT","axios","mathod","url","base_url","headers","then","res","data","error_code","type","payload","err","getClsName","teachcode","getDegree","getSemester","degree","mode","method","getSecAndSub","funivcode","sem","sec","sub","viewStudDet","subject","cls","teacher","section","console","log","undefined","Alert","saveStudDetails","formData","post","msg","getTechaerDetails","fsuser","viewaddedstudDet","fclsid","fteachcode","reportforaddedstuds","clsid","clsname","window","open","connect","state","studdegreeReducer","degreeData","user","AuthReducer","userData","semData","studSemesterReducer","subData","studSubjectReducer","secData","studSectionReducer","props","setDegree","useState","setSem","setSub","setSec","fromreg","setFromreg","toreg","setToreg","fromPer","setFromper","toPer","setToper","useDispatch","useEffect","getDegrees","degreeHandler","degreeOption","value","label","semOption","subOption","secOption","e","semHandler","subHandler","secHandle","generateReport","getReportGenerate","toregno","fromper","toper","_jsx","className","children","Card","hoverable","title","style","width","extra","Space","direction","Button","_jsxs","marginBottom","Row","Col","span","xs","sm","md","lg","xl","Select","showSearch","placeholder","options","onChange","marginLeft","Input","fromregHandler","target","toreghandler","fromPerHandler","toPerHandler","onClick"],"sourceRoot":""}