/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.stackConnectors_bundle_jsonpfunction=window.stackConnectors_bundle_jsonpfunction||[]).push([[53],{97:function(e,s,a){"use strict";a.r(s),a.d(s,"default",(function(){return c}));var t=a(1),n=a(0),r=a(2),o=a(9);const c=({actionParams:e,editAction:s,index:a,errors:c,messageVariables:i,defaultMessage:l,useDefaultMessage:u})=>{var d;const{message:g}=e,[[m,b],f]=Object(t.useState)([!1,l]);return Object(t.useEffect)((()=>{(u||null==e||!e.message||m&&(null==e?void 0:e.message)===b&&b!==l)&&(f([!0,l]),s("message",l,a))}),[l]),Object(o.jsx)(r.TextAreaWithMessageVariables,{index:a,editAction:s,messageVariables:i,paramsProperty:"message",inputTargetValue:g,label:n.i18n.translate("xpack.stackConnectors.components.slack.messageTextAreaFieldLabel",{defaultMessage:"Message"}),errors:null!==(d=c.message)&&void 0!==d?d:[]})}}}]);