export const __webpack_esm_id__=59374;export const __webpack_esm_ids__=[59374];export const __webpack_esm_modules__={59374(n,e,t){const i=t(71315).I.logger;function o(n,e,t,o,a,r){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-configure-endpoint.html",scope:{stepDefinition:"=",selectedSourceRepository:"="},link:s=>{s.endpointConfiguration=void 0,s.generationSettings=void 0,s.generationSettingsValid=!1,s.showAdvancedSettings=!1,s.handleValidityChange=n=>{s.endpointConfigurationSettingsValid=n},s.next=()=>{a.nextEndpointCreationStep()},s.back=()=>{a.previousEndpointCreationStep()},s.cancel=()=>{const n=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),i=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(n,i,()=>{a.cancelEndpointCreation()})},s.toggleAdvancedSettings=()=>{s.showAdvancedSettings=!s.showAdvancedSettings};const c=[];s.$on("$destroy",()=>{c.forEach(n=>n())}),s.endpointConfiguration=a.getNewEndpoint(),s.endpointConfiguration.settings||(s.endpointConfiguration,s.loadingData=!0,n.all([o.getGraphqlGenerationSettings(s.selectedSourceRepository.id).catch(n=>{i.error("Error loading generation settings",n),r.error(getError(n))})]).then(([n])=>{s.endpointConfiguration.settings=n}).finally(()=>{s.loadingData=!1}))}}}angular.module("graphdb.framework.graphql.directives.configure-endpoint",[]).directive("configureEndpoint",o),o.$inject=["$q","ModalService","$translate","GraphqlService","GraphqlContextService","toastr"]}};
//# sourceMappingURL=59374.489141e9d7271107ae46.bundle.js.map