"use strict";(self.webpackChunkwebpackcloud=self.webpackChunkwebpackcloud||[]).push([[68],{64808:(a,t,e)=>{e.r(t),e.d(t,{HabilitaDesabilitaPasso:()=>c,VerificarExisteConfiguracao:()=>n});e(41539),e(54747);var n=function(a,t){if(t){a.focusFirstField();var e=a.AfterLoadDataSubject.subscribe((function(){var t={};a.chaveprimaria.forEach((function(a){WizardManager.context.Params.hasOwnProperty(a)&&(t[a]=WizardManager.context.Params[a])})),FormManager.loadCadastro({_ACadastro:a.classe,_AAlias:a.alias,_AFiltros:t}).then((function(t){"OK"===t.data.StatusRegistro?(a.changeState(FormState.cadNavegando),a.focusFirstField()):(a.setActionEnabled("actDataSetInsertExecute",!0),a.executeAction("actDataSetInsertExecute").then((function(){a.fields.forEach((function(a){WizardManager.context.Params.hasOwnProperty(a.nome)&&a.setvalue(WizardManager.context.Params[a.nome])}))})),a.setActionEnabled("actDataSetInsertExecute",!1))})),e.unsubscribe()}))}},c=function(a,t){t||a.changeState(FormState.cadNavegando),a.fields.forEach((function(a){a.setenabled(t)})),a._actions.forEach((function(t,e){e&&"ActAjudaExecute"!=e&&a.setActionEnabled(e,!1)})),a.setActionEnabled("actDataSetPostExecute",t),a.setvalue("CODIGOCONFIG",WizardManager.context.Params.CODIGOCONFIG)}}}]);