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.133.149.244
{"version":3,"sources":["pages/utils/Inword/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","actions/utils/inword.js"],"names":["Inward","handleChange","_callee","e","data","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default","a","wrap","_context","prev","next","name","_this","props","cancelInward","loadData","checked","changeInward","value","getName","stop","handleCheckbox","el","i","newel","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","target","changeGrpData","fregno","fromSubmitInward","this","_this$props$inwardCre","inwardCreation","college","to","fcollcode","fltfrom","fto","fname","fsubject","fothers","fconfi","fid","console","log","wheight","wHeight","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","fluid","Content","Header","style","display","className","react_router_dom__WEBPACK_IMPORTED_MODULE_9__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","basic","color","content","icon","onClick","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","Description","overflowY","height","concat","semantic_ui_react__WEBPACK_IMPORTED_MODULE_14__","marginRight","marginLeft","Group","Field","semantic_ui_react__WEBPACK_IMPORTED_MODULE_15__","placeholder","search","selection","options","code","label","map","key","text","onChange","width","college_name","Input","maxLength","fdescpn","semantic_ui_react__WEBPACK_IMPORTED_MODULE_16__","class","Component","connect","state","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__","type","payload","_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","univadmin","get","univ","funivcode","sent","error_code","msg","status","_x","_x2","apply","arguments","_ref2","_callee2","_context2","_x3","_x4","_ref3","_callee3","error","_context3","post","ftype","header","_x5","_x6","viewInword","_ref4","_callee4","_error","_context4","params","univcode","_x7","_x8"],"mappings":"mTAwBMA,6MASJC,mDAAe,SAAAC,EAAOC,EAAGC,GAAV,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,UAEI,WAAbN,EAAKO,KAFI,CAAAH,EAAAE,KAAA,eAGXE,EAAKC,MAAMC,eAHAN,EAAAE,KAAA,EAILE,EAAKC,MAAME,WAJN,OAOI,UAAbX,EAAKO,KACa,GAAhBP,EAAKY,QAAiBJ,EAAKC,MAAMI,aAAab,EAAKO,KAAM,KACxDC,EAAKC,MAAMI,aAAab,EAAKO,KAAM,KAExCC,EAAKC,MAAMI,aAAab,EAAKO,KAAMP,EAAKc,OAGzB,aAAbd,EAAKO,MAAoC,UAAbP,EAAKO,MACnCC,EAAKC,MAAMM,QAAQf,EAAKO,KAAMP,EAAKc,OAfxB,wBAAAV,EAAAY,SAAAlB,gEAkBfmB,eAAiB,SAAClB,EAAGmB,EAAIC,GACvB,IAAMC,EAAKC,OAAAC,EAAA,EAAAD,CAAA,GAAQH,EAAR,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,OAAQ,CACN9J,EAAG,aACH+J,SAAUvE,EAAMyC,KAAKC,aATpB,OAMCJ,EAND+B,EAAA1B,KAaLP,EAAS,CACPN,KAAM,iBAGqB,kBAAlBQ,EAAShI,MACZoJ,EAAQ,CAAEI,OAAQ,QAAS/F,QAAS,wBAC1CqE,EAASnC,YAAUyD,MACoB,IAA9BpB,EAAShI,KAAKsI,YACjBc,EAAQ,CAAEI,OAAQ,QAAS/F,QAASuE,EAAShI,KAAKA,KAAKuI,KAC7DT,EAASnC,YAAUyD,KAEnBtB,EAAS,CACPN,KAAM,cACNC,QAASO,EAAShI,OA1BjB,wBAAA+J,EAAA/I,SAAA6I,MAAP,gBAAAK,EAAAC,GAAA,OAAAP,EAAAjB,MAAAhH,KAAAiH,YAAA","file":"static/js/50.10b84359.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport \"react-table/react-table.css\";\nimport {\n Card,\n Divider,\n Button,\n Form,\n Dropdown,\n Checkbox,\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { showError } from \"../../../actions\";\n\nimport {\n loadData,\n changeInward,\n getName,\n cancelInward,\n fromSubmitInward,\n} from \"../../../actions/utils/inword\";\n\nimport { wHeight } from \"../../parms\";\n\nclass Inward extends Component {\n async componentDidMount() {\n await this.props.loadData();\n }\n\n componentWillUnmount() {\n this.props.cancelInward();\n }\n\n handleChange = async (e, data) => {\n //if (data.name == \"fltfrom\") this.props.cancelInward(data.name, data.value);\n if (data.name == \"fltfrom\") {\n this.props.cancelInward();\n await this.props.loadData();\n }\n\n if (data.name == \"fconfi\") {\n if (data.checked == true) this.props.changeInward(data.name, \"T\");\n else this.props.changeInward(data.name, \"F\");\n } else {\n this.props.changeInward(data.name, data.value);\n }\n\n if (data.name == \"fcollcode\" || data.name == \"fregno\")\n this.props.getName(data.name, data.value);\n };\n\n handleCheckbox = (e, el, i) => {\n const newel = { ...el, checked: e.target.checked ? \"T\" : \"F\" };\n this.props.changeGrpData(newel, el.fregno);\n };\n\n fromSubmitInward = () => {\n this.props.fromSubmitInward();\n };\n\n cancelInward = () => {\n this.props.cancelInward();\n };\n\n render() {\n const ltfrom = [\n { code: \"\", label: \"-Select-\" },\n { code: \"CL\", label: \"College\" },\n { code: \"ST\", label: \"Student\" },\n { code: \"OT\", label: \"Others\" },\n ];\n\n const {\n college,\n to,\n fcollcode,\n fltfrom,\n fto,\n fname,\n fsubject,\n fregno,\n fothers,\n fid,\n fconfi,\n } = this.props.inwardCreation;\n\n console.log(\"fltfrom : \", fltfrom);\n console.log(\"fname : \", fname);\n console.log(\"fsubject : \", fsubject);\n const wheight = wHeight();\n\n return (\n <div>\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Inward Entry</h4>\n <div className=\"ml-auto\">\n {/* <Button\n basic\n color=\"blue\"\n content=\"Add\"\n onClick={this.pushSms}\n icon=\"save\"\n /> */}\n {/* <Button\n basic\n color=\"blue\"\n content=\"Edit\"\n onClick={this.pushSms}\n icon=\"edit outline\"\n /> */}\n\n <Link to=\"/viewinwordtab\">\n <Button basic color=\"green\" content=\"View\" icon=\"caret up\" />\n </Link>\n <Button\n basic\n onClick={this.cancelInward}\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>\n <Form.Field>\n <label>Letter From</label>\n <Dropdown\n placeholder=\"Select Later From\"\n search\n selection\n name=\"fltfrom\"\n value={fltfrom}\n options={ltfrom.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 {fltfrom == \"CL\" ? (\n <Form.Group>\n <Form.Field width={16}>\n <label>College </label>\n <Dropdown\n placeholder=\"Select College Range\"\n search\n selection\n name=\"fcollcode\"\n value={fcollcode}\n options={college.map((el, i) => {\n return {\n key: i,\n value: el.fcollcode,\n text: el.college_name,\n };\n })}\n onChange={this.handleChange}\n />\n </Form.Field>\n </Form.Group>\n ) : null}\n\n {fltfrom == \"ST\" ? (\n <Form.Group>\n <Form.Field width={16}>\n <Form.Input\n placeholder=\"Register No.\"\n name=\"fregno\"\n onChange={this.handleChange}\n maxLength=\"8\"\n label=\"Register No.\"\n value={fregno}\n />\n </Form.Field>\n </Form.Group>\n ) : null}\n\n {fltfrom == \"OT\" ? (\n <Form.Group>\n <Form.Field width={16}>\n <Form.Input\n placeholder=\"Others\"\n name=\"fothers\"\n onChange={this.handleChange}\n maxLength=\"100\"\n label=\"Others\"\n value={fothers}\n />\n </Form.Field>\n </Form.Group>\n ) : null}\n\n <Form.Group>\n <Form.Field width={16}>\n <Form.Input\n placeholder=\"Address / Name\"\n name=\"fname\"\n onChange={this.handleChange}\n label=\"Address / Name\"\n value={fname}\n />\n </Form.Field>\n </Form.Group>\n\n <Form.Group>\n <Form.Field width={16}>\n <Form.Input\n placeholder=\"From\"\n name=\"fsubject\"\n onChange={this.handleChange}\n label=\"Subject\"\n value={fsubject}\n />\n </Form.Field>\n </Form.Group>\n\n <Form.Group>\n <Form.Field width={16}>\n <label>To </label>\n <Dropdown\n placeholder=\"to\"\n search\n selection\n name=\"fto\"\n value={fto}\n options={to.map((el, i) => {\n return {\n key: i,\n value: el.fid,\n text: el.fdescpn,\n };\n })}\n onChange={this.handleChange}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group>\n <Form.Field width={16}>\n <Checkbox\n label=\"Confidencial\"\n onChange={this.handleChange}\n name=\"fconfi\"\n checked={fconfi == \"T\"}\n />\n </Form.Field>\n </Form.Group>\n\n <button\n class=\"ui primary button\"\n onClick={this.fromSubmitInward}\n >\n Submit\n </button>\n </div>\n <hr />\n </div>\n </Form>\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n inwardCreation: state.inwardCreation,\n };\n};\nexport default connect(mapStateToProps, {\n showError,\n loadData,\n changeInward,\n getName,\n cancelInward,\n fromSubmitInward,\n})(Inward);\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":""}
|