Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/components/drop-down/DropDown.es",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react"],(function(e,t,n){var a;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({actions:t,className:n,disabled:a}){const[c,u]=(0,i.useState)(!1),d=i.default.createElement(r.ClayButtonWithIcon,{className:"page-link",disabled:a,displayType:"unstyled",symbol:"ellipsis-v"});if(0===t.length)return d;return i.default.createElement(o.default,{active:c,alignmentPosition:o.Align.BottomRight,className:(0,l.default)("dropdown-action",n),onActiveChange:e=>u(e),trigger:d},i.default.createElement(f,null,t.map(((t,n)=>i.default.createElement(e,{key:n,onClick:e=>((e,t)=>{e.preventDefault(),"function"==typeof t.action&&t.action(),u(!1)})(e,t)},t.name)))))};var r=n("@frontend-taglib-clay$clayui/button"),o=u(n("@frontend-taglib-clay$clayui/drop-down")),l=(a=n("liferay!frontend-js-react-web$classnames"))&&a.__esModule?a:{default:a},i=u(n("liferay!frontend-js-react-web$react"));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=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=c();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}const{Item:e,ItemList:f}=o.default}}));
//# sourceMappingURL=DropDown.es.js.map