webpackJsonp([22],{1856:function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(0,s.default)({},t,{createOutgoingHookRequest:e.requests.integrations.createOutgoingHook})}function a(e){return{actions:(0,d.bindActionCreators)({createOutgoingHook:c.createOutgoingHook},e)}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(19),s=o(n),i=r(41),d=r(20),c=r(672),f=r(2161),l=o(f);t.default=(0,i.connect)(u,a)(l.default)},2161:function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(113),a=o(u),n=r(114),s=o(n),i=r(6),d=o(i),c=r(4),f=o(c),l=r(5),g=o(l),p=r(7),k=o(p),v=r(8),_=o(v),h=r(1830),O=o(h),H=r(1),b=o(H),m=r(44),q=r(2),R=o(q),y={id:"integrations.add",defaultMessage:"Add"},E={id:"add_outgoing_webhook.save",defaultMessage:"Save"},w=function(e){function t(e){var r=this;(0,f.default)(this,t);var o=(0,k.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));return o.addOutgoingHook=function(){var e=(0,s.default)(a.default.mark(function e(t){var u;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o.setState({serverError:""}),e.next=3,o.props.actions.createOutgoingHook(t);case 3:if(!(u=e.sent)){e.next=7;break}return m.browserHistory.push("/"+o.props.team.name+"/integrations/confirm?type=outgoing_webhooks&id="+u.id),e.abrupt("return");case 7:o.props.createOutgoingHookRequest.error&&o.setState({serverError:o.props.createOutgoingHookRequest.error.message});case 8:case"end":return e.stop()}},e,r)}));return function(t){return e.apply(this,arguments)}}(),o.state={serverError:""},o}return(0,_.default)(t,e),(0,g.default)(t,[{key:"render",value:function(){return b.default.createElement(O.default,{team:this.props.team,header:y,footer:E,renderExtra:"",action:this.addOutgoingHook,serverError:this.state.serverError})}}]),t}(b.default.PureComponent);w.propTypes={team:R.default.object.isRequired,createOutgoingHookRequest:R.default.object.isRequired,actions:R.default.shape({createOutgoingHook:R.default.func.isRequired}).isRequired},t.default=w}});
//# sourceMappingURL=22.3e00cf76077a97b8023a.js.map