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.21.247.221
{"version":3,"sources":["pages/utils/sms-notification/sms-form.js","pages/utils/sms-notification/send-view-sms.js","pages/utils/sms-notification/upload-sms-excel.js","actions/utils/upload-sms.js","pages/utils/sms-notification/sms.js","actions/utils/sms-notification.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticGroup.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticLabel.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticValue.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/Statistic.js"],"names":["SendSMSForm","state","fdeggrp","fstudtype","fmodule","handleChange","_callee","e","data","regenerator_default","a","wrap","_context","prev","next","_this","setState","Object","defineProperty","name","value","props","changesms","getEvents","smsstate","fsendto","fliterMsg","stop","studentChange","_callee2","_context2","moduleChange","_callee3","_context3","changeDeggrp","deggrp","filter","el","i","pushSms","_callee4","error","_error","_error2","_context4","header","content","showError","abrupt","fmsg","getMessages","changeTabIndex","activeIndex","this","fetchDegGrp","_this$state","deggroup_options","map","key","text","concat","fdescpn","wHeight","console","log","ffeepaid","react_default","createElement","Form","className","style","marginRight","marginLeft","Group","Field","width","Dropdown","size","fluid","search","selection","onChange","placeholder","disabled","openOnFocus","options","selectOnBlur","code","label","fevent","fevents","ftitle","Input","fcollfrom","maxLength","fcollto","marginTop","fdegfrom","fdegto","fregfrom","fregto","searchInput","autoFocus","fboardfrom","fboardto","fteachfrom","fteachto","control","TextArea","ftemplate","rows","length","Math","ceil","Button","color","onClick","Component","connect","smsNotif","univ","SendViewSMS","degSemList","open","componentDidMount","sendsms","funivcode","fenttype","fusertype","url","API","user","fuserid","window","focus","deletesms","deleteSms","show","close","_this2","sms","viewsms","Fragment","Table","celled","compact","padding","unstackable","Header","Row","textAlign","HeaderCell","Body","Cell","pushdate","fmessage","ftotal","fsent","ffpend","parseInt","curdate","basic","display","icon","univcode","viewSMS","SMSUpload","file","filenm","fileinfo","fileInputRef","React","createRef","handleCancel","current","fileChange","undefined","target","files","file_size","file_extn","split","pop","toLowerCase","uploadSmsFile","formatBytes","upload","uploadSmsData","wheight","flexDirection","alignContent","margin","primary","Segment","height","overflowY","Icon","onSubmit","onFormSubmit","ref","type","hidden","click","Statistic","feeheads","_ref","asyncToGenerator","mark","dispatch","getState","formData","response","FormData","set","univadmin","post","headers","Content-type","sent","payload","_x","_x2","apply","arguments","_ref2","get","params","gfilename","fqpfilenm","error_code","msg","_x3","_x4","SendSMS","panes","menuItem","render","Tab","Pane","sms_form","upload_sms_excel","send_view_sms","Card","Content","Link","to","Divider","Description","menu","attached","tabular","onTabChange","fmsgtype","_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","fevttype","getNotifications","_ref3","_error3","_x5","_x6","pushNotification","_ref4","_error4","success","event","_x7","_x8","_ref5","_callee5","_error5","_context5","_x9","_x10","_ref6","_callee6","_error6","_context6","_x11","_x12","getColleges","deg","_ref7","_callee7","_error7","_context7","_x13","_x14","getDegrees","col","_ref8","_callee8","_context8","_x15","_x16","getDegfromDeggrp","_ref9","_callee9","_context9","_x17","_x18","StatisticGroup","children","horizontal","inverted","items","widths","classes","classnames_default","classNameBuilders","rest","getUnhandledProps","ElementType","getElementType","lib","isNil","extends_default","map_default","item","Statistic_Statistic","create","handledProps","propTypes","Statistic_StatisticGroup","StatisticLabel","factories","Statistic_StatisticLabel","StatisticValue","Statistic_StatisticValue","floated","defaultProps","autoGenerateKey","Label","Value","__webpack_exports__"],"mappings":"+TAuBMA,6MACJC,MAAQ,CACNC,QAAS,GACTC,UAAW,GACXC,QAAS,MAOXC,mDAAe,SAAAC,EAAOC,EAAGC,GAAV,OAAAC,EA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BAAA,IACML,EAAcN,OAAAxO,EAAA,CACpBmP,iBAAA,KAbWzQ,EAAAxD,EAAKyD,cAAAqP,EAA4BI,IAAQ,GAAGN,EAAA,CACvDjP,UAAA8O,IACKrQ,GARMoB,EAAAxD,EAAKyD,cAAAqP,EAA4BI,IAAQ,GAAGN,EAAA,CACvDjP,UAAA8O,IACKL,GAqBLnG,EAAAsH,aAAA,gHACAtH,EAAAuH,UAoCC,GACDvH,EAAAlI,MAAkB0P,EAClBxH,EAAAiI,MAAkBN,EAClB3H,EAAAkI,MAAkBL,EAClB7H,EAAAqH,OAAmB/S,OAAAoT,EAAA,EAAApT,CAAsB0L,EAAA,SAAA7J,GACzC,OACAA,aAGe,IAAAiR,EAAAe,EAAA","file":"static/js/118.53cf88c7.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, fetchDegGrp } from \"../../../actions\";\n// import DegreeGroupWithYearType from \"../../common/degreeGroupWithYearType\";\nimport {\n changesms,\n getEvents,\n fliterMsg,\n pushSms,\n getMessages,\n} from \"../../../actions/utils/sms-notification\";\nimport { wHeight } from \"../../parms\";\nimport { API } from \"../../../apis/consts\";\n\nclass SendSMSForm extends Component {\n state = {\n fdeggrp: \"\",\n fstudtype: \"\",\n fmodule: \"\",\n };\n\n async componentDidMount() {\n await this.props.fetchDegGrp();\n }\n\n handleChange = async (e, data) => {\n this.setState({ [data.name]: data.value });\n await this.props.changesms(data.name, data.value);\n // console.log(data);\n if (data.name === \"fsendto\") {\n this.props.getEvents(\"SMS\", this.props.smsstate.fsendto);\n }\n if (data.name === \"fevent\" && data.value !== \"\") {\n this.props.fliterMsg(data.name, data.value);\n }\n };\n\n studentChange = async (e, data) => {\n this.setState({ fstudtype: data.value });\n };\n\n moduleChange = async (e, data) => {\n // console.log(\"hello\", data.value);\n this.setState({ fmodule: data.value });\n };\n\n changeDeggrp = (e, data) => {\n let deggrpsel = this.props.deggrp.filter(\n (el, i) => el.fdeggrp === data.value\n );\n let deggrp = deggrpsel[0];\n\n this.setState({\n fdeggrp: deggrp.fdeggrp,\n });\n };\n\n pushSms = async () => {\n // console.log(this.props.smsstate.deggrp.length);\n if (this.state.fdeggrp == \"\") {\n const error = { header: \"Error\", content: \"Select Degree Group\" };\n this.props.showError(error);\n return;\n }\n if (this.props.smsstate.fsendto == \"\") {\n const error = { header: \"Error\", content: \"Select user type\" };\n this.props.showError(error);\n return;\n }\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 await this.props.pushSms(this.state);\n await this.props.getMessages();\n this.props.changeTabIndex({}, { activeIndex: 2 });\n };\n\n render() {\n const { fstudtype, fmodule, fdeggrp } = this.state;\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 feepaid_options = [\n { code: \"ALL\", label: \"All\" },\n { code: \"PEND\", label: \"Inactive (Fee not paid)\" },\n { code: \"PAID\", label: \"Active (Fee paid)\" },\n ];\n\n const studtype_options = [\n { value: \"All\", text: \"All Students\" },\n { value: \"feepaid\", text: \"Fee Paid\" },\n { value: \"feepending\", text: \"Fee Pending\" },\n ];\n\n const module_options = [\n { value: \"examapp\", text: \"Exam Application\" },\n { value: \"student\", text: \"Student\" },\n { value: \"result\", text: \"Result (RV/ PC PHOTOCOPY)\" },\n { value: \"Marks Card Dispatch\", text: \"Marks Card Dispatch\" },\n { value: \"student_register_no\", text: \"Student Reg. No.\" },\n ];\n\n const deggroup = this.props.deggrp;\n var deggroup_options = deggroup.map((el, i) => {\n return {\n key: i,\n value: el.fdeggrp,\n text: `${el.fdeggrp} - ${el.fdescpn}`,\n };\n });\n\n const wheight = wHeight();\n const smsstate = this.props.smsstate;\n console.log(smsstate.ffeepaid);\n\n return (\n <div>\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 width={16}>\n <label>Degree Group</label>\n <Dropdown\n size=\"mini\"\n fluid\n search\n selection\n value={fdeggrp}\n onChange={this.changeDeggrp}\n placeholder=\"Select Degree Group\"\n disabled={this.props.disabled}\n openOnFocus={false}\n options={deggroup_options}\n selectOnBlur={false}\n />\n </Form.Field>\n </Form.Group>\n <Form.Group>\n <Form.Field width={16}>\n <label>User type</label>\n <Dropdown\n placeholder=\"User type\"\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\n <Form.Group>\n <Form.Field width={16}>\n <label>Message Template</label>\n <Dropdown\n placeholder=\"Message Template\"\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 {smsstate.fsendto == \"ST\" ? (\n <Form.Group>\n <Form.Field width={16}>\n <label>Active Students?</label>\n <Dropdown\n placeholder=\"Active Students\"\n selection\n name=\"ffeepaid\"\n value={smsstate.ffeepaid}\n options={feepaid_options.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 ) : 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 <Form.Group>\n <Form.Field width={8}>\n <label>Student Type</label>\n <Dropdown\n size=\"mini\"\n fluid\n search\n selection\n name=\"fstudtype\"\n value={fstudtype}\n placeholder=\"Select Student Type\"\n openOnFocus={false}\n options={studtype_options}\n selectOnBlur={false}\n searchInput={{ autoFocus: true }}\n onChange={this.studentChange}\n label=\"Student Type\"\n />\n </Form.Field>\n <Form.Field width={8}>\n <label>Module</label>\n <Dropdown\n size=\"mini\"\n fluid\n search\n selection\n name=\"fmodule\"\n value={fmodule}\n placeholder=\"Select Module\"\n openOnFocus={false}\n options={module_options}\n selectOnBlur={false}\n searchInput={{ autoFocus: true }}\n onChange={this.moduleChange}\n label=\"Module\"\n />\n </Form.Field>\n </Form.Group>\n </div>\n ) : null}\n {smsstate.fsendto == \"TH\" ? (\n <div>\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 <Form.Group>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"From\"\n name=\"fteachfrom\"\n value={smsstate.fteachfrom}\n onChange={this.handleChange}\n maxLength=\"10\"\n label=\"Teacher Code Range\"\n />\n </Form.Field>\n <Form.Field width={8}>\n <Form.Input\n placeholder=\"To\"\n name=\"fteachto\"\n value={smsstate.fteachto}\n onChange={this.handleChange}\n maxLength=\"10\"\n style={{ marginTop: \"1.6em\" }}\n />\n </Form.Field>\n </Form.Group>\n </div>\n ) : null}\n\n <Form.Group>\n <Form.Field width={16}>\n <Form.Input\n name=\"fmsg\"\n control={TextArea}\n value={smsstate.ftemplate}\n onChange={this.handleChange}\n label=\"Template\"\n placeholder=\"Template\"\n rows=\"6\"\n disabled\n />\n {/* {smsstate.ftemplate.length}/160 Characters <br />0\n {smsstate.ftemplate.length > 0\n ? smsstate.ftemplate.length > 160\n ? Math.ceil(smsstate.ftemplate.length / 153)\n : 1\n : 0}{\" \"}\n Template */}\n </Form.Field>\n </Form.Group>\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 <Button color=\"blue\" content=\"Submit\" onClick={this.pushSms} />\n </div>\n </div>\n </Form>\n </div>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n smsstate: state.smsNotif,\n deggrp: state.deggrp,\n univ: state.univ,\n };\n};\nexport default connect(mapStateToProps, {\n showError,\n changesms,\n getEvents,\n fliterMsg,\n pushSms,\n getMessages,\n fetchDegGrp,\n})(SendSMSForm);\n","import React, { Component } from \"react\";\nimport { Button, Table } from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport {\n getMessages,\n deleteSms,\n} from \"../../../actions/utils/sms-notification\";\nimport { API } from \"../../../apis/consts\";\n\nclass SendViewSMS extends Component {\n state = {\n degSemList: [],\n open: false,\n size: \"mini\",\n };\n\n componentDidMount = async () => {\n await this.props.getMessages();\n };\n\n sendsms = (funivcode, fenttype, fusertype) => {\n var url =\n API +\n \"/sendsmsroot.php?funivcode=\" +\n funivcode +\n \"&fevent=\" +\n fenttype +\n \"&usertype=\" +\n fusertype +\n \"&fsentuser=\" +\n this.props.user.fuserid;\n var win = window.open(url, \"_blank\");\n win.focus();\n };\n\n deletesms = async (funivcode, fenttype, fusertype) => {\n await this.props.deleteSms(funivcode, fenttype, fusertype);\n this.props.getMessages();\n };\n\n show = (size) => () => this.setState({ size, open: true });\n close = () => this.setState({ open: false });\n\n render() {\n const sms = this.props.viewsms;\n return (\n <>\n <Table celled compact style={{ padding: \"0%\" }} unstackable>\n <Table.Header>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell width=\"1\">Sl. No.</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Date</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Event Type</Table.HeaderCell>\n <Table.HeaderCell width=\"5\">Message</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Total</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Sent</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Pending</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Action</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {sms.map((el, i) => {\n return (\n <Table.Row key={i}>\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.pushdate}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fenttype}</Table.Cell>\n <Table.Cell>{el.fmessage}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.ftotal}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fsent}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.ffpend}</Table.Cell>\n <Table.Cell>\n {parseInt(el.ffpend) > 0 && el.curdate == \"T\" ? (\n <div>\n <Button\n content=\"Send\"\n basic\n size=\"small\"\n style={{ display: \"flex\" }}\n color=\"blue\"\n icon=\"send\"\n onClick={() =>\n this.sendsms(\n el.funivcode,\n el.fenttype,\n el.fusertype\n )\n }\n />\n <Button\n content=\"Delete\"\n basic\n size=\"small\"\n style={{ display: \"flex\", marginTop: \"10px\" }}\n color=\"red\"\n icon=\"trash\"\n onClick={() =>\n this.deletesms(\n el.funivcode,\n el.fenttype,\n el.fusertype\n )\n }\n />\n </div>\n ) : null}\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n user: state.user,\n univcode: state.univ.funivcode,\n viewsms: state.viewSMS,\n };\n};\nexport default connect(mapStateToProps, {\n getMessages,\n deleteSms,\n})(SendViewSMS);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n Card,\n Divider,\n Segment,\n Button,\n Icon,\n Header,\n Form,\n Statistic,\n Dropdown,\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport {\n uploadSmsFile,\n uploadSmsData,\n} from \"../../../actions/utils/upload-sms\";\nimport { showError } from \"../../../actions\";\nimport { wHeight, formatBytes } from \"../../parms\";\n\nclass SMSUpload extends Component {\n state = {\n file: null,\n size: null,\n filenm: null,\n fileinfo: false,\n };\n\n fileInputRef = React.createRef();\n\n handleCancel = () => {\n this.setState({\n file: null,\n size: null,\n filenm: null,\n fileinfo: false,\n });\n this.fileInputRef.current.value = \"\";\n // console.log(this.fileInputRef);\n };\n\n fileChange = (e) => {\n if (e.target.files[0] === undefined) return;\n\n var file_size = e.target.files[0].size;\n var file_extn = e.target.files[0].name.split(\".\").pop();\n file_extn = file_extn.toLowerCase();\n\n if (file_extn !== \"xlsx\") {\n const error = { header: \"Error\", content: \"XLSX files are allowed!\" };\n this.props.showError(error);\n return;\n }\n\n if (file_size >= 2000000) {\n const error = {\n header: \"Error\",\n content: \"Upload files with size less then 2MB!\",\n };\n this.props.showError(error);\n return;\n }\n this.props.uploadSmsFile(e.target.files[0]);\n this.setState({\n file: e.target.files[0],\n size: formatBytes(e.target.files[0].size),\n filenm: e.target.files[0].name,\n });\n };\n\n handleChange = (e, data) => {\n this.setState({ [data.name]: data.value });\n };\n\n upload = async () => {\n if (this.state.file === null) {\n const error = { header: \"Error\", content: \"Add File to upload\" };\n this.props.showError(error);\n return;\n }\n await this.props.uploadSmsData();\n this.handleCancel();\n };\n\n render() {\n const wheight = wHeight();\n return (\n <div>\n <div\n className=\"row\"\n style={{\n flexDirection: \"column\",\n alignContent: \"flex-end\",\n margin: \"0.5em\",\n marginRight: \"0em\",\n }}\n >\n <div className=\"pull-right\">\n {this.state.file != null ? (\n <Button primary onClick={this.upload}>\n Upload\n </Button>\n ) : null}\n </div>\n </div>\n <div className=\"row\">\n <div className=\"col-md-12\">\n <Segment\n placeholder\n style={{ height: `${wheight * 0.8}px`, overflowY: \"auto\" }}\n >\n <Header icon>\n <Icon name=\"file excel outline\" />\n Upload the Excel file here. With Columns - | Mobile No. |\n Message |\n <br />\n Note: File should be in xlsx format and less than 2 MB\n </Header>\n <Form onSubmit={this.onFormSubmit}>\n <input\n ref={this.fileInputRef}\n type=\"file\"\n hidden\n onChange={this.fileChange}\n />\n {this.state.file == null ? (\n <Button\n primary\n onClick={() => this.fileInputRef.current.click()}\n >\n Add Document\n </Button>\n ) : null}\n </Form>\n <Statistic label={this.state.filenm} value={this.state.size} />\n </Segment>\n </div>\n </div>\n </div>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n feeheads: state.feeheads,\n };\n};\n\nexport default connect(mapStateToProps, {\n showError,\n uploadSmsFile,\n uploadSmsData,\n})(SMSUpload);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\nexport const uploadSmsFile = (file) => {\n return async function (dispatch, getState) {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n\n const formData = new FormData();\n formData.set(\"file\", file, file.name);\n const response = await univadmin.post(\"upload_file.php\", formData, {\n headers: {\n \"Content-type\": \"multipart/form-data\",\n },\n });\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n dispatch({\n type: \"SET_QPNAME\",\n payload: response.data,\n });\n };\n};\n\nexport const uploadSmsData = () => {\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: \"uploadSMSData\",\n gfilename: state.upload.fqpfilenm,\n univcode: state.univ.funivcode,\n },\n });\n dispatch({\n type: \"UNSET_LOADER\",\n });\n // console.log(\"response\",response);\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else if (response.data.error_code === 0) {\n const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n }\n };\n};\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { Card, Divider, Button, Tab } 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 SendSMSForm from \"./sms-form\";\nimport SendViewSMS from \"./send-view-sms\";\nimport SMSUpload from \"./upload-sms-excel\";\n\nclass SendSMS extends Component {\n state = { activeIndex: 0 };\n\n changeTabIndex = (e, { activeIndex }) => {\n this.setState({ activeIndex: activeIndex });\n };\n\n render() {\n const wheight = wHeight();\n const panes = [\n {\n menuItem: \"Push Data SMS\",\n render: () => (\n <Tab.Pane>\n <SendSMSForm changeTabIndex={this.changeTabIndex} />\n </Tab.Pane>\n ),\n },\n {\n menuItem: \"Upload Excel\",\n render: () => (\n <Tab.Pane>\n <SMSUpload />\n </Tab.Pane>\n ),\n },\n {\n menuItem: \"View / Send SMS\",\n render: () => (\n <Tab.Pane>\n <SendViewSMS />\n </Tab.Pane>\n ),\n },\n ];\n\n // console.log(smsstate);\n return (\n <div>\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Send SMS</h4>\n <div className=\"ml-auto\">\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 <Tab\n menu={{\n attached: true,\n tabular: true,\n color: \"blue\",\n className: \"wrapped\",\n }}\n activeIndex={this.state.activeIndex}\n panes={panes}\n onTabChange={this.changeTabIndex}\n />\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n return {\n smsstate: state.smsNotif,\n deggrp: state.deggrp,\n univ: state.univ,\n };\n};\nexport default connect(mapStateToProps, {\n showError,\n changesms,\n getEvents,\n fliterMsg,\n pushSms,\n})(SendSMS);\n","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","import _extends from \"@babel/runtime/helpers/extends\";\nimport _without from \"lodash/without\";\nimport _map from \"lodash/map\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useWidthProp } from '../../lib';\nimport Statistic from './Statistic';\n/**\n * A group of statistics.\n */\n\nfunction StatisticGroup(props) {\n var children = props.children,\n className = props.className,\n color = props.color,\n content = props.content,\n horizontal = props.horizontal,\n inverted = props.inverted,\n items = props.items,\n size = props.size,\n widths = props.widths;\n var classes = cx('ui', color, size, useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), useWidthProp(widths), 'statistics', className);\n var rest = getUnhandledProps(StatisticGroup, props);\n var ElementType = getElementType(StatisticGroup, props);\n\n if (!childrenUtils.isNil(children)) {\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), children);\n }\n\n if (!childrenUtils.isNil(content)) {\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), content);\n }\n\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), _map(items, function (item) {\n return Statistic.create(item);\n }));\n}\n\nStatisticGroup.handledProps = [\"as\", \"children\", \"className\", \"color\", \"content\", \"horizontal\", \"inverted\", \"items\", \"size\", \"widths\"];\nStatisticGroup.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 /** A statistic group can be formatted to be different colors. */\n color: PropTypes.oneOf(SUI.COLORS),\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** A statistic group can present its measurement horizontally. */\n horizontal: PropTypes.bool,\n\n /** A statistic group can be formatted to fit on a dark background. */\n inverted: PropTypes.bool,\n\n /** Array of props for Statistic. */\n items: customPropTypes.collectionShorthand,\n\n /** A statistic group can vary in size. */\n size: PropTypes.oneOf(_without(SUI.SIZES, 'big', 'massive', 'medium')),\n\n /** A statistic group can have its items divided evenly. */\n widths: PropTypes.oneOf(SUI.WIDTHS)\n} : {};\nexport default StatisticGroup;","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 statistic can contain a label to help provide context for the presented value.\n */\n\nfunction StatisticLabel(props) {\n var children = props.children,\n className = props.className,\n content = props.content;\n var classes = cx('label', className);\n var rest = getUnhandledProps(StatisticLabel, props);\n var ElementType = getElementType(StatisticLabel, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nStatisticLabel.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nStatisticLabel.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} : {};\nStatisticLabel.create = createShorthandFactory(StatisticLabel, function (content) {\n return {\n content: content\n };\n});\nexport default StatisticLabel;","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, useKeyOnly } from '../../lib';\n/**\n * A statistic can contain a numeric, icon, image, or text value.\n */\n\nfunction StatisticValue(props) {\n var children = props.children,\n className = props.className,\n content = props.content,\n text = props.text;\n var classes = cx(useKeyOnly(text, 'text'), 'value', className);\n var rest = getUnhandledProps(StatisticValue, props);\n var ElementType = getElementType(StatisticValue, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nStatisticValue.handledProps = [\"as\", \"children\", \"className\", \"content\", \"text\"];\nStatisticValue.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\n /** Format the value with smaller font size to fit nicely beside number values. */\n text: PropTypes.bool\n} : {};\nStatisticValue.create = createShorthandFactory(StatisticValue, function (content) {\n return {\n content: content\n };\n});\nexport default StatisticValue;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _without from \"lodash/without\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useValueAndKey } from '../../lib';\nimport StatisticGroup from './StatisticGroup';\nimport StatisticLabel from './StatisticLabel';\nimport StatisticValue from './StatisticValue';\n/**\n * A statistic emphasizes the current value of an attribute.\n */\n\nfunction Statistic(props) {\n var children = props.children,\n className = props.className,\n color = props.color,\n content = props.content,\n floated = props.floated,\n horizontal = props.horizontal,\n inverted = props.inverted,\n label = props.label,\n size = props.size,\n text = props.text,\n value = props.value;\n var classes = cx('ui', color, size, useValueAndKey(floated, 'floated'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), 'statistic', className);\n var rest = getUnhandledProps(Statistic, props);\n var ElementType = getElementType(Statistic, props);\n\n if (!childrenUtils.isNil(children)) {\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), children);\n }\n\n if (!childrenUtils.isNil(content)) {\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), content);\n }\n\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), StatisticValue.create(value, {\n defaultProps: {\n text: text\n },\n autoGenerateKey: false\n }), StatisticLabel.create(label, {\n autoGenerateKey: false\n }));\n}\n\nStatistic.handledProps = [\"as\", \"children\", \"className\", \"color\", \"content\", \"floated\", \"horizontal\", \"inverted\", \"label\", \"size\", \"text\", \"value\"];\nStatistic.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 /** A statistic can be formatted to be different colors. */\n color: PropTypes.oneOf(SUI.COLORS),\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** A statistic can sit to the left or right of other content. */\n floated: PropTypes.oneOf(SUI.FLOATS),\n\n /** A statistic can present its measurement horizontally. */\n horizontal: PropTypes.bool,\n\n /** A statistic can be formatted to fit on a dark background. */\n inverted: PropTypes.bool,\n\n /** Label content of the Statistic. */\n label: customPropTypes.contentShorthand,\n\n /** A statistic can vary in size. */\n size: PropTypes.oneOf(_without(SUI.SIZES, 'big', 'massive', 'medium')),\n\n /** Format the StatisticValue with smaller font size to fit nicely beside number values. */\n text: PropTypes.bool,\n\n /** Value content of the Statistic. */\n value: customPropTypes.contentShorthand\n} : {};\nStatistic.Group = StatisticGroup;\nStatistic.Label = StatisticLabel;\nStatistic.Value = StatisticValue;\nStatistic.create = createShorthandFactory(Statistic, function (content) {\n return {\n content: content\n };\n});\nexport default Statistic;"],"sourceRoot":""}
|