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.135.205.102
{"version":3,"sources":["pages/masters/Degree/degreeReports.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["DegreeReports","state","frmDeggrp","fdeggrpfrm","_this","props","user","fdeggrp","fdeggrpto","fdegfrm","fdegto","reportType","frmSubmit","searchObject","searchArr","search","obj","filter","o","url","hasOwnProperty","res","children","el","length","getDegrees","e","data","setState","value","handleChange","type","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__","name","handleSubmit","getReport","showError","header","content","handleReport","_this$state","window","open","ReportAPI","univcode","handleCancel","reportFormat","renderHeader","react__WEBPACK_IMPORTED_MODULE_6___default","a","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__","Header","style","display","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","basic","color","onClick","icon","react_router_dom__WEBPACK_IMPORTED_MODULE_7__","to","this","menu","items","location","pathname","_this$state2","wheight","wHeight","fluid","Content","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","Description","overflowY","height","concat","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","Group","Field","width","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","placeholder","selection","options","text","onChange","Input","label","marginTop","Component","connect","deggrp","collegeReport","univ","funivcode","fetchDegGrp","_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","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__"],"mappings":"yQASMA,6MACJC,MAAQ,CACNC,UAAW,GACXC,WAAYC,EAAKC,MAAMC,KAAKC,QAC5BC,UAAWJ,EAAKC,MAAMC,KAAKC,QAC3BE,QAAS,IACTC,OAAQ,QACRC,WAAY,oBACZC,WAAW,KAUbC,aAAe,SAACC,EAAWC,GAEzB,IAAIC,EAAM,GACWF,EAAUG,OAAO,SAACC,GACrC,GAAIA,EAAEC,MAAQJ,GAId,GAAIG,EAAEE,eAAe,YAAa,CAChC,IAAIC,EAAMH,EAAEI,SAASL,OAAO,SAACM,GAC3B,OAAOA,EAAGJ,MAAQJ,IAEpB,GAAmB,IAAfM,EAAIG,OAEN,YADAR,EAAMK,SARRL,EAAME,IAaV,OAAOF,EAAI,MAGbS,WAAa,SAACC,EAAGC,GAEfvB,EAAKwB,SAAS,CAAE1B,UAAWyB,EAAKE,WAGlCC,aAAe,SAACJ,EAAGC,GACjB,OAAQA,EAAKI,MACX,IAAK,OACH3B,EAAKwB,SAALI,OAAAC,EAAA,EAAAD,CAAA,GAAiBL,EAAKO,KAAOP,EAAKE,QACpC,QACEzB,EAAKwB,SAALI,OAAAC,EAAA,EAAAD,CAAA,GAAiBL,EAAKO,KAAOP,EAAKE,QAEtCzB,EAAKwB,SAAS,CAAEhB,WAAW,OAG7BuB,aAAe,WAAM,IACX5B,EAAYH,EAAKC,MAAMC,KAAvBC,QACAI,EAAeP,EAAKH,MAApBU,WACR,GAAgB,KAAZJ,EAKJH,EAAKC,MAAM+B,UAAUzB,EAAY,SAAUJ,GAC3CH,EAAKwB,SAAS,CAAEhB,WAAW,QAN3B,CAEER,EAAKC,MAAMgC,UADG,CAAEC,OAAQ,QAASC,QAAS,4BAQ9CC,aAAe,WAAM,IACXjC,EAAYH,EAAKC,MAAMC,KAA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kF,EAAA,UAAoBlF,OAAA2E,EAAA,EAAA3E,CAAUmF,EAAA,cAA4BnF,OAAA2E,EAAA,EAAA3E,CAAUoF,EAAA,YAAwBpF,OAAA2E,EAAA,EAAA3E,CAAUqF,EAAA,WAAsBrF,OAAA2E,EAAA,EAAA3E,CAAUsF,EAAA,sBAAA9D,GACzOgE,EAAaxF,OAAA4E,EAAA,EAAA5E,CAAiB+E,EAAA1G,GAC9BoH,EAAoBzF,OAAA6E,EAAA,EAAA7E,CAAc+E,EAAA1G,GAClC,OAASqG,EAAAxD,EAAKC,cAAAsE,EAA4BpB,IAAQ,GAAGmB,EAAA,CACrDhE,UAAA+D,IACMT,EAAA,EAAaY,MAAApG,GAAAiB,EAAAjB,GAGnByF,EAAAY,aAAA,kHACAZ,EAAAa,UAiCC,GACcC,EAAA","file":"static/js/162.f5f2727a.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { Card, Button, Form, Dropdown, Divider } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp, getReport } from \"../../../actions\";\nimport { ReportAPI } from \"../../../apis/consts\";\nimport { showError } from \"../../../actions\";\nimport { wHeight } from \"../../parms\";\n\nclass DegreeReports extends Component {\n state = {\n frmDeggrp: \"\",\n fdeggrpfrm: this.props.user.fdeggrp,\n fdeggrpto: this.props.user.fdeggrp,\n fdegfrm: \"0\",\n fdegto: \"zzzzz\",\n reportType: \"degreeListSummary\",\n frmSubmit: false,\n };\n\n componentDidMount() {\n const resObj = this.searchObject(\n this.props.menu.items,\n this.props.location.pathname\n );\n }\n\n searchObject = (searchArr, search) => {\n // const string = search;\n var obj = [];\n const searchResult = searchArr.filter((o) => {\n if (o.url === search) {\n obj = o;\n return;\n }\n if (o.hasOwnProperty(\"children\")) {\n let res = o.children.filter((el) => {\n return el.url === search;\n });\n if (res.length !== 0) {\n obj = res;\n return;\n }\n }\n });\n return obj[0];\n };\n\n getDegrees = (e, data) => {\n // console.log(data.value);\n this.setState({ frmDeggrp: data.value });\n };\n\n handleChange = (e, data) => {\n switch (data.type) {\n case \"text\":\n this.setState({ [data.name]: data.value });\n default:\n this.setState({ [data.name]: data.value });\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 const { reportType, fdeggrpfrm, fdeggrpto, fdegfrm, fdegto } = this.state;\n if (fdeggrp === \"\") {\n const error = { header: \"Error\", content: \"Select Degree Group\" };\n this.props.showError(error);\n return;\n }\n window.open(\n ReportAPI +\n reportType +\n \"&univcode=\" +\n this.props.univcode +\n \"°grp=\" +\n fdeggrp +\n \"°grpfrm=\" +\n fdeggrpfrm +\n \"°grpto=\" +\n fdeggrpto +\n \"°frm=\" +\n fdegfrm +\n \"°to=\" +\n fdegto +\n \"&val=\" +\n reportType +\n \"&format=\" +\n \"PDF\",\n \"_blank\"\n );\n };\n\n handleCancel = () => {\n this.setState({\n fdeggrpfrm: this.props.user.fdeggrp,\n fdeggrpto: this.props.user.fdeggrp,\n fdegfrm: \"0\",\n fdegto: \"zzzzz\",\n reportType: \"\",\n reportFormat: \"\",\n frmDeggrp: \"\",\n });\n };\n\n renderHeader = () => {\n return (\n <Card.Header style={{ display: \"flex\" }}>\n <h3>Degree 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 render() {\n const {\n frmSubmit,\n fdeggrpfrm,\n fdeggrpto,\n fdegfrm,\n fdegto,\n reportType,\n } = this.state;\n\n const reporttypeOptions = [\n { value: \"degreeListSummary\", text: \"Degree List (Summary)\" },\n { value: \"degreeListDetailed\", text: \"Degree List (Detailed)\" },\n { value: \"univAdmDegList\", text: \"Degree List (For Admission)\" },\n ];\n const wheight = wHeight();\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=\"col-md-6\">\n <Form>\n <Form.Group>\n <Form.Field width={16}>\n <label>Report Type</label>\n <Dropdown\n placeholder=\"Select Report Type\"\n name=\"reportType\"\n value={reportType}\n selection\n search\n options={reporttypeOptions}\n onChange={this.handleChange}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group>\n <Form.Input\n placeholder=\"From\"\n value={fdeggrpfrm}\n width={8}\n name=\"fdeggrpfrm\"\n onChange={this.handleChange}\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 style={{ marginTop: \"1.6em\" }}\n />\n </Form.Group>\n <Form.Group>\n <Form.Input\n placeholder=\"From\"\n value={fdegfrm}\n width={8}\n name=\"fdegfrm\"\n onChange={this.handleChange}\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 style={{ marginTop: \"1.6em\" }}\n />\n </Form.Group>\n </Form>\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 };\n};\nexport default connect(mapStateToProps, {\n fetchDegGrp,\n getReport,\n showError,\n})(DegreeReports);\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;"],"sourceRoot":""}
|