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


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/117.7c52499b.chunk.js.map

{"version":3,"sources":["pages/utils/sms-notification/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","actions/utils/sms-notification.js"],"names":["SMSNotification","handleChange","e","data","_this","setState","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__","name","value","props","changesms","getEvents","fliterMsg","pushSms","smsstate","fmsg","showError","header","content","sendsms","fresevent","url","fmsgtype","API","univ","funivcode","window","open","focus","wheight","wHeight","this","react__WEBPACK_IMPORTED_MODULE_6___default","a","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__","fluid","Content","Header","style","display","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","basic","color","onClick","icon","handleCancel","react_router_dom__WEBPACK_IMPORTED_MODULE_7__","to","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","Description","overflowY","height","concat","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","marginRight","marginLeft","Group","inline","Radio","label","checked","deggrp","onChange","Field","width","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","placeholder","search","selection","fsendto","options","code","map","el","i","key","text","fevttype","fevent","fevents","ftitle","Input","fcollfrom","maxLength","fcollto","marginTop","fdegfrom","fdegto","fregfrom","fregto","fboardfrom","fboardto","control","TextArea","rows","length","Math","ceil","Component","connect","state","smsNotif","_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","_callee","dispatch","getState","response","error","_error","wrap","_context","prev","next","type","univadmin","get","params","univcode","sent","console","log","error_code","msg","payload","stop","_x","_x2","apply","arguments","getMessages","_ref2","_callee2","_error2","_context2","_x3","_x4","getNotifications","_ref3","_callee3","_error3","_context3","_x5","_x6","pushNotification","_ref4","_callee4","_error4","success","_context4","post","event","_x7","_x8","_ref5","_callee5","_error5","_context5","fdeggrp","fstudtype","fmodule","_x9","_x10","deleteSms","fenttype","fusertype","_ref6","_callee6","_error6","_context6","user","_x11","_x12","getColleges","deg","_ref7","_callee7","_error7","_context7","_x13","_x14","getDegrees","col","_ref8","_callee8","_context8","_x15","_x16","getDegfromDeggrp","_ref9","_callee9","_context9","_x17","_x18"],"mappings":"4RAqBMA,6MAGJC,aAAe,SAACC,EAAGC,GACjBC,EAAKC,SAALC,OAAAC,EAAA,EAAAD,CAAA,GAAiBH,EAAKK,KAAOL,EAAKM,QAClCL,EAAKM,MAAMC,UAAUR,EAAKK,KAAML,EAAKM,OAEnB,aAAdN,EAAKK,MAAsC,QAAfL,EAAKM,OACnCL,EAAKM,MAAME,YAEK,WAAdT,EAAKK,MAAoC,KAAfL,EAAKM,OACjCL,EAAKM,MAAMG,UAAUV,EAAKK,KAAML,EAAKM,UAIzCK,QAAU,WACR,GAAgC,IAA5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BAAAE,EAAAC,GAAA,OAAAJ,EAAA7D,MAAAjI,KAAAkI,YAAA,IAiCWvJ,EAAY,SAACH,EAAMC,GAC9B,MAAO,CACL0I,KAAM,aACNU,QAAS,CAAErJ,OAAMC,WAIRI,EAAY,SAACL,EAAMC,GAC9B,MAAO,CACL0I,KAAM,aACNU,QAAS,CAAErJ,OAAMC","file":"static/js/117.7c52499b.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n  Card,\n  Divider,\n  Button,\n  Form,\n  Dropdown,\n  TextArea\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { showError } from \"../../../actions\";\nimport {\n  changesms,\n  getEvents,\n  fliterMsg,\n  pushSms\n} from \"../../../actions/utils/sms-notification\";\nimport { wHeight } from \"../../parms\";\nimport { API } from \"../../../apis/consts\";\n\nclass SMSNotification extends Component {\n  componentDidMount() {}\n\n  handleChange = (e, data) => {\n    this.setState({ [data.name]: data.value });\n    this.props.changesms(data.name, data.value);\n\n    if (data.name === \"fevttype\" && data.value === \"EVT\") {\n      this.props.getEvents();\n    }\n    if (data.name === \"fevent\" && data.value !== \"\") {\n      this.props.fliterMsg(data.name, data.value);\n    }\n  };\n\n  pushSms = () => {\n    if (this.props.smsstate.fmsg == \"\") {\n      const error = { header: \"Error\", content: \"Message cannot be empty\" };\n      this.props.showError(error);\n      return;\n    }\n    this.props.pushSms();\n  };\n\n  sendsms = () => {\n    if (this.props.smsstate.fresevent == \"\") {\n      const error = { header: \"Error\", content: \"Push Data to send.\" };\n      this.props.showError(error);\n      return;\n    }\n    var url = \"\";\n    if (this.props.smsstate.fmsgtype == \"SMS\") {\n      url =\n        API +\n        \"/sendsms.php?funivcode=\" +\n        this.props.univ.funivcode +\n        \"&fevent=\" +\n        this.props.smsstate.fresevent;\n    } else {\n      url =\n        API +\n        \"/sendnotification.php?funivcode=\" +\n        this.props.univ.funivcode +\n        \"&fevent=\" +\n        this.props.smsstate.fresevent;\n    }\n\n    var win = window.open(url, \"_blank\");\n    win.focus();\n  };\n\n  render() {\n    const sendto = [\n      { code: \"CL\", label: \"College\" },\n      { code: \"CT\", label: \"Centre\" },\n      { code: \"ST\", label: \"Student\" },\n      { code: \"TH\", label: \"Teacher\" }\n    ];\n\n    const wheight = wHeight();\n    const smsstate = this.props.smsstate;\n    return (\n      <div>\n        <Card fluid>\n          <Card.Content>\n            <Card.Header style={{ display: \"flex\" }}>\n              <h4>Send SMS / Notification</h4>\n              <div className=\"ml-auto\">\n                <Button\n                  basic\n                  color=\"green\"\n                  content=\"Send\"\n                  onClick={this.sendsms}\n                  icon=\"send\"\n                />\n                <Button\n                  basic\n                  color=\"blue\"\n                  content=\"pushdata\"\n                  onClick={this.pushSms}\n                  icon=\"save\"\n                />\n                <Button\n                  basic\n                  onClick={this.handleCancel}\n                  color=\"black\"\n                  icon=\"times circle\"\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            <Divider />\n            <Card.Description\n              style={{ overflowY: \"auto\", height: `${wheight}px` }}\n            >\n              <Form>\n                <div\n                  className=\"row clearfix\"\n                  style={{ marginRight: \"0px\", marginLeft: \"-5px\" }}\n                >\n                  <div className=\"col-md-8\">\n                    <Form.Group inline>\n                      <label>Degree Group</label>\n                      <Form.Radio\n                        label=\"All\"\n                        value=\"A\"\n                        name=\"deggrp\"\n                        checked={smsstate.deggrp == \"A\"}\n                        onChange={this.handleChange}\n                      />\n                      <Form.Radio\n                        label=\"Current\"\n                        value=\"C\"\n                        name=\"deggrp\"\n                        checked={smsstate.deggrp == \"C\"}\n                        onChange={this.handleChange}\n                      />\n                    </Form.Group>\n                    <Form.Group inline>\n                      <label>Send</label>\n                      <Form.Radio\n                        label=\"SMS\"\n                        value=\"SMS\"\n                        name=\"fmsgtype\"\n                        checked={smsstate.fmsgtype == \"SMS\"}\n                        onChange={this.handleChange}\n                      />\n                      <Form.Radio\n                        label=\"Notification\"\n                        value=\"NOTIF\"\n                        name=\"fmsgtype\"\n                        checked={smsstate.fmsgtype == \"NOTIF\"}\n                        onChange={this.handleChange}\n                      />\n                    </Form.Group>\n                    <Form.Group>\n                      <Form.Field width={16}>\n                        <label>To</label>\n                        <Dropdown\n                          placeholder=\"Send To\"\n                          search\n                          selection\n                          name=\"fsendto\"\n                          value={smsstate.fsendto}\n                          options={sendto.map((el, i) => {\n                            return {\n                              key: i,\n                              value: el.code,\n                              text: el.label\n                            };\n                          })}\n                          onChange={this.handleChange}\n                        />\n                      </Form.Field>\n                    </Form.Group>\n                    <Form.Group inline>\n                      <Form.Radio\n                        label=\"General\"\n                        value=\"GEN\"\n                        name=\"fevttype\"\n                        checked={smsstate.fevttype == \"GEN\"}\n                        onChange={this.handleChange}\n                      />\n                      <Form.Radio\n                        label=\"Event Based\"\n                        value=\"EVT\"\n                        name=\"fevttype\"\n                        checked={smsstate.fevttype == \"EVT\"}\n                        onChange={this.handleChange}\n                      />\n                    </Form.Group>\n\n                    {smsstate.fevttype == \"EVT\" ? (\n                      <Form.Group>\n                        <Form.Field width={16}>\n                          <label>Select Event</label>\n                          <Dropdown\n                            placeholder=\"Select Event\"\n                            search\n                            selection\n                            name=\"fevent\"\n                            value={smsstate.fevent}\n                            options={smsstate.fevents.map((el, i) => {\n                              return {\n                                key: i,\n                                value: el.fevent,\n                                text: el.ftitle\n                              };\n                            })}\n                            onChange={this.handleChange}\n                          />\n                        </Form.Field>\n                      </Form.Group>\n                    ) : null}\n\n                    <Form.Group>\n                      <Form.Field width={8}>\n                        <Form.Input\n                          placeholder=\"From\"\n                          name=\"fcollfrom\"\n                          value={smsstate.fcollfrom}\n                          onChange={this.handleChange}\n                          maxLength=\"4\"\n                          label=\"College Range\"\n                        />\n                      </Form.Field>\n                      <Form.Field width={8}>\n                        <Form.Input\n                          placeholder=\"To\"\n                          name=\"fcollto\"\n                          value={smsstate.fcollto}\n                          onChange={this.handleChange}\n                          maxLength=\"4\"\n                          style={{ marginTop: \"1.6em\" }}\n                        />\n                      </Form.Field>\n                    </Form.Group>\n\n                    {smsstate.fsendto == \"ST\" ? (\n                      <div>\n                        <Form.Group>\n                          <Form.Field width={8}>\n                            <Form.Input\n                              placeholder=\"From\"\n                              name=\"fdegfrom\"\n                              value={smsstate.fdegfrom}\n                              onChange={this.handleChange}\n                              maxLength=\"10\"\n                              label=\"Degree Range\"\n                            />\n                          </Form.Field>\n                          <Form.Field width={8}>\n                            <Form.Input\n                              placeholder=\"To\"\n                              name=\"fdegto\"\n                              value={smsstate.fdegto}\n                              onChange={this.handleChange}\n                              maxLength=\"10\"\n                              style={{ marginTop: \"1.6em\" }}\n                            />\n                          </Form.Field>\n                        </Form.Group>\n\n                        <Form.Group>\n                          <Form.Field width={8}>\n                            <Form.Input\n                              placeholder=\"From\"\n                              name=\"fregfrom\"\n                              value={smsstate.fregfrom}\n                              onChange={this.handleChange}\n                              maxLength=\"10\"\n                              label=\"Register No. Range\"\n                            />\n                          </Form.Field>\n                          <Form.Field width={8}>\n                            <Form.Input\n                              placeholder=\"To\"\n                              name=\"fregto\"\n                              value={smsstate.fregto}\n                              onChange={this.handleChange}\n                              maxLength=\"10\"\n                              style={{ marginTop: \"1.6em\" }}\n                            />\n                          </Form.Field>\n                        </Form.Group>\n                      </div>\n                    ) : null}\n                    {smsstate.fsendto == \"TH\" ? (\n                      <Form.Group>\n                        <Form.Field width={8}>\n                          <Form.Input\n                            placeholder=\"From\"\n                            name=\"fboardfrom\"\n                            value={smsstate.fboardfrom}\n                            onChange={this.handleChange}\n                            maxLength=\"10\"\n                            label=\"Board Range\"\n                          />\n                        </Form.Field>\n                        <Form.Field width={8}>\n                          <Form.Input\n                            placeholder=\"To\"\n                            name=\"fboardto\"\n                            value={smsstate.fboardto}\n                            onChange={this.handleChange}\n                            maxLength=\"10\"\n                            style={{ marginTop: \"1.6em\" }}\n                          />\n                        </Form.Field>\n                      </Form.Group>\n                    ) : null}\n\n                    <Form.Group>\n                      <Form.Field width={16}>\n                        <Form.Input\n                          name=\"fmsg\"\n                          control={TextArea}\n                          value={smsstate.fmsg}\n                          onChange={this.handleChange}\n                          label=\"Message\"\n                          placeholder=\"Message\"\n                          rows=\"6\"\n                        />\n                        {smsstate.fmsg.length}/160 Characters <br />0\n                        {smsstate.fmsg.length > 0\n                          ? smsstate.fmsg.length > 160\n                            ? Math.ceil(smsstate.fmsg.length / 153)\n                            : 1\n                          : 0}{\" \"}\n                        Message\n                      </Form.Field>\n                    </Form.Group>\n                  </div>\n                </div>\n              </Form>\n            </Card.Description>\n          </Card.Content>\n        </Card>\n      </div>\n    );\n  }\n}\n\nconst mapStateToProps = state => {\n  return {\n    smsstate: state.smsNotif,\n    univ: state.univ\n  };\n};\nexport default connect(\n  mapStateToProps,\n  {\n    showError,\n    changesms,\n    getEvents,\n    fliterMsg,\n    pushSms\n  }\n)(SMSNotification);\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 getEvents = (fmsgtype, fsendto) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"getEvents_new\",\n        univcode: state.univ.funivcode,\n        fsendto: fsendto,\n        fevttype: fmsgtype,\n      },\n    });\n\n    dispatch({\n      type: \"UNSET_LOADER\",\n    });\n    console.log(response);\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      dispatch({\n        type: \"GET_EVENTS\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const getMessages = () => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"getSMSDet\",\n        univcode: state.univ.funivcode,\n      },\n    });\n\n    dispatch({\n      type: \"UNSET_LOADER\",\n    });\n    console.log(response);\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      dispatch({\n        type: \"GET_MESSAGES\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const getNotifications = () => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"getNotificationDet\",\n        univcode: state.univ.funivcode,\n      },\n    });\n\n    dispatch({\n      type: \"UNSET_LOADER\",\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      dispatch({\n        type: \"GET_NOTIFICATIONS\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const pushNotification = (smsNotif) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n    const response = await univadmin.post(\n      \"app.php?a=pushNotificationData&univcode=\" + state.univ.funivcode,\n      {\n        // fcollfrom: smsNotif.fcollfrom,\n        // fdegfrom: smsNotif.fdegfrom,\n        data: smsNotif,\n      }\n    );\n    dispatch({\n      type: \"UNSET_LOADER\",\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 success = { header: \"Success\", content: response.data.data.msg };\n      dispatch(changesms(\"fresevent\", response.data.data.event));\n      dispatch(showError(success));\n    }\n  };\n};\n\nexport const pushSms = (type) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n    const response = await univadmin.post(\n      \"app.php?a=pushSmsnew&univcode=\" + state.univ.funivcode,\n      {\n        data: state.smsNotif,\n        fdeggrp: type.fdeggrp,\n        fstudtype: type.fstudtype,\n        fmodule: type.fmodule,\n      }\n    );\n    dispatch({\n      type: \"UNSET_LOADER\",\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 success = { header: \"Success\", content: response.data.data.msg };\n      dispatch(changesms(\"fresevent\", response.data.data.event));\n      dispatch(showError(success));\n    }\n  };\n};\n\nexport const deleteSms = (funivcode, fenttype, fusertype) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n    const response = await univadmin.post(\n      \"app.php?a=deleteSms&univcode=\" +\n        state.univ.funivcode +\n        \"&fdeggrp=\" +\n        state.user.fdeggrp,\n      { fenttype, fusertype }\n    );\n    dispatch({\n      type: \"UNSET_LOADER\",\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 success = { header: \"Success\", content: response.data.data.msg };\n      // dispatch(changesms(\"fresevent\", response.data.data.event));\n      dispatch(showError(success));\n    }\n  };\n};\n\nexport const getColleges = (deg) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    const response = await univadmin.post(\n      \"/app.php?a=getColleges&univcode=\" + state.univ.funivcode,\n      {\n        data: deg,\n      }\n    );\n\n    dispatch({\n      type: \"UNSET_LOADER\",\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      dispatch({\n        type: \"GET_COLLEGES\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const getDegrees = (col) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    const response = await univadmin.post(\n      \"/app.php?a=getDegreesdetails&univcode=\" + state.univ.funivcode,\n\n      {\n        data: col,\n      }\n    );\n\n    dispatch({\n      type: \"UNSET_LOADER\",\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      dispatch({\n        type: \"GET_DEGREES\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const getDegfromDeggrp = (deggrp) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\",\n    });\n\n    const response = await univadmin.post(\n      \"/app.php?a=getDegfromDeggrp&univcode=\" + state.univ.funivcode,\n\n      {\n        data: deggrp,\n      }\n    );\n\n    dispatch({\n      type: \"UNSET_LOADER\",\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      dispatch({\n        type: \"GET_DEGREE_FROM_DEGGRP\",\n        payload: response.data,\n      });\n    }\n  };\n};\n\nexport const changesms = (name, value) => {\n  return {\n    type: \"CHANGE_SMS\",\n    payload: { name, value },\n  };\n};\n\nexport const fliterMsg = (name, value) => {\n  return {\n    type: \"FILTER_MSG\",\n    payload: { name, value },\n  };\n};\n"],"sourceRoot":""}