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