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