@ltm-blueverse/alpha-hub-studio 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +22 -0
  2. package/package.json +23 -0
  3. package/static/apple-touch-icon.png +0 -0
  4. package/static/assets/DecisionWorkspace-DG6zPNls.js +1 -0
  5. package/static/assets/DiffMergeWorkspace-C8yIdDC7.js +1 -0
  6. package/static/assets/EntityResolutionTab-RBysMLhB.js +6 -0
  7. package/static/assets/GraphInspectorPanel-Bbrbhd03.js +1 -0
  8. package/static/assets/GraphWorkspace-AxTFEhNP.js +1116 -0
  9. package/static/assets/ImportExportWorkspace-BK3TofDv.js +6 -0
  10. package/static/assets/KGOverviewTab-D9EWKL_n.js +1 -0
  11. package/static/assets/LineageDiagram-XxBVa1Ij.js +27 -0
  12. package/static/assets/MarkdownContentViewer-Chx4ysCK.js +45 -0
  13. package/static/assets/MemoryWorkspace-CIjaTN_S.js +6 -0
  14. package/static/assets/OntologySummaryTab-NJ3ZrkoJ.js +1 -0
  15. package/static/assets/ReasoningWorkspace-B127Rd-S.js +19 -0
  16. package/static/assets/RegistryTab-BE2-yKLC.js +11 -0
  17. package/static/assets/SparqlWorkspace-RwPj2YK7.js +26 -0
  18. package/static/assets/TimelinePanel-DmtiXgmN.js +36 -0
  19. package/static/assets/VocabularyWorkspace-YF9waL5N.js +44 -0
  20. package/static/assets/book-open-BqEIxx1e.js +6 -0
  21. package/static/assets/chevron-right-CiEuNwKq.js +11 -0
  22. package/static/assets/circle-check-BToWKwbO.js +6 -0
  23. package/static/assets/copy-BfQXGhHP.js +6 -0
  24. package/static/assets/download-gQOgYz3q.js +6 -0
  25. package/static/assets/external-link-DqNu6T-f.js +6 -0
  26. package/static/assets/file-text-Bbz-r0FQ.js +6 -0
  27. package/static/assets/git-branch-B8yDcUSY.js +6 -0
  28. package/static/assets/graph-vendor-CUDaIrp7.js +312 -0
  29. package/static/assets/graphTheme-DNKLxzKZ.js +6 -0
  30. package/static/assets/hero-B5GXDCBc.png +0 -0
  31. package/static/assets/index-Bt8w1Tz_.css +1 -0
  32. package/static/assets/index-C00aFykz.js +9 -0
  33. package/static/assets/index-DHWWI-uw.js +1730 -0
  34. package/static/assets/index-Dli_3Iwd.js +22 -0
  35. package/static/assets/index-DtC_GayB.js +16 -0
  36. package/static/assets/index-MVDNL3vw.js +127 -0
  37. package/static/assets/info-vaffNQOD.js +6 -0
  38. package/static/assets/layers-Cct6D_wK.js +6 -0
  39. package/static/assets/loader-circle-C8NUmtFx.js +6 -0
  40. package/static/assets/neighborhoodPanelPlugin-w1yJlm0A.js +1 -0
  41. package/static/assets/pencil-DYlEC6ri.js +6 -0
  42. package/static/assets/play-G1gyOk2a.js +6 -0
  43. package/static/assets/queries-CYtdSB4H.js +1 -0
  44. package/static/assets/query-vendor-BqVbYexz.js +34 -0
  45. package/static/assets/refresh-cw-CL9OXZ89.js +6 -0
  46. package/static/assets/registryStore-MVt_NgVV.js +1 -0
  47. package/static/assets/style-BZV40eAE.css +1 -0
  48. package/static/assets/style-D8TqSrGs.js +15 -0
  49. package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +1 -0
  50. package/static/assets/timeline-vendor-WyY-t3YQ.js +97 -0
  51. package/static/assets/timeline-vendor-lG7zfUUF.css +1 -0
  52. package/static/assets/trash-2-DiZNV6Gj.js +6 -0
  53. package/static/assets/x-DpqMYq96.js +6 -0
  54. package/static/favicon-32.png +0 -0
  55. package/static/favicon.svg +13 -0
  56. package/static/icons.svg +24 -0
  57. package/static/index.html +18 -0
@@ -0,0 +1,6 @@
1
+ import{b as P,j as o}from"./index-DHWWI-uw.js";import{a as s}from"./query-vendor-BqVbYexz.js";import{M as _,r as W}from"./MarkdownContentViewer-Chx4ysCK.js";import{G as t}from"./graphTheme-DNKLxzKZ.js";import{R as q}from"./refresh-cw-CL9OXZ89.js";import"./loader-circle-C8NUmtFx.js";import"./copy-BfQXGhHP.js";import"./pencil-DYlEC6ri.js";import"./x-DpqMYq96.js";import"./external-link-DqNu6T-f.js";/**
2
+ * @license lucide-react v1.8.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const F=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Y=P("brain",F),R=100;function Z(i,n){return!i||typeof i!="object"||!("detail"in i)?n:typeof i.detail=="string"?i.detail:n}async function v(i=0){const n=await fetch(`/api/memories?skip=${i}&limit=${R}`);if(!n.ok){const m=await n.json().catch(()=>null);throw new Error(Z(m,`Memory list failed (${n.status}).`))}return n.json()}async function J(i){const n=[];let m=0,u=0;const g=Math.max(i,R);for(;u<g;){const l=await v(u);if(n.push(...l.items),m=l.total,u=l.skip+l.items.length,l.items.length===0||u>=m)break}return{items:n,total:m,nextOffset:u}}function He({onDirtyChange:i}={}){const[n,m]=s.useState([]),[u,g]=s.useState(0),[l,w]=s.useState(0),[b,D]=s.useState(""),[B,S]=s.useState(""),[h,k]=s.useState(!0),[p,N]=s.useState(!1),[E,y]=s.useState(""),[A,C]=s.useState(!1),[z,L]=s.useState(0),c=s.useRef(0),f=s.useRef(0),M=s.useCallback(e=>{C(e),i?.(e)},[i]);s.useEffect(()=>{let e=!1;const r=++c.current,a=++f.current,x=()=>!e&&r===c.current&&a===f.current;return(async()=>{k(!0),N(!1),y("");try{const d=await v();if(!x())return;m(d.items),g(d.total),w(d.skip+d.items.length);const j=d.items[0];if(!j){D(""),S("");return}const $=await W({kind:"agent-memory",id:j.id});if(!x())return;D(j.id),S($.body)}catch(d){x()&&y(d instanceof Error?d.message:"Memories could not be loaded.")}finally{x()&&k(!1)}})(),()=>{e=!0,c.current+=1,f.current+=1}},[z]);const G=async e=>{if(e===b||A&&!window.confirm("Discard the unapplied Markdown draft and open another memory?"))return;const r=++f.current;k(!0),y("");try{const a=await W({kind:"agent-memory",id:e});if(r!==f.current)return;D(e),S(a.body)}catch(a){r===f.current&&y(a instanceof Error?a.message:"The memory could not be loaded.")}finally{r===f.current&&k(!1)}},T=s.useCallback(async()=>{if(p||l>=u)return;const e=++c.current;N(!0),y("");try{const r=await v(l);if(e!==c.current)return;m(a=>{const x=new Set(a.map(H=>H.id));return[...a,...r.items.filter(H=>!x.has(H.id))]}),g(r.total),w(r.skip+r.items.length)}catch(r){e===c.current&&y(r instanceof Error?r.message:"More memories could not be loaded.")}finally{e===c.current&&N(!1)}},[p,l,u]),I=s.useCallback(async()=>{const e=++c.current;try{const r=await J(l);if(e!==c.current)return;m(r.items),g(r.total),w(r.nextOffset)}catch{e===c.current&&y("Memory was applied, but its summary could not be refreshed.")}finally{e===c.current&&N(!1)}},[l]),O=s.useCallback(e=>{S(e.body),M(!1),m(r=>r.map(a=>a.id===e.resource.id?{...a,excerpt:e.body.replace(/\s+/g," ").slice(0,160)}:a)),I()},[M,I]);return o.jsxDEV("div",{style:K,children:[o.jsxDEV("aside",{style:Q,"aria-label":"Agent memories",children:[o.jsxDEV("div",{style:X,children:[o.jsxDEV("div",{children:[o.jsxDEV("div",{style:ee,children:"AgentMemory"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:202,columnNumber:13},this),o.jsxDEV("div",{style:oe,children:[n.length," of ",u," loaded"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:203,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:201,columnNumber:11},this),o.jsxDEV("button",{type:"button","aria-label":"Refresh memories",onClick:()=>L(e=>e+1),disabled:h||p||A,title:A?"Apply or cancel the current draft before refreshing":"Refresh memories",style:{...te,opacity:h||p||A?.55:1},children:o.jsxDEV(q,{size:14,"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:209,columnNumber:13},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:205,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:200,columnNumber:9},this),o.jsxDEV("div",{style:re,children:[n.map(e=>o.jsxDEV("button",{type:"button",onClick:()=>{G(e.id)},"aria-current":e.id===b?"true":void 0,style:{...se,...e.id===b?ne:{}},children:[o.jsxDEV("span",{style:ae,children:e.type},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:217,columnNumber:15},this),o.jsxDEV("span",{style:ie,children:e.id},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:218,columnNumber:15},this),o.jsxDEV("span",{style:le,children:e.excerpt||"Empty memory"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:219,columnNumber:15},this)]},e.id,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:213,columnNumber:32},this)),l<u?o.jsxDEV("button",{type:"button","aria-label":"Load more memories",onClick:()=>{T()},disabled:h||p,style:{...U,opacity:h||p?.55:1},children:p?"Loading…":"Load more"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:221,columnNumber:33},this):null,!h&&n.length===0?o.jsxDEV("div",{style:V,children:[o.jsxDEV(Y,{size:22,"aria-hidden":"true"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:228,columnNumber:15},this),o.jsxDEV("span",{children:"No AgentMemory items are available."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:229,columnNumber:15},this),o.jsxDEV("button",{type:"button",onClick:()=>L(e=>e+1),style:U,children:"Refresh"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:230,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:227,columnNumber:45},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:212,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:199,columnNumber:7},this),o.jsxDEV("main",{style:ce,children:[E?o.jsxDEV("div",{role:"alert",style:pe,children:E},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:238,columnNumber:18},this):null,h?o.jsxDEV("div",{role:"status",style:V,children:"Loading memories…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:239,columnNumber:20},this):b?o.jsxDEV(o.Fragment,{children:[o.jsxDEV("div",{style:me,children:[o.jsxDEV("span",{style:ue,children:"Selected memory"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:241,columnNumber:15},this),o.jsxDEV("strong",{style:de,children:b},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:242,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:240,columnNumber:13},this),o.jsxDEV(_,{content:B,resource:{kind:"agent-memory",id:b},onApplied:O,onDirtyChange:M},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:244,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:239,columnNumber:97},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:237,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/MemoryWorkspace.tsx",lineNumber:198,columnNumber:10},this)}const K={display:"grid",gridTemplateColumns:"minmax(220px, 300px) minmax(0, 1fr)",height:"100%",minHeight:0,background:t.ui.surface.stage},Q={display:"flex",flexDirection:"column",minHeight:0,borderRight:`1px solid ${t.ui.surface.panelBorder}`,background:t.ui.surface.panel},X={display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:16,borderBottom:`1px solid ${t.ui.surface.panelBorder}`},ee={color:t.ui.text.strong,fontSize:14,fontWeight:700},oe={color:t.ui.text.muted,fontSize:11,marginTop:3},te={display:"inline-grid",placeItems:"center",width:30,height:30,borderRadius:8,border:`1px solid ${t.ui.surface.panelBorder}`,background:"rgba(255, 255, 255, 0.04)",color:t.ui.text.body,cursor:"pointer"},re={display:"flex",flexDirection:"column",gap:6,minHeight:0,padding:10,overflowY:"auto"},se={display:"flex",flexDirection:"column",alignItems:"flex-start",gap:5,padding:10,borderRadius:9,border:"1px solid transparent",background:"transparent",color:t.ui.text.body,textAlign:"left",cursor:"pointer"},ne={border:`1px solid ${t.ui.control.activeBorder}`,background:t.ui.timeline.playheadSoft},ae={color:t.ui.timeline.playhead,fontSize:10,fontWeight:700,textTransform:"uppercase"},ie={maxWidth:"100%",overflow:"hidden",color:t.ui.text.strong,fontFamily:"monospace",fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap"},le={display:"-webkit-box",overflow:"hidden",color:t.ui.text.muted,fontSize:11,lineHeight:1.45,WebkitBoxOrient:"vertical",WebkitLineClamp:2},ce={minWidth:0,minHeight:0,padding:20,overflowY:"auto"},me={display:"flex",flexDirection:"column",gap:4,marginBottom:12},ue={color:t.ui.text.muted,fontSize:11},de={color:t.ui.text.strong,fontFamily:"monospace",fontSize:14,wordBreak:"break-all"},V={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:160,padding:20,color:t.ui.text.muted,fontSize:12,textAlign:"center"},U={padding:"6px 10px",borderRadius:7,border:`1px solid ${t.ui.control.activeBorder}`,background:t.ui.timeline.playheadSoft,color:t.ui.timeline.playhead,cursor:"pointer"},pe={marginBottom:12,padding:"10px 12px",borderRadius:8,border:"1px solid rgba(248, 81, 73, 0.28)",background:"rgba(248, 81, 73, 0.1)",color:"#ffb4ad",fontSize:12};export{He as MemoryWorkspace};
@@ -0,0 +1 @@
1
+ import{c as w,j as o}from"./index-DHWWI-uw.js";import{a as T}from"./query-vendor-BqVbYexz.js";import{a as V,b as M}from"./queries-CYtdSB4H.js";import{B as L}from"./book-open-BqEIxx1e.js";import{C as I,a as E}from"./chevron-right-CiEuNwKq.js";import{E as U}from"./external-link-DqNu6T-f.js";function W(s){return s.reduce((e,r)=>e+1+W(r.children??[]),0)}function O(s){const e=w.c(33);if(e[0]!=="5c866af48e6f2cf84fdfa7b17ac686a3a74fa5d589cb7184d4f79f9fb2605301"){for(let j=0;j<33;j+=1)e[j]=Symbol.for("react.memo_cache_sentinel");e[0]="5c866af48e6f2cf84fdfa7b17ac686a3a74fa5d589cb7184d4f79f9fb2605301"}const{concept:r,depth:h,onSelect:i}=s,[x,S]=T.useState(!1);let a;e[1]!==r.children?(a=r.children??[],e[1]=r.children,e[2]=a):a=e[2];const b=a,c=b.length>0,N=12+h*16,D=h===0?"#f0cdd3":"#b08b93",k=h===0?13:12;let g;e[3]!==N||e[4]!==D||e[5]!==k?(g={display:"flex",alignItems:"center",gap:6,paddingLeft:N,paddingRight:12,paddingTop:5,paddingBottom:5,borderRadius:6,cursor:"pointer",color:D,fontSize:k,transition:"background 120ms ease"},e[3]=N,e[4]=D,e[5]=k,e[6]=g):g=e[6];let l;e[7]!==x||e[8]!==c?(l=c?o.jsxDEV("button",{onClick:()=>S(_),style:{background:"transparent",border:"none",color:"#b08b93",cursor:"pointer",padding:0,display:"flex",alignItems:"center"},children:x?o.jsxDEV(I,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:77,columnNumber:20},this):o.jsxDEV(E,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:77,columnNumber:48},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:69,columnNumber:24},this):o.jsxDEV("span",{style:{width:12,display:"inline-block"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:77,columnNumber:87},this),e[7]=x,e[8]=c,e[9]=l):l=e[9];let m;e[10]!==r||e[11]!==i?(m=()=>i(r),e[10]=r,e[11]=i,e[12]=m):m=e[12];let u;e[13]===Symbol.for("react.memo_cache_sentinel")?(u={flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e[13]=u):u=e[13];const y=r.pref_label||r.uri;let p;e[14]!==m||e[15]!==y?(p=o.jsxDEV("span",{onClick:m,style:u,children:y},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:111,columnNumber:11},this),e[14]=m,e[15]=y,e[16]=p):p=e[16];let f;e[17]!==b.length?(f=b.length>0?o.jsxDEV("span",{style:{color:"#9c7a82",fontSize:10},children:b.length},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:120,columnNumber:33},this):null,e[17]=b.length,e[18]=f):f=e[18];let t;e[19]!==p||e[20]!==f||e[21]!==g||e[22]!==l?(t=o.jsxDEV("div",{style:g,onMouseEnter:C,onMouseLeave:z,children:[l,p,f]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:131,columnNumber:11},this),e[19]=p,e[20]=f,e[21]=g,e[22]=l,e[23]=t):t=e[23];let d;e[24]!==b||e[25]!==h||e[26]!==x||e[27]!==c||e[28]!==i?(d=x&&c?b.map(j=>o.jsxDEV(O,{concept:j,depth:h+1,onSelect:i},j.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:142,columnNumber:59},this)):null,e[24]=b,e[25]=h,e[26]=x,e[27]=c,e[28]=i,e[29]=d):d=e[29];let n;return e[30]!==t||e[31]!==d?(n=o.jsxDEV(o.Fragment,{children:[t,d]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:154,columnNumber:11},this),e[30]=t,e[31]=d,e[32]=n):n=e[32],n}function _(s){return!s}function z(s){s.currentTarget.style.background="transparent"}function C(s){s.currentTarget.style.background="rgba(255,45,75,0.07)"}function B(s){const e=w.c(29);if(e[0]!=="5c866af48e6f2cf84fdfa7b17ac686a3a74fa5d589cb7184d4f79f9fb2605301"){for(let H=0;H<29;H+=1)e[H]=Symbol.for("react.memo_cache_sentinel");e[0]="5c866af48e6f2cf84fdfa7b17ac686a3a74fa5d589cb7184d4f79f9fb2605301"}const{scheme:r,onSelectConcept:h}=s,[i,x]=T.useState(!0),{data:S,isLoading:a}=M(r.uri);let b;e[1]!==S?(b=S===void 0?[]:S,e[1]=S,e[2]=b):b=e[2];const c=b;let N;e[3]!==c?(N=W(c),e[3]=c,e[4]=N):N=e[4];const D=N;let k;e[5]===Symbol.for("react.memo_cache_sentinel")?(k=()=>x(R),e[5]=k):k=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g={display:"flex",alignItems:"center",gap:8},e[6]=g):g=e[6];let l;e[7]!==i?(l=i?o.jsxDEV(I,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:227,columnNumber:21},this):o.jsxDEV(E,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:227,columnNumber:65},this),e[7]=i,e[8]=l):l=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#ffeaed",fontSize:14,fontWeight:700},e[9]=m):m=e[9];let u;e[10]!==r.label?(u=o.jsxDEV("span",{style:m,children:r.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:246,columnNumber:10},this),e[10]=r.label,e[11]=u):u=e[11];let y;e[12]!==l||e[13]!==u?(y=o.jsxDEV("div",{style:g,children:[l,u]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:254,columnNumber:10},this),e[12]=l,e[13]=u,e[14]=y):y=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#9c7a82",fontSize:11},e[15]=p):p=e[15];const f=a?"…":`${D} concept${D!==1?"s":""}`;let t;e[16]!==f?(t=o.jsxDEV("span",{style:p,children:f},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:274,columnNumber:11},this),e[16]=f,e[17]=t):t=e[17];let d;e[18]!==t||e[19]!==y?(d=o.jsxDEV("button",{onClick:k,style:K,children:[y,t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:282,columnNumber:11},this),e[18]=t,e[19]=y,e[20]=d):d=e[20];let n;e[21]!==i||e[22]!==c||e[23]!==a||e[24]!==h?(n=i?o.jsxDEV("div",{style:{paddingTop:4,paddingBottom:8},children:a?o.jsxDEV("div",{style:{padding:"8px 24px",color:"#9c7a82",fontSize:12},children:"Loading concepts…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:294,columnNumber:21},this):c.length===0?o.jsxDEV("div",{style:{padding:"8px 24px",color:"#9c7a82",fontSize:12,fontStyle:"italic"},children:"No concepts found in this scheme."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:298,columnNumber:61},this):c.map(H=>o.jsxDEV(O,{concept:H,depth:0,onSelect:h},H.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:303,columnNumber:77},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:291,columnNumber:22},this):null,e[21]=i,e[22]=c,e[23]=a,e[24]=h,e[25]=n):n=e[25];let j;return e[26]!==d||e[27]!==n?(j=o.jsxDEV("div",{style:J,children:[d,n]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:314,columnNumber:11},this),e[26]=d,e[27]=n,e[28]=j):j=e[28],j}function R(s){return!s}function le(s){const e=w.c(26);if(e[0]!=="5c866af48e6f2cf84fdfa7b17ac686a3a74fa5d589cb7184d4f79f9fb2605301"){for(let n=0;n<26;n+=1)e[n]=Symbol.for("react.memo_cache_sentinel");e[0]="5c866af48e6f2cf84fdfa7b17ac686a3a74fa5d589cb7184d4f79f9fb2605301"}const{onOpenVocabularyBrowser:r}=s,{data:h,isLoading:i}=V();let x;e[1]!==h?(x=h===void 0?[]:h,e[1]=h,e[2]=x):x=e[2];const S=x,[a,b]=T.useState(null);let c,N,D,k;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={display:"flex",alignItems:"center",gap:10},N=o.jsxDEV(L,{size:18,color:"#d2a8ff"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:361,columnNumber:10},this),D=o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:16,fontWeight:700},children:"Ontology Summary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:362,columnNumber:10},this),k={color:"#b08b93",fontSize:12},e[3]=c,e[4]=N,e[5]=D,e[6]=k):(c=e[3],N=e[4],D=e[5],k=e[6]);const g=i?"Loading schemes…":`${S.length} vocabulary scheme${S.length!==1?"s":""} loaded`;let l;e[7]!==g?(l=o.jsxDEV("div",{style:c,children:[N,o.jsxDEV("div",{children:[D,o.jsxDEV("div",{style:k,children:g},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:384,columnNumber:39},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:384,columnNumber:30},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:384,columnNumber:10},this),e[7]=g,e[8]=l):l=e[8];let m;e[9]!==r?(m=r?o.jsxDEV("button",{onClick:r,style:q,children:[o.jsxDEV(U,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:392,columnNumber:106},this),o.jsxDEV("span",{children:"Open Full Browser"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:392,columnNumber:132},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:392,columnNumber:36},this):null,e[9]=r,e[10]=m):m=e[10];let u;e[11]!==l||e[12]!==m?(u=o.jsxDEV("div",{style:Y,children:[l,m]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:400,columnNumber:11},this),e[11]=l,e[12]=m,e[13]=u):u=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y={flex:1,display:"flex",overflow:"hidden"},e[14]=y):y=e[14];let p;e[15]!==i||e[16]!==S?(p=o.jsxDEV("div",{style:G,children:i?o.jsxDEV("div",{style:{padding:24,display:"flex",flexDirection:"column",gap:10},children:[90,75,60].map(F)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:420,columnNumber:53},this):S.length===0?o.jsxDEV("div",{style:Z,children:[o.jsxDEV(L,{size:32,color:"rgba(210,168,255,0.15)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:425,columnNumber:97},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:13,marginTop:12},children:"No vocabulary schemes loaded"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:425,columnNumber:150},this),o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:12,marginTop:4,textAlign:"center",maxWidth:240},children:"Import a .ttl or .rdf file via the Vocabulary Browser to see your ontology here."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:429,columnNumber:46},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:425,columnNumber:68},this):o.jsxDEV("div",{style:{padding:"12px 8px",display:"flex",flexDirection:"column",gap:8},children:S.map(n=>o.jsxDEV(B,{scheme:n,onSelectConcept:b},n.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:440,columnNumber:33},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:435,columnNumber:107},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:420,columnNumber:11},this),e[15]=i,e[16]=S,e[17]=p):p=e[17];let f;e[18]!==a?(f=a?o.jsxDEV("div",{style:Q,children:[o.jsxDEV("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:16},children:[o.jsxDEV("div",{style:{color:"#d2a8ff",fontSize:11,fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase"},children:"Concept Detail"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:454,columnNumber:10},this),o.jsxDEV("button",{onClick:()=>b(null),style:{background:"transparent",border:"none",color:"#b08b93",cursor:"pointer",fontSize:16},children:"×"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:460,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:449,columnNumber:59},this),o.jsxDEV("h3",{style:{color:"#ffffff",fontSize:18,fontWeight:800,letterSpacing:"-0.03em",margin:"0 0 6px 0"},children:a.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:466,columnNumber:28},this),a.notation?o.jsxDEV("div",{style:{color:"#b08b93",fontSize:12,marginBottom:8},children:["Notation: ",a.notation]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:472,columnNumber:71},this):null,o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:11,fontFamily:"monospace",wordBreak:"break-all",marginBottom:14},children:a.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:476,columnNumber:60},this),a.description?o.jsxDEV("div",{style:A,children:[o.jsxDEV("div",{style:v,children:"Description"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:482,columnNumber:100},this),o.jsxDEV("div",{style:{color:"#f0cdd3",fontSize:13,lineHeight:1.6},children:a.description},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:482,columnNumber:147},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:482,columnNumber:68},this):null,a.alt_labels?.length?o.jsxDEV("div",{style:A,children:[o.jsxDEV("div",{style:v,children:"Alternative Labels"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:486,columnNumber:131},this),o.jsxDEV("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:a.alt_labels.map($)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:486,columnNumber:185},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:486,columnNumber:99},this):null,(a.children?.length??0)>0?o.jsxDEV("div",{style:A,children:[o.jsxDEV("div",{style:v,children:["Narrower Concepts (",a.children.length,")"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:490,columnNumber:151},this),o.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[a.children.slice(0,8).map(n=>o.jsxDEV("div",{onClick:()=>b(n),style:{color:"#ff8fa0",fontSize:12,cursor:"pointer",padding:"3px 0"},children:["→ ",n.pref_label]},n.uri,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:494,columnNumber:63},this)),a.children.length>8?o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:11},children:["+",a.children.length-8," more"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:499,columnNumber:81},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:490,columnNumber:240},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:490,columnNumber:119},this):null]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:449,columnNumber:29},this):null,e[18]=a,e[19]=f):f=e[19];let t;e[20]!==p||e[21]!==f?(t=o.jsxDEV("div",{style:y,children:[p,f]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:510,columnNumber:11},this),e[20]=p,e[21]=f,e[22]=t):t=e[22];let d;return e[23]!==u||e[24]!==t?(d=o.jsxDEV("div",{style:P,children:[u,t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:519,columnNumber:11},this),e[23]=u,e[24]=t,e[25]=d):d=e[25],d}function $(s){return o.jsxDEV("span",{style:X,children:s},s,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:531,columnNumber:10},this)}function F(s,e){return o.jsxDEV("div",{style:{height:36,borderRadius:8,background:"rgba(255,255,255,0.04)",width:`${s}%`}},e,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ManageWorkspace/OntologySummaryTab.tsx",lineNumber:534,columnNumber:10},this)}const P={display:"flex",flexDirection:"column",width:"100%",height:"100%",background:"#0a0508",overflow:"hidden"},Y={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",borderBottom:"1px solid rgba(255,45,75,0.1)",flexShrink:0},q={display:"inline-flex",alignItems:"center",gap:6,padding:"6px 12px",borderRadius:8,border:"1px solid rgba(210,168,255,0.22)",background:"rgba(210,168,255,0.08)",color:"#d2a8ff",fontSize:12,fontWeight:600,cursor:"pointer"},G={flex:1,overflowY:"auto",borderRight:"1px solid rgba(255,255,255,0.06)"},J={borderRadius:10,border:"1px solid rgba(210,168,255,0.1)",background:"rgba(255,255,255,0.02)",overflow:"hidden"},K={width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"transparent",border:"none",cursor:"pointer",borderBottom:"1px solid rgba(255,255,255,0.05)"},Q={width:300,padding:"20px",overflowY:"auto",borderLeft:"1px solid rgba(255,255,255,0.06)",flexShrink:0},A={marginTop:14,paddingTop:12,borderTop:"1px solid rgba(255,255,255,0.06)"},v={color:"#b08b93",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",marginBottom:6},X={padding:"3px 8px",borderRadius:999,background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",color:"#c99aa3",fontSize:11},Z={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:40,height:"100%"};export{le as OntologySummaryTab};
@@ -0,0 +1,19 @@
1
+ import{b as k,j as e,B as v,C as j}from"./index-DHWWI-uw.js";import{u as H,a as i}from"./query-vendor-BqVbYexz.js";import{P as R}from"./play-G1gyOk2a.js";import{G as E}from"./git-branch-B8yDcUSY.js";import{C as x}from"./circle-check-BToWKwbO.js";import{I}from"./info-vaffNQOD.js";/**
2
+ * @license lucide-react v1.8.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const L=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],W=k("rotate-ccw",L);/**
7
+ * @license lucide-react v1.8.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const U=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],N=k("zap",U),g=`inhibits(Metformin, mTOR)
12
+ causes(mTOR, Neurodegeneration)
13
+ treats(Metformin, Diabetes)`,f="IF inhibits(Metformin, mTOR) AND causes(mTOR, Neurodegeneration) THEN candidate(Metformin, Alzheimer's)",V=[{label:"Drug Candidate",facts:`inhibits(Metformin, mTOR)
14
+ causes(mTOR, Neurodegeneration)
15
+ treats(Metformin, Diabetes)`,rule:"IF inhibits(Metformin, mTOR) AND causes(mTOR, Neurodegeneration) THEN candidate(Metformin, Alzheimer's)"},{label:"Gene → Disease",facts:`expressed_in(BRCA1, Breast)
16
+ mutated_in(BRCA1, Cancer)
17
+ associated_with(Breast, Cancer)`,rule:"IF mutated_in(X, Cancer) AND expressed_in(X, Y) THEN risk_gene(X, Y)"},{label:"Pathway Activation",facts:`activates(EGF, EGFR)
18
+ downstream_of(MAPK, EGFR)
19
+ downstream_of(AKT, EGFR)`,rule:"IF activates(X, EGFR) AND downstream_of(Y, EGFR) THEN activates(X, Y)"}];function M(){const S=H(),[d,t]=i.useState(g),[b,m]=i.useState(f),[o,y]=i.useState(!0),[a,c]=i.useState(null),[n,h]=i.useState(!1),[p,l]=i.useState("");async function w(){h(!0),l(""),c(null);try{const s=await fetch("/api/reason",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({facts:d.split(/\r?\n/).map(u=>u.trim()).filter(Boolean),rules:b.split(/\r?\n/).map(u=>u.trim()).filter(Boolean),mode:"forward",apply_to_graph:o})}),r=await s.json();if(!s.ok)throw new Error(r.detail||`Status ${s.status}`);s.status===207&&l(r.message||"Warning: Partial success reasoning."),c(r),r.mutated&&S.invalidateQueries({queryKey:["graph","full-load"]})}catch(s){l(s instanceof Error?s.message:"Reasoning failed")}finally{h(!1)}}function A(s){t(s.facts),m(s.rule),c(null),l("")}function D(){t(g),m(f),c(null),l("")}return e.jsxDEV("div",{className:"ws-page",style:{flexDirection:"row"},children:[e.jsxDEV("div",{style:{width:480,flexShrink:0,display:"flex",flexDirection:"column",borderRight:"1px solid var(--ws-border)",overflow:"hidden"},children:[e.jsxDEV("div",{style:{padding:"18px 20px 14px",borderBottom:"1px solid var(--ws-border)",flexShrink:0},children:e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:2},children:[e.jsxDEV("div",{style:{width:32,height:32,borderRadius:10,background:"var(--ws-accent-soft)",border:"1px solid var(--ws-border-strong)",display:"grid",placeItems:"center",color:"var(--ws-accent)",flexShrink:0},children:e.jsxDEV(v,{size:16},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:111,columnNumber:15},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:100,columnNumber:13},this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"ws-eyebrow",style:{marginBottom:2},children:"Forward Chaining"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:114,columnNumber:15},this),e.jsxDEV("div",{style:{color:"var(--ws-text)",fontWeight:700,fontSize:15,lineHeight:1},children:"Inference Engine"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:117,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:113,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:94,columnNumber:11},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:89,columnNumber:9},this),e.jsxDEV("div",{style:{padding:"12px 16px 10px",borderBottom:"1px solid var(--ws-border)",flexShrink:0},children:[e.jsxDEV("div",{className:"ws-eyebrow",style:{marginBottom:8},children:"Quick Templates"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:133,columnNumber:11},this),e.jsxDEV("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:V.map(s=>e.jsxDEV("button",{className:"ws-btn ws-btn--ghost",style:{padding:"5px 10px",fontSize:11},onClick:()=>A(s),children:s.label},s.label,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:141,columnNumber:35},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:136,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:128,columnNumber:9},this),e.jsxDEV("div",{className:"ws-scroll ws-padded",style:{display:"flex",flexDirection:"column",gap:16},children:[e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"ws-label",children:"Facts"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:157,columnNumber:13},this),e.jsxDEV("div",{className:"ws-body",style:{marginBottom:8},children:["One fact per line using ",e.jsxDEV("code",{style:{color:"var(--ws-accent)",fontSize:11},children:"predicate(subject, object)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:160,columnNumber:38},this)," form."]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:158,columnNumber:13},this),e.jsxDEV("textarea",{className:"ws-textarea",value:d,onChange:s=>t(s.target.value),rows:6,spellCheck:!1},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:164,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:156,columnNumber:11},this),e.jsxDEV("div",{children:[e.jsxDEV("label",{className:"ws-label",children:"Rules"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:168,columnNumber:13},this),e.jsxDEV("div",{className:"ws-body",style:{marginBottom:8},children:["Use ",e.jsxDEV("code",{style:{color:"var(--ws-amber)",fontSize:11},children:"IF … AND … THEN …"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:171,columnNumber:18},this)," syntax. Falls back to internal matcher if the reasoning server is unavailable."]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:169,columnNumber:13},this),e.jsxDEV("textarea",{className:"ws-textarea",value:b,onChange:s=>m(s.target.value),rows:5,spellCheck:!1},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:175,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:167,columnNumber:11},this),e.jsxDEV("label",{style:{display:"flex",alignItems:"center",gap:10,cursor:"pointer",padding:"10px 12px",borderRadius:"var(--ws-radius-sm)",border:"1px solid var(--ws-border)",background:o?"var(--ws-green-soft)":"var(--ws-surface)"},children:[e.jsxDEV("div",{style:{position:"relative",width:36,height:20,flexShrink:0},children:[e.jsxDEV("input",{type:"checkbox",checked:o,onChange:s=>y(s.target.checked),style:{opacity:0,position:"absolute",inset:0,cursor:"pointer",margin:0}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:195,columnNumber:15},this),e.jsxDEV("div",{style:{position:"absolute",inset:0,borderRadius:999,background:o?"var(--ws-green)":"rgba(255,255,255,0.12)",transition:"background 180ms ease"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:202,columnNumber:15},this),e.jsxDEV("div",{style:{position:"absolute",top:3,left:o?19:3,width:14,height:14,borderRadius:999,background:"#fff",transition:"left 180ms ease",boxShadow:"0 1px 4px rgba(0,0,0,0.4)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:209,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:189,columnNumber:13},this),e.jsxDEV("div",{children:[e.jsxDEV("div",{style:{fontSize:13,fontWeight:700,color:o?"#6ee7b7":"var(--ws-text-muted)"},children:"Write inferred facts to graph"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:222,columnNumber:15},this),e.jsxDEV("div",{style:{fontSize:11,color:"var(--ws-text-dim)"},children:"Inferred binary facts are added as edges"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:227,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:221,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:179,columnNumber:11},this),e.jsxDEV("div",{style:{display:"flex",gap:8},children:[e.jsxDEV("button",{className:"ws-btn ws-btn--primary",onClick:w,disabled:n,style:{flex:1,justifyContent:"center"},children:n?e.jsxDEV(e.Fragment,{children:[e.jsxDEV("span",{className:"ws-spin",style:{display:"inline-block"},children:e.jsxDEV(N,{size:15},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:245,columnNumber:18},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:243,columnNumber:30},this),"Running…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:243,columnNumber:28},this):e.jsxDEV(e.Fragment,{children:[e.jsxDEV(R,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:245,columnNumber:58},this),"Run Reasoning"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:245,columnNumber:56},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:239,columnNumber:13},this),e.jsxDEV("button",{className:"ws-btn ws-btn--ghost",onClick:D,title:"Reset to defaults",children:e.jsxDEV(W,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:248,columnNumber:15},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:247,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:235,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:151,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:80,columnNumber:7},this),e.jsxDEV("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[e.jsxDEV("div",{style:{padding:"18px 24px 14px",borderBottom:"1px solid var(--ws-border)",flexShrink:0,display:"flex",alignItems:"center",gap:10},children:[e.jsxDEV("div",{style:{fontSize:15,fontWeight:700,color:"var(--ws-text)"},children:"Inference Results"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:269,columnNumber:11},this),a&&!n&&e.jsxDEV("div",{style:{marginLeft:"auto",display:"flex",gap:6},children:[e.jsxDEV("span",{className:"ws-pill ws-pill--accent",children:[e.jsxDEV(N,{size:9},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:280,columnNumber:17},this)," ",a.rules_fired??0," rules fired"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:279,columnNumber:15},this),e.jsxDEV("span",{className:"ws-pill ws-pill--green",children:[e.jsxDEV(E,{size:9},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:283,columnNumber:17},this)," ",a.added_edges??0," edges added"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:282,columnNumber:15},this),a.mutated?e.jsxDEV("span",{className:"ws-pill ws-pill--green",children:"graph updated"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:285,columnNumber:33},this):e.jsxDEV("span",{className:"ws-pill ws-pill--mono",children:"preview only"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:285,columnNumber:97},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:274,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:261,columnNumber:9},this),e.jsxDEV("div",{className:"ws-scroll ws-padded",style:{display:"flex",flexDirection:"column",gap:12},children:[p&&e.jsxDEV("div",{className:"ws-animate-in",style:{display:"flex",gap:10,padding:"12px 14px",borderRadius:"var(--ws-radius-sm)",background:"var(--ws-red-soft)",border:"1px solid rgba(255,123,114,0.28)",color:"#fca5a5",fontSize:13},children:[e.jsxDEV(j,{size:16,style:{flexShrink:0,marginTop:1}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:304,columnNumber:15},this),e.jsxDEV("div",{children:p},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:308,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:294,columnNumber:21},this),n&&e.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[1,2,3,4].map(s=>e.jsxDEV("div",{className:"ws-skeleton",style:{height:52}},s,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:316,columnNumber:38},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:311,columnNumber:25},this),a&&!n&&e.jsxDEV("div",{className:"ws-animate-in",children:(a.inferred_facts??[]).length===0?e.jsxDEV("div",{className:"ws-empty",children:[e.jsxDEV("div",{className:"ws-empty-icon",children:e.jsxDEV(x,{size:32},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:323,columnNumber:50},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:323,columnNumber:19},this),e.jsxDEV("div",{className:"ws-empty-title",children:"Reasoning complete"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:324,columnNumber:19},this),e.jsxDEV("div",{className:"ws-empty-body",children:"No new facts were inferred from the current rule set and facts."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:325,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:322,columnNumber:61},this):e.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:8},children:a.inferred_facts.map((s,r)=>e.jsxDEV("div",{style:{display:"flex",alignItems:"flex-start",gap:10,padding:"12px 14px",borderRadius:"var(--ws-radius-sm)",background:"var(--ws-surface)",border:"1px solid var(--ws-border)"},children:[e.jsxDEV("div",{style:{width:20,height:20,borderRadius:6,background:"var(--ws-green-soft)",border:"1px solid rgba(76,195,138,0.28)",display:"grid",placeItems:"center",flexShrink:0,marginTop:1},children:e.jsxDEV(x,{size:11,color:"var(--ws-green)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:351,columnNumber:25},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:340,columnNumber:23},this),e.jsxDEV("code",{style:{fontFamily:"'JetBrains Mono','Fira Code',monospace",fontSize:12,color:"var(--ws-text)",lineHeight:1.6,wordBreak:"break-all"},children:s},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:353,columnNumber:23},this)]},`${s}-${r}`,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:331,columnNumber:62},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:326,columnNumber:26},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:321,columnNumber:36},this),!a&&!n&&!p&&e.jsxDEV("div",{className:"ws-empty",children:[e.jsxDEV("div",{className:"ws-empty-icon",children:e.jsxDEV(I,{size:32},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:365,columnNumber:46},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:365,columnNumber:15},this),e.jsxDEV("div",{className:"ws-empty-title",children:"Ready to reason"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:366,columnNumber:15},this),e.jsxDEV("div",{className:"ws-empty-body",children:"Enter facts and rules on the left, then click Run Reasoning to see inferred statements here."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:367,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:364,columnNumber:47},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:289,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:255,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/ReasoningWorkspace.tsx",lineNumber:76,columnNumber:10},this)}export{M as ReasoningWorkspace};
@@ -0,0 +1,11 @@
1
+ import{b as v,c as H,j as o}from"./index-DHWWI-uw.js";import{a as R}from"./query-vendor-BqVbYexz.js";import{u as T,c as I}from"./registryStore-MVt_NgVV.js";import{T as W}from"./trash-2-DiZNV6Gj.js";import{C as L,a as V}from"./chevron-right-CiEuNwKq.js";/**
2
+ * @license lucide-react v1.8.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const U=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],j=v("clipboard-list",U);/**
7
+ * @license lucide-react v1.8.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const _=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],z=v("funnel",_),w={import:{label:"IMPORT",color:"#ff2d4b",bg:"rgba(255,45,75,0.12)",border:"rgba(255,45,75,0.28)"},export:{label:"EXPORT",color:"#c99aa3",bg:"rgba(143,168,198,0.08)",border:"rgba(143,168,198,0.18)"},merge:{label:"MERGE",color:"#ff7a45",bg:"rgba(242,182,109,0.12)",border:"rgba(242,182,109,0.28)"},"add-node":{label:"ADD NODE",color:"#4cc38a",bg:"rgba(76,195,138,0.12)",border:"rgba(76,195,138,0.28)"},"update-node":{label:"UPDATE NODE",color:"#ff8fa0",bg:"rgba(121,192,255,0.10)",border:"rgba(121,192,255,0.24)"},"add-edge":{label:"ADD EDGE",color:"#4cc38a",bg:"rgba(76,195,138,0.10)",border:"rgba(76,195,138,0.22)"},delete:{label:"DELETE",color:"#ff7b72",bg:"rgba(255,123,114,0.12)",border:"rgba(255,123,114,0.28)"},infer:{label:"INFER",color:"#d2a8ff",bg:"rgba(210,168,255,0.12)",border:"rgba(210,168,255,0.28)"},"vocab-import":{label:"VOCAB",color:"#ff8fa0",bg:"rgba(121,192,255,0.12)",border:"rgba(121,192,255,0.28)"}},C=["all","import","export","merge","add-node","update-node","add-edge","infer","delete","vocab-import"];function M(r){return r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function O(r){return r.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function B(r){const e=H.c(40);if(e[0]!=="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"){for(let A=0;A<40;A+=1)e[A]=Symbol.for("react.memo_cache_sentinel");e[0]="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"}const{entry:a}=r,[x,E]=R.useState(!1),s=w[a.op];let y;e[1]!==a.detail?(y=a.detail&&Object.keys(a.detail).length>0,e[1]=a.detail,e[2]=y):y=e[2];const p=y;let S;e[3]===Symbol.for("react.memo_cache_sentinel")?(S={display:"flex",alignItems:"flex-start",gap:12},e[3]=S):S=e[3];const k=`1px solid ${s.border}`;let l;e[4]!==s.bg||e[5]!==s.color||e[6]!==k?(l={flexShrink:0,display:"inline-block",padding:"3px 8px",borderRadius:999,fontSize:10,fontWeight:800,letterSpacing:"0.07em",color:s.color,background:s.bg,border:k,marginTop:1},e[4]=s.bg,e[5]=s.color,e[6]=k,e[7]=l):l=e[7];let i;e[8]!==s.label||e[9]!==l?(i=o.jsxDEV("span",{style:l,children:s.label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:144,columnNumber:10},this),e[8]=s.label,e[9]=l,e[10]=i):i=e[10];let d,N;e[11]===Symbol.for("react.memo_cache_sentinel")?(d={flex:1,minWidth:0},N={color:"#ffeaed",fontSize:13,fontWeight:500,wordBreak:"break-word"},e[11]=d,e[12]=N):(d=e[11],N=e[12]);let b;e[13]!==a.summary?(b=o.jsxDEV("div",{style:N,children:a.summary},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:172,columnNumber:10},this),e[13]=a.summary,e[14]=b):b=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#b08b93",fontSize:11,marginTop:3},e[15]=u):u=e[15];let n;e[16]!==a.timestamp?(n=O(a.timestamp),e[16]=a.timestamp,e[17]=n):n=e[17];let c;e[18]!==a.timestamp?(c=M(a.timestamp),e[18]=a.timestamp,e[19]=c):c=e[19];let m;e[20]!==n||e[21]!==c?(m=o.jsxDEV("div",{style:u,children:[n," · ",c]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:207,columnNumber:11},this),e[20]=n,e[21]=c,e[22]=m):m=e[22];let h;e[23]!==m||e[24]!==b?(h=o.jsxDEV("div",{style:d,children:[b,m]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:216,columnNumber:11},this),e[23]=m,e[24]=b,e[25]=h):h=e[25];let t;e[26]!==x||e[27]!==p?(t=p?o.jsxDEV("button",{onClick:()=>E($),title:x?"Collapse details":"Expand details",style:K,children:x?o.jsxDEV(L,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:225,columnNumber:158},this):o.jsxDEV(V,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:225,columnNumber:186},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:225,columnNumber:23},this):null,e[26]=x,e[27]=p,e[28]=t):t=e[28];let g;e[29]!==h||e[30]!==t||e[31]!==i?(g=o.jsxDEV("div",{style:S,children:[i,h,t]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:234,columnNumber:11},this),e[29]=h,e[30]=t,e[31]=i,e[32]=g):g=e[32];let f;e[33]!==a.detail||e[34]!==x||e[35]!==p?(f=x&&p?o.jsxDEV("pre",{style:Y,children:JSON.stringify(a.detail,null,2)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:244,columnNumber:35},this):null,e[33]=a.detail,e[34]=x,e[35]=p,e[36]=f):f=e[36];let D;return e[37]!==g||e[38]!==f?(D=o.jsxDEV("div",{style:q,children:[g,f]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:254,columnNumber:11},this),e[37]=g,e[38]=f,e[39]=D):D=e[39],D}function $(r){return!r}function se(){const r=H.c(29);if(r[0]!=="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"){for(let t=0;t<29;t+=1)r[t]=Symbol.for("react.memo_cache_sentinel");r[0]="cd670fd8bf5fe92655a46a866f479a8f0a648010e62e1208622a73c4ebbe6c25"}const e=T(),[a,x]=R.useState("all");let E;r[1]!==a||r[2]!==e?(E=a==="all"?e:e.filter(t=>t.op===a),r[1]=a,r[2]=e,r[3]=E):E=r[3];const s=E;let y,p,S;r[4]===Symbol.for("react.memo_cache_sentinel")?(y=o.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10},children:[o.jsxDEV(j,{size:18,color:"#ff2d4b"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:294,columnNumber:8},this),o.jsxDEV("div",{children:[o.jsxDEV("div",{style:{color:"#fff0f2",fontSize:16,fontWeight:700},children:"Document Registry"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:294,columnNumber:56},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:12},children:"Audit log of all KG and Ontology mutations this session"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:298,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:294,columnNumber:51},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:290,columnNumber:10},this),p={display:"flex",alignItems:"center",gap:8},S={color:"#c99aa3",fontSize:12},r[4]=y,r[5]=p,r[6]=S):(y=r[4],p=r[5],S=r[6]);const k=e.length!==1?"s":"";let l;r[7]!==e.length||r[8]!==k?(l=o.jsxDEV("span",{style:S,children:[e.length," event",k]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:322,columnNumber:10},this),r[7]=e.length,r[8]=k,r[9]=l):l=r[9];let i;r[10]!==e.length?(i=e.length>0?o.jsxDEV("button",{onClick:I,title:"Clear all events",style:Q,children:[o.jsxDEV(W,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:331,columnNumber:110},this),o.jsxDEV("span",{children:"Clear"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:331,columnNumber:130},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:331,columnNumber:31},this):null,r[10]=e.length,r[11]=i):i=r[11];let d;r[12]!==l||r[13]!==i?(d=o.jsxDEV("div",{style:G,children:[y,o.jsxDEV("div",{style:p,children:[l,i]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:339,columnNumber:39},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:339,columnNumber:10},this),r[12]=l,r[13]=i,r[14]=d):d=r[14];let N,b;r[15]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsxDEV(z,{size:13,color:"#c99aa3"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:349,columnNumber:10},this),b={display:"flex",gap:6,flexWrap:"wrap"},r[15]=N,r[16]=b):(N=r[15],b=r[16]);let u;r[17]!==a?(u=C.map(t=>{const g=t===a,f=t==="all"?null:w[t];return o.jsxDEV("button",{onClick:()=>x(t),style:{padding:"4px 10px",borderRadius:999,fontSize:11,fontWeight:600,cursor:"pointer",border:g?`1px solid ${f?.border??"rgba(255,107,129,0.35)"}`:"1px solid rgba(255,255,255,0.06)",background:g?f?.bg??"rgba(255,45,75,0.14)":"transparent",color:g?f?.color??"#8ed3ff":"#b08b93",transition:"all 140ms ease"},children:t==="all"?"All":f?.label??t},t,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:366,columnNumber:14},this)}),r[17]=a,r[18]=u):u=r[18];let n;r[19]!==u?(n=o.jsxDEV("div",{style:J,children:[N,o.jsxDEV("div",{style:b,children:u},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:385,columnNumber:43},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:385,columnNumber:11},this),r[19]=u,r[20]=n):n=r[20];let c;r[21]!==s?(c=s.length===0?o.jsxDEV("div",{style:Z,children:[o.jsxDEV(j,{size:36,color:"rgba(255,107,129,0.15)"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:393,columnNumber:64},this),o.jsxDEV("div",{style:{color:"#b08b93",fontSize:14,marginTop:12,fontWeight:500},children:"No events recorded yet"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:393,columnNumber:122},this),o.jsxDEV("div",{style:{color:"#9c7a82",fontSize:12,marginTop:4,textAlign:"center",maxWidth:300},children:"Import a file, run reasoning, or merge entities to see activity appear here."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:398,columnNumber:38},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:393,columnNumber:35},this):s.map(P),r[21]=s,r[22]=c):c=r[22];let m;r[23]!==c?(m=o.jsxDEV("div",{style:X,children:c},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:412,columnNumber:11},this),r[23]=c,r[24]=m):m=r[24];let h;return r[25]!==n||r[26]!==m||r[27]!==d?(h=o.jsxDEV("div",{style:F,children:[d,n,m]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:420,columnNumber:11},this),r[25]=n,r[26]=m,r[27]=d,r[28]=h):h=r[28],h}function P(r){return o.jsxDEV(B,{entry:r},r.id,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/EnrichWorkspace/RegistryTab.tsx",lineNumber:433,columnNumber:10},this)}const F={display:"flex",flexDirection:"column",width:"100%",height:"100%",background:"#0a0508",overflow:"hidden"},G={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",borderBottom:"1px solid rgba(255,45,75,0.1)",flexShrink:0},J={display:"flex",alignItems:"center",gap:10,padding:"12px 24px",borderBottom:"1px solid rgba(255,255,255,0.05)",flexShrink:0},X={flex:1,overflowY:"auto",padding:"16px 24px",display:"flex",flexDirection:"column",gap:8},q={padding:"12px 14px",borderRadius:12,background:"linear-gradient(135deg, rgba(13,17,23,0.6), rgba(22,27,34,0.4))",border:"1px solid rgba(255,255,255,0.06)",boxShadow:"inset 0 1px 0 rgba(255,255,255,0.03)"},K={flexShrink:0,background:"transparent",border:"none",color:"#b08b93",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"},Y={marginTop:10,padding:"10px 12px",borderRadius:8,background:"rgba(0,0,0,0.28)",border:"1px solid rgba(255,255,255,0.06)",color:"#ff8fa0",fontSize:11,fontFamily:"'JetBrains Mono', monospace",overflowX:"auto",whiteSpace:"pre-wrap",wordBreak:"break-all"},Q={display:"inline-flex",alignItems:"center",gap:5,padding:"5px 10px",borderRadius:8,border:"1px solid rgba(255,123,114,0.22)",background:"rgba(255,123,114,0.06)",color:"#ff7b72",fontSize:12,fontWeight:600,cursor:"pointer"},Z={flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:40,minHeight:280};export{se as RegistryTab};
@@ -0,0 +1,26 @@
1
+ import{b as D,j as e,C as H}from"./index-DHWWI-uw.js";import{a as i}from"./query-vendor-BqVbYexz.js";import{L as v,F as E,a as L}from"./index-DtC_GayB.js";import{C as I}from"./copy-BfQXGhHP.js";import{P as S}from"./play-G1gyOk2a.js";import{D as U}from"./download-gQOgYz3q.js";/**
2
+ * @license lucide-react v1.8.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const V=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],x=D("table-2",V),k=[{label:"All triples",query:`SELECT ?s ?p ?o
7
+ WHERE {
8
+ ?s ?p ?o
9
+ }
10
+ LIMIT 20`},{label:"Node types",query:`SELECT ?type (COUNT(?s) AS ?count)
11
+ WHERE {
12
+ ?s a ?type
13
+ }
14
+ GROUP BY ?type
15
+ ORDER BY DESC(?count)`},{label:"Outgoing edges",query:`SELECT ?predicate ?object
16
+ WHERE {
17
+ <urn:node:example> ?predicate ?object
18
+ }
19
+ LIMIT 50`},{label:"Path between",query:`SELECT ?mid ?p1 ?p2
20
+ WHERE {
21
+ <urn:node:a> ?p1 ?mid .
22
+ ?mid ?p2 <urn:node:b>
23
+ }
24
+ LIMIT 20`}];function P(){const n=v(),t=i.useRef(null),[m,u]=i.useState(k[0].query),[a,p]=i.useState(null),[l,d]=i.useState(!1),[f,b]=i.useState(!1);function N(r){r.languages.getLanguages().some(s=>s.id==="sparql")||(r.languages.register({id:"sparql"}),r.languages.setMonarchTokensProvider("sparql",{keywords:["SELECT","WHERE","LIMIT","FILTER","OPTIONAL","PREFIX","ORDER","BY","DESC","ASC","GROUP","DISTINCT","CONSTRUCT","ASK","DESCRIBE"],tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[?$][a-zA-Z_]\w*/,"variable.name"],[/<[^>]+>/,"string.uri"],[/"[^"]*"/,"string"],[/#.*/,"comment"],[/[0-9]+(\.[0-9]+)?/,"number"]]}}),r.editor.defineTheme("sparql-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"58a6ff",fontStyle:"bold"},{token:"variable.name",foreground:"a5d6ff"},{token:"string.uri",foreground:"7ee787"},{token:"string",foreground:"a5d6ff"},{token:"comment",foreground:"4a6a85",fontStyle:"italic"},{token:"number",foreground:"f2b66d"}],colors:{"editor.background":"#050c18","editor.lineHighlightBackground":"#0a1628","editorLineNumber.foreground":"#2a4060","editorCursor.foreground":"#ff2d4b","editor.selectionBackground":"#1e3a5a"}}))}function g(r){t.current=r}async function y(){d(!0),p(null),n&&t.current&&n.editor.setModelMarkers(t.current.getModel(),"sparql",[]);try{const r=await fetch("/api/sparql",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:m})});if(!r.headers.get("content-type")?.includes("application/json")){const o=await r.text();throw new Error(`HTTP ${r.status}: ${o.substring(0,100)}`)}const s=await r.json();r.status===207&&(s.error=s.message||"Warning: Partial success running query."),s.error&&s.error_line&&n&&t.current&&n.editor.setModelMarkers(t.current.getModel(),"sparql",[{startLineNumber:s.error_line,startColumn:s.error_column||1,endLineNumber:s.error_line,endColumn:100,message:s.error,severity:n.MarkerSeverity.Error}]),p(s)}catch(r){const s=r instanceof Error?r.message:"Network error — could not reach the SPARQL endpoint.";p({error:s})}finally{d(!1)}}function w(){navigator.clipboard.writeText(m).then(()=>{b(!0),setTimeout(()=>b(!1),1500)}).catch(()=>{})}function q(){if(!a?.rows||!a?.columns)return;const r=a.columns,s=r.join(","),o=a.rows.map(j=>r.map(A=>JSON.stringify(j[A]??"")).join(",")).join(`
25
+ `),W=new Blob([`${s}
26
+ ${o}`],{type:"text/csv"}),h=URL.createObjectURL(W),c=document.createElement("a");c.href=h,c.download="sparql_results.csv",document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(h)}return e.jsxDEV("div",{className:"ws-page",children:e.jsxDEV("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[e.jsxDEV("div",{style:{padding:"10px 16px",borderBottom:"1px solid var(--ws-border)",display:"flex",alignItems:"center",gap:8,flexShrink:0,background:"rgba(0,0,0,0.18)"},children:[e.jsxDEV("div",{style:{display:"flex",gap:6,flex:1,flexWrap:"wrap"},children:[e.jsxDEV("span",{className:"ws-eyebrow",style:{alignSelf:"center",marginRight:4},children:"Templates:"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:193,columnNumber:13},this),k.map(r=>e.jsxDEV("button",{className:"ws-btn ws-btn--ghost",style:{padding:"4px 10px",fontSize:11},onClick:()=>{u(r.query),p(null)},children:r.label},r.label,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:197,columnNumber:33},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:187,columnNumber:11},this),e.jsxDEV("button",{className:"ws-btn ws-btn--ghost",style:{padding:"6px 10px"},onClick:w,title:"Copy query",children:[e.jsxDEV(I,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:210,columnNumber:13},this),f?"Copied!":"Copy"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:207,columnNumber:11},this),e.jsxDEV("button",{className:"ws-btn ws-btn--primary",onClick:y,disabled:l,style:{minWidth:110,justifyContent:"center"},children:l?e.jsxDEV(e.Fragment,{children:[e.jsxDEV("span",{className:"ws-spin",style:{display:"inline-block"},children:e.jsxDEV(S,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:218,columnNumber:16},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:216,columnNumber:28},this),"Running…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:216,columnNumber:26},this):e.jsxDEV(e.Fragment,{children:[e.jsxDEV(S,{size:13},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:218,columnNumber:57},this),"Run Query"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:218,columnNumber:55},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:212,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:178,columnNumber:9},this),e.jsxDEV("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[e.jsxDEV("div",{style:{flex:"0 0 55%",minHeight:0,borderBottom:"1px solid var(--ws-border)",position:"relative"},children:[e.jsxDEV("div",{style:{position:"absolute",top:8,right:12,zIndex:10,display:"flex",alignItems:"center",gap:6},children:e.jsxDEV("span",{className:"ws-pill ws-pill--mono",children:[e.jsxDEV(E,{size:9},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:245,columnNumber:55},this),"SPARQL"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:245,columnNumber:15},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:236,columnNumber:13},this),e.jsxDEV(L,{height:"100%",defaultLanguage:"sparql",theme:"sparql-dark",value:m,onChange:r=>u(r||""),beforeMount:N,onMount:g,options:{minimap:{enabled:!1},fontSize:13,fontFamily:"'JetBrains Mono','Fira Code',Consolas,monospace",lineHeight:22,padding:{top:16},scrollBeyondLastLine:!1,renderLineHighlight:"gutter",wordWrap:"on"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:247,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:230,columnNumber:11},this),e.jsxDEV("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",overflow:"hidden",background:"rgba(0,0,0,0.12)"},children:[e.jsxDEV("div",{style:{padding:"10px 16px",borderBottom:"1px solid var(--ws-border)",display:"flex",alignItems:"center",gap:10,flexShrink:0},children:[e.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:7,color:"var(--ws-text-muted)",fontSize:13,fontWeight:700},children:[e.jsxDEV(x,{size:14},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:288,columnNumber:17},this),"Results",a?.rows&&e.jsxDEV("span",{className:"ws-pill ws-pill--accent",children:[a.rows.length," rows"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:290,columnNumber:34},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:280,columnNumber:15},this),a?.rows&&a.rows.length>0&&e.jsxDEV("button",{className:"ws-btn ws-btn--ghost",style:{marginLeft:"auto",padding:"4px 10px",fontSize:11},onClick:q,children:[e.jsxDEV(U,{size:12},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:297,columnNumber:19},this),"Export CSV"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:292,columnNumber:58},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:272,columnNumber:13},this),e.jsxDEV("div",{className:"ws-scroll",style:{flex:1},children:[l&&e.jsxDEV("div",{style:{padding:24,display:"flex",flexDirection:"column",gap:8},children:[1,2,3].map(r=>e.jsxDEV("div",{className:"ws-skeleton",style:{height:36}},r,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:310,columnNumber:39},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:304,columnNumber:29},this),a?.error&&!l&&e.jsxDEV("div",{className:"ws-animate-in",style:{margin:16,display:"flex",gap:10,padding:"12px 14px",borderRadius:"var(--ws-radius-sm)",background:"var(--ws-red-soft)",border:"1px solid rgba(255,123,114,0.28)",color:"#fca5a5",fontSize:13},children:[e.jsxDEV(H,{size:16,style:{flexShrink:0,marginTop:1}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:326,columnNumber:19},this),a.error]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:315,columnNumber:47},this),a?.rows&&a?.columns&&!l&&e.jsxDEV("div",{className:"ws-animate-in",style:{overflowX:"auto"},children:a.rows.length===0?e.jsxDEV("div",{className:"ws-empty",children:[e.jsxDEV("div",{className:"ws-empty-title",children:"No results"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:337,columnNumber:23},this),e.jsxDEV("div",{className:"ws-empty-body",children:"The query returned 0 rows. Try a broader query or check your data."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:338,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:336,columnNumber:47},this):e.jsxDEV("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12,color:"var(--ws-text)"},children:[e.jsxDEV("thead",{children:e.jsxDEV("tr",{style:{borderBottom:"1px solid var(--ws-border)",background:"rgba(0,0,0,0.2)"},children:[e.jsxDEV("th",{style:{padding:"8px 14px",textAlign:"left",color:"var(--ws-text-dim)",fontFamily:"monospace",fontSize:11,fontWeight:700,letterSpacing:"0.06em",width:40},children:"#"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:350,columnNumber:27},this),a.columns.map(r=>e.jsxDEV("th",{style:{padding:"8px 14px",textAlign:"left",color:"var(--ws-text-muted)",fontFamily:"monospace",fontSize:11,fontWeight:700,letterSpacing:"0.06em"},children:["?",r]},r,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:360,columnNumber:54},this))]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:346,columnNumber:25},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:345,columnNumber:23},this),e.jsxDEV("tbody",{children:a.rows.map((r,s)=>e.jsxDEV("tr",{style:{borderBottom:"1px solid rgba(255,45,75,0.06)"},children:[e.jsxDEV("td",{style:{padding:"7px 14px",color:"var(--ws-text-dim)",fontFamily:"monospace",fontSize:11},children:s+1},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:375,columnNumber:29},this),(a.columns??[]).map(o=>e.jsxDEV("td",{style:{padding:"7px 14px",maxWidth:300,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"monospace"},title:String(r[o]??""),children:r[o]!=null?String(r[o]).startsWith("urn:")||String(r[o]).startsWith("http")?e.jsxDEV("span",{style:{color:"#7ee787"},children:String(r[o])},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:389,columnNumber:130},this):String(r[o]):e.jsxDEV("span",{style:{color:"var(--ws-text-dim)",fontStyle:"italic"},children:"null"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:391,columnNumber:73},this)},o,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:381,columnNumber:64},this))]},s,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:372,columnNumber:56},this))},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:371,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:339,columnNumber:30},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:333,columnNumber:65},this),!a&&!l&&e.jsxDEV("div",{className:"ws-empty",children:[e.jsxDEV("div",{className:"ws-empty-icon",children:e.jsxDEV(x,{size:28},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:402,columnNumber:50},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:402,columnNumber:19},this),e.jsxDEV("div",{className:"ws-empty-title",children:"Run a query"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:403,columnNumber:19},this),e.jsxDEV("div",{className:"ws-empty-body",children:"Write SPARQL above or pick a template, then click Run Query to see results here."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:404,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:401,columnNumber:41},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:301,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:264,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:223,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:171,columnNumber:7},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx",lineNumber:170,columnNumber:10},this)}export{P as SparqlWorkspace};
@@ -0,0 +1,36 @@
1
+ import{c as me,j as a}from"./index-DHWWI-uw.js";import{a as u}from"./query-vendor-BqVbYexz.js";import{D as ce,T as pe}from"./timeline-vendor-WyY-t3YQ.js";import{G as i}from"./graphTheme-DNKLxzKZ.js";const re=new Date("1970-01-01T00:00:00Z"),ue=1e3*60*60*24,de=60;function oe(n,e){if(!n)return e;const t=new Date(n);return Number.isNaN(t.getTime())?e:t}function fe(n,e,t){return n<e?e:n>t?t:n}function he({minDate:n,maxDate:e,now:t}){const m=oe(n,re),f=oe(e,t),h=f>m?f:m;return{minBound:m,maxBound:h,defaultTime:fe(t,m,h)}}function be(n,e){const t=e.getTime()-n.getTime();return Math.max(ue,Math.round(t/de))}const d="playhead",xe=500,ge=1e3*60*60*24,ye=`
2
+ .sem-timeline-wrap .vis-timeline { border: none !important; background: transparent !important; overflow: visible !important; }
3
+ .sem-timeline-wrap .vis-panel.vis-background, .sem-timeline-wrap .vis-panel.vis-center { background: transparent !important; }
4
+ .sem-timeline-wrap .vis-panel { border-color: ${i.ui.timeline.border} !important; }
5
+ .sem-timeline-wrap .vis-time-axis .vis-text {
6
+ color: ${i.ui.timeline.text} !important;
7
+ font-size: 11px !important;
8
+ font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
9
+ padding-top: 3px !important;
10
+ }
11
+ .sem-timeline-wrap .vis-time-axis .vis-text.vis-major {
12
+ color: ${i.ui.timeline.textStrong} !important;
13
+ font-weight: 700 !important;
14
+ font-size: 12px !important;
15
+ }
16
+ .sem-timeline-wrap .vis-time-axis .vis-grid.vis-minor { border-color: ${i.ui.timeline.gridMinor} !important; }
17
+ .sem-timeline-wrap .vis-time-axis .vis-grid.vis-major { border-color: ${i.ui.timeline.gridMajor} !important; }
18
+ .sem-timeline-wrap .vis-custom-time.${d} {
19
+ background: ${i.ui.timeline.playheadSoft} !important;
20
+ width: 2px !important;
21
+ cursor: ew-resize !important;
22
+ z-index: 5 !important;
23
+ }
24
+ .sem-timeline-wrap .vis-custom-time.${d} > .vis-custom-time-marker {
25
+ background: ${i.ui.timeline.playhead} !important;
26
+ color: ${i.ui.text.inverse} !important;
27
+ font-size: 10px !important;
28
+ font-weight: 700 !important;
29
+ border-radius: 3px !important;
30
+ padding: 1px 5px !important;
31
+ white-space: nowrap !important;
32
+ box-shadow: 0 0 8px rgba(98, 226, 205, 0.45) !important;
33
+ }
34
+ .sem-timeline-wrap .vis-current-time { display: none !important; }
35
+ .sem-timeline-wrap .vis-panel.vis-left { display: none !important; }
36
+ `;function E(n){return`${n.getFullYear()}/${String(n.getMonth()+1).padStart(2,"0")}`}function De(n){const e=me.c(56);if(e[0]!=="636c87350d129c777bcce2d02abeebe7533fca8617694c34f2454fa29bdd5d42"){for(let s=0;s<56;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="636c87350d129c777bcce2d02abeebe7533fca8617694c34f2454fa29bdd5d42"}const{onTimeChange:t,minDate:m,maxDate:f}=n,h=u.useRef(null),_=u.useRef(null),k=u.useRef(re),T=u.useRef(null),[c,ae]=u.useState(!1);let H;e[1]===Symbol.for("react.memo_cache_sentinel")?(H=E(re),e[1]=H):H=e[1];const[Z,P]=u.useState(H);let I;e[2]===Symbol.for("react.memo_cache_sentinel")?(I=new Date,e[2]=I):I=e[2];const se=I;let L;e[3]!==f||e[4]!==m?(L=he({minDate:m,maxDate:f,now:se}),e[3]=f,e[4]=m,e[5]=L):L=e[5];const{minBound:r,maxBound:o,defaultTime:l}=L;let M,$;e[6]!==l||e[7]!==o||e[8]!==r||e[9]!==t?(M=()=>{if(!h.current)return;const s=_.current;if(!s){const p=new ce([]),le={height:"100%",min:r,max:o,start:r,end:o,showCurrentTime:!1,zoomable:!0,moveable:!0,zoomMin:ge,zoomMax:252288e7,showMajorLabels:!0,showMinorLabels:!0,orientation:{axis:"bottom"},margin:{item:0,axis:0},selectable:!1,stack:!1},A=new pe(h.current,p,le);return _.current=A,k.current=l,A.addCustomTime(l,d),A.on("timechange",j=>{j.id===d&&(k.current=j.time,A.setCustomTime(j.time,d),t(j.time),P(E(j.time)))}),t(l),P(E(l)),()=>{A.destroy(),_.current=null}}s.setOptions({min:r,max:o,start:r,end:o}),k.current=l,s.setCustomTime(l,d),t(l),P(E(l))},$=[l,o,r,t],e[6]=l,e[7]=o,e[8]=r,e[9]=t,e[10]=M,e[11]=$):(M=e[10],$=e[11]),u.useEffect(M,$);let R;e[12]!==o||e[13]!==r||e[14]!==t?(R=()=>{T.current||(T.current=setInterval(()=>{const s=_.current;if(!s)return;const p=new Date(k.current.getTime()+be(r,o));p>=o&&p.setTime(r.getTime()),k.current=p,s.setCustomTime(p,d),t(p),P(E(p))},xe))},e[12]=o,e[13]=r,e[14]=t,e[15]=R):R=e[15];const q=R;let V;e[16]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{T.current&&(clearInterval(T.current),T.current=null)},e[16]=V):V=e[16];const K=V;let W;e[17]!==q?(W=()=>{ae(s=>s?(K(),!1):(q(),!0))},e[17]=q,e[18]=W):W=e[18];const Q=W;let G,U;e[19]===Symbol.for("react.memo_cache_sentinel")?(U=()=>()=>K(),G=[K],e[19]=G,e[20]=U):(G=e[19],U=e[20]),u.useEffect(U,G);let C,B,z;e[21]===Symbol.for("react.memo_cache_sentinel")?(C={position:"relative",width:"100%",height:"90px",borderTop:`1px solid ${i.ui.timeline.border}`,background:i.ui.timeline.background,backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",display:"flex",alignItems:"stretch",flexShrink:0},B=a.jsxDEV("style",{children:ye},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:272,columnNumber:11},this),z={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:4,padding:"0 16px",borderRight:`1px solid ${i.ui.timeline.border}`,minWidth:80,flexShrink:0},e[21]=C,e[22]=B,e[23]=z):(C=e[21],B=e[22],z=e[23]);const X=c?"Pause Evolution":"Play Evolution",ee=`1.5px solid ${c?i.ui.control.activeBorder:i.ui.control.defaultBorder}`,te=c?i.ui.timeline.playheadSoft:i.ui.control.defaultBg,ie=c?"0 0 10px rgba(98, 226, 205, 0.32)":"none";let b;e[24]!==ee||e[25]!==te||e[26]!==ie?(b={width:34,height:34,borderRadius:"50%",border:ee,background:te,color:i.ui.timeline.playhead,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",boxShadow:ie},e[24]=ee,e[25]=te,e[26]=ie,e[27]=b):b=e[27];let x;e[28]!==c?(x=c?a.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:[a.jsxDEV("rect",{x:"6",y:"4",width:"4",height:"16"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:321,columnNumber:91},this),a.jsxDEV("rect",{x:"14",y:"4",width:"4",height:"16"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:321,columnNumber:133},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:321,columnNumber:23},this):a.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsxDEV("polygon",{points:"5,3 19,12 5,21"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:321,columnNumber:253},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:321,columnNumber:185},this),e[28]=c,e[29]=x):x=e[29];let g;e[30]!==X||e[31]!==b||e[32]!==x||e[33]!==Q?(g=a.jsxDEV("button",{id:"temporal-play-btn",onClick:Q,title:X,style:b,children:x},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:329,columnNumber:11},this),e[30]=X,e[31]=b,e[32]=x,e[33]=Q,e[34]=g):g=e[34];const ne=c?i.ui.timeline.playhead:i.ui.timeline.text;let y;e[35]!==ne?(y={fontSize:10,color:ne,fontFamily:"monospace",letterSpacing:"0.04em",transition:"color 0.2s"},e[35]=ne,e[36]=y):y=e[36];let S;e[37]!==Z||e[38]!==y?(S=a.jsxDEV("span",{style:y,children:Z},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:355,columnNumber:11},this),e[37]=Z,e[38]=y,e[39]=S):S=e[39];let v;e[40]!==g||e[41]!==S?(v=a.jsxDEV("div",{style:z,children:[g,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:364,columnNumber:11},this),e[40]=g,e[41]=S,e[42]=v):v=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F={position:"absolute",top:5,left:100,fontSize:10,fontWeight:600,letterSpacing:"0.1em",color:i.ui.text.subtle,textTransform:"uppercase",pointerEvents:"none",zIndex:2},e[43]=F):F=e[43];let w;e[44]!==r?(w=r.getFullYear(),e[44]=r,e[45]=w):w=e[45];let N;e[46]!==o?(N=o.getFullYear(),e[46]=o,e[47]=N):N=e[47];let D;e[48]!==w||e[49]!==N?(D=a.jsxDEV("div",{style:F,children:["Temporal Scrubber · ",w,"-",N]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:407,columnNumber:11},this),e[48]=w,e[49]=N,e[50]=D):D=e[50];let Y;e[51]===Symbol.for("react.memo_cache_sentinel")?(Y={flex:1,overflow:"hidden",position:"relative"},e[51]=Y):Y=e[51];let O;e[52]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsxDEV("div",{className:"sem-timeline-wrap",style:Y,children:a.jsxDEV("div",{ref:h,style:{width:"100%",height:"100%",position:"relative"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:427,columnNumber:58},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:427,columnNumber:11},this),e[52]=O):O=e[52];let J;return e[53]!==v||e[54]!==D?(J=a.jsxDEV("div",{style:C,children:[B,v,D,O]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/GraphWorkspace/TimelinePanel.tsx",lineNumber:438,columnNumber:11},this),e[53]=v,e[54]=D,e[55]=J):J=e[55],J}export{De as TimelinePanel};