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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/148.50787eaa.chunk.js.map

{"version":3,"sources":["pages/mcf_verify_new/index.js","actions/mcfverifynew/mcf_new.js"],"names":["MCFVerifyNew","state","date","moment","format","frmsubmit","status","handleChangev","e","_this","setState","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__","target","name","value","handleCancel","_callee","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","wrap","_context","prev","next","stop","handleSubmit","_callee2","error","_context2","header","content","props","showError","abrupt","handleView","_callee3","_context3","ViewDetails","this","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","fluid","Content","Header","style","display","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","basic","color","icon","onClick","react_router_dom__WEBPACK_IMPORTED_MODULE_9__","to","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","Description","overflowY","height","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","Group","Field","width","react_input_mask__WEBPACK_IMPORTED_MODULE_22___default","formatChars","n","m","d","z","y","type","mask","onChange","primary","keys","mcfverifynew","length","semantic_ui_react__WEBPACK_IMPORTED_MODULE_14__","celled","padded","Row","HeaderCell","Body","map","el","i","cnt","Cell","funivname","fincharge","fmobileno","textAlign","fontSize","padding","pathname","concat","funivcode","fdate","query","fpath","size","Component","connect","console","log","univcode","univ","mcfverifynewdate","tID","_ref","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","mark","dispatch","getState","response","_error","univadmin","get","params","user","fcuruniv","fname","sent","data","error_code","msg","payload","_x","_x2","apply","arguments","changeCheckBox","_ref2","cond","ind","_x3","_x4","changeRemarks","_ref3","_x5","_x6","ViewMcfDetails","tID1","_ref4","_callee4","_error2","_context4","univcode1","_x7","_x8","savestateremarks","mcfviewdetail","_ref5","_callee5","_error3","_error4","_context5","post","mcfviewdetailarray","history","push","_x9","_x10"],"mappings":"+VA8BMA,6MACJC,MAAQ,CACNC,KAAMC,MAASC,OAAO,cACtBC,WAAW,EACXC,OAAQ,MAGVC,cAAgB,SAACC,GACfC,EAAKC,SAALC,OAAAC,EAAA,EAAAD,CAAA,GAAiBH,EAAEK,OAAOC,KAAON,EAAEK,OAAOE,WAQ5CC,kCAAe,SAAAC,IAAA,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,OAEbd,EAAKC,SAAS,CACZR,KAAMC,MAASC,OAAO,gBAExBK,EAAKC,SAAS,CAAEL,WAAW,IALd,wBAAAgB,EAAAG,SAAAP,QAQfQ,kCAAe,SAAAC,IAAA,IAAAC,EAAA,OAAAT,EAAAC,EAAAC,KAAA,SAAAQ,GAAA,cAAAA,EAAAN,KAAAM,EAAAL,MAAA,UACW,KAApBd,EAAKR,MAAMC,KADF,CAAA0B,EAAAL,KAAA,eAELI,EAAQ,CAAEE,OAAQ,QAASC,QAAS,qBAC1CrB,EAAKsB,MAAMC,UAAUL,GAHVC,EAAAK,OAAA,wBAAAL,EAAAL,KAAA,EAOPd,EAAKsB,MAAM7B,KAAKO,EAAKR,OAPd,OAQbQ,EAAKC,SAAS,CAAEL,WAAW,IARd,wBAAAuB,EAAAJ,SAAAE,QAYfQ,gCAAa,SAAAC,IAAA,OAAAjB,EAAAC,EAAAC,KAAA,SAAAgB,GAAA,cAAAA,EAAAd,KAAAc,EAAAb,MAAA,cAAAa,EAAAb,KAAA,EACLd,EAAKsB,MAAMM,YAAY5B,EAAKR,OADvB,w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QAAS,wBAC1CkF,EAAShF,YAAUL,MACoB,IAA9BuF,EAASS,KAAKC,YACjBjG,EAAQ,CAAEE,OAAQ,QAASC,QAASoF,EAASS,KAAKA,KAAKE,KAC7Db,EAAShF,YAAUL,MAEbA,EAAQ,CAAEE,OAAQ,UAAWC,QAASoF,EAASS,KAAKA,KAAKE,KAC/Db,EAAShF,YAAUL,IACnBoI,IAAQC,KAAK,kBA7BV,wBAAAJ,EAAApI,SAAAiI,MAAP,gBAAAQ,EAAAC,GAAA,OAAAV,EAAAvB,MAAA3F,KAAA4F,YAAA","file":"static/js/148.50787eaa.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n  Card,\n  Button,\n  Form,\n  Table,\n  Dropdown,\n  Divider,\n  Checkbox,\n  Input,\n} from \"semantic-ui-react\";\nimport { date } from \"./../../actions/mcfverifynew/mcf_new\";\nimport {\n  newCollCode,\n  clearteachid,\n} from \"./../../actions/changecollege/teacherid\";\nimport { connect } from \"react-redux\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport { wHeight } from \"../parms\";\nimport {\n  getDegreeList,\n  getpracticalcenters,\n  changecenterpractical,\n  updatepracticalcenter,\n} from \"../../actions/setpracticalcenter/setpracticalcenterform\";\nimport InputMask from \"react-input-mask\";\nimport moment from \"moment\";\n\nclass MCFVerifyNew extends Component {\n  state = {\n    date: moment().format(\"DD/MM/YYYY\"),\n    frmsubmit: false,\n    status: \"\",\n  };\n\n  handleChangev = (e) => {\n    this.setState({ [e.target.name]: e.target.value });\n  };\n  //   handleNewColl = async (e, data) => {\n  //     this.setState({\n  //       newcollcode: data.value,\n  //     });\n  //   };\n\n  handleCancel = async () => {\n    // await this.props.clearteachid();\n    this.setState({\n      date: moment().format(\"DD/MM/YYYY\"),\n    });\n    this.setState({ frmsubmit: false });\n  };\n\n  handleSubmit = async () => {\n    if (this.state.date === \"\") {\n      const error = { header: \"Error\", content: \"Select Teacher ID\" };\n      this.props.showError(error);\n      return;\n    }\n\n    await this.props.date(this.state);\n    this.setState({ frmsubmit: true });\n\n    // this.setState({ newcollcode: \"\" });\n  };\n  handleView = async () => {\n    await this.props.ViewDetails(this.state);\n  };\n\n  //   handleSaveNewColl = async () => {\n  //     if (this.state.newcollcode === \"\") {\n  //       const error = { header: \"Error\", content: \"Enter New College Code\" };\n  //       this.props.showError(error);\n  //       return;\n  //     }\n\n  //     await this.props.newCollCode(this.state);\n  //     this.handleCancel();\n  //   };\n\n  render() {\n    const { date } = this.state;\n    // console.log(date);\n    // const { newcollcode } = this.state;\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      <Card fluid>\n        <Card.Content>\n          <Card.Header style={{ display: \"flex\" }}>\n            <h4>MCF Verify New</h4>\n            <div className=\"ml-auto\">\n              <Button\n                basic\n                color=\"black\"\n                icon=\"ban\"\n                onClick={this.handleCancel}\n                content=\"Cancel\"\n              />\n              <Link to=\"/dashboard\">\n                <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n              </Link>\n            </div>\n          </Card.Header>\n          <Divider />\n          <Card.Description style={{ overflowY: \"auto\", height: \"70vh\" }}>\n            <div className=\"col-md-7\">\n              <Form>\n                <div>\n                  <Form.Group>\n                    <Form.Field width={8}>\n                      <label>Date</label>\n                      <InputMask\n                        formatChars={formatChars}\n                        type=\"text\"\n                        mask=\"ed/nm/zyyy\"\n                        name=\"date\"\n                        onChange={this.handleChangev}\n                        value={date}\n                      />\n                    </Form.Field>\n                  </Form.Group>\n                  <Button primary onClick={this.handleSubmit}>\n                    Submit\n                  </Button>\n                </div>\n              </Form>\n            </div>\n\n            {Object.keys(this.props.mcfverifynew).length > 0 ? (\n              <Table celled padded>\n                <Table.Header>\n                  <Table.Row>\n                    <Table.HeaderCell>SL NO</Table.HeaderCell>\n                    <Table.HeaderCell>University Name</Table.HeaderCell>\n                    <Table.HeaderCell>Incharge</Table.HeaderCell>\n                    <Table.HeaderCell>Mobile No</Table.HeaderCell>\n                    <Table.HeaderCell>Status</Table.HeaderCell>\n                    <Table.HeaderCell>Action</Table.HeaderCell>\n                  </Table.Row>\n                </Table.Header>\n\n                <Table.Body>\n                  {this.props.mcfverifynew.map((el, i) => {\n                    var cnt = \"\";\n                    if (el.cnt == \"0\") {\n                      cnt = \"Pending\";\n                    } else {\n                      cnt = el.cnt;\n                    }\n                    // console.log(el.cnt);\n                    return (\n                      <Table.Row>\n                        <Table.Cell>{i + 1}</Table.Cell>\n                        <Table.Cell>\n                          <b>{el.funivname}</b>\n                        </Table.Cell>\n                        <Table.Cell>\n                          <b>{el.fincharge}</b>\n                        </Table.Cell>\n                        <Table.Cell>\n                          <b>{el.fmobileno}</b>\n                        </Table.Cell>\n                        <Table.Cell>\n                          <b>{cnt}</b>\n                        </Table.Cell>\n                        <Table.Cell\n                          textAlign=\"center\"\n                          style={{ fontSize: \"1.2em\", padding: \"0.4em\" }}\n                        >\n                          <Link\n                            to={{\n                              pathname: `/ViewMcfDetails/${\n                                el.funivcode + \"*\" + el.fdate\n                              }`,\n                              query: {\n                                fpath: el.funivcode + \"*\" + el.fdate,\n                              },\n                            }}\n                          >\n                            {el.cnt !== \"0\" ? (\n                              <Button\n                                content=\"View\"\n                                basic\n                                size=\"small\"\n                                // style={{ display: \"flex\" }}\n                                color=\"blue\"\n                                icon=\"print\"\n                              />\n                            ) : null}\n                          </Link>\n                        </Table.Cell>\n                      </Table.Row>\n                    );\n                  })}\n                </Table.Body>\n              </Table>\n            ) : null}\n          </Card.Description>\n        </Card.Content>\n      </Card>\n    );\n  }\n}\n\nconst mapStateToProps = (state) => {\n  console.log(state);\n  return {\n    univcode: state.univ.funivcode,\n    mcfverifynew: state.mcfverifynewdate,\n  };\n};\n\nexport default connect(mapStateToProps, {\n  showError,\n  date,\n})(MCFVerifyNew);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\nimport { history } from \"../registration/loginRegn\";\n\nexport const date = (tID) => {\n  return async function (dispatch, getState) {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    console.log(tID);\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"mcfverifynew\",\n        date: tID.date,\n        univcode: state.user.fcuruniv,\n        user: state.user.fname,\n      },\n    });\n    dispatch({\n      type: \"UNSET_LOADER\",\n    });\n\n    if (typeof response.data !== \"object\") {\n      const error = {\n        header: \"Error\",\n        content: \"Something went wrong\",\n      };\n      dispatch(showError(error));\n    } else if (response.data.error_code === -1) {\n      const error = { header: \"Error\", content: response.data.data.msg };\n      dispatch(showError(error));\n    } else {\n      dispatch({\n        type: \"MCF_VERIFY_NEW\",\n        payload: response.data,\n      });\n    }\n  };\n};\nexport const changeCheckBox = (el, data) => {\n  return async (dispatch, getState) => {\n    dispatch({\n      type: \"CHECK_STATUS\",\n      payload: { cond: el, ind: data },\n    });\n  };\n};\nexport const changeRemarks = (el, data) => {\n  return async (dispatch, getState) => {\n    dispatch({\n      type: \"CHECK_REMARKS\",\n      payload: { cond: el, ind: data },\n    });\n  };\n};\nexport const ViewMcfDetails = (tID, tID1) => {\n  return async function (dispatch, getState) {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n    dispatch({\n      type: \"DELETE_QPSTATS\",\n    });\n\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"mcfviewdetails\",\n        univcode1: tID,\n        date: tID1,\n      },\n    });\n    dispatch({\n      type: \"UNSET_LOADER\",\n    });\n\n    if (typeof response.data !== \"object\") {\n      const error = {\n        header: \"Error\",\n        content: \"Something went wrong\",\n      };\n      dispatch(showError(error));\n      return;\n    } else if (response.data.error_code === -1) {\n      const error = { header: \"Error\", content: response.data.data.msg };\n      dispatch(showError(error));\n      return;\n    } else {\n      dispatch({\n        type: \"MCF_VIEW\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const savestateremarks = (mcfviewdetail) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    const response = await univadmin.post(\n      \"/app.php?a=updatestaturemarks&univcode=\" +\n        state.univ.funivcode +\n        \"&user=\" +\n        state.user.fname,\n      {\n        mcfviewdetailarray: mcfviewdetail,\n      }\n    );\n\n    dispatch({\n      type: \"UNSET_LOADER\",\n    });\n\n    if (typeof response.data !== \"object\") {\n      const error = { header: \"Error\", content: \"Something went wrong\" };\n      dispatch(showError(error));\n    } else if (response.data.error_code === -1) {\n      const error = { header: \"Error\", content: response.data.data.msg };\n      dispatch(showError(error));\n    } else {\n      const error = { header: \"Success\", content: response.data.data.msg };\n      dispatch(showError(error));\n      history.push(\"/mcfverifynew\");\n    }\n  };\n};\n"],"sourceRoot":""}