UNPKG

graphdb-workbench

Version:
2 lines 21.3 kB
export const __webpack_id__=14874;export const __webpack_ids__=[19,3588,5783,6018,14874,22037,28069,34894,38412,40780,60260,69091,73779,74081,77512,90275,95683];export const __webpack_modules__={19:(e,t,n)=>{n.r(t),n.d(t,{UpdateEndpointRequest:()=>i});class i{_id;_label;_description;_active;_default;_options;constructor(e){this._id=e.id,this._label=e.label,this._description=e.description,this._active=e.active,this._default=e.default,this._options=e.options}getUpdateDefaultEndpointRequest(){return{default:this.default}}getUpdateEndpointActiveStateRequest(){return{active:!this.active}}getUpdateEndpointSettingsRequest(){return{options:this.options?this.options.toFlatJSON():null}}set id(e){this._id=e}get id(){return this._id}set label(e){this._label=e}get label(){return this._label}set description(e){this._description=e}get description(){return this._description}set active(e){this._active=e}get active(){return this._active}set default(e){this._default=e}get default(){return this._default}set options(e){this._options=e}get options(){return this._options}}},3588:(e,t,n)=>{n.r(t),n.d(t,{FIELD_TYPE:()=>i});const i={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json",SELECT:"select",MULTI_SELECT:"multi_select"}},5783:(e,t,n)=>{n.r(t),n.d(t,{EndpointGenerationReport:()=>s,EndpointGenerationReportList:()=>i});class i{_reports;constructor(e){this._reports=e||[]}getReport(e){return this._reports.find(t=>t.endpointId===e)}get reports(){return this._reports}set reports(e){this._reports=e}}class s{_endpointId;_endpointURI;_active;_default;_label;_description;_lastModified;_objectsCount;_propertiesCount;_warnings;_errors;_messages;_createdSuccessfully;constructor(e){this._endpointId=e.endpointId||"",this._endpointURI=e.endpointURI||"",this._active=e.active||!1,this._default=e.default||!1,this._label=e.label||"",this._description=e.description||"",this._lastModified=e.lastModified||"",this._objectsCount=e.objectsCount||0,this._propertiesCount=e.propertiesCount||0,this._warnings=e.warnings||0,this._errors=e.errors||0,this._messages=e.messages||[],this._createdSuccessfully=this._active&&0===this._errors}toJSON(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointURI(){return this._endpointURI}set endpointURI(e){this._endpointURI=e}get active(){return this._active}set active(e){this._active=e}get default(){return this._default}set default(e){this._default=e}get label(){return this._label}set label(e){this._label=e}get description(){return this._description}set description(e){this._description=e}get lastModified(){return this._lastModified}set lastModified(e){this._lastModified=e}get objectsCount(){return this._objectsCount}set objectsCount(e){this._objectsCount=e}get propertiesCount(){return this._propertiesCount}set propertiesCount(e){this._propertiesCount=e}get warnings(){return this._warnings}set warnings(e){this._warnings=e}get errors(){return this._errors}set errors(e){this._errors=e}get messages(){return this._messages}set messages(e){this._messages=e}get createdSuccessfully(){return this._createdSuccessfully}set createdSuccessfully(e){this._createdSuccessfully=e}}},6018:(e,t,n)=>{n.r(t),n.d(t,{endpointInfoModelMapper:()=>o,endpointsInfoListMapper:()=>r});var i=n(74081),s=n(90275);const r=(e,t)=>{if(!e||!e.endpoints)return new i.GraphqlEndpointsInfoList;const n=e.endpoints.map(e=>o(e,t));return new i.GraphqlEndpointsInfoList(n)},o=(e,t)=>{if(e)return new i.GraphqlEndpointInfo({endpointId:e.id,endpointURI:(0,s.resolveGraphqlEndpoint)(t,e.id),label:e.label,description:e.description,default:e.default,active:e.active,lastModified:e.lastModified,objectsCount:e.objectsCount,propertiesCount:e.propertiesCount,warnings:e.warnings,errors:e.errors})}},11201:(e,t,n)=>{n.r(t),n.d(t,{graphqlSchemaShapesMapper:()=>s,shapeModelMapper:()=>r});var i=n(29646);const s=e=>{if(!e||!e.shapes)return new i.GraphqlSchemaShapes([]);const t=e.shapes.map(e=>r(e));return new i.GraphqlSchemaShapes(t)},r=e=>{if(e)return new i.GraphqlSchemaShape({id:e.id,name:e.name,label:e.label,description:e.description})}},14874:(e,t,n)=>{n.r(t),n(38412);var i=n(69091),s=n(6018),r=n(11201),o=n(40780),a=n(95683),p=(n(10406),n(17268)),d=n(28379),l=n(16014),c=n(34894);function h(e){return{getEndpointsCountToGenerate:e=>{let t=0;return e||(t=0),e.generateFromGraphqlSchemaShapes()&&(t=e.getSelectedGraphqlSchemaShapesCount()),e.generateFromShaclShapes()&&(t=1),t},getGenerateEndpointsOverview:e=>{if(!e)return new l.GraphqlEndpointOverviewList;const t=e.getSelectedGraphqlSchemaShapesOverview();return new l.GraphqlEndpointOverviewList(t)},getEndpoints:t=>e.getEndpoints(t).then(e=>(0,i.endpointListMapper)(e.data)),getEndpointsAsSelectMenuOptions:t=>e.getEndpoints(t).then(e=>(0,i.endpointsToSelectMenuOptionsMapper)(e.data,t)),getEndpointsInfo:t=>e.getEndpointsInfo(t).then(e=>(0,s.endpointsInfoListMapper)(e.data,t)),getGraphqlSchemaShapes:t=>e.getGraphqlSchemaShapes(t).then(e=>(0,r.graphqlSchemaShapesMapper)(e.data)),getPrefixListAsSelectOptions:t=>e.getPrefixes(t).then(e=>(0,o.prefixModelToSelectMenuOptionsMapper)(e.data)),getShaclShapeGraphs:t=>e.getShaclShapeGraphs(t).then(e=>(0,a.shaclShapeGraphListOptionsMapper)(e.data)),getGraphqlGenerationSettings:()=>e.getGraphqlGenerationSettings().then(e=>{const t=(0,p.dynamicFormModelMapper)(e.data);return new d.GraphqlEndpointConfigurationSettings(t)}),getGraphqlEndpointConfigurationSettings:(t,n)=>e.getGraphqlEndpointConfigurationSettings(t,n).then(e=>{const t=(0,p.dynamicFormModelMapper)(e.data);return new d.GraphqlEndpointConfigurationSettings(t)}),getEndpointConfiguration:(t,n)=>e.getEndpointConfiguration(t,n),getEndpointConfigurationReport:(t,n)=>e.getEndpointConfiguration(t,n).then(e=>(0,c.endpointGenerationReportListMapper)([e.data],t)),editEndpointConfiguration:(t,n,i)=>e.editEndpointConfiguration(t,n,i).then(e=>(0,s.endpointInfoModelMapper)(e.data,t)),deleteEndpoint:(t,n)=>e.deleteEndpoint(t,n),generateEndpointFromGraphqlShapes:(t,n)=>e.generateEndpointFromGraphqlShapes(t,n.toJSON()).then(e=>(0,c.endpointGenerationReportListMapper)(e.data,t)),generateEndpointFromOwl:(t,n)=>e.generateEndpointFromOwl(t,n.toJSON()).then(e=>(0,c.endpointGenerationReportListMapper)([e.data],t)),exportEndpointDefinition:(t,n)=>e.exportEndpointDefinition(t,n).then(e=>{const t=e.data,i=e.headers()["content-disposition"];let s=`endpoint-${n}-definition`;return i&&(s=i.split("filename=")[1],s=s.replace(/"/g,"")),{data:t,filename:s}}),importEndpointDefinition:(t,n)=>e.importEndpointDefinition(t,n),deleteEndpointGenerationReport:(t,n)=>e.deleteEndpointGenerationReport(t,n)}}angular.module("graphdb.framework.core.services.graphql-service",["graphdb.framework.rest.graphql.service"]).factory("GraphqlService",h),h.$inject=["GraphqlRestService"]},17268:(e,t,n)=>{n.r(t),n.d(t,{dynamicFormModelMapper:()=>p});var i=n(38940),s=n(868),r=n(28379),o=n(22037),a=n(3588);const p=e=>{if(!e||!e.configs)return new o.DynamicFormModel;const t=l(e.configs);return d(t)},d=e=>{const t=[];return e.forEach(e=>{if(!e.group)return void t.push(e);let n=t.find(t=>t.groupId===e.group);n||(n=new o.DynamicFormGroup({groupId:e.group}),t.push(n)),(e.hidden?n.hiddenFields:n.fields).push(e)}),new o.DynamicFormModel(t)},l=e=>e.map(e=>{let t=h(e),n=e.values,s=[];return t!==a.FIELD_TYPE.MULTI_SELECT&&t!==a.FIELD_TYPE.SELECT||(n=n.map(t=>{const n=Array.isArray(e.value)&&e.value.indexOf(t)>-1||"string"==typeof e.value&&e.value===t,r=new i.SelectMenuOptionsModel({label:t,value:t,selected:n});return n&&s.push(r),r}),t===a.FIELD_TYPE.SELECT?e.value=s[0]?s[0]:[]:t===a.FIELD_TYPE.MULTI_SELECT&&(e.value=s)),c(e,t,n)}),c=(e,t,n)=>new s.DynamicFormField({key:e.key,label:e.label,description:e.description,type:t,collection:e.collection||!1,value:e.value,values:n,regex:e.regex,required:e.required||!1,group:e.group,hidden:e.hidden}),h=e=>{let t;return e.type===r.CONFIG_TYPE.TEXT?t=a.FIELD_TYPE.TEXT:e.type===r.CONFIG_TYPE.BOOLEAN?t=a.FIELD_TYPE.BOOLEAN:e.type===r.CONFIG_TYPE.JSON?t=a.FIELD_TYPE.JSON:e.type===r.CONFIG_TYPE.STRING&&(t=e.values&&e.values.length>0?e.collection?a.FIELD_TYPE.MULTI_SELECT:a.FIELD_TYPE.SELECT:a.FIELD_TYPE.STRING),t}},22037:(e,t,n)=>{n.r(t),n.d(t,{DynamicFormGroup:()=>s,DynamicFormModel:()=>i});class i{_models=[];constructor(e){this._models=e||[]}get models(){return this._models}set models(e){this._models=e}}class s{_groupId="";_fields=[];_hiddenFields=[];constructor(e){this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||""}get fields(){return this._fields}set fields(e){this._fields=e}get hiddenFields(){return this._hiddenFields}set hiddenFields(e){this._hiddenFields=e}get groupId(){return this._groupId}set groupId(e){this._groupId=e}}},28069:(e,t,n)=>{n.r(t),n.d(t,{Prefix:()=>s,PrefixList:()=>i});class i{_prefixes;constructor(e){this._prefixes=e||[]}get prefixes(){return this._prefixes}set prefixes(e){this._prefixes=e}}class s{_prefix;_namespace;_sources;constructor(e){this._prefix=e.prefix,this._namespace=e.namespace,this._sources=e.sources}}},34894:(e,t,n)=>{n.r(t),n.d(t,{endpointGenerationReportListMapper:()=>r,endpointGenerationReportMapper:()=>o,importEndpointDefinitionReportMapper:()=>a});var i=n(5783),s=n(90275);const r=(e,t)=>{if(!e)return new i.EndpointGenerationReportList;const n=e.map(e=>o(e,t));return new i.EndpointGenerationReportList(n)},o=(e,t)=>new i.EndpointGenerationReport({endpointId:e.id,endpointURI:(0,s.resolveGraphqlEndpoint)(t,e.id),active:e.active,default:e.default,label:e.label,description:e.description,lastModified:e.lastModified,objectsCount:e.objectsCount,propertiesCount:e.propertiesCount,warnings:e.warnings,errors:e.errors,messages:e.messages}),a=(e,t,n)=>{const r=e.messages?e.messages.errors?.length:0,o=e.messages?e.messages.warnings?.length:0;return new i.EndpointGenerationReport({endpointId:e.id,endpointURI:(0,s.resolveGraphqlEndpoint)(n,e.id),warnings:o,errors:r,messages:e.messages})}},38412:(e,t,n)=>{n.r(t);var i=n(69289),s=n(73779);angular.module("graphdb.framework.rest.graphql.service",[]).factory("GraphqlRestService",o),o.$inject=["$http","Upload"];const r=!1;function o(e,t){const n=new s.GraphqlRestServiceMock;return{getEndpoints:t=>r?n.getEndpointsMock(t):e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/endpoints`),getEndpointsInfo:(t,s)=>r?n.getEndpointsInfoMock(t):e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/list`),getGraphqlSchemaShapes:t=>r?n.getGraphqlSchemaShapesMock(t):e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/graphql_shapes`),getPrefixes:t=>r?n.getPrefixesMock(t):e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/prefixes`),getShaclShapeGraphs:t=>r?n.getShaclGraphsMock(t):e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/shacl_graphs`),getGraphqlGenerationSettings:()=>r?n.getGraphqlGenerationSettingsMock():e.get(`${i.REPOSITORIES_ENDPOINT}/graphql/manage/generate/config`),getGraphqlEndpointConfigurationSettings:(t,s)=>r?n.getEndpointConfigurationMock():e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/endpoints/${s}/config`),getEndpointConfiguration:(t,s)=>r?n.getEndpointConfiguration():e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/endpoints/${s}`),editEndpointConfiguration:(t,s,o)=>r?n.saveEndpointConfigurationMock():e.post(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/endpoints/${s}`,o),deleteEndpoint:(t,s)=>r?n.deleteEndpointMock(t,s):e.delete(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/endpoints/${s}`),generateEndpointFromGraphqlShapes:(t,s)=>r?n.generateEndpointFromGraphqlShapesMock(s):e.post(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/generate/graphql_shapes`,s),generateEndpointFromOwl:(t,s)=>r?n.generateEndpointFromOwl(s):e.post(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/generate/owl_shacl`,s),exportEndpointDefinition:(t,n)=>e.get(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/endpoints/${n}/export`,{responseType:"blob"}),importEndpointDefinition:(e,n)=>t.http({url:`${i.REPOSITORIES_ENDPOINT}/${e}/graphql/manage/endpoints/import`,data:n,headers:{"Content-Type":void 0}}),deleteEndpointGenerationReport:(t,n)=>e.patch(`${i.REPOSITORIES_ENDPOINT}/${t}/graphql/manage/endpoints/${n}/messages`)}}},40780:(e,t,n)=>{n.r(t),n.d(t,{prefixListMapper:()=>r,prefixModelToSelectMenuOptionsMapper:()=>a});var i=n(28069),s=n(38940);const r=e=>{if(!e&&!e.prefixes)return new i.PrefixList;const t=e.prefixes.map(e=>o(e));return new i.PrefixList(t)},o=e=>{if(e)return new i.Prefix({prefix:e.prefix,namespace:e.namespace,sources:e.sources})},a=e=>e&&e.prefixes?e.prefixes.map(e=>new s.SelectMenuOptionsModel({value:e.prefix,label:e.prefix,selected:!1})):[]},60260:(e,t,n)=>{n.r(t),n.d(t,{GraphqlEndpoint:()=>i,GraphqlEndpointList:()=>s});class i{constructor(e){this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._active=e.active,this._default=e.default}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointURI(){return this._endpointURI}set endpointURI(e){this._endpointURI=e}get default(){return this._default}set default(e){this._default=e}get active(){return this._active}set active(e){this._active=e}}class s{constructor(e){this._endpoints=e||[]}get endpoints(){return this._endpoints}set endpoints(e){this._endpoints=e}}},69091:(e,t,n)=>{n.r(t),n.d(t,{endpointListMapper:()=>o,endpointModelMapper:()=>a,endpointsToSelectMenuOptionsMapper:()=>p});var i=n(60260),s=n(38940),r=n(90275);const o=e=>{if(!e||!e.endpoints)return new i.GraphqlEndpointList;const t=e.endpoints.map(e=>a(e));return new i.GraphqlEndpointList(t)},a=e=>{if(e)return new i.GraphqlEndpoint({endpointId:e.endpointId,endpointURI:e.endpointURI,active:e.active,default:e.default})},p=(e,t)=>e&&e.length?e.map(e=>new s.SelectMenuOptionsModel({value:(0,r.resolveGraphqlEndpoint)(t,e.id),label:e.id,selected:e.default,data:{active:e.active,default:e.default}})):[]},73779:(e,t,n)=>{n.r(t),n.d(t,{GraphqlRestServiceMock:()=>s});var i=n(98980);class s{getEndpointsMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,i.cloneDeep)(r)}),200)})}getEndpointsInfoMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,i.cloneDeep)(o)}),200)})}getGraphqlSchemaShapesMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,i.cloneDeep)(a)}),200)})}getEndpointConfigurationMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,i.cloneDeep)(p)}),200)})}}const r={repository:"swapi",endpoints:[{id:"swapi",graphQL:"/rest/repositories/swapi/graphql/swapi",active:!0,default:!0},{id:"film-restricted",graphQL:"/rest/repositories/swapi/graphql/film-restricted",active:!0,default:!1},{id:"swapi-charcters",graphQL:"/rest/repositories/swapi/graphql/swapi-charcters",active:!1,default:!1}]},o={endpoints:[{id:"gqlendpoint1",endpointId:"swapi",endpointURI:"/rest/repositories/swapi/graphql/swapi",label:"SWAPI GraphQL endpoint",description:"SWAPI GraphQL endpoint description",default:!1,active:!0,lastModified:"2025-01-28",objects_count:10,properties_count:120,warnings:0,errors:0,status:""},{id:"gqlendpoint2",endpointId:"film-restricted",endpointURI:"/rest/repositories/swapi/graphql/film-restricted",label:"SWAPI GraphQL endpoint with restricted film relations",description:"SWAPI GraphQL endpoint with restricted film relations description",default:!0,active:!0,lastModified:"2025-01-28",objects_count:13,properties_count:133,warnings:0,errors:0,status:""},{id:"gqlendpoint3",endpointId:"swapi-characters",endpointURI:"/rest/repositories/swapi/graphql/swapi-characters",label:"SWAPI GraphQL endpoint for swapi characters",description:"SWAPI GraphQL endpoint for swapi characters description",default:!1,active:!1,lastModified:"2025-01-28",objects_count:3,properties_count:20,warnings:0,errors:0,status:""}]},a={shapes:[{id:"https://schema.ubs.net/schema/AIModelSchema",name:"AI Model Schema",label:"AI Model Schema",description:null},{id:"https://schema.ubs.net/schema/AIProductSchema",name:"AI Product Schema",label:"AI Product Schema",description:null},{id:"https://schema.ubs.net/schema/DatabaseSchema",name:null,label:"Database Schema",description:null},{id:"https://schema.ubs.net/schema/BbsPermissionSchema",name:null,label:"BBS Permissions",description:null},{id:"https://schema.ubs.net/schema/DataProductBasicSchema",name:null,label:"Data Product Basic Schema No Policy and No Provenance",description:null},{id:"https://schema.ubs.net/schema/DataQualityMetricSchema",name:null,label:"Data Quality Metric Schema",description:"This is the basic schema for DQV initiated from Metric class"},{id:"https://schema.ubs.net/schema/DataQualityObservationSchema",name:null,label:"Data Quality Observation Schema",description:null},{id:"https://schema.ubs.net/schema/DatasetSchema",name:null,label:"Dataset Schema",description:null},{id:"https://schema.ubs.net/schema/ApplicationSchema",name:null,label:"Application Schema",description:null},{id:"https://schema.ubs.net/schema/PolicyBasicSchema",name:null,label:"Policy Basic Schema",description:null},{id:"https://schema.ubs.net/schema/DataQualityMeasurementSchema",name:null,label:"Data Quality Measurement Schema",description:null},{id:"https://schema.ubs.net/schema/DataProductFullSchema",name:null,label:"Data Product Schema where datasets can also be defined",description:null},{id:"https://schema.ubs.net/schema/ValidationSchema",name:null,label:"Validation Schema",description:null},{id:"https://schema.ubs.net/schema/WMAAccountSchema",name:null,label:"WMA Account Schema",description:null}]},p={configs:[{key:"str",label:"String",type:"string",collection:!1,value:"strValue",values:[],regex:"^(?:ALL:?)?(?:(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER)?(?:,(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER))*)$"},{key:"bool",label:"Boolean value",description:"",type:"boolean",collection:!1,value:!1,values:[]},{key:"select",label:"Select",type:"",collection:!1,value:"Two",values:["One","Two","Three"]},{key:"multiselect",label:"Multiselect",type:"",collection:!0,value:["Angular","JavaScript"],values:["Angular","JavaScript","WebDevelopment"]},{key:"json",label:"JSON",type:"json",collection:!1,value:'{"foo": "bar"}',values:[],required:!0}]}},74081:(e,t,n)=>{n.r(t),n.d(t,{GraphqlEndpointInfo:()=>s,GraphqlEndpointsInfoList:()=>r});var i=n(19);class s{_endpointId;_endpointURI;_label;_description;_default;_active;_lastModified;_objectsCount;_propertiesCount;_warnings;_errors;_createdSuccessfully;constructor(e={}){this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._label=e.label,this._description=e.description,this._default=e.default,this._active=e.active,this._lastModified=e.lastModified,this._objectsCount=e.objectsCount,this._propertiesCount=e.propertiesCount,this._warnings=e.warnings,this._errors=e.errors,this._createdSuccessfully=0===this._errors}toUpdateEndpointRequest(e){return new i.UpdateEndpointRequest({id:this.endpointId,label:this.label,description:this.description,active:this.active,default:this.default,options:e})}get createdSuccessfully(){return this._createdSuccessfully}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointURI(){return this._endpointURI}set endpointURI(e){this._endpointURI=e}get label(){return this._label}set label(e){this._label=e}get description(){return this._description}set description(e){this._description=e}get default(){return this._default}set default(e){this._default=e}get active(){return this._active}set active(e){this._active=e}get lastModified(){return this._lastModified}set lastModified(e){this._lastModified=e}get objectsCount(){return this._objectsCount}set objectsCount(e){this._objectsCount=e}get propertiesCount(){return this._propertiesCount}set propertiesCount(e){this._propertiesCount=e}get warnings(){return this._warnings}set warnings(e){this._warnings=e}get errors(){return this._errors}set errors(e){this._errors=e}}class r{_originalEndpointsList;_endpoints;constructor(e){this._originalEndpointsList=e||[],this._endpoints=e||[]}updateEndpoint(e){const t=this._endpoints.findIndex(t=>t.endpointId===e.endpointId);-1!==t&&(this._endpoints[t]=e)}filter(e){this._endpoints=this._originalEndpointsList.filter(t=>t.endpointId.toLowerCase().includes(e.toLowerCase())||t.label?.toLowerCase().includes(e.toLowerCase()))}findDefaultEndpoint(){return this._endpoints.find(e=>e.default)}get endpoints(){return this._endpoints}set endpoints(e){this._endpoints=e}}},77512:(e,t,n)=>{n.r(t),n.d(t,{endpointUrl:()=>i});const i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},90275:(e,t,n)=>{n.r(t),n.d(t,{resolveGraphqlEndpoint:()=>r,resolvePlaygroundUrlWithEndpoint:()=>o});var i=n(77512),s=n(69289);const r=(e,t)=>`${s.REPOSITORIES_ENDPOINT}/${e}/graphql/${t}`,o=e=>`${i.endpointUrl.PLAYGROUND}?endpointId=${e}`},95683:(e,t,n)=>{n.r(t),n.d(t,{shaclShapeGraphListOptionsMapper:()=>s});var i=n(82854);const s=e=>{if(!e||!e.shacl_graphs)return new i.GraphListOptions;const t=e.shacl_graphs.map(e=>new i.GraphOption({uri:e,label:e,id:e}));return new i.GraphListOptions(t)}}}; //# sourceMappingURL=14874.17bc671b6ff6123b9eb1.bundle.js.map