Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/designer/js/definition-builder/diagram-builder/components/sidebar/sections/timers/TimerInfo",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../SidebarPanel"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireWildcard(r("@frontend-taglib-clay$clayui/form")),n=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),_interopRequireWildcard(r("liferay!frontend-js-react-web$react"))),i=_interopRequireDefault(r("../../SidebarPanel"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}var _default=({description:e,name:t,setTimerSections:r,timerIdentifier:l,timersIndex:u})=>{const[o,d]=(0,n.useState)([e]),[f,c]=(0,n.useState)([t]);return(0,n.useEffect)((()=>{void 0===o&&void 0===f||r((e=>{const t=[...e],r=e.find((({identifier:e})=>e===l));return r.description=o,r.name=f,t.splice(u,1,r),t}))}),[o,l,f,u]),n.default.createElement(i.default,{panelTitle:Liferay.Language.get("information")},n.default.createElement(a.default.Group,null,n.default.createElement("label",{htmlFor:"timerName"},Liferay.Language.get("name")),n.default.createElement(a.ClayInput,{id:"timerName",onBlur:({target:e})=>c(e.value),onChange:({target:e})=>c(e.value),placeholder:Liferay.Language.get("my-task-timer"),type:"text",value:f})),n.default.createElement(a.default.Group,null,n.default.createElement("label",{htmlFor:"timerDescription"},Liferay.Language.get("description")),n.default.createElement(a.ClayInput,{component:"textarea",id:"timerDescription",onBlur:({target:e})=>d(e.value),onChange:({target:e})=>d(e.value),type:"text",value:o})))};t.default=_default}}));
//# sourceMappingURL=TimerInfo.js.map