Liferay.Loader.define("change-tracking-web@2.0.73/publications/js/ViewPublicationsDropdownMenu",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","liferay!frontend-js-react-web$react","./ManageCollaborators"],(function(e,t,r){var a;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{checkoutURL:t,deleteURL:r,editURL:a,namespace:s,permissionsURL:f,publishURL:p,reviewURL:c,scheduleURL:y,spritemap:g}=e,d=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},l=Object.keys(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,["checkoutURL","deleteURL","editURL","namespace","permissionsURL","publishURL","reviewURL","scheduleURL","spritemap"]);const[b,L]=(0,i.useState)(!1);if(!s)return i.default.createElement(l.ClayDropDownWithItems,{alignmentPosition:l.Align.BottomLeft,items:[{href:c,label:Liferay.Language.get("review-changes"),symbolLeft:"list-ul"}],spritemap:g,trigger:i.default.createElement(n.ClayButtonWithIcon,{displayType:"unstyled",small:!0,spritemap:g,symbol:"ellipsis-v"})});const m=[];t&&m.push({href:t,label:Liferay.Language.get("work-on-publication"),symbolLeft:"radio-button"});a&&m.push({href:a,label:Liferay.Language.get("edit"),symbolLeft:"pencil"});m.push({href:c,label:Liferay.Language.get("review-changes"),symbolLeft:"list-ul"}),f&&(m.push({label:Liferay.Language.get("invite-users"),onClick:()=>L(!0),symbolLeft:"users"}),m.push({href:f,label:Liferay.Language.get("permissions"),symbolLeft:"password-policies"}));r&&m.push({type:"divider"},{href:r,label:Liferay.Language.get("delete"),symbolLeft:"times-circle"});p&&m.push({type:"divider"});y&&m.push({href:y,label:Liferay.Language.get("schedule"),symbolLeft:"calendar"});p&&m.push({href:p,label:Liferay.Language.get("publish"),symbolLeft:"change"});return i.default.createElement(o.default,u({namespace:s,setShowModal:L,showModal:b,trigger:i.default.createElement(l.ClayDropDownWithItems,{alignmentPosition:l.Align.BottomLeft,items:m,spritemap:g,trigger:i.default.createElement(n.ClayButtonWithIcon,{displayType:"unstyled",small:!0,spritemap:g,symbol:"ellipsis-v"})})},d))};var n=r("@frontend-taglib-clay$clayui/button"),l=r("@frontend-taglib-clay$clayui/drop-down"),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),o=(a=r("./ManageCollaborators"))&&a.__esModule?a:{default:a};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}}}));
//# sourceMappingURL=ViewPublicationsDropdownMenu.js.map