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.224.45.82
(window.webpackJsonp=window.webpackJsonp||[]).push([[285],{1168:function(e,n,t){"use strict";t.r(n);var o=t(100),r=t(101),i=t(103),a=t(102),l=t(104),s=t(2),c=t.n(s),u=t(321),d=t(1343),f=(t(956),t(469)),m=t(105),p=t(267);t(302);f.b.configure();var w=function(e){function n(){var e,t;Object(o.a)(this,n);for(var r=arguments.length,l=new Array(r),s=0;s<r;s++)l[s]=arguments[s];return(t=Object(i.a)(this,(e=Object(a.a)(n)).call.apply(e,[this].concat(l)))).online=function(){f.b.dismiss(),f.b.success("Network Connected",{position:f.b.POSITION.BOTTOM_RIGHT,autoClose:3e3})},t.offline=function(){return f.b.error("Network Disconnected!!",{position:f.b.POSITION.BOTTOM_RIGHT,autoClose:!1})},t}return Object(l.a)(n,e),Object(r.a)(n,[{key:"componentDidMount",value:function(){window.addEventListener("online",this.online),window.addEventListener("offline",this.offline)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("online",this.online),window.removeEventListener("offline",this.offline)}},{key:"render",value:function(){var e=this.props.error,n=e.error_code,t=e.data,o=e.status,r=-1===n?"error":"positive";return c.a.createElement(c.a.Fragment,null,c.a.createElement(f.a,null),2!==n?c.a.createElement("div",null,c.a.createElement(u.a,{style:{width:"72vw",margin:"0.3em",display:"flex",padding:"0.5em 1.5em"},className:r},c.a.createElement(u.a.Header,null,"Status : ",o,", Message: ",t.msg," "),c.a.createElement("div",{className:"ml-auto"},c.a.createElement(d.a,{size:"mini",basic:!0,onClick:this.props.unsetError,color:"blue",content:"OK"})))," "):null)}}]),n}(s.Component);w.defaultProps={};n.default=Object(m.b)(function(e){return{error:e.error}},{unsetError:p.B})(w)}}]);
//# sourceMappingURL=285.baad6799.chunk.js.map
|