import{d as a,y as l}from"./lodash-ZyeDnt0e.js";import{o as y}from"./object_hash-DuPyIO4t.js";import{b as m,a as b}from"./index-OtVJl4GC.js";import{b as c}from"./model-Cx9iH8L7.js";function C(n,u,t){const{repoConnection:s,currentQuery:r}=m(),{getOpenedQueries:i}=b(),o=i(s);return c(n,[r,y(a(o,[r,"remote"])||""),t],{transformResponse:e=>Array.isArray(e)?{names:["Subject","Predicate","Object"],values:e,_queryType:"triples"}:typeof e=="boolean"?{values:e,_queryType:"boolean"}:{...e,_queryType:"sparql"},abortSignal:a(o,[r,"abortController","signal"]),onCancel:()=>{l(o,[r,"abortController"],new AbortController)},setCurrentQueryType:u,resultType:t})}export{C as u};
