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


Current Path : /var/www/qptran/static/js/
Upload File :
Current File : /var/www/qptran/static/js/28.0ce8dd6f.chunk.js.map

{"version":3,"sources":["app/api/loader/index.js","app/College/viewfootnote/index.js"],"names":["Loader","style","position","margin","top","right","bottom","left","width","height","radisu","color","ariaLabel","wrapperStyle","wrapperClass","visible","ViewFootNote","useState","examdate","setexamdate","examsession","setexamsession","examsessionOptions","setexamsessionOptions","viewpwd","setviewpwd","table","settable","loading","setLoading","useEffect","API","get","localStorage","getItem","res","data","map","el","i","key","value","fsession","text","fdescpn","console","log","loadexamsession","loadsession","error_code","handleSubmission","Swal","fire","msg","className","display","onClick","type","to","class","Group","Field","Input","formatChars","n","m","e","d","z","y","mask","placeholder","name","onChange","selection","options","search","celled","Header","Row","HeaderCell","singleLine","textAlign","Body","Cell","fdate","fdeggrp","ftitle","fdescription"],"mappings":"+GAAA,oCAkCeA,IA9BA,WACb,OACE,6BACE,yBACEC,MAAO,CACLC,SAAU,WACVC,OAAQ,OACRC,IAAK,EACLC,MAAO,EACPC,OAAQ,EACRC,KAAM,EACNC,MAAO,QACPC,OAAQ,UAGV,kBAAC,IAAD,CACEA,OAAO,KACPD,MAAM,KACNE,OAAQ,EACRC,MAAM,iBACNC,UAAU,eACVC,aAAc,GACdC,aAAa,GACbC,SAAS,Q,u+MCoPJC,UA7Pf,WAEE,MAAgCC,mBAAS,cAAzC,mBAAOC,EAAP,KAAiBC,EAAjB,KACA,EAAsCF,mBAAS,IAA/C,mBAAOG,EAAP,KAAoBC,EAApB,KACA,EAAoDJ,mBAAS,IAA7D,mBAAOK,EAAP,KAA2BC,EAA3B,KACA,EAA8BN,mBAAS,IAAvC,mBAAOO,EAAP,KAAgBC,EAAhB,KACA,EAA0BR,oBAAS,GAAnC,mBAAOS,EAAP,KAAcC,EAAd,KACA,EAA8BV,oB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,CAAEO,MAAO,MAChB0E,UAAU,UAFZ,aAMA,kBAAC,IAAMF,WAAP,CACE/E,MAAO,CAAEO,MAAO,MAChB0E,UAAU,UAFZ,WAOA,kBAAC,IAAMF,WAAP,CACE/E,MAAO,CAAEO,MAAO,OAChB0E,UAAU,UAFZ,gBAMA,kBAAC,IAAMF,WAAP,CACE/E,MAAO,CAAEO,MAAO,OAChB0E,UAAU,UAFZ,SAMA,kBAAC,IAAMF,WAAP,CACE/E,MAAO,CAAEO,MAAO,OAChB0E,UAAU,UAFZ,iBAQJ,kBAAC,IAAMC,KAAP,KACG3D,EAAQa,KAAI,SAACC,EAAIC,GAChB,OACE,kBAAC,IAAMwC,IAAP,CAAWvC,IAAKD,GACd,kBAAC,IAAM6C,KAAP,CAAYF,UAAU,UACnB3C,EAAI,GAEP,kBAAC,IAAM6C,KAAP,CAAYF,UAAU,UACnB5C,EAAG+C,OAEN,kBAAC,IAAMD,KAAP,CAAYF,UAAU,UACnB5C,EAAGI,UAGN,kBAAC,IAAM0C,KAAP,CAAYF,UAAU,UACnB5C,EAAGgD,SAEN,kBAAC,IAAMF,KAAP,CAAYF,UAAU,UACnB5C,EAAGiD,QAEN,kBAAC,IAAMH,KAAP,CAAYF,UAAU,UACnB5C,EAAGkD,qBAQhB","file":"static/js/28.0ce8dd6f.chunk.js","sourcesContent":["import React from \"react\";\nimport { Puff } from \"react-loader-spinner\";\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\n\nconst Loader = () => {\n  return (\n    <div>\n      <div\n        style={{\n          position: \"absolute\",\n          margin: \"auto\",\n          top: 0,\n          right: 0,\n          bottom: 0,\n          left: 0,\n          width: \"200px\",\n          height: \"200px\",\n        }}\n      >\n        <Puff\n          height=\"80\"\n          width=\"80\"\n          radisu={1}\n          color=\"rgb(0 123 255)\"\n          ariaLabel=\"puff-loading\"\n          wrapperStyle={{}}\n          wrapperClass=\"\"\n          visible={true}\n        />\n      </div>\n    </div>\n  );\n};\n\nexport default Loader;\n","import React, { useEffect, useState, useContext, Component } from \"react\";\nimport \"semantic-ui-css/semantic.min.css\";\nimport {\n  Card,\n  Button,\n  Form,\n  Table,\n  Dropdown,\n  Divider,\n} from \"semantic-ui-react\";\nimport { Link } from \"react-router-dom\";\nimport \"../../../Navbar/Navbar.css\";\nimport API from \"../../api/apilink\";\nimport Swal from \"sweetalert2\";\nimport InputMask, { ReactInputMask } from \"react-input-mask\";\nimport moment from \"moment\";\nimport Loader from \"../../api/loader\";\n\nfunction ViewFootNote() {\n  //   const [examdate, setexamdate] = useState(moment().format(\"DD/MM/YYYY\"));\n  const [examdate, setexamdate] = useState(\"25/03/2021\");\n  const [examsession, setexamsession] = useState(\"\");\n  const [examsessionOptions, setexamsessionOptions] = useState([]);\n  const [viewpwd, setviewpwd] = useState([]);\n  const [table, settable] = useState(false);\n  const [loading, setLoading] = useState(false);\n\n  useEffect(() => {\n    const loadexamsession = async function () {\n      setLoading(true);\n      try {\n        const res = await API.get(\n          `app.php?a=loadQPviewfootnotesession&univcode=${localStorage.getItem(\n            \"univcode\"\n          )}&examdate=${examdate}`\n        );\n\n        const examsessionOptions = res.data.data.map((el, i) => {\n          return {\n            key: i,\n            value: el.fsession,\n            text: el.fsession + \" - \" + el.fdescpn,\n          };\n        });\n        setexamsessionOptions(examsessionOptions);\n      } catch (err) {\n        console.log(err);\n      }\n      setLoading(false);\n    };\n    loadexamsession();\n  }, []);\n\n  const loadsession = async (examdate) => {\n    setLoading(true);\n    try {\n      const res = await API.get(\n        `app.php?a=loadQPviewfootnotesession&univcode=${localStorage.getItem(\n          \"univcode\"\n        )}&examdate=${examdate}`\n      );\n\n      if (res.data.error_code == 0) {\n        const examsessionOptions = res.data.data.map((el, i) => {\n          return {\n            key: i,\n            value: el.fsession,\n            text: el.fsession + \" - \" + el.fdescpn,\n          };\n        });\n        setexamsessionOptions(examsessionOptions);\n      } else {\n        setexamsessionOptions([]);\n      }\n    } catch (err) {\n      console.log(err);\n    }\n    setLoading(false);\n  };\n\n  const handleClear = () => {\n    setexamsession(\"\");\n    settable(false);\n  };\n\n  const handleSubmission = async () => {\n    setLoading(true);\n    try {\n      const res = await API.get(\n        `app.php?a=viewfootnotedet&univcode=${localStorage.getItem(\n          \"univcode\"\n        )}&examdate=${examdate}&session=${examsession}`\n      );\n      if (res.data.error_code == 0) {\n        setviewpwd(res.data.data);\n        settable(true);\n      } else {\n        Swal.fire(\"Failed!\", res.data.data.msg, \"error\");\n        setLoading(false);\n        return;\n      }\n    } catch (err) {\n      console.log(err);\n    }\n    setLoading(false);\n  };\n\n  const formatChars = {\n    n: \"[0-1]\",\n    m: \"[0-9]\",\n    e: \"[0-3]\",\n    d: \"[0-9]\",\n    z: \"[1-2]\",\n    y: \"[0-9]\",\n  };\n\n  return (\n    <div className=\"page\">\n      {loading ? (\n        <Loader />\n      ) : (\n        <div className=\"row\">\n          <div className=\"col-md-12 grid-margin stretch-card\">\n            <div className=\"card\">\n              <div className=\"card-body\" style={{ display: \"flex\" }}>\n                <h4>View Footnote</h4>\n                <div className=\"ml-auto\">\n                  <button\n                    onClick={() => handleClear()}\n                    type=\"button\"\n                    className=\"btn btn-info btn-fw\"\n                  >\n                    Clear\n                  </button>\n                  <Link to=\"/dashboardcollege\">\n                    <button type=\"button\" className=\"btn btn-danger btn-fw\">\n                      <span class=\"mdi mdi-exit-to-app\"></span>\n                      Exit\n                    </button>\n                  </Link>\n                </div>\n              </div>\n              <Divider />\n              <div className=\"col-md-12\">\n                <Form>\n                  <Form.Group>\n                    <Form.Field width={4}>\n                      <label>Exam Date</label>\n                      <Form.Input\n                        formatChars={formatChars}\n                        type=\"text\"\n                        value={examdate}\n                        mask=\"ed/nm/zyyy\"\n                        placeholder=\"dd/mm/yyyy\"\n                        name=\"date\"\n                        onChange={(e, data) => {\n                          setexamdate(data.value);\n                          loadsession(data.value);\n                        }}\n                      />\n                    </Form.Field>\n                    <Form.Field width={4}>\n                      <label>Exam Session</label>\n                      <Dropdown\n                        placeholder=\"Exam Session\"\n                        name=\"examsession\"\n                        value={examsession}\n                        selection\n                        options={examsessionOptions}\n                        search\n                        onChange={(e, data) => {\n                          setexamsession(data.value);\n                        }}\n                      />\n                    </Form.Field>\n                  </Form.Group>\n\n                  <button\n                    onClick={() => handleSubmission()}\n                    type=\"submit\"\n                    className=\"btn btn-info btn-fw\"\n                  >\n                    <span class=\"mdi mdi-file-check btn-icon-prepend\"></span>\n                    Submit\n                  </button>\n                </Form>\n                <br />\n                {table == true ? (\n                  <div className=\"ui mini form\">\n                    <Table celled>\n                      <Table.Header>\n                        <Table.Row>\n                          <Table.HeaderCell\n                            style={{ width: \"5%\" }}\n                            singleLine\n                            textAlign=\"center\"\n                          >\n                            Sl. No.\n                          </Table.HeaderCell>\n                          <Table.HeaderCell\n                            style={{ width: \"5%\" }}\n                            textAlign=\"center\"\n                          >\n                            Exam Date\n                          </Table.HeaderCell>\n                          <Table.HeaderCell\n                            style={{ width: \"5%\" }}\n                            textAlign=\"center\"\n                          >\n                            Session\n                          </Table.HeaderCell>\n\n                          <Table.HeaderCell\n                            style={{ width: \"10%\" }}\n                            textAlign=\"center\"\n                          >\n                            Degree Group\n                          </Table.HeaderCell>\n                          <Table.HeaderCell\n                            style={{ width: \"10%\" }}\n                            textAlign=\"center\"\n                          >\n                            Title\n                          </Table.HeaderCell>\n                          <Table.HeaderCell\n                            style={{ width: \"40%\" }}\n                            textAlign=\"center\"\n                          >\n                            Description\n                          </Table.HeaderCell>\n                        </Table.Row>\n                      </Table.Header>\n                      <Table.Body>\n                        {viewpwd.map((el, i) => {\n                          return (\n                            <Table.Row key={i}>\n                              <Table.Cell textAlign=\"center\">\n                                {i + 1}\n                              </Table.Cell>\n                              <Table.Cell textAlign=\"center\">\n                                {el.fdate}\n                              </Table.Cell>\n                              <Table.Cell textAlign=\"center\">\n                                {el.fsession}\n                              </Table.Cell>\n\n                              <Table.Cell textAlign=\"center\">\n                                {el.fdeggrp}\n                              </Table.Cell>\n                              <Table.Cell textAlign=\"center\">\n                                {el.ftitle}\n                              </Table.Cell>\n                              <Table.Cell textAlign=\"center\">\n                                {el.fdescription}\n                              </Table.Cell>\n                            </Table.Row>\n                          );\n                        })}\n                      </Table.Body>\n                    </Table>\n                  </div>\n                ) : null}\n              </div>\n            </div>\n          </div>\n        </div>\n      )}\n    </div>\n  );\n}\n\nexport default ViewFootNote;\n"],"sourceRoot":""}