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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/266.9518ba51.chunk.js.map

{"version":3,"sources":["pages/pget/PgetReports.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["PgetReports","_Component","_getPrototypeOf2","_this","_classCallCheck","this","_len","arguments","length","args","Array","_key","_possibleConstructorReturn","_getPrototypeOf","call","apply","concat","state","frmDeggrp","reportType","frmSubmit","getDegrees","e","data","setState","value","handleChange","type","_defineProperty","name","handleSubmit","handleReport","fdeggrp","props","user","window","open","ReportAPI","univcode","showError","header","content","handleCancel","reportFormat","renderHeader","React","createElement","Card","Header","style","display","className","Button","basic","color","onClick","icon","Link","to","_inherits","_createClass","key","_this$state","wheight","wHeight","fluid","Content","Divider","Description","overflowY","height","Form","Field","Dropdown","placeholder","selection","search","options","text","onChange","Component","connect","deggrp","collegeReport","univ","funivcode","menu","fetchDegGrp","getReport","_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__","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","Object","rest","ElementType","a","isNil","handledProps","propTypes","__webpack_exports__"],"mappings":"8QASMA,EAAW,SAAAC,GAAA,SAAAD,IAAA,IAAAE,EAAAC,EAAAC,YAAAC,KAAAL,GAAA,QAAAM,EAAAC,UAAAC,OAAAC,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sourcesContent":["import React, { Component } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { Card, Button, Form, Dropdown, Divider } from \"semantic-ui-react\";\r\nimport { connect } from \"react-redux\";\r\nimport { fetchDegGrp, getReport } from \"../../actions\";\r\nimport { ReportAPI } from \"../../apis/consts\";\r\nimport { showError } from \"../../actions\";\r\nimport { wHeight } from \"../parms\";\r\n\r\nclass PgetReports extends Component {\r\n  state = {\r\n    frmDeggrp: \"\",\r\n    reportType: \"pgetAppliedList\",\r\n    frmSubmit: false,\r\n  };\r\n\r\n  componentDidMount() {}\r\n\r\n  getDegrees = (e, data) => {\r\n    this.setState({ frmDeggrp: data.value });\r\n  };\r\n\r\n  handleChange = (e, data) => {\r\n    switch (data.type) {\r\n      case \"text\":\r\n        this.setState({ [data.name]: data.value });\r\n      default:\r\n        this.setState({ [data.name]: data.value });\r\n    }\r\n    this.setState({ frmSubmit: false });\r\n  };\r\n\r\n  handleSubmit = () => {\r\n    // const { fdeggrp } = this.props.user;\r\n    // const { reportType } = this.state;\r\n    // if (fdeggrp === \"\") {\r\n    //   const error = { header: \"Error\", content: \"Select Degree Group\" };\r\n    //   this.props.showError(error);\r\n    //   return;\r\n    // }\r\n    // this.props.getReport(reportType, \"tables\", fdeggrp);\r\n    // this.setState({ frmSubmit: true });\r\n  };\r\n\r\n  handleReport = () => {\r\n    const { fdeggrp } = this.props.user;\r\n    const { reportType } = this.state;\r\n    if (fdeggrp === \"\") {\r\n      const error = { header: \"Error\", content: \"Select Degree Group\" };\r\n      this.props.showError(error);\r\n      return;\r\n    }\r\n    window.open(\r\n      ReportAPI +\r\n        reportType +\r\n        \"&univcode=\" +\r\n        this.props.univcode +\r\n        \"&deggrp=\" +\r\n        fdeggrp +\r\n        \"&val=\" +\r\n        reportType +\r\n        \"&format=\" +\r\n        \"PDF\",\r\n      \"_blank\"\r\n    );\r\n  };\r\n\r\n  handleCancel = () => {\r\n    this.setState({\r\n      reportType: \"\",\r\n      reportFormat: \"\",\r\n      frmDeggrp: \"\",\r\n    });\r\n  };\r\n\r\n  renderHeader = () => {\r\n    return (\r\n      <Card.Header style={{ display: \"flex\" }}>\r\n        <h3>PG Entrance Test Reports</h3>\r\n        <div className=\"ml-auto\">\r\n          <Button\r\n            basic\r\n            color=\"blue\"\r\n            onClick={this.handleReport}\r\n            content=\"Report\"\r\n            icon=\"file\"\r\n          />\r\n          <Button\r\n            basic\r\n            color=\"black\"\r\n            icon=\"ban\"\r\n            onClick={this.handleCancel}\r\n            content=\"Cancel\"\r\n          />\r\n          <Link to=\"/dashboard\">\r\n            <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\r\n          </Link>\r\n        </div>\r\n      </Card.Header>\r\n    );\r\n  };\r\n\r\n  render() {\r\n    const { frmSubmit, reportType } = this.state;\r\n\r\n    const reporttypeOptions = [\r\n      { value: \"pgetAppliedList\", text: \"Degree Wise Applied Student List\" },\r\n      { value: \"pgetFeedetlList\", text: \"Fee Paid Student List\" },\r\n      { value: \"pgetAppStatus\", text: \"Application Status\" },\r\n    ];\r\n    const wheight = wHeight();\r\n    return (\r\n      <div className=\"animated fadeIn\">\r\n        <Card fluid>\r\n          <Card.Content>\r\n            {this.renderHeader()}\r\n            <Divider />\r\n            <Card.Description\r\n              style={{ overflowY: \"auto\", height: `${wheight}px` }}\r\n            >\r\n              <div className=\"col-md-6\">\r\n                <Form>\r\n                  <Form.Field>\r\n                    <label>Report Type</label>\r\n                    <Dropdown\r\n                      placeholder=\"Select Report Type\"\r\n                      name=\"reportType\"\r\n                      value={reportType}\r\n                      selection\r\n                      search\r\n                      options={reporttypeOptions}\r\n                      onChange={this.handleChange}\r\n                    />\r\n                  </Form.Field>\r\n\r\n                  <Button color=\"blue\" onClick={this.handleSubmit}>\r\n                    Submit\r\n                  </Button>\r\n                  <br />\r\n                </Form>\r\n              </div>\r\n            </Card.Description>\r\n          </Card.Content>\r\n        </Card>\r\n      </div>\r\n    );\r\n  }\r\n}\r\n\r\nconst mapStateToProps = (state) => {\r\n  return {\r\n    deggrp: state.deggrp,\r\n    collegeReport: state.collegeReport,\r\n    univcode: state.univ.funivcode,\r\n    user: state.user,\r\n    menu: state.menu,\r\n  };\r\n};\r\nexport default connect(mapStateToProps, {\r\n  fetchDegGrp,\r\n  getReport,\r\n  showError,\r\n})(PgetReports);\r\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}\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  /** Primary content. */\n  children: PropTypes.node,\n  /** Additional classes. */\n  className: PropTypes.string,\n  /** Divider can clear the content above it. */\n  clearing: PropTypes.bool,\n  /** Shorthand for primary content. */\n  content: customPropTypes.contentShorthand,\n  /** Divider can be fitted without any space above or below it. */\n  fitted: PropTypes.bool,\n  /** Divider can divide content without creating a dividing line. */\n  hidden: PropTypes.bool,\n  /** Divider can segment content horizontally. */\n  horizontal: PropTypes.bool,\n  /** Divider can have its colours inverted. */\n  inverted: PropTypes.bool,\n  /** Divider can provide greater margins to divide sections of content. */\n  section: PropTypes.bool,\n  /** Divider can segment content vertically. */\n  vertical: PropTypes.bool\n} : {};\nexport default Divider;"],"sourceRoot":""}