Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.115/designer/js/definition-builder/DefinitionBuilder",["module","exports","require","liferay!frontend-js-react-web$react","liferay!frontend-js-dependencies-web$react-flow-renderer","../../css/definition-builder/main.scss","./DefinitionBuilderContext","./diagram-builder/DiagramBuilder","./diagram-builder/components/nodes/utils","./shared/components/toolbar/UpperToolbar","./source-builder/SourceBuilder"],(function(e,t,i){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function DefinitionBuilder(e){const[t,i]=(0,r.useState)(e.accountEntryId),[d,c]=(0,r.useState)(!0),[f,p]=(0,r.useState)(""),[b,g]=(0,r.useState)(null),[S,m]=(0,r.useState)({errorType:""}),[w,D]=(0,r.useState)(null),[y,v]=(0,r.useState)(""),[E,_]=(0,r.useState)(null),[h,j]=(0,r.useState)(e.definitionName),[I,T]=(0,r.useState)(e.title),[q,B]=(0,r.useState)(e.translations),[C,R]=(0,r.useState)(!1),[M,O]=(0,r.useState)(s.defaultNodes),[A,P]=(0,r.useState)(""),[W,k]=(0,r.useState)(!1),[x,N]=(0,r.useState)(!1),[L,$]=(0,r.useState)(!1),[V,z]=(0,r.useState)(!1),[U,F]=(0,r.useState)(parseInt(e.version,10)),G={accountEntryId:t,active:d,alertMessage:f,alertType:b,blockingErrors:S,currentEditor:w,definitionDescription:y,definitionInfo:E,definitionName:h,definitionTitle:I,definitionTitleTranslations:q,deserialize:C,elements:M,functionActionExecutors:e.functionActionExecutors,selectedLanguageId:A,setAccountEntryId:i,setActive:c,setAlertMessage:p,setAlertType:g,setBlockingErrors:m,setCurrentEditor:D,setDefinitionDescription:v,setDefinitionInfo:_,setDefinitionName:j,setDefinitionTitle:T,setDefinitionTitleTranslations:B,setDeserialize:R,setElements:O,setSelectedLanguageId:P,setShowAlert:z,setShowDefinitionInfo:k,setShowInvalidContentMessage:N,setSourceView:$,setVersion:F,showAlert:V,showDefinitionInfo:W,showInvalidContentMessage:x,sourceView:L,statuses:e.statuses,version:U};return r.default.createElement(o.DefinitionBuilderContextProvider,G,r.default.createElement("div",{className:"definition-builder-app"},r.default.createElement(n.ReactFlowProvider,null,r.default.createElement(u.default,e),L?r.default.createElement(l.default,null):r.default.createElement(a.default,null))))};var r=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 i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}i.default=e,t&&t.set(e,i);return i}(i("liferay!frontend-js-react-web$react")),n=i("liferay!frontend-js-dependencies-web$react-flow-renderer");i("../../css/definition-builder/main.scss");var o=i("./DefinitionBuilderContext"),a=_interopRequireDefault(i("./diagram-builder/DiagramBuilder")),s=i("./diagram-builder/components/nodes/utils"),u=_interopRequireDefault(i("./shared/components/toolbar/UpperToolbar")),l=_interopRequireDefault(i("./source-builder/SourceBuilder"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=DefinitionBuilder.js.map