Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ModelBuilder/DefinitionNode/NodeHeader",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/label","frontend-js-web","liferay!frontend-js-react-web$react","./NodeHeader.scss"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function NodeHeader({hasDeleteResourcePermission:e,hasManagePermissionsResourcePermission:t,hasObjectDefinitionPublished:a,isLinkedNode:o,objectDefinitionLabel:s,system:f}){return d.default.createElement("div",{className:"lfr-objects__model-builder-node-header-container"},d.default.createElement("div",{className:"lfr-objects__model-builder-node-header-label-container"},d.default.createElement("div",{className:"lfr-objects__model-builder-node-header-label-title"},o&&d.default.createElement(r.default,{className:"c-pt-1 text-4",symbol:"link"}),d.default.createElement("span",null,s)),d.default.createElement(n.default,{alignmentPosition:3,trigger:d.default.createElement(l.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("show-actions"),displayType:"secondary",size:"sm",symbol:"ellipsis-v"})},d.default.createElement(n.default.ItemList,null,d.default.createElement(n.default.Item,{symbolRight:"shortcut"},(0,u.sub)(Liferay.Language.get("edit-in-x"),Liferay.Language.get("page view"))),t&&d.default.createElement(d.default.Fragment,null,d.default.createElement("hr",null),d.default.createElement(n.default.Item,null,d.default.createElement(r.default,{className:"c-mr-3 text-4",symbol:"users"}),(0,u.sub)(Liferay.Language.get("manage-x"),Liferay.Language.get("permissions")))),e&&d.default.createElement(d.default.Fragment,null,d.default.createElement("hr",null),d.default.createElement(n.default.Item,null,d.default.createElement(r.default,{className:"c-mr-3 text-4",symbol:"trash"}),(0,u.sub)(Liferay.Language.get("delete-x"),Liferay.Language.get("object"))))))),d.default.createElement("div",null,d.default.createElement(i.default,{displayType:f?"info":"warning"},Liferay.Language.get(f?"system":"custom")),d.default.createElement(i.default,{displayType:a?"success":"info"},Liferay.Language.get(a?"approved":"draft"))))};var l=a("@frontend-taglib-clay$clayui/button"),n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/drop-down")),r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),i=_interopRequireDefault(a("@frontend-taglib-clay$clayui/label")),u=a("frontend-js-web"),d=_interopRequireDefault(a("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}a("./NodeHeader.scss")}}));
//# sourceMappingURL=NodeHeader.js.map