Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/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=u(r("@frontend-taglib-clay$clayui/form")),n=(l(r("liferay!frontend-js-react-web$prop-types")),u(r("liferay!frontend-js-react-web$react"))),i=l(r("../../SidebarPanel"));function l(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();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 f=({description:e,name:t,setTimerSections:r,timerIdentifier:l,timersIndex:o})=>{const[u,f]=(0,n.useState)([e]),[d,c]=(0,n.useState)([t]);return(0,n.useEffect)((()=>{void 0===u&&void 0===d||r((e=>{const t=[...e],r=e.find((({identifier:e})=>e===l));return r.description=u,r.name=d,t.splice(o,1,r),t}))}),[u,l,d,o]),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:d})),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})=>f(e.value),onChange:({target:e})=>f(e.value),type:"text",value:u})))};t.default=f}}));
//# sourceMappingURL=TimerInfo.js.map