/*! For license information please see dll.Expire.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[45],{838:function(e,t,n){"use strict";n.r(t);var i=n(14),r=n.n(i),c=n(12),o=n.n(c),l=n(15),s=n.n(l),u=n(16),a=n.n(u),p=n(8),h=n.n(p),f=n(0),v=n.n(f),d=n(1),m=n.n(d);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h()(e);if(t){var r=h()(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return a()(this,n)}}var _=function(e){s()(n,e);var t=y(n);function n(e){var i;return r()(this,n),(i=t.call(this)).state={visible:!0,children:e.children},i}return o()(n,[{key:"componentDidMount",value:function(){this.props.active&&this.setTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.children!==e.children&&this.props.active||this.props.active&&this.props.active!==e.active)&&this.setTimer()}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"setTimer",value:function(){var e=this;null!==this._timer&&clearTimeout(this._timer),this._timer=setTimeout((function(){e.setState({visible:!1}),e._timer=null}),this.props.delay)}},{key:"render",value:function(){return this.state.visible?v.a.createElement(f.Fragment,null,this.props.children):v.a.createElement("span",null)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.children!==t.children?{visible:!0,children:e.children}:null}}]),n}(f.Component);_.defaultProps={active:!1,delay:1e3},_.propTypes={active:m.a.bool,delay:m.a.number},t.default=_}}]);