export const __webpack_esm_id__=97883;export const __webpack_esm_ids__=[19115,54211,90207,97883];export const __webpack_esm_modules__={68152(e,n,t){var o=t(20575);function r(e){return{restrict:"E",scope:{field:"=",form:"=",translationKeyPrefix:"="},templateUrl:"js/angular/core/directives/dynamic-form/templates/form-field-template.html",link:function(e){e.FIELD_TYPE=o.w}}}angular.module("graphdb.framework.core.directives.dynamic-form-field",[]).directive("dynamicFormField",r),r.$inject=[]},95113(e,n,t){t(68152);var o=t(20575),r=t(71315);angular.module("graphdb.framework.core.directives.dynamic-form",["graphdb.framework.core.directives.dynamic-form-field"]).directive("dynamicForm",a),a.$inject=[];const i=r.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(e,n){e.FIELD_TYPE=o.w,e.formCtrl=void 0,e.showAllFields=e.showAllFields||!1,(()=>{const t=n.find("form").controller("form");if(!t)return void i.error("Form controller not found!");e.formCtrl=t;const o=t.$setValidity;e.formCtrl.$setValidity=function(n,r,i){o.call(t,n,r,i),e.onValidityChange&&e.onValidityChange({valid:t.$valid})}})()}}}},19115(){angular.module("graphdb.framework.core.directives.multiselect-dropdown",[]).directive("multiselectDropdown",["$translate",function(e){return{restrict:"E",require:"ngModel",scope:{options:"=",dropdownLabel:"=?"},templateUrl:"js/angular/core/directives/multiselect-dropdown/templates/multiselect-dropdown.html",link:function(n,t,o,r){n.isOpen=!1;const i=e=>{t[0].contains(e.target)||n.$apply(()=>{n.isOpen=!1})};n.toggleDropdown=function(){n.isOpen=!n.isOpen},n.toggleSelection=function(e){e.selected=!e.selected,(()=>{const e=n.options.filter(function(e){return e.selected});r.$setViewValue(e)})()},n.getSelectedText=function(){const t=n.options.filter(e=>e.selected);return 0===t.length?n.dropdownLabel||e.instant("common.select"):t.map(e=>e.label).join(", ")},r.$render=function(){angular.isArray(r.$viewValue)&&n.options.forEach(function(e){e.selected=r.$viewValue.some(function(n){return n.value===e.value})})},document.addEventListener("click",i),n.$on("$destroy",()=>{document.removeEventListener("click",i)})}}}])},90207(e,n,t){function o(e,n,t,o){const r="generation-report.json";e.endpointReport=void 0,e.downloadReport=()=>{const n=JSON.stringify(e.endpointReport.toJSON(),null,2),t=new Blob([n],{type:"application/json"}),o=URL.createObjectURL(t),i=document.createElement("a");i.href=o,i.download=e.endpointReport.endpointId?`${e.endpointReport.endpointId}-${r}`:r,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)},e.deleteReport=()=>{o.deleteEndpointGenerationReport(e.endpointReport),e.close()},e.close=()=>{n.dismiss("cancel")},e.endpointReport=t.endpointReport}t(6861),t(95113),t(19115),angular.module("graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal",["graphdb.framework.core.services.graphql-service"]).controller("EndpointGenerationResultFailureModalController",o),o.$inject=["$scope","$uibModalInstance","data","GraphqlContextService"]},97883(e,n,t){var o=t(94603),r=(t(90207),t(86993));function i(e,n,t,i,a,l){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-generate-endpoint.html",scope:{stepDefinition:"="},link:n=>{n.endpointConfiguration=void 0,n.endpointsCountToGenerate=0,n.endpointsOverview=void 0,n.activeRepository=i.getActiveRepository(),n.generateFromGraphqlSchemaShapes=!1,n.generatingEndpoint=!1,n.generationReport=void 0,n.endpointUrl=r.P,n.back=()=>{l.previousEndpointCreationStep()},n.cancel=()=>{const n=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),o=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(n,o,()=>{l.cancelEndpointCreation()})},n.generateEndpoint=()=>{n.generatingEndpoint=!0,n.generationReport=void 0,l.generateEndpoint()},n.finishGenerationWorkflow=()=>{l.finishGenerationWorkflow()},n.showEndpointReport=e=>{l.openEndpointGenerationReport(e)},n.exploreInPlayground=e=>{l.exploreEndpointInPlayground(e)};const d=[];d.push(l.subscribe(o.H.ENDPOINT_GENERATED,e=>{n.generatingEndpoint=!1,n.generationReport=e})),n.$on("$destroy",()=>{d.forEach(e=>e())}),n.endpointConfiguration=l.getNewEndpoint(),n.generateFromGraphqlSchemaShapes=n.endpointConfiguration.hasSelectedGraphqlSchemaShapes(),n.endpointsCountToGenerate=a.getEndpointsCountToGenerate(n.endpointConfiguration),n.endpointsOverview=a.getGenerateEndpointsOverview(n.endpointConfiguration)}}}angular.module("graphdb.framework.graphql.directives.generate-endpoint",["graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal"]).directive("generateEndpoint",i),i.$inject=["ModalService","$uibModal","$translate","$repositories","GraphqlService","GraphqlContextService"]}};
//# sourceMappingURL=97883.8bcb392d720d51332c83.bundle.js.map