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.137.184.92


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/290.0ce6abd5.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[290],{1392:function(t,e,r){"use strict";r.r(e);var n=r(3),o=r(1),a=r(68),i=r(0),c=r(100),l=r(101),u=r(103),s=r(102),h=r(104),f=r(2),d=r.n(f),p=r(941),y=r(1377),v=r(1343),m=r(272),g=r(1335),w=r(305),b=r(1338),E=r(105),L=(r(274),r(267)),x=(r(275),r(273)),C=(r(287),r(271));function O(){O=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof m?e:m,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",p="executing",y="completed",v={};function m(){}function g(){}function w(){}var b={};u(b,i,function(){return this});var E=Object.getPrototypeOf,L=E&&E(E(B([])));L&&L!==r&&n.call(L,i)&&(b=L);var x=w.prototype=m.prototype=Object.create(b);function C(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function r(o,a,i,c){var l=h(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){u.value=t,i(u)},function(t){return r("throw",t,i,c)})}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=f;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?y:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function B(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},C(j.prototype),u(j.prototype,c,function(){return this}),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},C(x),u(x,l,"Generator"),u(x,i,function(){return this}),u(x,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function j(){j=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof m?e:m,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",p="executing",y="completed",v={};function m(){}function g(){}function w(){}var b={};u(b,i,function(){return this});var E=Object.getPrototypeOf,L=E&&E(E(B([])));L&&L!==r&&n.call(L,i)&&(b=L);var x=w.prototype=m.prototype=Object.create(b);function C(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function O(t,e){function r(o,a,i,c){var l=h(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,i,c)},function(t){r("throw",t,i,c)}):e.resolve(s).then(function(t){u.value=t,i(u)},function(t){return r("throw",t,i,c)})}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=f;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?y:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function B(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},C(O.prototype),u(O.prototype,c,function(){return this}),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},C(x),u(x,l,"Generator"),u(x,i,function(){return this}),u(x,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=B,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}var k=function(t){function e(){var t,r;Object(c.a)(this,e);for(var l=arguments.length,h=new Array(l),f=0;f<l;f++)h[f]=arguments[f];return(r=Object(u.a)(this,(t=Object(s.a)(e)).call.apply(t,[this].concat(h)))).state={showtable:!1,frmDeggrp:"",pd:[],reportType:"datewWiseValDet",frmSubmit:!1,rftype:"PDF",status:"ALL",barcode:"",detBC:[],displyBC:!1,open:!1,fdeleted:!1},r.handleChange=function(t,e){switch(e.type){case"text":r.setState(Object(i.a)({},e.name,e.value));default:r.setState(Object(i.a)({},e.name,e.value))}r.setState({frmSubmit:!1})},r.handleChangedate=function(t){r.setState(Object(i.a)({},t.target.name,t.target.value))},r.handleSave=Object(a.a)(j().mark(function t(){var e,n;return j().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.state.detBC){t.next=4;break}return e={header:"Error",content:"Scan Barcode"},r.props.showError(e),t.abrupt("return");case 4:return n=r.state.detBC.filter(function(t,e){if(!0!==t.fdeleted)return t}),t.next=7,r.props.updateCodeList(n);case 7:r.handleCancel();case 8:case"end":return t.stop()}},t)})),r.deleteRow=function(t,e,n){var a=Object(o.a)({},e,Object(i.a)({},t.target.name,t.target.checked)),c=r.state.detBC.map(function(t,e){return e===n?a:t});r.setState({detBC:c})},r.handleCancel=function(){r.setState({showtable:!1,frmDeggrp:"",pd:[],reportType:"datewWiseValDet",frmSubmit:!1,rftype:"PDF",status:"ALL",barcode:"",detBC:[],displyBC:!1,open:!1,fdeleted:!1})},r.handleClick=function(){if(r.state.barcode){var t=r.state.barcode.substring(0,5),e=r.state.barcode.substring(5,9),o=r.state.barcode.substring(9,11),a=(r.state.barcode.substring(14,17),[t,e,o].join("-")),i={fslno:o,fqpcode:t,fbundno:e,fregCode:a,fdeleted:!1},c=r.state.barcode.length-1,l=i,u=!1;if(r.state.detBC.map(function(t,e){t.fbundno===l.fbundno&&c!==e&&t.fslno===l.fslno&&(u=!0)}),u){return r.props.showError({header:"Error",content:"Duplicate entry is not allowed."}),void r.setState({barcode:""})}r.setState({displyBC:!0,detBC:[].concat(Object(n.a)(r.state.detBC),[i]),barcode:""})}else{r.props.showError({header:"Error",content:"Barcode length should be minimum 17"})}},r.renderHeader=function(){return d.a.createElement(y.a.Header,{style:{display:"flex"}},d.a.createElement("h3",null,"Scan RV/RT Code List"),d.a.createElement("div",{className:"ml-auto"},d.a.createElement(v.a,{basic:!0,color:"blue",onClick:r.handleSave,content:"Save",icon:"file"}),d.a.createElement(v.a,{basic:!0,color:"black",icon:"ban",onClick:r.handleCancel,content:"Cancel"}),d.a.createElement(p.a,{to:"/dashboard"},d.a.createElement(v.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r}return Object(h.a)(e,t),Object(l.a)(e,[{key:"render",value:function(){var t=this,e=this.state,r=e.barcode,n=e.displyBC,o=e.detBC,a=(e.dimmer,e.open,e.fdeleted);Number(this.props.user.fcurtype),Object(x.i)();return d.a.createElement("div",{className:"animated fadeIn"},d.a.createElement(y.a,{fluid:!0},d.a.createElement(y.a.Content,null,this.renderHeader(),d.a.createElement(m.a,null),d.a.createElement(y.a.Description,{style:{height:"72vh"}},d.a.createElement(g.a,null,d.a.createElement(w.a,{columns:2},d.a.createElement(w.a.Column,{width:5,style:{display:"flex"}},d.a.createElement(g.a.Input,{width:"16",label:"Barcode",placeholder:"Enter barcode here...",maxLength:"11",name:"barcode",value:r,onChange:this.handleChange})),d.a.createElement(w.a.Column,{width:6},d.a.createElement(v.a,{style:{marginTop:"25px"},content:"GO",size:"mini",color:"facebook",onClick:this.handleClick})))),n?d.a.createElement("div",{className:"ui form",style:{maxHeight:"60vh",overflowY:"scroll",marginTop:"1rem"}},d.a.createElement(b.a,{celled:!0,style:{width:"auto",tableLayout:"auto",marginLeft:"auto",marginRight:"auto"},className:"stick"},d.a.createElement(b.a.Header,null,d.a.createElement(b.a.Row,{textAlign:"center"},d.a.createElement(b.a.HeaderCell,{singleLine:!0},"Sl. No."),d.a.createElement(b.a.HeaderCell,null,"QP Code"),d.a.createElement(b.a.HeaderCell,null,"Packet No."),d.a.createElement(b.a.HeaderCell,null,"Bundle - Sl. No."),d.a.createElement(b.a.HeaderCell,null,"Delete"))),d.a.createElement(b.a.Body,null,o.map(function(e,r){return d.a.createElement(b.a.Row,{key:r,textAlign:"center"},d.a.createElement(b.a.Cell,null,r+1),d.a.createElement(b.a.Cell,null,e.fqpcode),d.a.createElement(b.a.Cell,null,e.fbundno),d.a.createElement(b.a.Cell,null,e.fslno),d.a.createElement(b.a.Cell,null,d.a.createElement("input",{className:"ui checkbox",type:"checkbox",name:"fdeleted",value:a,onChange:function(n){return t.deleteRow(n,e,r)},checked:"true"==e.fdeleted?"checked":null,style:{position:"inherit"}})))})))):null))))}}]),e}(f.Component);e.default=Object(E.b)(function(t){return{user:t.user,dailyRvPcReport:t.dailyRvPcReport,saveRvRtCheckList:t.saveRvRtCheckList}},{showError:L.A,saveRvRtCheckList:L.z,updateCodeList:function(t){return function(){var e=Object(a.a)(O().mark(function e(r,n){var o,a,i,c,l;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:"SET_LOADER"}),o=n(),e.next=4,C.a.post("app.php?a=updateScanCodeList&univcode="+o.univ.funivcode,{data:t});case 4:a=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof a.data?(i={header:"Error",content:"Something went wrong"},r(Object(L.A)(i))):-1===a.data.error_code?(c={header:"Error",content:a.data.data.msg},r(Object(L.A)(c))):(l={header:"Success",content:a.data.data.msg},r(Object(L.A)(l)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}})(k)}}]);
//# sourceMappingURL=290.0ce6abd5.chunk.js.map