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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/264.35fdc3d9.chunk.js.map

{"version":3,"sources":["pages/masters/subject/subwiseList/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["SubjectWiseList","_Component","_getPrototypeOf2","_this","_classCallCheck","this","_len","arguments","length","args","Array","_key","_possibleConstructorReturn","_getPrototypeOf","call","apply","concat","state","frmDeggrp","reportType","reportTypeFor","rftype","fdegfrom","fdegto","fcolfrom","fcolto","fsubfrom","fsubto","fexamRng","reportWise","getDegrees","e","data","setState","value","handleChange","type","_defineProperty","name","handleReport","_this$props$user","props","user","fdeggrp","fcuruniv","_this$state","vdatefrom","vdateto","fexamno","split","join","window","open","ReportAPI","showError","header","content","handleCancel","reportFormat","renderHeader","React","createElement","Card","Header","style","display","className","Button","basic","color","onClick","icon","Link","to","_inherits","_createClass","key","_this$state2","wheight","wHeight","fluid","Content","Divider","Description","overflowY","height","Form","Group","Field","Dropdown","placeholder","selection","search","options","text","onChange","Input","label","width","maxLength","marginTop","Component","connect","_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":"8QAeMA,EAAe,SAA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AD,EAAAE,EAAAH,GAAAI,EAAAH,EAAA,KAAAI,EAAAJ,EAAAE,EAAAC,GAAAE,EAAAL,EAAA,GAAAM,EAAAN,EAAAE,EAAAG,GAAAE,EAAAP,EAAA,KAAAQ,EAAAR,EAAA,KAAAS,EAAAT,EAAA,KAAAU,EAAAV,EAAA,KASA,SAAAtB,EAAAzC,GACA,IAAA0E,EAAA1E,EAAA0E,SACAjD,EAAAzB,EAAAyB,UACAkD,EAAA3E,EAAA2E,SACA5D,EAAAf,EAAAe,QACA6D,EAAA5E,EAAA4E,OACAC,EAAA7E,EAAA6E,OACAC,EAAA9E,EAAA8E,WACAC,EAAA/E,EAAA+E,SACAC,EAAAhF,EAAAgF,QACAC,EAAAjF,EAAAiF,SACAC,EAAgBf,IAAE,KAAOgB,OAAAb,EAAA,EAAAa,CAAUR,EAAA,YAAwBQ,OAAAb,EAAA,EAAAa,CAAUP,EAAA,UAAoBO,OAAAb,EAAA,EAAAa,CAAUN,EAAA,UAAoBM,OAAAb,EAAA,EAAAa,CAAUL,EAAA,cAA4BK,OAAAb,EAAA,EAAAa,CAAUJ,EAAA,YAAwBI,OAAAb,EAAA,EAAAa,CAAUH,EAAA,WAAsBG,OAAAb,EAAA,EAAAa,CAAUF,EAAA,sBAAAxD,GACzO2D,EAAaD,OAAAZ,EAAA,EAAAY,CAAiB1C,EAAAzC,GAC9BqF,EAAoBF,OAAAX,EAAA,EAAAW,CAAc1C,EAAAzC,GAClC,OAASqE,EAAAiB,EAAKlE,cAAAiE,EAA4BrB,IAAQ,GAAGoB,EAAA,CACrD3D,UAAAyD,IACMT,EAAA,EAAac,MAAAb,GAAA3D,EAAA2D,GAEnBjC,EAAA+C,aAAA,kHACA/C,EAAAgD,UAuBC,GACcC,EAAA","file":"static/js/264.35fdc3d9.chunk.js","sourcesContent":["import React, { Component } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport {\r\n  Card,\r\n  Button,\r\n  Form,\r\n  Dropdown,\r\n  Divider,\r\n  Radio,\r\n} from \"semantic-ui-react\";\r\nimport { connect } from \"react-redux\";\r\nimport { ReportAPI } from \"../../../../apis/consts\";\r\nimport { showError } from \"../../../../actions\";\r\nimport { wHeight } from \"../../../parms\";\r\n\r\nclass SubjectWiseList extends Component {\r\n  state = {\r\n    frmDeggrp: \"\",\r\n    reportType: \"\",\r\n    reportTypeFor: \"\",\r\n    rftype: \"PDF\",\r\n    fdegfrom: \"0000\",\r\n    fdegto: \"zzzz\",\r\n    fcolfrom: \"0000\",\r\n    fcolto: \"zzzz\",\r\n    fsubfrom: \"0000\",\r\n    fsubto: \"zzzz\",\r\n    fexamRng: \"\",\r\n    reportWise: \"\",\r\n  };\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  };\r\n\r\n  handleReport = () => {\r\n    const { fdeggrp, fcuruniv } = this.props.user;\r\n    const {\r\n      reportType,\r\n      rftype,\r\n      fdegfrom,\r\n      fdegto,\r\n      fcolfrom,\r\n      fcolto,\r\n      fsubfrom,\r\n      fsubto,\r\n      vdatefrom,\r\n      vdateto,\r\n      reportTypeFor,\r\n      fexamRng,\r\n      reportWise,\r\n    } = this.state;\r\n\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\r\n    let fexamno = fexamRng.split(\"\").join(\"','\");\r\n    window.open(\r\n      `${ReportAPI}${reportTypeFor}&univcode=${fcuruniv}&deggrp=${fdeggrp}&fdegfrom=${fdegfrom}\r\n    &fdegto=${fdegto}&fcolfrom=${fcolfrom}&fcolto=${fcolto}&fsubfrom=${fsubfrom}&fsubto=${fsubto}\r\n    &fexamno=${fexamno}&rtype=${reportType}&reportWise=${reportWise}`,\r\n      \"_blank\"\r\n    );\r\n\r\n    // window.location =\r\n    //   ReportAPI +\r\n    //   reportTypeFor +\r\n    //   \"&univcode=\" +\r\n    //   fcuruniv +\r\n    //   \"&deggrp=\" +\r\n    //   fdeggrp +\r\n    //   \"&fdegfrom=\" +\r\n    //   fdegfrom +\r\n    //   \"&fdegto=\" +\r\n    //   fdegto +\r\n    //   \"&vdatefrom=\" +\r\n    //   vdatefrom +\r\n    //   \"&vdateto=\" +\r\n    //   vdateto +\r\n    //   \"&format=\" +\r\n    //   rftype +\r\n    //   \"&user=\" +\r\n    //   JSON.stringify(this.props.user);\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>Subject Wise List</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 {\r\n      reportType,\r\n      rftype,\r\n      fdegfrom,\r\n      fdegto,\r\n      fcolfrom,\r\n      fcolto,\r\n      fsubfrom,\r\n      fsubto,\r\n      reportTypeFor,\r\n      fexamRng,\r\n      reportWise,\r\n    } = this.state;\r\n\r\n    const reportfor = [\r\n      { value: \"ExamRegistration\", text: \"Exam Registration\" },\r\n      { value: \"Admission\", text: \"Admission\" },\r\n    ];\r\n\r\n    const reporttypeOptions = [\r\n      { value: \"Summary\", text: \"Summary\" },\r\n      { value: \"Detailed\", text: \"Detailed\" },\r\n    ];\r\n\r\n    const reportWiseOpt = [\r\n      { value: \"College Wise\", text: \"College Wise\" },\r\n      { value: \"Degree Wise\", text: \"Degree Wise\" },\r\n    ];\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.Group>\r\n                    <Form.Field>\r\n                      <label>Type</label>\r\n                      <Dropdown\r\n                        placeholder=\"Select Report Type\"\r\n                        name=\"reportTypeFor\"\r\n                        value={reportTypeFor}\r\n                        selection\r\n                        search\r\n                        options={reportfor}\r\n                        onChange={this.handleChange}\r\n                        // width={8}\r\n                      />\r\n                    </Form.Field>\r\n                    <Form.Field>\r\n                      <Form.Input\r\n                        placeholder=\"Ex.:ABCD\"\r\n                        value={fexamRng}\r\n                        // width={8}\r\n                        name=\"fexamRng\"\r\n                        onChange={this.handleChange}\r\n                        // maxLength=\"5\"\r\n                        label=\"Exam Range\"\r\n                      />\r\n                    </Form.Field>\r\n                  </Form.Group>\r\n\r\n                  <Form.Group>\r\n                    <Form.Input\r\n                      placeholder=\"From\"\r\n                      value={fdegfrom}\r\n                      width={8}\r\n                      name=\"fdegfrom\"\r\n                      onChange={this.handleChange}\r\n                      maxLength=\"5\"\r\n                      label=\"Degree Range\"\r\n                    />\r\n                    <Form.Input\r\n                      placeholder=\"To\"\r\n                      name=\"fdegto\"\r\n                      value={fdegto}\r\n                      width={8}\r\n                      onChange={this.handleChange}\r\n                      maxLength=\"5\"\r\n                      style={{ marginTop: \"1.6em\" }}\r\n                    />\r\n                  </Form.Group>\r\n                  <Form.Group>\r\n                    <Form.Input\r\n                      placeholder=\"From\"\r\n                      value={fcolfrom}\r\n                      width={8}\r\n                      name=\"fcolfrom\"\r\n                      onChange={this.handleChange}\r\n                      maxLength=\"5\"\r\n                      label=\"College Range\"\r\n                    />\r\n                    <Form.Input\r\n                      placeholder=\"To\"\r\n                      name=\"fcolto\"\r\n                      value={fcolto}\r\n                      width={8}\r\n                      onChange={this.handleChange}\r\n                      maxLength=\"5\"\r\n                      style={{ marginTop: \"1.6em\" }}\r\n                    />\r\n                  </Form.Group>\r\n                  <Form.Group>\r\n                    <Form.Input\r\n                      placeholder=\"From\"\r\n                      value={fsubfrom}\r\n                      width={8}\r\n                      name=\"fsubfrom\"\r\n                      onChange={this.handleChange}\r\n                      maxLength=\"5\"\r\n                      label=\"Subject Code Range\"\r\n                    />\r\n                    <Form.Input\r\n                      placeholder=\"To\"\r\n                      name=\"fsubto\"\r\n                      value={fsubto}\r\n                      width={8}\r\n                      onChange={this.handleChange}\r\n                      maxLength=\"5\"\r\n                      style={{ marginTop: \"1.6em\" }}\r\n                    />\r\n                  </Form.Group>\r\n\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                  <Form.Field>\r\n                    <label>Report Type</label>\r\n                    <Dropdown\r\n                      placeholder=\"Select Report Wise\"\r\n                      name=\"reportWise\"\r\n                      value={reportWise}\r\n                      selection\r\n                      search\r\n                      options={reportWiseOpt}\r\n                      onChange={this.handleChange}\r\n                    />\r\n                  </Form.Field>\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    user: state.user,\r\n  };\r\n};\r\nexport default connect(mapStateToProps, {\r\n  showError,\r\n})(SubjectWiseList);\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":""}