Liferay.Loader.define("@liferay/object-web@1.0.145/js/components/ObjectManagementToolbar",["module","exports","require","@liferay/object-js-components-web","liferay!frontend-js-react-web$react"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function ObjectManagementToolbar(e){const{externalReferenceCode:t,hasPublishObjectPermission:n,hasUpdateObjectDefinitionPermission:r,objectDefinitionId:i,portletNamespace:l,system:s}=e;return o.default.createElement(a.ManagementToolbar,_extends({badgeClassName:s?"label-info":"label-warning",badgeLabel:s?Liferay.Language.get("system"):Liferay.Language.get("custom"),className:"border-bottom",entityId:i,externalReferenceCodeSaveURL:"/o/object-admin/v1.0/object-definitions/".concat(i),hasPublishPermission:n,hasUpdatePermission:r,helpMessage:Liferay.Language.get("internal-key-to-reference-the-object-definition"),onGetEntity:()=>a.API.getObjectDefinitionById(i),onSubmit:e=>{var n;const a=document.getElementById("".concat(l,"fm"));var o;e||(null==a||null===(o=a.querySelector("#".concat(l,"cmd")))||void 0===o||o.setAttribute("value","publish"));null==a||null===(n=a.querySelector("#".concat(l,"externalReferenceCode")))||void 0===n||n.setAttribute("value",t),null==a||a.submit()}},e))};var a=n("@liferay/object-js-components-web"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("liferay!frontend-js-react-web$react"));function _extends(){return(_extends=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)}}}));
//# sourceMappingURL=ObjectManagementToolbar.js.map