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 : 18.227.134.95
{"version":3,"sources":["pages/after-exam/workdonesummry.js","actions/after-exam/workdoneSummry.js","../node_modules/react-input-mask/index.js","../node_modules/react-input-mask/lib/react-input-mask.production.min.js"],"names":["WorkDoneReport","state","showtable","frmDeggrp","reportType","frmSubmit","rftype","tcodefrom","tcodeto","vdatefrom","moment","subtract","format","vdateto","handleChange","e","data","type","_this","setState","Object","defineProperty","name","value","handleSubmit","_callee","fdeggrp","error","regenerator_default","a","wrap","_context","prev","next","props","user","getWorkDoneSummry","fuserid","fcurtype","console","log","valdet","length","header","content","showError","abrupt","stop","handleReport","_this$props$user","fcuruniv","_this$state","ReportAPI","window","open","fcollcode","parseInt","handleChangedate","target","handleCancel","reportFormat","renderHeader","react_default","createElement","Card","Header","style","display","className","Button","basic","color","icon","onClick","Link","to","_this$state2","this","ttl","formatChars","n","m","d","z","y","wheight","wHeight","fluid","Content","Divider","Description","overflowY","height","concat","Form","Group","Field","width","react_input_mask_default","mask","placeholder","onChange","marginTop","Table","celled","padded","selectable","size","backgroundColor","Row","HeaderCell","singleLine","textAlign","rowSpan","Body","map","el","i","cnt","key","overflow","Cell","fqpcode","fsubname","fteachcode","fteachname","Footer","colSpan","Component","connect","allworkDoneReportSummary","paramsval","techercode","response","_ref","asyncToGenerator","mark","dispatch","getState","univadmin","get","univ","funivcode","sent","payload","error_code","msg","status","_x","_x2","apply","arguments","module","exports","__webpack_require__","React","reactDom","_extends","assign","t","prototype","hasOwnProperty","call","_inheritsLoose","create","getOwnPropertyNames","r","getOwnPropertyDescriptor","configurable","undefined","_defaults2","constructor","_assertThisInitialized","ReferenceError","invariant_1","o","s","l","Error","u","c","replace","framesToPop","setInputSelection","selectionStart","selectionEnd","createTextRange","collapse","moveStart","moveEnd","select","defaultFormatChars","9","*","defaultMaskChar","parseMask","maskChar","prefix","lastEditablePosition","permanents","split","forEach","push","isPermanentCharacter","indexOf","isAllowedCharacter","RegExp","test","isEmpty","every","getFilledLength","slice","isFilled","formatValue","insertString","h","getRightEditablePosition","getStringValue","processChange","f","Math","min","start","end","getInsertStringLength","getLeftEditablePosition","join","max","splice","clearRange","enteredString","selection","isFunction","getCancelAnimationFrame","cancelAnimationFrame","webkitCancelRequestAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","defer","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","setTimeout","cancelDefer","clearTimeout","InputElement","focused","mounted","previousSelection","selectionDeferId","saveSelectionLoopDeferId","saveSelectionLoop","getSelection","runSaveSelectionLoop","stopSaveSelectionLoop","getInputDOMNode","findDOMNode","Element","nodeName","querySelector","getInputValue","setInputValue","setCursorToEnd","maskOptions","setCursorPosition","setSelection","isFocused","deferred","abs","document","createRange","parentElement","getInputSelection","getCursorPosition","getBeforeMaskedValueChangeConfig","alwaysShowMask","isInputAutofilled","matches","beforePasteState","beforeMaskedValueChange","isWindowsPhoneBrowser","onFocus","onBlur","onMouseDown","addEventListener","mouseDownX","clientX","mouseDownY","clientY","mouseDownTime","Date","getTime","removeEventListener","onPaste","defaultPrevented","handleRef","children","inputRef","defaultValue","componentDidMount","navigator","userAgent","componentDidUpdate","p","g","forceUpdate","v","componentWillUnmount","render","keys","_objectWithoutPropertiesLoose","filter","ref","disabled","readOnly","cloneElement"],"mappings":"+UAkBMA,6MACJC,MAAQ,CACNC,WAAW,EACXC,UAAW,GACXC,WAAY,kBACZC,WAAW,EACXC,OAAQ,MACRC,UAAW,OACXC,QAAS,OACTC,UAAWC,MACRC,SAAS,EAAG,QACZC,OAAO,cACVC,QAASH,MAASE,OAAO,iBAG3BE,aAAe,SAACC,EAAGC,GACjB,OAAQA,EAAKC,MACX,IAAK,OACHC,EAAKC,SAALC,OAAAC,EAAA,EAAAD,CAAA,GAAiBJ,EAAKM,KAAON,EAAKO,QACpC,QACEL,EAAKC,SAALC,OAAAC,EAAA,EAAAD,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A,MAAA9P,EAAAN,QAAAwJ,EAAAxJ,MAAAsD,KAAAtD,QAAAwI,EAAAJ,EAAAgK,aAAA5J,EAAAgB,IACGhK,EA5RH,CA6RC4I,EAAA3B,WAEDwB,EAAAC,QAAA4F","file":"static/js/126.0e07c730.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n Card,\n Button,\n Form,\n Dropdown,\n Divider,\n Radio,\n Table\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport InputMask from \"react-input-mask\";\nimport { wHeight } from \"../parms\";\nimport moment from \"moment\";\nimport { getWorkDoneSummry } from \"../../actions/after-exam/workdoneSummry\";\nclass WorkDoneReport extends Component {\n state = {\n showtable: false,\n frmDeggrp: \"\",\n reportType: \"datewWiseValDet\",\n frmSubmit: false,\n rftype: \"PDF\",\n tcodefrom: \"0000\",\n tcodeto: \"zzzz\",\n vdatefrom: moment()\n .subtract(7, \"days\")\n .format(\"DD/MM/YYYY\"),\n vdateto: moment().format(\"DD/MM/YYYY\")\n };\n\n handleChange = (e, data) => {\n switch (data.type) {\n case \"text\":\n this.setState({ [data.name]: data.value });\n default:\n this.setState({ [data.name]: data.value });\n }\n this.setState({ frmSubmit: false });\n };\n\n handleSubmit = async () => {\n const { fdeggrp } = this.props.user;\n const { reportType } = this.state;\n await this.props.getWorkDoneSummry(\n this.state,\n this.props.user.fuserid,\n this.props.user.fcurtype\n );\n console.log(\"this.props.data.\", this.props.data);\n\n if (this.props.data.valdet.length > 0) {\n this.setState({ showtable: true });\n }\n\n if (fdeggrp === \"\") {\n const error = { header: \"Error\", content: \"Select Degree Group\" };\n this.props.showError(error);\n return;\n }\n // this.props.getReport(reportType, \"tables\", fdeggrp);\n this.setState({ frmSubmit: true });\n };\n\n handleReport = () => {\n const { fdeggrp, fcuruniv } = this.props.user;\n const {\n reportType,\n rftype,\n tcodefrom,\n tcodeto,\n vdatefrom,\n vdateto\n } = this.state;\n if (fdeggrp === \"\") {\n const error = { header: \"Error\", content: \"Select Degree Group\" };\n this.props.showError(error);\n return;\n }\n // var C = \" http://192.168.0.32/univadmin\n // / app.php ? a = teachWorkDone\n // & univcode=041 &\n // deggrp=UG &\n // tcodefrom=0000\n // & tcodeto=zzzz\n // & vdatefrom=13 / 11 / 2019 &\n // vdateto=20 / 11 / 2019 &\n // format=PDF & user=\"\"\n console.log(\n ReportAPI +\n \"teachWorkDone\" +\n \"&univcode=\" +\n fcuruniv +\n \"°grp=\" +\n fdeggrp +\n \"&tcodefrom=\" +\n tcodefrom +\n \"&tcodeto=\" +\n tcodeto +\n \"&vdatefrom=\" +\n vdatefrom +\n \"&vdateto=\" +\n vdateto +\n \"&format=PDF\",\n this.props.user.fuserid\n );\n\n if (this.props.user.fcurtype == \"600\") {\n window.open(\n ReportAPI +\n \"teachWorkDone\" +\n \"&univcode=\" +\n fcuruniv +\n \"°grp=\" +\n fdeggrp +\n \"&tcodefrom=\" +\n this.props.user.fuserid +\n \"&tcodeto=\" +\n this.props.user.fuserid +\n \"&vdatefrom=\" +\n vdatefrom +\n \"&vdateto=\" +\n vdateto +\n \"&format=PDF\" +\n \"&fcollcode=\" +\n this.props.user.fcollcode,\n \"_blank\"\n );\n } else if (parseInt(this.props.user.fcurtype) >= 500) {\n window.open(\n ReportAPI +\n \"teachWorkDone\" +\n \"&univcode=\" +\n fcuruniv +\n \"°grp=\" +\n fdeggrp +\n \"&tcodefrom=0000\" +\n \"&tcodeto=ZZZZ\" +\n \"&vdatefrom=\" +\n vdatefrom +\n \"&vdateto=\" +\n vdateto +\n \"&format=PDF\" +\n \"&fcollcode=\" +\n this.props.user.fcollcode,\n \"_blank\"\n );\n } else {\n window.open(\n ReportAPI +\n \"teachWorkDone\" +\n \"&univcode=\" +\n fcuruniv +\n \"°grp=\" +\n fdeggrp +\n \"&tcodefrom=0000\" +\n \"&tcodeto=ZZZZ\" +\n \"&vdatefrom=\" +\n vdatefrom +\n \"&vdateto=\" +\n vdateto +\n \"&format=PDF\",\n \"_blank\"\n );\n }\n };\n handleChangedate = e => {\n this.setState({ [e.target.name]: e.target.value });\n };\n\n handleCancel = () => {\n this.setState({\n reportType: \"\",\n reportFormat: \"\",\n frmDeggrp: \"\"\n });\n };\n\n renderHeader = () => {\n return (\n <Card.Header style={{ display: \"flex\" }}>\n <h3>Work Done Summary</h3>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"black\"\n icon=\"ban\"\n onClick={this.handleCancel}\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 };\n\n render() {\n const {\n frmSubmit,\n reportType,\n rftype,\n tcodefrom,\n tcodeto,\n vdatefrom,\n vdateto\n } = this.state;\n var ttl = 0;\n\n const reporttypeOptions = [\n { value: \"datewWiseValDet\", text: \"Date Wise Valuation Details\" }\n ];\n const formatChars = {\n n: \"[0-1]\",\n m: \"[0-9]\",\n e: \"[0-3]\",\n d: \"[0-9]\",\n z: \"[1-2]\",\n y: \"[0-9]\"\n };\n const wheight = wHeight();\n console.log(reportType, frmSubmit);\n return (\n <div className=\"animated fadeIn\">\n <Card fluid>\n <Card.Content>\n {this.renderHeader()}\n <Divider />\n <Card.Description\n style={{ overflowY: \"auto\", height: `${wheight}px` }}\n >\n <div className=\"col-md-6 col-lg-6 col-xl-6\">\n <Form>\n <Form.Group>\n <Form.Field width={8}>\n <label> Date Range </label>\n <InputMask\n formatChars={formatChars}\n type=\"text\"\n value={vdatefrom}\n mask=\"ed/nm/zyyy\"\n placeholder=\"Date From\"\n name=\"vdatefrom\"\n onChange={this.handleChangedate}\n />\n </Form.Field>\n <Form.Field width={8}>\n <InputMask\n formatChars={formatChars}\n type=\"text\"\n value={vdateto}\n mask=\"ed/nm/zyyy\"\n placeholder=\"To\"\n name=\"vdateto\"\n onChange={this.handleChangedate}\n style={{ marginTop: \"1.6em\" }}\n />\n </Form.Field>\n </Form.Group>\n\n <Button color=\"blue\" onClick={this.handleSubmit}>\n Submit\n </Button>\n <br />\n </Form>\n </div>\n {this.state.showtable && (\n <Table\n celled\n padded\n selectable\n size=\"small\"\n color=\"olive\"\n className=\"tbl sticky\"\n >\n <Table.Header style={{ backgroundColor: \"bule !important\" }}>\n <Table.Row>\n <Table.HeaderCell\n width={1}\n singleLine\n textAlign=\"center\"\n rowSpan=\"1\"\n >\n Sl. No.\n </Table.HeaderCell>\n <Table.HeaderCell\n width={1}\n textAlign=\"center\"\n rowSpan=\"1\"\n >\n QP Code\n </Table.HeaderCell>\n <Table.HeaderCell\n width={6}\n singleLine\n textAlign=\"center\"\n rowSpan=\"1\"\n >\n Subject Name\n </Table.HeaderCell>\n <Table.HeaderCell\n width={1}\n textAlign=\"center\"\n rowSpan=\"1\"\n >\n Teacher Code\n </Table.HeaderCell>\n <Table.HeaderCell\n width={6}\n textAlign=\"center\"\n rowSpan=\"1\"\n >\n Teacher name\n </Table.HeaderCell>\n <Table.HeaderCell\n width={1}\n textAlign=\"center\"\n rowSpan=\"1\"\n >\n Total Scripts\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {this.props.data.valdet.map((el, i) => {\n ttl += +el.cnt;\n return (\n <Table.Row\n key={i}\n style={{\n overflow: \"hidden\",\n textAlign: \"center\"\n }}\n >\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n <Table.Cell textAlign=\"center\">\n {el.fqpcode}\n </Table.Cell>\n <Table.Cell style={{ textAlign: \"left\" }}>\n {el.fsubname}\n </Table.Cell>\n <Table.Cell>{el.fteachcode}</Table.Cell>\n <Table.Cell style={{ textAlign: \"left\" }}>\n {el.fteachname}\n </Table.Cell>\n <Table.Cell>{el.cnt}</Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n <Table.Footer>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell colSpan=\"5\">Total</Table.HeaderCell>\n <Table.HeaderCell>{ttl}</Table.HeaderCell>\n </Table.Row>\n </Table.Footer>\n </Table>\n )}\n </Card.Description>\n </Card.Content>\n </Card>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n user: state.user,\n data: state.allworkDoneReportSummary\n };\n};\nexport default connect(\n mapStateToProps,\n {\n showError,\n getWorkDoneSummry\n }\n)(WorkDoneReport);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const getWorkDoneSummry = (paramsval, techercode, fcurtype) => {\n var response = {};\n return async function(dispatch, getState) {\n const state = getState();\n console.log(\"summmm\", paramsval, techercode);\n dispatch({\n type: \"SET_LOADER\"\n });\n if (fcurtype == \"600\") {\n response = await univadmin.get(\n \"/app.php?a=teachworksumaryapi&univcode=\" +\n state.univ.funivcode +\n \"°grp=UG\" +\n \"&tcodefrom=\" +\n techercode +\n \"&tcodeto=\" +\n techercode +\n \"&vdatefrom=\" +\n paramsval.vdatefrom +\n \"&vdateto=\" +\n paramsval.vdateto +\n \"&format=PDF\" +\n \"&user=\"\n );\n } else if (fcurtype != \"600\") {\n response = await univadmin.get(\n \"/app.php?a=teachworksumaryapi&univcode=\" +\n state.univ.funivcode +\n \"°grp=UG\" +\n \"&tcodefrom=\" +\n paramsval.tcodefrom +\n \"&tcodeto=\" +\n paramsval.tcodeto +\n \"&vdatefrom=\" +\n paramsval.vdatefrom +\n \"&vdateto=\" +\n paramsval.vdateto +\n \"&format=PDF\" +\n \"&user=\"\n );\n }\n dispatch({\n type: \"UNSET_LOADER\"\n });\n console.log(\"dataa\", response.data.data);\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 === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"WORK_DONE_REPORT_SUMMARY\",\n payload: response.data\n });\n }\n };\n};\n","if (process.env.NODE_ENV === 'production') {\n module.exports = require('./lib/react-input-mask.production.min.js');\n} else {\n module.exports = require('./lib/react-input-mask.development.js');\n}","\"use strict\";\n\nfunction _interopDefault(e) {\n return e && \"object\" == typeof e && \"default\" in e ? e[\"default\"] : e;\n}\n\nvar React = _interopDefault(require(\"react\")),\n reactDom = require(\"react-dom\");\n\nfunction _defaults2(e, t) {\n for (var n = Object.getOwnPropertyNames(t), a = 0; a < n.length; a++) {\n var i = n[a],\n r = Object.getOwnPropertyDescriptor(t, i);\n r && r.configurable && e[i] === undefined && Object.defineProperty(e, i, r);\n }\n\n return e;\n}\n\nfunction _extends() {\n return (_extends = Object.assign || function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var n = arguments[t];\n\n for (var a in n) {\n Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);\n }\n }\n\n return e;\n }).apply(this, arguments);\n}\n\nfunction _inheritsLoose(e, t) {\n e.prototype = Object.create(t.prototype), _defaults2(e.prototype.constructor = e, t);\n}\n\nfunction _objectWithoutPropertiesLoose(e, t) {\n if (null == e) return {};\n var n,\n a,\n i = {},\n r = Object.keys(e);\n\n for (a = 0; a < r.length; a++) {\n n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);\n }\n\n return i;\n}\n\nfunction _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\n\nvar invariant = function invariant(e, t, n, a, i, r, o, s) {\n if (!e) {\n var l;\n if (t === undefined) l = new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else {\n var u = [n, a, i, r, o, s],\n c = 0;\n (l = new Error(t.replace(/%s/g, function () {\n return u[c++];\n }))).name = \"Invariant Violation\";\n }\n throw l.framesToPop = 1, l;\n }\n},\n invariant_1 = invariant;\n\nfunction setInputSelection(e, t, n) {\n if (\"selectionStart\" in e && \"selectionEnd\" in e) e.selectionStart = t, e.selectionEnd = n;else {\n var a = e.createTextRange();\n a.collapse(!0), a.moveStart(\"character\", t), a.moveEnd(\"character\", n - t), a.select();\n }\n}\n\nfunction getInputSelection(e) {\n var t = 0,\n n = 0;\n if (\"selectionStart\" in e && \"selectionEnd\" in e) t = e.selectionStart, n = e.selectionEnd;else {\n var a = document.selection.createRange();\n a.parentElement() === e && (t = -a.moveStart(\"character\", -e.value.length), n = -a.moveEnd(\"character\", -e.value.length));\n }\n return {\n start: t,\n end: n,\n length: n - t\n };\n}\n\nvar defaultFormatChars = {\n 9: \"[0-9]\",\n a: \"[A-Za-z]\",\n \"*\": \"[A-Za-z0-9]\"\n},\n defaultMaskChar = \"_\";\n\nfunction parseMask(e, t, n) {\n var a = \"\",\n i = \"\",\n r = null,\n o = [];\n if (t === undefined && (t = defaultMaskChar), null == n && (n = defaultFormatChars), !e || \"string\" != typeof e) return {\n maskChar: t,\n formatChars: n,\n mask: null,\n prefix: null,\n lastEditablePosition: null,\n permanents: []\n };\n var s = !1;\n return e.split(\"\").forEach(function (e) {\n s = !s && \"\\\\\" === e || (s || !n[e] ? (o.push(a.length), a.length === o.length - 1 && (i += e)) : r = a.length + 1, a += e, !1);\n }), {\n maskChar: t,\n formatChars: n,\n prefix: i,\n mask: a,\n lastEditablePosition: r,\n permanents: o\n };\n}\n\nfunction isPermanentCharacter(e, t) {\n return -1 !== e.permanents.indexOf(t);\n}\n\nfunction isAllowedCharacter(e, t, n) {\n var a = e.mask,\n i = e.formatChars;\n if (!n) return !1;\n if (isPermanentCharacter(e, t)) return a[t] === n;\n var r = i[a[t]];\n return new RegExp(r).test(n);\n}\n\nfunction isEmpty(n, e) {\n return e.split(\"\").every(function (e, t) {\n return isPermanentCharacter(n, t) || !isAllowedCharacter(n, t, e);\n });\n}\n\nfunction getFilledLength(e, t) {\n var n = e.maskChar,\n a = e.prefix;\n\n if (!n) {\n for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);) {\n t = t.slice(0, t.length - 1);\n }\n\n return t.length;\n }\n\n for (var i = a.length, r = t.length; r >= a.length; r--) {\n var o = t[r];\n\n if (!isPermanentCharacter(e, r) && isAllowedCharacter(e, r, o)) {\n i = r + 1;\n break;\n }\n }\n\n return i;\n}\n\nfunction isFilled(e, t) {\n return getFilledLength(e, t) === e.mask.length;\n}\n\nfunction formatValue(e, t) {\n var n = e.maskChar,\n a = e.mask,\n i = e.prefix;\n\n if (!n) {\n for ((t = insertString(e, \"\", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);) {\n t += a[t.length];\n }\n\n return t;\n }\n\n if (t) return insertString(e, formatValue(e, \"\"), t, 0);\n\n for (var r = 0; r < a.length; r++) {\n isPermanentCharacter(e, r) ? t += a[r] : t += n;\n }\n\n return t;\n}\n\nfunction clearRange(n, e, a, t) {\n var i = a + t,\n r = n.maskChar,\n o = n.mask,\n s = n.prefix,\n l = e.split(\"\");\n if (r) return l.map(function (e, t) {\n return t < a || i <= t ? e : isPermanentCharacter(n, t) ? o[t] : r;\n }).join(\"\");\n\n for (var u = i; u < l.length; u++) {\n isPermanentCharacter(n, u) && (l[u] = \"\");\n }\n\n return a = Math.max(s.length, a), l.splice(a, i - a), e = l.join(\"\"), formatValue(n, e);\n}\n\nfunction insertString(r, o, e, s) {\n var l = r.mask,\n u = r.maskChar,\n c = r.prefix,\n t = e.split(\"\"),\n h = isFilled(r, o);\n return !u && s > o.length && (o += l.slice(o.length, s)), t.every(function (e) {\n for (; i = e, isPermanentCharacter(r, a = s) && i !== l[a];) {\n if (s >= o.length && (o += l[s]), t = e, n = s, u && isPermanentCharacter(r, n) && t === u) return !0;\n if (++s >= l.length) return !1;\n }\n\n var t, n, a, i;\n return !isAllowedCharacter(r, s, e) && e !== u || (s < o.length ? o = u || h || s < c.length ? o.slice(0, s) + e + o.slice(s + 1) : (o = o.slice(0, s) + e + o.slice(s), formatValue(r, o)) : u || (o += e), ++s < l.length);\n }), o;\n}\n\nfunction getInsertStringLength(a, e, t, i) {\n var r = a.mask,\n o = a.maskChar,\n n = t.split(\"\"),\n s = i;\n return n.every(function (e) {\n for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];) {\n if (++i >= r.length) return !1;\n }\n\n var t, n;\n return (isAllowedCharacter(a, i, e) || e === o) && i++, i < r.length;\n }), i - s;\n}\n\nfunction getLeftEditablePosition(e, t) {\n for (var n = t; 0 <= n; --n) {\n if (!isPermanentCharacter(e, n)) return n;\n }\n\n return null;\n}\n\nfunction getRightEditablePosition(e, t) {\n for (var n = e.mask, a = t; a < n.length; ++a) {\n if (!isPermanentCharacter(e, a)) return a;\n }\n\n return null;\n}\n\nfunction getStringValue(e) {\n return e || 0 === e ? e + \"\" : \"\";\n}\n\nfunction processChange(e, t, n, a, i) {\n var r = e.mask,\n o = e.prefix,\n s = e.lastEditablePosition,\n l = t,\n u = \"\",\n c = 0,\n h = 0,\n f = Math.min(i.start, n.start);\n\n if (n.end > i.start ? h = (c = getInsertStringLength(e, a, u = l.slice(i.start, n.end), f)) ? i.length : 0 : l.length < a.length && (h = a.length - l.length), l = a, h) {\n if (1 === h && !i.length) f = i.start === n.start ? getRightEditablePosition(e, n.start) : getLeftEditablePosition(e, n.start);\n l = clearRange(e, l, f, h);\n }\n\n return l = insertString(e, l, u, f), (f += c) >= r.length ? f = r.length : f < o.length && !c ? f = o.length : f >= o.length && f < s && c && (f = getRightEditablePosition(e, f)), u || (u = null), {\n value: l = formatValue(e, l),\n enteredString: u,\n selection: {\n start: f,\n end: f\n }\n };\n}\n\nfunction isWindowsPhoneBrowser() {\n var e = new RegExp(\"windows\", \"i\"),\n t = new RegExp(\"phone\", \"i\"),\n n = navigator.userAgent;\n return e.test(n) && t.test(n);\n}\n\nfunction isFunction(e) {\n return \"function\" == typeof e;\n}\n\nfunction getRequestAnimationFrame() {\n return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;\n}\n\nfunction getCancelAnimationFrame() {\n return window.cancelAnimationFrame || window.webkitCancelRequestAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame;\n}\n\nfunction defer(e) {\n return (!!getCancelAnimationFrame() ? getRequestAnimationFrame() : function () {\n return setTimeout(e, 1e3 / 60);\n })(e);\n}\n\nfunction cancelDefer(e) {\n (getCancelAnimationFrame() || clearTimeout)(e);\n}\n\nvar InputElement = function (c) {\n function e(e) {\n var f = c.call(this, e) || this;\n f.focused = !1, f.mounted = !1, f.previousSelection = null, f.selectionDeferId = null, f.saveSelectionLoopDeferId = null, f.saveSelectionLoop = function () {\n f.previousSelection = f.getSelection(), f.saveSelectionLoopDeferId = defer(f.saveSelectionLoop);\n }, f.runSaveSelectionLoop = function () {\n null === f.saveSelectionLoopDeferId && f.saveSelectionLoop();\n }, f.stopSaveSelectionLoop = function () {\n null !== f.saveSelectionLoopDeferId && (cancelDefer(f.saveSelectionLoopDeferId), f.saveSelectionLoopDeferId = null, f.previousSelection = null);\n }, f.getInputDOMNode = function () {\n if (!f.mounted) return null;\n var e = reactDom.findDOMNode(_assertThisInitialized(_assertThisInitialized(f))),\n t = \"undefined\" != typeof window && e instanceof window.Element;\n if (e && !t) return null;\n if (\"INPUT\" !== e.nodeName && (e = e.querySelector(\"input\")), !e) throw new Error(\"react-input-mask: inputComponent doesn't contain input node\");\n return e;\n }, f.getInputValue = function () {\n var e = f.getInputDOMNode();\n return e ? e.value : null;\n }, f.setInputValue = function (e) {\n var t = f.getInputDOMNode();\n t && (f.value = e, t.value = e);\n }, f.setCursorToEnd = function () {\n var e = getFilledLength(f.maskOptions, f.value),\n t = getRightEditablePosition(f.maskOptions, e);\n null !== t && f.setCursorPosition(t);\n }, f.setSelection = function (e, t, n) {\n void 0 === n && (n = {});\n var a = f.getInputDOMNode(),\n i = f.isFocused();\n a && i && (n.deferred || setInputSelection(a, e, t), null !== f.selectionDeferId && cancelDefer(f.selectionDeferId), f.selectionDeferId = defer(function () {\n f.selectionDeferId = null, setInputSelection(a, e, t);\n }), f.previousSelection = {\n start: e,\n end: t,\n length: Math.abs(t - e)\n });\n }, f.getSelection = function () {\n return getInputSelection(f.getInputDOMNode());\n }, f.getCursorPosition = function () {\n return f.getSelection().start;\n }, f.setCursorPosition = function (e) {\n f.setSelection(e, e);\n }, f.isFocused = function () {\n return f.focused;\n }, f.getBeforeMaskedValueChangeConfig = function () {\n var e = f.maskOptions,\n t = e.mask,\n n = e.maskChar,\n a = e.permanents,\n i = e.formatChars;\n return {\n mask: t,\n maskChar: n,\n permanents: a,\n alwaysShowMask: !!f.props.alwaysShowMask,\n formatChars: i\n };\n }, f.isInputAutofilled = function (e, t, n, a) {\n var i = f.getInputDOMNode();\n\n try {\n if (i.matches(\":-webkit-autofill\")) return !0;\n } catch (r) {}\n\n return !f.focused || a.end < n.length && t.end === e.length;\n }, f.onChange = function (e) {\n var t = _assertThisInitialized(_assertThisInitialized(f)).beforePasteState,\n n = _assertThisInitialized(_assertThisInitialized(f)).previousSelection,\n a = f.props.beforeMaskedValueChange,\n i = f.getInputValue(),\n r = f.value,\n o = f.getSelection();\n\n f.isInputAutofilled(i, o, r, n) && (r = formatValue(f.maskOptions, \"\"), n = {\n start: 0,\n end: 0,\n length: 0\n }), t && (n = t.selection, r = t.value, o = {\n start: n.start + i.length,\n end: n.start + i.length,\n length: 0\n }, i = r.slice(0, n.start) + i + r.slice(n.end), f.beforePasteState = null);\n var s = processChange(f.maskOptions, i, o, r, n),\n l = s.enteredString,\n u = s.selection,\n c = s.value;\n\n if (isFunction(a)) {\n var h = a({\n value: c,\n selection: u\n }, {\n value: r,\n selection: n\n }, l, f.getBeforeMaskedValueChangeConfig());\n c = h.value, u = h.selection;\n }\n\n f.setInputValue(c), isFunction(f.props.onChange) && f.props.onChange(e), f.isWindowsPhoneBrowser ? f.setSelection(u.start, u.end, {\n deferred: !0\n }) : f.setSelection(u.start, u.end);\n }, f.onFocus = function (e) {\n var t = f.props.beforeMaskedValueChange,\n n = f.maskOptions,\n a = n.mask,\n i = n.prefix;\n\n if (f.focused = !0, f.mounted = !0, a) {\n if (f.value) getFilledLength(f.maskOptions, f.value) < f.maskOptions.mask.length && f.setCursorToEnd();else {\n var r = formatValue(f.maskOptions, i),\n o = formatValue(f.maskOptions, r),\n s = getFilledLength(f.maskOptions, o),\n l = getRightEditablePosition(f.maskOptions, s),\n u = {\n start: l,\n end: l\n };\n\n if (isFunction(t)) {\n var c = t({\n value: o,\n selection: u\n }, {\n value: f.value,\n selection: null\n }, null, f.getBeforeMaskedValueChangeConfig());\n o = c.value, u = c.selection;\n }\n\n var h = o !== f.getInputValue();\n h && f.setInputValue(o), h && isFunction(f.props.onChange) && f.props.onChange(e), f.setSelection(u.start, u.end);\n }\n f.runSaveSelectionLoop();\n }\n\n isFunction(f.props.onFocus) && f.props.onFocus(e);\n }, f.onBlur = function (e) {\n var t = f.props.beforeMaskedValueChange,\n n = f.maskOptions.mask;\n\n if (f.stopSaveSelectionLoop(), f.focused = !1, n && !f.props.alwaysShowMask && isEmpty(f.maskOptions, f.value)) {\n var a = \"\";\n if (isFunction(t)) a = t({\n value: a,\n selection: null\n }, {\n value: f.value,\n selection: f.previousSelection\n }, null, f.getBeforeMaskedValueChangeConfig()).value;\n var i = a !== f.getInputValue();\n i && f.setInputValue(a), i && isFunction(f.props.onChange) && f.props.onChange(e);\n }\n\n isFunction(f.props.onBlur) && f.props.onBlur(e);\n }, f.onMouseDown = function (e) {\n if (!f.focused && document.addEventListener) {\n f.mouseDownX = e.clientX, f.mouseDownY = e.clientY, f.mouseDownTime = new Date().getTime();\n\n var r = function r(e) {\n if (document.removeEventListener(\"mouseup\", r), f.focused) {\n var t = Math.abs(e.clientX - f.mouseDownX),\n n = Math.abs(e.clientY - f.mouseDownY),\n a = Math.max(t, n),\n i = new Date().getTime() - f.mouseDownTime;\n (a <= 10 && i <= 200 || a <= 5 && i <= 300) && f.setCursorToEnd();\n }\n };\n\n document.addEventListener(\"mouseup\", r);\n }\n\n isFunction(f.props.onMouseDown) && f.props.onMouseDown(e);\n }, f.onPaste = function (e) {\n isFunction(f.props.onPaste) && f.props.onPaste(e), e.defaultPrevented || (f.beforePasteState = {\n value: f.getInputValue(),\n selection: f.getSelection()\n }, f.setInputValue(\"\"));\n }, f.handleRef = function (e) {\n null == f.props.children && isFunction(f.props.inputRef) && f.props.inputRef(e);\n };\n var t = e.mask,\n n = e.maskChar,\n a = e.formatChars,\n i = e.alwaysShowMask,\n r = e.beforeMaskedValueChange,\n o = e.defaultValue,\n s = e.value;\n f.maskOptions = parseMask(t, n, a), null == o && (o = \"\"), null == s && (s = o);\n var l = getStringValue(s);\n\n if (f.maskOptions.mask && (i || l) && (l = formatValue(f.maskOptions, l), isFunction(r))) {\n var u = e.value;\n null == e.value && (u = o), l = r({\n value: l,\n selection: null\n }, {\n value: u = getStringValue(u),\n selection: null\n }, null, f.getBeforeMaskedValueChangeConfig()).value;\n }\n\n return f.value = l, f;\n }\n\n _inheritsLoose(e, c);\n\n var t = e.prototype;\n return t.componentDidMount = function () {\n this.mounted = !0, this.getInputDOMNode() && (this.isWindowsPhoneBrowser = isWindowsPhoneBrowser(), this.maskOptions.mask && this.getInputValue() !== this.value && this.setInputValue(this.value));\n }, t.componentDidUpdate = function () {\n var e = this.previousSelection,\n t = this.props,\n n = t.beforeMaskedValueChange,\n a = t.alwaysShowMask,\n i = t.mask,\n r = t.maskChar,\n o = t.formatChars,\n s = this.maskOptions,\n l = a || this.isFocused(),\n u = null != this.props.value,\n c = u ? getStringValue(this.props.value) : this.value,\n h = e ? e.start : null;\n\n if (this.maskOptions = parseMask(i, r, o), this.maskOptions.mask) {\n !s.mask && this.isFocused() && this.runSaveSelectionLoop();\n var f = this.maskOptions.mask && this.maskOptions.mask !== s.mask;\n\n if (s.mask || u || (c = this.getInputValue()), (f || this.maskOptions.mask && (c || l)) && (c = formatValue(this.maskOptions, c)), f) {\n var p = getFilledLength(this.maskOptions, c);\n (null === h || p < h) && (h = isFilled(this.maskOptions, c) ? p : getRightEditablePosition(this.maskOptions, p));\n }\n\n !this.maskOptions.mask || !isEmpty(this.maskOptions, c) || l || u && this.props.value || (c = \"\");\n var d = {\n start: h,\n end: h\n };\n\n if (isFunction(n)) {\n var m = n({\n value: c,\n selection: d\n }, {\n value: this.value,\n selection: this.previousSelection\n }, null, this.getBeforeMaskedValueChangeConfig());\n c = m.value, d = m.selection;\n }\n\n this.value = c;\n var g = this.getInputValue() !== this.value;\n g ? (this.setInputValue(this.value), this.forceUpdate()) : f && this.forceUpdate();\n var v = !1;\n null != d.start && null != d.end && (v = !e || e.start !== d.start || e.end !== d.end), (v || g) && this.setSelection(d.start, d.end);\n } else s.mask && (this.stopSaveSelectionLoop(), this.forceUpdate());\n }, t.componentWillUnmount = function () {\n this.mounted = !1, null !== this.selectionDeferId && cancelDefer(this.selectionDeferId), this.stopSaveSelectionLoop();\n }, t.render = function () {\n var t,\n e = this.props,\n n = (e.mask, e.alwaysShowMask, e.maskChar, e.formatChars, e.inputRef, e.beforeMaskedValueChange, e.children),\n a = _objectWithoutPropertiesLoose(e, [\"mask\", \"alwaysShowMask\", \"maskChar\", \"formatChars\", \"inputRef\", \"beforeMaskedValueChange\", \"children\"]);\n\n if (n) {\n isFunction(n) || invariant_1(!1);\n\n var i = [\"onChange\", \"onPaste\", \"onMouseDown\", \"onFocus\", \"onBlur\", \"value\", \"disabled\", \"readOnly\"],\n r = _extends({}, a);\n\n i.forEach(function (e) {\n return delete r[e];\n }), t = n(r), i.filter(function (e) {\n return null != t.props[e] && t.props[e] !== a[e];\n }).length && invariant_1(!1);\n } else t = React.createElement(\"input\", _extends({\n ref: this.handleRef\n }, a));\n\n var o = {\n onFocus: this.onFocus,\n onBlur: this.onBlur\n };\n return this.maskOptions.mask && (a.disabled || a.readOnly || (o.onChange = this.onChange, o.onPaste = this.onPaste, o.onMouseDown = this.onMouseDown), null != a.value && (o.value = this.value)), t = React.cloneElement(t, o);\n }, e;\n}(React.Component);\n\nmodule.exports = InputElement;"],"sourceRoot":""}
|