Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.85/designer/js/definition-builder/diagram-builder/components/sidebar/sections/timers/TimersSummary",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../../DiagramBuilderContext","../../SidebarPanel","./CurrentTimers"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=d(r("@frontend-taglib-clay$clayui/button")),n=(d(r("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();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]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),i=r("../../../../DiagramBuilderContext"),o=d(r("../../SidebarPanel")),l=d(r("./CurrentTimers"));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}var f=({setContentName:e})=>{const{selectedItem:t}=(0,n.useContext)(i.DiagramBuilderContext);return n.default.createElement(o.default,{panelTitle:Liferay.Language.get("timers")},(null==t?void 0:t.data.taskTimers)?n.default.createElement(l.default,{setContentName:e,taskTimers:t.data.taskTimers}):n.default.createElement(a.default,{className:"mr-3",displayType:"secondary",onClick:()=>{e("timers")}},Liferay.Language.get("new")))};t.default=f}}));
//# sourceMappingURL=TimersSummary.js.map