/*! For license information please see dll.Reaction.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[108],{927:function(t,n,e){"use strict";e.r(n);var r=e(14),o=e.n(r),i=e(13),s=e.n(i),u=e(15),c=e.n(u),a=e(16),p=e.n(a),l=e(8),f=e.n(l),h=e(0),d=e.n(h),v=e(1),y=e.n(v),w=e(45),b=e.n(w),m=e(1012),D=e(34),R=e(109),I=e.n(R),T=e(107),k=e.n(T),_=e(108);function g(t){var n=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(t){return!1}}();return function(){var e,r=f()(t);if(n){var o=f()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return p()(this,e)}}var x=b()("isle:reaction"),U=function(t){c()(e,t);var n=g(e);function e(t){return o()(this,e),n.call(this,t)}return s()(e,[{key:"componentDidMount",value:function(){var t=this,n=this.context;this.unsubscribe=n.subscribe((function(n,e){n===_.MEMBER_ACTION&&e.id===t.props.actionID&&t.forceUpdate()}))}},{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){x("Render component...");var t=this.context;if(!this.props.actionID)return d.a.createElement(m.default,{variant:"danger"},"Please supply an ID for component to be watched.");if(t.currentUserActions){var n=t.responseVisualizers[this.props.actionID];if(n){var e=n.type,r=t.currentUserActions[this.props.actionID];if(r){var o=(r=(r=r.filter((function(t){return t.type===e}))).sort((function(t,n){return t.absoluteTime-n.absoluteTime})))[r.length-1];if(I()(this.props.show))return this.props.show[o.value]||null;if(k()(this.props.show))return this.props.show(o.value)||null}return null}}return null}}]),e}(h.Component);U.propTypes={actionID:y.a.string.isRequired,show:y.a.oneOfType([y.a.object,y.a.func])},U.defaultProps={show:{}},U.contextType=D.default,n.default=U}}]);