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 : 52.15.113.71


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/116.ea1b175c.chunk.js.map

{"version":3,"sources":["pages/utils/Inword/ViewInwordTab.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","actions/utils/inword.js"],"names":["ViewInwordTab","state","componentDidMount","_callee","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","wrap","_context","prev","next","_this","props","viewInword","stop","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","fluid","Content","Header","style","display","react_router_dom__WEBPACK_IMPORTED_MODULE_8__","to","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","basic","color","content","icon","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","Description","Object","keys","this","viewinword","length","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","celled","Row","HeaderCell","width","singleLine","textAlign","Body","map","el","i","Cell","fltfrom","fto","fsubject","fstatus","Component","connect","showError","_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__","changeInward","name","value","type","payload","getName","_ref","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","mark","dispatch","getState","response","univadmin","get","univ","funivcode","inwardCreation","sent","data","error_code","msg","status","_x","_x2","apply","arguments","cancelInward","loadData","_ref2","_callee2","_context2","_x3","_x4","fromSubmitInward","_ref3","_callee3","error","_context3","console","log","fconfi","post","fcollcode","fid","fname","fregno","fothers","ftype","header","_x5","_x6","_ref4","_callee4","_error","_context4","params","univcode","_x7","_x8"],"mappings":"wQAmBMA,6MACJC,MAAQ,KAERC,uCAAoB,SAAAC,IAAA,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,cAAAF,EAAAE,KAAA,EACZC,EAAKC,MAAMC,aADC,wBAAAL,EAAAM,SAAAV,8EAKlB,OACEW,EAAAT,EAAAU,cAAA,OAAKC,UAAU,mBACbF,EAAAT,EAAAU,cAACE,EAAA,EAAD,CAAMC,OAAK,GACTJ,EAAAT,EAAAU,cAACE,EAAA,EAAKE,QAAN,KACEL,EAAAT,EAAAU,cAACE,EAAA,EAAKG,OAAN,CAAaC,MAAO,CAAEC,QAAS,SAC7BR,EAAAT,EAAAU,cAAA,4BACAD,EAAAT,EAAAU,cAAA,OAAKC,UAAU,WACbF,EAAAT,EAAAU,cAACQ,EAAA,EAAD,CAAMC,GAAG,iBACPV,EAAAT,EAAAU,cAACU,EAAA,EAAD,CACEC,OAAK,EACLC,MAAM,QACNC,QAAQ,OACRC,KAAK,gBAITf,EAAAT,EAAAU,cAACQ,EAAA,EAAD,CAAMC,GAAG,cACPV,EAAAT,EAAAU,cAACU,EAAA,EAAD,CAAQC,OAAK,EAACC,MAAM,MAAMC,QAAQ,OAAOC,KAAK,YAIpDf,EAAAT,EAAAU,cAACe,EAAA,EAAD,MACAhB,EAAAT,EAAAU,cAACE,EAAA,EAAKc,YAAN,KACGC,OAAOC,KAAKC,KAAKv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bD,KAAM,CAAEE,IAAK,wBACbC,OAAQ,aAM4B,IAA7BV,EAASO,KAAKC,YACjBiB,EAAQ,CAAEY,OAAQ,UAAWxG,QAASmE,EAASO,KAAKA,KAAKE,KAC/DX,EAAStC,YAAUiE,IAEnB3B,EAAS,CACPN,KAAM,mBAGRM,EAAS,CACPN,KAAM,YACNC,QAASO,IAvCR,wBAAA0B,EAAA5G,SAAA0G,MAAP,gBAAAc,EAAAC,GAAA,OAAAhB,EAAAV,MAAA1E,KAAA2E,YAAA,IA6CWjG,EAAa,WACxB,sBAAA2H,EAAAvG,OAAA2D,EAAA,EAAA3D,CAAA5B,EAAAC,EAAAuF,KAAO,SAAA4C,EAAO3C,EAAUC,GAAjB,IAAA7F,EAAA8F,EAAAyB,EAAAiB,EAAA,OAAArI,EAAAC,EAAAC,KAAA,SAAAoI,GAAA,cAAAA,EAAAlI,KAAAkI,EAAAjI,MAAA,cACCR,EAAQ6F,IACdD,EAAS,CACPN,KAAM,eAHHmD,EAAAjI,KAAA,EAMkBuF,IAAUC,IAAI,WAAY,CAC/C0C,OAAQ,CACNtI,EAAG,aACHuI,SAAU3I,EAAMiG,KAAKC,aATpB,OAMCJ,EAND2C,EAAArC,KAaLR,EAAS,CACPN,KAAM,iBAGqB,kBAAlBQ,EAASO,MACZkB,EAAQ,CAAEY,OAAQ,QAASxG,QAAS,wBAC1CiE,EAAStC,YAAUiE,MACoB,IAA9BzB,EAASO,KAAKC,YACjBiB,EAAQ,CAAEY,OAAQ,QAASxG,QAASmE,EAASO,KAAKA,KAAKE,KAC7DX,EAAStC,YAAUiE,KAEnB3B,EAAS,CACPN,KAAM,cACNC,QAASO,EAASO,OA1BjB,wBAAAoC,EAAA7H,SAAA2H,MAAP,gBAAAK,EAAAC,GAAA,OAAAP,EAAA3B,MAAA1E,KAAA2E,YAAA","file":"static/js/116.ea1b175c.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n  Card,\n  Divider,\n  Table,\n  Button,\n  Message,\n  Input,\n  Form,\n  Checkbox,\n  Search,\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { viewInword } from \"../../../actions/utils/inword\";\nimport { showError } from \"../../../actions\";\n\n// import { wHeight } from \"../../parms\";\n\nclass ViewInwordTab extends Component {\n  state = {};\n\n  componentDidMount = async () => {\n    await this.props.viewInword();\n  };\n\n  render() {\n    return (\n      <div className=\"animated fadeIn\">\n        <Card fluid>\n          <Card.Content>\n            <Card.Header style={{ display: \"flex\" }}>\n              <h4>Inword Details</h4>\n              <div className=\"ml-auto\">\n                <Link to=\"/utils/Inword\">\n                  <Button\n                    basic\n                    color=\"Black\"\n                    content=\"Back\"\n                    icon=\"arrow left\"\n                  />\n                </Link>\n\n                <Link to=\"/dashboard\">\n                  <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n                </Link>\n              </div>\n            </Card.Header>\n            <Divider />\n            <Card.Description>\n              {Object.keys(this.props.viewinword).length > 0 ? (\n                <div className=\"ui mini form\">\n                  <Table celled>\n                    <Table.Header>\n                      <Table.Row>\n                        <Table.HeaderCell\n                          style={{ width: \"5%\" }}\n                          singleLine\n                          textAlign=\"center\"\n                        >\n                          Sl. No.\n                        </Table.HeaderCell>\n                        <Table.HeaderCell\n                          style={{ width: \"20%\" }}\n                          textAlign=\"center\"\n                        >\n                          Letter From\n                        </Table.HeaderCell>\n                        <Table.HeaderCell\n                          style={{ width: \"20%\" }}\n                          textAlign=\"center\"\n                        >\n                          Letter To\n                        </Table.HeaderCell>\n                        <Table.HeaderCell\n                          textAlign=\"center\"\n                          style={{ width: \"20%\" }}\n                        >\n                          Subject\n                        </Table.HeaderCell>\n                        <Table.HeaderCell\n                          textAlign=\"center\"\n                          style={{ width: \"8%\" }}\n                        >\n                          Status\n                        </Table.HeaderCell>\n                      </Table.Row>\n                    </Table.Header>\n\n                    <Table.Body>\n                      {this.props.viewinword.map((el, i) => {\n                        return (\n                          <Table.Row>\n                            <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n                            <Table.Cell textAlign=\"center\">\n                              <b>{el.fltfrom}</b>\n                            </Table.Cell>\n                            <Table.Cell textAlign=\"center\">\n                              <b>{el.fto}</b>\n                            </Table.Cell>\n                            <Table.Cell>\n                              <b>{el.fsubject}</b>\n                            </Table.Cell>\n                            <Table.Cell textAlign=\"center\">\n                              <b>{el.fstatus}</b>\n                            </Table.Cell>\n                          </Table.Row>\n                        );\n                      })}\n                    </Table.Body>\n                  </Table>\n                </div>\n              ) : null}\n            </Card.Description>\n          </Card.Content>\n        </Card>\n      </div>\n    );\n  }\n}\n\nconst mapStateToProps = (state) => {\n  return {\n    viewinword: state.viewinword,\n  };\n};\n\nexport default connect(mapStateToProps, {\n  showError,\n  viewInword,\n})(ViewInwordTab);\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 changeInward = (name, value) => {\n  return {\n    type: \"CHANGE_INWARD\",\n    payload: { name, value },\n  };\n};\n\nexport const getName = (name, value) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    const response = await univadmin.get(\n      \"app.php?a=getName&univcode=\" +\n        state.univ.funivcode +\n        \"&value=\" +\n        value +\n        \"&fltfrom=\" +\n        state.inwardCreation.fltfrom\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 === 0) {\n      dispatch({\n        type: \"INWARD_GETNAME\",\n        payload: response.data,\n      });\n    } else {\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: response,\n      });\n    }\n  };\n};\n\nexport const cancelInward = () => {\n  return {\n    type: \"CANCEL_INWARD\",\n  };\n};\n\nexport const loadData = (name, value) => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    const response = await univadmin.get(\n      \"app.php?a=loadData&univcode=\" + state.univ.funivcode\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 === 0) {\n      dispatch({\n        type: \"INWARD_LOAD\",\n        payload: response.data,\n      });\n    } else {\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: response,\n      });\n    }\n  };\n};\n\nexport const changeGrpData = (newel, fregno) => {\n  return {\n    type: \"CHANGE_GRPDATA\",\n    payload: { newel, fregno },\n  };\n};\n\nexport const fromSubmitInward = () => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    console.log(\"state.inwardCreation.fconfi : \", state.inwardCreation.fconfi);\n    const response = await univadmin.post(\n      \"app.php?a=fromSubmitInward&univcode=\" + state.univ.funivcode,\n      {\n        fltfrom: state.inwardCreation.fltfrom,\n        fcollcode: state.inwardCreation.fcollcode,\n        fto: state.inwardCreation.fto,\n        fid: state.inwardCreation.fid,\n        fname: state.inwardCreation.fname,\n        fsubject: state.inwardCreation.fsubject,\n        fregno: state.inwardCreation.fregno,\n        fothers: state.inwardCreation.fothers,\n        fconfi: state.inwardCreation.fconfi,\n        ftype: \"I\",\n      }\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 === 0) {\n      const error = { header: \"Success\", content: response.data.data.msg };\n      dispatch(showError(error));\n\n      dispatch({\n        type: \"CANCEL_INWARD\",\n      });\n    } else {\n      dispatch({\n        type: \"SET_ERROR\",\n        payload: response,\n      });\n    }\n  };\n};\n\nexport const viewInword = () => {\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: \"viewInword\",\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: \"VIEW_INWARD\",\n        payload: response.data,\n      });\n    }\n  };\n};\n"],"sourceRoot":""}