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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/103.cb7e52a2.chunk.js.map

{"version":3,"sources":["pages/admission/ExamReports.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","actions/before-exam/centers.js"],"names":["AdmissionReport","state","frmDeggrp","reportType","frmSubmit","rftype","fcollcode","clgdrop","fdegfrom","fdegto","fcolfrom","fcolto","fsubfrom","fsubto","showSubRange","fexamrange","fdeggrpfrom","fdeggrpto","moduleType","fyear","fexamtype","showRadioButton","showExamRange","currentReportType","value","text","type","getDegrees","e","data","_this","setState","handleChange","_callee","ddOptions","_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","console","log","props","dropDownOptions","name","toUpperCase","map","element","fcode","obj","fdescpn","fvalue","push","t0","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__","stop","handleSubmit","fdeggrp","user","getReport","showError","header","content","handleReport","_this$state","er","split","join","window","open","ReportAPI","univcode","handleCancel","reportFormat","studentType","handleFromChange","target","renderHeader","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","Header","style","display","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","basic","color","onClick","icon","react_router_dom__WEBPACK_IMPORTED_MODULE_9__","to","componentDidMount","getDropDownOptions","handleItemClick","_ref2","activeItem","_this2","this","_this$state2","colgname","college","filter","item","wheight","parseInt","fcurtype","degcoll","fcollname","concat","wHeight","fluid","Content","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","Description","overflowY","height","margin","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","Field","semantic_ui_react__WEBPACK_IMPORTED_MODULE_14__","placeholder","selection","search","options","onChange","Group","Input","width","onBlur","maxLength","label","marginTop","Component","connect","deggrp","collegeReport","univ","funivcode","menu","activeCollege","fetchDropDownOptions","fetchDegGrp","fetchDegColl","getActiveCollegeList","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default","n","classnames__WEBPACK_IMPORTED_MODULE_1__","classnames__WEBPACK_IMPORTED_MODULE_1___default","react__WEBPACK_IMPORTED_MODULE_2__","react__WEBPACK_IMPORTED_MODULE_2___default","_lib__WEBPACK_IMPORTED_MODULE_3__","_lib__WEBPACK_IMPORTED_MODULE_4__","_lib__WEBPACK_IMPORTED_MODULE_5__","_lib__WEBPACK_IMPORTED_MODULE_6__","Divider","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__","_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","univadmin","get","params","sent","payload","error_code","msg","status","_x","_x2","apply","arguments","updateCntr","el","i","addCntr","fetchCntrListdet","examcntr","degGrp","thpr","_callee2","_context2","_x3","_x4","saveExamCenter","examcntrlist","_ref3","_callee3","_context3","post","_x5","_x6","deleteExamCenter","_ref4","_callee4","_context4","_x7","_x8"],"mappings":"oTAoBMA,6MACJC,MAAQ,CACNC,UAAW,GACXC,WAAY,yBACZC,WAAW,EACXC,OAAQ,MACRC,UAAW,GACXC,SAAS,EACTC,SAAU,EACVC,OAAQ,OACRC,SAAU,IACVC,OAAQ,OACRC,SAAU,IACVC,OAAQ,OACRC,cAAc,EACdC,WAAY,SACZC,YAAa,GACbC,UAAW,GACXC,WAAY,GACZC,MAAO,GACPC,UAAW,GACXC,iBAAiB,EACjBC,eAAe,EACf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L,EAAAhB,MAAA3F,KAAA4F,YAAA,IAuCWqB,EAAmB,SAACf,EAAUC,EAAQC,GACjD,sBAAAc,EAAA/J,OAAAyH,EAAA,EAAAzH,CAAApB,EAAAC,EAAA6I,KAAO,SAAAsC,EAAerC,EAAUC,GAAzB,IAAAlL,EAAAmL,EAAA,OAAAjJ,EAAAC,EAAAC,KAAA,SAAAmL,GAAA,cAAAA,EAAAjL,KAAAiL,EAAAhL,MAAA,cACCvC,EAAQkL,IACdD,EAAS,CACPxJ,KAAM,eAHH8L,EAAAhL,KAAA,EAKkB6I,IAAU6B,KAC/B,wCAA0CjN,EAAM0I,KAAKC,UACrD,CACE/G,KAAM,CACJ4G,OAAQ8D,EACRD,SAAUA,EACVE,KAAMA,KAXP,OAKCpB,EALDoC,EAAAhC,KAeLN,EAAS,CACPxJ,KAAM,iBAGqB,kBAAlB0J,EAASvJ,KAMlBqJ,EAAS,CACPxJ,KAAM,YACN+J,QAPW,CACXC,YAAa,EACb7J,KAAM,CAAE8J,IAAK,wBACbC,OAAQ,aAOVV,EAAS,CACPxJ,KAAM,YACN+J,QAASL,EAASvJ,OAhCjB,wBAAA2L,EAAA/J,SAAA8J,MAAP,gBAAAE,EAAAC,GAAA,OAAAJ,EAAAvB,MAAA3F,KAAA4F,YAAA","file":"static/js/103.cb7e52a2.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n  Card,\n  Button,\n  Form,\n  Dropdown,\n  Divider,\n  Radio,\n  Menu,\n  Header,\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp, getReport, getDropDownOptions } from \"../../actions\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport { wHeight } from \"../parms\";\nimport { fetchDegColl } from \"../../actions/before-exam/centers\";\nimport { getActiveCollegeList } from \"../../actions/masters/activeclglist\";\n\nclass AdmissionReport extends Component {\n  state = {\n    frmDeggrp: \"\",\n    reportType: \"degreeWiseStudentCount\",\n    frmSubmit: false,\n    rftype: \"PDF\",\n    fcollcode: \"\",\n    clgdrop: false,\n    fdegfrom: 0,\n    fdegto: \"ZZZZ\",\n    fcolfrom: \"0\",\n    fcolto: \"ZZZZ\",\n    fsubfrom: \"0\",\n    fsubto: \"ZZZZ\",\n    showSubRange: false,\n    fexamrange: \"ABCDEF\",\n    fdeggrpfrom: \"\",\n    fdeggrpto: \"\",\n    moduleType: \"\",\n    fyear: \"\",\n    fexamtype: \"\",\n    showRadioButton: false,\n    showExamRange: false,\n    currentReportType: [\n      {\n        value: \"examRegistrationSummary\",\n        text: \"Exam Registration Summary\",\n        type: \"EXAM\",\n      },\n      {\n        value: \"examRegistrationDetail\",\n        text: \"Exam Registration Detail\",\n        type: \"EXAM\",\n      },\n      {\n        value: \"exmapp_reg_rep_count\",\n        text: \"Course Wise Active Student Count(Regular,Repeater)\",\n        type: \"EXAM\",\n      },\n      {\n        value: \"exam_tot_student_count_semwise\",\n        text: \"Course Wise Active Student Count(Degree wise)\",\n        type: \"EXAM\",\n      },\n      {\n        value: \"generateCollegeWiseStudListReport\",\n        text: \"College wise Student List\",\n        type: \"EXAM\",\n      },\n    ],\n  };\n\n  getDegrees = (e, data) => {\n    // console.log(data.value);\n    this.setState({ frmDeggrp: data.value });\n  };\n\n  handleChange = async (e, data) => {\n    console.log(\"opt\", this.props.dropDownOptions);\n\n    // make range capital\n    if (\n      data.name == \"fdegfrom\" ||\n      data.name == \"fdegto\" ||\n      data.name == \"fcolfrom\" ||\n      data.name == \"fcolto\" ||\n      data.name == \"fsubfrom\" ||\n      data.name == \"fsubto\" ||\n      data.name == \"fdeggrpfrom\" ||\n      data.name == \"fdeggrpto\"\n    ) {\n      data.value = data.value.toUpperCase();\n    }\n\n    let ddOptions = [];\n    if (data.name == \"moduleType\") {\n      // console.log(this.props.fetchDropDownOptions);\n      if (data.value == \"ADM\") {\n        this.props.dropDownOptions.map((element) => {\n          if (element.fcode == \"SRADM\") {\n            let obj = {};\n            obj.text = element.fdescpn;\n            obj.value = element.fvalue;\n            ddOptions.push(obj);\n          }\n        });\n      } else if (data.value == \"EXAM\") {\n        this.props.dropDownOptions.map((element) => {\n          if (element.fcode == \"SREXA\") {\n            let obj = {};\n            obj.text = element.fdescpn;\n            obj.value = element.fvalue;\n            ddOptions.push(obj);\n          }\n        });\n      } else if (data.value == \"GEN\") {\n        this.props.dropDownOptions.map((element) => {\n          if (element.fcode == \"SRGEN\") {\n            let obj = {};\n            obj.text = element.fdescpn;\n            obj.value = element.fvalue;\n            ddOptions.push(obj);\n          }\n        });\n      }\n      console.log(\"options\", ddOptions);\n      this.setState({ currentReportType: ddOptions });\n    }\n\n    switch (data.type) {\n      case \"text\":\n        await this.setState({ [data.name]: data.value });\n\n      default:\n        this.setState({ [data.name]: data.value });\n    }\n\n    if (data.value == \"ADM\" || data.value == \"EXAM\") {\n      this.setState({ showSubRange: true });\n      this.setState({ showRadioButton: false });\n    }\n    if (data.value == \"GEN\") {\n      this.setState({ showSubRange: false });\n    }\n    // else {\n    //   this.setState({ showSubRange: false });\n    //\n\n    if (data.value == \"GEN\") this.setState({ showRadioButton: true });\n\n    if (data.value == \"EXAM\") this.setState({ showExamRange: true });\n\n    if (data.value == \"ADM\" || data.value == \"GEN\")\n      this.setState({ showExamRange: false });\n\n    this.setState({ frmSubmit: false });\n  };\n\n  handleSubmit = () => {\n    const { fdeggrp } = this.props.user;\n    const { reportType } = this.state;\n    if (fdeggrp === \"\") {\n      const error = { header: \"Error\", content: \"Select Degree Group\" };\n      this.props.showError(error);\n      return;\n    }\n    this.props.getReport(reportType, \"tables\", fdeggrp);\n    this.setState({ frmSubmit: true });\n  };\n\n  handleReport = () => {\n    const { fdeggrp } = this.props.user;\n    // http://universitysolutions.in/univadmin/app.php?a=exmapp_reg_rep_count&deggrp=UG&univcode=027&fdegfrom=0&fdegto=ZZZZZ&fcollfrom=0&fcollto=ZZZZ\n    const { reportType, rftype } = this.state;\n    let er = this.state.fexamrange;\n    er = er.split(\"\").join(\"','\");\n    console.log(\"first\");\n    console.log(er);\n    window.open(\n      ReportAPI +\n        reportType +\n        \"&univcode=\" +\n        this.props.univcode +\n        \"&deggrp=\" +\n        fdeggrp +\n        \"&format=\" +\n        rftype +\n        \"&fcollfrom=\" +\n        this.state.fcolfrom +\n        \"&fcollto=\" +\n        this.state.fcolto +\n        \"&fdegfrom=\" +\n        this.state.fdegfrom +\n        \"&fdegto=\" +\n        this.state.fdegto +\n        \"&fdeggrpfrom=\" +\n        this.state.fdeggrpfrom +\n        \"&fdeggrpto=\" +\n        this.state.fdeggrpto +\n        \"&fsubfrom=\" +\n        this.state.fsubfrom +\n        \"&fsubto=\" +\n        this.state.fsubto +\n        \"&fyear=\" +\n        this.state.fyear +\n        \"&fexamtype=\" +\n        this.state.fexamtype +\n        \"&fexamrange=\" +\n        er,\n      \"_blank\"\n    );\n  };\n\n  handleCancel = () => {\n    this.setState({\n      reportType: \"\",\n      reportFormat: \"\",\n      frmDeggrp: \"\",\n      studentType: \"\",\n    });\n  };\n\n  handleFromChange = (e, data) => {\n    // console.log(\"value\", e.target.name, e.target.value);\n    let name = e.target.name;\n    let value = e.target.value;\n    if (name == \"fdegfrom\" || name == \"fcolfrom\" || name == \"fsubfrom\") {\n      if (name == \"fdegfrom\")\n        value == \"0\"\n          ? this.setState({ fdegto: \"ZZZZ\" })\n          : this.setState({ fdegto: value });\n      if (name == \"fcolfrom\")\n        value == \"0\"\n          ? this.setState({ fcolto: \"ZZZZ\" })\n          : this.setState({ fcolto: value });\n      if (name == \"fsubfrom\")\n        value == \"0\"\n          ? this.setState({ fsubto: \"ZZZZ\" })\n          : this.setState({ fsubto: value });\n\n      if (name == \"fdeggrpfrom\")\n        value == \"0\"\n          ? this.setState({ fdeggrpto: \"ZZZZ\" })\n          : this.setState({ fdeggrpto: value });\n    }\n  };\n\n  renderHeader = () => {\n    return (\n      <Card.Header style={{ display: \"flex\" }}>\n        <h3>Exam Reports</h3>\n        <div className=\"ml-auto\">\n          <Button\n            basic\n            color=\"blue\"\n            onClick={this.handleReport}\n            content=\"Report\"\n            icon=\"file\"\n          />\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    );\n  };\n\n  componentDidMount = () => {\n    this.setState({\n      fdeggrpfrom: this.props.user.fdeggrp,\n      fdeggrpto: this.props.user.fdeggrp,\n      fyear: this.props.user.fyear,\n      fexamtype: this.props.user.fexamtype,\n    });\n\n    this.props.getDropDownOptions();\n    console.log(\"api called\", this.props.dropDownOptions);\n  };\n  handleItemClick = (e, { name }) => this.setState({ activeItem: name });\n\n  render() {\n    const {\n      frmSubmit,\n      reportType,\n      rftype,\n      fcollcode,\n      fdegfrom,\n      fdegto,\n      fcolfrom,\n      fcolto,\n      fdeggrpfrom,\n      fdeggrpto,\n      fsubfrom,\n      fsubto,\n      clgdrop,\n      showSubRange,\n      fexamrange,\n      moduleType,\n      currentReportType,\n      fyear,\n      fexamtype,\n    } = this.state;\n    const { activeItem } = this.state;\n\n    const moduleTypeOptions = [\n      { value: \"ADM\", text: \"Admmision\" },\n      { value: \"EXAM\", text: \"Exam\" },\n      { value: \"GEN\", text: \"General Report\" },\n    ];\n\n    const colgname = this.props.college.filter(\n      (item) => item.fcollcode == this.props.user.fcollcode\n    )[0];\n\n    const collegeOptions =\n      parseInt(this.props.user.fcurtype) < 499\n        ? this.props.degcoll.map((item) => {\n            return {\n              value: item.fcollcode,\n              text: item.fcollname,\n            };\n          })\n        : [\n            {\n              value: colgname.fcollcode,\n              text: `${colgname.fcollcode}  ${colgname.fcollname} `,\n            },\n          ];\n\n    const wheight = wHeight();\n    // console.log(reportType, frmSubmit);\n    return (\n      <div className=\"animated fadeIn\">\n        <Card fluid>\n          <Card.Content>\n            {this.renderHeader()}\n            <Divider />\n            <Card.Description\n              style={{ overflowY: \"auto\", height: `${wheight}px` }}\n            >\n              <div className=\"row\" style={{ margin: \"0px\" }}>\n                <div className=\"col-md-6\">\n                  <Form>\n                    <Form.Field>\n                      <label>Report Type</label>\n                      <Dropdown\n                        placeholder=\"Select Report Type\"\n                        name=\"reportType\"\n                        value={reportType}\n                        selection\n                        search\n                        options={currentReportType}\n                        onChange={this.handleChange}\n                      />\n                    </Form.Field>\n                    <Form.Group>\n                      <Form.Input\n                        placeholder=\"From\"\n                        value={fdeggrpfrom}\n                        width={8}\n                        name=\"fdeggrpfrom\"\n                        onChange={this.handleChange}\n                        onBlur={this.handleFromChange}\n                        maxLength=\"5\"\n                        label=\"Degree Group Range\"\n                      />\n                      <Form.Input\n                        placeholder=\"To\"\n                        name=\"fdeggrpto\"\n                        value={fdeggrpto}\n                        width={8}\n                        onChange={this.handleChange}\n                        maxLength=\"5\"\n                        style={{ marginTop: \"1.6em\" }}\n                      />\n                    </Form.Group>\n                    {reportType == \"exam_tot_student_count_semwise\" ? (\n                      <Form.Group>\n                        <Form.Input\n                          placeholder=\"Year\"\n                          value={fyear}\n                          width={8}\n                          name=\"fyear\"\n                          onChange={this.handleChange}\n                          maxLength=\"4\"\n                          label=\"Year\"\n                        />\n                        <Form.Input\n                          placeholder=\"Exam Type\"\n                          name=\"fexamtype\"\n                          value={fexamtype}\n                          width={8}\n                          onChange={this.handleChange}\n                          maxLength=\"1\"\n                          label=\"Exam Type\"\n                          // style={{ marginTop: \"1.6em\" }}\n                        />\n                      </Form.Group>\n                    ) : null}\n                    <Form.Group>\n                      <Form.Input\n                        placeholder=\"From\"\n                        value={fdegfrom}\n                        width={8}\n                        name=\"fdegfrom\"\n                        onChange={this.handleChange}\n                        onBlur={this.handleFromChange}\n                        maxLength=\"5\"\n                        label=\"Degree Range\"\n                      />\n                      <Form.Input\n                        placeholder=\"To\"\n                        name=\"fdegto\"\n                        value={fdegto}\n                        width={8}\n                        onChange={this.handleChange}\n                        maxLength=\"5\"\n                        style={{ marginTop: \"1.6em\" }}\n                      />\n                    </Form.Group>\n                    <Form.Group>\n                      <Form.Input\n                        placeholder=\"From\"\n                        value={fcolfrom}\n                        width={8}\n                        name=\"fcolfrom\"\n                        onChange={this.handleChange}\n                        onBlur={this.handleFromChange}\n                        maxLength=\"4\"\n                        label=\"College Range\"\n                      />\n                      <Form.Input\n                        placeholder=\"To\"\n                        name=\"fcolto\"\n                        value={fcolto}\n                        width={8}\n                        onChange={this.handleChange}\n                        maxLength=\"4\"\n                        style={{ marginTop: \"1.6em\" }}\n                      />\n                    </Form.Group>\n                    {reportType != \"exam_tot_student_count_semwise\" ? (\n                      <Form.Group>\n                        <Form.Input\n                          placeholder=\"From\"\n                          value={fsubfrom}\n                          width={8}\n                          name=\"fsubfrom\"\n                          onChange={this.handleChange}\n                          maxLength=\"5\"\n                          label=\"Subject Code Range\"\n                        />\n                        <Form.Input\n                          placeholder=\"To\"\n                          name=\"fsubto\"\n                          value={fsubto}\n                          width={8}\n                          onChange={this.handleChange}\n                          maxLength=\"5\"\n                          style={{ marginTop: \"1.6em\" }}\n                        />\n                      </Form.Group>\n                    ) : null}\n                    <Form.Group>\n                      <Form.Input\n                        placeholder=\"To\"\n                        name=\"fexamrange\"\n                        value={fexamrange}\n                        width={8}\n                        onChange={this.handleChange}\n                        maxLength=\"10\"\n                        // style={{ marginTop: \"\" }}\n                        label=\"Exam Range\"\n                      />\n                    </Form.Group>\n\n                    <br />\n                  </Form>\n                </div>\n              </div>\n            </Card.Description>\n          </Card.Content>\n        </Card>\n      </div>\n    );\n  }\n}\n\nconst mapStateToProps = (state) => {\n  return {\n    deggrp: state.deggrp,\n    collegeReport: state.collegeReport,\n    univcode: state.univ.funivcode,\n    user: state.user,\n    menu: state.menu,\n    degcoll: state.degcoll,\n    college: state.activeCollege,\n    dropDownOptions: state.fetchDropDownOptions,\n  };\n};\nexport default connect(mapStateToProps, {\n  fetchDegGrp,\n  fetchDegColl,\n  getReport,\n  showError,\n  getActiveCollegeList,\n  getDropDownOptions,\n})(AdmissionReport);\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A divider visually segments content into groups.\n */\n\nfunction Divider(props) {\n  var children = props.children,\n      className = props.className,\n      clearing = props.clearing,\n      content = props.content,\n      fitted = props.fitted,\n      hidden = props.hidden,\n      horizontal = props.horizontal,\n      inverted = props.inverted,\n      section = props.section,\n      vertical = props.vertical;\n  var classes = cx('ui', useKeyOnly(clearing, 'clearing'), useKeyOnly(fitted, 'fitted'), useKeyOnly(hidden, 'hidden'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), useKeyOnly(section, 'section'), useKeyOnly(vertical, 'vertical'), 'divider', className);\n  var rest = getUnhandledProps(Divider, props);\n  var ElementType = getElementType(Divider, props);\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), childrenUtils.isNil(children) ? content : children);\n}\n\nDivider.handledProps = [\"as\", \"children\", \"className\", \"clearing\", \"content\", \"fitted\", \"hidden\", \"horizontal\", \"inverted\", \"section\", \"vertical\"];\nDivider.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\n\n  /** Primary content. */\n  children: PropTypes.node,\n\n  /** Additional classes. */\n  className: PropTypes.string,\n\n  /** Divider can clear the content above it. */\n  clearing: PropTypes.bool,\n\n  /** Shorthand for primary content. */\n  content: customPropTypes.contentShorthand,\n\n  /** Divider can be fitted without any space above or below it. */\n  fitted: PropTypes.bool,\n\n  /** Divider can divide content without creating a dividing line. */\n  hidden: PropTypes.bool,\n\n  /** Divider can segment content horizontally. */\n  horizontal: PropTypes.bool,\n\n  /** Divider can have its colours inverted. */\n  inverted: PropTypes.bool,\n\n  /** Divider can provide greater margins to divide sections of content. */\n  section: PropTypes.bool,\n\n  /** Divider can segment content vertically. */\n  vertical: PropTypes.bool\n} : {};\nexport default Divider;","import univadmin from \"../../apis/univadmin\";\n\nexport const fetchDegColl = deggrp => {\n  return async function(dispatch, getState) {\n    const state = getState();\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"fetchDegColl\",\n        univcode: state.univ.funivcode,\n        deggrp: deggrp\n      }\n    });\n    if (typeof response.data !== \"object\") {\n      const data = {\n        error_code: -1,\n        data: { msg: \"Something went wrong\" },\n        status: \"failure\"\n      };\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: data\n      });\n    } else if (response.data.error_code === 0) {\n      dispatch({\n        type: \"FETCH_DEGCOLL\",\n        payload: response.data\n      });\n    } else {\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: response.data\n      });\n    }\n  };\n};\n\nexport const updateCntr = (el, i) => {\n  return {\n    type: \"UPD_CNTR_DET\",\n    payload: { el, i }\n  };\n};\n\nexport const addCntr = el => {\n  // console.log(el);\n  return {\n    type: \"ADD_CNTR_DET\",\n    payload: el\n  };\n};\n\nexport const fetchCntrListdet = (examcntr, degGrp, thpr) => {\n  return async function(dispatch, getState) {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\"\n    });\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"fetchCntrListdet\",\n        univcode: state.univ.funivcode,\n        deggrp: degGrp,\n        examcntr: examcntr,\n        thpr: thpr\n      }\n    });\n\n    dispatch({\n      type: \"UNSET_LOADER\"\n    });\n\n    if (typeof response.data !== \"object\") {\n      const data = {\n        error_code: -1,\n        data: { msg: \"Something went wrong\" },\n        status: \"failure\"\n      };\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: data\n      });\n    } else if (response.data.error_code === 0) {\n      dispatch({\n        type: \"FETCH_CNTR_DET\",\n        payload: response.data\n      });\n    } else {\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: response.data\n      });\n    }\n  };\n};\n\nexport const saveExamCenter = (examcntrlist, examcntr, degGrp, thpr) => {\n  return async function(dispatch, getState) {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\"\n    });\n    const response = await univadmin.post(\n      \"/app.php?a=saveExamCenter&univcode=\" + state.univ.funivcode,\n      {\n        data: {\n          deggrp: degGrp,\n          examcntr: examcntr,\n          thpr: thpr,\n          examcntrlist: examcntrlist\n        }\n      }\n    );\n    dispatch({\n      type: \"UNSET_LOADER\"\n    });\n\n    if (typeof response.data !== \"object\") {\n      const data = {\n        error_code: -1,\n        data: { msg: \"Something went wrong\" },\n        status: \"failure\"\n      };\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: data\n      });\n    } else {\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: response.data\n      });\n    }\n  };\n};\n\nexport const deleteExamCenter = (examcntr, degGrp, thpr) => {\n  return async function(dispatch, getState) {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\"\n    });\n    const response = await univadmin.post(\n      \"/app.php?a=deleteExamCenter&univcode=\" + state.univ.funivcode,\n      {\n        data: {\n          deggrp: degGrp,\n          examcntr: examcntr,\n          thpr: thpr\n        }\n      }\n    );\n    dispatch({\n      type: \"UNSET_LOADER\"\n    });\n\n    if (typeof response.data !== \"object\") {\n      const data = {\n        error_code: -1,\n        data: { msg: \"Something went wrong\" },\n        status: \"failure\"\n      };\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: data\n      });\n    } else {\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: response.data\n      });\n    }\n  };\n};\n"],"sourceRoot":""}