Liferay.Loader.define("portal-workflow-kaleo-designer-web@5.0.98/designer/js/definition-builder/DefinitionBuilder",["module","exports","require","liferay!frontend-js-react-web$react","portal-workflow-kaleo-designer-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,f]=(0,r.useState)(!0),[c,p]=(0,r.useState)(""),[g,w]=(0,r.useState)(null),[b,S]=(0,r.useState)({errorType:""}),[m,D]=(0,r.useState)(null),[y,v]=(0,r.useState)(""),[E,_]=(0,r.useState)(e.definitionName),[h,I]=(0,r.useState)(null),[T,j]=(0,r.useState)(null),[k,q]=(0,r.useState)(e.title),[B,C]=(0,r.useState)(e.translations),[R,M]=(0,r.useState)(!1),[O,A]=(0,r.useState)(s.defaultNodes),[P,W]=(0,r.useState)(""),[x,N]=(0,r.useState)(!1),[L,$]=(0,r.useState)(!1),[V,z]=(0,r.useState)(!1),[U,F]=(0,r.useState)(!1),[G,H]=(0,r.useState)(parseInt(e.version,10)),J={accountEntryId:t,active:d,alertMessage:c,alertType:g,blockingErrors:b,currentEditor:m,definitionDescription:y,definitionId:E,definitionInfo:h,definitionName:T,definitionTitle:k,definitionTitleTranslations:B,deserialize:R,elements:O,functionActionExecutors:e.functionActionExecutors,selectedLanguageId:P,setAccountEntryId:i,setActive:f,setAlertMessage:p,setAlertType:w,setBlockingErrors:S,setCurrentEditor:D,setDefinitionDescription:v,setDefinitionId:_,setDefinitionInfo:I,setDefinitionName:j,setDefinitionTitle:q,setDefinitionTitleTranslations:C,setDeserialize:M,setElements:A,setSelectedLanguageId:W,setShowAlert:F,setShowDefinitionInfo:N,setShowInvalidContentMessage:$,setSourceView:z,setVersion:H,showAlert:U,showDefinitionInfo:x,showInvalidContentMessage:L,sourceView:V,statuses:e.statuses,version:G};return r.default.createElement(o.DefinitionBuilderContextProvider,J,r.default.createElement("div",{className:"definition-builder-app"},r.default.createElement(n.ReactFlowProvider,null,r.default.createElement(l.default,e),V?r.default.createElement(u.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("portal-workflow-kaleo-designer-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"),l=_interopRequireDefault(i("./shared/components/toolbar/UpperToolbar")),u=_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