export const __webpack_esm_id__=15006;export const __webpack_esm_ids__=[15006,19115,54211];export const __webpack_esm_modules__={68152(n,e,t){var o=t(20575);function i(n){return{restrict:"E",scope:{field:"=",form:"=",translationKeyPrefix:"="},templateUrl:"js/angular/core/directives/dynamic-form/templates/form-field-template.html",link:function(n){n.FIELD_TYPE=o.w}}}angular.module("graphdb.framework.core.directives.dynamic-form-field",[]).directive("dynamicFormField",i),i.$inject=[]},95113(n,e,t){t(68152);var o=t(20575),i=t(71315);angular.module("graphdb.framework.core.directives.dynamic-form",["graphdb.framework.core.directives.dynamic-form-field"]).directive("dynamicForm",a),a.$inject=[];const r=i.I.logger;function a(){return{restrict:"E",scope:{formModel:"=",showAllFields:"=?",onValidityChange:"&?",formCtrl:"=?",translationKeyPrefix:"@?"},templateUrl:"js/angular/core/directives/dynamic-form/templates/dynamic-form.html",link:function(n,e){n.FIELD_TYPE=o.w,n.formCtrl=void 0,n.showAllFields=n.showAllFields||!1,(()=>{const t=e.find("form").controller("form");if(!t)return void r.error("Form controller not found!");n.formCtrl=t;const o=t.$setValidity;n.formCtrl.$setValidity=function(e,i,r){o.call(t,e,i,r),n.onValidityChange&&n.onValidityChange({valid:t.$valid})}})()}}}},19115(){angular.module("graphdb.framework.core.directives.multiselect-dropdown",[]).directive("multiselectDropdown",["$translate",function(n){return{restrict:"E",require:"ngModel",scope:{options:"=",dropdownLabel:"=?"},templateUrl:"js/angular/core/directives/multiselect-dropdown/templates/multiselect-dropdown.html",link:function(e,t,o,i){e.isOpen=!1;const r=n=>{t[0].contains(n.target)||e.$apply(()=>{e.isOpen=!1})};e.toggleDropdown=function(){e.isOpen=!e.isOpen},e.toggleSelection=function(n){n.selected=!n.selected,(()=>{const n=e.options.filter(function(n){return n.selected});i.$setViewValue(n)})()},e.getSelectedText=function(){const t=e.options.filter(n=>n.selected);return 0===t.length?e.dropdownLabel||n.instant("common.select"):t.map(n=>n.label).join(", ")},i.$render=function(){angular.isArray(i.$viewValue)&&e.options.forEach(function(n){n.selected=i.$viewValue.some(function(e){return e.value===n.value})})},document.addEventListener("click",r),e.$on("$destroy",()=>{document.removeEventListener("click",r)})}}}])},15006(n,e,t){function o(n,e,t,o,i,r){n.repositoryId=t.repositoryId,n.endpointConfiguration=t.endpointConfiguration,n.endpointConfigurationSettings=void 0,n.endpointConfigurationSettingsValid=!1,n.loadingEndpointConfigurationSettings=!1,n.savingEndpointSettings=!1,n.showAdvancedSettings=!1,n.ok=()=>{a()},n.cancel=()=>{e.dismiss("cancel")},n.handleValidityChange=e=>{n.endpointConfigurationSettingsValid=e},n.toggleAdvancedSettings=()=>{n.showAdvancedSettings=!n.showAdvancedSettings};const a=()=>{n.savingEndpointSettings=!0;const t=n.endpointConfiguration.toUpdateEndpointRequest(n.endpointConfigurationSettings);r.editEndpointConfiguration(n.repositoryId,n.endpointConfiguration.endpointId,t.getUpdateEndpointSettingsRequest()).then(()=>{e.close(),i.success(o.instant("graphql.endpoints_management.endpoint_configuration_modal.messages.success_saving_configuration"))}).catch(n=>{i.error(getError(n),o.instant("graphql.endpoints_management.endpoint_configuration_modal.messages.error_saving_configuration"))}).finally(()=>{n.savingEndpointSettings=!1})};n.loadingEndpointConfigurationSettings=!0,r.getGraphqlEndpointConfigurationSettings(n.repositoryId,n.endpointConfiguration.endpointId).then(e=>{n.endpointConfigurationSettings=e}).catch(n=>{i.error(getError(n))}).finally(()=>{n.loadingEndpointConfigurationSettings=!1})}t(6861),t(95113),t(19115),angular.module("graphdb.framework.graphql.controllers.graphql-endpoint-configuration-modal",["graphdb.framework.core.services.graphql-service","graphdb.framework.core.directives.dynamic-form","graphdb.framework.core.directives.multiselect-dropdown"]).controller("GraphqlEndpointConfigurationModalController",o),o.$inject=["$scope","$uibModalInstance","data","$translate","toastr","GraphqlService"]}};
//# sourceMappingURL=15006.dccaed42fd5a90289730.bundle.js.map