exports.ids=[4],exports.modules={355:function(e,t,n){"use strict";n.r(t);var s=n(34),i=n(32),a=n(16),o=n(36),c=n(35),r=n(15),d=n(0),l=n(18),p=n(8),u=n(299),m=n(174),O=n(10),f=n(52),b=n(4),h=n(66),g=n(3),j=n(60),I=n(55),T=n(127),v=function(e){Object(o.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(s.a)(this,n),i=t.call(this,e),Object(r.a)(Object(a.a)(i),"onUpdateSettingsDebounced",T(i.props.onUpdateSettings,300)),Object(r.a)(Object(a.a)(i),"changeMakerKey",(function(e,t){i.onUpdateSettingsDebounced({makerKey:t})})),Object(r.a)(Object(a.a)(i),"changeEventName",(function(e,t){i.onUpdateSettingsDebounced({eventName:t})})),i.props.setValidationStatus(i.isValid(),e.nodeId),i}return Object(i.a)(n,[{key:"isValid",value:function(){return this.props.settings.makerKey&&this.props.settings.eventName?{result:!0,reason:""}:{result:!1,reason:"No key or event name 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 e=Object(I.a)(Object(p.D)());return d.createElement("div",Object.assign({className:e.notificationOptionsWindow},Object(b.g)("/ifttt/")),d.createElement("span",{className:e.notificationOptionsHelpIcon},d.createElement(h.a,{calloutText:d.createElement("span",null,Object(g.a)().IFTTTHelpCallout,d.createElement(j.a,{url:"/ifttt/"}))})),d.createElement("div",{className:e.notificationOptions},d.createElement(u.a,{label:Object(g.a)().IFTTTKey,type:"password",required:!0,className:e.notificationOptionsTextField,inputClassName:e.notificationOptionsTextFieldInput,defaultValue:this.props.settings.makerKey,onChange:this.changeMakerKey})),d.createElement("div",{className:e.notificationOptions},d.createElement(u.a,{label:Object(g.a)().IFTTTEventName,type:"text",required:!0,className:e.notificationOptionsTextField,inputClassName:e.notificationOptionsTextFieldInput,defaultValue:this.props.settings.eventName,onChange:this.changeEventName})),d.createElement("div",{className:e.notificationOptions},d.createElement(m.a,{disabled:!this.props.isValid||!this.props.isValid.result||this.props.isInProgress,"data-automation-id":"test",allowDisabledFocus:!0,checked:!1,text:this.props.isInProgress?"Processing...":"Test IFTTT Notification",onClick:this.props.sendTestPush})))}}]),n}(d.Component);t.default=Object(l.connect)((function(e,t){return{isInProgress:-1!==e.postRenderActionsState.inProgress.indexOf(t.nodeId),settings:e.postRenderActionsState.actions[t.nodeId].settings,isValid:e.postRenderActionsState.actions[t.nodeId].isValid}}),(function(e,t){return{onUpdateSettings:function(n){return e(Object(O.l)({settings:n,actionId:t.nodeId}))},sendTestPush:function(){return e(Object(f.a)({nodeId:t.nodeId}))},setValidationStatus:function(t,n){return e(Object(O.u)({status:t,actionId:n}))}}}))(v)}};
//# sourceMappingURL=4.6482cc9c955e0884959b.chunk.js.map