import{b1 as o,j as e,h as i,S as d,q as c,t as u,m as x}from"./vendor-ClLR6ncd.js";import{L as y}from"./index-OtVJl4GC.js";import"./lodash-ZyeDnt0e.js";function g(){var a;const{queryResult:s,isTableFetching:n}=o();if(n)return e.jsx(y,{});const t=(a=s==null?void 0:s["referenced-examples"])==null?void 0:a.filter(r=>r&&r["nl-query"]&&r["sparql-query"]);return!Array.isArray(t)||t.length===0?e.jsx(i,{sx:{color:"text.disabled",p:2,textAlign:"center"},children:"No results"}):e.jsxs(d,{p:2,spacing:1,children:[e.jsx(i,{variant:"subtitle2",children:"To generate SPARQL query following examples were used:"}),e.jsx(c,{sx:{pl:2,listStyleType:"disc"},children:t.map(({"nl-query":r,"sparql-query":l},p)=>e.jsx(u,{disableGutters:!0,disablePadding:!0,sx:{display:"list-item"},children:e.jsx(x,{primary:`NL query: ${r}`,secondaryTypographyProps:{whiteSpace:"pre-wrap"},secondary:`SPARQL query:
${l}`})},p))})]})}export{g as default};
