Liferay.Loader.define("frontend-taglib-clay@12.0.3/DropdownMenu",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/link","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./normalize_dropdown_items"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{actionsDropdown:t=!1,additionalProps:n,componentId:f,cssClass:d,icon:y,items:m,label:b,locale:g,menuProps:w,portletId:O,portletNamespace:j}=e,v=p(e,["actionsDropdown","additionalProps","componentId","cssClass","icon","items","label","locale","menuProps","portletId","portletNamespace"]);return c.default.createElement(c.default.Fragment,null,c.default.createElement(l.ClayDropDownWithItems,{className:(0,i.default)({"dropdown-action":t}),items:(0,u.default)(m)||[],menuElementAttrs:w,trigger:c.default.createElement(a.default,s({className:(0,i.default)(d,{"component-action":t})},v),y&&c.default.createElement("span",{className:(0,i.default)("inline-item",{"inline-item-before":b})},c.default.createElement(r.default,{symbol:y})),b)}),c.default.createElement("div",{className:"quick-action-menu"},m.map((e=>{let{data:t,href:n,icon:l,label:i,quickAction:u}=e,f=p(e,["data","href","icon","label","quickAction"]);return(null==t?void 0:t.action)&&u?c.default.createElement(a.ClayButtonWithIcon,s({className:"component-action quick-action-item",displayType:"unstyled",key:t.action,small:!0,symbol:l,title:i},f)):n&&l&&u&&c.default.createElement(o.default,s({className:"component-action quick-action-item",href:n,key:n,title:i},f),c.default.createElement(r.default,{symbol:l}))}))))};var a=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 n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var r=a?Object.getOwnPropertyDescriptor(e,l):null;r&&(r.get||r.set)?Object.defineProperty(n,l,r):n[l]=e[l]}n.default=e,t&&t.set(e,n);return n}(n("@frontend-taglib-clay$clayui/button")),l=n("@frontend-taglib-clay$clayui/drop-down"),r=f(n("@frontend-taglib-clay$clayui/icon")),o=f(n("@frontend-taglib-clay$clayui/link")),i=f(n("liferay!frontend-js-react-web$classnames")),c=f(n("liferay!frontend-js-react-web$react")),u=f(n("./normalize_dropdown_items"));function f(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 s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var n,a,l=function(e,t){if(null==e)return{};var n,a,l={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}}}));
//# sourceMappingURL=DropdownMenu.js.map