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.147.6.122
{"version":3,"sources":["pages/masters/feeheads/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","../node_modules/semantic-ui-react/dist/es/collections/Message/MessageContent.js","../node_modules/semantic-ui-react/dist/es/collections/Message/MessageHeader.js","../node_modules/semantic-ui-react/dist/es/collections/Message/MessageItem.js","../node_modules/semantic-ui-react/dist/es/collections/Message/MessageList.js","../node_modules/semantic-ui-react/dist/es/collections/Message/Message.js","actions/finance/fee-str.js"],"names":["CreateFeeHead","state","feeheads","fmcombcode","ffeecode","fdescpn","fshortname","fsequence","fdeleted","fdisabled","error","errorMessage","del_deggrp","changeCell","e","el","i","arra","_this","map","item","j","data","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_4__","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__","target","name","value","setState","deleteRow","checked","addRow","length","concat","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","props","showError","header","content","handleSave","_callee","_error","_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","abrupt","saveFeeHeads","getFeeHeads","stop","this","prevProps","_this2","_this$state","arlength","wheight","wHeight","react__WEBPACK_IMPORTED_MODULE_10___default","createElement","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","fluid","Content","Header","style","display","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","basic","color","icon","onClick","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","semantic_ui_react__WEBPACK_IMPORTED_MODULE_14__","Description","height","overflowY","semantic_ui_react__WEBPACK_IMPORTED_MODULE_15__","negative","semantic_ui_react__WEBPACK_IMPORTED_MODULE_16__","celled","Row","HeaderCell","width","singleLine","textAlign","Body","key","Cell","type","id","disabled","onChange","onKeyDown","keyCode","Component","connect","_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__","MessageContent","classnames_default","getUnhandledProps","getElementType","react_default","extends_default","lib","Message_MessageContent","MessageHeader","create","factories","val","Message_MessageHeader","MessageItem","defaultProps","as","Message_MessageItem","MessageList","items","map_default","Message_MessageList","d","Message_Message","_Component","Message","_getPrototypeOf2","classCallCheck_default","_len","arguments","args","Array","_key","possibleConstructorReturn_default","getPrototypeOf_default","call","apply","defineProperty_default","assertThisInitialized_default","onDismiss","inherits_default","createClass_default","_this$props","attached","compact","floating","info","list","positive","size","success","visible","warning","classNameBuilders","dismissIcon","Icon","handleDismiss","autoGenerateKey","isNil_default","react","_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","params","univcode","univ","funivcode","sent","error_code","msg","payload","_x","_x2","getCategory","_ref2","_callee2","_error2","_context2","_x3","_x4","_ref3","_callee3","_error3","_error4","_context3","post","_x5","_x6","changefeeform","cancelFeestr","displayfeeDetails","_ref4","_callee4","_error5","_context4","feeStrForm","_x7","_x8","getFeeParams","_ref5","_callee5","_error6","_error7","_context5","console","log","module","t0","_x9","_x10","getContTypes","fcombcode","_ref6","_callee6","_error8","_error9","_context6","feetype","_x11","_x12","saveFeeDetails","feeDetl","_ref7","_callee7","_error10","_error11","_context7","_x13","_x14","displayfeeDates","_ref8","_callee8","_error12","_context8","_x15","_x16","saveFeeDates","feearray","_ref9","_callee9","_error13","_error14","_context9","_x17","_x18","changeCheckBox","_ref10","_callee10","_context10","cond","ind","_x19","_x20"],"mappings":"8SASMA,6MACJC,MAAQ,CACNC,SAAU,CACR,CACEC,WAAY,GACZC,SAAU,GACVC,QAAS,GACTC,WAAY,GACZC,UAAW,GACXC,UAAU,EACVC,WAAW,IAGfC,OAAO,EACPC,aAAc,GACdC,WAAY,MAadC,WAAa,SAACC,EAAGC,EAAIC,GACnB,IACIC,EADaC,EAAKjB,MAAMC,SACRiB,IAAI,SAACC,EAAMC,GAC7B,IAAIC,EAAOF,EAIX,OAHIC,IAAML,IACRM,EAAIC,OAAAC,EAAA,EAAAD,CAAA,GAAQR,EAARQ,OAAAE,EAAA,EAAAF,CAAA,GAAaT,EAAEY,OAAOC,KAAOb,EAAEY,OAAOE,SAErCN,IAETJ,EAAKW,SAAS,CAAE3B,SAAUe,OAG5Ba,UAAY,SAAChB,EAAGC,EAAIC,GAClB,IACIC,EADaC,EAAKjB,MAAMC,SACRiB,IAAI,SAACC,EAAMC,GAC7B,IAAIC,EAAOF,EAIX,OAHIC,IAAML,IACRM,EAAIC,OAAAC,EAAA,EAAAD,CAAA,GAAQR,EAARQ,OAAAE,EAAA,EAAAF,CAAA,GAAaT,EAAEY,OAAOC,KAAOb,EAAEY,OAAOK,WAErCT,IAETJ,EAAKW,SAAS,CAAE3B,SAAUe,OAG5Be,OAAS,WACP,IAAIhB,EAAIE,EAAKjB,MAAMC,SAAS+B,OAAS,EAC/BlB,EAAKG,EAAKjB,MAAMC,SAASc,GAC/B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,EAAiB,SAACtQ,EAAIO,GACjC,sBAAAgQ,EAAA/P,OAAAqK,EAAA,EAAArK,CAAAoB,EAAAC,EAAAiJ,KAAO,SAAA0F,EAAOzF,EAAUC,GAAjB,OAAApJ,EAAAC,EAAAC,KAAA,SAAA2O,GAAA,cAAAA,EAAAzO,KAAAyO,EAAAxO,MAAA,OACL8I,EAAS,CACPlG,KAAM,kBACN8G,QAAS,CAAE+E,KAAM1Q,EAAI2Q,IAAKpQ,KAHvB,wBAAAkQ,EAAApO,SAAAmO,MAAP,gBAAAI,EAAAC,GAAA,OAAAN,EAAAnH,MAAA9G,KAAAuG,YAAA","file":"static/js/64.1d185298.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { Card, Divider, Table, Button, Message } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { getFeeHeads, saveFeeHeads } from \"../../../actions/finance/fee-str\";\nimport { showError } from \"../../../actions\";\n//\nimport { wHeight } from \"../../parms\";\n\nclass CreateFeeHead extends Component {\n state = {\n feeheads: [\n {\n fmcombcode: \"\",\n ffeecode: \"\",\n fdescpn: \"\",\n fshortname: \"\",\n fsequence: \"\",\n fdeleted: false,\n fdisabled: false\n }\n ],\n error: false,\n errorMessage: \"\",\n del_deggrp: []\n };\n\n componentDidMount() {\n this.props.getFeeHeads();\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.feeheads !== prevProps.feeheads) {\n this.setState({ feeheads: [...this.props.feeheads] });\n }\n }\n\n changeCell = (e, el, i) => {\n const feeheads = this.state.feeheads;\n let arra = feeheads.map((item, j) => {\n let data = item;\n if (j === i) {\n data = { ...el, [e.target.name]: e.target.value };\n }\n return data;\n });\n this.setState({ feeheads: arra });\n };\n\n deleteRow = (e, el, i) => {\n const feeheads = this.state.feeheads;\n let arra = feeheads.map((item, j) => {\n let data = item;\n if (j === i) {\n data = { ...el, [e.target.name]: e.target.checked };\n }\n return data;\n });\n this.setState({ feeheads: arra });\n };\n\n addRow = () => {\n let i = this.state.feeheads.length - 1;\n const el = this.state.feeheads[i];\n if (\n el.fmcombcode === \"\" ||\n el.ffeecode === \"\" ||\n el.fdescpn === \"\" ||\n el.fshortname === \"\" ||\n el.fsequence === \"\"\n ) {\n const error = { header: \"Error\", content: \"Enter the values\" };\n this.props.showError(error);\n return;\n }\n\n const item = {\n fmcombcode: \"\",\n ffeecode: \"\",\n fdescpn: \"\",\n fshortname: \"\",\n fsequence: \"\",\n fdeleted: false,\n fdisabled: false\n };\n this.setState({ feeheads: [...this.state.feeheads, item] });\n };\n\n handleSave = async () => {\n if (this.state.feeheads.length <= 1) {\n const error = { header: \"Error\", content: \"Enter the values\" };\n this.props.showError(error);\n return;\n }\n\n for (let i = 0; i < this.state.feeheads.length; i++) {\n let el = this.state.feeheads[i];\n if (\n el.ffeecode === \"\" ||\n el.fdescpn === \"\" ||\n el.fshortname === \"\" ||\n el.fsequence === \"\"\n ) {\n const error = { header: \"Error\", content: \"Enter all the values\" };\n this.props.showError(error);\n return;\n }\n }\n await this.props.saveFeeHeads(this.state.feeheads);\n\n this.props.getFeeHeads();\n };\n\n render() {\n const { feeheads, error, errorMessage } = this.state;\n const arlength = feeheads.length;\n const wheight = wHeight();\n return (\n <div className=\"animated fadeIn\">\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Create Fee Head</h4>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"blue\"\n content=\"Add\"\n icon=\"plus\"\n onClick={this.addRow}\n />\n <Button\n basic\n color=\"green\"\n content=\"Save\"\n onClick={this.handleSave}\n icon=\"save\"\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 style={{ height: `${wheight}px`, overflowY: \"auto\" }}\n >\n {error ? (\n <Message negative>\n <Message.Header> {errorMessage} </Message.Header>\n </Message>\n ) : null}\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: \"10%\" }}\n textAlign=\"center\"\n >\n Module\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"20%\" }}\n textAlign=\"center\"\n >\n Fee Code\n </Table.HeaderCell>\n <Table.HeaderCell textAlign=\"center\">\n Description\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"10%\" }}\n textAlign=\"center\"\n >\n Short Name\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n textAlign=\"center\"\n >\n Sequence\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"10%\" }}\n textAlign=\"center\"\n >\n Del\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {feeheads.map((el, i) => {\n return (\n <Table.Row key={i}>\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n <Table.Cell textAlign=\"center\" singleLine>\n <input\n className=\"field\"\n type=\"text\"\n name=\"fmcombcode\"\n id={i}\n value={el.fmcombcode}\n disabled={el.fdisabled == \"true\" ? true : false}\n onChange={e => this.changeCell(e, el, i)}\n />\n </Table.Cell>\n <Table.Cell textAlign=\"center\" singleLine>\n <input\n className=\"field\"\n type=\"text\"\n name=\"ffeecode\"\n id={i}\n value={el.ffeecode}\n disabled={el.fdisabled == \"true\" ? true : false}\n onChange={e => this.changeCell(e, el, i)}\n />\n </Table.Cell>\n <Table.Cell>\n <input\n type=\"text\"\n value={el.fdescpn}\n name=\"fdescpn\"\n id={i}\n onChange={e => this.changeCell(e, el, i)}\n />\n </Table.Cell>\n <Table.Cell>\n <input\n type=\"text\"\n style={{ textAlign: \"center\" }}\n value={el.fshortname}\n name=\"fshortname\"\n id={i}\n onChange={e => this.changeCell(e, el, i)}\n />\n </Table.Cell>\n <Table.Cell>\n <input\n type=\"text\"\n style={{ textAlign: \"center\" }}\n value={el.fsequence}\n name=\"fsequence\"\n id={i}\n onChange={e => this.changeCell(e, el, i)}\n />\n </Table.Cell>\n\n <Table.Cell textAlign=\"center\">\n {arlength === i + 1 ? (\n <div className=\"ui checkbox\">\n <input\n type=\"checkbox\"\n onKeyDown={e => {\n if (e.keyCode === 9) this.addRow();\n }}\n name=\"fdeleted\"\n value={el.fdeleted}\n onChange={e => this.deleteRow(e, el, i)}\n checked={\n el.fdeleted == \"true\" ? \"checked\" : null\n }\n />\n <label> </label>\n </div>\n ) : (\n <div className=\"ui checkbox\">\n <input\n type=\"checkbox\"\n name=\"fdeleted\"\n value={el.fdeleted}\n onChange={e => this.deleteRow(e, el, i)}\n checked={\n el.fdeleted == \"true\" ? \"checked\" : null\n }\n />\n <label> </label>\n </div>\n )}\n\n {/* <Button size='mini' color=\"red\" icon='trash' content=\"Delete\"/> */}\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n feeheads: state.feeheads\n };\n};\n\nexport default connect(\n mapStateToProps,\n {\n getFeeHeads,\n showError,\n saveFeeHeads\n }\n)(CreateFeeHead);\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 _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps } from '../../lib';\n/**\n * A message can contain a content.\n */\n\nfunction MessageContent(props) {\n var children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('content', className);\n var rest = getUnhandledProps(MessageContent, props);\n var ElementType = getElementType(MessageContent, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nMessageContent.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nMessageContent.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 /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nexport default MessageContent;","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps } from '../../lib';\n/**\n * A message can contain a header.\n */\n\nfunction MessageHeader(props) {\n var children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('header', className);\n var rest = getUnhandledProps(MessageHeader, props);\n var ElementType = getElementType(MessageHeader, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nMessageHeader.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nMessageHeader.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 /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nMessageHeader.create = createShorthandFactory(MessageHeader, function (val) {\n return {\n content: val\n };\n});\nexport default MessageHeader;","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps } from '../../lib';\n/**\n * A message list can contain an item.\n */\n\nfunction MessageItem(props) {\n var children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('content', className);\n var rest = getUnhandledProps(MessageItem, props);\n var ElementType = getElementType(MessageItem, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nMessageItem.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nMessageItem.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 /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand\n} : {};\nMessageItem.defaultProps = {\n as: 'li'\n};\nMessageItem.create = createShorthandFactory(MessageItem, function (content) {\n return {\n content: content\n };\n});\nexport default MessageItem;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _map from \"lodash/map\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps } from '../../lib';\nimport MessageItem from './MessageItem';\n/**\n * A message can contain a list of items.\n */\n\nfunction MessageList(props) {\n var children = props.children,\n className = props.className,\n items = props.items;\n var classes = cx('list', className);\n var rest = getUnhandledProps(MessageList, props);\n var ElementType = getElementType(MessageList, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? _map(items, MessageItem.create) : children);\n}\n\nMessageList.handledProps = [\"as\", \"children\", \"className\", \"items\"];\nMessageList.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 /** Shorthand Message.Items. */\n items: customPropTypes.collectionShorthand\n} : {};\nMessageList.defaultProps = {\n as: 'ul'\n};\nMessageList.create = createShorthandFactory(MessageList, function (val) {\n return {\n items: val\n };\n});\nexport default MessageList;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _isNil from \"lodash/isNil\";\nimport _without from \"lodash/without\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { childrenUtils, createHTMLParagraph, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useKeyOrValueAndKey } from '../../lib';\nimport Icon from '../../elements/Icon';\nimport MessageContent from './MessageContent';\nimport MessageHeader from './MessageHeader';\nimport MessageList from './MessageList';\nimport MessageItem from './MessageItem';\n/**\n * A message displays information that explains nearby content.\n * @see Form\n */\n\nvar Message = /*#__PURE__*/function (_Component) {\n _inherits(Message, _Component);\n\n function Message() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Message);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Message)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleDismiss\", function (e) {\n var onDismiss = _this.props.onDismiss;\n if (onDismiss) onDismiss(e, _this.props);\n });\n\n return _this;\n }\n\n _createClass(Message, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n attached = _this$props.attached,\n children = _this$props.children,\n className = _this$props.className,\n color = _this$props.color,\n compact = _this$props.compact,\n content = _this$props.content,\n error = _this$props.error,\n floating = _this$props.floating,\n header = _this$props.header,\n hidden = _this$props.hidden,\n icon = _this$props.icon,\n info = _this$props.info,\n list = _this$props.list,\n negative = _this$props.negative,\n onDismiss = _this$props.onDismiss,\n positive = _this$props.positive,\n size = _this$props.size,\n success = _this$props.success,\n visible = _this$props.visible,\n warning = _this$props.warning;\n var classes = cx('ui', color, size, useKeyOnly(compact, 'compact'), useKeyOnly(error, 'error'), useKeyOnly(floating, 'floating'), useKeyOnly(hidden, 'hidden'), useKeyOnly(icon, 'icon'), useKeyOnly(info, 'info'), useKeyOnly(negative, 'negative'), useKeyOnly(positive, 'positive'), useKeyOnly(success, 'success'), useKeyOnly(visible, 'visible'), useKeyOnly(warning, 'warning'), useKeyOrValueAndKey(attached, 'attached'), 'message', className);\n var dismissIcon = onDismiss && React.createElement(Icon, {\n name: \"close\",\n onClick: this.handleDismiss\n });\n var rest = getUnhandledProps(Message, this.props);\n var ElementType = getElementType(Message, this.props);\n\n if (!childrenUtils.isNil(children)) {\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), dismissIcon, children);\n }\n\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), dismissIcon, Icon.create(icon, {\n autoGenerateKey: false\n }), (!_isNil(header) || !_isNil(content) || !_isNil(list)) && React.createElement(MessageContent, null, MessageHeader.create(header, {\n autoGenerateKey: false\n }), MessageList.create(list, {\n autoGenerateKey: false\n }), createHTMLParagraph(content, {\n autoGenerateKey: false\n })));\n }\n }]);\n\n return Message;\n}(Component);\n\n_defineProperty(Message, \"Content\", MessageContent);\n\n_defineProperty(Message, \"Header\", MessageHeader);\n\n_defineProperty(Message, \"List\", MessageList);\n\n_defineProperty(Message, \"Item\", MessageItem);\n\n_defineProperty(Message, \"handledProps\", [\"as\", \"attached\", \"children\", \"className\", \"color\", \"compact\", \"content\", \"error\", \"floating\", \"header\", \"hidden\", \"icon\", \"info\", \"list\", \"negative\", \"onDismiss\", \"positive\", \"size\", \"success\", \"visible\", \"warning\"]);\n\nexport { Message as default };\nMessage.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** A message can be formatted to attach itself to other content. */\n attached: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['bottom', 'top'])]),\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** A message can be formatted to be different colors. */\n color: PropTypes.oneOf(SUI.COLORS),\n\n /** A message can only take up the width of its content. */\n compact: PropTypes.bool,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** A message may be formatted to display a negative message. Same as `negative`. */\n error: PropTypes.bool,\n\n /** A message can float above content that it is related to. */\n floating: PropTypes.bool,\n\n /** Shorthand for MessageHeader. */\n header: customPropTypes.itemShorthand,\n\n /** A message can be hidden. */\n hidden: PropTypes.bool,\n\n /** A message can contain an icon. */\n icon: PropTypes.oneOfType([customPropTypes.itemShorthand, PropTypes.bool]),\n\n /** A message may be formatted to display information. */\n info: PropTypes.bool,\n\n /** Array shorthand items for the MessageList. Mutually exclusive with children. */\n list: customPropTypes.collectionShorthand,\n\n /** A message may be formatted to display a negative message. Same as `error`. */\n negative: PropTypes.bool,\n\n /**\n * A message that the user can choose to hide.\n * Called when the user clicks the \"x\" icon. This also adds the \"x\" icon.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props.\n */\n onDismiss: PropTypes.func,\n\n /** A message may be formatted to display a positive message. Same as `success`. */\n positive: PropTypes.bool,\n\n /** A message can have different sizes. */\n size: PropTypes.oneOf(_without(SUI.SIZES, 'medium')),\n\n /** A message may be formatted to display a positive message. Same as `positive`. */\n success: PropTypes.bool,\n\n /** A message can be set to visible to force itself to be shown. */\n visible: PropTypes.bool,\n\n /** A message may be formatted to display warning messages. */\n warning: PropTypes.bool\n} : {};","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const getFeeHeads = () => {\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: \"getFeeHeads\",\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_FEE_HEADS\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const getCategory = () => {\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: \"getCategory\",\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_CATEGORY\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const saveFeeHeads = (feeheads) => {\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=saveFeeHeads&univcode=\" + state.univ.funivcode,\n {\n data: {\n feeheads: feeheads,\n },\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 const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n }\n };\n};\n\nexport const changefeeform = (name, value) => {\n return {\n type: \"CHANGE_FEESTRFORM\",\n payload: { name, value },\n };\n};\n\nexport const cancelFeestr = () => {\n return {\n type: \"CANCEL_FEESTR\",\n };\n};\n\nexport const displayfeeDetails = () => {\n return async function (dispatch, getState) {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n const response = await univadmin.post(\n \"/app.php?a=displayfeeDetails&univcode=\" + state.univ.funivcode,\n {\n feeStrForm: state.feeStrForm,\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_FEEDETL\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const getFeeParams = () => {\n return async function (dispatch, getState) {\n const state = getState();\n // dispatch({\n // type: \"SET_LOADER\"\n // });\n try {\n const response = await univadmin.post(\n \"/app.php?a=getFeeParams&univcode=\" + state.univ.funivcode\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 console.log(response.data.data.module);\n // console.log(response.data.data.feetype);\n dispatch({\n type: \"CHANGE_FEESTRFORM\",\n payload: { name: \"module_opt\", value: response.data.data.module },\n });\n\n /*dispatch({\n type: \"CHANGE_FEESTRFORM\",\n payload: { name: \"feetype\", value: response.data.data.feetype }\n });*/\n }\n } catch (err) {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n }\n };\n};\n\nexport const getContTypes = (fcombcode) => {\n return async function (dispatch, getState) {\n const state = getState();\n // dispatch({\n // type: \"SET_LOADER\"\n // });\n try {\n const response = await univadmin.post(\n \"/app.php?a=getContTypes&univcode=\" +\n state.univ.funivcode +\n \"&fcombcode=\" +\n fcombcode\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 // console.log(response.data.data.module);\n console.log(response.data.data.feetype);\n /*dispatch({\n type: \"CHANGE_FEESTRFORM\",\n payload: { name: \"module_opt\", value: response.data.data.module }\n });*/\n\n dispatch({\n type: \"CHANGE_FEESTRFORM\",\n payload: { name: \"feetype\", value: response.data.data.feetype },\n });\n }\n } catch (err) {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n }\n };\n};\n\nexport const saveFeeDetails = (feeDetl) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n\n // console.log(feeDetl);\n\n const response = await univadmin.post(\n \"/app.php?a=saveFeeDetails&univcode=\" + state.univ.funivcode,\n {\n feeStrForm: state.feeStrForm,\n feeDetl: feeDetl,\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 const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n }\n };\n};\n\nexport const displayfeeDates = () => {\n return async function (dispatch, getState) {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n const response = await univadmin.post(\n \"/app.php?a=displayfeeDates&univcode=\" + state.univ.funivcode,\n {\n feeStrForm: state.feeStrForm,\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_FEEDATES\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const saveFeeDates = (feearray) => {\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=saveFeeDates&univcode=\" + state.univ.funivcode,\n {\n feeStrForm: state.feeStrForm,\n feearray: feearray,\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 const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n }\n };\n};\n\nexport const changeCheckBox = (el, data) => {\n return async (dispatch, getState) => {\n dispatch({\n type: \"CHECK_FEEDETAIL\",\n payload: { cond: el, ind: data },\n });\n };\n};\n"],"sourceRoot":""}
|