Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ModelBuilder/Diagram/Diagram",["module","exports","require","liferay!frontend-js-dependencies-web$react-flow-renderer","../DefinitionNode/DefinitionNode","./Diagram.scss","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-dependencies-web$react-flow-renderer")),a=r("../DefinitionNode/DefinitionNode");r("./Diagram.scss");var i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}var s=function DiagramBuilder(){const e={objectDefinition:a.DefinitionNode};return i.default.createElement("div",{className:"lfr-objects__model-builder-diagram-area"},i.default.createElement(n.default,{elements:[{data:{creationLanguageId:"en_US",hasDeleteResourcePermission:!0,hasManagePermissionsResourcePermission:!0,hasObjectDefinitionPublished:!1,isLinkedNode:!1,nodeSelected:!0,objectDefinitionLabel:"Postal Address",objectDefinitionName:"portalAddress",objectFields:[{businessType:"LongInteger",label:{en_US:"ID"},name:"id",primaryKey:!0,selected:!1},{businessType:"Text",label:{en_US:"External Reference Code"},name:"erc",primaryKey:!1,selected:!0},{businessType:"Text",label:{en_US:"Name"},name:"name",primaryKey:!1,selected:!1},{businessType:"Text",label:{en_US:"Street 1"},name:"street1",primaryKey:!1,selected:!1},{businessType:"Text",label:{en_US:"Author"},name:"author",primaryKey:!1,selected:!1},{businessType:"Date",label:{en_US:"Create Date"},name:"createDate",primaryKey:!1,selected:!1},{businessType:"Date",label:{en_US:"Modified Date"},name:"modifiedDate",primaryKey:!1,selected:!1},{businessType:"Text",label:{en_US:"Status"},name:"status",primaryKey:!1,selected:!1}],system:!1},id:"A",position:{x:450,y:370},type:"objectDefinition"}],minZoom:.1,nodeTypes:e},i.default.createElement(n.Background,{size:1}),i.default.createElement(n.Controls,{showInteractive:!1}),i.default.createElement(n.MiniMap,null)))};t.default=s}}));
//# sourceMappingURL=Diagram.js.map