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