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.15.138.214
{"version":3,"sources":["pages/setpracticalcenter/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","actions/setpracticalcenter/setpracticalcenterform.js"],"names":["PracticalCenter","state","deggrp","college","degree","subject","centre","handleChangedeggrp","_callee","e","data","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default","a","wrap","_context","prev","next","_this","setState","value","props","getDegreeList","stop","handleChangedegree","_callee2","_context2","getCollegeList","handleChangecollege","_callee3","_context3","getSubjectList","handleChangeSubject","_callee4","_context4","getCentreCode","handleChangeCentre","_callee5","_context5","handleCancel","_callee6","_context6","handleSubmit","_callee7","error","_error","_error2","_error3","_error4","_context7","header","content","showError","abrupt","savePracticalExamCentre","changecenter","el","i","datan","console","log","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_1__","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__","name","changecenterpractical","handleSave","_callee8","_error5","updatedcenter","_error6","_context8","table","practicalTable","length","filter","fcentre","updatepracticalcenter","deggrpfrom","subfrom","subto","renderHeader","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","Header","style","display","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","basic","color","icon","onClick","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","this","loadrvrtdeggrp","_this$state","wheight","wHeight","degreeOptions","degreeList","map","item","fdegree","text","concat","fdescpn","degreeGrpOptions","getrvrtdeggrp","key","fdeggrp","collegeOptions","getcollegelistpractical","fcollcode","fcollname","subjectOptions","getsubjectlistpractical","fcsubcode","fsubname","centreOptions","getcentrecodepractical","fluid","Content","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","Description","overflowY","overflowX","height","semantic_ui_react__WEBPACK_IMPORTED_MODULE_14__","Group","Field","width","semantic_ui_react__WEBPACK_IMPORTED_MODULE_15__","search","selection","onChange","placeholder","options","multiple","Component","connect","degreelist","resultStatsDegList","collegelist","resultStatsClgList","user","studyDegree","practicalCenter","getpracticalcenters","_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__","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","mark","dispatch","getState","response","type","univadmin","get","params","univcode","fcuruniv","sent","error_code","msg","payload","_x","_x2","apply","arguments","_ref2","univ","funivcode","_x3","_x4","deggrpto","clgfrom","clgto","_ref3","_x5","_x6","_ref4","post","updcntr","deg","status","_x7","_x8","_ref5","_x9","_x10","det","_ref6","_error7","_x11","_x12","_ref7","_error8","_x13","_x14","_ref8","_error9","_error10","sub","cen","col","_x15","_x16"],"mappings":"kTA2BMA,6MACJC,MAAQ,CACNC,OAAQ,GACRC,QAAS,GACTC,OAAQ,GACRC,Q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AAQ,CAAEM,OAAQ,UAAWC,QAASsI,EAAS9K,KAAKA,KAAKuL,KAC/DX,EAASnI,YAAUR,KAvBhB,wBAAA2B,EAAAhD,SAAA4C,MAAP,gBAAAyK,EAAAC,GAAA,OAAAP,EAAAhC,MAAAtG,KAAAuG,YAAA","file":"static/js/114.fd32b76c.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} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { fetchDegGrp } from \"../../actions\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport { wHeight } from \"../parms\";\nimport {\n getDegreeList,\n getpracticalcenters,\n changecenterpractical,\n updatepracticalcenter,\n loadrvrtdeggrp,\n getCollegeList,\n getSubjectList,\n getCentreCode,\n savePracticalExamCentre,\n} from \"../../actions/setpracticalcenter/setpracticalcenterform\";\n\nclass PracticalCenter extends Component {\n state = {\n deggrp: \"\",\n college: [],\n degree: [],\n subject: [],\n centre: \"\",\n };\n\n componentDidMount() {\n this.props.loadrvrtdeggrp();\n }\n\n handleChangedeggrp = async (e, data) => {\n await this.setState({\n deggrp: data.value,\n });\n await this.props.getDegreeList(this.state.deggrp);\n };\n\n handleChangedegree = async (e, data) => {\n await this.setState({\n degree: data.value,\n });\n await this.props.getCollegeList(this.state.degree);\n };\n\n handleChangecollege = async (e, data) => {\n await this.setState({\n college: data.value,\n });\n await this.props.getSubjectList(this.state);\n };\n\n handleChangeSubject = async (e, data) => {\n await this.setState({\n subject: data.value,\n });\n await this.props.getCentreCode();\n };\n handleChangeCentre = async (e, data) => {\n await this.setState({\n centre: data.value,\n });\n await this.props.getCentreCode();\n };\n\n handleCancel = async () => {\n this.setState({\n deggrp: \"\",\n college: [],\n degree: [],\n subject: [],\n centre: \"\",\n });\n };\n\n handleSubmit = async () => {\n if (this.state.deggrp == \"\") {\n const error = { header: \"Error\", content: \"Select Degree Group\" };\n this.props.showError(error);\n return;\n }\n if (this.state.degree == \"\") {\n const error = { header: \"Error\", content: \"Select degree\" };\n this.props.showError(error);\n return;\n }\n if (this.state.college == \"\") {\n const error = { header: \"Error\", content: \"Select College\" };\n this.props.showError(error);\n return;\n }\n if (this.state.subject == \"\") {\n const error = { header: \"Error\", content: \"Select Subject\" };\n this.props.showError(error);\n return;\n }\n if (this.state.centre == \"\") {\n const error = { header: \"Error\", content: \"Select Centre Code\" };\n this.props.showError(error);\n return;\n }\n\n await this.props.savePracticalExamCentre(this.state);\n };\n\n changecenter = (data, el, i) => {\n let datan = {};\n console.log(data, el, i);\n // this.setState({ fnewsub: el.value });\n datan = { ...el, [data.name]: data.value };\n this.props.changecenterpractical(datan, i);\n };\n\n handleSave = async () => {\n if (this.state.degree == \"\") {\n const error = { header: \"Error\", content: \"Select degree\" };\n this.props.showError(error);\n return;\n }\n if (this.state.table == false) {\n const error = { header: \"Error\", content: \"Invalid Save\" };\n this.props.showError(error);\n return;\n }\n\n console.log(this.props);\n const updatedcenter = this.props.practicalTable;\n console.log(\"hii\", updatedcenter, updatedcenter.length);\n\n const emptyCount = updatedcenter.filter((el, i) => el.fcentre == \"\");\n // console.log(\"errr\", emptyCount);\n if (emptyCount.length > 0) {\n const error = {\n header: \"Error\",\n content: \"Fill Details Before saving. \",\n };\n this.props.showError(error);\n return;\n } else {\n await this.props.updatepracticalcenter(\n updatedcenter,\n this.state.degree,\n this.state.deggrpfrom,\n this.state.subfrom,\n this.state.subto\n );\n this.handleCancel();\n }\n };\n\n renderHeader = () => {\n return (\n <Card.Header style={{ display: \"flex\" }}>\n <h3>Set Practical Exam Center</h3>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"black\"\n icon=\"ban\"\n content=\"Cancel\"\n onClick={this.handleCancel}\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 { centre, deggrp, degree, college, subject } = this.state;\n const wheight = wHeight();\n\n const degreeOptions = this.props.degreeList.map((item) => {\n return {\n value: item.fdegree,\n text: `${item.fdegree}- ${item.fdescpn}`,\n };\n });\n\n const degreeGrpOptions = this.props.getrvrtdeggrp.map((item) => {\n return {\n key: item.fdeggrp,\n value: item.fdeggrp,\n text: item.fdescpn,\n };\n });\n\n const collegeOptions = this.props.getcollegelistpractical.map((item) => {\n return {\n key: item.fcollcode,\n value: item.fcollcode,\n text: item.fcollname,\n };\n });\n\n const subjectOptions = this.props.getsubjectlistpractical.map((item) => {\n return {\n key: item.fcsubcode,\n value: item.fcsubcode,\n text: item.fsubname,\n };\n });\n\n const centreOptions = this.props.getcentrecodepractical.map((item) => {\n return {\n key: item.fcollcode,\n value: item.fcollcode,\n text: item.fcollname,\n };\n });\n\n return (\n <div className=\"animated fadeIn\">\n <Card fluid>\n <Card.Content>\n {this.renderHeader()}\n <Divider />\n <Card.Description\n style={{\n overflowY: \"auto\",\n overflowX: \"hidden\",\n height: `${wheight}px`,\n }}\n >\n <div className=\"col-md-9\">\n <Form>\n <div className=\"col-md-8 col-lg-8 col-sm-12\">\n <Form.Group>\n <Form.Field width={16}>\n <label>Degree Group</label>\n <Dropdown\n fluid\n search\n selection\n onChange={this.handleChangedeggrp}\n value={deggrp}\n name=\"deggrp\"\n placeholder=\"Degree Group\"\n options={degreeGrpOptions}\n />\n </Form.Field>\n </Form.Group>\n <Form.Field width={16}>\n <label>Degree Range</label>\n <Dropdown\n placeholder=\"Degree range\"\n name=\"degree\"\n value={degree}\n multiple\n selection\n search\n options={degreeOptions}\n onChange={this.handleChangedegree}\n />\n </Form.Field>\n <Form.Group>\n <Form.Field width={16}>\n <label>College Range</label>\n <Dropdown\n placeholder=\"College Range\"\n name=\"college\"\n value={college}\n multiple\n selection\n search\n options={collegeOptions}\n onChange={this.handleChangecollege}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group>\n <Form.Field width={16}>\n <label>Subject Range</label>\n <Dropdown\n placeholder=\"Subject Range\"\n name=\"degree\"\n value={subject}\n multiple\n selection\n search\n options={subjectOptions}\n onChange={this.handleChangeSubject}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group>\n <Form.Field width={16}>\n <label>Centre Code</label>\n <Dropdown\n placeholder=\"Subject Range\"\n name=\"centre\"\n value={centre}\n selection\n search\n options={centreOptions}\n onChange={this.handleChangeCentre}\n />\n </Form.Field>\n </Form.Group>\n </div>\n <Button color=\"blue\" onClick={this.handleSubmit}>\n Save\n </Button>\n\n <br />\n </Form>\n </div>\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n console.log(state);\n return {\n degreelist: state.resultStatsDegList,\n collegelist: state.resultStatsClgList,\n user: state.user,\n degreeList: state.studyDegree,\n practicalTable: state.practicalCenter,\n getrvrtdeggrp: state.getrvrtdeggrp,\n getcollegelistpractical: state.getcollegelistpractical,\n getsubjectlistpractical: state.getsubjectlistpractical,\n getcentrecodepractical: state.getcentrecodepractical,\n };\n};\n\nexport default connect(mapStateToProps, {\n getDegreeList,\n getpracticalcenters,\n changecenterpractical,\n showError,\n updatepracticalcenter,\n loadrvrtdeggrp,\n getCollegeList,\n getSubjectList,\n getCentreCode,\n savePracticalExamCentre,\n})(PracticalCenter);\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\";\nimport { showError } from \"../index\";\n\nexport const loadrvrtdeggrp = () => {\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: \"getdeggrprvrt\",\n univcode: state.user.fcuruniv,\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: \"RVRT_DEGGRP\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const getDegreeList = (deggrp) => {\n return async (dispatch, getState) => {\n const state = getState();\n console.log(state);\n\n const response = await univadmin.get(\n \"app.php?a=PracticalCenterDegreeList&univcode=\" +\n state.univ.funivcode +\n \"°grp=\" +\n deggrp\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 console.log(response.data);\n dispatch({\n type: \"ALL_DEGREE_LIST\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const getpracticalcenters = (\n subfrom,\n subto,\n deggrpfrom,\n deggrpto,\n degree,\n clgfrom,\n clgto\n) => {\n return async (dispatch, getState) => {\n const state = getState();\n console.log(state);\n\n const response = await univadmin.get(\n \"app.php?a=PracticalCenterData&univcode=\" +\n state.univ.funivcode +\n \"&fcollcode=\" +\n state.user.fcollcode +\n \"°grpfrom=\" +\n deggrpfrom +\n \"°grpto=\" +\n deggrpto +\n \"&subfrom=\" +\n subfrom +\n \"&subto=\" +\n subto +\n \"°ree=\" +\n degree +\n \"&clgfrom=\" +\n clgfrom +\n \"&clgto=\" +\n clgto\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 console.log(response.data);\n dispatch({\n type: \"PRACTICAL_CENTERS\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const changecenterpractical = (el, i) => {\n console.log(el, i);\n return {\n type: \"PRACTICAL_CENTERS_CHANGE\",\n payload: { el, i },\n };\n};\n\nexport const updatepracticalcenter = (\n updatedcenter,\n degree,\n deggrp,\n subfrom,\n subto\n) => {\n return async (dispatch, getState) => {\n const state = getState();\n console.log(updatedcenter, degree, deggrp);\n // const myObjStr = JSON.stringify(newDateMaster);\n\n dispatch({\n type: \"SET_LOADER\",\n });\n const response = await univadmin.post(\n \"/app.php?a=updatepracticalcenter&univcode=\" + state.univ.funivcode,\n {\n data: {\n fdeggrp: deggrp,\n univcode: state.univ.funivcode,\n updcntr: updatedcenter,\n subfrom: subfrom,\n subto: subto,\n user: state.user,\n deg: degree,\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 === -1) {\n console.log(response.data);\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n // dispatch({\n // type: \"SET_ERROR\",\n // payload: response.data\n // });\n } else if (response.data.error_code === 0) {\n const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n }\n };\n};\n\nexport const getCollegeList = (degree) => {\n return async (dispatch, getState) => {\n const state = getState();\n console.log(state);\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"PracticalCenterCollegeList\",\n univcode: state.user.fcuruniv,\n degree: degree,\n },\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 console.log(response.data);\n dispatch({\n type: \"ALL_COLLEGE_LIST\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const getSubjectList = (det) => {\n return async (dispatch, getState) => {\n const state = getState();\n console.log(state);\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"PracticalCenterSubjectList\",\n univcode: state.user.fcuruniv,\n degree: det.degree,\n college: det.college,\n },\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 console.log(response.data);\n dispatch({\n type: \"ALL_SUBJECT_LIST\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const getCentreCode = (det) => {\n return async (dispatch, getState) => {\n const state = getState();\n console.log(state);\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"PracticalCenterCodeList\",\n univcode: state.user.fcuruniv,\n },\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 console.log(response.data);\n dispatch({\n type: \"ALL_CENTRE_LIST\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const savePracticalExamCentre = (data) => {\n return async (dispatch, getState) => {\n const state = getState();\n console.log(state);\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"savePracticalExamCentre\",\n univcode: state.user.fcuruniv,\n deg: data.degree,\n sub: data.subject,\n cen: data.centre,\n col: data.college,\n },\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 }\n };\n};\n\n// export const savePracticalExamCentre = (data) => {\n// // console.log(regno, collname, oldname, newname, ddstatus.status);\n// return async function (dispatch, getState) {\n// const state = getState();\n\n// const response = await univadmin.post(\n// \"/app.php?a=savePracticalExamCentre&univcode=\" + state.univ.funivcode,\n// {\n// deg: data.degree,\n// sub: data.subject,\n// cen: data.centre,\n// col: data.college,\n// }\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// const error = { header: \"Success\", content: response.data.data.msg };\n// dispatch(showError(error));\n// }\n// };\n// };\n"],"sourceRoot":""}
|