Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/components/rules/editor/Timeline.es",["module","exports","require","./Timeline.scss","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/panel","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("./Timeline.scss");var l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=l?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(a,n,r):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("@frontend-taglib-clay$clayui/button")),n=a("@frontend-taglib-clay$clayui/drop-down"),r=u(a("@frontend-taglib-clay$clayui/icon")),c=u(a("@frontend-taglib-clay$clayui/panel")),i=u(a("liferay!frontend-js-react-web$classnames")),s=u(a("liferay!frontend-js-react-web$react"));function u(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}function m(e,t){if(null==e)return{};var a,l,n=function(e,t){if(null==e)return{};var a,l,n={},r=Object.keys(e);for(l=0;l<r.length;l++)a=r[l],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l<r.length;l++)a=r[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}const e=e=>{let{children:t,className:a}=e,l=m(e,["children","className"]);return s.default.createElement("div",o({},l,{className:(0,i.default)(a,"timeline-increment")}),t)},p=t=>s.default.createElement(e,t,s.default.createElement("span",{className:"timeline-icon"})),y=t=>s.default.createElement(e,null,s.default.createElement(l.ClayButtonWithIcon,o({className:"rounded-circle",small:!0,symbol:"plus"},t))),b=e=>{let{children:t,className:a}=e,l=m(e,["children","className"]);return s.default.createElement("div",o({},l,{className:(0,i.default)("form-group-item",a)}),t)},E=({bottomContent:e,children:t,expression:a})=>s.default.createElement(c.default,{displayTitle:s.default.createElement(s.default.Fragment,null),displayType:"secondary"},s.default.createElement(c.default.Body,null,s.default.createElement("div",{className:"form-group-autofit"},s.default.createElement(b,{className:"form-group-item-label form-group-item-shrink"},s.default.createElement("h4",null,s.default.createElement("span",{className:"text-truncate-inline"},s.default.createElement("span",{className:"text-truncate"},a)))),t),e,s.default.createElement(p,null))),N=e=>s.default.createElement("div",{className:"container-trash"},s.default.createElement(l.ClayButtonWithIcon,o({displayType:"secondary",small:!0,symbol:"trash"},e))),h=({operator:e})=>s.default.createElement(c.default,{className:"inline-item operator",displayType:"secondary"},s.default.createElement(c.default.Body,null,s.default.createElement("span",{className:"text-uppercase"},e))),g=e=>{let{children:t,className:a}=e,l=m(e,["children","className"]);return s.default.createElement("ul",o({},l,{className:(0,i.default)("form-rule-builder-timeline timeline",a)}),t)},O=e=>{let{children:t,className:a}=e,l=m(e,["children","className"]);return s.default.createElement("li",o({},l,{className:(0,i.default)(a,"timeline-item")}),t)},v=e=>{let{children:t,className:a}=e,l=m(e,["children","className"]);return s.default.createElement("li",o({},l,{className:(0,i.default)(a,"timeline-item timeline-increment-action-button")}),t)},j=e=>{let{disabled:t,items:a,operator:i,title:u}=e,d=m(e,["disabled","items","operator","title"]);return s.default.createElement(O,d,s.default.createElement(c.default,{displayTitle:u,displayType:"secondary"},i&&s.default.createElement(n.ClayDropDownWithItems,{className:"timeline-dropdown",items:a,trigger:s.default.createElement(l.default,{className:"mr-3",disabled:t,displayType:"secondary",small:!0},s.default.createElement("span",{className:"text-uppercase"},i),s.default.createElement("span",{className:"inline-item inline-item-after"},s.default.createElement(r.default,{symbol:"caret-bottom"})))}),s.default.createElement(p,null)))},w=e=>{let{children:t,className:a}=e,l=m(e,["children","className"]);return s.default.createElement("div",o({},l,{className:(0,i.default)("form-builder-rule-builder",a)}),t)};w.ActionTrash=N,w.FormGroupItem=b,w.Header=j,w.IncrementButton=y,w.IncrementIcon=p,w.Item=O,w.ItemAction=v,w.List=g,w.Operator=h,w.Panel=E;var f=w;t.default=f}}));
//# sourceMappingURL=Timeline.es.js.map