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.181.194
(window.webpackJsonp=window.webpackJsonp||[]).push([[166,307],{1257:function(t,e,r){"use strict";r.r(e);var n=r(68),a=r(100),o=r(101),i=r(103),c=r(102),u=r(104),l=r(2),s=r.n(l),h=r(1377),f=r(1343),p=r(272),d=r(1335),v=r(273),m=r(941),y=r(370),g=r(105),b=r(267);function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),c=new T(n||[]);return a(i,"_invoke",{value:S(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",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var E={};l(E,i,function(){return this});var O=Object.getPrototypeOf,L=O&&O(O(k([])));L&&L!==r&&n.call(L,i)&&(E=L);var x=b.prototype=y.prototype=Object.create(E);function j(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(a,o,i,c){var u=h(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.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){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function S(e,r,n){var a=f;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=N(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=h(e,r,n);if("normal"===l.type){if(a=n.done?v:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=v,n.method="throw",n.arg=l.arg)}}}function N(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=h(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.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,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function k(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 a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=b,a(x,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,b):(t.__proto__=b,l(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},j(_.prototype),l(_.prototype,c,function(){return this}),e.AsyncIterator=_,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new _(s(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},j(x),l(x,u,"Generator"),l(x,i,function(){return this}),l(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=k,T.prototype={constructor:T,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(C),!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 a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):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),m},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),C(r),m}},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 a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var E=function(t){function e(){var t,r;Object(a.a)(this,e);for(var o=arguments.length,u=new Array(o),l=0;l<o;l++)u[l]=arguments[l];return(r=Object(i.a)(this,(t=Object(c.a)(e)).call.apply(t,[this].concat(u)))).state={code:"",boardName:"",chCode:"",chName:"",mobile:"",email:""},r.componentDidMount=Object(n.a)(w().mark(function t(){var e;return w().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.props.match.params.boardcode,t.next=3,r.props.getEditBoardList(e);case 3:return t.next=5,r.setState({code:e});case 5:return t.next=7,r.setState({boardName:r.props.board[0].fboardname});case 7:return t.next=9,r.setState({chCode:r.props.board[0].fchairman});case 9:return t.next=11,r.setState({chName:r.props.board[0].fboename});case 11:return t.next=13,r.setState({mobile:r.props.board[0].fboemobileno});case 13:return t.next=15,r.setState({email:r.props.board[0].fboeemail});case 15:case"end":return t.stop()}},t)})),r.updateHandler=Object(n.a)(w().mark(function t(){var e;return w().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.state,e.code,e.boardName,e.chCode,e.chName,e.mobile,e.email,t.next=3,r.props.updateEditList(r.state);case 3:case"end":return t.stop()}},t)})),r.renderHeader=function(){return s.a.createElement(h.a.Header,{style:{display:"flex"}},s.a.createElement("h4",null,"Update Board Master"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(m.a,{to:"/masters/boardMaster"},s.a.createElement(f.a,{basic:!0,size:"small",color:"blue",icon:"eye",content:"View"})),s.a.createElement(m.a,{to:"/dashboard"},s.a.createElement(f.a,{basic:!0,color:"red",content:"Exit",icon:"home"}))))},r}return Object(u.a)(e,t),Object(o.a)(e,[{key:"render",value:function(){var t=this,e=this.state,r=e.code,n=e.boardName,a=e.chCode,o=e.chName,i=e.mobile,c=e.email,u=Object(v.i)();return s.a.createElement("div",null,s.a.createElement(h.a,{fluid:!0},s.a.createElement(h.a.Content,null,this.renderHeader(),s.a.createElement(p.a,null),s.a.createElement(h.a.Description,{style:{height:"".concat(u,"px"),overflowY:"auto"}},s.a.createElement(d.a,null,s.a.createElement(d.a.Group,null,s.a.createElement(d.a.Field,{width:8},s.a.createElement(d.a.Input,{placeholder:"Code",value:r,name:"code",label:"Code",onChange:function(e,r){t.setState({code:r.value})}}))),s.a.createElement(d.a.Group,null,s.a.createElement(d.a.Field,{width:8},s.a.createElement(d.a.Input,{placeholder:"Description",value:n,name:"Description",label:"Description",onChange:function(e,r){t.setState({boardName:r.value})}}))),s.a.createElement(d.a.Group,null,s.a.createElement(d.a.Field,{width:8},s.a.createElement(d.a.Input,{placeholder:"Chairman Code",value:a,name:"Chairman_Code",label:"Chairman Code",onChange:function(e,r){t.setState({chCode:r.value})}}))),s.a.createElement(d.a.Group,null,s.a.createElement(d.a.Field,{width:8},s.a.createElement(d.a.Input,{placeholder:"Chairman Name",value:o,name:"Chairman_Name",label:"Chairman Name",onChange:function(e,r){t.setState({chName:r.value})}}))),s.a.createElement(d.a.Group,null,s.a.createElement(d.a.Field,{width:8},s.a.createElement(d.a.Input,{placeholder:"Mobile Number",value:i,name:"Mobile_Number",label:"Mobile Number",onChange:function(e,r){t.setState({mobile:r.value})}}))),s.a.createElement(d.a.Group,null,s.a.createElement(d.a.Field,{width:8},s.a.createElement(d.a.Input,{placeholder:"Email",value:c,name:"Email",label:"Email",onChange:function(e,r){t.setState({email:r.value})}}))),s.a.createElement(f.a,{basic:!0,color:"blue",content:"Submit",onClick:this.updateHandler}))))))}}]),e}(s.a.Component);e.default=Object(g.b)(function(t){return{board:t.getboardList}},{showError:b.A,getEditBoardList:y.e,updateEditList:y.g})(E)},272:function(t,e,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),c=r(2),u=r.n(c),l=r(349),s=r(613),h=r(611),f=r(269);function p(t){var e=t.children,r=t.className,n=t.clearing,o=t.content,c=t.fitted,d=t.hidden,v=t.horizontal,m=t.inverted,y=t.section,g=t.vertical,b=i()("ui",Object(l.a)(n,"clearing"),Object(l.a)(c,"fitted"),Object(l.a)(d,"hidden"),Object(l.a)(v,"horizontal"),Object(l.a)(m,"inverted"),Object(l.a)(y,"section"),Object(l.a)(g,"vertical"),"divider",r),w=Object(s.a)(p,t),E=Object(h.a)(p,t);return u.a.createElement(E,a()({},w,{className:b}),f.a.isNil(e)?o:e)}p.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],p.propTypes={},e.a=p},370:function(t,e,r){"use strict";r.d(e,"a",function(){return c}),r.d(e,"f",function(){return u}),r.d(e,"e",function(){return l}),r.d(e,"g",function(){return s}),r.d(e,"b",function(){return h}),r.d(e,"d",function(){return f}),r.d(e,"c",function(){return p});var n=r(68),a=r(271),o=r(267);function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new T(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",d="suspendedYield",v="executing",m="completed",y={};function g(){}function b(){}function w(){}var E={};s(E,c,function(){return this});var O=Object.getPrototypeOf,L=O&&O(O(k([])));L&&L!==r&&n.call(L,c)&&(E=L);var x=w.prototype=g.prototype=Object.create(E);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(a,o,i,c){var u=f(t[a],t,o);if("throw"!==u.type){var l=u.arg,s=l.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){l.value=t,i(l)},function(t){return r("throw",t,i,c)})}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,a){r(t,n,e,a)})}return o=o?o.then(a,a):a()}})}function S(e,r,n){var a=p;return function(o,i){if(a===v)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var u=N(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=v;var l=f(e,r,n);if("normal"===l.type){if(a=n.done?m:d,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function N(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=f(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.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,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function k(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,a(x,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=s(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},j(_.prototype),s(_.prototype,u,function(){return this}),e.AsyncIterator=_,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new _(h(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},j(x),s(x,l,"Generator"),s(x,c,function(){return this}),s(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=k,T.prototype={constructor:T,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(C),!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 a(n,a){return c.type="throw",c.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):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),y},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),C(r),y}},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 a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var c=function(){return function(){var t=Object(n.a)(i().mark(function t(e,r){var n,c,u,l;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r(),e({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"getBoardLists",univcode:n.univ.funivcode}});case 4:c=t.sent,e({type:"UNSET_LOADER"}),"object"!==typeof c.data?(u={header:"Error",content:"Something went wrong"},e(Object(o.A)(u))):-1===c.data.error_code?(l={header:"Error",content:c.data.data.msg},e(Object(o.A)(l))):e({type:"GET_BOARD_LIST",payload:c.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},u=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s,h;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),e.next=4,a.a.post("app.php?a=saveBoardMaster&univcode="+c.univ.funivcode,{data:t});case 4:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):(h={header:"Success",content:u.data.data.msg},r(Object(o.A)(h)));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"getEditBoardLists",fboard:t,univcode:c.user.fcuruniv}});case 4:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"GET_EDIT_BOARD_LIST",payload:u.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},s=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s,h;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),e.next=3,a.a.post("app.php?a=updateEditList&univcode="+c.univ.funivcode,{data:t});case 3:"object"!==typeof(u=e.sent).data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):(h={header:"Success",content:u.data.data.msg},r(Object(o.A)(h)));case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},h=function(){return function(){var t=Object(n.a)(i().mark(function t(e,r){var n,c,u,l;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r(),e({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php",{params:{a:"getChairmanCode",univcode:n.user.fcuruniv}});case 4:c=t.sent,e({type:"UNSET_LOADER"}),"object"!==typeof c.data?(u={header:"Error",content:"Something went wrong"},e(Object(o.A)(u))):-1===c.data.error_code?(l={header:"Error",content:c.data.data.msg},e(Object(o.A)(l))):e({type:"GET_CHAIRMAN_CODE",payload:c.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},f=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"getChairmanDetails",code:t,univcode:c.user.fcuruniv}});case 4:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"GET_CHAIRMAN_DETAILS",payload:u.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},p=function(t){return function(){var e=Object(n.a)(i().mark(function e(r,n){var c,u,l,s;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n(),r({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php",{params:{a:"getChairmanCodeDetailsMass",college:t,univcode:c.user.fcuruniv}});case 4:u=e.sent,r({type:"UNSET_LOADER"}),"object"!==typeof u.data?(l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l))):-1===u.data.error_code?(s={header:"Error",content:u.data.data.msg},r(Object(o.A)(s))):r({type:"GET_CHAIRMAN_CODE_DETAILS_MASS",payload:u.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=166.a994d36c.chunk.js.map
|