/*! For license information please see dll.Gate.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[42],{1062:function(e,t,n){"use strict";n.r(t);var o=n(13),r=n.n(o),s=n(12),i=n.n(s),a=n(14),c=n.n(a),l=n(15),u=n.n(l),d=n(8),h=n.n(d),p=n(0),f=n.n(p),v=n(1),b=n.n(v),k=n(73),E=n(18),w=n(20),y=n(1930);function m(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,o=h()(e);if(t){var r=h()(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u()(this,n)}}var O=function(e){c()(n,e);var t=m(n);function n(e,o){var s;return r()(this,n),(s=t.call(this,e)).state={isEnrolled:!1,isOwner:!1,validCheck:!e.check||e.check(o)},s}return i()(n,[{key:"componentDidMount",value:function(){var e=this;this._isMounted=!0;var t=this.context;t&&(this.unsubscribe=t.subscribe((function(n,o){if(n!==k.RECEIVED_USER_RIGHTS&&n!==k.LOGGED_IN&&n!==k.LOGGED_OUT&&n!==E.TOGGLE_PRESENTATION_MODE||e.checkAuthorization(),e.props.check){var r=e.props.check(t);if(r!==e.state.validCheck)return e.setState({validCheck:r})}e._isMounted&&e.forceUpdate()})),this.checkAuthorization())}},{key:"componentDidUpdate",value:function(){if(this.props.check){var e=this.props.check(this.context);if(e!==this.state.validCheck)return this.setState({validCheck:e})}}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1}},{key:"checkAuthorization",value:function(){var e=this.context,t={isEnrolled:e.isEnrolled(),isOwner:e.isOwner(),presentationMode:e.presentationMode};t.isEnrolled===this.state.isEnrolled&&t.isOwner===this.state.isOwner&&t.presentationMode===this.state.presentationMode||this.setState(t)}},{key:"render",value:function(){var e=this,t=this.context;return f.a.createElement(y.default.Consumer,null,(function(n){var o=e.props,r=o.disabled,s=o.user,i=o.notUser,a=o.enrolled,c=o.notEnrolled,l=o.owner,u=o.notOwner,d=e.state.isEnrolled||"enrolled"===n,h=e.state.isOwner||"owner"===n,v=t&&!t.anonymous||"anonymous"!==n,b=!1;return r||!e.state.validCheck||i&&v||u&&h||c&&d?e.props.banner:(s&&v||a&&d||l&&!e.state.presentationMode&&h?b=!0:s||l||a||(b=!0),b?f.a.createElement(p.Fragment,null,e.props.children):e.props.banner)}))}}]),n}(p.Component);O.defaultProps={user:!1,notUser:!1,enrolled:!1,notEnrolled:!1,owner:!1,notOwner:!1,banner:null,disabled:!1,check:null},O.propTypes={user:b.a.bool,notUser:b.a.bool,enrolled:b.a.bool,notEnrolled:b.a.bool,owner:b.a.bool,notOwner:b.a.bool,banner:b.a.node,disabled:b.a.bool,check:b.a.func},O.contextType=w.default,t.default=O},1930:function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o).a.createContext("anonymous");t.default=r}}]);