export const __webpack_esm_id__=6336;export const __webpack_esm_ids__=[6336,28904,44574,85256];export const __webpack_esm_modules__={6336(e,t,n){n(85256);var s=n(44574),r=n(79069);function o(e){const t=(t,n)=>e.getConnectors(t,n).then(e=>(0,s.i)(e.data)),n=(t,n,r)=>e.hasConnector(encodeURIComponent(t),n,r).then(e=>(0,s.M)(e.data));return{getConnectorTypes:t,getConnectorsByType:n,getConnectorPrefixByName:(e,n,s)=>t(n,s).then(t=>{const n=t.getConnectorByName(e);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(e,t,s)=>n(e,t,s).then(e=>e.connectors.map(e=>new r.rx({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",o),o.$inject=["ConnectorsRestService"]},28904(e,t,n){n.d(t,{F4:()=>o,Fe:()=>c,TZ:()=>r,s_:()=>s});class s{constructor(e={}){this._connectors=e.connectors||[]}getConnectorByName(e){return this._connectors.find(t=>t.name===e)}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class r{constructor(e){this._name=e.name,this._prefix=e.prefix}get name(){return this._name}set name(e){this._name=e}get prefix(){return this._prefix}set prefix(e){this._prefix=e}}class o{constructor(e=[]){this._connectors=e.connectors}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class c{constructor(e){this._name=e.name,this._settings=new i(e)}get settings(){return this._settings}set settings(e){this._settings=e}get name(){return this._name}set name(e){this._name=e}}class i{constructor(e){this._settings=e.values||{}}get settings(){return this._settings}set settings(e){this._settings=e}}},85256(){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];const e="rest/connectors";function t(t){return{getConnectors:function(n,s){return n?t.get(e,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":s}}):t.get(e)},initConnector:function(n){return t.get(`${e}/options?prefix=${n}`)},hasConnector:function(n,s,r){return s?t.get(`${e}/existing?prefix=${n}`,{headers:{"X-GraphDB-Repository":s,"X-GraphDB-Repository-Location":r}}):t.get(`${e}/existing?prefix=${n}`)},checkConnector:function(n){return t.post(`${e}/check`,n,{headers:{"Content-Type":"text/plain"}})}}}},44574(e,t,n){n.d(t,{M:()=>o,i:()=>r});var s=n(28904);const r=e=>{const t=new s.s_;return e?(t.connectors=Object.keys(e).map(t=>new s.TZ({name:t,prefix:e[t]})),t):t},o=e=>{const t=new s.F4;return e?(t.connectors=e.map(e=>new s.Fe(e)),t):t}}};
//# sourceMappingURL=6336.48c3e5edddc3e0784aa2.bundle.js.map