exports.ids=[6],exports.modules={354:function(t,e,n){"use strict";n.r(e);var i=n(34),s=n(32),a=n(16),o=n(36),r=n(35),c=n(15),d=n(0),l=n(18),u=n(8),p=n(299),O=n(174),b=n(10),f=n(59),h=n(4),m=n(66),j=n(3),g=n(60),I=n(55),V=n(127),v=function(t){Object(o.a)(n,t);var e=Object(r.a)(n);function n(t){var s;return Object(i.a)(this,n),s=e.call(this,t),Object(c.a)(Object(a.a)(s),"onUpdateSettingsDebounced",V(s.props.onUpdateSettings,300)),Object(c.a)(Object(a.a)(s),"onChange",(function(t,e){s.onUpdateSettingsDebounced({url:e})})),s.props.setValidationStatus(s.isValid(),t.nodeId),s}return Object(s.a)(n,[{key:"isValid",value:function(){return this.props.settings.url?{result:!0,reason:""}:{result:!1,reason:"No url provided"}}},{key:"componentDidUpdate",value:function(){this.props.isValid&&this.props.isValid.result==this.isValid().result||this.props.setValidationStatus(this.isValid(),this.props.nodeId)}},{key:"render",value:function(){var t=Object(I.a)(Object(u.D)());return d.createElement("div",Object.assign({className:t.notificationOptionsWindow},Object(h.g)("/zapier/")),d.createElement("span",{className:t.notificationOptionsHelpIcon},d.createElement(m.a,{calloutText:d.createElement("span",null,Object(j.a)().zapierHelpCallout,d.createElement(g.a,{url:"/zapier/"}))})),d.createElement("div",{className:t.notificationOptions},d.createElement(p.a,{label:Object(j.a)().zapierUrl,type:"text",required:!0,className:t.notificationOptionsTextField,inputClassName:t.notificationOptionsTextFieldInput,defaultValue:this.props.settings.url,onChange:this.onChange})),d.createElement("div",{className:t.notificationOptions},d.createElement(O.a,{disabled:!this.props.isValid||!this.props.isValid.result||this.props.isInProgress,"data-automation-id":"test",allowDisabledFocus:!0,checked:!1,text:"Test Zapier Notification",onClick:this.props.sendTestPush})))}}]),n}(d.Component);e.default=Object(l.connect)((function(t,e){return{isInProgress:-1!==t.postRenderActionsState.inProgress.indexOf(e.nodeId),settings:t.postRenderActionsState.actions[e.nodeId].settings,isValid:t.postRenderActionsState.actions[e.nodeId].isValid}}),(function(t,e){return{onUpdateSettings:function(n){return t(Object(b.o)({settings:n,actionId:e.nodeId}))},sendTestPush:function(){return t(Object(f.a)({nodeId:e.nodeId}))},setValidationStatus:function(e,n){return t(Object(b.u)({status:e,actionId:n}))}}}))(v)}};
//# sourceMappingURL=6.502d15f86ef5e62d8b4e.chunk.js.map